*** empty log message ***
authorRichard Stallman <rms@gnu.org>
Thu, 16 Jul 1992 21:06:59 +0000 (21:06 +0000)
committerRichard Stallman <rms@gnu.org>
Thu, 16 Jul 1992 21:06:59 +0000 (21:06 +0000)
From-SVN: r1598

gcc/loop.c

index 69520d76fd200a30cef2087f3d62bba8dd31719c..52dc3b0a1ba0339d7539667faf5c169d9640c7a2 100644 (file)
@@ -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 ();