diff options
author | Richard Henderson <rth@cygnus.com> | 1999-02-14 15:02:16 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-02-14 15:02:16 -0800 |
commit | 59be65f6b509eac7a00f2e60d608d510f3acb915 (patch) | |
tree | a20d1a780d92a3078da894c8bf3107ea565f6daa | |
parent | c5d5d461419c704497a2635330bf0cd5c5014eab (diff) | |
download | gcc-59be65f6b509eac7a00f2e60d608d510f3acb915.zip gcc-59be65f6b509eac7a00f2e60d608d510f3acb915.tar.gz gcc-59be65f6b509eac7a00f2e60d608d510f3acb915.tar.bz2 |
i386.c (legitimate_pic_address_disp_p): Remove static.
* i386.c (legitimate_pic_address_disp_p): Remove static.
* i386.h (LEGITIMATE_PIC_OPERAND_P): Use it instead of
open-coding cases.
From-SVN: r25208
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 2 | ||||
-rw-r--r-- | gcc/config/i386/i386.h | 3 |
3 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a6e9718..d0ca761 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Sun Feb 14 23:01:28 1999 Richard Henderson <rth@cygnus.com> + + * i386.c (legitimate_pic_address_disp_p): Remove static. + * i386.h (LEGITIMATE_PIC_OPERAND_P): Use it instead of + open-coding cases. + Sun Feb 14 21:03:28 1999 Jeffrey A Law (law@cygnus.com) * except.c (start_catch_handler): Use emit_cmp_and_jump_insns. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index a64fa5d..ce05267 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -2549,7 +2549,7 @@ do { \ } \ } while (0) -static int +int legitimate_pic_address_disp_p (disp) register rtx disp; { diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index 718c719..e1456f9 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -1790,8 +1790,7 @@ do { \ that X satisfies CONSTANT_P or is a CONST_DOUBLE. */ #define LEGITIMATE_PIC_OPERAND_P(X) \ - (! SYMBOLIC_CONST (X) \ - || (GET_CODE (X) == SYMBOL_REF && CONSTANT_POOL_ADDRESS_P (X))) + (! SYMBOLIC_CONST (X) || legitimate_pic_address_disp_p (X)) #define SYMBOLIC_CONST(X) \ (GET_CODE (X) == SYMBOL_REF \ |