This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 3/7] clean up quoting problems - c-family (PR 80280 et al.)
- From: Martin Sebor <msebor at gmail dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 2 May 2017 20:37:14 -0600
- Subject: [PATCH 3/7] clean up quoting problems - c-family (PR 80280 et al.)
- Authentication-results: sourceware.org; auth=none
The attached patch adds missing quoting to diagnostic directives
in files in the c-family/ directory.
Martin
gcc/c-family/ChangeLog:
* c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
(handle_weakref_attribute): Same.
diff --git a/gcc/c-family/c-attribs.c b/gcc/c-family/c-attribs.c
index f2a88e1..695c58c 100644
--- a/gcc/c-family/c-attribs.c
+++ b/gcc/c-family/c-attribs.c
@@ -1780,9 +1780,9 @@ handle_alias_ifunc_attribute (bool is_alias, tree *node, tree name, tree args,
if (n && n->refuse_visibility_changes)
{
if (is_alias)
- error ("%+D declared alias after being used", decl);
+ error ("%+qD declared alias after being used", decl);
else
- error ("%+D declared ifunc after being used", decl);
+ error ("%+qD declared ifunc after being used", decl);
}
}
@@ -1867,7 +1867,7 @@ handle_weakref_attribute (tree *node, tree ARG_UNUSED (name), tree args,
{
struct symtab_node *n = symtab_node::get (*node);
if (n && n->refuse_visibility_changes)
- error ("%+D declared weakref after being used", *node);
+ error ("%+qD declared weakref after being used", *node);
}
return NULL_TREE;