]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
flow.c (find_regno_partial): Return register, not the expression the register is in.
authorAndrew MacLeod <amacleod@redhat.com>
Thu, 6 Dec 2001 14:39:11 +0000 (14:39 +0000)
committerAndrew Macleod <amacleod@gcc.gnu.org>
Thu, 6 Dec 2001 14:39:11 +0000 (14:39 +0000)
2001-12-06  Andrew MacLeod <amacleod@redhat.com>

* flow.c (find_regno_partial): Return register, not the expression
the register is in.

From-SVN: r47720

gcc/ChangeLog
gcc/flow.c

index 32ab317840f77860312cfe291c65852b5b7be65d..83cfb8f105d192bf702a8645a95019ffa1a76921 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-06  Andrew MacLeod <amacleod@redhat.com>
+
+       * flow.c (find_regno_partial): Return register, not the expression
+       the register is in.
+
 Thu Dec  6 09:24:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
        * function.c (handle_epilogue_set): Check for FP setting case when
index cf7d4a0fda8f0ff9d99cd185653e668d29628543..2e0f6ecdc1503a8bcfaf80ca58e40879f1610bf3 100644 (file)
@@ -1327,7 +1327,7 @@ find_regno_partial (ptr, data)
       case STRICT_LOW_PART:
         if (GET_CODE (XEXP (*ptr, 0)) == REG && REGNO (XEXP (*ptr, 0)) == reg)
          {
-           param->retval = *ptr;
+           param->retval = XEXP (*ptr, 0);
            return 1;
          }
        break;
@@ -1336,7 +1336,7 @@ find_regno_partial (ptr, data)
         if (GET_CODE (SUBREG_REG (*ptr)) == REG 
            && REGNO (SUBREG_REG (*ptr)) == reg)
          {
-           param->retval = *ptr;
+           param->retval = SUBREG_REG (*ptr);
            return 1;
          }
        break;