https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103978
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- here is the more interesting part, If I do -fexceptions with the C front-end, it works. But with the C++ front-end, neither -fno-exceptions nor -fexceptions work.