Re: [pushed] Only write gcov when file output is on [PR119553]

2025-04-01 Thread Richard Biener
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

[pushed] Only write gcov when file output is on [PR119553]

2025-03-31 Thread Jørgen Kvalsvik
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