GCOV: add support for lines with an unexecuted lines.
authorMartin Liska <mliska@suse.cz>
Tue, 31 Oct 2017 11:57:43 +0000 (12:57 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 31 Oct 2017 11:57:43 +0000 (11:57 +0000)
commitcdb07de7c67cf0d04607ee8e85a659d8bf7594f6
tree2834b8b25186936729ec0a78931fe0cb902c62a0
parent28f4a4a85f3b95f7ccf7585eaa5cbd50cbe1677d
GCOV: add support for lines with an unexecuted lines.

2017-10-31  Martin Liska  <mliska@suse.cz>

* doc/gcov.texi: Document that.
* gcov.c (add_line_counts): Mark lines with a non-executed
statement.
(output_line_beginning): Handle such lines.
(output_lines): Pass new argument.
(output_intermediate_file): Print it in intermediate format.
2017-10-31  Martin Liska  <mliska@suse.cz>

* g++.dg/gcov/ternary.C: New test.
* g++.dg/gcov/gcov-threads-1.C (main): Update expected line
count.
* lib/gcov.exp: Support new format for intermediate file format.

From-SVN: r254259
gcc/ChangeLog
gcc/doc/gcov.texi
gcc/gcov.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gcov/gcov-threads-1.C
gcc/testsuite/g++.dg/gcov/ternary.C [new file with mode: 0644]
gcc/testsuite/lib/gcov.exp