Commit 27e430a2 by John David Anglin Committed by John David Anglin

re PR target/55487 (ICE in mark_jump_label_1, at jump.c:1134 compiling…

re PR target/55487 (ICE in mark_jump_label_1, at jump.c:1134 compiling gcc.c-torture/execute/pr51447.c at -O2 and above)

	PR target/55487
	* config/pa/pa.c (legitimize_pic_address): Before incrementing label
	nuses, make sure we have a label.

From-SVN: r197541
parent a2cc7735
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> 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
PR target/56843 PR target/56843
......
...@@ -792,6 +792,8 @@ legitimize_pic_address (rtx orig, enum machine_mode mode, rtx reg) ...@@ -792,6 +792,8 @@ legitimize_pic_address (rtx orig, enum machine_mode mode, rtx reg)
/* Extract CODE_LABEL. */ /* Extract CODE_LABEL. */
orig = XEXP (orig, 0); orig = XEXP (orig, 0);
add_reg_note (insn, REG_LABEL_OPERAND, orig); add_reg_note (insn, REG_LABEL_OPERAND, orig);
/* Make sure we have label and not a note. */
if (LABEL_P (orig))
LABEL_NUSES (orig)++; LABEL_NUSES (orig)++;
} }
crtl->uses_pic_offset_table = 1; crtl->uses_pic_offset_table = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment