]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2010-11-30 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Nov 2010 10:00:06 +0000 (10:00 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Nov 2010 10:00:06 +0000 (10:00 +0000)
PR lto/45949
* cgraphunit.c (ipa_passes): Stop after errors from
small IPA passes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167291 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cgraphunit.c

index ae75fe0469b8fc2b22b707e7c13a9f5e8d450067..e52316ab80139280cd58681e9e9e9e4ee3b5a4ab 100644 (file)
@@ -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.
index c7c566540f0082c2c5fd815544d30707c5d9dbae..c2bc071e7cda22ca3affa842aeb17568f809bc02 100644 (file)
@@ -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.  */