This is the mail archive of the gcc-help@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: -O* Gives Different Results than Individual Optimizations?


Mike Sullivan <mbsullivan@gmail.com> writes:

> A co-worker of mine is having some odd floating-point issues that are
> related to the compilation options passed to GCC v4.3.3.

There are many instability issues with gcc floating point when using
the 80387 FP stack on x86.  This is the classic bug report
http://gcc.gnu.org/PR323 , which has finally been fixed for the
upcoming gcc 4.5 by adding a new option -fexcess-precision=standard.

If your processor is newer than a Pentium 3, then you can avoid the
problem by using option such as -march=pentium4 -mtune=generic
-mfpmath=sse.

Ian


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