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]
Other format: [Raw text]

Re: [PATCH] RFA: -finput-charset support


Eric Christopher wrote:-

> Here's the final patch to add input character set support into gcc. It
> fixes a few regressions (PR 11439) so I'd like to put it into 3.4 as
> well (since the first patch was also in there and this is finishing up
> that work and fixing it as well).
> 
> Bootstrapped and regression tested on x86-linux with a few different
> environments/command lines.
> 
> -eric
> 
> -- 
> Eric Christopher <echristo@redhat.com>
> 
> gcc/ChangeLog
> 2004-01-29  Eric Christopher  <echristo@redhat.com>
> 	    Zack Weinberg  <zack@codesourcery.com>
> 
> 	c-opts.c (c_common_handle_option): Add -finput-charset.
> 	c.opt: Ditto.
> 	cppcharset.c (one_iso88591_to_utf8): Remove.
> 	(convert_iso88591_utf8): Ditto.
> 	(conversion_tab): Remove 8859-1 converter.
> 	(_cpp_input_to_utf8): Remove.
> 	(_cpp_init_iconv_buffer): Ditto.
> 	(_cpp_close_iconv_buffer): Ditto.
> 	(_cpp_convert_input): New function.
> 	(_cpp_default_encoding): Ditto.
> 	cpphash.h: Add/remove prototypes for above.
> 	cppfiles.c (read_file_guts): Use _cpp_convert_input.
> 	cppinit.c (cpp_create_reader): Use _cpp_default_encoding
> 	for narrow execution and input character sets.
> 	cpplib.c (cpp_push_buffer): Delete uses of removed functions.
> 	doc/cppopts.texi: Document -finput-charset.

OK.

Any ideas for optimizing (or not pessimizing) common cases?

Neil.


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