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.
This commit is contained in:
parent
2c144a95ed
commit
c1b70ced4f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140085
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user