diff options
author | David Schultz <das@FreeBSD.org> | 2005-01-11 22:10:43 +0000 |
---|---|---|
committer | David Schultz <das@FreeBSD.org> | 2005-01-11 22:10:43 +0000 |
commit | c1b70ced4fdd64ea67be2a627aed86ef728e1e72 (patch) | |
tree | 878c2e9c0b223bdc130bdd9e23eee9fe5aca379f /lib/msun/amd64 | |
parent | 2c144a95ed64ac824a821cfe3f7279cd45cbaa76 (diff) |
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.
Notes
Notes:
svn path=/head/; revision=140085
Diffstat (limited to 'lib/msun/amd64')
-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 de8272904936..b148caf26c98 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) |