re PR middle-end/21720 (GCC incorrectly rounds hex floats)
authorJoseph Myers <joseph@codesourcery.com>
Fri, 29 Jul 2005 21:14:22 +0000 (22:14 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 29 Jul 2005 21:14:22 +0000 (22:14 +0100)
commitbc1594c1428a6202a739b157bcdd0f4db2c5faf7
tree5016d5b89f3bdb36574cad26940fb18ba94a1653
parent3aca4bff532e98480b7a9e9b41b9df608bd90fed
re PR middle-end/21720 (GCC incorrectly rounds hex floats)

PR c/21720
* real.c (real_from_string): Also set last bit if there is a
nonzero hex digit beyond GCC's internal precision after ".".

testsuite:
* gcc.dg/hex-round-1.c: Test more cases.
* gcc.dg/hex-round-2.c: New test.

From-SVN: r102567
gcc/ChangeLog
gcc/real.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/hex-round-1.c
gcc/testsuite/gcc.dg/hex-round-2.c [new file with mode: 0644]