[libc-commits] [libc] [libc][NFC] Selectively disable GCC warnings (PR #78462)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Wed Jan 17 11:42:28 PST 2024
================
@@ -25,6 +25,11 @@
#include <immintrin.h>
#endif
+// Disable GCC complaining about missing attributes when using SIMD types in
+// template specializations.
----------------
nickdesaulniers wrote:
ah, yeah https://stackoverflow.com/questions/41676311/implication-of-gcc-warning-ignoring-attributes-on-template-argument-wignored has more context. I was just looking at /usr/lib/gcc/x86_64-linux-gnu/13/include/avxintrin.h myself.
Do you mind mimimizing the region of code for which the pragma is disabled? I think the initial push+disable could be "sunk" lower in the header. That might help avoid false negatives that result from disabling the diagnostics.
https://github.com/llvm/llvm-project/pull/78462
More information about the libc-commits
mailing list