[Bug gcov-profile/48463] gcov does not handle C++ clones (deleting ctors, template instantiations)
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Oct 20 10:57:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48463
--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
GCC also has information that there are multiple functions pointing to a same
line of code:
$ gcov-dump test.gcno | grep FUNCTION
test.gcno: 01000000: 11:FUNCTION ident=108032747, lineno_checksum=0xc563f9a6,
cfg_checksum=0x21286892, `main' test.cpp:19
test.gcno: 01000000: 14:FUNCTION ident=1482441317, lineno_checksum=0xa9f23a94,
cfg_checksum=0xa43083b8, `_ZN3FooIiE4testEv' test.cpp:10
test.gcno: 01000000: 13:FUNCTION ident=402991310, lineno_checksum=0x0169e3ec,
cfg_checksum=0xa43083b8, `_ZN3FooIiEC2Ev' test.cpp:5
test.gcno: 01000000: 14:FUNCTION ident=1097691245, lineno_checksum=0x30c3089c,
cfg_checksum=0xa43083b8, `_ZN3FooIfE4testEv' test.cpp:10
test.gcno: 01000000: 13:FUNCTION ident=56186600, lineno_checksum=0x9a359dca,
cfg_checksum=0xa43083b8, `_ZN3FooIfEC2Ev' test.cpp:5
What we need to do is to properly present that.
More information about the Gcc-bugs
mailing list