diff options
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/sparc/sparc.c | 4 | 
2 files changed, 7 insertions, 2 deletions
| diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0de4ad0..9410ca5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-04-01  Eric Botcazou  <ebotcazou@libertysurf.fr> + +	* config/sparc/sparc.c (input_operand): Accept bare +	CONSTANT_P_RTX operands. +  2003-04-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>  	* gcse.c (struct ls_expr): Added pattern_regs field. diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index bb84f45..3d99ac9 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -1297,8 +1297,8 @@ input_operand (op, mode)    if (mode != VOIDmode && GET_MODE (op) != VOIDmode && mode != GET_MODE (op))      return 0; -  /* Only a tiny bit of handling for CONSTANT_P_RTX is necessary.  */ -  if (GET_CODE (op) == CONST && GET_CODE (XEXP (op, 0)) == CONSTANT_P_RTX) +  /* Accept CONSTANT_P_RTX, since it will be gone by CSE1 and result in 0/1.  */ +  if (GET_CODE (op) == CONSTANT_P_RTX)      return 1;    /* Allow any one instruction integer constant, and all CONST_INT | 
