OSDN Git Service

* tree.h (TREE_VIA_PROTECTED): Update to show can be in TREE_VEC.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Nov 2001 14:37:58 +0000 (14:37 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Nov 2001 14:37:58 +0000 (14:37 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47419 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree.h

index 34bddc3..6b254b7 100644 (file)
@@ -1,5 +1,7 @@
 Wed Nov 28 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
+       * tree.h (TREE_VIA_PROTECTED): Update to show can be in TREE_VEC.
+
        * tree.h: Add missing checks on some macros; make formatting more
        consistent.
 
index 9182c31..2fa0fc6 100644 (file)
@@ -198,6 +198,7 @@ struct tree_common
 
        TREE_VIA_PROTECTED in
            TREE_LIST
+          TREE_VEC
        TREE_PROTECTED in
            BLOCK
           ??? unspecified nodes
@@ -530,12 +531,11 @@ extern void tree_class_check_failed PARAMS ((const tree, int,
 /* Ditto, for `private' declarations.  */
 #define TREE_VIA_PRIVATE(NODE) ((NODE)->common.private_flag)
 
-/* Nonzero for TREE_LIST node means that the path to the
+/* Nonzero for TREE_LIST or TREE_VEC 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) \
-  (TREE_LIST_CHECK (NODE)->common.protected_flag)
+#define TREE_VIA_PROTECTED(NODE) ((NODE)->common.protected_flag)
 
 /* In any expression, nonzero means it has side effects or reevaluation
    of the whole expression could produce a different value.