From c6096c5e3d481ec630eaa1661aa22568b1e47b52 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Thu, 16 Jul 1992 21:06:59 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r1598 --- gcc/loop.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gcc/loop.c b/gcc/loop.c index 69520d76fd2..52dc3b0a1ba 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 (); -- 2.30.2