summaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-10 10:41:42 +0000
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-10 10:41:42 +0000
commita62dc8783d3cc6bd865cab5414576dadf74dc4e2 (patch)
tree5e851201a87846337bdee04c9df3982c26cb3f36 /gcc/emit-rtl.c
parent3582b065ae38e6cd11a632d403ed80fccf054cc2 (diff)
downloadgcc-a62dc8783d3cc6bd865cab5414576dadf74dc4e2.tar.gz
* emit-rtl.c (set_mem_attributes_minus_bitpos): Remove TYPE_NEEDS_CONSTRUCTING
sanity check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160530 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index eb3ea93c9b3..55ed2054e4e 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -1668,12 +1668,7 @@ set_mem_attributes_minus_bitpos (rtx ref, tree t, int objectp,
if (base && DECL_P (base)
&& TREE_READONLY (base)
&& (TREE_STATIC (base) || DECL_EXTERNAL (base)))
- {
- tree base_type = TREE_TYPE (base);
- gcc_assert (!(base_type && TYPE_NEEDS_CONSTRUCTING (base_type))
- || DECL_ARTIFICIAL (base));
- MEM_READONLY_P (ref) = 1;
- }
+ MEM_READONLY_P (ref) = 1;
/* If this expression uses it's parent's alias set, mark it such
that we won't change it. */