OSDN Git Service

* c-common.c (handle_mode_attribute): Use %qE for identifiers in
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 May 2009 20:24:22 +0000 (20:24 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 May 2009 20:24:22 +0000 (20:24 +0000)
commitd1dd9ac0caa06afe7e122d1c8012ec6fba5a9b9e
tree68743d2b81c50cab3b9196589c419307e1b8b58f
parentc440daea3c9ab8fcebb25371e6808c93abfecf98
* c-common.c (handle_mode_attribute): Use %qE for identifiers in
diagnostics.
* c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
and pass value to identifier_to_locale.
(warn_variable_length_array): Make name a tree.
(grokdeclarator): Separate diagnostic texts for named and unnamed
declarators.  Use %qE for named declarators.
* c-parser.c (c_lex_one_token): Use %qE for identifiers in
diagnostics.
* c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
identifiers in diagnostics.
* c-typeck.c (push_member_name, start_init): Pass identifiers to
identifier_to_locale.  Mark "anonymous" strings for translation.

testsuite:
* gcc.dg/ucnid-8.c, gcc.dg/ucnid-9.c, gcc.dg/ucnid-10.c: New
tests.
* gcc.dg/declspec-9.c, gcc.dg/declspec-10.c, gcc.dg/declspec-11.c:
Update expected errors.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147108 138bc75d-0d04-0410-961f-82ee72b054a4
13 files changed:
gcc/ChangeLog
gcc/c-common.c
gcc/c-decl.c
gcc/c-parser.c
gcc/c-pragma.c
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/declspec-10.c
gcc/testsuite/gcc.dg/declspec-11.c
gcc/testsuite/gcc.dg/declspec-9.c
gcc/testsuite/gcc.dg/ucnid-10.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ucnid-8.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ucnid-9.c [new file with mode: 0644]