* c-decl.c (complete_array_type): Don't gratuitously copy
maxindex. Check it always has a type.
From-SVN: r85288
+2004-07-29 Nathan Sidwell <nathan@codesourcery.com>
+
+ * c-decl.c (complete_array_type): Don't gratuitously copy
+ maxindex. Check it always has a type.
+
2004-07-29 Steven Bosscher <stevenb@suse.de>
* rtl.c (currently_expanding_to_rtl): New.
maxindex = fold (build (PLUS_EXPR, integer_type_node,
maxindex, integer_one_node));
}
- maxindex = copy_node (maxindex);
}
else
{
{
TYPE_DOMAIN (type) = build_index_type (maxindex);
if (!TREE_TYPE (maxindex))
- TREE_TYPE (maxindex) = TYPE_DOMAIN (type);
+ abort ();
}
/* Lay out the type now that we can get the real answer. */