https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104045
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note I don't even think llvm implements-ftrapping-math . Still not a gcc bug. There is a bug request on changing the default already opened for gcc.