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)
committerEmilia Kasper <emilia@openssl.org>
Tue, 19 Aug 2014 15:11:14 +0000 (17:11 +0200)
commite164b34079dc56afe35c227fdb34604c6a37db7d
tree5c3f6e32b27171256e3a98ca42b3e8b605761d57
parent679d0c8655fcf3c16c67385420be6ee1679c17ae
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>
(cherry picked from commit a90b1e32d2f697d1aa39b49038469e2ea40d5e7b)
crypto/bn/asm/x86_64-gcc.c