Remove .gcno file when compilation does not success (PR driver/56469).
authorMartin Liska <mliska@suse.cz>
Fri, 28 Apr 2017 12:50:08 +0000 (14:50 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 28 Apr 2017 12:50:08 +0000 (12:50 +0000)
commit4ebcdc237376106b055412dfa71cbb0ca8c877e9
tree8df55b02af0f17c07bd6ef1dbbf9dce00b19f573
parent34769baf7d9d8e5545c478d85db3261c6dda3c89
Remove .gcno file when compilation does not success (PR driver/56469).

2017-04-28  Martin Liska  <mliska@suse.cz>

PR driver/56469
* coverage.c (coverage_remove_note_file): New function.
* coverage.h: Declare the function.
* toplev.c (finalize): Clean if an error has been seen.

From-SVN: r247371
gcc/ChangeLog
gcc/coverage.c
gcc/coverage.h
gcc/toplev.c