aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/tests/base
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>2022-01-01 12:22:00 +0100
committerFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>2022-01-01 13:00:41 +0100
commit4f3b1a09d3109f03299a2ac15cfa3059596fcb1d (patch)
tree4fcc7f9efa722dafa9f59403f5b537401fe48661 /fixincludes/tests/base
parent5fa4f982636e7e66eee6a9b45cc0939ae95b4659 (diff)
downloadgcc-4f3b1a09d3109f03299a2ac15cfa3059596fcb1d.zip
gcc-4f3b1a09d3109f03299a2ac15cfa3059596fcb1d.tar.gz
gcc-4f3b1a09d3109f03299a2ac15cfa3059596fcb1d.tar.bz2
Fixincludes: Handle __FLT_EVAL_METHOD__ == 16 on darwin
The darwin system headers error out on __FLT_EVAL_METHOD__ == 16, which occurs when the compiler is called with -mavx512fp16 on i386. Allow this value to proceed past the check (nothing else depends on it in the system headers). fixincludes/ChangeLog: * inclhack.def: Add new fix on darwin. * fixincl.x: Regenerate. * tests/base/math.h: Regenerate.
Diffstat (limited to 'fixincludes/tests/base')
-rw-r--r--fixincludes/tests/base/math.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fixincludes/tests/base/math.h b/fixincludes/tests/base/math.h
index c7da15a..58f695f 100644
--- a/fixincludes/tests/base/math.h
+++ b/fixincludes/tests/base/math.h
@@ -30,6 +30,11 @@
#endif /* DARWIN_9_LONG_DOUBLE_FUNCS_2_CHECK */
+#if defined( DARWIN_FLT_EVAL_METHOD_CHECK )
+#if __FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 16
+#endif /* DARWIN_FLT_EVAL_METHOD_CHECK */
+
+
#if defined( HPPA_HPUX_FP_MACROS_CHECK )
#endif /* _INCLUDE_HPUX_SOURCE */