[PATCH] Fix strtod for small DBL_DIG
Christian Bruel
christian.bruel@st.com
Thu May 12 12:44:00 GMT 2011
Hello,
This fixes a Plummhall ch7_1961B test failure discovered on SH4 GCC for
-m4-single-only mode (doubles as 32 bit floats) on sscanf.
It is better illustrated with the attached reduced test case. The
problem turned out to be the digit counts in _strtod_ that are
incremented to much beyond DBL_DIG.
The attached patch fixes this problem by updating the counts after the
DBL_DIG checks.
Best Regards.
Christian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newlib.patch
URL: <http://sourceware.org/pipermail/newlib/attachments/20110512/c6c95b18/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fl.c
URL: <http://sourceware.org/pipermail/newlib/attachments/20110512/c6c95b18/attachment.c>
More information about the Newlib
mailing list