This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Floating point problems (accuracy).


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]