diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-04 20:24:22 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-04 20:24:22 +0000 |
commit | d1dd9ac0caa06afe7e122d1c8012ec6fba5a9b9e (patch) | |
tree | 68743d2b81c50cab3b9196589c419307e1b8b58f /gcc/c-pragma.c | |
parent | c440daea3c9ab8fcebb25371e6808c93abfecf98 (diff) | |
download | gcc-d1dd9ac0caa06afe7e122d1c8012ec6fba5a9b9e.tar.gz |
* 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
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 f33ae50f430..64a224f4a28 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) { |