Commit af05e6e5 by Marek Polacek Committed by Marek Polacek

* c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.

From-SVN: r224996
parent 7318e44f
2015-06-26 Marek Polacek <polacek@redhat.com>
* c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
2015-06-25 Andrew MacLeod <amacleod@redhat.com> 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
* c-common.c: Remove ipa-ref.h and plugin-api.h from include list. * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
......
...@@ -7376,8 +7376,7 @@ handle_unused_attribute (tree *node, tree name, tree ARG_UNUSED (args), ...@@ -7376,8 +7376,7 @@ handle_unused_attribute (tree *node, tree name, tree ARG_UNUSED (args),
tree decl = *node; tree decl = *node;
if (TREE_CODE (decl) == PARM_DECL if (TREE_CODE (decl) == PARM_DECL
|| VAR_P (decl) || VAR_OR_FUNCTION_DECL_P (decl)
|| TREE_CODE (decl) == FUNCTION_DECL
|| TREE_CODE (decl) == LABEL_DECL || TREE_CODE (decl) == LABEL_DECL
|| TREE_CODE (decl) == TYPE_DECL) || TREE_CODE (decl) == TYPE_DECL)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment