From: Ilya Leoshkevich Date: Thu, 13 Aug 2020 09:56:41 +0000 (+0200) Subject: Fix building DFLTCC with clang X-Git-Tag: 1.9.9-b1~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e506d24b032b1e132df1bb102209b720c6a4fbe;p=thirdparty%2Fzlib-ng.git Fix building DFLTCC with clang --- diff --git a/arch/s390/dfltcc_common.c b/arch/s390/dfltcc_common.c index bae40a2b..b8ccfd82 100644 --- a/arch/s390/dfltcc_common.c +++ b/arch/s390/dfltcc_common.c @@ -22,10 +22,15 @@ static inline int is_dfltcc_enabled(void) { * compiling with -m31, gcc defaults to ESA mode, however, since the kernel * is 64-bit, it's always z/Architecture mode at runtime. */ - __asm__ volatile(".machinemode push\n" + __asm__ volatile( +#ifndef __clang__ + ".machinemode push\n" ".machinemode zarch\n" +#endif "stfle %[facilities]\n" +#ifndef __clang__ ".machinemode pop\n" +#endif : [facilities] "=Q" (facilities), [r0] "+r" (r0) :: "cc"); return is_bit_set((const char *)facilities, DFLTCC_FACILITY); }