re PR c/25309 (ICE on initialization of a huge array)
authorJoseph Myers <joseph@codesourcery.com>
Wed, 26 Sep 2007 12:32:27 +0000 (13:32 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 26 Sep 2007 12:32:27 +0000 (13:32 +0100)
commit7bfcb402eab7dbcf0108c5b9682a8b409fad4359
treef9e25dc097a9407299c63b509b39e45c44233eae
parent15caa2abe98b8a46bb0225da1d81e585d904d5f2
re PR c/25309 (ICE on initialization of a huge array)

PR c/25309
* c-common.c (complete_array_type): Diagnose too-large arrays and
set type to error_mark_node.

testsuite:
* gcc.dg/large-size-array-2.c: Expect diagnostic for too-large
array.
* gcc.dg/large-size-array-4.c: New.  Copy of large-size-array-2.c
without -O2.

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