From e66d55582371553254d4e1893c0a43faf7bce001 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 24 Mar 2022 14:24:08 -0300 Subject: math: Only build tests for _Complex __int128 iff compiler supports it clang fails building test-tgmath3-atan2.c: error: '_Complex __int128' is invalid _Complex __int128 var__Complex___int128 __attribute__ ((unused)); since it does not support _Complex with __int128. So disable the test in such case. --- configure.ac | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ff3f62c063..2f90025a1a 100644 --- a/configure.ac +++ b/configure.ac @@ -1491,6 +1491,23 @@ LIBC_TRY_CC_OPTION([-Werror -ffloat-store], LIBC_CONFIG_VAR([config-cflags-float-store], [$libc_cv_cc_float_store]) +AC_CACHE_CHECK([whether compiler supports _Complex with __int128], + [libc_cv_complex_int128], [dnl +cat > conftest.c <&AS_MESSAGE_LOG_FD]) +then + libc_cv_complex_int128=yes +fi +rm -f conftest*]) +LIBC_CONFIG_VAR([config-complex-int128], + [$libc_cv_complex_int128]) + AC_CACHE_CHECK(if $CC accepts -fno-tree-loop-distribute-patterns with \ __attribute__ ((__optimize__)), libc_cv_cc_loop_to_function, [dnl cat > conftest.c <