This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/26712] gfortran on mac intel runtime floating point exception when printing
- From: "ccb at dl dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Mar 2006 10:13:47 -0000
- Subject: [Bug libfortran/26712] gfortran on mac intel runtime floating point exception when printing
- References: <bug-26712-12369@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from ccb at dl dot ac dot uk 2006-03-17 10:13 -------
How do I put this. The apple fenv.h supplied functions "work" by only setting
bits in mxcsr (not cw), and then only setting bits 1-6. Problem is that the
actual working bits are in 7-12 (as in fpu-387.h). So my little test.f runs
with the default mask (all bits on). I get the failure when using gfortran as
the mxcsr bits
are all set off (same test.f as above, default compilation)
0x37f is cw
0 is cw_sse
Floating point exception
defalt cw_sse is 0x1f80 .
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26712