summaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-01 06:23:12 +0000
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-01 06:23:12 +0000
commitd91ef9b080d6973de3f2a6851855a03b54743d52 (patch)
treea6f02d60df84edc128eac9c800531bb6b5dc6bbb /gcc/target.h
parenta39e926c3645803ac16fcfdd6184ab7e05bb29a7 (diff)
downloadgcc-d91ef9b080d6973de3f2a6851855a03b54743d52.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118371 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/target.h')
-rw-r--r--gcc/target.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h
index c18fd62b0e6..b193b624f39 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -776,6 +776,9 @@ struct gcc_target
/* Returns true if __aeabi_atexit should be used to register static
destructors. */
bool (*use_aeabi_atexit) (void);
+ /* Returns true if target may use atexit in the same manner as
+ __cxa_atexit to register static destructors. */
+ bool (*use_atexit_for_cxa_atexit) (void);
/* TYPE is a C++ class (i.e., RECORD_TYPE or UNION_TYPE) that
has just been defined. Use this hook to make adjustments to the
class (eg, tweak visibility or perform any other required