]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/51576 (Bootstrap failure with go)
authorJakub Jelinek <jakub@redhat.com>
Fri, 16 Dec 2011 15:20:35 +0000 (16:20 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 16 Dec 2011 15:20:35 +0000 (16:20 +0100)
PR tree-optimization/51576
* tree-cfg.c (replace_uses_by): Call maybe_clean_or_replace_eh_stmt
even if fold_stmt didn't change anything.

From-SVN: r182403

gcc/ChangeLog
gcc/tree-cfg.c

index 94ebbc499434d41cf68cdf9b2e3b976bff067a10..7d780ba3acea8c7634060bf3684c6bfb53c874bf 100644 (file)
@@ -1,3 +1,9 @@
+2011-12-16  Jakub Jelinek  <jakub@redhat.com>
+
+       PR tree-optimization/51576
+       * tree-cfg.c (replace_uses_by): Call maybe_clean_or_replace_eh_stmt
+       even if fold_stmt didn't change anything.
+
 2011-12-16  Richard Guenther  <rguenther@suse.de>
 
        PR lto/51572
index 4c5982dcd8dd4271a362dbb8033bd34fdbbbb9f4..cd779427b0f1f9803efb6ccfcd9ebfef8340769d 100644 (file)
@@ -1625,10 +1625,9 @@ replace_uses_by (tree name, tree val)
              }
 
          if (fold_stmt (&gsi))
-           {
-             stmt = gsi_stmt (gsi);
-             maybe_clean_or_replace_eh_stmt (orig_stmt, stmt);
-           }
+           stmt = gsi_stmt (gsi);
+
+         maybe_clean_or_replace_eh_stmt (orig_stmt, stmt);
 
          update_stmt (stmt);
        }