From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14488 invoked by alias); 2 May 2006 17:15:38 -0000 Received: (qmail 14472 invoked by alias); 2 May 2006 17:15:35 -0000 Date: Tue, 02 May 2006 17:15:00 -0000 Message-ID: <20060502171535.14471.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/25309] [4.0/4.1/4.2 Regression] ICE on initialization of a huge array In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sayle at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-05/txt/msg00195.txt.bz2 List-Id: ------- Comment #8 from sayle at gcc dot gnu dot org 2006-05-02 17:15 ------- Subject: Bug 25309 Author: sayle Date: Tue May 2 17:15:25 2006 New Revision: 113476 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113476 Log: 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. Added: branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/large-size-array-2.c Modified: branches/gcc-4_1-branch/gcc/ChangeLog branches/gcc-4_1-branch/gcc/c-typeck.c branches/gcc-4_1-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25309