projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81ae27d
)
rand_nw.c: compensate for gcc bug (using %edx instead of %eax at -O3)
author
Andy Polyakov
<appro@openssl.org>
Thu, 8 Jul 2010 09:15:49 +0000
(09:15 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Thu, 8 Jul 2010 09:15:49 +0000
(09:15 +0000)
[from HEAD].
PR: 2296
crypto/rand/rand_nw.c
patch
|
blob
|
history
diff --git
a/crypto/rand/rand_nw.c
b/crypto/rand/rand_nw.c
index f177ffbe82b08e16b43ae1d2e886dbe459a7dbfd..8d5b8d2e3217f438a4030308528112c872a7403c 100644
(file)
--- a/
crypto/rand/rand_nw.c
+++ b/
crypto/rand/rand_nw.c
@@
-160,8
+160,8
@@
int RAND_poll(void)
rdtsc
mov tsc, eax
}
-#el
se
- asm volatile("rdtsc":"=
A" (tsc)
);
+#el
if 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);