From: Uros Bizjak Date: Wed, 26 Sep 2018 15:25:15 +0000 (+0200) Subject: crtprec.c (set_precision): Use fnstcw instead of fstcw. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a76bba487f54f1036b4b11f1cdc54582191e836;p=gcc.git crtprec.c (set_precision): Use fnstcw instead of fstcw. * config/i386/crtprec.c (set_precision): Use fnstcw instead of fstcw. From-SVN: r264649 --- diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 928b5a86ac1..e08168cc44e 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,7 @@ +2018-09-26 Uros Bizjak + + * config/i386/crtprec.c (set_precision): Use fnstcw instead of fstcw. + 2018-09-21 Alexandre Oliva * config/vxcache.c: New file. Provide __clear_cache, based on diff --git a/libgcc/config/i386/crtprec.c b/libgcc/config/i386/crtprec.c index a3977994b1a..241e3553849 100644 --- a/libgcc/config/i386/crtprec.c +++ b/libgcc/config/i386/crtprec.c @@ -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;