[Bug gcov-profile/53915] gcov can call format_gcov with top > bottom, which is unexpected and gives 99.99%

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 28 12:52:00 GMT 2017


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

--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Fri Apr 28 12:51:22 2017
New Revision: 247375

URL: https://gcc.gnu.org/viewcvs?rev=247375&root=gcc&view=rev
Log:
Fix format_gcov to not print misleading values (PR gcov-profile/53915)

2017-04-28  Martin Liska  <mliska@suse.cz>

        PR gcov-profile/53915
        * gcov.c (format_gcov): Print 'NAN %' when top > bottom.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gcov.c


More information about the Gcc-bugs mailing list