* reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.

From-SVN: r44096
This commit is contained in:
Richard Henderson 2001-07-17 20:32:46 -07:00 committed by Richard Henderson
parent 3affaf2934
commit a7c07f1ef0
2 changed files with 16 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2001-07-17 Richard Henderson <rth@redhat.com>
* reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
2001-07-17 Richard Henderson <rth@redhat.com>
* calls.c (prepare_call_address): New parameter SIBCALLP. If true,

View File

@ -372,11 +372,18 @@ push_secondary_reload (in_p, x, opnum, optional, reload_class, reload_mode,
in operand 1. Outputs should have an initial "=", which we must
skip. */
char insn_letter
= insn_data[(int) icode].operand[!in_p].constraint[in_p];
enum reg_class insn_class
= (insn_letter == 'r' ? GENERAL_REGS
: REG_CLASS_FROM_LETTER ((unsigned char) insn_letter));
enum reg_class insn_class;
if (insn_data[(int) icode].operand[!in_p].constraint[0] == 0)
insn_class = ALL_REGS;
else
{
char insn_letter
= insn_data[(int) icode].operand[!in_p].constraint[in_p];
insn_class
= (insn_letter == 'r' ? GENERAL_REGS
: REG_CLASS_FROM_LETTER ((unsigned char) insn_letter));
}
if (insn_class == NO_REGS
|| (in_p