From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#47049: [feature/native] macro-expansion cycle when compiling comp.el Date: Wed, 10 Mar 2021 16:05:10 +0000 Message-ID: References: <83zgzbnm7i.fsf@gnu.org> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21738"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47049@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 10 17:29:55 2021 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 1lK1id-0005YB-0r for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Mar 2021 17:29:55 +0100 Original-Received: from localhost ([::1]:34334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lK1ia-0000b4-Ps for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Mar 2021 11:29:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK1LW-000893-S1 for bug-gnu-emacs@gnu.org; Wed, 10 Mar 2021 11:06:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40120) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lK1LW-0005IT-Gw for bug-gnu-emacs@gnu.org; Wed, 10 Mar 2021 11:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lK1LW-000140-Bg for bug-gnu-emacs@gnu.org; Wed, 10 Mar 2021 11:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Mar 2021 16:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47049 X-GNU-PR-Package: emacs Original-Received: via spool by 47049-submit@debbugs.gnu.org id=B47049.16153923154028 (code B ref 47049); Wed, 10 Mar 2021 16:06:02 +0000 Original-Received: (at 47049) by debbugs.gnu.org; 10 Mar 2021 16:05:15 +0000 Original-Received: from localhost ([127.0.0.1]:51666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lK1Kl-00012u-52 for submit@debbugs.gnu.org; Wed, 10 Mar 2021 11:05:15 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:53112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lK1Kj-00012k-1N for 47049@debbugs.gnu.org; Wed, 10 Mar 2021 11:05:14 -0500 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 12AG5ALd001480 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 10 Mar 2021 16:05:10 GMT In-Reply-To: <83zgzbnm7i.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 10 Mar 2021 15:59:45 +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:202012 Archived-At: Eli Zaretskii writes: > From: eliz@HOME-C4E4A596F7.i-did-not-set--mail-host-address--so-tickle-me > --text follows this line-- > I made some local modifications in comp.el, and used that modified > comp.el for a while (by loading it manually at run time) to debug some > problem. Then I undid those local modifications of comp.el (by saying > "git checkout") and said "make" to rebuild Emacs. And I see this: > > ELC emacs-lisp/comp.elc > Warning: Eager macro-expansion skipped due to cycle: > => (load "comp.el") => (macroexpand-all (defalias 'comp-add-call-cstr )) => (macroexpand (comp-loop-insn-in-block )) => (load "comp.el") > > Why does this happen? I'm not sure, but I can reproduce it. I guess (just a guess) it might be because `comp-add-call-cstr' is using a macro `comp-loop-insn-in-block' that is expanding with a `cl-symbol-macrolet' inside? (no idea why this should be a problem). > could it be that while comp.el was modified it > got native-compiled, and now that inconsistent comp.eln gets in the > way? I think this has not to do specifically with native compilation. I see it goes away removing '(setq load-prefer-newer t)' from the invocation tho. Perhaps somebody already more into the macro expansion business might have some suggestion. Thanks Andrea