]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c/c-typeck.c
c-common.c (handle_mode_attribute): Use %qE for identifiers in diagnostics.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 4 May 2009 20:24:22 +0000 (21:24 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 4 May 2009 20:24:22 +0000 (21:24 +0100)
commit88388a52299144bba77776ebc27e343995aa4f3c
tree68743d2b81c50cab3b9196589c419307e1b8b58f
parent960c5c791a8cf2314f09eb925cf8b48af2c9d662
c-common.c (handle_mode_attribute): Use %qE for identifiers in diagnostics.

* 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.

From-SVN: r147108
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]