diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-13 18:57:31 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-13 18:57:31 +0000 |
commit | 382597e4e1587e7de04f81ba9903811a8a93d640 (patch) | |
tree | 3c1d073f5371ed3d1591b0a5f61b529b6c5b86af /gcc/cp/cp-lang.c | |
parent | dc9e4762207f5086d6dabe37bea7c45119a85ea4 (diff) | |
download | gcc-382597e4e1587e7de04f81ba9903811a8a93d640.tar.gz |
Centralize knowledge of eh personality routines.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165433 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/cp-lang.c')
-rw-r--r-- | gcc/cp/cp-lang.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/gcc/cp/cp-lang.c b/gcc/cp/cp-lang.c index 0b70444808a..a07d7be1871 100644 --- a/gcc/cp/cp-lang.c +++ b/gcc/cp/cp-lang.c @@ -166,17 +166,8 @@ cp_eh_personality (void) { if (!cp_eh_personality_decl) { - const char *name; - - name = (targetm.except_unwind_info () == UI_SJLJ - ? (pragma_java_exceptions - ? "__gcj_personality_sj0" - : "__gxx_personality_sj0") - : (pragma_java_exceptions - ? "__gcj_personality_v0" - : "__gxx_personality_v0")); - - cp_eh_personality_decl = build_personality_function (name); + const char *lang = (pragma_java_exceptions ? "gcj" : "gxx"); + cp_eh_personality_decl = build_personality_function (lang); } return cp_eh_personality_decl; |