Both functions call __mingw_setfp_sse directly, without check whether sse is present by calling __mingw_has_sse first, this cause crashes with illegal instruction on systems without sse support.
Relevant files: mingw-w64/mingw-w64-crt/misc/fegetexceptflag.c and mingw-w64/mingw-w64-crt/misc/fegetenv.c
I have also spotted this issue. I have already prepared fix and will send it to the mailing list soon.