* [PATCH] Fix PR45949
@ 2010-11-29 18:42 Richard Guenther
0 siblings, 0 replies; only message in thread
From: Richard Guenther @ 2010-11-29 18:42 UTC (permalink / raw)
To: gcc-patches
We already don't run small IPA passes if there are errors. Don't
run regular IPA passes if there were errors from small IPA passes
either.
Bootstrap & regtest on x86_64-unknown-linux-gnu, pending. Will
apply if that succeeds.
Richard.
2010-11-29 Richard Guenther <rguenther@suse.de>
PR lto/45949
* cgraphunit.c (ipa_passes): Stop after errors from
small IPA passes.
Index: gcc/cgraphunit.c
===================================================================
*** gcc/cgraphunit.c (revision 167235)
--- gcc/cgraphunit.c (working copy)
*************** ipa_passes (void)
*** 1707,1713 ****
invoke_plugin_callbacks (PLUGIN_ALL_IPA_PASSES_START, NULL);
if (!in_lto_p)
! execute_ipa_pass_list (all_small_ipa_passes);
/* If pass_all_early_optimizations was not scheduled, the state of
the cgraph will not be properly updated. Update it now. */
--- 1707,1717 ----
invoke_plugin_callbacks (PLUGIN_ALL_IPA_PASSES_START, NULL);
if (!in_lto_p)
! {
! execute_ipa_pass_list (all_small_ipa_passes);
! if (seen_error ())
! return;
! }
/* If pass_all_early_optimizations was not scheduled, the state of
the cgraph will not be properly updated. Update it now. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-29 16:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-29 18:42 [PATCH] Fix PR45949 Richard Guenther
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).