https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107071
--- Comment #4 from Andreas Schwab <sch...@linux-m68k.org> --- The problem is that set_fpu_trap_exceptions does not check if feenableexcept was successful. Just because FE_* are defined does not mean that the hardware supports fpu exceptions of that kind (it may depend on the actual flavor of the hardware).