summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorpb <pb@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-28 12:33:10 +0000
committerpb <pb@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-28 12:33:10 +0000
commite052c34d519019f08c4804b2e7bfcbf722353e59 (patch)
treea5479bff7f741c6d4325a805168017a6981aef4b /gcc
parent4b7e50ec1ab20884f98f90674419472a7af982d1 (diff)
downloadgcc-e052c34d519019f08c4804b2e7bfcbf722353e59.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71881 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/arm/arm.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 064679ba608..5ca1fa6b098 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+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>
* config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 0ae19fc07f0..a810791291e 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -2497,7 +2497,7 @@ legitimize_pic_address (rtx orig, enum machine_mode mode, rtx reg)
if ((GET_CODE (orig) == LABEL_REF
|| (GET_CODE (orig) == SYMBOL_REF &&
- ENCODED_SHORT_CALL_ATTR_P (XSTR (orig, 0))))
+ SYMBOL_REF_LOCAL_P (orig)))
&& NEED_GOT_RELOC)
pic_ref = gen_rtx_PLUS (Pmode, pic_offset_table_rtx, address);
else
@@ -9677,7 +9677,7 @@ arm_assemble_integer (rtx x, unsigned int size, int aligned_p)
{
if (GET_CODE (x) == SYMBOL_REF
&& (CONSTANT_POOL_ADDRESS_P (x)
- || ENCODED_SHORT_CALL_ATTR_P (XSTR (x, 0))))
+ || SYMBOL_REF_LOCAL_P (x)))
fputs ("(GOTOFF)", asm_out_file);
else if (GET_CODE (x) == LABEL_REF)
fputs ("(GOTOFF)", asm_out_file);