mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-03 00:34:21 +08:00
* c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
From-SVN: r224996
This commit is contained in:
parent
7318e44f9f
commit
af05e6e541
@ -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.
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user