tcg: make sure NDEBUG is defined before including <assert.h>
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 16 Apr 2009 09:58:30 +0000 (09:58 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 16 Apr 2009 09:58:30 +0000 (09:58 +0000)
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7122 c046a42c-6fe2-441c-8c8c-71466251a162

tcg/tcg.c

index 982c105..a75d8dc 100644 (file)
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
 /* 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>
 #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 */