From ed0a598172208ec67234a4edd73189bf6808fd04 Mon Sep 17 00:00:00 2001 From: Jussi Kivilinna Date: Thu, 27 Jun 2013 14:40:12 +0300 Subject: Fix i386/amd64 inline assembly "cc" clobbers * cipher/bithelp.h [__GNUC__, __i386__] (rol, ror): add "cc" globber for inline assembly. * cipher/cast5.c [__GNUC__, __i386__] (rol): Ditto. * random/rndhw.c [USE_DRNG] (rdrand_long): Ditto. * src/hmac256.c [__GNUC__, __i386__] (ror): Ditto. * mpi/longlong.c [__i386__] (add_ssaaaa, sub_ddmmss, umul_ppmm) (udiv_qrnnd, count_leading_zeros, count_trailing_zeros): Ditto. -- These assembly snippets modify cflags but do not mark "cc" clobber. Signed-off-by: Jussi Kivilinna --- src/hmac256.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/hmac256.c') diff --git a/src/hmac256.c b/src/hmac256.c index 34def769..2fda47bf 100644 --- a/src/hmac256.c +++ b/src/hmac256.c @@ -104,7 +104,8 @@ ror(u32 x, int n) { __asm__("rorl %%cl,%0" :"=r" (x) - :"0" (x),"c" (n)); + :"0" (x),"c" (n) + :"cc"); return x; } #else -- cgit v1.2.1