https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80911
--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> --- > > $ ./nobootstrap/install/bin/gcov-dump gcov-1.gcno > gcov-1.gcno:note:magic `gcno':version `A80e' > gcov-1.gcno:stamp 1402604930 > gcov-1.gcno: 01000000: 19:FUNCTION ident=108032747, > lineno_checksum=0x086adbf6, cfg_checksum=0x93d19550, `main' > src/gcc/testsuite/gcc.misc-tests/gcov-1.c:10 > gcov-1.gcno: 01410000: 1:BLOCKS 8 blocks > gcov-1.gcno: 01430000: 3:ARCS 1 arcs > gcov-1.gcno: 01430000: 3:ARCS 1 arcs > gcov-1.gcno: 01430000: 5:ARCS 2 arcs > gcov-1.gcno: 01430000: 3:ARCS 1 arcs > gcov-1.gcno: 01430000: 5:ARCS 2 arcs > gcov-1.gcno: 01430000: 3:ARCS 1 arcs > gcov-1.gcno: 01430000: 3:ARCS 1 arcs > gcov-1.gcno: 01450000: 18:LINES > gcov-1.gcno: 01450000: 17:LINES > gcov-1.gcno: 01450000: 17:LINES > gcov-1.gcno: 01450000: 17:LINES > gcov-1.gcno: 01450000: 17:LINES > gcov-1.gcno: 01000000: 19:FUNCTION ident=528394847, > lineno_checksum=0xb7ad0113, cfg_checksum=0xa43083b8, `noop' > src/gcc/testsuite/gcc.misc-tests/gcov-1.c:6 > gcov-1.gcno: 01410000: 1:BLOCKS 3 blocks > gcov-1.gcno: 01430000: 3:ARCS 1 arcs > gcov-1.gcno: 01430000: 3:ARCS 1 arcs > gcov-1.gcno: 01450000: 18:LINES There's the problem, for the file you sent me, I don't see the same: $ ./gcov-dump /home/marxin/Programming/testcases/pr80911/gcov-1.gcno /home/marxin/Programming/testcases/pr80911/gcov-1.gcno:note:magic `gcno':version `A80e' /home/marxin/Programming/testcases/pr80911/gcov-1.gcno:stamp 1402042784 /home/marxin/Programming/testcases/pr80911/gcov-1.gcno: 01000000: 31:FUNCTION ident=108032747, lineno_checksum=0xe78607ea, cfg_checksum=0x93d19550, `main' /tmp/gcov-1.c:196608 while for my gcno file created I see the same what you can see: $ ./gcov-dump gcov-1.gcno gcov-1.gcno:note:magic `gcno':version `A80e' gcov-1.gcno:stamp 1402876241 gcov-1.gcno: 01000000: 25:FUNCTION ident=108032747, lineno_checksum=0x3e291e10, cfg_checksum=0x93d19550, `main' /home/marxin/Programming/gcc/gcc/testsuite/gcc.misc-tests/gcov-1.c:10 gcov-1.gcno: 01410000: 1:BLOCKS 8 blocks gcov-1.gcno: 01430000: 3:ARCS 1 arcs gcov-1.gcno: 01430000: 3:ARCS 1 arcs gcov-1.gcno: 01430000: 5:ARCS 2 arcs gcov-1.gcno: 01430000: 3:ARCS 1 arcs gcov-1.gcno: 01430000: 5:ARCS 2 arcs gcov-1.gcno: 01430000: 3:ARCS 1 arcs gcov-1.gcno: 01430000: 3:ARCS 1 arcs gcov-1.gcno: 01450000: 24:LINES gcov-1.gcno: 01450000: 23:LINES gcov-1.gcno: 01450000: 23:LINES gcov-1.gcno: 01450000: 23:LINES gcov-1.gcno: 01450000: 23:LINES gcov-1.gcno: 01000000: 25:FUNCTION ident=528394847, lineno_checksum=0xdcf7a446, cfg_checksum=0xa43083b8, `noop' /home/marxin/Programming/gcc/gcc/testsuite/gcc.misc-tests/gcov-1.c:6 gcov-1.gcno: 01410000: 1:BLOCKS 3 blocks gcov-1.gcno: 01430000: 3:ARCS 1 arcs gcov-1.gcno: 01430000: 3:ARCS 1 arcs gcov-1.gcno: 01450000: 24:LINES You file is also much smaller: marxin@marxinbox:~/Programming/gcc/objdir/gcc> l /home/marxin/Programming/testcases/pr80911/gcov-1.gcno -rw-r--r-- 1 marxin users 335 May 29 11:57 /home/marxin/Programming/testcases/pr80911/gcov-1.gcno marxin@marxinbox:~/Programming/gcc/objdir/gcc> l gcov-1.gcno -rw-r--r-- 1 marxin users 1056 May 29 11:51 gcov-1.gcno That said can you please verify gcov --version and gcov-dump --version. The gcno file should be flushed and closed in gcov_close function. Can you please take a look? Thanks, Martin