aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2020-10-22 08:54:16 -0300
committerAlexandre Oliva <oliva@gnu.org>2020-10-22 08:54:16 -0300
commit4f48f31bbfc10697296ff004a92614d9249ca784 (patch)
tree2bdc67394f635e0ed2be1e87c283a9f0e2253191 /gcc
parent3d423c6f6a69d87ad52ba3af75f3debd8a8b8810 (diff)
downloadgcc-4f48f31bbfc10697296ff004a92614d9249ca784.zip
gcc-4f48f31bbfc10697296ff004a92614d9249ca784.tar.gz
gcc-4f48f31bbfc10697296ff004a92614d9249ca784.tar.bz2
enable sincos optimization on mingw-w64
The sincos transformation does not take place on all platforms, because the libc_has_function target hook disables it by default. Current mingw-w64's math library supports sincos, sincosl and sincosf, in 32- and 64-bit modes. I suppose this has been this way for long. This patch enables the sincos optimization on this platform. for gcc/ChangeLog * config/i386/mingw-w64.h (TARGET_LIBC_HAS_FUNCTION): Enable sincos optimization.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/i386/mingw-w64.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/i386/mingw-w64.h b/gcc/config/i386/mingw-w64.h
index 408e57c..0d0aa93 100644
--- a/gcc/config/i386/mingw-w64.h
+++ b/gcc/config/i386/mingw-w64.h
@@ -98,3 +98,9 @@ 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