This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug gcov-profile/50228] New: Incorrect line execution count.
- From: "gcc.hall at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 29 Aug 2011 17:40:47 +0000
- Subject: [Bug gcov-profile/50228] New: Incorrect line execution count.
- Auto-submitted: auto-generated
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:}