summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authoramacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-10 02:47:32 +0000
committeramacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-10 02:47:32 +0000
commit464d029c17531adcbde5aaf2601ea82332e20f31 (patch)
tree73cf310d19ebcac964b72a8ebb75329acf749c06 /gcc/function.c
parent1127b564833d2e0e3e536ee0ec0c28d30f2dafed (diff)
downloadgcc-464d029c17531adcbde5aaf2601ea82332e20f31.tar.gz
2001-04-10 Andrew MacLeod <amacleod@redhat.com>
* function.c (purge_single_hard_subreg_set): Only check REGNO if the subreg was a hard register. Pseudos are left as subregs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41217 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c
index ee182580c2a..a561d8eefe0 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -3456,7 +3456,7 @@ purge_single_hard_subreg_set (pattern)
}
- if (REGNO (reg) < FIRST_PSEUDO_REGISTER)
+ if (GET_CODE (reg) == REG && REGNO (reg) < FIRST_PSEUDO_REGISTER)
{
reg = gen_rtx_REG (mode, REGNO (reg) + offset);
SET_DEST (pattern) = reg;