regrename.c (note_sets): Handle subregs.

* regrename.c (note_sets): Handle subregs.

Co-Authored-By: Aldy Hernandez <aldyh@redhat.com>

From-SVN: r94157
This commit is contained in:
Richard Henderson 2005-01-24 04:31:22 -08:00 committed by Aldy Hernandez
parent 2429f3d4c0
commit 226c62c799
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-01-24 Richard Henderson <rth@redhat.com>
Aldy Hernandez <aldyh@redhat.com>
* regrename.c (note_sets): Handle subregs.
2005-01-24 Joseph S. Myers <joseph@codesourcery.com>
PR bootstrap/18058

View File

@ -94,6 +94,9 @@ 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 (!REG_P (x))
return;
regno = REGNO (x);