mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-09 06:44:31 +08:00
recog.c (general_operand, [...]): Accept any mode for VOIDmode CONSTANT_P operands.
* recog.c (general_operand, nonimmediate_operand): Accept any mode for VOIDmode CONSTANT_P operands. From-SVN: r35350
This commit is contained in:
parent
e251e2a27f
commit
8acb2f2414
@ -1,3 +1,8 @@
|
||||
Sun Jul 30 20:51:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* recog.c (general_operand, nonimmediate_operand): Accept
|
||||
any mode for VOIDmode CONSTANT_P operands.
|
||||
|
||||
Sun Jul 30 20:42:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* gcse.c (try_replace_reg): Use validate_replace_rtx_subexp
|
||||
|
@ -907,7 +907,8 @@ general_operand (op, mode)
|
||||
return 0;
|
||||
|
||||
if (CONSTANT_P (op))
|
||||
return ((GET_MODE (op) == VOIDmode || GET_MODE (op) == mode)
|
||||
return ((GET_MODE (op) == VOIDmode || GET_MODE (op) == mode
|
||||
|| mode == VOIDmode)
|
||||
#ifdef LEGITIMATE_PIC_OPERAND_P
|
||||
&& (! flag_pic || LEGITIMATE_PIC_OPERAND_P (op))
|
||||
#endif
|
||||
@ -1159,7 +1160,8 @@ nonmemory_operand (op, mode)
|
||||
&& GET_MODE_CLASS (mode) != MODE_PARTIAL_INT)
|
||||
return 0;
|
||||
|
||||
return ((GET_MODE (op) == VOIDmode || GET_MODE (op) == mode)
|
||||
return ((GET_MODE (op) == VOIDmode || GET_MODE (op) == mode
|
||||
|| mode == VOIDmode)
|
||||
#ifdef LEGITIMATE_PIC_OPERAND_P
|
||||
&& (! flag_pic || LEGITIMATE_PIC_OPERAND_P (op))
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user