[PATCH v2 0/6] scripts/Kconfig.toolchain: Document minimum supported versions for dynamic checks

Nathan Chancellor nathan at kernel.org
Wed Nov 11 16:52:02 PST 2026


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, mostly around removing code that is practically dead through
minimum versions or adjusting options that are only supported in one
compiler. See the individual patches for the details.

---
Changes in v2:
- Fix versions for a few entries (Julian)
- Add patch fixing check for asm goto with tied outputs in riscv code
- Add patch eliminating check for asm goto with tied outputs, as all
  compilers that properly support asm goto with outputs will have
  support for tied outputs
- Add links to tools where feature is supported/changed to make future
  auditing easier
- Adjust comment format to be a little more succinct
- Reword commit messages accordingly
- Link to v1: https://patch.msgid.link/20261110-kconfig-toolchain-updates-v1-0-6d4fb636290e@kernel.org

---
Nathan Chancellor (6):
      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
      riscv: checksum: Fix CC_HAS_ASM_GOTO_TIED_OUTPUT check
      Eliminate CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT
      scripts/Kconfig.toolchain: Document minimum supported versions for dynamic checks

 Makefile                       |  5 ---
 arch/riscv/lib/csum.c          |  4 +--
 arch/x86/include/asm/uaccess.h | 82 ++++++++++++++++++++----------------------
 kernel/gcov/Kconfig            |  1 -
 scripts/Kconfig.toolchain      | 80 +++++++++++++++++++++++++++++++++--------
 5 files changed, 107 insertions(+), 65 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




More information about the linux-riscv mailing list