https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84548
--- Comment #20 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Dmitry G. Dyachenko from comment #19) > (In reply to Martin Liška from comment #18) > > (In reply to Dmitry G. Dyachenko from comment #17) > > > No ICE! > > > Thank Martin! > > > > Good. Can you please attach gcov file for the problematic invocation of gcov > > tool? > ... > > It can be caused by 2 files 'cpcapi20suite.cpp' in the project. Is it > > possible that you have multiple files in a different folders? > > Fortunately, problem file(s) already attached: pre-proccessed > cpcapi20suite.cpp and x.{gcno,gcda} > > > There are only one cpcapi20suite.cpp > > $ find /home/dimhen/src/CSPbuild/ -name cpcapi20suite\* > /home/dimhen/src/CSPbuild/CSP/unittest/CpCapi20UnitTest/cpcapi20suite.cpp > /home/dimhen/src/CSPbuild/CSP/unittest/CpCapi20UnitTest/cpcapi20suite.h > > $ find . -name \*cpcapi20suite\* > ./CSP/unittest/CpCapi20UnitTest/.deps/cpcapi20suite.Po > ./CSP/unittest/CpCapi20UnitTest/cpcapi20suite.gcno > ./CSP/unittest/CpCapi20UnitTest/cpcapi20suite.gcda > ./CSP/unittest/CpCapi20UnitTest/cpcapi20suite.o > ./CSP/unittest/CpCapi20UnitTest/cpcapi20suite.h.gcov It can explain why we see the strange locations. Note that when you invoke gcc w/ --coverage, then it creates immediately *.gcno file (notes file) which contains a timestamp. Then when you run an executable *.gcda file (data file) is created. Also included with a timestamp. And the note you see means basically that a data file was created before a notes file. Which should not be possible. Isn't that an old data file you forgot to remove?