dwarf2out.c (output_call_frame_info): No need to output EH unwind information if...
authorGeoffrey Keating <geoffk@apple.com>
Tue, 29 Apr 2003 20:42:55 +0000 (20:42 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Tue, 29 Apr 2003 20:42:55 +0000 (20:42 +0000)
* dwarf2out.c (output_call_frame_info): No need to output EH
unwind information if all_throwers_are_sibcalls.

From-SVN: r66253

gcc/ChangeLog
gcc/dwarf2out.c

index 02111b65711775da1c4fe37065be601fc6e562d9..394922a6b1f3a28ccbbadfef7750e3d5aec0ac0b 100644 (file)
@@ -1,5 +1,8 @@
 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
 
+       * dwarf2out.c (output_call_frame_info): No need to output EH
+       unwind information if all_throwers_are_sibcalls.
+
        * c-semantics.c (expand_unreachable_stmt): Return a tree.
        (expand_stmt): Update for change to expand_unreachable_stmt.
        (expand_unreachable_if_stmt): Likewise.
index 92b75af56886dc17b491e53c8526e173248eb21f..4a7b825d62188d0257376ecde10d682609faf470 100644 (file)
@@ -1940,7 +1940,8 @@ output_call_frame_info (for_eh)
       for (i = 0; i < fde_table_in_use; i++)
        if (fde_table[i].uses_eh_lsda)
          any_eh_needed = any_lsda_needed = true;
-       else if (! fde_table[i].nothrow)
+       else if (! fde_table[i].nothrow
+                && ! fde_table[i].all_throwers_are_sibcalls)
          any_eh_needed = true;
 
       if (! any_eh_needed)