x86_64-gcc.c: resore early clobber constraint.
authorAndy Polyakov <appro@openssl.org>
Mon, 19 Nov 2012 15:02:00 +0000 (15:02 +0000)
committerAndy Polyakov <appro@openssl.org>
Mon, 19 Nov 2012 15:02:00 +0000 (15:02 +0000)
Submitted by: Florian Weimer

crypto/bn/asm/x86_64-gcc.c

index d34d2dc..dfb7506 100644 (file)
@@ -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"
        );