Add "cc" clobber due to GCC 3.3 compile failure

This commit is contained in:
Jeffrey Walton 2018-12-29 00:09:59 -05:00
parent be85db4de4
commit 8edc5cf2d5
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 2 additions and 1 deletions

View File

@ -336,7 +336,7 @@ void DetectX86Features()
(
// "xgetbv" : "=a"(a), "=d"(d) : "c"(0) :
".byte 0x0f, 0x01, 0xd0" "\n\t"
: "=a"(a), "=d"(d) : "c"(0) :
: "=a"(a), "=d"(d) : "c"(0) : "cc"
);
word64 xcr0 = a | static_cast<word64>(d) << 32;
g_hasAVX = (xcr0 & YMM_FLAG) == YMM_FLAG;

View File

@ -22,6 +22,7 @@
#if (CRYPTOPP_AESNI_AVAILABLE)
# include "adv_simd.h"
# include <emmintrin.h>
# include <tmmintrin.h>
# include <wmmintrin.h>
#endif