* config/fpu-387.h (set_fpu): Add "=m" for stmxcsr.

From-SVN: r105369
This commit is contained in:
Uros Bizjak 2005-10-13 14:54:30 +02:00 committed by Uros Bizjak
parent b2ebf9137c
commit 8d1d0da541
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-20-13 Uros Bizjak <uros@kss-loka.si>
* config/fpu-387.h (set_fpu): Add "=m" for stmxcsr.
2005-10-12 Francois-Xavier Coudert <coudert@clipper.ens.fr>
* Makefile.am: Add fpu.c to the build process, and

View File

@ -90,7 +90,7 @@ void set_fpu (void)
if (has_sse())
{
/* SSE */
asm volatile ("stmxcsr %0" : : "m" (cw_sse));
asm volatile ("stmxcsr %0" : : "=m" (cw_sse));
cw_sse &= 0xFFFF0000;
if (options.fpe & GFC_FPE_INVALID) cw_sse |= 1 << 7;
if (options.fpe & GFC_FPE_DENORMAL) cw_sse |= 1 << 8;