Skip to content

Instantly share code, notes, and snippets.

@openglfreak
Created May 13, 2021 20:24
Show Gist options
  • Save openglfreak/a591a4a3b40e09fe33ca3b7970cf860e to your computer and use it in GitHub Desktop.
Save openglfreak/a591a4a3b40e09fe33ca3b7970cf860e to your computer and use it in GitHub Desktop.
Fix for MinGW GCC 11.1 generating calls to sincos.
diff --git a/gcc/config/i386/mingw-w64.h b/gcc/config/i386/mingw-w64.h
index 0cec6b0..4fcf719 100644
--- a/gcc/config/i386/mingw-w64.h
+++ b/gcc/config/i386/mingw-w64.h
@@ -98,9 +98,3 @@ along with GCC; see the file COPYING3. If not see
%{shared|mdll: " SUB_LINK_ENTRY " --enable-auto-image-base} \
" LINK_SPEC_LARGE_ADDR_AWARE "\
%(shared_libgcc_undefs)"
-
-/* Enable sincos optimization, overriding cygming.h. sincos, sincosf
- and sincosl functions are available on mingw-w64, but not on the
- original mingw32. */
-#undef TARGET_LIBC_HAS_FUNCTION
-#define TARGET_LIBC_HAS_FUNCTION gnu_libc_has_function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment