[RFC/PATCH] Optimize code based on asserts even in NDEBUG mode

Joseph S. Myers jsm@polyomino.org.uk
Fri Apr 9 20:06:00 GMT 2004

On Fri, 9 Apr 2004, Richard Guenther wrote:

> Better invent a __builtin_assert() , or even a __builtin_gcc_assert() 
> which could have different semantics than C89 assert().

Or more generally a __builtin_unreachable() (indicate that a particular 
place can't be reached), which could also have a debugging command-line 
option to turn it into an abort instead of presuming it can't be reached.

Joseph S. Myers

More information about the Gcc-patches mailing list