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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2018-07-17
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot 
gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, as fork returns twice, I'm probably fine with reflecting that.
Marco what do you think about:

$ gcov pr86536.c -t -ab
        -:    0:Source:pr86536.c
        -:    0:Graph:pr86536.gcno
        -:    0:Data:pr86536.gcda
        -:    0:Runs:1
        -:    0:Programs:1
        -:    1:int foo;
        -:    2:
function main called 1 returned 200% blocks executed 88%
        1:    3:int main(void) {
        1:    4:  int j = 22;
        -:    5:
        1:    6:  fork();
        1:    6-block  0
call    0 returned 200%
        -:    7:
        2:    8:  int i = 7;
        -:    9:
        2:   10:  if (foo)
branch  0 taken 0% (fallthrough)
branch  1 taken 100%
    #####:   11:    foo ++;
    %%%%%:   11-block  0
        -:   12:
       90:   13:  for (int i = 0; i < 44; i++)
        2:   13-block  0
       90:   13-block  1
branch  0 taken 98%
branch  1 taken 2% (fallthrough)
       88:   14:    foo++;
       88:   14-block  0
        -:   15:
        2:   16:  return 0;
        2:   16-block  0
        -:   17:}

Reply via email to