From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30501 invoked by alias); 30 Aug 2013 10:39:34 -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 30465 invoked by uid 89); 30 Aug 2013 10:39:34 -0000 Received: from mail-pa0-f44.google.com (HELO mail-pa0-f44.google.com) (209.85.220.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 30 Aug 2013 10:39:34 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-pa0-f44.google.com Received: by mail-pa0-f44.google.com with SMTP id fz6so2174866pac.17 for ; Fri, 30 Aug 2013 03:39:31 -0700 (PDT) X-Received: by 10.68.200.100 with SMTP id jr4mr9301123pbc.0.1377859171349; Fri, 30 Aug 2013 03:39:31 -0700 (PDT) Received: from [192.168.1.51] (76-253-2-104.lightspeed.sntcca.sbcglobal.net. [76.253.2.104]) by mx.google.com with ESMTPSA id fo3sm28124550pbb.15.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 30 Aug 2013 03:39:30 -0700 (PDT) References: Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: Cc: "gcc-bugs@gcc.gnu.org" From: pinskia@gmail.com Subject: Re: [Bug ipa/58279] Interanl compiler error while pgo compilation at ipa-inline.c:902 Date: Fri, 30 Aug 2013 10:39:00 -0000 To: evstupac at gmail dot com X-SW-Source: 2013-08/txt/msg01623.txt.bz2 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=3D58279 >=20 > --- Comment #2 from Stupachenko Evgeny --- > I can't share CoreMark sources. > However, you can get them at www.coremark.org when accept the license. >=20 > The error caused by edge->count of new edges which is grater than max_cou= nt: > (line 902) > gcc_assert (max_count >=3D edge->count); >=20 > The new edge is generated in case of indirect inline: >=20 > (line 1517) > if (flag_indirect_inlining)=20=20=20=20 > new_indirect_edges.create (8); >=20 > and does not participate in max_count calculation, but refers to it when = adding > to a heap: >=20 > (lines 1724 and 1761) > if (flag_indirect_inlining)=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 > add_new_edges_to_heap (edge_heap, new_indirect_edges); >=20 > Updating max_count with new_edges counts resolves the ICE.