Nested functions

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

 



Hi,

There have been quite some "bug reports" for a project I work on
lately related to nested functions.  Although I don't know the
internals of gcc, it seems that sometimes trampolines are used when a
function pointer to the nested function is passed to another function.

Two "bugs" have been reported:

1) It doesn't build under Mac OSX.
2) The program does not execute when the stack is not executable.

The first problem is caused by apple, regardless of whether
trampolines are required or not, the program, AFAIK, does not build.

The second problem is caused because some OS'es have no executable
stack.  Redhat even removes the nested functions from our code so it
builds for them.  But of course it would be better for all of our
users if it just works.

I have two questions:

1) Is there a fix for this or has this been fixed?
2) What is the official stance of the GCC maintainers regarding this
   issue?  It's a documented feature we like and we rely on.

Please send me a CC when replying, I am not subscribed to this
mailinglist.

Thanks,
Marco


[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