diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-04 23:44:36 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-04 23:44:36 +0000 |
commit | abd3e6b59bec67fdc46300e3d323e9d2c1ff35ea (patch) | |
tree | b03ae469ea639011a5e2bb04f05228d71da46777 /gcc/coverage.c | |
parent | 6ac2286b4076d7c84f636589288459bf8f7590cc (diff) | |
download | gcc-abd3e6b59bec67fdc46300e3d323e9d2c1ff35ea.tar.gz |
* attribs.c (decl_attributes): Use %qE for identifiers in
diagnostics.
* cgraphunit.c (verify_cgraph_node): Translate function names to
locale character set in diagnostics.
* coverage.c (get_coverage_counts): Use %qE for identifiers in
diagnostics.
* doc/invoke.texi (-finstrument-functions-exclude-function-list):
Document that functions are named in UTF-8.
* expr.c (expand_expr_real_1): Translate function names to locale
character set in diagnostics.
* gimplify.c (omp_notice_variable, omp_is_private,
gimplify_scan_omp_clauses): Use %qE for identifiers in
diagnostics.
* langhooks.c (lhd_print_error_function): Translate function names
to locale character set.
* langhooks.h (decl_printable_name): Document that return value is
in internal character set.
* stmt.c: Include pretty-print.h
(tree_conflicts_with_clobbers_p): Use %qE for identifiers in
diagnostics.
(resolve_operand_name_1): Translate named operand name to locale
character set.
* stor-layout.c (finalize_record_size): Use %qE for identifiers in
diagnostics.
* toplev.c (announce_function): Translate function names to locale
character set.
(warn_deprecated_use): Use %qE for identifiers in diagnostics.
(default_tree_printer): Use pp_identifier or translate identifiers
to locale character set. Mark "<anonymous>" for translation.
* tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
for identifiers in diagnostics.
* tree.c (handle_dll_attribute): Use %qE for identifiers in
diagnostics.
* varasm.c (output_constructor): Use %qE for identifiers in
diagnostics.
testsuite:
* gcc.dg/ucnid-11.c, gcc.dg/ucnid-12.c, gcc.dg/ucnid-13.c: New
tests.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147111 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/coverage.c')
-rw-r--r-- | gcc/coverage.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/coverage.c b/gcc/coverage.c index 8eb30acb90d..9240241f9c1 100644 --- a/gcc/coverage.c +++ b/gcc/coverage.c @@ -347,8 +347,8 @@ get_coverage_counts (unsigned counter, unsigned expected, entry = (counts_entry_t *) htab_find (counts_hash, &elt); if (!entry) { - warning (0, "no coverage for function %qs found", IDENTIFIER_POINTER - (DECL_ASSEMBLER_NAME (current_function_decl))); + warning (0, "no coverage for function %qE found", + DECL_ASSEMBLER_NAME (current_function_decl)); return NULL; } @@ -357,14 +357,13 @@ get_coverage_counts (unsigned counter, unsigned expected, || entry->summary.num != expected) { static int warned = 0; - const char *id = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME - (current_function_decl)); + tree id = DECL_ASSEMBLER_NAME (current_function_decl); if (warn_coverage_mismatch) warning (OPT_Wcoverage_mismatch, "coverage mismatch for function " - "%qs while reading counter %qs", id, ctr_names[counter]); + "%qE while reading counter %qs", id, ctr_names[counter]); else - error ("coverage mismatch for function %qs while reading counter %qs", + error ("coverage mismatch for function %qE while reading counter %qs", id, ctr_names[counter]); if (!inhibit_warnings) |