aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/f95-lang.cc
diff options
context:
space:
mode:
authorJørgen Kvalsvik <j@lambda.is>2025-03-31 19:03:37 +0200
committerJørgen Kvalsvik <j@lambda.is>2025-03-31 19:47:14 +0200
commitde742091f4df997f426d99bcfed3c44914788033 (patch)
tree3ffdfef4972b82709cee02f65b3a077e0de2daf5 /gcc/fortran/f95-lang.cc
parent44289d258a970e39059afa33d2a44d16ba41d3f2 (diff)
downloadgcc-de742091f4df997f426d99bcfed3c44914788033.zip
gcc-de742091f4df997f426d99bcfed3c44914788033.tar.gz
gcc-de742091f4df997f426d99bcfed3c44914788033.tar.bz2
Only write gcov when file output is on [PR119553]
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.cc. The find_paths name was a bit imprecise, and is renamed to instrument_prime_paths. PR gcov-profile/119553 gcc/ChangeLog: * path-coverage.cc (find_paths): Return path count, don't write to gcno, and rename to ... (instrument_prime_paths): ... this. * profile.cc (branch_prob): Write path counts to gcno.
Diffstat (limited to 'gcc/fortran/f95-lang.cc')
0 files changed, 0 insertions, 0 deletions