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:
parent
5078a06e91
commit
a01d83d783
2 changed files with 3 additions and 2 deletions
|
@ -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
3
tcc.h
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue