summaryrefslogtreecommitdiff
path: root/gcc/coverage.c
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-30 18:22:16 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-30 18:22:16 +0000
commitf938168e5ef1866e292d0daa68617a699bc2e009 (patch)
treeb11bd63164779cb7109aa20e284752f589cab45c /gcc/coverage.c
parent6071b85b2e8962bbb12dc6cad177c19a440e84d8 (diff)
downloadgcc-f938168e5ef1866e292d0daa68617a699bc2e009.tar.gz
* gcov.c (total_lines, total_executed): New global vars.
(generate_results): Call executed_summary. (executed_summary): New function, broken out of ... (function_summary): ... here. Call it. * coverage.c (coverage_finish): Also check for local_tick == -1. * gcov-dump (tag_function): Correct labelling typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182744 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/coverage.c')
-rw-r--r--gcc/coverage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/coverage.c b/gcc/coverage.c
index 58a76cafadd..091e7e3e8c5 100644
--- a/gcc/coverage.c
+++ b/gcc/coverage.c
@@ -1119,7 +1119,7 @@ coverage_finish (void)
if (bbg_file_name && gcov_close ())
unlink (bbg_file_name);
- if (!local_tick)
+ if (!local_tick || local_tick == (unsigned)-1)
/* Only remove the da file, if we cannot stamp it. If we can
stamp it, libgcov will DTRT. */
unlink (da_file_name);