* [PATCH, i386]: Use fnstcw instead of fstcw to set x87 precision in crtprec.c
@ 2018-09-26 15:40 Uros Bizjak
0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2018-09-26 15:40 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 297 bytes --]
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.
[-- Attachment #2: l.diff.txt --]
[-- Type: text/plain, Size: 386 bytes --]
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-26 15:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-26 15:40 [PATCH, i386]: Use fnstcw instead of fstcw to set x87 precision in crtprec.c Uros Bizjak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).