summaryrefslogtreecommitdiff
path: root/gcc/df-scan.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-17 23:41:36 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-17 23:41:36 +0000
commit3e3659e719f1f510830d783b1c5fcd240134b526 (patch)
tree8faead7c948ef1e160fbfaebf4e7d1cfab4b0b37 /gcc/df-scan.c
parent532cead7c9428d7385641c18dfba5c1c97944739 (diff)
downloadgcc-3e3659e719f1f510830d783b1c5fcd240134b526.tar.gz
gcc/
* df-scan.c (df_notes_rescan): Do nothing if the instruction does not yet have a basic block. * dse.c (find_shift_sequence): Don't set DF_NO_INSN_RESCAN. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128563 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/df-scan.c')
-rw-r--r--gcc/df-scan.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/df-scan.c b/gcc/df-scan.c
index 6c2c6fad58a..a1f71b03b6d 100644
--- a/gcc/df-scan.c
+++ b/gcc/df-scan.c
@@ -2004,6 +2004,10 @@ df_notes_rescan (rtx insn)
if (df->changeable_flags & DF_NO_INSN_RESCAN)
return;
+ /* Do nothing if the insn hasn't been emitted yet. */
+ if (!BLOCK_FOR_INSN (insn))
+ return;
+
df_grow_bb_info (df_scan);
df_grow_reg_info ();