------- Comment #3 from geoffk at gcc dot gnu dot org 2007-01-25 06:01 ------- It's optional, but if you support Annex F of the C99 standard then F.4 says:
If the floating value is infinite or NaN or if the integral part of the floating value exceeds the range of the integer type, then the invalid floating-point exception is raised and the resulting value is unspecified. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30580