This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug gcov-profile/85199] [GCOV] A cond-expr with a iterative variable in a for loop is marked as "-" in gcov
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 24 Jul 2018 13:16:23 +0000
- Subject: [Bug gcov-profile/85199] [GCOV] A cond-expr with a iterative variable in a for loop is marked as "-" in gcov
- Auto-submitted: auto-generated
- References: <bug-85199-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85199
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
Status|ASSIGNED |NEW
Assignee|marxin at gcc dot gnu.org |unassigned at gcc dot gnu.org
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
CFG looks as follows:
Released 0 names, 0.00%, removed 0 holes
main ()
{
int b;
<bb 2> :
b_2 = 0;
goto <bb 4>; [INV]
<bb 3> :
b_3 = b_1 + 1;
<bb 4> :
# b_1 = PHI <b_2(2), b_3(3)>
if (b_1 <= 0)
goto <bb 3>; [INV]
else
goto <bb 5>; [INV]
<bb 5> :
return;
}
and line is mapped to:
pr83434.gcno: 01450000: 11:LINES
pr83434.gcno: block 2:`pr83434.c':1, 3, 4
pr85199.gcno: 01450000: 9:LINES
pr85199.gcno: block 4:`pr85199.c':4
which is slightly misleading. Setting low priority.