https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120004
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #3) > Another option which I am thinking about is just expanding > __builtin_unreachable as the same as a trap. So at -O0, an explict > __builtin_unreachable will turn into a trap. And the RTL optimizations don't > take that much into account for unreachable either so having it as a trap > seems ok. The only issue with this is Why unreachable was added in the first place (PR 39252) but maybe it is ok to have one instruction (for most targets that support Linux except sh[PR70216] ) after the inline-asm.