From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30920 invoked by alias); 30 Aug 2013 10:39:38 -0000 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 Received: (qmail 30705 invoked by uid 55); 30 Aug 2013 10:39:36 -0000 From: "pinskia at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/58279] Interanl compiler error while pgo compilation at ipa-inline.c:902 Date: Fri, 30 Aug 2013 10:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-08/txt/msg01624.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58279 --- Comment #3 from pinskia at gmail dot com --- I have a fix which I hope to share in the next few weeks. Sent from my iPad On Aug 30, 2013, at 3:31 AM, "evstupac at gmail dot com" wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58279 > > --- Comment #2 from Stupachenko Evgeny --- > I can't share CoreMark sources. > However, you can get them at www.coremark.org when accept the license. > > The error caused by edge->count of new edges which is grater than max_count: > (line 902) > gcc_assert (max_count >= edge->count); > > The new edge is generated in case of indirect inline: > > (line 1517) > if (flag_indirect_inlining) > new_indirect_edges.create (8); > > and does not participate in max_count calculation, but refers to it when adding > to a heap: > > (lines 1724 and 1761) > if (flag_indirect_inlining) > add_new_edges_to_heap (edge_heap, new_indirect_edges); > > Updating max_count with new_edges counts resolves the ICE.