OSDN Git Service

* config/fpu-387.h (set_fpu): Add "=m" for stmxcsr.
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Oct 2005 12:54:30 +0000 (12:54 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Oct 2005 12:54:30 +0000 (12:54 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105369 138bc75d-0d04-0410-961f-82ee72b054a4

libgfortran/ChangeLog
libgfortran/config/fpu-387.h

index 9433fda..8afd871 100644 (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
index 06c02ea..e7f3518 100644 (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;