Don't enable bound check if libgcc is used

Bound check rely on some functions provided by libtcc. It should
therefore not be enabled when libgcc is used.
This commit is contained in:
Thomas Preud'homme 2014-01-06 11:09:06 +08:00
parent 5078a06e91
commit a01d83d783
2 changed files with 3 additions and 2 deletions

View file

@ -338,7 +338,7 @@ Generate additional support code to check
memory allocations and array/pointer bounds. @option{-g} is implied. Note
that the generated code is slower and bigger in this case.
Note: @option{-b} is only available on i386 for the moment.
Note: @option{-b} is only available on i386 when using libtcc for the moment.
@item -bt N
Display N callers in stack traces. This is useful with @option{-g} or

3
tcc.h
View file

@ -128,7 +128,8 @@
#endif
#if !defined(TCC_UCLIBC) && !defined(TCC_TARGET_ARM) && \
!defined(TCC_TARGET_C67) && !defined(TCC_TARGET_X86_64)
!defined(TCC_TARGET_C67) && !defined(TCC_TARGET_X86_64) && \
!defined(CONFIG_USE_LIBGCC)
#define CONFIG_TCC_BCHECK /* enable bound checking code */
#endif