https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109364
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- For GCC 13+, you can use -funreachable-traps which is enabled at -Og at least.
pinskia at gcc dot gnu.org via Gcc-bugs Fri, 31 Mar 2023 11:40:15 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109364
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- For GCC 13+, you can use -funreachable-traps which is enabled at -Og at least.