aboutsummaryrefslogtreecommitdiff
path: root/gcc/coverage.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2011-12-30 18:22:16 +0000
committerNathan Sidwell <nathan@acm.org>2011-12-30 18:22:16 +0000
commit540975ddd9293fa90578e08a7e037abf1abf0549 (patch)
treeb11bd63164779cb7109aa20e284752f589cab45c /gcc/coverage.c
parent976e3796efe603e11cdfebf3c113025ae9c6d6ac (diff)
* 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: https://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);