emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting memory address space...
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 20 Jul 2011 18:01:48 +0000 (18:01 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Wed, 20 Jul 2011 18:01:48 +0000 (18:01 +0000)
* emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
memory address space to the type's address space.

From-SVN: r176528

gcc/ChangeLog
gcc/emit-rtl.c

index 1b47598ca6be2f7b91e4953e167cc712fd20afef..23fcd05c4f40945aefe2f312f0db09afa045a65c 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
+       memory address space to the type's address space.
+
 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
        
        PR target/36467
index c34e6d52ad4639096fb7a43466fa5dd397f92d73..f1b8eb93daf6de405d452f3b32d2bcbd2d18240d 100644 (file)
@@ -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.  */