diff options
author | Richard Biener <rguenther@suse.de> | 2016-10-31 12:52:23 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2016-10-31 12:52:23 +0000 |
commit | 651795857809d5e504aa577c3912b98f4feaf397 (patch) | |
tree | 68727f95530fd06de4adad783deb7e411e99cb85 /gcc/lto | |
parent | 4cecd65999095eaa0535362beb9250f3c0419f9f (diff) | |
download | gcc-651795857809d5e504aa577c3912b98f4feaf397.zip gcc-651795857809d5e504aa577c3912b98f4feaf397.tar.gz gcc-651795857809d5e504aa577c3912b98f4feaf397.tar.bz2 |
re PR lto/78129 (-Werror=suggest-final-types leads to -ENOSPC.)
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
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/lto/lto.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 4ce7ac7..e350a13 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -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. diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 7256ff9..c1567ca 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 "); |