From 971801fff6d8eb0df1486fa6b77ba4cfc4616305 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 15 Sep 2004 21:48:10 +0100 Subject: attribs.c, [...]: Use %<, %> and %q for quoting in diagnostics going through pretty-print.c. gcc: * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c, except.c, fold-const.c, function.c, langhooks.c, params.c, reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c, tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q for quoting in diagnostics going through pretty-print.c. Use '' for quoting in other diagnostic text. * langhooks.c: Include intl.h. Mark text locating diagnostics for translation. * Makefile.in (langhooks.o): Update dependencies. * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic formats. gcc/testsuite: * g++.dg/ext/member-attr.C, g++.dg/warn/deprecated.C, gcc.dg/deprecated.c, gcc.dg/noreturn-1.c, gcc.dg/noreturn-4.c: Update expected messages. libmudflap: * testsuite/libmudflap.c/pass35-frag.c: Update expected message. From-SVN: r87563 --- gcc/langhooks.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gcc/langhooks.c') diff --git a/gcc/langhooks.c b/gcc/langhooks.c index b1fd5b4..b52d36b 100644 --- a/gcc/langhooks.c +++ b/gcc/langhooks.c @@ -22,6 +22,7 @@ Boston, MA 02111-1307, USA. */ #include "config.h" #include "system.h" #include "coretypes.h" +#include "intl.h" #include "tm.h" #include "toplev.h" #include "tree.h" @@ -512,16 +513,16 @@ lhd_print_error_function (diagnostic_context *context, const char *file) pp_set_prefix (context->printer, new_prefix); if (current_function_decl == NULL) - pp_printf (context->printer, "At top level:"); + pp_printf (context->printer, _("At top level:")); else { if (TREE_CODE (TREE_TYPE (current_function_decl)) == METHOD_TYPE) pp_printf - (context->printer, "In member function `%s':", + (context->printer, _("In member function %qs:"), lang_hooks.decl_printable_name (current_function_decl, 2)); else pp_printf - (context->printer, "In function `%s':", + (context->printer, _("In function %qs:"), lang_hooks.decl_printable_name (current_function_decl, 2)); } -- cgit v1.1