https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114735
Bug ID: 114735
Summary: Gcov not working with gcc version 11.4.0
Product: gcc
Version: 11.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: gcov-profile
Assignee: unassigned at gcc dot gnu.org
Reporter: gejoed at rediffmail dot com
Target Milestone: ---
Created attachment 57955
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57955&action=edit
Gcov runs on a sample program
When I try to run a sample program with gcov of version 11.4.0 it fails as
shown in the attached file. The same program runs fine with the default gcc
version of 8.5. I download and installed gcc version 11.4.0 yesterday locally
in my system.
Snippet from the attached file:
$ls
a.out a-sample-prog.gcda a-sample-prog.gcno sample-prog.c
$
$
$/workspace/tools/GCC/gcc-11.4.0-bld/bin/gcov sample-prog.c
sample-prog.gcno:cannot open notes file
sample-prog.gcda:cannot open data file, assuming not executed
No executable lines
---------------------------------------------------------
I could see the gcno and gcda files having prefix of 'a-' and probably the
reason of the gcov failure(?). However this was not seen with version 8.5 of
gcc.