GNU bug report logs - #46256
[feature/native-comp] AOT eln files ignored if run from build tree

Previous Next

Package: emacs;

Reported by: Andy Moreton <andrewjmoreton <at> gmail.com>

Date: Tue, 2 Feb 2021 11:12:02 UTC

Severity: normal

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: Eli Zaretskii <eliz <at> gnu.org>
Cc: 46256 <at> debbugs.gnu.org, andrewjmoreton <at> gmail.com
Subject: bug#46256: [feature/native-comp] AOT eln files ignored if run from build tree
Date: Wed, 03 Mar 2021 19:37:52 +0000
Eli Zaretskii <eliz <at> gnu.org> writes:

> Also, while compiling I see this warning:
>
>   comp.c: In function 'eln_load_path_final_clean_up':
>   comp.c:4514:15: warning: trampoline generated for nested function 'return_nil' [-Wtrampolines]
>    4514 |   Lisp_Object return_nil (Lisp_Object arg) { return Qnil; }
> 	|               ^~~~~~~~~~
>
> Why do we need this nested function on Windows, and what is the story
> about the trampoline?  And how to avoid the warning?
>
> Thanks.

This nested function was nested only to save some ifdefs (as it's used
only in Windows ifdefed code).  Didn't know it could cause warnings,
I've made it a regular function with cf37850e2d.

Thanks

  Andrea




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

Previous Next


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