summaryrefslogtreecommitdiff
path: root/gcc/java/lang.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-28 20:44:58 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-28 20:44:58 +0000
commitcc7d6aed6b7186313ada1a58107b9dbcaac2f435 (patch)
treeabc0f2fe4784df2eb251f4c04a0493fec3eac91d /gcc/java/lang.c
parenta336eb4b5042c9ebc2d044d29202649fd9fa2759 (diff)
downloadgcc-cc7d6aed6b7186313ada1a58107b9dbcaac2f435.tar.gz
Hookize TARGET_UNWIND_INFO et al.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164701 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/lang.c')
-rw-r--r--gcc/java/lang.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c
index 1633c02194b..78f9715bb82 100644
--- a/gcc/java/lang.c
+++ b/gcc/java/lang.c
@@ -43,6 +43,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "tree-dump.h"
#include "opts.h"
#include "options.h"
+#include "target.h"
static bool java_init (void);
static void java_finish (void);
@@ -902,7 +903,7 @@ java_eh_personality (void)
{
if (!java_eh_personality_decl)
java_eh_personality_decl
- = build_personality_function (USING_SJLJ_EXCEPTIONS
+ = build_personality_function (targetm.except_unwind_info () == UI_SJLJ
? "__gcj_personality_sj0"
: "__gcj_personality_v0");