]> granicus.if.org Git - openssl/commit
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)
committerAndy Polyakov <appro@openssl.org>
Sat, 1 Feb 2014 21:01:46 +0000 (22:01 +0100)
commit45d010255fc19cce5fd7d509d27c499da06bdd17
treef73e43c35a0b79fdc0d5f43ae5976f05c6e260ee
parent7e569022c59a72dd8ebf83701f53093a4db6d392
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)
crypto/bn/asm/x86_64-gcc.c