https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80042
Vishnu Mohandas <vishnu240404 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vishnu240404 at gmail dot com --- Comment #7 from Vishnu Mohandas <vishnu240404 at gmail dot com> --- Changing DEF_LIB_BUILTIN (BUILT_IN_SIN, "sin", BT_FN_DOUBLE_DOUBLE, ATTR_MATHFN_FPROUNDING_ERRNO) and DEF_LIB_BUILTIN (BUILT_IN_COS, "cos", BT_FN_DOUBLE_DOUBLE, ATTR_MATHFN_FPROUNDING_ERRNO) doesn't seem to rectify the issue. When using the O2 optimization, the code passes with no error.