GCOV: add support for lines with an unexecuted lines.
commit3cf7fddf54b5160e83236f1b9b3129e2a3a417c6
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Oct 2017 11:57:43 +0000 (31 11:57 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Oct 2017 11:57:43 +0000 (31 11:57 +0000)
tree2834b8b25186936729ec0a78931fe0cb902c62a0
parentc536c15fe32bef548d214f961a8d0a21e936b997
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254259 138bc75d-0d04-0410-961f-82ee72b054a4
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