aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r--gcc/rtlanal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index e99ef7bf772..094202d1af4 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -5606,7 +5606,8 @@ get_base_term (rtx *inner)
inner = strip_address_mutations (&XEXP (*inner, 0));
if (REG_P (*inner)
|| MEM_P (*inner)
- || GET_CODE (*inner) == SUBREG)
+ || GET_CODE (*inner) == SUBREG
+ || GET_CODE (*inner) == SCRATCH)
return inner;
return 0;
}