recog.c (extract_insn): Set operand_mode according to operand if match_operand is VOIDmode.

* recog.c (extract_insn): Set operand_mode according to
	operand if match_operand is VOIDmode.

From-SVN: r35369
This commit is contained in:
Jan Hubicka 2000-07-31 08:42:26 +00:00 committed by Jan Hubicka
parent 22251f806b
commit e7adb6fbb7
2 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,9 @@
Mon Jul 31 10:36:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
Mon Jul 31 10:41:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
* recog.c (extract_insn): Set operand_mode according to
operand if match_operand is VOIDmode.
Mon Jul 31 10:36:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
* recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.

View File

@ -2076,6 +2076,9 @@ extract_insn (insn)
{
recog_data.constraints[i] = insn_data[icode].operand[i].constraint;
recog_data.operand_mode[i] = insn_data[icode].operand[i].mode;
/* VOIDmode match_operands gets mode from their real operand. */
if (recog_data.operand_mode[i] == VOIDmode)
recog_data.operand_mode[i] = GET_MODE (recog_data.operand[i]);
}
}
for (i = 0; i < noperands; i++)