From 4282f94712ee7b86c36fc656f377d2ce78532f0c Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 18 Aug 2018 04:44:53 -0400 Subject: Disable X32 inline assembly (GH #686, PR #704) Also use CRYPTOPP_DISABLE_XXX_ASM consistently. The pattern is needed for Clang which still can't compile Intel assembly language. Also see http://llvm.org/bugs/show_bug.cgi?id=24232. --- whrlpool.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'whrlpool.h') diff --git a/whrlpool.h b/whrlpool.h index eb2e3c71..47bb6c33 100644 --- a/whrlpool.h +++ b/whrlpool.h @@ -13,6 +13,12 @@ #include "config.h" #include "iterhash.h" +// Clang 3.3 integrated assembler crash on Linux. Clang 3.4 due to compiler +// error with .intel_syntax, http://llvm.org/bugs/show_bug.cgi?id=24232 +#if CRYPTOPP_BOOL_X32 || defined(CRYPTOPP_DISABLE_INTEL_ASM) +# define CRYPTOPP_DISABLE_WHIRLPOOL_ASM 1 +#endif + NAMESPACE_BEGIN(CryptoPP) /// \brief Whirlpool message digest -- cgit v1.2.1