From a060fc3b8eb7f965103d88d92ac0e1b0c23b26bc Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Mon, 19 Nov 2012 15:02:34 +0000 Subject: [PATCH] x86_64-gcc.c: resore early clobber constraint [from HEAD]. Submitted by: Florian Weimer --- crypto/bn/asm/x86_64-gcc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" ); -- 2.40.0