Re: Floating point problems (accuracy).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx> - 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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux