http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48139
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-16 10:52:04 UTC --- You need to use -fno-math-errno as lrint can set EDOM according to C99 7.12.9.5 (we don't have a facility to make errno behavior match the C library implementation exactly). -fno-math-errno is included in -ffast-math.