From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9784 invoked by alias); 10 Jul 2012 13:32:55 -0000 Received: (qmail 9770 invoked by uid 22791); 10 Jul 2012 13:32:54 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Jul 2012 13:32:40 +0000 From: "vincent-gcc at vinc17 dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/53915] New: gcov -f rounding problem Date: Tue, 10 Jul 2012 13:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: vincent-gcc at vinc17 dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-07/txt/msg00840.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53915 Bug #: 53915 Summary: gcov -f rounding problem Classification: Unclassified Product: gcc Version: 4.7.1 Status: UNCONFIRMED Severity: minor Priority: P3 Component: gcov-profile AssignedTo: unassigned@gcc.gnu.org ReportedBy: vincent-gcc@vinc17.net I have the following problem with gcov 4.7.1 under Debian: ypig:/tmp/ompfr-gcov/src> gcov -f round_prec.c Function 'mpfr_can_round_raw' Lines executed:100.00% of 44 Function 'mpfr_can_round' Lines executed:100.00% of 4 Function 'mpfr_prec_round' Lines executed:100.00% of 31 Function 'mpfr_round_raw_4' Lines executed:95.00% of 60 Function 'mpfr_round_raw_2' Lines executed:99.99% of 9 Function 'mpfr_round_raw' Lines executed:100.00% of 7 File 'round_prec.c' Lines executed:100.00% of 79 Creating 'round_prec.c.gcov' File 'round_raw_generic.c' Lines executed:97.37% of 76 Creating 'round_raw_generic.c.gcov' File '/usr/include/gmp-x86_64.h' No executable lines Removing 'gmp-x86_64.h.gcov' See the result for Function 'mpfr_round_raw_2': 99.99% of 9. This is not possible! Either all the lines are executed, in which case one should get 100%, or at most 8 lines of 9 are executed, in which case one should get 88.89% at most. This is reproducible on a Debian/unstable amd64 machine with MPFR trunk r8346 by running the tools/coverage script. I've also reported with bug on the Debian BTS: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681076