diff options
author | Richard Henderson <rth@redhat.com> | 2001-09-21 14:06:18 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-09-21 14:06:18 -0700 |
commit | 8a9a857e915a5dda2cc01ce50fb1a7e52a14e243 (patch) | |
tree | f3ebd10698c0606a2ff6227103bfdd07e5e9f827 /gcc | |
parent | 24ee7caee0c4b7e4b090652ebe2941f80a734646 (diff) | |
download | gcc-8a9a857e915a5dda2cc01ce50fb1a7e52a14e243.zip gcc-8a9a857e915a5dda2cc01ce50fb1a7e52a14e243.tar.gz gcc-8a9a857e915a5dda2cc01ce50fb1a7e52a14e243.tar.bz2 |
reload.c (push_secondary_reload): Don't check for "=" in output constraint after ""->ALL_REGS check.
* reload.c (push_secondary_reload): Don't check for "=" in output
constraint after ""->ALL_REGS check.
From-SVN: r45739
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/reload.c | 13 |
2 files changed, 13 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ceda15c..be9aee1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2001-09-21 Richard Henderson <rth@redhat.com> + * reload.c (push_secondary_reload): Don't check for "=" in output + constraint after ""->ALL_REGS check. + +2001-09-21 Richard Henderson <rth@redhat.com> + * predict.c (expected_value_to_br_prob): Use pc_set. * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by diff --git a/gcc/reload.c b/gcc/reload.c index 99e4c6e..8e6d2b3 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -381,13 +381,16 @@ push_secondary_reload (in_p, x, opnum, optional, reload_class, reload_mode, insn_class = (insn_letter == 'r' ? GENERAL_REGS : REG_CLASS_FROM_LETTER ((unsigned char) insn_letter)); - } - if (insn_class == NO_REGS - || (in_p + if (insn_class == NO_REGS) + abort (); + if (in_p && insn_data[(int) icode].operand[!in_p].constraint[0] != '=') - /* The scratch register's constraint must start with "=&". */ - || insn_data[(int) icode].operand[2].constraint[0] != '=' + abort (); + } + + /* The scratch register's constraint must start with "=&". */ + if (insn_data[(int) icode].operand[2].constraint[0] != '=' || insn_data[(int) icode].operand[2].constraint[1] != '&') abort (); |