OSDN Git Service

Emit an error for too large arrays instead of an ICE.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Aug 2005 18:23:58 +0000 (18:23 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Aug 2005 18:23:58 +0000 (18:23 +0000)
commit31d32a045ca882131fe4d8b0fb2b78bdfb9c1da2
tree294db0f3f5e2ca5c3887b056ddfe2e74d2890bed
parenta6ed1ca0294dab57bcf2a813c716dc5b7ab0573c
Emit an error for too large arrays instead of an ICE.
PR tree-optimization/21105
* c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
TREE_OVERFLOW check.
* gcc.dg/large-size-array.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103164 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/large-size-array.c [new file with mode: 0644]