Chromium Code Reviews| Index: openssl/crypto/rand/rand_nw.c |
| =================================================================== |
| --- openssl/crypto/rand/rand_nw.c (revision 105093) |
| +++ openssl/crypto/rand/rand_nw.c (working copy) |
| @@ -160,8 +160,8 @@ |
| rdtsc |
| mov tsc, eax |
| } |
| -#else |
| - asm volatile("rdtsc":"=A" (tsc)); |
| +#elif defined(__GNUC__) && __GNUC__>=2 && !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM) |
| + asm volatile("rdtsc":"=a"(tsc)::"edx"); |
| #endif |
| RAND_add(&tsc, sizeof(tsc), 1); |