Commit cca8298291ac8a0635e269d05b6aff8b5a42540c
1 parent
39386ac7
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
Showing
1 changed file
with
7 additions
and
6 deletions
tcg/tcg.c
| ... | ... | @@ -25,6 +25,13 @@ |
| 25 | 25 | /* define it to use liveness analysis (better code) */ |
| 26 | 26 | #define USE_LIVENESS_ANALYSIS |
| 27 | 27 | |
| 28 | +#include "config.h" | |
| 29 | + | |
| 30 | +#ifndef DEBUG_TCG | |
| 31 | +/* define it to suppress various consistency checks (faster) */ | |
| 32 | +#define NDEBUG | |
| 33 | +#endif | |
| 34 | + | |
| 28 | 35 | #include <assert.h> |
| 29 | 36 | #include <stdarg.h> |
| 30 | 37 | #include <stdlib.h> |
| ... | ... | @@ -38,15 +45,9 @@ |
| 38 | 45 | #include <alloca.h> |
| 39 | 46 | #endif |
| 40 | 47 | |
| 41 | -#include "config.h" | |
| 42 | 48 | #include "qemu-common.h" |
| 43 | 49 | #include "cache-utils.h" |
| 44 | 50 | |
| 45 | -#ifndef DEBUG_TCG | |
| 46 | -/* define it to suppress various consistency checks (faster) */ | |
| 47 | -#define NDEBUG | |
| 48 | -#endif | |
| 49 | - | |
| 50 | 51 | /* Note: the long term plan is to reduce the dependancies on the QEMU |
| 51 | 52 | CPU definitions. Currently they are used for qemu_ld/st |
| 52 | 53 | instructions */ | ... | ... |