* [committed] Use VAR_OR_FUNCTION_DECL_P
@ 2015-06-26 8:08 Marek Polacek
0 siblings, 0 replies; only message in thread
From: Marek Polacek @ 2015-06-26 8:08 UTC (permalink / raw)
To: GCC Patches
As Uros pointed out.
Bootstrapped/regtested on x86_64-linux, applying to trunk.
2015-06-26 Marek Polacek <polacek@redhat.com>
* c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
diff --git gcc/c-family/c-common.c gcc/c-family/c-common.c
index 73d0c7f..b11a756 100644
--- gcc/c-family/c-common.c
+++ 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)
{
Marek
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-26 8:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-26 8:08 [committed] Use VAR_OR_FUNCTION_DECL_P Marek Polacek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).