]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* regrename.c (note_sets): Handle subregs.
authorAldy Hernandez <aldyh@gcc.gnu.org>
Mon, 24 Jan 2005 12:37:40 +0000 (12:37 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Mon, 24 Jan 2005 12:37:40 +0000 (12:37 +0000)
From-SVN: r94159

gcc/regrename.c

index e725ee932daf6e8e26346b108ec883d6abd4ecbf..8c326c030ecda3ec1d4f924ea230438e56673a84 100644 (file)
@@ -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));