From: Heiko Carstens Date: Mon, 13 Jan 2025 12:36:56 +0000 (+0100) Subject: s390: Introduce CC_HAS_ASM_AOR_FORMAT_FLAGS Kconfig option X-Git-Tag: v6.14-rc1~36^2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f340d270491dc6b4c2da036c33642fbbf1de47af;p=thirdparty%2Fkernel%2Flinux.git s390: Introduce CC_HAS_ASM_AOR_FORMAT_FLAGS Kconfig option Introduce CC_HAS_ASM_AOR_FORMAT_FLAGS Kconfig option. Use this option for inline assemblies where the A, O, or R format flags are used. Those flags are not available for Clang versions before 19.1.0. Reviewed-by: Alexander Gordeev Signed-off-by: Heiko Carstens Signed-off-by: Alexander Gordeev --- diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index 621d70ec4bd01..4e9bf698dc4d5 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig @@ -59,6 +59,12 @@ config CC_ASM_FLAG_OUTPUT_BROKEN compiler error in some configurations if flag output operands are used within inline assemblies. +config CC_HAS_ASM_AOR_FORMAT_FLAGS + def_bool !(CC_IS_CLANG && CLANG_VERSION < 190100) + help + Clang versions before 19.1.0 do not support A, + O, and R inline assembly format flags. + config S390 def_bool y #