]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/55487 (ICE in mark_jump_label_1, at jump.c:1134 compiling gcc.c-torture...
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Sat, 6 Apr 2013 17:42:27 +0000 (17:42 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 6 Apr 2013 17:42:27 +0000 (17:42 +0000)
PR target/55487
* config/pa/pa.c (legitimize_pic_address): Before incrementing label
nuses, make sure we have a label.

From-SVN: r197541

gcc/ChangeLog
gcc/config/pa/pa.c

index a753113d88ee87a0ba19fc03e7eb39e757074d3a..966b2224544f5bfb3303759f6b937eb9db60bbf7 100644 (file)
@@ -1,3 +1,9 @@
+2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       PR target/55487
+       * config/pa/pa.c (legitimize_pic_address): Before incrementing label
+       nuses, make sure we have a label.
+
 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
 
        PR target/56843
index c06513c567df9821d80c8fad037ecb12ec1eb60a..878883d6b3897721528cb1c034eeacb750a8864b 100644 (file)
@@ -792,7 +792,9 @@ legitimize_pic_address (rtx orig, enum machine_mode mode, rtx reg)
          /* Extract CODE_LABEL.  */
          orig = XEXP (orig, 0);
          add_reg_note (insn, REG_LABEL_OPERAND, orig);
-         LABEL_NUSES (orig)++;
+         /* Make sure we have label and not a note.  */
+         if (LABEL_P (orig))
+           LABEL_NUSES (orig)++;
        }
       crtl->uses_pic_offset_table = 1;
       return reg;