Fix SunStudio compile on Solaris

pull/668/merge
Jeffrey Walton 2018-07-15 19:24:55 -04:00
parent 916fe7db26
commit 692ed2a2bb
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ void DetectX86Features()
CRYPTOPP_CONSTANT(AVX_FLAG = (3 << 27)) CRYPTOPP_CONSTANT(AVX_FLAG = (3 << 27))
if ((cpuid1[2] & AVX_FLAG) == AVX_FLAG) if ((cpuid1[2] & AVX_FLAG) == AVX_FLAG)
{ {
#if defined(__GNUC__) #if defined(__GNUC__) || defined(__SUNPRO_CC)
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71659 and // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71659 and
// http://www.agner.org/optimize/vectorclass/read.php?i=65 // http://www.agner.org/optimize/vectorclass/read.php?i=65
word32 a=0, d=0; word32 a=0, d=0;