(LEGITIMATE_CONSTANT_P): Reject function addresses for now.

From-SVN: r4685
This commit is contained in:
Richard Stallman 1993-06-17 07:15:25 +00:00
parent 4e75433b46
commit 78778b9db9

View File

@ -1078,11 +1078,14 @@ extern union tree_node *current_function_decl;
&& (reload_in_progress || reload_completed || ! symbolic_expression_p (X)))
/* Include all constant integers and constant doubles, but not
floating-point, except for floating-point zero. */
floating-point, except for floating-point zero.
Also reject function labels as reload can not handle them correctly
right now. (Fix this for 2.5). */
#define LEGITIMATE_CONSTANT_P(X) \
(GET_MODE_CLASS (GET_MODE (X)) != MODE_FLOAT \
|| (X) == CONST0_RTX (GET_MODE (X)))
((GET_MODE_CLASS (GET_MODE (X)) != MODE_FLOAT \
|| (X) == CONST0_RTX (GET_MODE (X))) \
&& ! function_label_operand (X, VOIDmode))
/* Subroutine for EXTRA_CONSTRAINT.