OSDN Git Service

*** empty log message ***
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Jul 1992 21:06:59 +0000 (21:06 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Jul 1992 21:06:59 +0000 (21:06 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1598 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/loop.c

index 69520d7..52dc3b0 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 ();