aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)