crtfastmath.c (set_fast_math): Add "=m" for fxsave.
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 17 Aug 2005 00:32:17 +0000 (00:32 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 17 Aug 2005 00:32:17 +0000 (17:32 -0700)
2005-08-16  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/crtfastmath.c (set_fast_math): Add "=m" for
fxsave.

From-SVN: r103189

gcc/ChangeLog
gcc/config/i386/crtfastmath.c

index 7dcf8c35da95315e5f9d7dcfbfc5486ef0f0c968..a1f447375cbfa620342484303636f7ac1174b2ac 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
+       fxsave.
+
 2005-08-16  Ian Lance Taylor  <ian@airs.com>
 
        * doc/tm.texi (Label Output): Correct typo.
index fdff24723ac80aa8c544950fd0aac18392bea2f3..e42bca9391754b121c710f5669892d7425a9e2e3 100644 (file)
@@ -94,7 +94,7 @@ set_fast_math (void)
 
          __builtin_memset (&fxsave, 0, sizeof (fxsave));
 
-         asm volatile ("fxsave %0" : : "m" (fxsave));
+         asm volatile ("fxsave %0" : "=m" (fxsave) : "m" (fxsave));
 
          if (fxsave.mxcsr_mask & MXCSR_DAZ)
            mxcsr |= MXCSR_DAZ;