aboutsummaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-10-25 01:34:16 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-10-25 01:34:16 +0000
commitf77e39fc59c3343d695b3de390e6bfa7718df215 (patch)
treead2517b1d127681b4f38486df57dc5feea41c067 /gcc/haifa-sched.c
parent4b79993fd512c13fc94cfe8aad2f8387a7f614a1 (diff)
downloadgcc-f77e39fc59c3343d695b3de390e6bfa7718df215.zip
gcc-f77e39fc59c3343d695b3de390e6bfa7718df215.tar.gz
gcc-f77e39fc59c3343d695b3de390e6bfa7718df215.tar.bz2
haifa-sched.c (schedule_insns): Don't assign LUIDs differently depending on whether or not line-number notes...
* haifa-sched.c (schedule_insns): Don't assign LUIDs differently depending on whether or not line-number notes are present. From-SVN: r30151
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r--gcc/haifa-sched.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index 6fc1722..a92b73d 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -6858,7 +6858,16 @@ schedule_insns (dump_file)
for (b = 0; b < n_basic_blocks; b++)
for (insn = BLOCK_HEAD (b);; insn = NEXT_INSN (insn))
{
- INSN_LUID (insn) = luid++;
+ INSN_LUID (insn) = luid;
+
+ /* Increment the next luid, unless this is a note. We don't
+ really need separate IDs for notes and we don't want to
+ schedule differently depending on whether or not there are
+ line-number notes, i.e., depending on whether or not we're
+ generating debugging information. */
+ if (GET_CODE (insn) != NOTE)
+ ++luid;
+
if (insn == BLOCK_END (b))
break;
}