History

tcc: add option -s for gcc compatibility (ignored)

Henry Kroll III committed 15 years ago

Commit eb550ed1 parent 69fe7581 file · +5 −1Browse files

Unified · Split

tcc.c+5−1
@@ -105,6 +105,7 @@ enum { · 104 unmodified lines
105105 TCC_OPTION_soname,
106106 TCC_OPTION_o,
107107 TCC_OPTION_r,
108+ TCC_OPTION_s,
108109 TCC_OPTION_Wl,
109110 TCC_OPTION_W,
110111 TCC_OPTION_O,
@@ -152,6 +153,7 @@ static const TCCOption tcc_options[] = { · 41 unmodified lines
152153 { "run", TCC_OPTION_run, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
153154 { "rdynamic", TCC_OPTION_rdynamic, 0 },
154155 { "r", TCC_OPTION_r, 0 },
156+ { "s", TCC_OPTION_s, 0 },
155157 { "Wl,", TCC_OPTION_Wl, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
156158 { "W", TCC_OPTION_W, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
157159 { "O", TCC_OPTION_O, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
@@ -297,7 +299,7 @@ static int parse_args(TCCState *s, int argc, char **argv) · 139 unmodified lines
297299 nb_libraries++;
298300 break;
299301 case TCC_OPTION_pthread:
300−/* fixme: these options could be different on your platform */
302+ /* fixme: these options could be different on your platform */
301303 if(output_type != TCC_OUTPUT_OBJ){
302304 dynarray_add((void ***)&files, &nb_files, "-lpthread");
303305 nb_libraries++;
@@ -346,6 +348,8 @@ static int parse_args(TCCState *s, int argc, char **argv) · 42 unmodified lines
346348 case TCC_OPTION_nostdinc:
347349 s->nostdinc = 1;
348350 break;
351+ case TCC_OPTION_s:
352+ break;
349353 case TCC_OPTION_nostdlib:
350354 s->nostdlib = 1;
351355 break;

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