summaryrefslogtreecommitdiff
path: root/gcc/tree-predcom.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-03 10:18:34 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-03 10:18:34 +0000
commitb6d5efe6ba3e17fcd2532c29069cb9274a7138fd (patch)
treeb4c8e8339f339b9a1f522518b5a467e2b6031771 /gcc/tree-predcom.c
parentc4a8eb0af541329f7ef3f0401f28134a624cc781 (diff)
downloadgcc-b6d5efe6ba3e17fcd2532c29069cb9274a7138fd.tar.gz
PR debug/53174
* tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being removed. * gcc.dg/pr53174.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187087 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-predcom.c')
-rw-r--r--gcc/tree-predcom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-predcom.c b/gcc/tree-predcom.c
index bef5252923e..1566902e3d7 100644
--- a/gcc/tree-predcom.c
+++ b/gcc/tree-predcom.c
@@ -1707,6 +1707,7 @@ remove_stmt (gimple stmt)
{
name = PHI_RESULT (stmt);
next = single_nonlooparound_use (name);
+ reset_debug_uses (stmt);
psi = gsi_for_stmt (stmt);
remove_phi_node (&psi, true);
@@ -1728,6 +1729,7 @@ remove_stmt (gimple stmt)
gcc_assert (TREE_CODE (name) == SSA_NAME);
next = single_nonlooparound_use (name);
+ reset_debug_uses (stmt);
mark_virtual_ops_for_renaming (stmt);
gsi_remove (&bsi, true);