aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/romp
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/romp
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/romp')
-rw-r--r--gcc/config/romp/romp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/romp/romp.h b/gcc/config/romp/romp.h
index aa48d4a..85c1b41 100644
--- a/gcc/config/romp/romp.h
+++ b/gcc/config/romp/romp.h
@@ -947,7 +947,10 @@ struct rt_cargs {int gregs, fregs; };
/* Recognize any constant value 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.