From: Andy Polyakov Date: Mon, 19 Nov 2012 15:02:00 +0000 (+0000) Subject: x86_64-gcc.c: resore early clobber constraint. X-Git-Tag: master-pre-reformat~1546 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f6b0635ad87845ddf9c88f0b17569e07c26c4b4;p=openssl x86_64-gcc.c: resore early clobber constraint. 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" );