summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-04 03:06:17 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-04 03:06:17 +0000
commit5da81630a9cdc2433cbd7bb7b7cbf74d3cc9a20a (patch)
treef4e8a84c3f2f38b75ca9d098c6c5ced784de7494 /gcc
parentb7339c3b57340728477dcf61cf9218ad17a1044e (diff)
downloadgcc-5da81630a9cdc2433cbd7bb7b7cbf74d3cc9a20a.tar.gz
* stmt.c (expand_loop_end): When copying the loop exit test,
do not walk into a nested loop. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26171 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/stmt.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 84e74eb8e39..59b6c958b0d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 15ac541c7fe..f5ae0c3e30b 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -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;