re PR c/25309 (ICE on initialization of a huge array)
authorRoger Sayle <roger@eyesopen.com>
Fri, 28 Apr 2006 19:59:57 +0000 (19:59 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Fri, 28 Apr 2006 19:59:57 +0000 (19:59 +0000)
commita0f0ab9fc19dea21076d7b4d7e8b8c5c32b78455
treea6a89ff234f97fde1db810e9fc1190006ae95009
parent87ceee72364d3777b7fb602f60cde99c2c66fe41
re PR c/25309 (ICE on initialization of a huge array)

PR c/25309
* c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
(push_array_bounds): Delete prototype.  Change BOUNDS argument to
an unsigned HOST_WIDE_INT.
(print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
array index.
(really_start_incremental_init): No need to call convert because
bitsize_zero_node is already of type bitsizetype.
(push_init_level): Extract the value of constructor_index as an
unsigned HOST_WIDE_INT quantity, using tree_low_cst.
(process_init_element): Likewise.

* gcc.dg/large-size-array-2.c: New test case.

From-SVN: r113355
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/large-size-array-2.c [new file with mode: 0644]