missed x86 symbol_ref_flag updates
Richard Henderson
rth@twiddle.net
Sun Apr 27 02:16:00 GMT 2003
* config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
(ix86_expand_call, ix86_rtx_consts): Likewise.
Index: i386.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.561
diff -c -p -d -u -r1.561 i386.c
--- i386.c 24 Apr 2003 15:53:20 -0000 1.561
+++ i386.c 26 Apr 2003 23:12:58 -0000
@@ -6603,7 +6603,7 @@ output_pic_addr_const (file, x, code)
case SYMBOL_REF:
assemble_name (file, XSTR (x, 0));
- if (!TARGET_MACHO && code == 'P' && ! SYMBOL_REF_FLAG (x))
+ if (!TARGET_MACHO && code == 'P' && ! SYMBOL_REF_LOCAL_P (x))
fputs ("@PLT", file);
break;
@@ -11643,7 +11643,7 @@ ix86_expand_call (retval, fnaddr, callar
/* Static functions and indirect calls don't need the pic register. */
if (! TARGET_64BIT && flag_pic
&& GET_CODE (XEXP (fnaddr, 0)) == SYMBOL_REF
- && ! SYMBOL_REF_FLAG (XEXP (fnaddr, 0)))
+ && ! SYMBOL_REF_LOCAL_P (XEXP (fnaddr, 0)))
use_reg (&use, pic_offset_table_rtx);
if (TARGET_64BIT && INTVAL (callarg2) >= 0)
@@ -14854,7 +14854,7 @@ ix86_rtx_costs (x, code, outer_code, tot
&& (!TARGET_64BIT
|| (!GET_CODE (x) != LABEL_REF
&& (GET_CODE (x) != SYMBOL_REF
- || !SYMBOL_REF_FLAG (x)))))
+ || !SYMBOL_REF_LOCAL_P (x)))))
*total = 1;
else
*total = 0;
More information about the Gcc-patches
mailing list