public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/50228] New: Incorrect line execution count.
@ 2011-08-29 18:05 gcc.hall at gmail dot com
  0 siblings, 0 replies; only message in thread
From: gcc.hall at gmail dot com @ 2011-08-29 18:05 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50228

             Bug #: 50228
           Summary: Incorrect line execution count.
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gcc.hall@gmail.com


Source line 6625 is reported as having been executed more times than is
possible.

Secondly I saw that all the source lines in the function were executed at least
once, but it says "blocks executed 92%"

gcov 4.6.1, gcc 4.6.1 (-O0 -ggdb3 --coverage)

function Evaluate called 29903918 returned 100% blocks executed 92%
 29903918: 6610:Evaluate( TOKEN * const expr, const int result_type )
        -: 6611:{
 29903918: 6612:  parse( last_result, expr, END_EXP );
call    0 returned 29903918
        -: 6613:
 29903918: 6614:  if( last_result->fp )
branch  0 taken 1799 (fallthrough)
branch  1 taken 29902119
        -: 6615:  {
     1799: 6616:    if( result_type == INT )
branch  0 taken 1 (fallthrough)
branch  1 taken 1798
        -: 6617:    {
        1: 6618:      last_result->opval.e = iconv( last_result->opval.r,
expr->errp );
call    0 returned 1
        1: 6619:      last_result->fp = NO;
        -: 6620:    }
        -: 6621:  }
        -: 6622:  else
        -: 6623:  {
 29902119: 6624:    if( result_type == INT )
branch  0 taken 17342570 (fallthrough)
branch  1 taken 12559549
 34685140: 6625:      last_result->opval.e = itrunc( last_result->opval.i,
expr->errp );
 12559549: 6626:    elif( result_type == REAL )
branch  0 taken 1 (fallthrough)
branch  1 taken 12559548
        -: 6627:    {
        1: 6628:      last_result->opval.r = last_result->opval.i;
        1: 6629:      last_result->fp = YES;
        -: 6630:    }
        -: 6631:  }
        -: 6632:
 29903918: 6633:  return last_result;
        -: 6634:}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-08-29 17:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-29 18:05 [Bug gcov-profile/50228] New: Incorrect line execution count gcc.hall at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).