From 0a76bba487f54f1036b4b11f1cdc54582191e836 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Wed, 26 Sep 2018 17:25:15 +0200 Subject: [PATCH] crtprec.c (set_precision): Use fnstcw instead of fstcw. * config/i386/crtprec.c (set_precision): Use fnstcw instead of fstcw. From-SVN: r264649 --- libgcc/ChangeLog | 4 ++++ libgcc/config/i386/crtprec.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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; -- 2.30.2