Darwin : Update libc function availability.
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 7 Sep 2020 08:21:40 +0000 (09:21 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Mon, 7 Sep 2020 16:06:52 +0000 (17:06 +0100)
Darwin libc has sincos from 10.9 (darwin13) onwards.

gcc/ChangeLog:

* config/darwin.c (darwin_libc_has_function): Report sincos
available from 10.9.

gcc/config/darwin.c

index 2c6da2b47c48d36953cd2b3149cb4efa70a5bb17..c8edfb88b59539d15f53efdee7b14d6b81e4dd24 100644 (file)
@@ -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