aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Stump <mrs@gcc.gnu.org>1992-08-05 01:13:34 +0000
committerMike Stump <mrs@gcc.gnu.org>1992-08-05 01:13:34 +0000
commit9e5386dbcd757cc981408df9cb148e1ed1c5b63c (patch)
tree2ef2c0424cdc1dbdc9d7af1f785345aacb3fc4a9
parent1dfdf85d6047348996017e03abb14499e4ef9a89 (diff)
downloadgcc-9e5386dbcd757cc981408df9cb148e1ed1c5b63c.zip
gcc-9e5386dbcd757cc981408df9cb148e1ed1c5b63c.tar.gz
gcc-9e5386dbcd757cc981408df9cb148e1ed1c5b63c.tar.bz2
cp-tree.h, tree.h: Moved definitions of TREE_VIA_* into tree.h for consistency.
* cp-tree.h, tree.h: Moved definitions of TREE_VIA_* into tree.h for consistency. From-SVN: r1768
-rw-r--r--gcc/tree.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index d8dc82a..7a409a7 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -258,6 +258,15 @@ struct tree_common
fields from the base class as public. */
#define TREE_VIA_PUBLIC(NODE) ((NODE)->common.public_flag)
+/* Ditto, for `private' declarations. */
+#define TREE_VIA_PRIVATE(NODE) ((NODE)->common.private_flag)
+
+/* Nonzero for TREE_LIST node means that the path to the
+ base class is via a `protected' declaration, which preserves
+ protected fields from the base class as protected.
+ OVERLOADED. */
+#define TREE_VIA_PROTECTED(NODE) ((NODE)->common.static_flag)
+
/* In any expression, nonzero means it has side effects or reevaluation
of the whole expression could produce a different value.
This is set if any subexpression is a function call, a side effect