Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
silon7
· 10y ago · 0 comments
I've used at times it to crash the program (core dump), producing a cleaner stack than abort().
Comments
[–]
astrange
10y ago
You should use __builtin_trap(). Invoking undefined behavior lets the compiler justifiably delete the entire code path leading up to it.