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

Nested functions


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]