gcse.c (cprop_jump): Clear JUMP_LABEL field when we create a nop-jump.
authorJeff Law <law@gcc.gnu.org>
Mon, 19 Nov 2001 21:51:53 +0000 (14:51 -0700)
committerJeff Law <law@gcc.gnu.org>
Mon, 19 Nov 2001 21:51:53 +0000 (14:51 -0700)
* gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
a nop-jump.

From-SVN: r47183

gcc/ChangeLog
gcc/gcse.c

index c909c1cf61fe3e2728835830d0e3e2507b175a4b..58d47b0ab719774894fe39f8a0f1bacb2ed02cb5 100644 (file)
@@ -1,4 +1,9 @@
-2001-11-19  Neil Booth  <neil@daikokuya.demon.co.uk>
+2001-11-19  Jeff Law <law@redhat.com>
+
+       * gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
+       a nop-jump.
+
+2000-11-19  Neil Booth  <neil@daikokuya.demon.co.uk>
 
        * cppmacro.c (_cpp_backup_tokens): Revert previous check-in.
        Don't fall off the base token run.
index a69ed83457104446f94783d96721a1cb0a47915c..882835ba3c669a3b55e65c9006b2abe85027692b 100644 (file)
@@ -4043,7 +4043,10 @@ cprop_jump (bb, insn, from, src)
       SET_SRC (set) = new;
 
       if (JUMP_LABEL (insn) != 0)
-       --LABEL_NUSES (JUMP_LABEL (insn));
+       {
+         --LABEL_NUSES (JUMP_LABEL (insn));
+         JUMP_LABEL (insn) = NULL_RTX;
+       }
     }
 
   /* Otherwise, this must be a valid instruction.  */