This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR78129
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 31 Oct 2016 13:48:14 +0100 (CET)
- Subject: [PATCH] Fix PR78129
- Authentication-results: sourceware.org; auth=none
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 <rguenther@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 ");