diff options
author | Joseph Myers <jsm28@gcc.gnu.org> | 2005-07-02 11:55:32 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2005-07-02 11:55:32 +0100 |
commit | dee158440e16ef7272d823b9bd5e6d414968fd8a (patch) | |
tree | 3bc7f52a01952579e89d69c80d985e655c418278 /gcc/function.c | |
parent | 77008252819720c987f11b3dade670e2b3ba09b8 (diff) | |
download | gcc-dee158440e16ef7272d823b9bd5e6d414968fd8a.zip gcc-dee158440e16ef7272d823b9bd5e6d414968fd8a.tar.gz gcc-dee158440e16ef7272d823b9bd5e6d414968fd8a.tar.bz2 |
toplev.c (default_tree_printer): Handle setting location with '+' flag.
2005-07-02 Zack Weinberg <zack@codesourcery.com>
Joseph S. Myers <joseph@codesourcery.com>
* toplev.c (default_tree_printer): Handle setting location with
'+' flag.
* c-objc.common.c (c_tree_printer): Likewise.
* c-format.c (gcc_diag_flag_specs): Add '+'.
(gcc_cdiag_char_table): Allow '+' flag for tree formats.
(format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
formats.
* c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
config/v850/v850.c, function.c, stor-layout.c, toplev.c,
tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
instead of %J or %H. Use 'q' flag for quoting. Avoid '.' at end
of diagnostics. Use %q+D not %s for a decl. Do not pass excess
format arguments where %J is used without %D.
cp:
* error.c (location_of): Add comment.
(locate_error, cp_error_at, cp_warning_at, cp_pedwarn_at): Remove.
* cp-tree.h (cp_error_at, cp_warning_at, cp_pedwarn_at): Remove.
* call.c, class.c, decl.c, decl2.c, friend.c, init.c,
name-lookup.c, parser.c, pt.c, search.c, semantics.c, typeck.c,
typeck2.c: Use '+' flag instead of %J, cp_error_at, cp_warning_at
or cp_pedwarn_at. Mark up some diagnostic strings with N_.
java:
* class.c, decl.c, expr.c: Use '+' flag instead of %J. Use 'q'
flag for quoting.
objc:
* objc-act.c: Use '+' flag instead of %J. Use 'q' flag for
quoting.
testsuite:
* gcc.dg/format/gcc_diag-1.c: Update.
From-SVN: r101532
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/function.c b/gcc/function.c index 12ebece..92415cc 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -820,7 +820,7 @@ assign_temp (tree type_or_decl, int keep, int memory_required, if (decl && size == -1 && TREE_CODE (TYPE_SIZE_UNIT (type)) == INTEGER_CST) { - error ("%Jsize of variable %qD is too large", decl, decl); + error ("size of variable %q+D is too large", decl); size = 1; } @@ -3451,9 +3451,9 @@ setjmp_vars_warning (tree block) && DECL_RTL_SET_P (decl) && REG_P (DECL_RTL (decl)) && regno_clobbered_at_setjmp (REGNO (DECL_RTL (decl)))) - warning (0, "%Jvariable %qD might be clobbered by %<longjmp%>" + warning (0, "variable %q+D might be clobbered by %<longjmp%>" " or %<vfork%>", - decl, decl); + decl); } for (sub = BLOCK_SUBBLOCKS (block); sub; sub = TREE_CHAIN (sub)) @@ -3472,8 +3472,8 @@ setjmp_args_warning (void) if (DECL_RTL (decl) != 0 && REG_P (DECL_RTL (decl)) && regno_clobbered_at_setjmp (REGNO (DECL_RTL (decl)))) - warning (0, "%Jargument %qD might be clobbered by %<longjmp%> or %<vfork%>", - decl, decl); + warning (0, "argument %q+D might be clobbered by %<longjmp%> or %<vfork%>", + decl); } @@ -4277,7 +4277,7 @@ do_warn_unused_parameter (tree fn) decl; decl = TREE_CHAIN (decl)) if (!TREE_USED (decl) && TREE_CODE (decl) == PARM_DECL && DECL_NAME (decl) && !DECL_ARTIFICIAL (decl)) - warning (0, "%Junused parameter %qD", decl, decl); + warning (0, "unused parameter %q+D", decl); } static GTY(()) rtx initial_trampoline; |