aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2006-11-01 06:23:12 +0000
committerDanny Smith <dannysmith@gcc.gnu.org>2006-11-01 06:23:12 +0000
commit97388150b4635856c7b8dabc45dbf5f3ddf47a79 (patch)
treea6f02d60df84edc128eac9c800531bb6b5dc6bbb /gcc/config.gcc
parentd5523ce18d221e06e62cf2ef506fb5ffffa4fd2d (diff)
downloadgcc-97388150b4635856c7b8dabc45dbf5f3ddf47a79.zip
gcc-97388150b4635856c7b8dabc45dbf5f3ddf47a79.tar.gz
gcc-97388150b4635856c7b8dabc45dbf5f3ddf47a79.tar.bz2
target.h (targetm.cxx.use_atexit_for_cxa_atexit): New target hook.
* target.h (targetm.cxx.use_atexit_for_cxa_atexit): New target hook. * target-def.h: (TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT): Define default. * config/i386/mingw32.h (TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT): Override default. * doc/tm.texi (TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT): Document. * configure.ac (use_cxa_atexit): As a special case, don't test for libc definition of __cxa_atexit on mingw32 * configure: Regenerate. * config.gcc (i[34567]86-pc-mingw32): Default to enable__cxa_atexit=yes. cp * decl.c (get_atexit_node): Reference atexit, not __cxa_exit. if targetm.cxx.use_atexit_for cxa_atexit. (start_cleanup_fn): Likewise. (register_dtor_fn): Likewise. From-SVN: r118371
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index bbe82f0..9ab3a65 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -1310,6 +1310,7 @@ i[34567]86-*-mingw32*)
extra_options="${extra_options} i386/cygming.opt"
extra_objs="winnt.o winnt-stubs.o"
cxx_target_objs=winnt-cxx.o
+ default_use_cxa_atexit=yes
case ${enable_threads} in
"" | yes | win32)
thread_file='win32'