diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-21 05:07:20 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-21 05:07:20 +0000 |
commit | 9bc3739ff5286405148970f7ec7db806dc17440d (patch) | |
tree | 28f355780724c452ad42bb81a3672b2e8010c989 /gcc/java/class.c | |
parent | 27d8c9a2bd7e557d79e90f4821deb857bd0a1542 (diff) | |
download | gcc-9bc3739ff5286405148970f7ec7db806dc17440d.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71619 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r-- | gcc/java/class.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c index a1c7249156b..e3e6cc36e58 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -1211,8 +1211,7 @@ get_dispatch_table (tree type, tree this_class_addr) if (METHOD_ABSTRACT (method)) { if (! abstract_p) - warning ("%Habstract method in non-abstract class", - &DECL_SOURCE_FILE (method)); + warning ("%Jabstract method in non-abstract class", method); if (TARGET_VTABLE_USES_DESCRIPTORS) for (j = 0; j < TARGET_VTABLE_USES_DESCRIPTORS; ++j) @@ -1986,8 +1985,8 @@ layout_class_method (tree this_class, tree super_class, DECL_VINDEX (method_decl) = DECL_VINDEX (super_method); if (DECL_VINDEX (method_decl) == NULL_TREE && !CLASS_FROM_SOURCE_P (this_class)) - error ("%Hnon-static method '%D' overrides static method", - &DECL_SOURCE_LOCATION (method_decl), method_decl); + error ("%Jnon-static method '%D' overrides static method", + method_decl, method_decl); } else if (! METHOD_FINAL (method_decl) && ! METHOD_PRIVATE (method_decl) |