aboutsummaryrefslogtreecommitdiff
path: root/gcc/flow.c
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2001-12-06 14:39:11 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>2001-12-06 14:39:11 +0000
commit69da3e3a727f6a4eda08eef287ecdbfd9e602806 (patch)
treea56c3ea9262b7441ab7c0a421a09a36f2b11c217 /gcc/flow.c
parentf189c7caeab86e208a54b85419dcfe8b331c0f63 (diff)
downloadgcc-69da3e3a727f6a4eda08eef287ecdbfd9e602806.zip
gcc-69da3e3a727f6a4eda08eef287ecdbfd9e602806.tar.gz
gcc-69da3e3a727f6a4eda08eef287ecdbfd9e602806.tar.bz2
flow.c (find_regno_partial): Return register, not the expression the register is in.
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
Diffstat (limited to 'gcc/flow.c')
-rw-r--r--gcc/flow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index cf7d4a0..2e0f6ec 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -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;