From 3c80f7ed512d0f3c1a57e8fab76fbd53c8dd12b7 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 28 Oct 1992 17:03:55 -0500 Subject: [PATCH] (find_reloads_address): When copying memref after we've made recursive calls on it, copy any replacements we made. From-SVN: r2642 --- gcc/reload.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/reload.c b/gcc/reload.c index f5afa5fc566..2fc4f44c456 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -253,6 +253,7 @@ static int hard_reg_set_here_p (); /* static rtx forget_volatility (); */ static rtx subst_reg_equivs (); static rtx subst_indexed_address (); +void copy_replacements (); rtx find_equiv_reg (); static int find_inc_amount (); @@ -3636,6 +3637,7 @@ find_reloads_address (mode, memrefloc, ad, loc, operand, ind_levels) { rtx oldref = *memrefloc; *memrefloc = copy_rtx (*memrefloc); + copy_replacements (tem, XEXP (*memrefloc, 0)); loc = &XEXP (*memrefloc, 0); if (operand == oldref) operand = *memrefloc; -- 2.30.2