except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO value.
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Tue, 23 Sep 2003 19:29:56 +0000 (19:29 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 23 Sep 2003 19:29:56 +0000 (19:29 +0000)
* except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
value.

From-SVN: r71690

gcc/ChangeLog
gcc/except.h

index 6790ecc0de9eec2167c06ce2f88640ad96bd8ca1..3fe86068a8a9d3fb58bb2db5b1e2261700012194 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
+       value.
+
 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
 
        * target.h (struct gcc_target): New member external_libcall.
index 8f075400fe7bda8e766d3b2082518b4ffdce8958..e2c37059d77ae3a2cf17fb2744cf6adec7b1244e 100644 (file)
@@ -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