summaryrefslogtreecommitdiff
path: root/gcc/config/fx80
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/fx80')
-rw-r--r--gcc/config/fx80/fx80.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/fx80/fx80.h b/gcc/config/fx80/fx80.h
index 01f738dfff2..06acdfd0106 100644
--- a/gcc/config/fx80/fx80.h
+++ b/gcc/config/fx80/fx80.h
@@ -653,7 +653,10 @@ extern enum reg_class regno_reg_class[];
/* 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. */