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/tree-cfg.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/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index cd39d4d..b8b712b 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -3274,7 +3274,7 @@ verify_stmt (tree stmt, bool last_in_block) { if (!tree_could_throw_p (stmt)) { - error ("Statement marked for throw, but doesn't."); + error ("Statement marked for throw, but doesn%'t."); goto fail; } if (!last_in_block && tree_can_throw_internal (stmt)) @@ -3555,7 +3555,7 @@ tree_verify_flow_info (void) if (!has_label_p (true_edge->dest, GOTO_DESTINATION (COND_EXPR_THEN (stmt)))) { - error ("`then' label does not match edge at end of bb %d\n", + error ("%<then%> label does not match edge at end of bb %d\n", bb->index); err = 1; } @@ -3563,7 +3563,7 @@ tree_verify_flow_info (void) if (!has_label_p (false_edge->dest, GOTO_DESTINATION (COND_EXPR_ELSE (stmt)))) { - error ("`else' label does not match edge at end of bb %d\n", + error ("%<else%> label does not match edge at end of bb %d\n", bb->index); err = 1; } @@ -4842,7 +4842,8 @@ execute_warn_function_return (void) && !TREE_THIS_VOLATILE (cfun->decl) && EXIT_BLOCK_PTR->pred == NULL && !lang_hooks.function.missing_noreturn_ok_p (cfun->decl)) - warning ("%Jfunction might be possible candidate for attribute `noreturn'", + warning ("%Jfunction might be possible candidate for " + "attribute %<noreturn%>", cfun->decl); /* If we have a path to EXIT, then we do return. */ @@ -4868,11 +4869,11 @@ execute_warn_function_return (void) #ifdef USE_MAPPED_LOCATION if (location == UNKNOWN_LOCATION) location = cfun->function_end_locus; - warning ("%H`noreturn' function does return", &location); + warning ("%H%<noreturn%> function does return", &location); #else if (!locus) locus = &cfun->function_end_locus; - warning ("%H`noreturn' function does return", locus); + warning ("%H%<noreturn%> function does return", locus); #endif } |