PR c/21720
commita5bd524b0c4b5fd3d91bbbdd16baceafb07b11d3
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 Jul 2005 21:14:22 +0000 (29 21:14 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 Jul 2005 21:14:22 +0000 (29 21:14 +0000)
tree5016d5b89f3bdb36574cad26940fb18ba94a1653
parenta253fb3e9da4facc34310ab656d16f8582da0f79
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102567 138bc75d-0d04-0410-961f-82ee72b054a4
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]