From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17488 invoked by alias); 15 Nov 2011 15:16:17 -0000 Received: (qmail 17472 invoked by uid 22791); 15 Nov 2011 15:16:14 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 Nov 2011 15:16:01 +0000 From: "ohsumit at molbio dot mgh.harvard.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/50823] [4.7 Regression] ICE in inline_small_functions, at ipa-inline.c:1407 Date: Tue, 15 Nov 2011 15:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ohsumit at molbio dot mgh.harvard.edu X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-11/txt/msg01533.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50823 --- Comment #11 from Toshiro K. Ohsumi 2011-11-15 15:13:04 UTC --- When compiling an empty program, but with a large include with many templates, I note that there is a failure at line 1421 on ipa-inline.c. However, it seems only to occur when -O2 or -O3 is set. (Are these the only times inline optimizations are performed?) Unfortunately, I do not have a small test case. The includes come out to be about 2M in size. ohsumit@mothra:~> g++ --version g++ (GCC) 4.7.0 20111115 (experimental) Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ohsumit@mothra:~> g++ -Wall -DDEBUG -ggdb -O3 t1.cpp -o t1 t1.cpp:7:1: internal compiler error: in inline_small_functions, at ipa-inline.c:1421 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. ohsumit@mothra:~> g++ -Wall -DDEBUG -ggdb -O2 t1.cpp -o t1 t1.cpp:7:1: internal compiler error: in inline_small_functions, at ipa-inline.c:1421 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. ohsumit@mothra:~> g++ -Wall -DDEBUG -ggdb -O t1.cpp -o t1