summaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-16 09:58:30 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-16 09:58:30 +0000
commitcca8298291ac8a0635e269d05b6aff8b5a42540c (patch)
tree96b7e59063450043422f969a2bb7fdad4d1974a9 /tcg
parent39386ac783d6e4a2ec965aaab154c744484f9743 (diff)
downloadqemu-cca8298291ac8a0635e269d05b6aff8b5a42540c.zip
tcg: make sure NDEBUG is defined before including <assert.h>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7122 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tcg')
-rw-r--r--tcg/tcg.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 982c10524a..a75d8dcc2c 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -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 */