https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89961
--- Comment #14 from xaizek <xaizek at posteo dot net> --- > This example violates that because you would end up with clasing myclass.o. I don't think anything is violated, because GCC has `-o` option. It's equivalent in GCOV is mangling: > The mangledname part of the output file name is usually simply the source > file name, but can be something more complicated if the ā-lā or ā-pā options > are given. Neither `-p` nor `-l` works for JSON output of GCOV, which causes loss of output files. I fail to see has this can not be a bug. > What you can use is -t argument that will output to stdout where you'll get 2 > JSON objects. Didn't know it was added, thanks. When it's available, it's worth using.