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
105 TCC_OPTION_soname,105 TCC_OPTION_soname,
106 TCC_OPTION_o,106 TCC_OPTION_o,
107 TCC_OPTION_r,107 TCC_OPTION_r,
108 TCC_OPTION_s,
108 TCC_OPTION_Wl,109 TCC_OPTION_Wl,
109 TCC_OPTION_W,110 TCC_OPTION_W,
110 TCC_OPTION_O,111 TCC_OPTION_O,
@@ -152,6 +153,7 @@ static const TCCOption tcc_options[] = { · 41 unmodified lines
152 { "run", TCC_OPTION_run, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },153 { "run", TCC_OPTION_run, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
153 { "rdynamic", TCC_OPTION_rdynamic, 0 },154 { "rdynamic", TCC_OPTION_rdynamic, 0 },
154 { "r", TCC_OPTION_r, 0 },155 { "r", TCC_OPTION_r, 0 },
156 { "s", TCC_OPTION_s, 0 },
155 { "Wl,", TCC_OPTION_Wl, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },157 { "Wl,", TCC_OPTION_Wl, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
156 { "W", TCC_OPTION_W, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },158 { "W", TCC_OPTION_W, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
157 { "O", TCC_OPTION_O, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },159 { "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
297 nb_libraries++;299 nb_libraries++;
298 break;300 break;
299 case TCC_OPTION_pthread:301 case TCC_OPTION_pthread:
300/* fixme: these options could be different on your platform */302 /* fixme: these options could be different on your platform */
301 if(output_type != TCC_OUTPUT_OBJ){303 if(output_type != TCC_OUTPUT_OBJ){
302 dynarray_add((void ***)&files, &nb_files, "-lpthread");304 dynarray_add((void ***)&files, &nb_files, "-lpthread");
303 nb_libraries++;305 nb_libraries++;
@@ -346,6 +348,8 @@ static int parse_args(TCCState *s, int argc, char **argv) · 42 unmodified lines
346 case TCC_OPTION_nostdinc:348 case TCC_OPTION_nostdinc:
347 s->nostdinc = 1;349 s->nostdinc = 1;
348 break;350 break;
351 case TCC_OPTION_s:
352 break;
349 case TCC_OPTION_nostdlib:353 case TCC_OPTION_nostdlib:
350 s->nostdlib = 1;354 s->nostdlib = 1;
351 break;355 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