This is the mail archive of the gcc-bugs@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: optimization/9736: same fp comparison can lead to different results


On Wednesday 19 February 2003 01:02, Eric Botcazou wrote:
> > If the compiler produces valid assembly code that does not
> > correctly execute the input source code, that is a compiler bug.
>
> Sure. But why do you keep using a compilation mode that you know will
> generate a faulty executable for your program? I can't say much more than
> the GCC manual here: if your program relies on exact IEEE floating-point
> semantics to properly work, compile it with -ffloat-store. Otherwise
> eliminate the dependencies on the IEEE format.
You might consider the options -march=pentium[34] -mfpmath=sse, or changing 
the precision mode you run in, since you seem to want an alternative to 
-ffloat-store to achieve those effects.
-- 
Tim Prince


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