From 0a2e51a941cbc5ecbb5e839f685c5f1bac7d075a Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sun, 26 Jul 1992 20:38:07 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r1688 --- gcc/reload1.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; -- 2.30.2