On Mon, Mar 31, 2025 at 7:54 PM Jørgen Kvalsvik wrote:
>
> gcov_write_* functions must be guarded so they only are called when
> output_to_file is true, like for -fcondition-coverage, otherwise it
> triggers an invalid read as detected by valgrind. The gcno file is
> mostly written to from profile
gcov_write_* functions must be guarded so they only are called when
output_to_file is true, like for -fcondition-coverage, otherwise it
triggers an invalid read as detected by valgrind. The gcno file is
mostly written to from profile.cc, so it doesn't make too much sense
to hide it in path-coverage