From 55107ee39c2c539883270a2a9e050a4ec406ac58 Mon Sep 17 00:00:00 2001 From: Andrew MacLeod Date: Tue, 10 Apr 2001 02:47:32 +0000 Subject: function.c (purge_single_hard_subreg_set): Only check REGNO if the subreg was a hard register. 2001-04-10 Andrew MacLeod * function.c (purge_single_hard_subreg_set): Only check REGNO if the subreg was a hard register. Pseudos are left as subregs. From-SVN: r41217 --- gcc/function.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/function.c') diff --git a/gcc/function.c b/gcc/function.c index ee18258..a561d8e 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; -- cgit v1.1