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


Andrew Pinski wrote:

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.

The Apple local branch has that option, but it is hilarious (see my comments on Apple radar ID# 4413297).


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.

Fully agreed. Same for Pascal.


Adriaan van Os


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