]> git.ipfire.org Git - thirdparty/coreutils.git/commit
wc: port to kernels that disable XSAVE YMM
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 14 Jun 2023 04:10:24 +0000 (21:10 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 14 Jun 2023 04:14:29 +0000 (21:14 -0700)
commit91a74d361461494dd546467e83bc36c24185d6e7
tree5e3ebe929531fdd6ced53ed5c93a67fe768ff370
parent37890240730f0d0a24d3fd01357fb96955b29b52
wc: port to kernels that disable XSAVE YMM

Problem reported by Dave Hansen <https://bugs.gnu.org/64058>.
Apply similar change to cksum and pclmul, too.
* NEWS: Mention wc fix.
* configure.ac (cpuid_exists, get_cpuid_count_exists):
Remove.  All uses removed, since we no longer use __get_cpuid or
__get_cpuid_count.
(pclmul_intrinsic_exists, avx2_intrinsic_exists): Set to no if
__builtin_cpu_supports calls cannot be compiled.
(HAVE_PCLMUL_INTRINSIC, HAVE_AVX2_INTRINSIC): Remove; unused.
Simplify surrounding code because of this.
* src/cksum.c (pclmul_supported):
* src/wc.c (avx2_supported):
Use __builtin_cpu_supports instead of doing it by hand.
Simplify surrounding code because of this.
NEWS
configure.ac
src/cksum.c
src/wc.c