]> granicus.if.org Git - openssl/commitdiff
x86_64-gcc.c: resore early clobber constraint [from HEAD].
authorAndy Polyakov <appro@openssl.org>
Mon, 19 Nov 2012 15:02:34 +0000 (15:02 +0000)
committerAndy Polyakov <appro@openssl.org>
Mon, 19 Nov 2012 15:02:34 +0000 (15:02 +0000)
Submitted by: Florian Weimer

crypto/bn/asm/x86_64-gcc.c

index d34d2dce09a745ca0c76fe0ce3b111c9c9b57da6..dfb7506267c41e31ebba74983ad5521c652c89bf 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"
        );