summaryrefslogtreecommitdiff
path: root/gcc/regrename.c
diff options
context:
space:
mode:
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-24 12:31:22 +0000
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-24 12:31:22 +0000
commitfeb9051277a06e6e63df4a9fe9e663556d1e8ebe (patch)
tree0a54555f464f8208dc7b02d40813d60da4509afb /gcc/regrename.c
parent9a7468ea9e5785dfedd6e0fcef02459b8c767a40 (diff)
downloadgcc-feb9051277a06e6e63df4a9fe9e663556d1e8ebe.tar.gz
* regrename.c (note_sets): Handle subregs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94157 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regrename.c')
-rw-r--r--gcc/regrename.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/regrename.c b/gcc/regrename.c
index f2ab1f10338..744f181bd18 100644
--- a/gcc/regrename.c
+++ b/gcc/regrename.c
@@ -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);