From: Marek Polacek Date: Fri, 26 Jun 2015 08:07:23 +0000 (+0000) Subject: * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af05e6e5417f406831e29657861b98f8b13b90ee;p=gcc.git * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P. From-SVN: r224996 --- diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 619bca64c5f..fc88354937d 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,7 @@ +2015-06-26 Marek Polacek + + * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P. + 2015-06-25 Andrew MacLeod * c-common.c: Remove ipa-ref.h and plugin-api.h from include list. diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index 73d0c7f11fc..b11a7563dc1 100644 --- a/gcc/c-family/c-common.c +++ b/gcc/c-family/c-common.c @@ -7376,8 +7376,7 @@ handle_unused_attribute (tree *node, tree name, tree ARG_UNUSED (args), tree decl = *node; if (TREE_CODE (decl) == PARM_DECL - || VAR_P (decl) - || TREE_CODE (decl) == FUNCTION_DECL + || VAR_OR_FUNCTION_DECL_P (decl) || TREE_CODE (decl) == LABEL_DECL || TREE_CODE (decl) == TYPE_DECL) {