[Bug c++/104642] Add __builtin_trap() for missing return at -O0

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 10 19:42:56 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104642

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
The suggested -funreachable-traps seems to have a lot of overlap with
-fsanitize-undefined-trap-on-error; I wonder about combining them, and having
it by itself imply -fsanitize=unreachable.


More information about the Gcc-bugs mailing list