Commit 25fa8bdc by Alexandre Oliva Committed by Alexandre Oliva

lcm.c (optimize_mode_switching): Check whether an insn is a NOTE before taking…

lcm.c (optimize_mode_switching): Check whether an insn is a NOTE before taking its NOTE_LINE_NUMBER.

* lcm.c (optimize_mode_switching): Check whether an insn is a NOTE
before taking its NOTE_LINE_NUMBER.

From-SVN: r38140
parent 583e347f
2000-12-08 Alexandre Oliva <aoliva@redhat.com>
* lcm.c (optimize_mode_switching): Check whether an insn is a NOTE
before taking its NOTE_LINE_NUMBER.
2000-12-08 Nick Clifton <nickc@redhat.com> 2000-12-08 Nick Clifton <nickc@redhat.com>
* config/arm/arm.md (load_indirect_jump): Add pool ranges. * config/arm/arm.md (load_indirect_jump): Add pool ranges.
......
...@@ -1269,7 +1269,9 @@ optimize_mode_switching (file) ...@@ -1269,7 +1269,9 @@ optimize_mode_switching (file)
mode_set = gen_sequence (); mode_set = gen_sequence ();
end_sequence (); end_sequence ();
if (NOTE_LINE_NUMBER (ptr->insn_ptr) == NOTE_INSN_BASIC_BLOCK) if (GET_CODE (ptr->insn_ptr) == NOTE
&& (NOTE_LINE_NUMBER (ptr->insn_ptr)
== NOTE_INSN_BASIC_BLOCK))
emit_block_insn_after (mode_set, ptr->insn_ptr, emit_block_insn_after (mode_set, ptr->insn_ptr,
BASIC_BLOCK (ptr->bbnum)); BASIC_BLOCK (ptr->bbnum));
else else
......
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