This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to add -fshort-wchar
- To: Jason Merrill <jason at cygnus dot com>
- Subject: Re: Patch to add -fshort-wchar
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sat, 28 Aug 1999 04:18:12 -0600
- cc: egcs-patches at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <199906220943.CAA20202@yorick.cygnus.com>you write:
> This patch adds a flag to change wchar_t to be a short, for MS
> compatibility. The implementation is not very clean, but I don't really
> see a better way. Thoughts?
>
> Index: ChangeLog
> Tue May 25 09:22:06 1999 Jason Merrill <jason@yorick.cygnus.com>
>
> * 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__.
>
> Index: cp/ChangeLog
> 1999-05-25 Jason Merrill <jason@yorick.cygnus.com>
>
> * lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node.
> * lang-specs.h: If -fshort-wchar, override __WCHAR_TYPE__.
>
> 1999-05-24 Jason Merrill <jason@yorick.cygnus.com>
>
> * decl2.c (lang_f_options): Add -fshort-wchar.
> * lang-options.h: Likewise.
> * cp-tree.h: Declare flag_short_wchar.
> * decl.c (init_decl_processing): If -fshort-wchar, use 'short unsigned
> int' for wchar_t.
Err, why isn't this handled in a config file?
Or is this part of the "let's build MS stuff on native Linux" project?
jeff