Commit 91683ccd by Nathan Sidwell Committed by Nathan Sidwell

c-decl.c (complete_array_type): Don't gratuitously copy maxindex.

	* c-decl.c (complete_array_type): Don't gratuitously copy
	maxindex.  Check it always has a type.

From-SVN: r85288
parent 4586b4ca
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.
......
......@@ -3250,7 +3250,6 @@ complete_array_type (tree type, tree initial_value, int do_default)
maxindex = fold (build (PLUS_EXPR, integer_type_node,
maxindex, integer_one_node));
}
maxindex = copy_node (maxindex);
}
else
{
......@@ -3274,7 +3273,7 @@ complete_array_type (tree type, tree initial_value, int do_default)
{
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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment