From c81f560b4b42021dc89563d241dbe180c4861122 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 30 Dec 2001 10:01:05 -0800 Subject: [PATCH] integrate.c (copy_rtx_and_substitute): Fix error last change: we need to unconditionally create a new mem. * integrate.c (copy_rtx_and_substitute): Fix error last change: we need to unconditionally create a new mem. From-SVN: r48403 --- gcc/ChangeLog | 5 +++++ gcc/integrate.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 32d6170e192..15d4560af68 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-12-30 Richard Henderson + + * integrate.c (copy_rtx_and_substitute): Fix error last change: + we need to unconditionally create a new mem. + 2001-12-30 Hans-Peter Nilsson * config/mmix/mmix.md ("*call_real"): Fix typo in comment. diff --git a/gcc/integrate.c b/gcc/integrate.c index 47c4a4db135..9143e0e09e5 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -2263,9 +2263,9 @@ copy_rtx_and_substitute (orig, map, for_lhs) return validize_mem (force_const_mem (const_mode, constant)); } - copy = replace_equiv_address_nv (orig, - copy_rtx_and_substitute (XEXP (orig, 0), - map, 0)); + copy = gen_rtx_MEM (mode, copy_rtx_and_substitute (XEXP (orig, 0), + map, 0)); + MEM_COPY_ATTRIBUTES (copy, orig); /* If inlining and this is not for the LHS, turn off RTX_UNCHANGING_P since this may be an indirect reference to a parameter and the -- 2.30.2