i386.c: (constant_call_address_operand): Reject CONST_INT.
authorClinton Popetz <cpopetz@cygnus.com>
Fri, 3 Mar 2000 00:54:46 +0000 (00:54 +0000)
committerClinton Popetz <cpopetz@gcc.gnu.org>
Fri, 3 Mar 2000 00:54:46 +0000 (19:54 -0500)
* config/i386/i386.c: (constant_call_address_operand): Reject
CONST_INT.

From-SVN: r32300

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

index 799ca9e..543b24e 100644 (file)
@@ -1,3 +1,8 @@
+2000-03-02  Clinton Popetz  <cpopetz@cygnus.com>
+
+       * config/i386/i386.c: (constant_call_address_operand): Reject
+       CONST_INT.
+
 2000-03-02  Jason Merrill  <jason@casey.cygnus.com>
 
        * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
index 2f64d47..84bda81 100644 (file)
@@ -1088,7 +1088,9 @@ constant_call_address_operand (op, mode)
      rtx op;
      enum machine_mode mode ATTRIBUTE_UNUSED;
 {
-  return GET_CODE (op) == MEM && CONSTANT_ADDRESS_P (XEXP (op, 0));
+  return GET_CODE (op) == MEM && 
+        CONSTANT_ADDRESS_P (XEXP (op, 0)) && 
+        GET_CODE (XEXP (op, 0)) !=  CONST_INT;
 }
 
 /* Match exactly zero and one.  */