[PATCH] Fix IPA flattening ICE (PR ipa/82801)

Jakub Jelinek jakub@redhat.com
Tue Dec 12 20:27:00 GMT 2017


On Tue, Dec 12, 2017 at 12:11:05PM -0800, Andi Kleen wrote:
> Jakub Jelinek <jakub@redhat.com> writes:
> 
> > Hi!
> >
> > We ICE on the following testcase, because we first gather all cgraph nodes
> > in an array and then we walk it backwards and flatten_function anything
> > that has "flatten" attribute.  But flatten_function can result in cgraph
> > node removal and so we then try to dereference removed cgraph nodes.
> 
> I wonder if this fixes PR83346 too?

Yes, it does.

	Jakub



More information about the Gcc-patches mailing list