OSDN Git Service

* gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Nov 2001 21:51:53 +0000 (21:51 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Nov 2001 21:51:53 +0000 (21:51 +0000)
a nop-jump.

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

gcc/ChangeLog
gcc/gcse.c

index c909c1c..58d47b0 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 a69ed83..882835b 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.  */