More SunStudio/SunCC workarounds

This commit is contained in:
Jeffrey Walton 2018-07-27 01:51:27 -04:00
parent 2f83777e9b
commit f165d1822d
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
3 changed files with 19 additions and 1 deletions

View File

@ -585,7 +585,13 @@ NAMESPACE_END
# endif
#endif
// Fixup for SunCC 12.2-12.6. Compiler crash on GCM_Reduce_CLMUL and friends.
// Fixup for SunCC 12.1-12.4. Bad code generation in AES_Encrypt and friends.
// http://github.com/weidai11/cryptopp/issues/226
#if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x5130)
# undef CRYPTOPP_AESNI_AVAILABLE
#endif
// Fixup for SunCC 12.1-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

View File

@ -25,6 +25,12 @@
# define CRYPTOPP_SIMON128_ADVANCED_PROCESS_BLOCKS 1
#endif
// Yet another SunStudio/SunCC workaround
#if defined(__SUNPRO_CC)
# undef CRYPTOPP_SIMON64_ADVANCED_PROCESS_BLOCKS
# undef CRYPTOPP_SIMON128_ADVANCED_PROCESS_BLOCKS
#endif
NAMESPACE_BEGIN(CryptoPP)
/// \brief SIMON block cipher information

View File

@ -25,6 +25,12 @@
# define CRYPTOPP_SPECK128_ADVANCED_PROCESS_BLOCKS 1
#endif
// Yet another SunStudio/SunCC workaround
#if defined(__SUNPRO_CC)
# undef CRYPTOPP_SPECK64_ADVANCED_PROCESS_BLOCKS
# undef CRYPTOPP_SPECK128_ADVANCED_PROCESS_BLOCKS
#endif
NAMESPACE_BEGIN(CryptoPP)
/// \brief SPECK block cipher information