summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-11-30 10:00:06 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-11-30 10:00:06 +0000
commit0430f80c2f301b6c6b4613197a78fa18053b7c81 (patch)
treef87d23d1c038cded9bdad14ea978d94d222adb25 /gcc
parent654e56c92e6e615f2147bb7b116f547b92b34a9a (diff)
downloadgcc-0430f80c2f301b6c6b4613197a78fa18053b7c81.tar.gz
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 <rguenther@suse.de> PR lto/45949 * cgraphunit.c (ipa_passes): Stop after errors from small IPA passes. From-SVN: r167291
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/cgraphunit.c6
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ae75fe0469b..e52316ab801 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2010-11-30 Richard Guenther <rguenther@suse.de>
+
+ PR lto/45949
+ * cgraphunit.c (ipa_passes): Stop after errors from
+ small IPA passes.
+
2010-11-30 Mingjie Xing <mingjie.xing@gmail.com>
* gcc-plugin.h: Include coretypes.h.
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index c7c566540f0..c2bc071e7cd 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. */