From: Richard Kenner Date: Wed, 28 Nov 2001 14:37:58 +0000 (+0000) Subject: * tree.h (TREE_VIA_PROTECTED): Update to show can be in TREE_VEC. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e87ad4df7a6f0221cc03ec32a23074577a603f4;p=gcc.git * tree.h (TREE_VIA_PROTECTED): Update to show can be in TREE_VEC. From-SVN: r47419 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 34bddc33c86..6b254b7aa85 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ Wed Nov 28 08:21:47 2001 Richard Kenner + * 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. diff --git a/gcc/tree.h b/gcc/tree.h index 9182c31927b..2fa0fc65f89 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -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.