diff options
author | Richard Henderson <rth@redhat.com> | 2001-07-28 18:35:13 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-07-28 18:35:13 -0700 |
commit | c2f7bcc3c2e2fab32cec4190d494137fab5e4307 (patch) | |
tree | da66eccd4960db447d869347c2f671aae0f0ac2b /gcc | |
parent | 91d84fadf41ff75390c74646305773f09d7ce153 (diff) | |
download | gcc-c2f7bcc3c2e2fab32cec4190d494137fab5e4307.zip gcc-c2f7bcc3c2e2fab32cec4190d494137fab5e4307.tar.gz gcc-c2f7bcc3c2e2fab32cec4190d494137fab5e4307.tar.bz2 |
* emit-rtl.c (adjust_address): Make a copy of the memory address.
From-SVN: r44442
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/emit-rtl.c | 3 |
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 |