History

Fix typo with -ba option

herman ten brugge committed 6 years ago

Commit 35512be1 parent 75145dd4 files · +4 −4Browse files

Unified · Split

4 files
  1. libtcc.c +1 −1
  2. tcc.c +1 −1
  3. tcc.h +1 −1
  4. tccgen.c +1 −1
libtcc.c+1−1
@@ -1803,7 +1803,7 @@ reparse: · 1802 unmodified lines
1803 s->do_debug = 1;1803 s->do_debug = 1;
1804 break;1804 break;
1805 case TCC_OPTION_ba:1805 case TCC_OPTION_ba:
1806 s->do_bounds_check_addres = 1;1806 s->do_bounds_check_address = 1;
1807 break;1807 break;
1808#endif1808#endif
1809 case TCC_OPTION_g:1809 case TCC_OPTION_g:
tcc.c+1−1
@@ -59,7 +59,7 @@ static const char help[] = · 58 unmodified lines
59 " -g generate runtime debug info\n"59 " -g generate runtime debug info\n"
60#ifdef CONFIG_TCC_BCHECK60#ifdef CONFIG_TCC_BCHECK
61 " -b compile with built-in memory and bounds checker (implies -g)\n"61 " -b compile with built-in memory and bounds checker (implies -g)\n"
62 " -ba Enable better addres checking with bounds checker\n"62 " -ba Enable better address checking with bounds checker\n"
63#endif63#endif
64#ifdef CONFIG_TCC_BACKTRACE64#ifdef CONFIG_TCC_BACKTRACE
65 " -bt N show N callers in stack traces\n"65 " -bt N show N callers in stack traces\n"
tcc.h+1−1
@@ -720,7 +720,7 @@ struct TCCState { · 719 unmodified lines
720#ifdef CONFIG_TCC_BCHECK720#ifdef CONFIG_TCC_BCHECK
721 /* compile with built-in memory and bounds checker */721 /* compile with built-in memory and bounds checker */
722 unsigned char do_bounds_check;722 unsigned char do_bounds_check;
723 unsigned char do_bounds_check_addres;723 unsigned char do_bounds_check_address;
724#endif724#endif
725#ifdef TCC_TARGET_ARM725#ifdef TCC_TARGET_ARM
726 enum float_abi float_abi; /* float ABI of the generated code*/726 enum float_abi float_abi; /* float ABI of the generated code*/
tccgen.c+1−1
@@ -2509,7 +2509,7 @@ redo: · 2508 unmodified lines
2509 */2509 */
2510 /* if evaluating constant expression, no code should be2510 /* if evaluating constant expression, no code should be
2511 generated, so no bound check */2511 generated, so no bound check */
2512 if (tcc_state->do_bounds_check && tcc_state->do_bounds_check_addres2512 if (tcc_state->do_bounds_check && tcc_state->do_bounds_check_address
2513 && !const_wanted && !nocode_wanted) {2513 && !const_wanted && !nocode_wanted) {
2514 /* if bounded pointers, we generate a special code to2514 /* if bounded pointers, we generate a special code to
2515 test bounds */2515 test bounds */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t