dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame if USING_SJLJ_EXCEPTIONS.
authorRichard Henderson <rth@redhat.com>
Tue, 14 Aug 2001 19:12:34 +0000 (12:12 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 14 Aug 2001 19:12:34 +0000 (12:12 -0700)
        * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
        if USING_SJLJ_EXCEPTIONS.

From-SVN: r44893

gcc/ChangeLog
gcc/dwarf2out.c

index c64d2592b3c40f21f52e79ce3208db3e00ce0ea1..3b0b23c2fe43ee7d72deaa32f8aacf7b084dd32a 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-14  Richard Henderson  <rth@redhat.com>
+
+       * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
+       if USING_SJLJ_EXCEPTIONS.
+
 2001-08-14  Steve Ellcey <sje@cup.hp.com>
 
        * tlink.c (scan_linker_output): Check string for unsatisfied in
index 711b1e3f018b4084170b19a4ee431c50d8af28b6..5ed410a612c8ac86a5c5b0daedd8b8013a33b4ad 100644 (file)
@@ -2099,12 +2099,13 @@ dwarf2out_frame_finish ()
 #ifdef MIPS_DEBUGGING_INFO
   if (write_symbols == DWARF2_DEBUG)
     output_call_frame_info (0);
-  if (flag_unwind_tables || (flag_exceptions && ! USING_SJLJ_EXCEPTIONS))
+  if (! USING_SJLJ_EXCEPTIONS && (flag_unwind_tables || flag_exceptions))
     output_call_frame_info (1);
 #else
-  if (write_symbols == DWARF2_DEBUG
-      || flag_unwind_tables || (flag_exceptions && ! USING_SJLJ_EXCEPTIONS))
-    output_call_frame_info (1);
+  int for_eh = (! USING_SJLJ_EXCEPTIONS
+               && (flag_unwind_tables || flag_exceptions));
+  if (write_symbols == DWARF2_DEBUG || for_eh)
+    output_call_frame_info (for_eh);
 #endif
 }
 \f