aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/ptree.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-03-24 01:10:13 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-03-24 01:10:13 +0000
commit6a629cac2b8bc32566f6990f649ced12cbba5ff4 (patch)
treeafe04b327c1dd8e574626fedc7a32975682b1f90 /gcc/cp/ptree.c
parent7ad3a049d39ae396220cbd7350ee753054d22afb (diff)
downloadgcc-6a629cac2b8bc32566f6990f649ced12cbba5ff4.zip
gcc-6a629cac2b8bc32566f6990f649ced12cbba5ff4.tar.gz
gcc-6a629cac2b8bc32566f6990f649ced12cbba5ff4.tar.bz2
cp-tree.h (lang_type): Remove has_assignment and has_real_assignment.
* cp-tree.h (lang_type): Remove has_assignment and has_real_assignment. Add befriending_classes. (TYPE_HAS_ASSIGNMENT): Remove. (TYPE_HAS_REAL_ASSIGNMENT): Likewise. (CLASSTYPE_BEFRIENDING_CLASSES): New macro. (lang_decl): Document. (DECL_BEFRIENDING_CLASSES): New macro. (FRIEND_NAME): Move declaration to more obvious location. (FRIEND_DECLS): Likewise. * class.c (finish_struct_1): Don't use TYPE_HAS_REAL_ASSIGNMENT. * decl.c (duplicate_decls): Copy DECL_BEFRIENDING_CLASSES. (fixup_anonymous_union): Don't use TYPE_HAS_ASSIGNMENT. (grok_op_properties): Likewise. * friend.c (is_friend): Use FRIEND_NAME and FRIEND_DECLS. (add_friend): Likewise. Don't do weird things with assignment operators. Update DECL_BEFRIENDING_CLASSES. (add_friends): Don't do weird things with assignment operators. (make_friend_class): Likewise. Update CLASSTYPE_BEFRIENDING_CLASSES. * pt.c (instantiate_class_template): Don't set TYPE_HAS_ASSIGNMENT. (tsubst_copy): Substitute the TREE_TYPE for more unary expressions. * ptree.c (print_lang_type): Don't look at TYPE_HAS_ASSIGNMENT. * search.c (protected_accessible_p): New function. (friend_accessible_p): Likewise. (accessible_p): Use them. From-SVN: r25940
Diffstat (limited to 'gcc/cp/ptree.c')
-rw-r--r--gcc/cp/ptree.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c
index 4fb0413..2cff655 100644
--- a/gcc/cp/ptree.c
+++ b/gcc/cp/ptree.c
@@ -113,8 +113,6 @@ print_lang_type (file, node, indent)
fputs (" delete", file);
if (TYPE_GETS_DELETE (node) & 2)
fputs (" delete[]", file);
- if (TYPE_HAS_ASSIGNMENT (node))
- fputs (" has=", file);
if (TYPE_HAS_ASSIGN_REF (node))
fputs (" this=(X&)", file);
if (TYPE_OVERLOADS_CALL_EXPR (node))