omoikane 4 hours ago
Another alternative is to use `__builtin_unreachable()` (not standard, but available in GCC and Clang).
charleslmunger 4 hours ago
Vaushite 3 hours ago
You saw it yourself: unreachable generates no code and suppresses the function epilog (duh - it's unreachable) but null deref generated a trap instruction in GCC. If you wanted a trap instruction, maybe this compiler reliably generates one from a hardcoded null deref.
pestatije 4 hours ago
johnea 5 hours ago