Re: CFR: a new __unreachable() builtin

2015-05-17 Thread Ed Schouten
2015-05-13 18:09 GMT+02:00 David Chisnall david.chisn...@cl.cam.ac.uk: LLVM uses this quite heavily, in a macro that expands to something equivalent to assert(0 unreachable reached!”) in debug mode and __builtin_unreachable() in release mode. When you’re debugging, you get errors if you

CFR: a new __unreachable() builtin

2015-05-13 Thread Pedro Giffuni
Hello; I am looking at the cdefs in other BSDs hoping to avoid adopting the same definitions with incompatible names and I noticed NetBSD is using a new __builtin_unreachable (void) function from gcc 4.6: https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html Apparently it was interesting

Re: CFR: a new __unreachable() builtin

2015-05-13 Thread David Chisnall
On 13 May 2015, at 17:05, Pedro Giffuni p...@freebsd.org wrote: Hello; I am looking at the cdefs in other BSDs hoping to avoid adopting the same definitions with incompatible names and I noticed NetBSD is using a new __builtin_unreachable (void) function from gcc 4.6: