From 78778b9db992d4a302c8385eec8503126012787b Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Thu, 17 Jun 1993 07:15:25 +0000 Subject: [PATCH] (LEGITIMATE_CONSTANT_P): Reject function addresses for now. From-SVN: r4685 --- gcc/config/pa/pa.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 4b6315b..57a7fd3 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -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. -- 2.7.4