From: Richard Henderson Date: Sun, 29 Jul 2001 01:35:13 +0000 (-0700) Subject: * emit-rtl.c (adjust_address): Make a copy of the memory address. X-Git-Tag: prereleases/libstdc++-3.0.95~3000 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2f7bcc3c2e2fab32cec4190d494137fab5e4307;p=thirdparty%2Fgcc.git * emit-rtl.c (adjust_address): Make a copy of the memory address. From-SVN: r44442 --- 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