diff options
author | Mark Mitchell <mark@codesourcery.com> | 1999-12-17 07:40:08 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-12-17 07:40:08 +0000 |
commit | db4283a0747a8598d17fa8d2ca94846354831d0d (patch) | |
tree | baf33a58f78965a95318fce634a68a64f07a3cc4 /gcc/cp/lang-options.h | |
parent | fc69382254fcf45ced69a604adea5b6123c3c1c8 (diff) | |
download | gcc-db4283a0747a8598d17fa8d2ca94846354831d0d.zip gcc-db4283a0747a8598d17fa8d2ca94846354831d0d.tar.gz gcc-db4283a0747a8598d17fa8d2ca94846354831d0d.tar.bz2 |
cp-tree.h (cp_tree_index): Add CPTI_DSO_HANDLE.
* cp-tree.h (cp_tree_index): Add CPTI_DSO_HANDLE.
(dso_handle_node): New macro.
(flag_use_cxa_atexit): New variable.
(declare_global_var): New function.
(start_anon_func): Remove declaration.
(end_anon_func): Likewise.
* decl.c (get_atexit_node): New function, split out from
destroy_local_static. Handle flag_use_cxa_atexit.
(get_dso_handle_node): Likewise.
(start_cleanup_fn): Renamed from start_anon_func. Moved here from
except.c. Handle flag_use_cxa_atexit.
(end_cleanup_fn): Renamed from end_anon_func. Moved here from
except.c.
(declare_global_var): New variable.
(destroy_local_static): Handle flag_use_cxa_atexit.
* decl2.c (flag_use_cxa_atexit): New variable.
(lang_f_options): Likewise.
* except.c (start_anon_func): Remove.
(end_anon_func): Liekwise.
* lang-options.h: Add -fuse-cxa-atexit and -fno-use-cxa-atexit.
* rtti.c (get_tinfo_var): Use declare_global_var.
From-SVN: r30990
Diffstat (limited to 'gcc/cp/lang-options.h')
-rw-r--r-- | gcc/cp/lang-options.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/lang-options.h b/gcc/cp/lang-options.h index 4b743c0..779cbcd 100644 --- a/gcc/cp/lang-options.h +++ b/gcc/cp/lang-options.h @@ -98,6 +98,8 @@ DEFINE_LANG_NAME ("C++") { "-ftemplate-depth-", "Specify maximum template instantiation depth"}, { "-fthis-is-variable", "Make 'this' not be type '* const'" }, { "-fno-this-is-variable", "" }, + { "-fuse-cxa-atexit", "Use __cxa_atexit to register destructors." }, + { "-fno-use-cxa-atexit", "" }, { "-fvtable-gc", "Discard unused virtual functions" }, { "-fno-vtable-gc", "" }, { "-fvtable-thunks", "Implement vtables using thunks" }, |