Re: GCC complains about nested functions despite none being present

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jun 25, 2017 at 06:27:38PM -0400, Jeffrey Walton wrote:
> It may be more than a minor bug. The trampoline often requires an
> executable stack, and that's usually a SDLC violation.

Nested functions often do not need trampolines, they just need an
environment pointer (the static chain).  Trampolines are only needed
if you pass around the address of a nested function, and it needs one
of its parents frames, and your function pointers do not hold space
for an environment pointer already.  Trampolines do not need an
executable stack, it's just the traditional way to implement them
(and a very convenient and on most archs very efficient way).


Segher



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux