From: Andy Polyakov Date: Mon, 19 Nov 2012 15:02:34 +0000 (+0000) Subject: x86_64-gcc.c: resore early clobber constraint [from HEAD]. X-Git-Tag: OpenSSL_1_0_2-beta1~561 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a060fc3b8eb7f965103d88d92ac0e1b0c23b26bc;p=openssl x86_64-gcc.c: resore early clobber constraint [from HEAD]. Submitted by: Florian Weimer --- diff --git a/crypto/bn/asm/x86_64-gcc.c b/crypto/bn/asm/x86_64-gcc.c index d34d2dce09..dfb7506267 100644 --- a/crypto/bn/asm/x86_64-gcc.c +++ b/crypto/bn/asm/x86_64-gcc.c @@ -199,7 +199,7 @@ BN_ULONG bn_add_words (BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,int " lea 1(%2),%2 \n" " loop 1b \n" " sbbq %0,%0 \n" - : "=r"(ret),"+c"(n),"+r"(i) + : "=&r"(ret),"+c"(n),"+r"(i) : "r"(rp),"r"(ap),"r"(bp) : "cc" ); @@ -224,7 +224,7 @@ BN_ULONG bn_sub_words (BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,int " lea 1(%2),%2 \n" " loop 1b \n" " sbbq %0,%0 \n" - : "=r"(ret),"+c"(n),"+r"(i) + : "=&r"(ret),"+c"(n),"+r"(i) : "r"(rp),"r"(ap),"r"(bp) : "cc" );