History

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.]

Nathan Chancellor committed 5 years ago

Commit e2bc3e91 parent 5a4e0f51 file · +6 −1Browse files

Unified · Split

scripts/min-tool-version.sh+6−1
@@ -30,7 +30,12 @@ icc) · 29 unmodified lines
30 echo 16.0.330 echo 16.0.3
31 ;;31 ;;
32llvm)32llvm)
33 echo 10.0.133 # https://lore.kernel.org/r/YMtib5hKVyNknZt3@osiris/
34 if [ "$SRCARCH" = s390 ]; then
35 echo 13.0.0
36 else
37 echo 10.0.1
38 fi
34 ;;39 ;;
35*)40*)
36 echo "$1: unknown tool" >&241 echo "$1: unknown tool" >&2