diff options
author | dannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-01 06:23:12 +0000 |
---|---|---|
committer | dannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-01 06:23:12 +0000 |
commit | d91ef9b080d6973de3f2a6851855a03b54743d52 (patch) | |
tree | a6f02d60df84edc128eac9c800531bb6b5dc6bbb /gcc/target-def.h | |
parent | a39e926c3645803ac16fcfdd6184ab7e05bb29a7 (diff) | |
download | gcc-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-def.h')
-rw-r--r-- | gcc/target-def.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/target-def.h b/gcc/target-def.h index 74cf86583d7..82e711a79c7 100644 --- a/gcc/target-def.h +++ b/gcc/target-def.h @@ -583,6 +583,10 @@ Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #define TARGET_CXX_USE_AEABI_ATEXIT hook_bool_void_false #endif +#ifndef TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT +#define TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT hook_bool_void_false +#endif + #ifndef TARGET_CXX_ADJUST_CLASS_AT_DEFINITION #define TARGET_CXX_ADJUST_CLASS_AT_DEFINITION hook_void_tree #endif @@ -599,6 +603,7 @@ Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY, \ TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT, \ TARGET_CXX_USE_AEABI_ATEXIT, \ + TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT, \ TARGET_CXX_ADJUST_CLASS_AT_DEFINITION \ } |