Re: [Qemu-devel] [PATCH 6/8] tcg: Add tcg_debug_assert

2012-09-22 Thread Aurelien Jarno
On Fri, Sep 21, 2012 at 05:18:14PM -0700, Richard Henderson wrote: > Like the C assert macro, except only enabled for CONFIG_DEBUG_TCG, > and without having to set _NDEBUG and disable all other asserts at > the same time. > > The use of __builtin_unreachable (when available) gives the compiler > t

[Qemu-devel] [PATCH 6/8] tcg: Add tcg_debug_assert

2012-09-21 Thread Richard Henderson
Like the C assert macro, except only enabled for CONFIG_DEBUG_TCG, and without having to set _NDEBUG and disable all other asserts at the same time. The use of __builtin_unreachable (when available) gives the compiler the same information, which may (or may not) help it optimize better. Signed-of