* except.h (struct eh_region_d): Add use_cxa_end_cleanup.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Sep 2009 16:44:32 +0000 (16:44 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Sep 2009 16:44:32 +0000 (16:44 +0000)
commit471eff3649c0d9383213b2dfef646d0496d43e28
tree96758456da27013ac77e14db7add80d1de6fb85f
parentfcc31b99b0edd859f7a4624e661eaebfd15fc7bc
* except.h (struct eh_region_d): Add use_cxa_end_cleanup.
* except.c (gen_eh_region): Set it.
(duplicate_eh_regions_1): Copy it.
* tree-eh.c (lower_resx): Use it to determine which function
to call to resume.

* langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
* langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.

* builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
* tree.c (build_common_builtin_nodes): Remove parameter.  Build
BUILT_IN_CXA_END_CLEANUP if necessary.
* tree.h (build_common_builtin_nodes): Update decl.

* c-common.c (c_define_builtins): Update call to
build_common_builtin_nodes.

gcc/ada/
* gcc-interface/utils.c (gnat_install_builtins): Update call to
build_common_builtin_nodes.

gcc/cp/
* cp-objcp-common.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.

gcc/fortran/
* f95-lang.c (gfc_init_builtin_functions): Update call to
build_common_builtin_nodes.

gcc/java/
* builtins.c (initialize_builtins): Update call to
build_common_builtin_nodes.
* lang.c (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152241 138bc75d-0d04-0410-961f-82ee72b054a4
19 files changed:
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils.c
gcc/builtins.def
gcc/c-common.c
gcc/cp/ChangeLog
gcc/cp/cp-objcp-common.h
gcc/except.c
gcc/except.h
gcc/fortran/ChangeLog
gcc/fortran/f95-lang.c
gcc/java/ChangeLog
gcc/java/builtins.c
gcc/java/lang.c
gcc/langhooks-def.h
gcc/langhooks.h
gcc/tree-eh.c
gcc/tree.c
gcc/tree.h