https://gcc.gnu.org/g:f48688e0fc3c36f38756277763ee8429c657fbc3
commit r17-432-gf48688e0fc3c36f38756277763ee8429c657fbc3 Author: Jørgen Kvalsvik <[email protected]> Date: Sun May 10 13:26:59 2026 +0200 gcov: Read the right arc flag in json output It is quite dishonest to check the false_value and output "true", and we should strive to be honest. gcc/ChangeLog: * gcov.cc (json_set_prime_path_coverage): Read arc.true_value. Diff: --- gcc/gcov.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/gcov.cc b/gcc/gcov.cc index 6256caa19e94..80acb7986d94 100644 --- a/gcc/gcov.cc +++ b/gcc/gcov.cc @@ -1545,7 +1545,7 @@ json_set_prime_path_coverage (json::object &function, function_info &info) if (i + 1 != path.size ()) { const arc_info &arc = find_arc (block, path[i+1]); - if (arc.false_value) + if (arc.true_value) edge_kind = "true"; else if (arc.false_value) edge_kind = "false";
