Commit 07f64b95 by Jim Wilson

(schedule_block): Do not emit line number notes before other notes.

From-SVN: r5020
parent 21432660
...@@ -3738,8 +3738,11 @@ schedule_block (b, file) ...@@ -3738,8 +3738,11 @@ schedule_block (b, file)
for (insn = head; insn != next_tail; insn = NEXT_INSN (insn)) for (insn = head; insn != next_tail; insn = NEXT_INSN (insn))
if (GET_CODE (insn) == NOTE && NOTE_LINE_NUMBER (insn) > 0) if (GET_CODE (insn) == NOTE && NOTE_LINE_NUMBER (insn) > 0)
line = insn; line = insn;
else if (! (GET_CODE (insn) == NOTE /* This used to emit line number notes before every non-deleted note.
&& NOTE_LINE_NUMBER (insn) == NOTE_INSN_DELETED) However, this confuses a debugger, because line notes not separated
by real instructions all end up at the same address. I can find no
use for line number notes before other notes, so none are emitted. */
else if (GET_CODE (insn) != NOTE
&& (note = LINE_NOTE (insn)) != 0 && (note = LINE_NOTE (insn)) != 0
&& note != line && note != line
&& (line == 0 && (line == 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment