From c2f7bcc3c2e2fab32cec4190d494137fab5e4307 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sat, 28 Jul 2001 18:35:13 -0700 Subject: [PATCH] * emit-rtl.c (adjust_address): Make a copy of the memory address. From-SVN: r44442 --- gcc/ChangeLog | 4 ++++ gcc/emit-rtl.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 42d3f44744f0..085ae8bf5635 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-07-28 Richard Henderson + + * emit-rtl.c (adjust_address): Make a copy of the memory address. + 2001-07-28 Richard Henderson * flow.c (add_to_mem_set_list): New function. diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 5c021772a347..46243cd0c23e 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 -- 2.47.2