mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] scripts/Kconfig.toolchain: Document minimum supported versions for dynamic checks
@ 2026-11-11  5:42 Nathan Chancellor
  2026-11-11  5:42 ` [PATCH 1/4] scripts/Kconfig.toolchain: Remove CONFIG_CC_HAS_NO_PROFILE_FN_ATTR Nathan Chancellor
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Nathan Chancellor @ 2026-11-11  5:42 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

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


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

end of thread, other threads:[~2026-11-11 19:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-11  5:42 [PATCH 0/4] scripts/Kconfig.toolchain: Document minimum supported versions for dynamic checks Nathan Chancellor
2026-11-11  5:42 ` [PATCH 1/4] scripts/Kconfig.toolchain: Remove CONFIG_CC_HAS_NO_PROFILE_FN_ATTR Nathan Chancellor
2026-11-11 19:06   ` Nick Desaulniers
2026-11-11 19:10     ` Nathan Chancellor
2026-11-11 19:29       ` Nick Desaulniers
2026-11-11  5:42 ` [PATCH 2/4] scripts/Kconfig.toolchain: Do not dynamically probe '-fno-addrsig' Nathan Chancellor
2026-11-11 16:51   ` Nick Desaulniers
2026-11-11 18:36     ` Nathan Chancellor
2026-11-11 18:45       ` Nick Desaulniers
2026-11-11  5:42 ` [PATCH 3/4] scripts/Kconfig.toolchain: Clean up '-fno-allow-store-data-races' handling Nathan Chancellor
2026-11-11  5:42 ` [PATCH 4/4] scripts/Kconfig.toolchain: Document minimum supported versions for dynamic checks Nathan Chancellor
2026-11-11 19:01   ` Julian Braha

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

all inboxes | Powered by JetHome®