This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch to add -fshort-wchar


  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]