diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/emit-rtl.c | 7 |
2 files changed, 6 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d43615e..bc28909 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-06-10 Jan Hubicka <jh@suse.cz> + + * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove TYPE_NEEDS_CONSTRUCTING + sanity check. + 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com> * doc/include/fdl.texi: Move to GFDL version 1.3. diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index eb3ea93..55ed205 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. */ |