summaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-20 18:01:48 +0000
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-20 18:01:48 +0000
commit7d4ec7eb34b5d8c559609bad0ef546f1f1dae976 (patch)
treec04b7fb09921b181bb1ed9e59b5d02a685cba129 /gcc/emit-rtl.c
parent0b90fc76090deb69d98f5936727e157a2a4f7955 (diff)
downloadgcc-7d4ec7eb34b5d8c559609bad0ef546f1f1dae976.tar.gz
* emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
memory address space to the type's address space. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176528 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index c34e6d52ad4..f1b8eb93daf 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -1845,6 +1845,7 @@ set_mem_attributes_minus_bitpos (rtx ref, tree t, int objectp,
}
/* Now set the attributes we computed above. */
+ attrs.addrspace = TYPE_ADDR_SPACE (type);
set_mem_attrs (ref, &attrs);
/* If this is already known to be a scalar or aggregate, we are done. */