From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#71555: 29.3.50; Native-compilation sets some variable to nil unexpectedly. Date: Mon, 17 Jun 2024 10:38:54 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29122"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 71555@debbugs.gnu.org, eliz@gnu.org To: =?UTF-8?Q?S=C3=A9v=C3=A8re?= Durand Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 17 16:40:10 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sJDWk-0007LD-CA for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Jun 2024 16:40:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJDWa-0004rY-JU; Mon, 17 Jun 2024 10:40:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJDWZ-0004r8-Pt for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2024 10:39:59 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sJDWZ-0006c4-Hu for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2024 10:39:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sJDWb-0007uQ-Io for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2024 10:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jun 2024 14:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71555 X-GNU-PR-Package: emacs Original-Received: via spool by 71555-submit@debbugs.gnu.org id=B71555.171863514430293 (code B ref 71555); Mon, 17 Jun 2024 14:40:01 +0000 Original-Received: (at 71555) by debbugs.gnu.org; 17 Jun 2024 14:39:04 +0000 Original-Received: from localhost ([127.0.0.1]:34895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJDVg-0007sX-3l for submit@debbugs.gnu.org; Mon, 17 Jun 2024 10:39:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJDVe-0007rv-O5 for 71555@debbugs.gnu.org; Mon, 17 Jun 2024 10:39:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJDVX-0006XX-6o; Mon, 17 Jun 2024 10:38:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=QAHxa///xpyZTVhMk8QO/0Ky67oU5KeHK49EOg5uPoc=; b=oFWxIxqScz35xEXUn7Lv B73eAQgXWR4Rto2UFHEzhzEG24MECASGFk7dqPRgvYj4fEBjGyOkXc0n7/cXBKUYnq3CLI9lrcb8o J4DpuY/TSWptEFW4KEfdjZJScrL0LMH/3fIm7uQgdqGNT7X23Y8DcE6mjioe72UYTCtMEognXfVdc iBKPZJMsoeb1ytRELb0xsTeXVWGZY5v4CuiSWzgagjiZQJ8asqWAtNEVf2spX8s4pvwHuvvIv2gLM 4gpcL8if8/5ijlxuwAyImmTXcfqDq+YERk/ts4+PI3p+rrtnxaUbN3G1a94O4q21RhEt0E8fjTTgr MWxFOA0vlVRkDA==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sJDVW-00023t-Ql; Mon, 17 Jun 2024 10:38:54 -0400 In-Reply-To: ("=?UTF-8?Q?S=C3=A9v=C3=A8re?= Durand"'s message of "Mon, 17 Jun 2024 22:02:34 +0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:287395 Archived-At: S=C3=A9v=C3=A8re Durand writes: > Hello Mr.Andrea: > Thanks for the suggestion. > Unfortunately when I tried the afore-mentionned snippet with `(declare (s= peed 0))` added after the documentation string > of the `test` function, the execution results still indicate that the STA= RT variable is unexpectedly set to nil, for some > reason. I think it's because you are giving to the native compiler an already defined function to compile. If you use M-x emacs-lisp-native-compile-and-load or (load (native-compile FILE)) it will work. I tried the first on 29 and work around the original issue successfully. BTW I believe this different handling of the declare could be worth a separate bug. Thanks Andrea