OSDN Git Service

* emit-rtl.c (set_mem_attributes_minus_bitpos): Remove TYPE_NEEDS_CONSTRUCTING
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Jun 2010 10:41:42 +0000 (10:41 +0000)
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Jun 2010 10:41:42 +0000 (10:41 +0000)
sanity check.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160530 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/emit-rtl.c

index d43615e..bc28909 100644 (file)
@@ -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.
index eb3ea93..55ed205 100644 (file)
@@ -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.  */