aboutsummaryrefslogtreecommitdiff
path: root/gcc/except.h
diff options
context:
space:
mode:
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2003-09-23 19:29:56 +0000
committerRainer Orth <ro@gcc.gnu.org>2003-09-23 19:29:56 +0000
commit5748beec64a32b576377d871f6c33918e47c7651 (patch)
tree3bb4d0c27c357fd376175aebfdcc34c26b8e1c02 /gcc/except.h
parent6773a41c431266eeaca36e8389cc60996a381251 (diff)
downloadgcc-5748beec64a32b576377d871f6c33918e47c7651.zip
gcc-5748beec64a32b576377d871f6c33918e47c7651.tar.gz
gcc-5748beec64a32b576377d871f6c33918e47c7651.tar.bz2
except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO value.
* except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO value. From-SVN: r71690
Diffstat (limited to 'gcc/except.h')
-rw-r--r--gcc/except.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/except.h b/gcc/except.h
index 8f07540..e2c3705 100644
--- a/gcc/except.h
+++ b/gcc/except.h
@@ -147,9 +147,13 @@ extern tree (*lang_eh_runtime_type) (tree);
|| (DWARF2_UNWIND_INFO \
&& (defined (EH_RETURN_HANDLER_RTX) \
|| defined (HAVE_eh_return)))))
-#define MUST_USE_SJLJ_EXCEPTIONS 1
+# define MUST_USE_SJLJ_EXCEPTIONS 1
#else
-#define MUST_USE_SJLJ_EXCEPTIONS 0
+# ifdef IA64_UNWIND_INFO
+# define MUST_USE_SJLJ_EXCEPTIONS 0
+# else
+# define MUST_USE_SJLJ_EXCEPTIONS (DWARF2_UNWIND_INFO == 0)
+# endif
#endif
#ifdef CONFIG_SJLJ_EXCEPTIONS