This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] RFA: -finput-charset support
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Eric Christopher <echristo at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Zack Weinberg <zack at codesourcery dot com>,mark at codesourcery dot com
- Date: Thu, 29 Jan 2004 23:33:45 +0000
- Subject: Re: [PATCH] RFA: -finput-charset support
- References: <1075417260.3351.22.camel@dzur.sfbay.redhat.com>
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.