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/function.c | |
parent | 1daf6f3a5ba3a54bde4b8843b7b75dad3bb536eb (diff) | |
download | gcc-971801fff6d8eb0df1486fa6b77ba4cfc4616305.tar.gz |
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/function.c')
-rw-r--r-- | gcc/function.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/function.c b/gcc/function.c index 29ab3e4d852..a7613e13908 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -831,7 +831,7 @@ assign_temp (tree type_or_decl, int keep, int memory_required, if (decl && size == -1 && TREE_CODE (TYPE_SIZE_UNIT (type)) == INTEGER_CST) { - error ("%Jsize of variable '%D' is too large", decl, decl); + error ("%Jsize of variable %qD is too large", decl, decl); size = 1; } @@ -1432,7 +1432,7 @@ static void instantiate_virtual_regs_lossage (rtx insn) { gcc_assert (asm_noperands (PATTERN (insn)) >= 0); - error_for_asm (insn, "impossible constraint in `asm'"); + error_for_asm (insn, "impossible constraint in %<asm%>"); delete_insn (insn); } /* Given a pointer to a piece of rtx and an optional pointer to the @@ -3454,7 +3454,8 @@ setjmp_vars_warning (tree block) && DECL_RTL_SET_P (decl) && REG_P (DECL_RTL (decl)) && regno_clobbered_at_setjmp (REGNO (DECL_RTL (decl)))) - warning ("%Jvariable '%D' might be clobbered by `longjmp' or `vfork'", + warning ("%Jvariable %qD might be clobbered by %<longjmp%>" + " or %<vfork%>", decl, decl); } @@ -3474,7 +3475,7 @@ setjmp_args_warning (void) if (DECL_RTL (decl) != 0 && REG_P (DECL_RTL (decl)) && regno_clobbered_at_setjmp (REGNO (DECL_RTL (decl)))) - warning ("%Jargument '%D' might be clobbered by `longjmp' or `vfork'", + warning ("%Jargument %qD might be clobbered by %<longjmp%> or %<vfork%>", decl, decl); } @@ -4198,7 +4199,7 @@ do_warn_unused_parameter (tree fn) decl; decl = TREE_CHAIN (decl)) if (!TREE_USED (decl) && TREE_CODE (decl) == PARM_DECL && DECL_NAME (decl) && !DECL_ARTIFICIAL (decl)) - warning ("%Junused parameter '%D'", decl, decl); + warning ("%Junused parameter %qD", decl, decl); } static GTY(()) rtx initial_trampoline; |