http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56586
Richard Earnshaw <rearnsha at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID --- Comment #1 from Richard Earnshaw <rearnsha at gcc dot gnu.org> 2013-03-12 08:40:52 UTC --- sqrt() and sqrtf() set errno when the input is invalid. The compiler only inlines these when -fno-math-errno is set (or one of the other compiler options that enables this).