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
18031803 s->do_debug = 1;
18041804 break;
18051805 case TCC_OPTION_ba:
1806− s->do_bounds_check_addres = 1;
1806+ s->do_bounds_check_address = 1;
18071807 break;
18081808 #endif
18091809 case TCC_OPTION_g:
tcc.c+1−1
@@ -59,7 +59,7 @@ static const char help[] = · 58 unmodified lines
5959 " -g generate runtime debug info\n"
6060 #ifdef CONFIG_TCC_BCHECK
6161 " -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"
6363 #endif
6464 #ifdef CONFIG_TCC_BACKTRACE
6565 " -bt N show N callers in stack traces\n"
tcc.h+1−1
@@ -720,7 +720,7 @@ struct TCCState { · 719 unmodified lines
720720 #ifdef CONFIG_TCC_BCHECK
721721 /* compile with built-in memory and bounds checker */
722722 unsigned char do_bounds_check;
723− unsigned char do_bounds_check_addres;
723+ unsigned char do_bounds_check_address;
724724 #endif
725725 #ifdef TCC_TARGET_ARM
726726 enum float_abi float_abi; /* float ABI of the generated code*/
tccgen.c+1−1
@@ -2509,7 +2509,7 @@ redo: · 2508 unmodified lines
25092509 */
25102510 /* if evaluating constant expression, no code should be
25112511 generated, so no bound check */
2512− if (tcc_state->do_bounds_check && tcc_state->do_bounds_check_addres
2512+ if (tcc_state->do_bounds_check && tcc_state->do_bounds_check_address
25132513 && !const_wanted && !nocode_wanted) {
25142514 /* if bounded pointers, we generate a special code to
25152515 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