diff mbox series

[i386] : Use fnstcw instead of fstcw to set x87 precision in crtprec.c

Message ID CAFULd4Y2jmiHfBh=U-cdH7Eihm7661AP_yMw4hc0w3XFzJV6ZA@mail.gmail.com
State New
Headers show
Series [i386] : Use fnstcw instead of fstcw to set x87 precision in crtprec.c | expand

Commit Message

Uros Bizjak Sept. 26, 2018, 3:30 p.m. UTC
Hello!

There is no point to handle exceptions at the program startup time.

2018-09-26  Uros Bizjak  <ubizjak@gmail.com>

    * config/i386/crtprec.c (set_precision): Use fnstcw instead of fstcw.

Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.

Committed to mainline SVN.

Uros.
diff mbox series

Patch

Index: config/i386/crtprec.c
===================================================================
--- config/i386/crtprec.c	(revision 264643)
+++ config/i386/crtprec.c	(working copy)
@@ -39,7 +39,7 @@  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;