linux/lib/zstd/common
Ingo Molnar 97f68e7287 zstd: Increase DYNAMIC_BMI2 GCC version cutoff from 4.8 to 11.0 to work around compiler segfault
[ Upstream commit 1400c87e6c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-04-20 10:15:12 +02:00
..
bitstream.h zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
compiler.h zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
cpu.h lib: zstd: Upgrade to latest upstream zstd version 1.4.10 2021-11-08 16:55:32 -08:00
debug.c lib: zstd: Upgrade to latest upstream zstd version 1.4.10 2021-11-08 16:55:32 -08:00
debug.h lib: zstd: Upgrade to latest upstream zstd version 1.4.10 2021-11-08 16:55:32 -08:00
entropy_common.c zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
error_private.c lib: zstd: Upgrade to latest upstream zstd version 1.4.10 2021-11-08 16:55:32 -08:00
error_private.h zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
fse.h zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
fse_decompress.c zstd: Fix array-index-out-of-bounds UBSAN warning 2023-11-14 17:12:52 -08:00
huf.h zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
mem.h move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
portability_macros.h zstd: Increase DYNAMIC_BMI2 GCC version cutoff from 4.8 to 11.0 to work around compiler segfault 2025-04-20 10:15:12 +02:00
zstd_common.c zstd: Move zstd-common module exports to zstd_common_module.c 2022-10-24 12:12:26 -07:00
zstd_deps.h add intptr_t 2023-06-09 17:44:13 -07:00
zstd_internal.h zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00