diff options
author | Richard Henderson <rth@redhat.com> | 2003-09-20 22:07:20 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2003-09-20 22:07:20 -0700 |
commit | ddd2d57e722237230da8eea70a2fcecb11bd0f81 (patch) | |
tree | 28f355780724c452ad42bb81a3672b2e8010c989 /gcc/stmt.c | |
parent | ccea753c0563b847b42d9ca5fc1b8afaee49f343 (diff) | |
download | gcc-ddd2d57e722237230da8eea70a2fcecb11bd0f81.tar.gz |
c-format.c (gcc_diag_char_table): Add %J.
* c-format.c (gcc_diag_char_table): Add %J.
(gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
(check_format_types): Fix wanted_type name lookup.
(init_dynamic_diag_info): Setup %J.
* diagnostic.c (text_specifies_location): Implement %J.
* c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
* tree-inline.c: Include intl.h
(inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
* Makefile.in (tree-inline.o): Update.
cp/
* decl.c, decl2.c, pt.c: Use %J in diagnostics.
java/
* check-init.c, class.c, decl.c, expr.c: Use %J in diagnostics.
testsuite/
* gcc.dg/format/gcc_diag-1.c: Add tests for %J.
From-SVN: r71619
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r-- | gcc/stmt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c index 18f46c818d6..9d5553f2517 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -966,8 +966,8 @@ fixup_gotos (struct nesting *thisblock, rtx stack_level, && INSN_UID (first_insn) > INSN_UID (f->before_jump) && ! DECL_ERROR_ISSUED (f->target)) { - error ("%Hlabel '%D' used before containing binding contour", - &DECL_SOURCE_LOCATION (f->target), f->target); + error ("%Jlabel '%D' used before containing binding contour", + f->target, f->target); /* Prevent multiple errors for one label. */ DECL_ERROR_ISSUED (f->target) = 1; } @@ -3631,7 +3631,7 @@ warn_about_unused_variables (tree vars) && ! TREE_USED (decl) && ! DECL_IN_SYSTEM_HEADER (decl) && DECL_NAME (decl) && ! DECL_ARTIFICIAL (decl)) - warning ("%Hunused variable '%D'", &DECL_SOURCE_LOCATION (decl), decl); + warning ("%Junused variable '%D'", decl, decl); } /* Generate RTL code to terminate a binding contour. @@ -3691,8 +3691,8 @@ expand_end_bindings (tree vars, int mark_ends, int dont_jump_in) that must be an error, because gotos without fixups come from outside all saved stack-levels. */ if (TREE_ADDRESSABLE (chain->label)) - error ("%Hlabel '%D' used before containing binding contour", - &DECL_SOURCE_LOCATION (chain->label), chain->label); + error ("%Jlabel '%D' used before containing binding contour", + chain->label, chain->label); } } |