diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2000-12-08 22:28:57 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2000-12-08 22:28:57 +0000 |
commit | 25fa8bdca29c8eae47f65b8d6a034801da69377b (patch) | |
tree | 91fed8f92325207f6cd0a6c45b34728bfad0a24d /gcc/lcm.c | |
parent | 583e347f78b58a7bcf5a6309cfd9b61a3532e39d (diff) | |
download | gcc-25fa8bdca29c8eae47f65b8d6a034801da69377b.tar.gz |
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
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 |