aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-07-16 21:06:59 +0000
committerRichard Stallman <rms@gnu.org>1992-07-16 21:06:59 +0000
commitc6096c5e3d481ec630eaa1661aa22568b1e47b52 (patch)
tree328a71c0aa3e7021924d5a1b96aa273136773f67
parent2c31e123f2abb86e5168982738c23b51579223b5 (diff)
downloadgcc-c6096c5e3d481ec630eaa1661aa22568b1e47b52.zip
gcc-c6096c5e3d481ec630eaa1661aa22568b1e47b52.tar.gz
gcc-c6096c5e3d481ec630eaa1661aa22568b1e47b52.tar.bz2
*** empty log message ***
From-SVN: r1598
-rw-r--r--gcc/loop.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index 69520d76..52dc3b0 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -2270,10 +2270,13 @@ find_and_verify_loops (f)
and move the block of code to the spot we found. */
if (GET_CODE (p) == JUMP_INSN
- && JUMP_LABEL (p) != 0
- && condjump_p (p)
- && ! simplejump_p (p)
- && next_real_insn (JUMP_LABEL (p)) == our_next)
+ && JUMP_LABEL (p) != 0
+ /* Just ignore jumps to labels that were never emitted.
+ These always indicate compilation errors. */
+ && INSN_UID (JUMP_LABEL (p)) != 0
+ && condjump_p (p)
+ && ! simplejump_p (p)
+ && next_real_insn (JUMP_LABEL (p)) == our_next)
{
rtx target
= JUMP_LABEL (insn) ? JUMP_LABEL (insn) : get_last_insn ();