diff options
Diffstat (limited to 'contrib/gcc/regrename.c')
-rw-r--r-- | contrib/gcc/regrename.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/gcc/regrename.c b/contrib/gcc/regrename.c index e725ee9..8c326c0 100644 --- a/contrib/gcc/regrename.c +++ b/contrib/gcc/regrename.c @@ -101,8 +101,12 @@ note_sets (rtx x, rtx set ATTRIBUTE_UNUSED, void *data) HARD_REG_SET *pset = (HARD_REG_SET *) data; unsigned int regno; int nregs; + + if (GET_CODE (x) == SUBREG) + x = SUBREG_REG (x); if (GET_CODE (x) != REG) return; + regno = REGNO (x); nregs = HARD_REGNO_NREGS (regno, GET_MODE (x)); |