From: Richard Stallman Date: Sun, 26 Jul 1992 20:38:07 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a2e51a941cbc5ecbb5e839f685c5f1bac7d075a;p=gcc.git *** empty log message *** From-SVN: r1688 --- diff --git a/gcc/reload1.c b/gcc/reload1.c index afd2a17c1cc..fcf423625f6 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -3569,11 +3569,19 @@ forget_old_reloads_1 (x) { register int regno; int nr; + int offset = 0; + + /* note_stores does give us subregs of hard regs. */ + while (GET_CODE (x) == SUBREG) + { + offset += SUBREG_WORD (x); + x = SUBREG_REG (x); + } if (GET_CODE (x) != REG) return; - regno = REGNO (x); + regno = REGNO (x) + offset; if (regno >= FIRST_PSEUDO_REGISTER) nr = 1;