]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/pretty-print.c
intl.c (locale_encoding, [...]): New.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 4 May 2009 12:23:50 +0000 (13:23 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 4 May 2009 12:23:50 +0000 (13:23 +0100)
commita3af5087d9b0e120764cb3852da73149be17dfac
treef7e08408fe3883d28eb96bdfd6745551e07b82a0
parentea5cd5f17f80c6f6d6cf8b2a0868675e7c8ea391
intl.c (locale_encoding, [...]): New.

* intl.c (locale_encoding, locale_utf8): New.
(gcc_init_libintl): Initialize locale_encoding and locale_utf8.
* intl.h (locale_encoding, locale_utf8): Declare.
* pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
(pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
New.
* pretty-print.h (pp_identifier): Call identifier_to_locale on ID
argument.
(pp_tree_identifier): Define to call pp_base_tree_identifier.
(pp_base_tree_identifier): Declare as function.
(identifier_to_locale): Declare.
* Makefile.in (pretty-print.o): Update dependencies.
* varasm.c (finish_aliases_1): Use %qE for identifiers in
diagnostics.

testsuite:
* gcc.dg/attr-alias-5.c, gcc.dg/ucnid-7.c: New tests.

From-SVN: r147096
gcc/ChangeLog
gcc/Makefile.in
gcc/intl.c
gcc/intl.h
gcc/pretty-print.c
gcc/pretty-print.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/attr-alias-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ucnid-7.c [new file with mode: 0644]
gcc/varasm.c