[Bug c/106529] existence of sincos is assumed

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Aug 4 21:39:03 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106529

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Those warnings just match a predefined list of names and suggest the right
header. If 'sincos' is not found, it says to include <math.h>, there's no check
for which OS you're on or whether math.h has been included already. It's much
simpler than that.

Yes, sometimes including <math.h> isn't the solution, but it does say "or
provide a declaration of sincos" so it's not wrong.


More information about the Gcc-bugs mailing list