Re: [PATCH v2 0/7] set clang minimum version to 10.0.1

From: Sedat Dilek
Date: Tue Sep 01 2020 - 10:08:44 EST


On Tue, Sep 1, 2020 at 2:23 AM Nick Desaulniers <ndesaulniers@xxxxxxxxxx> wrote:
>
> Adds a compile time #error to compiler-clang.h setting the effective
> minimum supported version to clang 10.0.1. A separate patch has already
> been picked up into the Documentation/ tree also confirming the version.
>
> Next are a series of reverts. One for 32b arm is a partial revert.
>
> Then Marco suggested fixes to KASAN docs.
>
> Finally, improve the warning for GCC too as per Kees.
>
> Patches after 001 are new for v2.
>
> Marco Elver (1):
> kasan: Remove mentions of unsupported Clang versions
>
> Nick Desaulniers (6):
> compiler-clang: add build check for clang 10.0.1
> Revert "kbuild: disable clang's default use of -fmerge-all-constants"
> Revert "arm64: bti: Require clang >= 10.0.1 for in-kernel BTI support"
> Revert "arm64: vdso: Fix compilation with clang older than 8"
> Partial revert "ARM: 8905/1: Emit __gnu_mcount_nc when using Clang
> 10.0.0 or newer"
> compiler-gcc: improve version warning
>

I have tested theses 7 patches together with v2 of "Documentation: add
minimum clang/llvm version".

- Sedat -

> Documentation/dev-tools/kasan.rst | 4 ++--
> Makefile | 9 ---------
> arch/arm/Kconfig | 2 +-
> arch/arm64/Kconfig | 2 --
> arch/arm64/kernel/vdso/Makefile | 7 -------
> include/linux/compiler-clang.h | 8 ++++++++
> include/linux/compiler-gcc.h | 2 +-
> lib/Kconfig.kasan | 9 ++++-----
> 8 files changed, 16 insertions(+), 27 deletions(-)
>
> --
> 2.28.0.402.g5ffc5be6b7-goog
>