From c1b70ced4fdd64ea67be2a627aed86ef728e1e72 Mon Sep 17 00:00:00 2001 From: David Schultz Date: Tue, 11 Jan 2005 22:10:43 +0000 Subject: [PATCH] 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. --- lib/msun/amd64/fenv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)