diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-03-06 20:30:10 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-03-06 20:30:10 +0000 |
commit | 41ad616dd2b78a0c53a488448d00ad7a20c35153 (patch) | |
tree | 7aff0bd82f942c85e0e626a413ea79809f0f95e5 /gcc/gimple-iterator.c | |
parent | 12e7ff4ffdd6f9d092f5208879cea88fe277089d (diff) | |
download | gcc-41ad616dd2b78a0c53a488448d00ad7a20c35153.tar.gz |
PR debug/42897
* gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
permanently.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157259 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-iterator.c')
-rw-r--r-- | gcc/gimple-iterator.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gimple-iterator.c b/gcc/gimple-iterator.c index 9a3c382606e..7d5d61009b9 100644 --- a/gcc/gimple-iterator.c +++ b/gcc/gimple-iterator.c @@ -474,7 +474,8 @@ gsi_remove (gimple_stmt_iterator *i, bool remove_permanently) gimple_seq_node cur, next, prev; gimple stmt = gsi_stmt (*i); - insert_debug_temps_for_defs (i); + if (gimple_code (stmt) != GIMPLE_PHI) + insert_debug_temps_for_defs (i); /* Free all the data flow information for STMT. */ gimple_set_bb (stmt, NULL); |