Gcc over-optimizes PadLock AES CFB codepath, tell it not to.
authorAndy Polyakov <appro@openssl.org>
Thu, 19 Oct 2006 20:55:05 +0000 (20:55 +0000)
committerAndy Polyakov <appro@openssl.org>
Thu, 19 Oct 2006 20:55:05 +0000 (20:55 +0000)
crypto/engine/eng_padlock.c

index 8d92af6..e1d66ea 100644 (file)
@@ -436,8 +436,8 @@ static inline void *name(size_t cnt,                \
                        rep_xcrypt "\n"         \
                "       popl    %%ebx"          \
                : "=a"(iv), "=c"(cnt), "=D"(out), "=S"(inp) \
-               : "0"(cdata), "1"(cnt), "2"(out), "3"(inp) \
-               : "edx", "cc");                 \
+               : "0"(cdata), "1"(cnt), "2"(out), "3"(inp), "m"(*cdata)  \
+               : "edx", "cc", "memory");       \
        return iv;                              \
 }