]>
git.ipfire.org Git - thirdparty/gcc.git/commit
i386: Obfuscate avx10_2bf16intrin.h inline function arguments [PR123155]
Function arguments in installed headers need to be obfuscated (unlike
object-like macro arguments), as e.g.
is a valid program. Most of the arguments are obfuscated, but some
leaked in in the avx10_2bf16intrin.h header.
gcc -S -O2 -O2 -Werror-implicit-function-declaration -march=novalake -msse4a -m3dnow -mavx -mavx2 -mfma4 -mxop -maes -mpclmul -mpopcnt -mabm -mlzcnt -mbmi -mbmi2 -mtbm -mlwp -mfsgsbase -mrdrnd -mf16c -mfma -mrtm -mrdseed -mprfchw -madx -mfxsr -mxsaveopt -msha -mxsavec -mxsaves -mclflushopt -mavx512vp2intersect -mclwb -mmwaitx -mclzero -mpku -msgx -mrdpid -mgfni -mpconfig -mwbnoinvd -menqcmd -mserialize -mtsxldtrk -mamx-tile -mamx-int8 -mamx-bf16 -mkl -mwidekl -mavxvnni -mavxifma -mavxvnniint8 -mavxneconvert -mcmpccxadd -mamx-fp16 -mprefetchi -mraoint -mamx-complex -mavxvnniint16 -msm3 -msha512 -msm4 -mavx10.2 -mamx-avx512 -mamx-tf32 -mamx-fp8 -mmovrs -mamx-movrs -g -dA gcc/testsuite/gcc.target/i386/sse-13.c -fno-eliminate-unused-debug-{symbols,types} -o sse-13.s
grep -A1 DW_TAG_formal_parameter sse-13.s | grep DW_AT_name | grep -v 'scii "__' | grep -v 'DW_AT_name: "__'
shows arguments not prefixed with __ and the following patch fixes them.
2025-12-17 Jakub Jelinek <jakub@redhat.com>
PR target/123155
* config/i386/avx10_2bf16intrin.h (_mm512_roundscale_pbh,
_mm512_mask_roundscale_pbh, _mm512_maskz_roundscale_pbh,
_mm256_roundscale_pbh, _mm256_mask_roundscale_pbh,
_mm256_maskz_roundscale_pbh, _mm_roundscale_pbh,
_mm_mask_roundscale_pbh, _mm_maskz_roundscale_pbh,
_mm512_reduce_pbh, _mm512_mask_reduce_pbh, _mm512_maskz_reduce_pbh,
_mm256_reduce_pbh, _mm256_mask_reduce_pbh, _mm256_maskz_reduce_pbh,
_mm_reduce_pbh, _mm_mask_reduce_pbh, _mm_maskz_reduce_pbh): Rename
B argument to __B.