This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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
jsm@polyomino.org.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]