diff options
author | Joseph Myers <joseph@codesourcery.com> | 2009-05-04 21:24:22 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2009-05-04 21:24:22 +0100 |
commit | 88388a52299144bba77776ebc27e343995aa4f3c (patch) | |
tree | 68743d2b81c50cab3b9196589c419307e1b8b58f /gcc/c-pragma.c | |
parent | 960c5c791a8cf2314f09eb925cf8b48af2c9d662 (diff) | |
download | gcc-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-pragma.c')
-rw-r--r-- | gcc/c-pragma.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-pragma.c b/gcc/c-pragma.c index f33ae50..64a224f 100644 --- a/gcc/c-pragma.c +++ b/gcc/c-pragma.c @@ -112,8 +112,8 @@ pop_alignment (tree id) } if (entry == NULL) warning (OPT_Wpragmas, "\ -#pragma pack(pop, %s) encountered without matching #pragma pack(push, %s)" - , IDENTIFIER_POINTER (id), IDENTIFIER_POINTER (id)); +#pragma pack(pop, %E) encountered without matching #pragma pack(push, %E)" + , id, id); } entry = alignment_stack->prev; @@ -179,7 +179,7 @@ handle_pragma_pack (cpp_reader * ARG_UNUSED (dummy)) else if (!strcmp (op, "pop")) action = pop; else - GCC_BAD2 ("unknown action %qs for %<#pragma pack%> - ignored", op); + GCC_BAD2 ("unknown action %qE for %<#pragma pack%> - ignored", x); while ((token = pragma_lex (&x)) == CPP_COMMA) { |