https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111646
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org --- Comment #3 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- Are you compiling with optimization? If you are not enabling any optimization, the result of cos actually comes from Glibc and it's not a GCC issue.