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

Re: nested functions


On Dec  3, 1999, "Piers O'Hanlon" <P.OHanlon@cs.ucl.ac.uk> wrote:

> I was wondering if anyone had any idea about this problem with nested C 
> functions - the docs seem to say they're supported but when I've been trying 
> to configure/compile libobjects-0.1.19 for Objective C the nested objects test 
> (below) program core dumps at line 13:
> doit(nested);

Nested functions depend on dynamic code generation on the stack.  If
your system manager arranged to disable the execution permission of
data/stack segments, gcc breaks.  It took me months to figure it out
when it happened to me: it was only when I tried to run Kaffe OpenVM
with JIT that I noticed there was something really weird going on, and
could identify the problem.

But the problem you're observing may obviously be anything else... :-)

-- 
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them


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