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,6 +25,13 @@ | ||
| 25 | /* define it to use liveness analysis (better code) */ | 25 | /* define it to use liveness analysis (better code) */ |
| 26 | #define USE_LIVENESS_ANALYSIS | 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 | #include <assert.h> | 35 | #include <assert.h> |
| 29 | #include <stdarg.h> | 36 | #include <stdarg.h> |
| 30 | #include <stdlib.h> | 37 | #include <stdlib.h> |
| @@ -38,15 +45,9 @@ | @@ -38,15 +45,9 @@ | ||
| 38 | #include <alloca.h> | 45 | #include <alloca.h> |
| 39 | #endif | 46 | #endif |
| 40 | 47 | ||
| 41 | -#include "config.h" | ||
| 42 | #include "qemu-common.h" | 48 | #include "qemu-common.h" |
| 43 | #include "cache-utils.h" | 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 | /* Note: the long term plan is to reduce the dependancies on the QEMU | 51 | /* Note: the long term plan is to reduce the dependancies on the QEMU |
| 51 | CPU definitions. Currently they are used for qemu_ld/st | 52 | CPU definitions. Currently they are used for qemu_ld/st |
| 52 | instructions */ | 53 | instructions */ |