aboutsummaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2011-07-20 18:01:48 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2011-07-20 18:01:48 +0000
commitd05f35643be286f2cb4c10284d053ec13f48de04 (patch)
treec04b7fb09921b181bb1ed9e59b5d02a685cba129 /gcc/emit-rtl.c
parent8c352fa8edadc62089e29ade8fd59e0a281645fa (diff)
downloadgcc-d05f35643be286f2cb4c10284d053ec13f48de04.zip
gcc-d05f35643be286f2cb4c10284d053ec13f48de04.tar.gz
gcc-d05f35643be286f2cb4c10284d053ec13f48de04.tar.bz2
emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting memory address space to the type's address space.
* emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting memory address space to the type's address space. From-SVN: r176528
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 c34e6d5..f1b8eb9 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. */