Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [PATCH v2 0/6] scripts/Kconfig.toolchain: Document minimum supported versions for dynamic checks
@ 2026-11-12  0:52 Nathan Chancellor
  2026-11-12  0:52 ` [PATCH v2 1/6] scripts/Kconfig.toolchain: Remove CONFIG_CC_HAS_NO_PROFILE_FN_ATTR Nathan Chancellor
                   ` (5 more replies)
  0 siblings, 6 replies; 16+ messages in thread
From: Nathan Chancellor @ 2026-11-12  0:52 UTC (permalink / raw)
  To: Nathan Chancellor, Nicolas Schier
  Cc: Julian Braha, Nick Desaulniers, Bill Wendling, Justin Stitt,
	Arnd Bergmann, Kees Cook, linux-kernel, linux-kbuild, llvm,
	Charlie Jenkins, Paul Walmsley, Palmer Dabbelt, linux-riscv,
	Linus Torvalds, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
	Dave Hansen, x86, H. Peter Anvin

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


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2026-11-12 20:22 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-12  0:52 [PATCH v2 0/6] scripts/Kconfig.toolchain: Document minimum supported versions for dynamic checks Nathan Chancellor
2026-11-12  0:52 ` [PATCH v2 1/6] scripts/Kconfig.toolchain: Remove CONFIG_CC_HAS_NO_PROFILE_FN_ATTR Nathan Chancellor
2026-11-12 11:15   ` Nicolas Schier
2026-11-12  0:52 ` [PATCH v2 2/6] scripts/Kconfig.toolchain: Do not dynamically probe '-fno-addrsig' Nathan Chancellor
2026-11-12 11:21   ` Nicolas Schier
2026-11-12  0:52 ` [PATCH v2 3/6] scripts/Kconfig.toolchain: Clean up '-fno-allow-store-data-races' handling Nathan Chancellor
2026-11-12 11:25   ` Nicolas Schier
2026-11-12  0:52 ` [PATCH v2 4/6] riscv: checksum: Fix CC_HAS_ASM_GOTO_TIED_OUTPUT check Nathan Chancellor
2026-11-12 11:26   ` Nicolas Schier
2026-11-12 17:21     ` Nathan Chancellor
2026-11-12  0:52 ` [PATCH v2 5/6] Eliminate CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT Nathan Chancellor
2026-11-12 11:34   ` Nicolas Schier
2026-11-12 17:47     ` Nathan Chancellor
2026-11-12 20:12       ` Nicolas Schier
2026-11-12  0:52 ` [PATCH v2 6/6] scripts/Kconfig.toolchain: Document minimum supported versions for dynamic checks Nathan Chancellor
2026-11-12 11:42   ` Nicolas Schier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox