aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1999-02-07 15:37:43 +0000
committerJason Merrill <jason@gcc.gnu.org>1999-02-07 10:37:43 -0500
commit7766fe8e5fb5a64d770a6a42bc0da22c4de753cf (patch)
tree0ca3affb85764e5fc06777cf25381679d9cc51b7 /gcc
parentff90310e44edd74fe984c87739e41d8c8cf43d1c (diff)
downloadgcc-7766fe8e5fb5a64d770a6a42bc0da22c4de753cf.zip
gcc-7766fe8e5fb5a64d770a6a42bc0da22c4de753cf.tar.gz
gcc-7766fe8e5fb5a64d770a6a42bc0da22c4de753cf.tar.bz2
* tree.h (DECL_P): New macro.
From-SVN: r25069
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 807c694..d079ded 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Sun Feb 7 15:37:10 1999 Jason Merrill <jason@yorick.cygnus.com>
+
+ * tree.h (DECL_P): New macro.
+
Sun Feb 7 01:15:04 PST 1999 Jeff Law (law@cygnus.com)
* version.c: Bump for snapshot.
diff --git a/gcc/tree.h b/gcc/tree.h
index 859f748..273b102 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -1012,6 +1012,8 @@ struct tree_type
/* Define fields and accessors for nodes representing declared names. */
+/* Nonzero if DECL represents a decl. */
+#define DECL_P(DECL) (TREE_CODE_CLASS (TREE_CODE (DECL)) == 'd')
/* This is the name of the object as written by the user.
It is an IDENTIFIER_NODE. */
#define DECL_NAME(NODE) (DECL_CHECK (NODE)->decl.name)