https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87069

            Bug ID: 87069
           Summary: gcov accumulates results for identical files
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

It's probably issue when one provides one files twice on command line:

$ cat gcov.c
int foo()
{
  return 0;
}

int main()
{
  return foo();
}

$ gcov gcov.c gcov.c -t
        -:    0:Source:gcov.c
        -:    0:Programs:2
        2:    1:int foo()
        -:    2:{
        2:    3:  return 0;
        -:    4:}
------------------
foo:
        1:    1:int foo()
        -:    2:{
        1:    3:  return 0;
        -:    4:}
------------------
foo:
        1:    1:int foo()
        -:    2:{
        1:    3:  return 0;
        -:    4:}
------------------
        -:    5:
        2:    6:int main()
        -:    7:{
        2:    8:  return foo();
        -:    9:}

Reply via email to