Disable CLMUL again on SunStudio (GH# 188, GH #224)
We got reports that x86_64 was producing incorrect results. Also, the problem persisted in i386 builds. I don't think we can work around this issue. Oracle must fix it.pull/668/merge
parent
d1e646a589
commit
9d954efcde
6
config.h
6
config.h
|
|
@ -585,6 +585,12 @@ NAMESPACE_END
|
|||
# endif
|
||||
#endif
|
||||
|
||||
// Fixup for SunCC 12.2-12.6. Compiler crash on GCM_Reduce_CLMUL and friends.
|
||||
// http://github.com/weidai11/cryptopp/issues/226
|
||||
#if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x5150)
|
||||
# undef CRYPTOPP_CLMUL_AVAILABLE
|
||||
#endif
|
||||
|
||||
#endif // X86, X32, X64
|
||||
|
||||
// ***************** ARM CPU features ********************
|
||||
|
|
|
|||
|
|
@ -10,9 +10,10 @@
|
|||
#include "config.h"
|
||||
#include "misc.h"
|
||||
|
||||
// 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__)
|
||||
// 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(CRYPTOPP_DISABLE_INTEL_ASM)
|
||||
# undef CRYPTOPP_X86_ASM_AVAILABLE
|
||||
# undef CRYPTOPP_X32_ASM_AVAILABLE
|
||||
# undef CRYPTOPP_X64_ASM_AVAILABLE
|
||||
|
|
|
|||
Loading…
Reference in New Issue