From 69da3e3a727f6a4eda08eef287ecdbfd9e602806 Mon Sep 17 00:00:00 2001 From: Andrew MacLeod Date: Thu, 6 Dec 2001 14:39:11 +0000 Subject: [PATCH] flow.c (find_regno_partial): Return register, not the expression the register is in. 2001-12-06 Andrew MacLeod * flow.c (find_regno_partial): Return register, not the expression the register is in. From-SVN: r47720 --- gcc/ChangeLog | 5 +++++ gcc/flow.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 32ab317840f..83cfb8f105d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-12-06 Andrew MacLeod + + * flow.c (find_regno_partial): Return register, not the expression + the register is in. + Thu Dec 6 09:24:12 2001 Richard Kenner * function.c (handle_epilogue_set): Check for FP setting case when diff --git a/gcc/flow.c b/gcc/flow.c index cf7d4a0fda8..2e0f6ecdc15 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;