]> www.infradead.org Git - users/dwmw2/linux.git/commit
zstd: Increase DYNAMIC_BMI2 GCC version cutoff from 4.8 to 11.0 to work around compil...
authorIngo Molnar <mingo@kernel.org>
Fri, 21 Mar 2025 07:38:43 +0000 (08:38 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 21 Mar 2025 07:38:43 +0000 (08:38 +0100)
commit1400c87e6cac47eb243f260352c854474d9a9073
tree776379e169169acbf290c326db35a726cba93cab
parent3e57612561138d7142721a83743fb8eb2bf09ec5
zstd: Increase DYNAMIC_BMI2 GCC version cutoff from 4.8 to 11.0 to work around compiler segfault

Due to pending percpu improvements in -next, GCC9 and GCC10 are
crashing during the build with:

    lib/zstd/compress/huf_compress.c:1033:1: internal compiler error: Segmentation fault
     1033 | {
          | ^
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.

The DYNAMIC_BMI2 feature is a known-challenging feature of
the ZSTD library, with an existing GCC quirk turning it off
for GCC versions below 4.8.

Increase the DYNAMIC_BMI2 version cutoff to GCC 11.0 - GCC 10.5
is the last version known to crash.

Reported-by: Michael Kelley <mhklinux@outlook.com>
Debugged-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: https://lore.kernel.org/r/SN6PR02MB415723FBCD79365E8D72CA5FD4D82@SN6PR02MB4157.namprd02.prod.outlook.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
lib/zstd/common/portability_macros.h