diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-08 22:28:57 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-08 22:28:57 +0000 |
commit | 6484cd39e5d15b5cbf81b2fec65ae8d57c4233e4 (patch) | |
tree | 91fed8f92325207f6cd0a6c45b34728bfad0a24d /gcc/lcm.c | |
parent | 2ef10cdd835c8b4f32d3e735f3749547f77d8e73 (diff) | |
download | gcc-6484cd39e5d15b5cbf81b2fec65ae8d57c4233e4.tar.gz |
* lcm.c (optimize_mode_switching): Check whether an insn is a NOTE
before taking its NOTE_LINE_NUMBER.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38140 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lcm.c')
-rw-r--r-- | gcc/lcm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/lcm.c b/gcc/lcm.c index dc037970f64..25932d1c985 100644 --- a/gcc/lcm.c +++ b/gcc/lcm.c @@ -1269,7 +1269,9 @@ optimize_mode_switching (file) mode_set = gen_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, BASIC_BLOCK (ptr->bbnum)); else |