OSDN Git Service

* flow.c (merge_blocks_nomove): Don't seek back past the bb note.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Aug 2000 22:16:32 +0000 (22:16 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Aug 2000 22:16:32 +0000 (22:16 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35827 138bc75d-0d04-0410-961f-82ee72b054a4

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;