From: Richard Biener Date: Mon, 31 Oct 2016 12:52:23 +0000 (+0000) Subject: re PR lto/78129 (-Werror=suggest-final-types leads to -ENOSPC.) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=651795857809d5e504aa577c3912b98f4feaf397;p=gcc.git re PR lto/78129 (-Werror=suggest-final-types leads to -ENOSPC.) 2016-10-31 Richard Biener PR lto/78129 * lto.c (do_whole_program_analysis): Bail out after errors from WPA analysis. From-SVN: r241698 --- diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 4ce7ac76358..e350a13dc61 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,9 @@ +2016-10-31 Richard Biener + + PR lto/78129 + * lto.c (do_whole_program_analysis): Bail out after errors + from WPA analysis. + 2016-09-21 Kugan Vivekanandarajah * lto-partition.c: Include tree-vrp.h. diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 7256ff9547b..c1567ca2ca3 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -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 ");