diff options
author | Nathan Sidwell <nathan@acm.org> | 2011-12-30 18:22:16 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2011-12-30 18:22:16 +0000 |
commit | bdbdc4e1cd20223c54e0ae4d1e31cc6ea78fa882 (patch) | |
tree | b11bd63164779cb7109aa20e284752f589cab45c /gcc/coverage.c | |
parent | 04dbc287a6679cf4c922df5ae7e575367d1e25bd (diff) | |
download | gcc-bdbdc4e1cd20223c54e0ae4d1e31cc6ea78fa882.zip gcc-bdbdc4e1cd20223c54e0ae4d1e31cc6ea78fa882.tar.gz gcc-bdbdc4e1cd20223c54e0ae4d1e31cc6ea78fa882.tar.bz2 |
gcov.c (total_lines, [...]): New global vars.
* 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.
From-SVN: r182744
Diffstat (limited to 'gcc/coverage.c')
-rw-r--r-- | gcc/coverage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/coverage.c b/gcc/coverage.c index 58a76ca..091e7e3 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); |