Add volatile qualifications to two blocks of inline asm to stop GCC from
authorAdam Langley <agl@chromium.org>
Mon, 3 Jun 2013 19:45:11 +0000 (15:45 -0400)
committerJanusz Kozerski <j.kozerski@samsung.com>
Mon, 20 Oct 2014 13:25:34 +0000 (15:25 +0200)
commita3c7871c616fe3e437064b8d810ef491e7ebfafb
tree757b08c0d8676e4eec7f3289cd0d1a61167aa8a9
parente6f173af94de2ddafd939b29b80c80c43d5dfcd0
Add volatile qualifications to two blocks of inline asm to stop GCC from
eliminating them as dead code.

Both volatile and "memory" are used because of some concern that the compiler
may still cache values across the asm block without it, and because this was
such a painful debugging session that I wanted to ensure that it's never
repeated.

(cherry picked from commit 7753a3a68431aa81b82beea4c3f5374b41454679)

Conflicts:
crypto/bn/asm/x86_64-gcc.c

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/bn/asm/x86_64-gcc.c