aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-dom.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2005-05-16 16:14:02 -0700
committerRichard Henderson <rth@gcc.gnu.org>2005-05-16 16:14:02 -0700
commitaf47810aed761b3795572e0ae46b8c28fd09b5ee (patch)
tree33124791d9f4d0376ee20ed1b477125f15b3b1d3 /gcc/tree-ssa-dom.c
parentf59d2aade3edd34329cc69762bc7d155284b6c62 (diff)
downloadgcc-af47810aed761b3795572e0ae46b8c28fd09b5ee.zip
gcc-af47810aed761b3795572e0ae46b8c28fd09b5ee.tar.gz
gcc-af47810aed761b3795572e0ae46b8c28fd09b5ee.tar.bz2
re PR tree-optimization/21399 (libstdc++ 12077.cc ICE)
PR tree-opt/21399 * tree-eh.c (maybe_clean_or_replace_eh_stmt): Rename from maybe_clean_eh_stmt; take old stmt parameter. Update EH region data structure to match replacement. * tree-flow.h: Update to match. * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise. * tree-ssa-dom.c (optimize_stmt): Likewise. * tree-ssa-pre.c (eliminate): Likewise. * tree-ssa-propagate.c (substitute_and_fold): Likewise. Co-Authored-By: Steven Bosscher <stevenb@suse.de> From-SVN: r99801
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r--gcc/tree-ssa-dom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c
index 42c0c30..b827494 100644
--- a/gcc/tree-ssa-dom.c
+++ b/gcc/tree-ssa-dom.c
@@ -2946,11 +2946,11 @@ optimize_stmt (struct dom_walk_data *walk_data, basic_block bb,
block_stmt_iterator si)
{
stmt_ann_t ann;
- tree stmt;
+ tree stmt, old_stmt;
bool may_optimize_p;
bool may_have_exposed_new_symbols = false;
- stmt = bsi_stmt (si);
+ old_stmt = stmt = bsi_stmt (si);
update_stmt_if_modified (stmt);
ann = stmt_ann (stmt);
@@ -3055,7 +3055,7 @@ optimize_stmt (struct dom_walk_data *walk_data, basic_block bb,
/* If we simplified a statement in such a way as to be shown that it
cannot trap, update the eh information and the cfg to match. */
- if (maybe_clean_eh_stmt (stmt))
+ if (maybe_clean_or_replace_eh_stmt (old_stmt, stmt))
{
bitmap_set_bit (need_eh_cleanup, bb->index);
if (dump_file && (dump_flags & TDF_DETAILS))