Floating point problems (accuracy).

Vincent Lefevre vincent@vinc17.org
Thu Feb 10 09:39:00 GMT 2005

On 2005-02-09 11:28:03 -0500, Ian Lance Taylor wrote:
> Try the -ffloat-store option.

Of course, this is what I do when I notice a problem (but I often
forget it).

> It's not the default because it's slows down the generated code too
> much, and most people don't care.  But you raise an interesting point
> about the ISO C standard.  It is possible that in strict C99 mode gcc
> should enable -ffloat-store on the x86.

and gcc shouldn't claim C conformance (via __STDC__ and
__STDC_VERSION__) when -ffloat-store is not enabled on x86.

Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA

More information about the Gcc-help mailing list