diff options
author | Marek Polacek <polacek@redhat.com> | 2015-06-26 08:07:23 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2015-06-26 08:07:23 +0000 |
commit | af05e6e5417f406831e29657861b98f8b13b90ee (patch) | |
tree | 8eabfa0a11627d23a2550e87e0641e124223aa09 /gcc | |
parent | 7318e44f9f27debf0d97a03a465dc602fcd96443 (diff) | |
download | gcc-af05e6e5417f406831e29657861b98f8b13b90ee.zip gcc-af05e6e5417f406831e29657861b98f8b13b90ee.tar.gz gcc-af05e6e5417f406831e29657861b98f8b13b90ee.tar.bz2 |
* c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
From-SVN: r224996
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-family/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-family/c-common.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 619bca6..fc88354 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,7 @@ +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> * 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 73d0c7f..b11a756 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) { |