This is the mail archive of the gcc-patches@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]

Re: [PATCH] add option to issue warning when trampolines are generated



On Mar 18, 2006, at 4:58 AM, Mike Stump wrote:


On Mar 18, 2006, at 2:03 AM, Kevin F. Quinn (Gentoo) wrote:
Below is a simple patch to add a '-Wtrampolines' option. When enabled this
causes a warning to be issued when trampolines are generated.


This is useful for system integrators, who are building for no-exec-stack
environments, to locate trampolines in other peoples' code.

:-) I have one that turns of nested functions entirely.

90% of nested functions don't need trampolines. And Considering Fortran (and Ada) require nested function, it would be stupid to turn off all nested functions. Now Ada also requires trampolines to work, so even this is questionable.

-- Pinski


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