Question on g++ compile options / numerical differences

Alexandre Oliva aoliva@redhat.com
Mon May 20 03:47:00 GMT 2002


On May 19, 2002, "Dockeen" <dockeen@mchsi.com> wrote:

> Is there something transparently stupid in the additional
> options above that might lead to numerical calculations going
> bad?

Well, depending on the numerical stability of your code, -ffast-math's
effects may range from none to dramatic.  Also, the possibility of one
of the other flags you're using being exposing a bug in GCC cannot be
ruled out, but it would require some work on your end to figure that
out and provide us with a testcase that demonstrates the problem.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer



More information about the Gcc-help mailing list