From 8908158db387544f2bf19409617455766be8511f Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Mon, 24 May 1993 07:49:54 +0000 Subject: [PATCH] (choose_reload_regs): If inheriting a spill reg, and reload_out has a wider mode, just copy from that spill reg, don't use it for the reload. From-SVN: r4555 --- gcc/reload1.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/reload1.c b/gcc/reload1.c index d5288070ba8..d6c361daaf6 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -4835,7 +4835,11 @@ choose_reload_regs (insn, avoid_return_reg) reload_earlyclobbers[i1])) break; - if (i1 != n_earlyclobbers) + if (i1 != n_earlyclobbers + /* Don't really use the inherited spill reg + if we need it wider than we've got it. */ + || (GET_MODE_SIZE (reload_mode[r]) + > GET_MODE_SIZE (mode))) reload_override_in[r] = reg_last_reload_reg[regno]; else {