diff --git a/tcc-doc.texi b/tcc-doc.texi index dbfbb4a..fbb0220 100644 --- a/tcc-doc.texi +++ b/tcc-doc.texi @@ -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 diff --git a/tcc.h b/tcc.h index 92e528d..50642b7 100644 --- a/tcc.h +++ b/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