https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71089
--- Comment #7 from Jan Hubicka <hubicka at ucw dot cz> --- > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71089 > > --- Comment #6 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- > (In reply to Jan Hubicka from comment #5) > > Hi, > > I reproduced the firefox ICE now (it needs -O3 instead of default flags). I > > am testing > > the following patch which fixes some confusion between thunk and non-thunk > > inline clones > > (there can be both, because we can first inline thunk, then inline into > > thunk and then > > inline the whole thing again) > > The segfault is gone, but I still see the ICE: > > lto1: internal compiler error: in lto_output_node, at lto-cgraph.c:473 I reproduce it too, I am looking into it now. I have also patch to fix the metrics to tell inliner that thunks are really cheap. Without this patch we inline a lot of thunks and seem to trip some itneresting cases for partitioning. Honza