This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Committed] Fix PR 25776, ICE doing IPA opts after error


I noticed that we were running the IPA passes if there was an error
had been emitted already which is wrong.  This caused an ICE because
we would cause early inline to work but not update the cgraph data.

Anyways the correct thing is to disable IPA passes if there was an
error.

Committed as approved by Honza in the bug report and a bootstrap on
x86_64-linux-gnu and i686-linux-gnu.

Thanks,
Andrew Pinski

ChangeLog:

	* cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
	or sorry count is non zero.

* g++.dg/other/error11.C: New test.


Attachment: t.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]