OSDN Git Service

* regrename.c (note_sets): Handle subregs.
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Jan 2005 12:31:22 +0000 (12:31 +0000)
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Jan 2005 12:31:22 +0000 (12:31 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94157 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/regrename.c

index d38a09c..c7005e7 100644 (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
index f2ab1f1..744f181 100644 (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);