This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/39036] Decimal floating-point exception flags done wrong
- From: "tydeman at tybor dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jan 2009 22:42:23 -0000
- Subject: [Bug c/39036] Decimal floating-point exception flags done wrong
- References: <bug-39036-17245@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from tydeman at tybor dot com 2009-01-30 22:42 -------
I consider emulation of decimal FP to be part of the compiler's job. Part of
that emulation is setting the FP execption flags as per IEEE-754-2008.
There is one set of FP exception flags (used for both binary FP and decimal
FP).
Given that the <fenv.h> functions work correctly for binary FP exceptions
(and they mostly do on Intel x86/x87), then they should work correctly for
decimal FP exceptions.
The full set of command line options I give gcc is:
-std=gnu99 -pedantic -H -fno-builtin -frounding-math
My understanding is -frounding-math is supposed to act like a global
#pragma STDC FENV_ACCESS ON
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39036