From: Jeffrey A Law Date: Tue, 14 Aug 2001 23:30:16 +0000 (+0000) Subject: flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG note from its associate... X-Git-Tag: prereleases/libstdc++-3.0.95~2645 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abb788ba5b872f48e523a1f37fb7837fec4f0c44;p=thirdparty%2Fgcc.git flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG note from its associated jump. * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG note from its associated jump. From-SVN: r44910 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 082d4f8a5433..5a6cc13167ec 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__ diff --git a/gcc/flow.c b/gcc/flow.c index e2c1646e6c83..ca2cedd3c28d 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -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 {