re PR tree-optimization/65337 (LTO bootstrap failure with Ada enabled)
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 21 Dec 2015 15:15:50 +0000 (15:15 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 21 Dec 2015 15:15:50 +0000 (15:15 +0000)
PR tree-optimization/65337
* tree-ssa-pre.c (eliminate): Also clean up abnormal edges if need be.

From-SVN: r231882

gcc/ChangeLog
gcc/tree-ssa-pre.c

index 60799653248c7fdec809f1a1b3a82f51bc80ad2a..2f373164e5eee98a6a58c4451c7bd637f1ae7b43 100644 (file)
@@ -1,3 +1,8 @@
+2015-12-21  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR tree-optimization/65337
+       * tree-ssa-pre.c (eliminate): Also clean up abnormal edges if need be.
+
 2015-12-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
 
        * config/s390/s390.c (s390_emit_prologue): Fix base reg condition.
@@ -77,8 +82,9 @@
 
 2015-12-19  Jan Hubicka  <hubicka@ucw.cz>
 
-       PR middle-end/65337
+       PR tree-optimization/65337
        * tree-ssa-dce.c (bb_postorder): New static var.
+       (mark_stmt_necessary): Add guard for setting bb_contains_live_stmts.
        (forward_edge_to_pdom): Remove.
        (remove_dead_stmt): Instead of redirecting edges only keep an edge
        on a path to nearest live BB.
index 21a3a2b41d257c2e2bd8f55358d25fada9aeb375..928b00ccfda3c3d4c44bfa79f4b79392690ae611 100644 (file)
@@ -4499,6 +4499,8 @@ eliminate (bool do_pre)
          unlink_stmt_vdef (stmt);
          if (gsi_remove (&gsi, true))
            bitmap_set_bit (need_eh_cleanup, bb->index);
+         if (is_gimple_call (stmt) && stmt_can_make_abnormal_goto (stmt))
+           bitmap_set_bit (need_ab_cleanup, bb->index);
          release_defs (stmt);
        }