From c8d99a034c0433d663255476b39af4a7ed758f0d Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Thu, 22 Jul 1999 20:09:56 +0000 Subject: 990718, very close to release. testsuite temporarily removed from snapshots because of copyright checks. --- gnu/egcs/gcc/reload.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'gnu/egcs/gcc/reload.c') diff --git a/gnu/egcs/gcc/reload.c b/gnu/egcs/gcc/reload.c index 011f89955c6..d8b41363d36 100644 --- a/gnu/egcs/gcc/reload.c +++ b/gnu/egcs/gcc/reload.c @@ -3803,11 +3803,16 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) (insn_code_number < 0 ? 0 : insn_operand_strict_low[insn_code_number][i]), 1, i, operand_type[i]); - /* If a memory reference remains, yet we can't make an optional + /* If a memory reference remains (either as a MEM or a pseudo that + did not get a hard register), yet we can't make an optional reload, check if this is actually a pseudo register reference; we then need to emit a USE and/or a CLOBBER so that reload inheritance will do the right thing. */ - else if (replace && GET_CODE (operand) == MEM) + else if (replace + && (GET_CODE (operand) == MEM + || (GET_CODE (operand) == REG + && REGNO (operand) >= FIRST_PSEUDO_REGISTER + && reg_renumber [REGNO (operand)] < 0))) { operand = *recog_operand_loc[i]; -- cgit v1.2.3