]> git.ipfire.org Git - people/ms/linux.git/commit - scripts/min-tool-version.sh
scripts/min-tool-version.sh: Raise minimum clang version to 13.0.0 for s390
authorNathan Chancellor <nathan@kernel.org>
Thu, 17 Jun 2021 19:31:40 +0000 (12:31 -0700)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 28 Jun 2021 09:18:28 +0000 (11:18 +0200)
commite2bc3e91d91ede6710801fa0737e4e4ed729b19e
treeef6027b31cc1f2cf6534ebaadba5f488a80810f8
parent5a4e0f58e2d959e2de0f0f1ddaa169e60711d2f0
scripts/min-tool-version.sh: Raise minimum clang version to 13.0.0 for s390

clang versions prior to the current development version of 13.0.0 cannot
compile s390 after commit 3abbdfde5a65 ("s390/bitops: use register pair
instead of register asm") and the s390 maintainers do not intend to work
around this in the kernel. Codify this in scripts/min-tool-version.sh
similar to arm64 with GCC 5.1.0 so that there are no reports of broken
builds.

[hca@linux.ibm.com: breaking compatibility with older clang compilers
 is intended to finally make use of a feature which allows the
 compiler to allocate even/odd register pairs. This is possible since
 a very long time with gcc, but only since llvm-project commit
 d058262b1471 ("[SystemZ] Support i128 inline asm operands.") with
 clang. Using that feature allows to get rid of error prone register
 asm statements, of which the above named kernel commit is only the
 first of a larger not yet complete series.]

Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Masahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20210617193139.856957-1-nathan@kernel.org
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
scripts/min-tool-version.sh