* flow.c (merge_blocks_nomove): Don't seek back past the bb note.
authorRichard Henderson <rth@cygnus.com>
Sun, 20 Aug 2000 22:16:32 +0000 (15:16 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 20 Aug 2000 22:16:32 +0000 (15:16 -0700)
From-SVN: r35827

gcc/ChangeLog
gcc/flow.c

index 1fd965f..9d1c66e 100644 (file)
@@ -1,3 +1,7 @@
+2000-08-20  Richard Henderson  <rth@cygnus.com>
+
+       * flow.c (merge_blocks_nomove): Don't seek back past the bb note.
+
 2000-08-20  Zack Weinberg  <zack@wolery.cumb.org>
 
        * cppinit.c (cpp_init): Set global flag when called.
index 98ed692..a1ea1a8 100644 (file)
@@ -2209,7 +2209,9 @@ merge_blocks_nomove (a, b)
       rtx prev;
 
       for (prev = PREV_INSN (a_end); ; prev = PREV_INSN (prev))
-       if (GET_CODE (prev) != NOTE || prev == a->head)
+       if (GET_CODE (prev) != NOTE
+           || NOTE_LINE_NUMBER (prev) == NOTE_INSN_BASIC_BLOCK
+           || prev == a->head)
          break;
 
       del_first = a_end;