diff options
author | das <das@FreeBSD.org> | 2005-01-11 22:10:43 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2005-01-11 22:10:43 +0000 |
commit | 850b1bf882dda1298ac5c7bfa167c553c67b6a63 (patch) | |
tree | 878c2e9c0b223bdc130bdd9e23eee9fe5aca379f /lib/msun | |
parent | 170f0c94adddc1a7aed9b344974dd225d434eb2d (diff) | |
download | FreeBSD-src-850b1bf882dda1298ac5c7bfa167c553c67b6a63.zip FreeBSD-src-850b1bf882dda1298ac5c7bfa167c553c67b6a63.tar.gz |
Mark inline stmxcsr instructions as volatile, since this appears to be
the only way to convince gcc that they read the MXCSR. The volatile
annotation may be needed elsewhere as well.
Diffstat (limited to 'lib/msun')
-rw-r--r-- | lib/msun/amd64/fenv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msun/amd64/fenv.h b/lib/msun/amd64/fenv.h index de82729..b148caf 100644 --- a/lib/msun/amd64/fenv.h +++ b/lib/msun/amd64/fenv.h @@ -84,7 +84,7 @@ extern const fenv_t __fe_dfl_env; #define __fnstsw(__sw) __asm("fnstsw %0" : "=am" (*(__sw))) #define __fwait() __asm __volatile("fwait") #define __ldmxcsr(__csr) __asm __volatile("ldmxcsr %0" : : "m" (__csr)) -#define __stmxcsr(__csr) __asm("stmxcsr %0" : "=m" (*(__csr))) +#define __stmxcsr(__csr) __asm __volatile("stmxcsr %0" : "=m" (*(__csr))) static __inline int feclearexcept(int __excepts) |