re PR tree-optimization/17587 (Mauve's UnicodeBase.java fails to compile)
authorDaniel Berlin <dberlin@dberlin.org>
Wed, 22 Sep 2004 23:50:19 +0000 (23:50 +0000)
committerDaniel Berlin <dberlin@gcc.gnu.org>
Wed, 22 Sep 2004 23:50:19 +0000 (23:50 +0000)
2004-09-22  Daniel Berlin <dberlin@dberlin.org>

Fix PR tree-optimization/17587
* tree-ssa-pre.c (fini_pre): Commit edge inserts here.
(insert_aux): Instead of here.

From-SVN: r87899

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

index bb0cf57e82c11c271cbb52fc05b8c90c44d14f8c..497d43f7f25b79f5ba6ef89dcb223088d508d938 100644 (file)
@@ -1,3 +1,9 @@
+2004-09-22  Daniel Berlin <dberlin@dberlin.org>
+
+       Fix PR tree-optimization/17587
+       * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
+       (insert_aux): Instead of here.
+
 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
 
        PR tree-optimization/16721
index 2c9b4ee5c5c9774c11440548f3d356c8f82cd5ea..2408fff32794e8abae8c681ede841db15e1c2718 100644 (file)
@@ -1541,7 +1541,6 @@ insert_aux (basic_block block)
                                                                           eprime,
                                                                           stmts);
                                  bsi_insert_on_edge (pred, stmts);
-                                 bsi_commit_edge_inserts (NULL);
                                  avail[bprime->index] = builtexpr;
                                }                             
                            } 
@@ -1965,6 +1964,7 @@ static void
 fini_pre (void)
 {
   basic_block bb;
+  bsi_commit_edge_inserts (NULL);
 
   obstack_free (&grand_bitmap_obstack, NULL);
   free_alloc_pool (value_set_pool);