From 9442862280e806d61af78837bfe50b4a68848570 Mon Sep 17 00:00:00 2001 From: Philip Blundell Date: Sun, 28 Sep 2003 12:33:10 +0000 Subject: [PATCH] arm.c (legitimize_pic_address): Check SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P. 2003-09-28 Philip Blundell * 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 --- gcc/ChangeLog | 6 ++++++ gcc/config/arm/arm.c | 4 ++-- 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 + + * 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 * 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);