i386.c (legitimate_pic_address_disp_p): Remove static.
authorRichard Henderson <rth@cygnus.com>
Sun, 14 Feb 1999 23:02:16 +0000 (15:02 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 14 Feb 1999 23:02:16 +0000 (15:02 -0800)
        * 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

gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.h

index a6e9718da520f9f66a42805215bb24d52a66c30a..d0ca76115bd18317369acc4d3bc8441b4b10345d 100644 (file)
@@ -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.
index a64fa5d0c894aaf6364ef2ec9e8c3cc0ca70b65a..ce05267dfa74f6546e2131905487511902c9b398 100644 (file)
@@ -2549,7 +2549,7 @@ do {                                                                      \
     }                                                                  \
 } while (0)
 
-static int
+int
 legitimate_pic_address_disp_p (disp)
      register rtx disp;
 {
index 718c719181752e16e3b69d0f1844b100a21ae0f7..e1456f9081cdc88c91418e20d69c0a82e3d12595 100644 (file)
@@ -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                                            \