]> gcc.gnu.org Git - gcc.git/commit
gcov: add info about "calls" to JSON output format
authorMartin Liska <mliska@suse.cz>
Thu, 6 Apr 2023 09:54:51 +0000 (11:54 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 25 Apr 2023 11:11:29 +0000 (13:11 +0200)
commit171fe0681ef91ecf29164d278ca5b064a6056f80
treea3c8fcb2126373d995b6e8a86a42b0ddda71ce44
parentdee5cef280d6c6da92b56cc0dc2158761c266992
gcov: add info about "calls" to JSON output format

gcc/ChangeLog:

* doc/gcov.texi: Document the new "calls" field and document
the API bump. Mention also "block_ids" for lines.
* gcov.cc (output_intermediate_json_line): Output info about
calls and extend branches as well.
(generate_results): Bump version to 2.
(output_line_details): Use block ID instead of a non-sensual
index.

gcc/testsuite/ChangeLog:

* g++.dg/gcov/gcov-17.C: Add call to a noreturn function.
* g++.dg/gcov/test-gcov-17.py: Cover new format.
* lib/gcov.exp: Add options for gcov that emit the extra info.
gcc/doc/gcov.texi
gcc/gcov.cc
gcc/testsuite/g++.dg/gcov/gcov-17.C
gcc/testsuite/g++.dg/gcov/test-gcov-17.py
gcc/testsuite/lib/gcov.exp
This page took 0.0561 seconds and 5 git commands to generate.