OSDN Git Service

(duplicate_loop_exit_test): Initialize copy to zero.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Jun 1994 20:50:28 +0000 (20:50 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Jun 1994 20:50:28 +0000 (20:50 +0000)
Emit jump to end lable if copy is still zero.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7519 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/jump.c

index f21f085..076f695 100644 (file)
@@ -2010,8 +2010,8 @@ static int
 duplicate_loop_exit_test (loop_start)
      rtx loop_start;
 {
-  rtx insn, set, p;
-  rtx copy, link;
+  rtx insn, set, p, link;
+  rtx copy = 0;
   int num_insns = 0;
   rtx exitcode = NEXT_INSN (JUMP_LABEL (next_nonnote_insn (loop_start)));
   rtx lastexit;
@@ -2155,7 +2155,7 @@ duplicate_loop_exit_test (loop_start)
 
   /* Now clean up by emitting a jump to the end label and deleting the jump
      at the start of the loop.  */
-  if (GET_CODE (copy) != BARRIER)
+  if (! copy || GET_CODE (copy) != BARRIER)
     {
       copy = emit_jump_insn_before (gen_jump (get_label_after (insn)),
                                    loop_start);