https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84846

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
GCOV's intermediate format looks promising. Can it be used to generate zero
coverage data for .gcno files where no .gcda file is present? This is relevant
for example for projects which consist of multiple executables, to get a total
coverage view independent of the number of executables actually run during a
test.

Some additional thoughts/observations:

- Adding the base directory path (current directory at the time of compilation)
as a separate field to the output would be of massive value as it would make it
easier to recreate absolute source code paths from relative paths.
- An option to have output on standard output instead of file would be nice (no
more file operation/conflict in case of parallel processing)
- If the intermediate file format is intended for consumption by programs,
additions to the format should be done in a backwards compatible way (counter
example: addition of end_line_number to function data for example would have
broken parsing relying on 3 CSV fields per line)

Reply via email to