http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58279
--- Comment #3 from pinskia at gmail dot com <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" <gcc-bugzi...@gcc.gnu.org> wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58279 > > --- Comment #2 from Stupachenko Evgeny <evstupac at gmail dot com> --- > 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.