This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/52747] No warning from toolchain with nested function and --noexecstack


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52747

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-28 14:44:09 UTC ---
The -Wtrampolines is that warning.  Note that -Wl,-z,noexecstack is a user
error in that case, you are requesting the linker to override any automatic
deduction on whether trampolines are used or not, by promising they aren't
used, even when you actually use them.  If you don't use -Wl,-z,noexecstack,
the compiler/assembler/linker will DTRT automatically, unless you have *.s/*.S
sources (those need to be tagged manually, or with -Wa,--noexecstack).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]