From 71acd4776fee1ef3dfd961dd49967d00f11de7c5 Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Sat, 17 Jan 2015 01:06:29 +0000 Subject: [PATCH] Handle SCRATCH in decompose_address * rtlanal.c (get_base_term): Handle SCRATCH. From-SVN: r219788 --- gcc/ChangeLog | 4 ++++ gcc/rtlanal.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1d20442f3ab..8cc1dc7bf99 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-01-17 Maxim Kuvyrkov + + * rtlanal.c (get_base_term): Handle SCRATCH. + 2015-01-17 Maxim Kuvyrkov * config/aarch64/aarch64.c diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 4aadac22431..513feeb577b 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -5688,7 +5688,8 @@ get_index_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; } -- 2.30.2