From 0430f80c2f301b6c6b4613197a78fa18053b7c81 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Tue, 30 Nov 2010 10:00:06 +0000 Subject: re PR lto/45949 (ICE: SIGSEGV in gimple_default_def (tree-dfa.c:538) with -flto/-fwhopr on invalid code) 2010-11-30 Richard Guenther PR lto/45949 * cgraphunit.c (ipa_passes): Stop after errors from small IPA passes. From-SVN: r167291 --- gcc/cgraphunit.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/cgraphunit.c') diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index c7c5665..c2bc071 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -1707,7 +1707,11 @@ ipa_passes (void) invoke_plugin_callbacks (PLUGIN_ALL_IPA_PASSES_START, NULL); if (!in_lto_p) - execute_ipa_pass_list (all_small_ipa_passes); + { + 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. */ -- cgit v1.1