GNU bug report logs - #44209
28.0.50; [feature/native-comp] Compilation failure in progmodes/js.el

Previous Next

Package: emacs;

Reported by: Andrew Whatson <whatson <at> gmail.com>

Date: Sun, 25 Oct 2020 11:07:02 UTC

Severity: normal

Tags: moreinfo

Found in version 28.0.50

Done: Andrea Corallo <akrl <at> sdf.org>

Bug is archived. No further changes may be made.

Full log


Message #46 received at 44209 <at> debbugs.gnu.org (full text, mbox):

From: Andrea Corallo <akrl <at> sdf.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Andrew Whatson <whatson <at> gmail.com>, 44209 <at> debbugs.gnu.org
Subject: Re: bug#44209: 28.0.50; [feature/native-comp] Compilation failure
 in progmodes/js.el
Date: Sun, 25 Oct 2020 21:43:44 +0000
Okay I think I see what is going on:

We fail to inline `cc-bytecomp-is-compiling' inside cc-defs.el because
`cc-bytecomp-is-compiling' is native compiled even if it should not.
We do not native compile defsubsts so they can be disassebled by the
bytecompiler to have the inlining performed effectively.

Prove of this is that adding (declare (speed -1)) to
`cc-bytecomp-is-compiling' to prevent native compialtion fix the
issue.

Now why defsubst is failing to do the same automatically is another
question I have to look into.  I suspect this issue is also the cause
of some of the warnings we see during the native build.

  Andrea




This bug report was last modified 4 years and 267 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.