aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2007-01-05 13:18:21 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2007-01-05 12:18:21 +0000
commit9477eb38c651080b94d228554d56fadf946949c1 (patch)
treede9a668f46ced74154f835f5f30b6ae827337155 /gcc/tree-inline.c
parentf17facacf2fcfc3af7a085990bc2618590c597c8 (diff)
downloadgcc-9477eb38c651080b94d228554d56fadf946949c1.zip
gcc-9477eb38c651080b94d228554d56fadf946949c1.tar.gz
gcc-9477eb38c651080b94d228554d56fadf946949c1.tar.bz2
tree-inline.c (fold_marked_statements): Update operand caches and EH after folding
* tree-inline.c (fold_marked_statements): Update operand caches and EH after folding From-SVN: r120477
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index bcfdd91..b3fc03f 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -2597,7 +2597,15 @@ fold_marked_statements (int first, struct pointer_set_t *statements)
for (bsi = bsi_start (BASIC_BLOCK (first));
!bsi_end_p (bsi); bsi_next (&bsi))
if (pointer_set_contains (statements, bsi_stmt (bsi)))
- fold_stmt (bsi_stmt_ptr (bsi));
+ {
+ tree old_stmt = bsi_stmt (bsi);
+ if (fold_stmt (bsi_stmt_ptr (bsi)))
+ {
+ update_stmt (bsi_stmt (bsi));
+ if (maybe_clean_or_replace_eh_stmt (old_stmt, bsi_stmt (bsi)))
+ tree_purge_dead_eh_edges (BASIC_BLOCK (first));
+ }
+ }
}
}