From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#58429: 29.0.50; inhibit-automatic-native-compilation does not work as expected. Date: Sat, 15 Oct 2022 12:17:04 +0300 Message-ID: <83bkqd78fj.fsf@gnu.org> References: <87v8oqj052.fsf@gmail.com> <87tu4aixts.fsf@gnus.org> <87fsfuen04.fsf@gmail.com> <87ilkqf8r2.fsf@gnus.org> <87bkqhe2ce.fsf@gnus.org> <87pmex5m4g.fsf@gmail.com> <8735btcm8n.fsf@gnus.org> <87h7095k67.fsf@gmail.com> <835ygpcgn3.fsf@gnu.org> <87czax5dz1.fsf@gmail.com> <83r0zdawhh.fsf@gnu.org> <871qrd56fr.fsf@gmail.com> <83h707aevl.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4716"; mail-complaints-to="usenet@ciao.gmane.io" Cc: max.brieiev@gmail.com, larsi@gnus.org, 58429@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 15 11:18:23 2022 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 1ojdJH-00010t-Pb for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Oct 2022 11:18:23 +0200 Original-Received: from localhost ([::1]:40246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojdJG-0001tw-OJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Oct 2022 05:18:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojdIw-0001tg-Ge for bug-gnu-emacs@gnu.org; Sat, 15 Oct 2022 05:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40354) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojdIw-0006fw-97 for bug-gnu-emacs@gnu.org; Sat, 15 Oct 2022 05:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojdIw-0007Jt-3i for bug-gnu-emacs@gnu.org; Sat, 15 Oct 2022 05:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Oct 2022 09:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58429 X-GNU-PR-Package: emacs Original-Received: via spool by 58429-submit@debbugs.gnu.org id=B58429.166582544828088 (code B ref 58429); Sat, 15 Oct 2022 09:18:02 +0000 Original-Received: (at 58429) by debbugs.gnu.org; 15 Oct 2022 09:17:28 +0000 Original-Received: from localhost ([127.0.0.1]:39432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojdIO-0007Ix-93 for submit@debbugs.gnu.org; Sat, 15 Oct 2022 05:17:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojdIM-0007Ik-R9 for 58429@debbugs.gnu.org; Sat, 15 Oct 2022 05:17:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37494) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojdIC-0006e5-DQ; Sat, 15 Oct 2022 05:17:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=GnwfJwaaH1Hvs8mC0BVr9UJ5RIhmk3DhRx/uojOIUIo=; b=hl1bSrkw9zqk p5uvMS31Qce2OE+cmleHA0WoRvAMyQvij9MFwF2kFBfNXJe54aSQJ2rJc71pSoVxTXCP/iypRFmbH j+eNuLXW7n+Xa2k4Y6a3kmaEotdmCesHAJ49DwWvJxt5cN4e0EZBkQPrpo8lTWYsLap2tusHHJeDF a9fGKHeG52Qi4m04mCQN2RHGs6Sj7yNyWgQx/cuKBFVc0ds/uH2avHCoZLNCkSlzx0zG3NUhmdVJ1 lmKaxvSeIjTG3HkJ1XCthf5/uApkm63cHVrkM92gfuh7u1itBKpf+VdzgHUQOzM8PDsBGC1vkWuTJ 8FT1F6ITymQ2Hg8UnjOwyw==; Original-Received: from [87.69.77.57] (port=3739 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojdIB-0005EM-PA; Sat, 15 Oct 2022 05:17:16 -0400 In-Reply-To: (message from Andrea Corallo on Fri, 14 Oct 2022 20:10:57 +0000) 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" Xref: news.gmane.io gmane.emacs.bugs:245522 Archived-At: > From: Andrea Corallo > Cc: max.brieiev@gmail.com, larsi@gnus.org, 58429@debbugs.gnu.org > Date: Fri, 14 Oct 2022 20:10:57 +0000 > > Eli Zaretskii writes: > > > If non-nil enable primitive trampoline synthesis. > > This makes primitive functions redefinable or advisable effectively. > > > > which seems to hint that when this is nil, primitives cannot be > > advised or redefined? > > They can, but they will not take effect on Lisp code that is native > compiled (at speed 2), similarly to when they are called from C code. > > > We set this variable to nil in startup.el if > > native-comp-available-p returns nil (which currently can only happen > > on MS-Windows), AFAIU with the intent to prevent Emacs from even > > trying to natively-compile anything, including trampolines. But if > > Emacs cannot produce a trampoline, it means that primitives cannot be > > redefined, and we silently fail that? Because (again, AFAIU) > > native-comp-available-p being nil does not prevent Emacs from loading > > *.eln files that are already compiled (because just loading them > > doesn't need libgccjit), is that right? > > Correct, as you said Emacs will work, only we can't guarantee that > primitive redefinition will take the effect expected by the user (unless > of course trampolines were precompiled, in that case it's all good). Thanks. I therefore extended the doc string of this variable (on the emacs-28 branch) to make this crystal clear.