[Bug gcov-profile/86536] Function "returned NAN %" for a simple program which forks
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 26 08:52:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86536
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Thu Jul 26 08:50:21 2018
New Revision: 262991
URL: https://gcc.gnu.org/viewcvs?rev=262991&root=gcc&view=rev
Log:
gcov: Fix wrong usage of NAN in statistics (PR gcov-profile/86536).
2018-07-26 Martin Liska <mliska@suse.cz>
PR gcov-profile/86536
* gcov.c (format_gcov): Use printf format %.*f directly
and do not handle special values.
2018-07-26 Martin Liska <mliska@suse.cz>
PR gcov-profile/86536
* gcc.misc-tests/gcov-pr86536.c: New test.
Added:
trunk/gcc/testsuite/gcc.misc-tests/gcov-pr86536.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gcov.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list