s390: Introduce CC_HAS_ASM_AOR_FORMAT_FLAGS Kconfig option
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 13 Jan 2025 12:36:56 +0000 (13:36 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Sun, 26 Jan 2025 16:24:04 +0000 (17:24 +0100)
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 <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/Kconfig

index 621d70ec4bd01d67b416fe770c4f874d27495b60..4e9bf698dc4d50ae6b14b81fd628aae95cccb36c 100644 (file)
@@ -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
        #