]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgcc/config/i386/crtprec.c
Update copyright years.
[thirdparty/gcc.git] / libgcc / config / i386 / crtprec.c
index f0c1fbe72284851543184a09cacd98a5bdebbf9c..f5e9ac2e072fabc7c7f16e99f525e921aa349e07 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007-2013 Free Software Foundation, Inc.
+ * Copyright (C) 2007-2021 Free Software Foundation, Inc.
  *
  * This file is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License as published by the
@@ -21,6 +21,7 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#ifndef _SOFT_FLOAT
 #if __PREC == 32
  #define X87CW         (0 << 8)        /* Single precision (24 bits) */
 #elif __PREC == 64
@@ -38,10 +39,11 @@ set_precision (void)
 {
   unsigned short int cwd;
 
-  asm volatile ("fstcw\t%0" : "=m" (cwd));
+  asm volatile ("fnstcw\t%0" : "=m" (cwd));
 
   cwd &= ~X87CW_PCMASK;
   cwd |= X87CW;
 
   asm volatile ("fldcw\t%0" : : "m" (cwd));
 }
+#endif