diff options
author | Joseph Myers <jsm@polyomino.org.uk> | 2004-09-15 21:48:10 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2004-09-15 21:48:10 +0100 |
commit | 971801fff6d8eb0df1486fa6b77ba4cfc4616305 (patch) | |
tree | 4034f8306b245baf4a83c67767977aaa06c4a83b /gcc/langhooks.c | |
parent | 1daf6f3a5ba3a54bde4b8843b7b75dad3bb536eb (diff) | |
download | gcc-971801fff6d8eb0df1486fa6b77ba4cfc4616305.zip gcc-971801fff6d8eb0df1486fa6b77ba4cfc4616305.tar.gz gcc-971801fff6d8eb0df1486fa6b77ba4cfc4616305.tar.bz2 |
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
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r-- | gcc/langhooks.c | 7 |
1 files changed, 4 insertions, 3 deletions
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)); } |