summaryrefslogtreecommitdiff
path: root/gcc/defaults.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl@gnu.org>2002-06-07 17:14:56 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2002-06-07 10:14:56 -0700
commit4bafaa6fdcbe72021446626f952e66e979aa4506 (patch)
tree7b79110893271a1bcef5fac2db1e598cc8ba4b95 /gcc/defaults.h
parentcaef5b46fb58035a147bd86175e5bbc8253d1c97 (diff)
downloadgcc-4bafaa6fdcbe72021446626f952e66e979aa4506.tar.gz
configure.in: Add --enable-__cxa_atexit.
2002-06-07 H.J. Lu (hjl@gnu.org) * configure.in: Add --enable-__cxa_atexit. * configure: Regenerated. * config.in: Likewise. * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if not defined. 2002-06-07 H.J. Lu (hjl@gnu.org) * decl2.c (flag_use_cxa_atexit): Set to DEFAULT_USE_CXA_ATEXIT. From-SVN: r54345
Diffstat (limited to 'gcc/defaults.h')
-rw-r--r--gcc/defaults.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/defaults.h b/gcc/defaults.h
index 6a180272265..6582d34dbfd 100644
--- a/gcc/defaults.h
+++ b/gcc/defaults.h
@@ -496,4 +496,10 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE!
#define UNLIKELY_EXECUTED_TEXT_SECTION_NAME "text.unlikely"
#endif
+/* Determine whether __cxa_atexit, rather than atexit, is used to
+ register C++ destructors for local statics and global objects. */
+#ifndef DEFAULT_USE_CXA_ATEXIT
+#define DEFAULT_USE_CXA_ATEXIT 0
+#endif
+
#endif /* ! GCC_DEFAULTS_H */