diff options
author | Jason Merrill <jason@yorick.cygnus.com> | 1999-09-23 21:03:53 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1999-09-23 17:03:53 -0400 |
commit | 12a39b12648fdd1675757518450720d16ef24793 (patch) | |
tree | f1348bbe949f8cba90abd610eefdbe630bdaa2c1 /gcc/gcc.c | |
parent | e689ae67255aca55fddb4b01b0b9ded6d3f151ea (diff) | |
download | gcc-12a39b12648fdd1675757518450720d16ef24793.zip gcc-12a39b12648fdd1675757518450720d16ef24793.tar.gz gcc-12a39b12648fdd1675757518450720d16ef24793.tar.bz2 |
toplev.c (documented_lang_options): Add -fshort-wchar.
* toplev.c (documented_lang_options): Add -fshort-wchar.
* c-decl.c (c_decode_option): Likewise.
(init_decl_processing): If -fshort-wchar, use 'short unsigned int'
for wchar_t.
* c-common.c, c-lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node.
* gcc.c (default_compilers): If -fshort-wchar,
override __WCHAR_TYPE__.
* tm.texi (C Dialect Options): Add -fshort-wchar.
From-SVN: r29638
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -610,6 +610,7 @@ static struct compiler default_compilers[] = %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs}\ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\ %{ffast-math:-D__FAST_MATH__}\ + %{fshort-wchar:-D__WCHAR_TYPE__=short\\ unsigned\\ int}\ %{traditional} %{ftraditional:-traditional}\ %{traditional-cpp:-traditional}\ %{fleading-underscore} %{fno-leading-underscore}\ @@ -624,6 +625,8 @@ static struct compiler default_compilers[] = %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs}\ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\ %{ffast-math:-D__FAST_MATH__}\ + %{fshort-wchar:-D__WCHAR_TYPE__=short\\ unsigned\\ int}\ + %{fshort-wchar:-D__WCHAR_TYPE__=short\\ unsigned\\ int}\ %{H} %C %{D*} %{U*} %{i*} %Z\ %{ftraditional:-traditional}\ %{traditional-cpp:-traditional}\ @@ -646,6 +649,7 @@ static struct compiler default_compilers[] = %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs}\ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\ %{ffast-math:-D__FAST_MATH__}\ + %{fshort-wchar:-D__WCHAR_TYPE__=short\\ unsigned\\ int}\ %{traditional} %{ftraditional:-traditional}\ %{traditional-cpp:-traditional}\ %{fleading-underscore} %{fno-leading-underscore}\ @@ -674,6 +678,7 @@ static struct compiler default_compilers[] = %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs}\ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\ %{ffast-math:-D__FAST_MATH__}\ + %{fshort-wchar:-D__WCHAR_TYPE__=short\\ unsigned\\ int}\ %{traditional} %{ftraditional:-traditional}\ %{traditional-cpp:-traditional}\ %{fleading-underscore} %{fno-leading-underscore}\ @@ -691,6 +696,8 @@ static struct compiler default_compilers[] = %{!undef:%{!std=*:%p}%{std=gnu*:%p} %P} %{trigraphs}\ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\ %{ffast-math:-D__FAST_MATH__}\ + %{fshort-wchar:-D__WCHAR_TYPE__=short\\ unsigned\\ int}\ + %{fshort-wchar:-D__WCHAR_TYPE__=short\\ unsigned\\ int}\ %{traditional} %{ftraditional:-traditional}\ %{traditional-cpp:-traditional}\ %{fleading-underscore} %{fno-leading-underscore}\ @@ -720,6 +727,7 @@ static struct compiler default_compilers[] = -$ %{!undef:%p %P} -D__ASSEMBLER__ \ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\ %{ffast-math:-D__FAST_MATH__}\ + %{fshort-wchar:-D__WCHAR_TYPE__=short\\ unsigned\\ int}\ %{traditional} %{ftraditional:-traditional}\ %{traditional-cpp:-traditional}\ %{fleading-underscore} %{fno-leading-underscore}\ |