diff options
author | Uros Bizjak <uros@kss-loka.si> | 2005-10-13 14:54:30 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2005-10-13 14:54:30 +0200 |
commit | 8d1d0da5417f7d05e64404b29dc0eab989cea34e (patch) | |
tree | 5fba6022203829ca6cf1e3d889e125b5d63ccdce | |
parent | b2ebf9137cc44f8413d267b4fa3b9056a975d420 (diff) | |
download | gcc-8d1d0da5417f7d05e64404b29dc0eab989cea34e.zip gcc-8d1d0da5417f7d05e64404b29dc0eab989cea34e.tar.gz gcc-8d1d0da5417f7d05e64404b29dc0eab989cea34e.tar.bz2 |
* config/fpu-387.h (set_fpu): Add "=m" for stmxcsr.
From-SVN: r105369
-rw-r--r-- | libgfortran/ChangeLog | 4 | ||||
-rw-r--r-- | libgfortran/config/fpu-387.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 9433fda..8afd871 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -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 diff --git a/libgfortran/config/fpu-387.h b/libgfortran/config/fpu-387.h index 06c02ea..e7f3518 100644 --- a/libgfortran/config/fpu-387.h +++ b/libgfortran/config/fpu-387.h @@ -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; |