re PR tree-optimization/51576 (Bootstrap failure with go)

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
This commit is contained in:
Jakub Jelinek 2011-12-16 16:20:35 +01:00 committed by Jakub Jelinek
parent a84bd8ba19
commit 511b44365a
2 changed files with 9 additions and 4 deletions

View 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

View 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);
}