about summary refs log tree commit diff
path: root/config.h.in
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-04-04 15:43:50 -0700
committerH.J. Lu <hjl.tools@gmail.com>2024-04-06 05:03:55 -0700
commit9e1f4aef865ddeffeb4b5f6578fefab606783120 (patch)
tree63d8e53c89c6f2987491e177426954b0ea93a3bb /config.h.in
parentc27f8763cffbb7db9b3f1f5e09ef24d26cbb63f4 (diff)
downloadglibc-9e1f4aef865ddeffeb4b5f6578fefab606783120.tar.gz
glibc-9e1f4aef865ddeffeb4b5f6578fefab606783120.tar.xz
glibc-9e1f4aef865ddeffeb4b5f6578fefab606783120.zip
x86-64: Exclude FMA4 IFUNC functions for -mapxf
When -mapxf is used to build glibc, the resulting glibc will never run
on FMA4 machines.  Exclude FMA4 IFUNC functions when -mapxf is used.
This requires GCC which defines __APX_F__ for -mapxf with commit:

1df56719bd8 x86: Define __APX_F__ for -mapxf

Reviewed-by: Sunil K Pandey <skpgkp2@gmail.com>
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index cf4212f5eb..fd1499e9e2 100644
--- a/config.h.in
+++ b/config.h.in
@@ -295,4 +295,7 @@
 /* Define if -mmovbe is enabled by default on x86.  */
 #undef HAVE_X86_MOVBE
 
+/* Define if -mapxf is enabled by default on x86.  */
+#undef HAVE_X86_APX
+
 #endif