This fixes leftovers in /tmp from -Werror=suggest-final-types.

Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.

Richard.

2016-10-31  Richard Biener  <rguent...@suse.de>

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

Index: gcc/lto/lto.c
===================================================================
--- gcc/lto/lto.c       (revision 241695)
+++ gcc/lto/lto.c       (working copy)
@@ -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 ");

Reply via email to