This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: __assert_fail should not be __attribute__((__noreturn__))
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~