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


View this message in rfc822 format

From: Andrea Corallo <akrl <at> sdf.org>
To: 44209 <at> debbugs.gnu.org
Cc: whatson <at> gmail.com, larsi <at> gnus.org
Subject: bug#44209: 28.0.50; [feature/native-comp] Compilation failure in progmodes/js.el
Date: Sun, 25 Oct 2020 23:06:56 +0000
Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> writes:

> 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.

All right 5edc7aa019 fix the issue for me.  I've also added a testcase
so hopefully we have it under control for the future.

  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.