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]
Other format: [Raw text]

[Bug bootstrap/9249] bootstrap fails with --enable-__cxa-atexit on Solaris


------- Additional Comments From dhazeghi at yahoo dot com  2003-12-11 09:11 -------
How's this look (I lifted most of it directly from configure.in)?

--- doc/install.texi.old        Thu Dec 11 00:56:57 2003
+++ doc/install.texi    Thu Dec 11 01:08:53 2003
@@ -938,6 +938,14 @@
 AltiVec code when appropriate.  This option is only available for
 PowerPC systems.
 
+@item --enable-__cxa_atexit
+Define if you want to use __cxa_atexit, rather than atexit, to
+register C++ destructors for local statics and global objects.
+This is essential for fully standards-compliant handling of
+destructors, but requires __cxa_atexit in libc. This option is currently
+only available on sytems with GNU libc. When enabled, this will cause
+@option{-fuse-cxa-exit} to be passed by default.
+
 @item --enable-target-optspace
 Specify that target
 libraries should be optimized for code space instead of code speed.


Regarding a configure check for this, I haven't got any good ideas. I gues we could blacklist 
systems whose triplet didn't end in GNU, but that seems unclean. Ideas?

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9249


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