(choose_reload_regs): Verify reload_out[j != 0

before comparing with relaod_earlyclobber elements.

From-SVN: r3731
This commit is contained in:
Richard Stallman 1993-03-14 05:02:30 +00:00
parent b1e64e0d7f
commit 8bb44f9ab5

View File

@ -4183,7 +4183,7 @@ choose_reload_regs (insn, avoid_return_reg)
if (reload_when_needed[j] == RELOAD_OTHER if (reload_when_needed[j] == RELOAD_OTHER
&& ! reload_needed_for_multiple[j]) && ! reload_needed_for_multiple[j])
{ {
if (reload_in[j] == 0) if (reload_in[j] == 0 && reload_out[j] != 0)
{ {
/* But earlyclobber operands must stay as RELOAD_OTHER. */ /* But earlyclobber operands must stay as RELOAD_OTHER. */
for (i = 0; i < n_earlyclobbers; i++) for (i = 0; i < n_earlyclobbers; i++)