Soft Float is not being reported

Dimitry Andric
Thu Jun 24 20:49:00 GMT 2004

On 2004-06-24 at 22:20:35 Dave wrote:

> I am using the following test file to determine if softfloat is working or
> not....can anyone recommend a better test to perform without setting up the
> remote testing...I will perform all the remote testing as instructed in
> crosstool once I figure out this softfloat issue...

> #include <stdlib.h>
> int main(int argc, char *argv[])
> {
> double    d_foo;
> d_foo = 1233433.3233993;
> printf("d_foo = %lf\n",d_foo+.1);
> printf("%f\n", (1.0+3.22+33+443.3345));
> }

This is fine, but please make sure you've applied the glibc-vfp patch
from crosstool, or you will probably only see 0.0 printed...

> Kernel is a 2.4.24 running on an IXP425:

> # CONFIG_FPE_NWFPE is not set
> # CONFIG_FPE_FASTFPE is not set

That's okay.  Not only does it save memory, but it will also
unmistakably point out if you have any executable or library which
uses hardware FPU by accident. :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 183 bytes
Desc: not available
URL: <>

More information about the crossgcc mailing list