diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-29 01:35:13 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-29 01:35:13 +0000 |
commit | 6cc60c4dea369d97de6bdeb5dc26f025f47f9032 (patch) | |
tree | da66eccd4960db447d869347c2f671aae0f0ac2b /gcc/emit-rtl.c | |
parent | 054c53d80a3ba533efa739cac41a7930ed52f91a (diff) | |
download | gcc-6cc60c4dea369d97de6bdeb5dc26f025f47f9032.tar.gz |
* emit-rtl.c (adjust_address): Make a copy of the memory address.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44442 138bc75d-0d04-0410-961f-82ee72b054a4
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 5c021772a34..46243cd0c23 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 |