Hi. Following patch series improves the infrastructure, fixes couple of issues and hopefully improves also documentation of the functionality. I decided to split the changes into various patches to make it easier for reviewers.
Bootstraps and survives regression tests on ppc64le-linux-gnu and can generate LCOV HTML page for GCC (running test-suite). Martin marxin (8): gcno file: do not stream block flags (PR gcov-profile/80031). Remove .gcno file when compilation does not success (PR driver/56469). Simplify representation of locations of a block. Introduce new option -w which shows verbose informations. Make gcno more precise about BBs really belonging to a line (PR gcov-profile/79891). Fix format_gcov to not print misleading values (PR gcov-profile/53915) Sort options of gcov, gcov-dump and gcov-tool both in --help and documentation Enhance documentation of gcov. gcc/coverage.c | 12 + gcc/coverage.h | 1 + gcc/doc/gcov-dump.texi | 10 +- gcc/doc/gcov-tool.texi | 50 ++--- gcc/doc/gcov.texi | 143 ++++++------ gcc/gcov-dump.c | 24 +- gcc/gcov-io.h | 1 - gcc/gcov-tool.c | 10 +- gcc/gcov.c | 395 ++++++++++++++++----------------- gcc/profile.c | 42 ++-- gcc/testsuite/gcc.misc-tests/gcov-17.c | 30 +++ gcc/testsuite/gcc.misc-tests/gcov-18.c | 27 +++ gcc/toplev.c | 3 + 13 files changed, 391 insertions(+), 357 deletions(-) create mode 100644 gcc/testsuite/gcc.misc-tests/gcov-17.c create mode 100644 gcc/testsuite/gcc.misc-tests/gcov-18.c -- 2.12.2