mirror of
git://repo.or.cz/tinycc.git
synced 2026-07-06 11:28:40 +08:00
Fix typo with -ba option
This commit is contained in:
parent
75145ddc1a
commit
35512be1ee
2
libtcc.c
2
libtcc.c
@ -1803,7 +1803,7 @@ reparse:
|
|||||||
s->do_debug = 1;
|
s->do_debug = 1;
|
||||||
break;
|
break;
|
||||||
case TCC_OPTION_ba:
|
case TCC_OPTION_ba:
|
||||||
s->do_bounds_check_addres = 1;
|
s->do_bounds_check_address = 1;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case TCC_OPTION_g:
|
case TCC_OPTION_g:
|
||||||
|
|||||||
2
tcc.c
2
tcc.c
@ -59,7 +59,7 @@ static const char help[] =
|
|||||||
" -g generate runtime debug info\n"
|
" -g generate runtime debug info\n"
|
||||||
#ifdef CONFIG_TCC_BCHECK
|
#ifdef CONFIG_TCC_BCHECK
|
||||||
" -b compile with built-in memory and bounds checker (implies -g)\n"
|
" -b compile with built-in memory and bounds checker (implies -g)\n"
|
||||||
" -ba Enable better addres checking with bounds checker\n"
|
" -ba Enable better address checking with bounds checker\n"
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_TCC_BACKTRACE
|
#ifdef CONFIG_TCC_BACKTRACE
|
||||||
" -bt N show N callers in stack traces\n"
|
" -bt N show N callers in stack traces\n"
|
||||||
|
|||||||
2
tcc.h
2
tcc.h
@ -720,7 +720,7 @@ struct TCCState {
|
|||||||
#ifdef CONFIG_TCC_BCHECK
|
#ifdef CONFIG_TCC_BCHECK
|
||||||
/* compile with built-in memory and bounds checker */
|
/* compile with built-in memory and bounds checker */
|
||||||
unsigned char do_bounds_check;
|
unsigned char do_bounds_check;
|
||||||
unsigned char do_bounds_check_addres;
|
unsigned char do_bounds_check_address;
|
||||||
#endif
|
#endif
|
||||||
#ifdef TCC_TARGET_ARM
|
#ifdef TCC_TARGET_ARM
|
||||||
enum float_abi float_abi; /* float ABI of the generated code*/
|
enum float_abi float_abi; /* float ABI of the generated code*/
|
||||||
|
|||||||
2
tccgen.c
2
tccgen.c
@ -2509,7 +2509,7 @@ redo:
|
|||||||
*/
|
*/
|
||||||
/* if evaluating constant expression, no code should be
|
/* if evaluating constant expression, no code should be
|
||||||
generated, so no bound check */
|
generated, so no bound check */
|
||||||
if (tcc_state->do_bounds_check && tcc_state->do_bounds_check_addres
|
if (tcc_state->do_bounds_check && tcc_state->do_bounds_check_address
|
||||||
&& !const_wanted && !nocode_wanted) {
|
&& !const_wanted && !nocode_wanted) {
|
||||||
/* if bounded pointers, we generate a special code to
|
/* if bounded pointers, we generate a special code to
|
||||||
test bounds */
|
test bounds */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user