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/emit-rtl.c | |
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/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |