]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386: Fix AVX512BW intrin header with __OPTIMIZE__ [PR 118813]
authorHaochen Jiang <haochen.jiang@intel.com>
Mon, 10 Feb 2025 06:00:57 +0000 (14:00 +0800)
committerHaochen Jiang <haochen.jiang@intel.com>
Tue, 11 Feb 2025 02:50:14 +0000 (10:50 +0800)
When moving intrins around for AVX10 implementation in GCC 14,
the intrin _kshiftli_mask32 and _kshiftri_mask32 are wrongly
wrapped by "#if __OPTIMIZE__" instead of "#ifdef __OPTIMIZE__",
leading to the intrin file not `-Wsystem-headers -Wundef` clean
since r14-4490.

gcc/ChangeLog:

PR target/118813
* config/i386/avx512bwintrin.h: Fix wrong __OPTIMIZE__
wrap.

gcc/config/i386/avx512bwintrin.h

index 187e15a80cab0df7d49df287593566c22c36b12d..47c4c03e796aedef9179703970802ceed31b829a 100644 (file)
@@ -199,7 +199,7 @@ _kunpackw_mask32 (__mmask16 __A, __mmask16 __B)
                                              (__mmask32) __B);
 }
 
-#if __OPTIMIZE__
+#ifdef __OPTIMIZE__
 extern __inline __mmask32
 __attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
 _kshiftli_mask32 (__mmask32 __A, unsigned int __B)