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/c-objc-common.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/c-objc-common.c')
-rw-r--r-- | gcc/c-objc-common.c | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/gcc/c-objc-common.c b/gcc/c-objc-common.c index 172346b2aec..287cf300232 100644 --- a/gcc/c-objc-common.c +++ b/gcc/c-objc-common.c @@ -78,9 +78,8 @@ c_cannot_inline_tree_fn (tree *fnp) && lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn)) == NULL) { if (do_warning) - warning ("%Hfunction '%F' can never be inlined because it " - "is supressed using -fno-inline", - &DECL_SOURCE_LOCATION (fn), fn); + warning ("%Jfunction '%F' can never be inlined because it " + "is supressed using -fno-inline", fn, fn); goto cannot_inline; } @@ -89,18 +88,16 @@ c_cannot_inline_tree_fn (tree *fnp) if (!DECL_DECLARED_INLINE_P (fn) && !(*targetm.binds_local_p) (fn)) { if (do_warning) - warning ("%Hfunction '%F' can never be inlined because it might not " - "be bound within this unit of translation", - &DECL_SOURCE_LOCATION (fn), fn); + warning ("%Jfunction '%F' can never be inlined because it might not " + "be bound within this unit of translation", fn, fn); goto cannot_inline; } if (! function_attribute_inlinable_p (fn)) { if (do_warning) - warning ("%Hfunction '%F' can never be inlined because it uses " - "attributes conflicting with inlining", - &DECL_SOURCE_LOCATION (fn), fn); + warning ("%Jfunction '%F' can never be inlined because it uses " + "attributes conflicting with inlining", fn, fn); goto cannot_inline; } @@ -114,9 +111,8 @@ c_cannot_inline_tree_fn (tree *fnp) if (t) { if (do_warning) - warning ("%Hfunction '%F' can never be inlined because it has " - "pending sizes", - &DECL_SOURCE_LOCATION (fn), fn); + warning ("%Jfunction '%F' can never be inlined because it has " + "pending sizes", fn, fn); goto cannot_inline; } } @@ -128,9 +124,8 @@ c_cannot_inline_tree_fn (tree *fnp) if (DECL_LANG_SPECIFIC (fn)->pending_sizes) { if (do_warning) - warning ("%Hnested function '%F' can never be inlined because it " - "has possibly saved pending sizes", - &DECL_SOURCE_LOCATION (fn), fn); + warning ("%Jnested function '%F' can never be inlined because it " + "has possibly saved pending sizes", fn, fn); goto cannot_inline; } } |