summaryrefslogtreecommitdiff
path: root/gcc/tree-phinodes.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-06 20:30:10 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-06 20:30:10 +0000
commit41ad616dd2b78a0c53a488448d00ad7a20c35153 (patch)
tree7aff0bd82f942c85e0e626a413ea79809f0f95e5 /gcc/tree-phinodes.c
parent12e7ff4ffdd6f9d092f5208879cea88fe277089d (diff)
downloadgcc-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/tree-phinodes.c')
-rw-r--r--gcc/tree-phinodes.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree-phinodes.c b/gcc/tree-phinodes.c
index 6e63ed4f8f6..52aee785e80 100644
--- a/gcc/tree-phinodes.c
+++ b/gcc/tree-phinodes.c
@@ -473,6 +473,10 @@ void
remove_phi_node (gimple_stmt_iterator *gsi, bool release_lhs_p)
{
gimple phi = gsi_stmt (*gsi);
+
+ if (release_lhs_p)
+ insert_debug_temps_for_defs (gsi);
+
gsi_remove (gsi, false);
/* If we are deleting the PHI node, then we should release the