[PATCH 0/4] scripts/Kconfig.toolchain: Document minimum supported versions for dynamic checks
From: Nathan Chancellor
Date: Wed Nov 11 2026 - 00:43:08 EST
Hi all,
Now that we have a fairly unified location for compiler and linker
feature checks in scripts/Kconfig.toolchain, we should make it easy to
clean up the checks as they become obsolete through minimum supported
version bumps by documenting when they were first supported. I somewhat
modeled this after the documentation in compiler_attributes.h but I did
not want it to be as verbose.
In doing this archaeology, I developed a few prerequisite clean up
patches. The first cleans up CONFIG_CC_HAS_NO_PROFILE_FN_ATTR since it
is always 'y'. The second cleans up '-fno-addrsig' handling, as this is
an always supported clang option for a clang specific feature. The third
unifies the GCC specific "no allow store data races" flag.
I tried to add some commentary when the option was unsupported by a
particular implementation but I am on the fence about whether that is
actually useful or not, especially since they might go stale if the
other implementation starts supporting them. However, I included it
anyways since compiler_attributes.h can have the same problem and folks
can check before removing or adjusting the option. If people don't like
it, I am fine with dropping them and only documenting the supported
versions.
---
Nathan Chancellor (4):
scripts/Kconfig.toolchain: Remove CONFIG_CC_HAS_NO_PROFILE_FN_ATTR
scripts/Kconfig.toolchain: Do not dynamically probe '-fno-addrsig'
scripts/Kconfig.toolchain: Clean up '-fno-allow-store-data-races' handling
scripts/Kconfig.toolchain: Document minimum supported versions for dynamic checks
Makefile | 5 -----
kernel/gcov/Kconfig | 1 -
scripts/Kconfig.toolchain | 45 ++++++++++++++++++++++++++++++++++++---------
3 files changed, 36 insertions(+), 15 deletions(-)
---
base-commit: 7f705c0ad1c7cab3d8de99a3a67937bc82fc8481
base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
change-id: 20261110-kconfig-toolchain-updates-d8b351370a5f
Best regards,
--
Cheers,
Nathan