[Bug c/66326] Floating point exception with -mfpmath=387 and -fcilkplus.

ejolson at unr dot edu gcc-bugzilla@gcc.gnu.org
Fri Aug 14 22:54:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66326

--- Comment #3 from Eric <ejolson at unr dot edu> ---
GCC version 5.2 has come around and the bug is still here.

In particular, compiling for 32-bit Intel or using -mfpmath=387 in 64-bit leads
to immediate floating point exceptions.  The fix was to comment out the define
RESTORE_X86_FP_STATE at the top of
libcilkrts/runtime/config/x86/os-unix-sysdep.c because the code in the restore
and save routines is SSE only.  Note that changing floating point rounding
modes may not function as expected on 32-bit or with -mfpmath=387 set, however,
otherwise this simple fix is effective.

As already before, more information and this work-around is at 

https://software.intel.com/en-us/forums/topic/558825



More information about the Gcc-bugs mailing list