]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Aug 2001 23:30:16 +0000 (23:30 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Aug 2001 23:30:16 +0000 (23:30 +0000)
note from its associated jump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44910 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/flow.c

index 082d4f8a543311cfef4406a3e499ebf1cc0e0ae4..5a6cc13167ec47727fb20812935f0442548b8295 100644 (file)
@@ -1,3 +1,8 @@
+Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
+
+       * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
+       note from its associated jump.
+
 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
  
        * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
index e2c1646e6c8337502fdd1a8e7de832a1281b12e6..ca2cedd3c28d7f34651480934d63e8ea947d2e8b 100644 (file)
@@ -2405,6 +2405,9 @@ commit_one_edge_insertion (e)
       if (GET_CODE (bb->end) == JUMP_INSN)
        {
          before = bb->end;
+         while (GET_CODE (PREV_INSN (before)) == NOTE
+                && NOTE_LINE_NUMBER (PREV_INSN (before)) == NOTE_INSN_LOOP_BEG)
+           before = PREV_INSN (before);
        }
       else
        {