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
This commit is contained in:
parent
4586b4cadc
commit
91683ccda0
@ -1,3 +1,8 @@
|
||||
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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user