提交 cca82982 编写于 作者: A aurel32

tcg: make sure NDEBUG is defined before including <assert.h>

Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7122 c046a42c-6fe2-441c-8c8c-71466251a162
上级 39386ac7
...@@ -25,6 +25,13 @@ ...@@ -25,6 +25,13 @@
/* define it to use liveness analysis (better code) */ /* define it to use liveness analysis (better code) */
#define USE_LIVENESS_ANALYSIS #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 <assert.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -38,15 +45,9 @@ ...@@ -38,15 +45,9 @@
#include <alloca.h> #include <alloca.h>
#endif #endif
#include "config.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "cache-utils.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 /* Note: the long term plan is to reduce the dependancies on the QEMU
CPU definitions. Currently they are used for qemu_ld/st CPU definitions. Currently they are used for qemu_ld/st
instructions */ instructions */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册