[libc-commits] [libc] [libc][NFC] Selectively disable GCC warnings (PR #78462)
Guillaume Chatelet via libc-commits
libc-commits at lists.llvm.org
Wed Jan 17 09:59:27 PST 2024
================
@@ -25,6 +25,11 @@
#include <immintrin.h>
#endif
+// Disable GCC complaining about missing attributes when using SIMD types in
+// template specializations.
----------------
gchatelet wrote:
It doesn't say which ones ☹
```
[17/29] Building CXX object projects/libc/test/src/__support/FPUtil/CMakeFiles/libc.test.src.__support.FPUtil.fpbits_test.__unit__.__build__.dir/fpbits_test.cpp.o
In file included from /redacted/gchatelet/git/llvm-project/libc/src/string/memory_utils/x86_64/inline_memcpy.h:15,
from /redacted/gchatelet/git/llvm-project/libc/src/string/memory_utils/inline_memcpy.h:22,
from /redacted/gchatelet/git/llvm-project/libc/src/__support/CPP/string.h:14,
from /redacted/gchatelet/git/llvm-project/libc/src/__support/FPUtil/fpbits_str.h:12,
from /redacted/gchatelet/git/llvm-project/libc/test/src/__support/FPUtil/fpbits_test.cpp:10:
/redacted/gchatelet/git/llvm-project/libc/src/string/memory_utils/op_x86.h:122:37: warning: ignoring attributes on template argument ‘__m128i’ [-Wignored-attributes]
122 | template <> struct is_vector<__m128i> : cpp::true_type {};
| ^
/redacted/gchatelet/git/llvm-project/libc/src/string/memory_utils/op_x86.h:123:44: warning: ignoring attributes on template argument ‘__m128i’ [-Wignored-attributes]
123 | template <> struct cmp_is_expensive<__m128i> : cpp::true_type {};
| ^
/redacted/gchatelet/git/llvm-project/libc/src/string/memory_utils/op_x86.h:162:37: warning: ignoring attributes on template argument ‘__m256i’ [-Wignored-attributes]
162 | template <> struct is_vector<__m256i> : cpp::true_type {};
| ^
/redacted/gchatelet/git/llvm-project/libc/src/string/memory_utils/op_x86.h:163:44: warning: ignoring attributes on template argument ‘__m256i’ [-Wignored-attributes]
163 | template <> struct cmp_is_expensive<__m256i> : cpp::true_type {};
| ^
```
https://github.com/llvm/llvm-project/pull/78462
More information about the libc-commits
mailing list