[Bug libfortran/26712] gfortran on mac intel runtime floating point exception when printing

ccb at dl dot ac dot uk gcc-bugzilla@gcc.gnu.org
Fri Mar 17 10:13:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list