Commit 94428622 by Philip Blundell Committed by Phil Blundell

arm.c (legitimize_pic_address): Check SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.

2003-09-28  Philip Blundell  <philb@gnu.org>

	* config/arm/arm.c (legitimize_pic_address): Check
	SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
	(arm_assemble_integer): Likewise.

From-SVN: r71881
parent f12b3fc8
2003-09-28 Philip Blundell <philb@gnu.org>
* config/arm/arm.c (legitimize_pic_address): Check
SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
(arm_assemble_integer): Likewise.
2003-09-28 Steven Bosscher <steven@gcc.gnu.org> 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
* config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c, * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
......
...@@ -2497,7 +2497,7 @@ legitimize_pic_address (rtx orig, enum machine_mode mode, rtx reg) ...@@ -2497,7 +2497,7 @@ legitimize_pic_address (rtx orig, enum machine_mode mode, rtx reg)
if ((GET_CODE (orig) == LABEL_REF if ((GET_CODE (orig) == LABEL_REF
|| (GET_CODE (orig) == SYMBOL_REF && || (GET_CODE (orig) == SYMBOL_REF &&
ENCODED_SHORT_CALL_ATTR_P (XSTR (orig, 0)))) SYMBOL_REF_LOCAL_P (orig)))
&& NEED_GOT_RELOC) && NEED_GOT_RELOC)
pic_ref = gen_rtx_PLUS (Pmode, pic_offset_table_rtx, address); pic_ref = gen_rtx_PLUS (Pmode, pic_offset_table_rtx, address);
else else
...@@ -9677,7 +9677,7 @@ arm_assemble_integer (rtx x, unsigned int size, int aligned_p) ...@@ -9677,7 +9677,7 @@ arm_assemble_integer (rtx x, unsigned int size, int aligned_p)
{ {
if (GET_CODE (x) == SYMBOL_REF if (GET_CODE (x) == SYMBOL_REF
&& (CONSTANT_POOL_ADDRESS_P (x) && (CONSTANT_POOL_ADDRESS_P (x)
|| ENCODED_SHORT_CALL_ATTR_P (XSTR (x, 0)))) || SYMBOL_REF_LOCAL_P (x)))
fputs ("(GOTOFF)", asm_out_file); fputs ("(GOTOFF)", asm_out_file);
else if (GET_CODE (x) == LABEL_REF) else if (GET_CODE (x) == LABEL_REF)
fputs ("(GOTOFF)", asm_out_file); fputs ("(GOTOFF)", asm_out_file);
......
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