summaryrefslogtreecommitdiff
path: root/cipher/cast5.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@iki.fi>2013-06-27 14:40:12 +0300
committerJussi Kivilinna <jussi.kivilinna@iki.fi>2013-07-10 22:02:08 +0300
commited0a598172208ec67234a4edd73189bf6808fd04 (patch)
treea43edc3af41965bfa82dfb2d093e37dce6e6f6ee /cipher/cast5.c
parentc3902a6b5cea9acef2e15fbee24eb601eeb25168 (diff)
downloadlibgcrypt-ed0a598172208ec67234a4edd73189bf6808fd04.tar.gz
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 <jussi.kivilinna@iki.fi>
Diffstat (limited to 'cipher/cast5.c')
-rw-r--r--cipher/cast5.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cipher/cast5.c b/cipher/cast5.c
index 41bc9ffa..6017bf06 100644
--- a/cipher/cast5.c
+++ b/cipher/cast5.c
@@ -393,7 +393,8 @@ rol(int n, u32 x)
{
__asm__("roll %%cl,%0"
:"=r" (x)
- :"0" (x),"c" (n));
+ :"0" (x),"c" (n)
+ :"cc");
return x;
}
#else