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#53497: 29.0.50; native-compile after restarting Emacs Date: Thu, 27 Jan 2022 10:57:19 +0000 Message-ID: References: <86lez5zb7o.fsf@gnu.org> <87zgnl1l4o.fsf@gnus.org> <86h79tzait.fsf@gnu.org> <83zgnljop0.fsf@gnu.org> <864k5tz4ac.fsf@gnu.org> <83tudtjnqm.fsf@gnu.org> <86zgnl45sq.fsf@gnu.org> <83o841jlhz.fsf@gnu.org> <83mtjljl8s.fsf@gnu.org> <83lez5jjcf.fsf@gnu.org> <867dap834p.fsf@gnu.org> <835yq9j6jn.fsf@gnu.org> <861r0wjcz4.fsf@gnu.org> <83k0eohu0l.fsf@gnu.org> <86czkgm13p.fsf@gnu.org> <83fspchrgd.fsf@gnu.org> <86r18uwxfs.fsf@gnu.org> <83bkzyhbsc.fsf@gnu.org> <835yq5fp0h.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15331"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: arash@gnu.org, 53497@debbugs.gnu.org, larsi@gnus.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 27 11:58:55 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 1nD2UQ-0003oG-Br for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Jan 2022 11:58:54 +0100 Original-Received: from localhost ([::1]:43260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nD2UO-000615-S8 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Jan 2022 05:58:52 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nD2TZ-0005JU-Uw for bug-gnu-emacs@gnu.org; Thu, 27 Jan 2022 05:58:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33359) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nD2TZ-00048v-KX for bug-gnu-emacs@gnu.org; Thu, 27 Jan 2022 05:58:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nD2TZ-0004q4-IW for bug-gnu-emacs@gnu.org; Thu, 27 Jan 2022 05:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jan 2022 10:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53497 X-GNU-PR-Package: emacs Original-Received: via spool by 53497-submit@debbugs.gnu.org id=B53497.164328104718551 (code B ref 53497); Thu, 27 Jan 2022 10:58:01 +0000 Original-Received: (at 53497) by debbugs.gnu.org; 27 Jan 2022 10:57:27 +0000 Original-Received: from localhost ([127.0.0.1]:54495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nD2Sz-0004p8-TA for submit@debbugs.gnu.org; Thu, 27 Jan 2022 05:57:26 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:51994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nD2Sv-0004ox-C0 for 53497@debbugs.gnu.org; Thu, 27 Jan 2022 05:57:25 -0500 Original-Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 20RAvJAq012910 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Thu, 27 Jan 2022 10:57:19 GMT In-Reply-To: <835yq5fp0h.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 27 Jan 2022 12:31:58 +0200") 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:225341 Archived-At: Eli Zaretskii writes: >> From: Andrea Corallo >> Cc: Arash Esbati , larsi@gnus.org, 53497@debbugs.gnu.org >> Date: Thu, 27 Jan 2022 10:11:29 +0000 >> >> Before `comp--loadable' becomes true (read the native compiler is not >> loadable) each time we enter in 'maybe_defer_native_compilation' we >> accumulate the compilation units we want to compile in >> `comp--delayed-sources'. >> >> When we finally call `startup--honor-delayed-native-compilations' we >> check if something is pending in `comp--delayed-sources' and if this is >> the case we load the native compiler and we compile what's pending. > > Yes, I understood that much. What I didn't understand was how would > comp--delayed-sources become non-empty during startup, if none of the > files loaded during startup need to be native-compiled. > >> Unless I'm wrong the problem I see here is that if >> `comp--delayed-sources' is empty we never set `comp--loadable' to t. > > Yes, I think so. > >> I'll be testing a patch today and report. > > Thanks. Hi Eli, I pushed d0aac84b2a as it seems to work for me here. Andrea