Re: Bug#116823: Debian's g++-3.0 forgets to generate some code.
> > You get the code you want with -fno-use-cxa-atexit. Should we revert
> > this change?
>
> I don't think so. I'm 90% positive that this is CLN's fault.
> Inserting labels in the body of a function is a somewhat disgusting way
> to do it!
I agree. There is no guarantee in the C++ language, or the GCC
documentation, that there are per-object file destructor functions, or
what their name is. Using -fuse-cxa-atexit means to fix a
long-standing bug of g++ for completely well-behaved programs; there
is no point in breaking such programs again in favour of programs that
tied themselves to a particular version of g++.
Regards,
Martin
Reply to: