From 948cd9a5651e2791baf8c59726bbeb34eb14b6eb Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Fri, 24 Oct 2014 08:23:01 +0000 Subject: [PATCH] Handle SCRATCH in decompose_address * rtlanal.c (get_base_term): Handle SCRATCH. From-SVN: r216624 --- gcc/ChangeLog | 4 ++++ gcc/rtlanal.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fa8674601a4..ac77c22d3f2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-10-24 Maxim Kuvyrkov + + * rtlanal.c (get_base_term): Handle SCRATCH. + 2014-10-24 Maxim Kuvyrkov * haifa-sched.c (sched_init): Disable max_issue when scheduling for diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 6459238db0d..153429074eb 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -5794,7 +5794,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; } -- 2.30.2