aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorClinton Popetz <cpopetz@cygnus.com>2000-03-03 00:54:46 +0000
committerClinton Popetz <cpopetz@gcc.gnu.org>2000-03-02 19:54:46 -0500
commitdc5f5366aada3819fb9cdf35b69dac6174df64fc (patch)
treec7514b46803d700c648aa39d53534c5172a75e8a /gcc
parent83ecd27e96299f3cbcf0421151884d3ea0a31b4a (diff)
downloadgcc-dc5f5366aada3819fb9cdf35b69dac6174df64fc.zip
gcc-dc5f5366aada3819fb9cdf35b69dac6174df64fc.tar.gz
gcc-dc5f5366aada3819fb9cdf35b69dac6174df64fc.tar.bz2
i386.c: (constant_call_address_operand): Reject CONST_INT.
* config/i386/i386.c: (constant_call_address_operand): Reject CONST_INT. From-SVN: r32300
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 799ca9e..543b24e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 2f64d47..84bda81 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -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. */