diff options
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/tree-cfg.c | 7 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 94ebbc4..7d780ba 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 4c5982d..cd77942 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -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); } |