[Bug middle-end/118549] -funreachable-traps doesn't transform user provided unreachable into trap
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 20 09:10:37 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118549
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
That is the way it was designed.
For user code, the user can choose what to use, whether it is
__builtin_unreachable () or __builtin_trap (). -funreachable-traps is about
what the compiler chooses when it adds some on its own.
More information about the Gcc-bugs
mailing list