]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Merge tag 'gcc-minimum-version-6.16' of git://git.kernel.org/pub/scm/linux/kernel...
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 31 May 2025 15:16:52 +0000 (08:16 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 31 May 2025 15:16:52 +0000 (08:16 -0700)
Pull compiler version requirement update from Arnd Bergmann:
 "Require gcc-8 and binutils-2.30

  x86 already uses gcc-8 as the minimum version, this changes all other
  architectures to the same version. gcc-8 is used is Debian 10 and Red
  Hat Enterprise Linux 8, both of which are still supported, and
  binutils 2.30 is the oldest corresponding version on those.

  Ubuntu Pro 18.04 and SUSE Linux Enterprise Server 15 both use gcc-7 as
  the system compiler but additionally include toolchains that remain
  supported.

  With the new minimum toolchain versions, a number of workarounds for
  older versions can be dropped, in particular on x86_64 and arm64.
  Importantly, the updated compiler version allows removing two of the
  five remaining gcc plugins, as support for sancov and structeak
  features is already included in modern compiler versions.

  I tried collecting the known changes that are possible based on the
  new toolchain version, but expect that more cleanups will be possible.

  Since this touches multiple architectures, I merged the patches
  through the asm-generic tree."

* tag 'gcc-minimum-version-6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic:
  Makefile.kcov: apply needed compiler option unconditionally in CFLAGS_KCOV
  Documentation: update binutils-2.30 version reference
  gcc-plugins: remove SANCOV gcc plugin
  Kbuild: remove structleak gcc plugin
  arm64: drop binutils version checks
  raid6: skip avx512 checks
  kbuild: require gcc-8 and binutils-2.30

1  2 
arch/arm64/Kconfig
arch/um/Makefile
lib/Kconfig.debug
mm/mm_init.c
scripts/Makefile.compiler
scripts/Makefile.gcc-plugins
scripts/gcc-plugins/Kconfig
security/Kconfig.hardening

Simple merge
Simple merge
Simple merge
diff --cc mm/mm_init.c
Simple merge
index 65cfa72e376be01ab99c46194cec97ccb8c3c783,eaf7cea3655525a97e9911e72eeb77266f646ad0..ef91910de265d266717714a8d6e6d3cb51c37118
@@@ -57,10 -57,10 +57,10 @@@ cc-option-yn = $(if $(call cc-option,$1
  
  # cc-disable-warning
  # Usage: cflags-y += $(call cc-disable-warning,unused-but-set-variable)
 -cc-disable-warning = $(if $(call cc-option,-W$(strip $1)),-Wno-$(strip $1))
 +cc-disable-warning = $(call cc-option,-Wno-$(strip $1))
  
  # gcc-min-version
- # Usage: cflags-$(call gcc-min-version, 70100) += -foo
+ # Usage: cflags-$(call gcc-min-version, 110100) += -foo
  gcc-min-version = $(call test-ge, $(CONFIG_GCC_VERSION), $1)
  
  # clang-min-version
Simple merge
Simple merge
Simple merge