------- Comment #4 from pinskia at gcc dot gnu dot org 2006-08-22 00:31 ------- For x86, -ffinite-math-only should turn off IEEE-FP compares which you will get the correct results at -O0 which case this is really the problem mentioned in PR 19116 which is about how unsafe-math-optimizations turn that on when really finite-math-only should turn it on.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28796