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/stor-layout.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/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index d1a856983a5..728b70bf9c6 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -516,11 +516,10 @@ layout_decl (tree decl, unsigned int known_align) int size_as_int = TREE_INT_CST_LOW (size); if (compare_tree_int (size, size_as_int) == 0) - warning ("%Hsize of '%D' is %d bytes", - &DECL_SOURCE_LOCATION (decl), decl, size_as_int); + warning ("%Jsize of '%D' is %d bytes", decl, decl, size_as_int); else - warning ("size of '%D' is larger than %d bytes", - &DECL_SOURCE_LOCATION (decl), decl, larger_than_size); + warning ("%Jsize of '%D' is larger than %d bytes", + decl, decl, larger_than_size); } } @@ -885,11 +884,11 @@ place_field (record_layout_info rli, tree field) if (TYPE_ALIGN (type) > desired_align) { if (STRICT_ALIGNMENT) - warning ("%Hpacked attribute causes inefficient alignment " - "for '%D'", &DECL_SOURCE_LOCATION (field), field); + warning ("%Jpacked attribute causes inefficient alignment " + "for '%D'", field, field); else - warning ("%Hpacked attribute is unnecessary for '%D'", - &DECL_SOURCE_LOCATION (field), field); + warning ("%Jpacked attribute is unnecessary for '%D'", + field, field); } } else @@ -904,8 +903,7 @@ place_field (record_layout_info rli, tree field) Bump the cumulative size to multiple of field alignment. */ if (warn_padded) - warning ("%Hpadding struct to align '%D'", - &DECL_SOURCE_LOCATION (field), field); + warning ("%Jpadding struct to align '%D'", field, field); /* If the alignment is still within offset_align, just align the bit position. */ |