History

-std=c99 option for the tcc: allow to use a tcc as a reference compiler for "make test" tcc will igmore this option.

seyko committed 11 years ago

Commit e374a731 parent 4c8ffb31 file · +6 −0Browse files

Unified · Split

libtcc.c+6−0
@@ -1662,6 +1662,7 @@ enum { · 1661 unmodified lines
16621662 TCC_OPTION_d,
16631663 TCC_OPTION_float_abi,
16641664 TCC_OPTION_static,
1665+ TCC_OPTION_std,
16651666 TCC_OPTION_shared,
16661667 TCC_OPTION_soname,
16671668 TCC_OPTION_o,
@@ -1718,6 +1719,7 @@ static const TCCOption tcc_options[] = { · 50 unmodified lines
17181719 { "mfloat-abi", TCC_OPTION_float_abi, TCC_OPTION_HAS_ARG },
17191720 #endif
17201721 { "static", TCC_OPTION_static, 0 },
1722+ { "std", TCC_OPTION_std, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
17211723 { "shared", TCC_OPTION_shared, 0 },
17221724 { "soname", TCC_OPTION_soname, TCC_OPTION_HAS_ARG },
17231725 { "o", TCC_OPTION_o, TCC_OPTION_HAS_ARG },
@@ -1876,6 +1878,10 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv) · 152 unmodified lines
18761878 case TCC_OPTION_static:
18771879 s->static_link = 1;
18781880 break;
1881+ case TCC_OPTION_std:
1882+ /* silently ignore, a current purpose:
1883+ allow to use a tcc as a reference compiler for "make test" */
1884+ break;
18791885 case TCC_OPTION_shared:
18801886 if (s->output_type)
18811887 tcc_warning("-shared: some compiler action already specified (%d)", s->output_type);

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