aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-parser.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2009-05-04 21:24:22 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2009-05-04 21:24:22 +0100
commit88388a52299144bba77776ebc27e343995aa4f3c (patch)
tree68743d2b81c50cab3b9196589c419307e1b8b58f /gcc/c-parser.c
parent960c5c791a8cf2314f09eb925cf8b48af2c9d662 (diff)
downloadgcc-88388a52299144bba77776ebc27e343995aa4f3c.zip
gcc-88388a52299144bba77776ebc27e343995aa4f3c.tar.gz
gcc-88388a52299144bba77776ebc27e343995aa4f3c.tar.bz2
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
Diffstat (limited to 'gcc/c-parser.c')
-rw-r--r--gcc/c-parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-parser.c b/gcc/c-parser.c
index cdc2cee..6c839e9 100644
--- a/gcc/c-parser.c
+++ b/gcc/c-parser.c
@@ -222,8 +222,8 @@ c_lex_one_token (c_parser *parser, c_token *token)
{
warning_at (token->location,
OPT_Wc___compat,
- "identifier %qs conflicts with C++ keyword",
- IDENTIFIER_POINTER (token->value));
+ "identifier %qE conflicts with C++ keyword",
+ token->value);
}
else if (c_dialect_objc ())
{