This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug gcov-profile/83266] [GCOV] A True if statement is wrongly marked as not executed in gcov
- From: "yangyibiao at nju dot edu.cn" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 04 Dec 2017 09:01:29 +0000
- Subject: [Bug gcov-profile/83266] [GCOV] A True if statement is wrongly marked as not executed in gcov
- Auto-submitted: auto-generated
- References: <bug-83266-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83266
--- Comment #2 from Yibiao Yang <yangyibiao at nju dot edu.cn> ---
>
> $ gcc -fprofile-arcs -ftes-coverage small.c; ./a.out; gcov small.c; cat
> small.c.gcov
The correct command should be:
$ gcc -fprofile-arcs -ftest-coverage small.c; ./a.out; gcov small.c; cat
small.c.gcov