http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57029
--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> 2013-04-22 13:07:07 UTC --- There is -ftrapping-math, which I think is supposed to have an effect here. And if this was implemented properly, I hope it would be turned off by default.