summaryrefslogtreecommitdiff
path: root/gcc/config/elxsi
diff options
context:
space:
mode:
authorbrendan <brendan@138bc75d-0d04-0410-961f-82ee72b054a4>1993-03-31 20:09:44 +0000
committerbrendan <brendan@138bc75d-0d04-0410-961f-82ee72b054a4>1993-03-31 20:09:44 +0000
commit145ccd50dff6a748f46ce3dbf59f0e068d78e44a (patch)
treeb0f64862f346f519af2235d5a83199df2c25a57a /gcc/config/elxsi
parentc2ee31c09ed9226794a47ebf6bd489eaf429f860 (diff)
downloadgcc-145ccd50dff6a748f46ce3dbf59f0e068d78e44a.tar.gz
define CONSTANT_ADDRESS_P(X) to not use CONST_DOUBLE
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3954 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/elxsi')
-rw-r--r--gcc/config/elxsi/elxsi.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/elxsi/elxsi.h b/gcc/config/elxsi/elxsi.h
index dbf5126c645..029a1abdf6a 100644
--- a/gcc/config/elxsi/elxsi.h
+++ b/gcc/config/elxsi/elxsi.h
@@ -522,7 +522,10 @@ enum reg_class { NO_REGS, GENERAL_REGS, ALL_REGS, LIM_REG_CLASSES };
/* 1 if X is an rtx for a constant that is a valid address. */
-#define CONSTANT_ADDRESS_P(X) CONSTANT_P (X)
+#define CONSTANT_ADDRESS_P(X) \
+ (GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
+ || GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
+ || GET_CODE (X) == HIGH)
/* Nonzero if the constant value X is a legitimate general operand.
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */