Skip to content

Commit f340d27

Browse files
hcahcaAlexander Gordeev
authored andcommitted
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 <agordeev@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
1 parent 579a663 commit f340d27

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arch/s390/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ config CC_ASM_FLAG_OUTPUT_BROKEN
5959
compiler error in some configurations if flag output
6060
operands are used within inline assemblies.
6161

62+
config CC_HAS_ASM_AOR_FORMAT_FLAGS
63+
def_bool !(CC_IS_CLANG && CLANG_VERSION < 190100)
64+
help
65+
Clang versions before 19.1.0 do not support A,
66+
O, and R inline assembly format flags.
67+
6268
config S390
6369
def_bool y
6470
#

0 commit comments

Comments
 (0)