[7122] tcg: make sure NDEBUG is defined before including <assert.h>
Revision: 7122
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7122 Author: aurel32 Date: 2009-04-16 09:58:30 +0000 (Thu, 16 Apr 2009)
Log Message:
-----------
tcg: make sure NDEBUG is defined before including <assert.h>
Signed-off-by Aurelien Jarno <[email protected]>
Modified Paths:
--------------
trunk/tcg/tcg.c
Modified: trunk/tcg/tcg.c
===================================================================
tcg/tcg.c +7 -6
@@ -25,6 +25,13 @@/* define it to use liveness analysis (better code) */ #define USE_LIVENESS_ANALYSIS +#include "config.h" + +#ifndef DEBUG_TCG +/* define it to suppress various consistency checks (faster) */ +#define NDEBUG +#endif +#include <assert.h> #include <stdarg.h> #include <stdlib.h>
@@ -38,15 +45,9 @@#include <alloca.h> #endif -#include "config.h" #include "qemu-common.h" #include "cache-utils.h" -#ifndef DEBUG_TCG -/* define it to suppress various consistency checks (faster) */ -#define NDEBUG -#endif -/* Note: the long term plan is to reduce the dependancies on the QEMU CPU definitions. Currently they are used for qemu_ld/st instructions */