aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
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 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;