From 55107ee39c2c539883270a2a9e050a4ec406ac58 Mon Sep 17 00:00:00 2001 From: Andrew MacLeod Date: Tue, 10 Apr 2001 02:47:32 +0000 Subject: [PATCH] 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/ChangeLog | 5 +++++ gcc/function.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2a454762c40..dc5b07cbd6b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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. + 2001-04-29 Franz Sirl * Makefile.in (LIB2FUNCS_STATIC_EXTRA): New macro. 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; -- 2.30.2