aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-12-30 10:01:05 -0800
committerRichard Henderson <rth@gcc.gnu.org>2001-12-30 10:01:05 -0800
commitc81f560b4b42021dc89563d241dbe180c4861122 (patch)
treed1f32140216b7b12e4d64ccac4b7c4c675e47fc7 /gcc
parente9fef64c581d5893d6a8e836afbef0e76f75ecb9 (diff)
downloadgcc-c81f560b4b42021dc89563d241dbe180c4861122.zip
gcc-c81f560b4b42021dc89563d241dbe180c4861122.tar.gz
gcc-c81f560b4b42021dc89563d241dbe180c4861122.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/integrate.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 32d6170..15d4560 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-30 Richard Henderson <rth@redhat.com>
+
+ * integrate.c (copy_rtx_and_substitute): Fix error last change:
+ we need to unconditionally create a new mem.
+
2001-12-30 Hans-Peter Nilsson <hp@bitrange.com>
* config/mmix/mmix.md ("*call_real"): Fix typo in comment.
diff --git a/gcc/integrate.c b/gcc/integrate.c
index 47c4a4d..9143e0e 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