[PATCH 07/11] wine/asm.h: Use __ASM_CFI on clang too, despite not defining __GCC_HAVE_DWARF2_CFI_ASM

Martin Storsjo martin at martin.st
Thu May 28 03:14:43 CDT 2020


It has already been unconditionally enabled for macOS (which uses clang).

Signed-off-by: Martin Storsjo <martin at martin.st>
---
The sanitizer runtimes seem to make the same assumption:
https://github.com/llvm/llvm-project/blob/master/compiler-rt/lib/sanitizer_common/sanitizer_asm.h#L15-L18
---
 include/wine/asm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/wine/asm.h b/include/wine/asm.h
index 7165f47e96d..7650d84a797 100644
--- a/include/wine/asm.h
+++ b/include/wine/asm.h
@@ -33,7 +33,7 @@
 # define __ASM_STDCALL(name,args) __ASM_NAME(name)
 #endif
 
-#if defined(__GCC_HAVE_DWARF2_CFI_ASM) || defined(__APPLE__)
+#if defined(__GCC_HAVE_DWARF2_CFI_ASM) || defined(__APPLE__) || defined(__clang__)
 # define __ASM_CFI(str) str
 #else
 # define __ASM_CFI(str)
-- 
2.17.1




More information about the wine-devel mailing list