]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
stmt.c (expand_loop_end): When copying the loop exit test, do not walk into a nested...
authorJeffrey A Law <law@cygnus.com>
Sun, 4 Apr 1999 03:06:17 +0000 (03:06 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 4 Apr 1999 03:06:17 +0000 (20:06 -0700)
        * stmt.c (expand_loop_end): When copying the loop exit test,
        do not walk into a nested loop.

From-SVN: r26171

gcc/ChangeLog
gcc/stmt.c

index 84e74eb8e394e38892d9be04c6b55310d547c18f..59b6c958b0deb8fec2ec5d53fc77518173bbdba3 100644 (file)
@@ -1,3 +1,8 @@
+Sun Apr  4 04:05:04 1999  Jeffrey A Law  (law@cygnus.com)
+
+       * stmt.c (expand_loop_end): When copying the loop exit test,
+       do not walk into a nested loop.
+
 Sun Apr 4 01:15:04 PST 1999 Jeff Law  (law@cygnus.com)
 
        * version.c: Bump for snapshot.
index 15ac541c7fe84e38c776a2a7c5472002c3a94160..f5ae0c3e30b3509d2963e031fe823f14ee3de74a 100644 (file)
@@ -2219,6 +2219,10 @@ expand_end_loop ()
                    abort ();
                }
 
+             /* We must not walk into a nested loop.  */
+             if (NOTE_LINE_NUMBER (insn) == NOTE_INSN_LOOP_BEG)
+               break;
+
              /* We already know this INSN is a NOTE, so there's no
                 point in looking at it to see if it's a JUMP.  */
              continue;