This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gcov-profile/85199] [GCOV] A cond-expr with a iterative variable in a for loop is marked as "-" in gcov


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]