On 21.09.2012 04:18, Max Filippov wrote: > diff --git a/tcg/tcg.c b/tcg/tcg.c
> +#ifdef CONFIG_DEBUG_TCG > +static void tcg_sanity_check(TCGContext *s) #ifndef CONFIG_DEBUG_TCG #define tcg_sanity_check(s) /*empty*/ #else static void tcg_sanity_check(TCGContext *s) > +{ [] > +} > +#endif > @@ -2082,6 +2147,10 @@ static inline int tcg_gen_code_common(TCGContext *s, > uint8_t *gen_code_buf, > +#ifdef CONFIG_DEBUG_TCG > + tcg_sanity_check(s); > +#endif And here we can drop the #ifdef. FWIW. /mjt