[Bug gcov-profile/80911] gcov failed: gcno corrupted
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 29 10:54:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80911
--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
For the files you provided:
$ gcov gcov-1.c && cat gcov-1.c.gcov
/home/vries/gcc_versions/data/ref-master-17-05-24/src/gcc/testsuite/gcc.misc-tests/gcov-1.c:source
file is newer than notes file 'gcov-1.gcno'
(the message is displayed only once per source file)
File
'/home/vries/gcc_versions/data/ref-master-17-05-24/src/gcc/testsuite/gcc.misc-tests/gcov-1.c'
Lines executed:100.00% of 6
Creating 'gcov-1.c.gcov'
-:
0:Source:/home/vries/gcc_versions/data/ref-master-17-05-24/src/gcc/testsuite/gcc.misc-tests/gcov-1.c
-: 0:Graph:gcov-1.gcno
-: 0:Data:gcov-1.gcda
-: 0:Runs:2
-: 0:Programs:1
-: 0:Source is newer than graph
-: 1:/* Test Gcov basics. */
-: 2:
-: 3:/* { dg-options "-fprofile-arcs -ftest-coverage" } */
-: 4:/* { dg-do run { target native } } */
-: 5:
20: 6:void noop ()
-: 7:{
20: 8:}
-: 9:
2: 10:int main ()
-: 11:{
-: 12: int i;
-: 13:
22: 14: for (i = 0; i < 10; i++) /* count(11) */
20: 15: noop (); /* count(10) */
-: 16:
2: 17: return 0; /* count(1) */
-: 18:}
-: 19:
-: 20:/* { dg-final { run-gcov gcov-1.c } } */
More information about the Gcc-bugs
mailing list