aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-04-26 19:15:25 -0700
committerRichard Henderson <rth@gcc.gnu.org>2003-04-26 19:15:25 -0700
commit12969f45d3d34a5555fbce2c7ac9445950d68350 (patch)
tree5ada03463b36b917e37535ddb75f025528b7ecac /gcc
parent0a57102f8f16e947421334b83d65853075aa20d8 (diff)
downloadgcc-12969f45d3d34a5555fbce2c7ac9445950d68350.zip
gcc-12969f45d3d34a5555fbce2c7ac9445950d68350.tar.gz
gcc-12969f45d3d34a5555fbce2c7ac9445950d68350.tar.bz2
i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
* config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P. (ix86_expand_call, ix86_rtx_consts): Likewise. From-SVN: r66128
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0f83a2b..060609e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-26 Richard Henderson <rth@redhat.com>
+
+ * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
+ (ix86_expand_call, ix86_rtx_consts): Likewise.
+
2003-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* doc/md.texi (cmpstr): Document additional restrictions.
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index b707623..1bf50cb 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -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, callarg1, callarg2, pop, sibcall)
/* 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, total)
&& (!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;