diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2014-01-06 11:09:06 +0800 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2014-01-06 11:26:09 +0800 |
| commit | a01d83d78380e84b04d62ca34a142a7e3d8e390d (patch) | |
| tree | c168132239f5d3cf6275b74bc6aea203fc40f934 | |
| parent | 5078a06e9161da124b7530bfb19e49dba4fb359c (diff) | |
| download | tinycc-a01d83d78380e84b04d62ca34a142a7e3d8e390d.tar.gz tinycc-a01d83d78380e84b04d62ca34a142a7e3d8e390d.tar.bz2 | |
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.
| -rw-r--r-- | tcc-doc.texi | 2 | ||||
| -rw-r--r-- | tcc.h | 3 |
2 files changed, 3 insertions, 2 deletions
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 @@ -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 |
