From e1433536bcc4ff65ed0a3ce568fad529d03a5d5b Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 16 Jul 2018 19:40:56 -0400 Subject: [PATCH] Use CRYPTOPP_DISABLE_INTEL_ASM for Clang in GCM Clang 6.0 is still broke. It cannot compile a simple "neg %rcx" using Intel syntax --- gcm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcm.cpp b/gcm.cpp index 3759a175..d1b57b5f 100644 --- a/gcm.cpp +++ b/gcm.cpp @@ -14,7 +14,7 @@ // Clang 3.3 integrated assembler crash on Linux. Other versions produce incorrect results. // Clang has never handled Intel ASM very well. I wish LLVM would fix it. -#if defined(__clang__) +#if defined(CRYPTOPP_DISABLE_INTEL_ASM) # undef CRYPTOPP_X86_ASM_AVAILABLE # undef CRYPTOPP_X32_ASM_AVAILABLE # undef CRYPTOPP_X64_ASM_AVAILABLE