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
1662 TCC_OPTION_d,1662 TCC_OPTION_d,
1663 TCC_OPTION_float_abi,1663 TCC_OPTION_float_abi,
1664 TCC_OPTION_static,1664 TCC_OPTION_static,
1665 TCC_OPTION_std,
1665 TCC_OPTION_shared,1666 TCC_OPTION_shared,
1666 TCC_OPTION_soname,1667 TCC_OPTION_soname,
1667 TCC_OPTION_o,1668 TCC_OPTION_o,
@@ -1718,6 +1719,7 @@ static const TCCOption tcc_options[] = { · 50 unmodified lines
1718 { "mfloat-abi", TCC_OPTION_float_abi, TCC_OPTION_HAS_ARG },1719 { "mfloat-abi", TCC_OPTION_float_abi, TCC_OPTION_HAS_ARG },
1719#endif1720#endif
1720 { "static", TCC_OPTION_static, 0 },1721 { "static", TCC_OPTION_static, 0 },
1722 { "std", TCC_OPTION_std, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
1721 { "shared", TCC_OPTION_shared, 0 },1723 { "shared", TCC_OPTION_shared, 0 },
1722 { "soname", TCC_OPTION_soname, TCC_OPTION_HAS_ARG },1724 { "soname", TCC_OPTION_soname, TCC_OPTION_HAS_ARG },
1723 { "o", TCC_OPTION_o, TCC_OPTION_HAS_ARG },1725 { "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
1876 case TCC_OPTION_static:1878 case TCC_OPTION_static:
1877 s->static_link = 1;1879 s->static_link = 1;
1878 break;1880 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;
1879 case TCC_OPTION_shared:1885 case TCC_OPTION_shared:
1880 if (s->output_type)1886 if (s->output_type)
1881 tcc_warning("-shared: some compiler action already specified (%d)", s->output_type);1887 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