Bug#101901: g++-3.0 and --use-cxa-atexit
Daniel Jacobowitz writes:
> On Sat, Jun 23, 2001 at 02:47:51PM +0200, Matthias Klose wrote:
> > Chris, any support in ld needed?
> >
> > laurent bonnaud writes:
> > > Package: g++-3.0
> > > Version: 1:3.0-1
> > > Severity: normal
> > >
> > >
> > > Hi,
> > >
> > > according to http://gcc.gnu.org/bugs.html#known, it would seem to be a good
> > > idea to compile g++-3.0 with the --use-cxa-atexit switch:
>
> Note that it actually says you need to link your -programs-, not
> configure your compiler, with this flag.
>
> Also, it is -fuse-cxa-atexit.
Ok to enable -fuse-cxa-atexit as default? According to Laurents
citations this should be safe for Linux glibc. Safe for the Hurd as
well?
--- src/gcc/cp/decl2.c~ Wed Jun 6 23:51:11 2001
+++ src/gcc/cp/decl2.c Sat Jun 23 13:40:36 2001
@@ -401,7 +401,7 @@
/* Nonzero to use __cxa_atexit, rather than atexit, to register
destructors for local statics and global objects. */
-int flag_use_cxa_atexit;
+int flag_use_cxa_atexit = 1;
/* Nonzero to not ignore namespace std. */
Reply to: