re PR lto/78129 (-Werror=suggest-final-types leads to -ENOSPC.)
authorRichard Biener <rguenther@suse.de>
Mon, 31 Oct 2016 12:52:23 +0000 (12:52 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 31 Oct 2016 12:52:23 +0000 (12:52 +0000)
2016-10-31  Richard Biener  <rguenther@suse.de>

PR lto/78129
* lto.c (do_whole_program_analysis): Bail out after errors
from WPA analysis.

From-SVN: r241698

gcc/lto/ChangeLog
gcc/lto/lto.c

index 4ce7ac76358be06a55844ffb5fb4be6d14842346..e350a13dc61fb56321f7369ea4505fe1087b1411 100644 (file)
@@ -1,3 +1,9 @@
+2016-10-31  Richard Biener  <rguenther@suse.de>
+
+       PR lto/78129
+       * lto.c (do_whole_program_analysis): Bail out after errors
+       from WPA analysis.
+
 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
 
        * lto-partition.c: Include tree-vrp.h.
index 7256ff9547baf0d27c8cc616b46ba4bcd325d6af..c1567ca2ca3a1d6f8e55338e9d41e5a7a973d845 100644 (file)
@@ -3092,6 +3092,10 @@ do_whole_program_analysis (void)
 
   execute_ipa_pass_list (g->get_passes ()->all_regular_ipa_passes);
 
+  /* When WPA analysis raises errors, do not bother to output anything.  */
+  if (seen_error ())
+    return;
+
   if (symtab->dump_file)
     {
       fprintf (symtab->dump_file, "Optimized ");