CYGWIN 2.3.0 [32/64]: strtold() seems to be broken
Corinna Vinschen
vinschen@redhat.com
Sun Nov 22 00:31:00 GMT 2015
On Nov 18 21:54, Corinna Vinschen wrote:
> On Nov 18 12:56, Tino Lange wrote:
> > Hi newlib Developers,
> >
> > Corinna Vinschen asked me to re-post my bug report here (which I sent
> > originally to the cygwin mailing list a few days ago).
> >
> > So here we go (note that I have removed the "cygcheck.out" file, as this
> > seems to be a CYGWIN specific bug tracking process requirement only.
> > Please let me know if you expect me to send it or somthing similar to
> > this "newlib" mailing list as well):
> >
> >
> > strtold() seems to be broken, at least when there is additional
> > non-numeric data after the initial numeric part.
>
> Thanks for the report, Tino.
>
> Patches would be most welcome, of course :}
The existing _strtold implementation was completely broken and
non-standard. I imported the latest version from David M. Gay, with
a couple of changes required for newlib.
I only imported the wrapper code for targets supporting IEEE long
doubles, and I only imported rounding mode support for i386 and x86_64
targets.
The __flt_rounds() call in libc/stdlib/strtold.c for Intel CPUs I took
from FreeBSD, which has similar calls available for powerpc, arm,
sparc64, powerpc64, mips and aarch64. Patches to include those, as well
as similar calls for other targets are most welcome. Same goes for
additional support for non-IEEE targets, which is also available from
Gay's gdtoa package. I'm just not sure which of them we'd need for
which target.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20151122/39d65f8e/attachment.sig>
More information about the Newlib
mailing list