summaryrefslogtreecommitdiff
path: root/gcc/df-scan.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-29 12:14:47 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-29 12:14:47 +0000
commit86fc6921a23779b1f281aa35a5db1bd4ea555b5f (patch)
tree099818190b187b032b4dfe2e1e0061d89697cfca /gcc/df-scan.c
parent00efe249ebef940120e0cf4573e7489cb9ffddb8 (diff)
downloadgcc-86fc6921a23779b1f281aa35a5db1bd4ea555b5f.tar.gz
PR rtl-optimization/42889
* df.h (df_set_bb_dirty_nonlr): New prototype. * df-core.c (df_set_bb_dirty_nonlr): New function. * df-scan.c (df_insn_rescan): Call it instead of df_set_bb_dirty for DEBUG_INSNs. * gcc.dg/pr42889.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156344 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/df-scan.c')
-rw-r--r--gcc/df-scan.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/df-scan.c b/gcc/df-scan.c
index 6c8c42b0f7c..c3a3dc70c89 100644
--- a/gcc/df-scan.c
+++ b/gcc/df-scan.c
@@ -1301,7 +1301,10 @@ df_insn_rescan (rtx insn)
}
df_refs_add_to_chains (&collection_rec, bb, insn);
- df_set_bb_dirty (bb);
+ if (DEBUG_INSN_P (insn))
+ df_set_bb_dirty_nonlr (bb);
+ else
+ df_set_bb_dirty (bb);
VEC_free (df_ref, stack, collection_rec.def_vec);
VEC_free (df_ref, stack, collection_rec.use_vec);