[PATCH v2] math: Exclude tgmath3-macro-tests for Clang
H.J. Lu
hjl.tools@gmail.com
Wed Dec 18 19:08:04 GMT 2024
Since Clang doesn't support _Complex __int128:
.../test-tgmath3-exp.c:152:1: error: '_Complex __int128' is invalid
152 | _Complex __int128 var__Complex___int128 __attribute__ ((unused));
| ^
exclude tgmath3-macro-tests for Clang.
---
math/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/math/Makefile b/math/Makefile
index 93fa147033..798d71dc47 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -1038,7 +1038,10 @@ tgmath3-macros = \
ufromfpx \
# tgmath3-macros
tgmath3-macro-tests = $(addprefix test-tgmath3-,$(tgmath3-macros))
+ifneq ($(have-test-clang),yes)
+# NB: Clang doesn't support _Complex __int128.
tests-tgmath += $(tgmath3-macro-tests)
+endif
tests += $(tests-tgmath)
generated += $(addsuffix .c,$(tgmath3-macro-tests))
--
2.47.1
More information about the Libc-alpha
mailing list