From: Philip Blundell Date: Sun, 28 Sep 2003 12:33:10 +0000 (+0000) Subject: arm.c (legitimize_pic_address): Check SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P. X-Git-Tag: releases/gcc-3.4.0~3431 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9442862280e806d61af78837bfe50b4a68848570;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 064679ba6082..5ca1fa6b0980 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 0ae19fc07f0f..a810791291ea 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);