Re: [PATCH v2 3/6] scripts/Kconfig.toolchain: Clean up '-fno-allow-store-data-races' handling
From: Nicolas Schier
Date: Thu Nov 12 2026 - 06:54:58 EST
On Wed, Nov 11, 2026 at 05:52:05PM -0700, Nathan Chancellor wrote:
> Commit 454e00cf8ee5 ("kbuild: avoid re-running compiler and linker
> probes") added two separate symbols for the "no allow store data races"
> GCC flags. These flags serve the same purpose, so combine them using the
> second argument of cc-option-str to handle the old value. To avoid
> setting the second value of cc-option-str for clang, add a GCC
> dependency to the symbol. This will eventually allow the cc-option-str
> call to be eliminated when GCC 10 is the minimum version for the kernel.
>
> Signed-off-by: Nathan Chancellor <nathan@xxxxxxxxxx>
> ---
> Makefile | 5 -----
> scripts/Kconfig.toolchain | 7 ++-----
> 2 files changed, 2 insertions(+), 10 deletions(-)
>
Reviewed-by: Nicolas Schier <nsc@xxxxxxxxxx>
--
Nicolas