aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/pyr
diff options
context:
space:
mode:
authorBrendan Kehoe <brendan@gcc.gnu.org>1993-03-31 15:09:44 -0500
committerBrendan Kehoe <brendan@gcc.gnu.org>1993-03-31 15:09:44 -0500
commit6eff269e954a906bb2324013a9656d484dabceb2 (patch)
treeb0f64862f346f519af2235d5a83199df2c25a57a /gcc/config/pyr
parent6ec87b9de9a2749bacdeb1f0a382652c113607b4 (diff)
downloadgcc-6eff269e954a906bb2324013a9656d484dabceb2.zip
gcc-6eff269e954a906bb2324013a9656d484dabceb2.tar.gz
gcc-6eff269e954a906bb2324013a9656d484dabceb2.tar.bz2
define CONSTANT_ADDRESS_P(X) to not use CONST_DOUBLE
From-SVN: r3954
Diffstat (limited to 'gcc/config/pyr')
-rw-r--r--gcc/config/pyr/pyr.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/pyr/pyr.h b/gcc/config/pyr/pyr.h
index 163213a..758876c 100644
--- a/gcc/config/pyr/pyr.h
+++ b/gcc/config/pyr/pyr.h
@@ -829,7 +829,10 @@ extern int current_function_calls_alloca;
/* 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. */