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, and requires __cxa_atexit in libc.
This commit is contained in:
Alexander Kabaev 2003-12-19 18:20:48 +00:00
parent 7ef1ca2758
commit cd3d9d6c3c

View File

@ -370,7 +370,7 @@
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. */
/* #undef DEFAULT_USE_CXA_ATEXIT */
#define DEFAULT_USE_CXA_ATEXIT 1
/* Define if you want the C and C++ compilers to support multibyte
character sets for source code. */