[patch] to gcc: use xexit/xatexit in fixinc

Alexandre Oliva aoliva@redhat.com
Wed Dec 27 10:33:00 GMT 2000


On Dec 27, 2000, Bruce Korb <bkorb@cruzio.com> wrote:

> So, now I wonder no more :-).  Of course, a super-global destructor
> could invoke individual destructors, but that would be another
> discussion...

Nope.  The C++ standard requires the destruction of static objects
local to functions to be interleaved with other destructors registered
with atexit(), in the reverse order of registration.  Which means a
portable C++ program can't have 32 or more static local objects.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


More information about the Gcc-patches mailing list