History

Add --param, reject -mARG if ARG not 32 or 64

Michael Matz committed 10 years ago

Commit b285fc51 parent 92851491 file · +4 −0Browse files

Unified · Split

libtcc.c+4−0
@@ -1523,6 +1523,7 @@ enum { · 1522 unmodified lines
15231523 TCC_OPTION_nostdlib,
15241524 TCC_OPTION_print_search_dirs,
15251525 TCC_OPTION_rdynamic,
1526+ TCC_OPTION_param,
15261527 TCC_OPTION_pedantic,
15271528 TCC_OPTION_pthread,
15281529 TCC_OPTION_run,
@@ -1568,6 +1569,7 @@ static const TCCOption tcc_options[] = { · 39 unmodified lines
15681569 { "shared", TCC_OPTION_shared, 0 },
15691570 { "soname", TCC_OPTION_soname, TCC_OPTION_HAS_ARG },
15701571 { "o", TCC_OPTION_o, TCC_OPTION_HAS_ARG },
1572+ { "-param", TCC_OPTION_param, TCC_OPTION_HAS_ARG },
15711573 { "pedantic", TCC_OPTION_pedantic, 0},
15721574 { "pthread", TCC_OPTION_pthread, 0},
15731575 { "run", TCC_OPTION_run, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
@@ -1770,6 +1772,8 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv) · 196 unmodified lines
17701772 s->soname = tcc_strdup(optarg);
17711773 break;
17721774 case TCC_OPTION_m:
1775+ if (strcmp(optarg, "32") && strcmp(optarg, "64"))
1776+ goto unsupported_option;
17731777 s->option_m = tcc_strdup(optarg);
17741778 break;
17751779 case TCC_OPTION_o:

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