__assert_fail should not be __attribute__((__noreturn__))
Richard Henderson
rth@twiddle.net
Tue Apr 6 03:51:00 GMT 2004
On Mon, Apr 05, 2004 at 09:23:17PM +0200, Johannes Sixt wrote:
> These optimization opportunities are only available if assert() is used, but
> NDEBUG is _not_ used. That is, the optimzed code is payed with the runtime
> needed to evaluate the condition.
For now, with gcc. Other compilers arrange for assert with NDEBUG
to expand to something that generates no code, yet provides the
compiler with the same information. GCC may eventually do something
similar.
As Uli said, you clearly don't want assert, you want something else.
r~
More information about the Libc-alpha
mailing list