aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2004-10-31 21:58:10 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2004-10-31 21:58:10 +0000
commit7a6336aab47a0cfb2e1e771a9beafdef07abd86a (patch)
treeae24df29fc576081d78d7041c68451d37f3d12e0 /gcc/tree-ssa.c
parent29b4addfbca3fe3b5ee2cb88bc8f00ca48e4607f (diff)
downloadgcc-7a6336aab47a0cfb2e1e771a9beafdef07abd86a.zip
gcc-7a6336aab47a0cfb2e1e771a9beafdef07abd86a.tar.gz
gcc-7a6336aab47a0cfb2e1e771a9beafdef07abd86a.tar.bz2
re PR middle-end/14521 (Inconsistent quoting in new warning)
PR middle-end/14521 * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F' for consistent quoting in diagnostic messages. (expand_call_inline): Likewise. * tree-optimize.c (tree_rest_of_compilation): Likewise. * tree-ssa.c (warn_uninitialized_var): Likewise. (warn_uninitialized_phi): Likewise. From-SVN: r89918
Diffstat (limited to 'gcc/tree-ssa.c')
-rw-r--r--gcc/tree-ssa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa.c b/gcc/tree-ssa.c
index 1438429..3ba15ee 100644
--- a/gcc/tree-ssa.c
+++ b/gcc/tree-ssa.c
@@ -1388,7 +1388,7 @@ warn_uninitialized_var (tree *tp, int *walk_subtrees, void *data)
/* We only do data flow with SSA_NAMEs, so that's all we can warn about. */
if (TREE_CODE (t) == SSA_NAME)
{
- warn_uninit (t, "%H'%D' is used uninitialized in this function", locus);
+ warn_uninit (t, "%H%qD is used uninitialized in this function", locus);
*walk_subtrees = 0;
}
else if (IS_TYPE_OR_DECL_P (t))
@@ -1413,7 +1413,7 @@ warn_uninitialized_phi (tree phi)
{
tree op = PHI_ARG_DEF (phi, i);
if (TREE_CODE (op) == SSA_NAME)
- warn_uninit (op, "%H'%D' may be used uninitialized in this function",
+ warn_uninit (op, "%H%qD may be used uninitialized in this function",
NULL);
}
}