tree-ssa-alias.c (push_fields_onto_fieldstack): Remove bogus assert.
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 28 Apr 2005 07:58:29 +0000 (07:58 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 28 Apr 2005 07:58:29 +0000 (07:58 +0000)
* tree-ssa-alias.c (push_fields_onto_fieldstack): Remove bogus
assert.

From-SVN: r98916

gcc/ChangeLog
gcc/tree-ssa-alias.c

index 9e6e01d..282d873 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-28  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * tree-ssa-alias.c (push_fields_onto_fieldstack): Remove bogus
+       assert.
+
 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
 
        * modulo-sched.c, tree-stdarg.c: Use targetm.foo instead of
index a723e2a..5e796c1 100644 (file)
@@ -2824,14 +2824,6 @@ push_fields_onto_fieldstack (tree type, VEC(fieldoff_s,heap) **fieldstack,
   tree field;
   int count = 0;
 
-  /* Although there is nothing wrong per se with a structure whose
-     first field does not start at offset 0, there appeared to be an
-     Ada bug where the first field's offset was not zero, but the
-     field itself was at offset zero.  Make sure that doesn't
-     reoccur.  */
-  gcc_assert (!TYPE_FIELDS (type)
-             || TREE_CODE (TYPE_FIELDS (type)) != FIELD_DECL
-             || !bitpos_of_field (TYPE_FIELDS (type)));
   for (field = TYPE_FIELDS (type); field; field = TREE_CHAIN (field))
     if (TREE_CODE (field) == FIELD_DECL)
       {