------- Additional Comments From hunor at cs dot bme dot hu 2005-01-17 13:42 ------- Are you sure this is wrong? It seems to me that the RS6000 port has just been changed to behave liked this two days ago. If you still think this is a bug, though... This is caused by -mno-ieee-fp being implied by -funsafe-math-optimizations on i386:
/* If we're doing fast math, we don't care about comparison order wrt NaNs. This lets us use a shorter comparison sequence. */ if (flag_unsafe_math_optimizations) target_flags &= ~MASK_IEEE_FP; If I interpret the documentation correctly, NaN == NaN may happen if either -mno-ieee-fp or -ffinite-math-only is given (-ffinite-math-only should not imply -mno-ieee-fp either as that changes the behavior of square root calculations too). I can send you my patch if you reach the conclusion that this is a bug. -- What |Removed |Added ---------------------------------------------------------------------------- CC| |hunor at cs dot bme dot hu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19116