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:41:38 -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="1121"; 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:42:09 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 1sJDYf-000Ad4-Ew for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Jun 2024 16:42:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJDYX-000616-RV; Mon, 17 Jun 2024 10:42:01 -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 1sJDYW-00060x-LU for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2024 10:42:00 -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 1sJDYW-00078V-Ct for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2024 10:42:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sJDYY-0007xx-9a for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2024 10:42:02 -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:42:02 +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.171863530930600 (code B ref 71555); Mon, 17 Jun 2024 14:42:02 +0000 Original-Received: (at 71555) by debbugs.gnu.org; 17 Jun 2024 14:41:49 +0000 Original-Received: from localhost ([127.0.0.1]:34923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJDYK-0007xS-UI for submit@debbugs.gnu.org; Mon, 17 Jun 2024 10:41:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJDYJ-0007xG-Fm for 71555@debbugs.gnu.org; Mon, 17 Jun 2024 10:41:48 -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 1sJDYB-00077r-Qs; Mon, 17 Jun 2024 10:41:39 -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=4WMg53PsKP9JjnC0d+6AEu+2TTfIvoKoPbFmWArJDGE=; b=sL1rlCEgWmNpNMiJXY1P zIY8qNQBsGefrbZAilbWKvmxRokBQziqmTM8FN+N5a1/Q4rFmCLwJrM1nxh+Bma34h7q39U0QSvbc YyzdwFGQ1162awb6kv6s1eP7o1dkzBWEXVWX8La60WFNbQdRAfkLobpYTJjUqQlMmNMAe+FNTrpq+ 8hPwhEevppwfeRbeN8DmTeT1pHMUck0gUeWVZt0snMJpOZGY9bVfFRn2d8g+7GGnP1dnW9cMtOEzT ql6RW6yERAY7fjjvxwm8+LAId/pTdGe+BXVw9Q1p2A9Z/x3vUC8c+gPU1e4SzU4ko5x/qyaWEOIKC NJskk0h29VrCxA==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sJDYA-00041p-UR; Mon, 17 Jun 2024 10:41:39 -0400 In-Reply-To: (Andrea Corallo's message of "Mon, 17 Jun 2024 10:38:54 -0400") 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:287396 Archived-At: Andrea Corallo writes: > S=C3=A9v=C3=A8re Durand writes: > >> Hello Mr.Andrea: >> Thanks for the suggestion. >> Unfortunately when I tried the afore-mentionned snippet with `(declare (= speed 0))` added after the documentation string >> of the `test` function, the execution results still indicate that the ST= ART 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 ^^^ should > separate bug. > > Thanks > > Andrea