aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/emit-rtl.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 42d3f44..085ae8b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2001-07-28 Richard Henderson <rth@redhat.com>
+ * emit-rtl.c (adjust_address): Make a copy of the memory address.
+
+2001-07-28 Richard Henderson <rth@redhat.com>
+
* flow.c (add_to_mem_set_list): New function.
(init_propagate_block_info): Use it.
(mark_set_1): Likewise.
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 5c021772..46243cd 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -1636,6 +1636,9 @@ adjust_address (memref, mode, offset)
will do memref tracking. */
rtx addr = XEXP (memref, 0);
+ /* ??? Prefer to create garbage instead of creating shared rtl. */
+ addr = copy_rtx (addr);
+
/* If MEMREF is a LO_SUM and the offset is within the alignment of the
object, we can merge it into the LO_SUM. */
if (GET_MODE (memref) != BLKmode && GET_CODE (addr) == LO_SUM