From: Iain Sandoe Date: Mon, 7 Sep 2020 08:21:40 +0000 (+0100) Subject: Darwin : Update libc function availability. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e746cebd9c6bb42b4892135942be7ddf865b3bf;p=gcc.git Darwin : Update libc function availability. Darwin libc has sincos from 10.9 (darwin13) onwards. gcc/ChangeLog: * config/darwin.c (darwin_libc_has_function): Report sincos available from 10.9. --- diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 2c6da2b47c4..c8edfb88b59 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -3545,7 +3545,8 @@ bool darwin_libc_has_function (enum function_class fn_class) { if (fn_class == function_sincos) - return false; + return (strverscmp (darwin_macosx_version_min, "10.9") >= 0); + if (fn_class == function_c99_math_complex || fn_class == function_c99_misc) return (TARGET_64BIT