* config/pa/pa.c (legitimize_pic_address): Before incrementing label
nuses, make sure we have a label.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197541
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
/* 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;