long double (was "strtold?")

Ken Werner ken@linux.vnet.ibm.com
Fri Apr 17 22:29:00 GMT 2009


On Friday 17 April 2009 23:19:33 Howland Craig D (Craig) wrote:
> Umm, I don't understand the change to machine/ieeefp.h.  The defines
> that it was using are the official names from float.h.  Adding __ as a
> prefix and suffix ties it directly to gcc.  The makes it work for gcc
> without float.h having been included, but won't it break other
> compilers?
> (There's nothing in the standards that I know of that would require
> __LDBL_MANT_DIG__ to be defined, for example.)  So perhaps it did not
> build as it was, but the way to fix it for all compilers is to add
> #include <float.h>, I think.  (Newlib doesn't require gcc, does it?)
> 				Craig

Craig,

Thanks for the heads up, you are right. The attached patch uses defines 
provided by <float.h> instead of the GCC internals.

Ken

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ieeefp.h.patch
Type: text/x-patch
Size: 1013 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20090417/fdba35b7/attachment.bin>


More information about the Newlib mailing list