https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88769
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2019-01-09 CC| |jsm28 at gcc dot gnu.org Component|tree-optimization |c Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- This is because GCC thinks sin() doesn't set errno. DEF_LIB_BUILTIN (BUILT_IN_SIN, "sin", BT_FN_DOUBLE_DOUBLE, ATTR_MATHFN_FPROUNDING) According to the C standard no error conditions are documented for sin or cos, specifically no domain error is documented.