http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50724
--- Comment #10 from Marc Glisse <marc.glisse at normalesup dot org> 2011-10-14 21:12:40 UTC --- As a library writer, having isnan return false is precisely what I am expecting from -ffinite-math-only. In my code, I implement regular computations for finite numbers, and I need some special cases for infinite and nan values, which I test with isnan and isfinite. With -ffinite-math-only, the compiler is able to remove those special cases entirely.