Commit 78778b9d by Richard Stallman

(LEGITIMATE_CONSTANT_P): Reject function addresses for now.

From-SVN: r4685
parent 4e75433b
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment