summaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-06 08:59:39 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-06 08:59:39 +0000
commit8cbe13ee43d0c95095855e6cd330d2f31ce96651 (patch)
tree5393c1bea7b5636f5e0a86e7bef9e43ca5004b68 /gcc/cp/class.c
parenta02d3bc94b101e76e718b94abb482cadc8d2b91b (diff)
downloadgcc-8cbe13ee43d0c95095855e6cd330d2f31ce96651.tar.gz
Remove TYPE_NONCOPIED_PARTS.
* tree.h (TYPE_NONCOPIED_PARTS): Remove. (struct tree_type): Remove noncopied_parts. * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO. * expr.c (save_noncopied_parts, init_noncopied_parts): Remove. (fixed_type_p): Remove. (expand_expr, INIT_EXPR): Don't deal with noncopied parts. (expand_expr, MODIFY_EXPR): Likewise. * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS. * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME. cp: Remove TYPE_NONCOPIED_PARTS. * cp-tree.h (CLASSTYPE_INLINE_FRIENDS): Map onto CLASSTYPE_PURE_VIRTUALS. (TYPE_RAISES_EXCEPTIONS): Map onto TYPE_BINFO. * class.c (duplicate_tag_error): Remove TYPE_NONCOPIED_PARTS. (layout_class_type): Don't call fixup_inlin_methods here ... (finish_struct_1): ... call it here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45434 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r--gcc/cp/class.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 3a9e38923e1..03aa7f71f5b 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -2189,7 +2189,6 @@ duplicate_tag_error (t)
TYPE_METHODS (t) = NULL_TREE;
TYPE_VFIELD (t) = NULL_TREE;
TYPE_CONTEXT (t) = NULL_TREE;
- TYPE_NONCOPIED_PARTS (t) = NULL_TREE;
/* Clear TYPE_LANG_FLAGS -- those in TYPE_LANG_SPECIFIC are cleared above. */
TYPE_LANG_FLAG_0 (t) = 0;
@@ -4866,10 +4865,6 @@ layout_class_type (t, empty_p, vfuns_p,
if (build_base_fields (rli, empty_p, empty_base_offsets, t))
CLASSTYPE_NEARLY_EMPTY_P (t) = 0;
- /* CLASSTYPE_INLINE_FRIENDS is really TYPE_NONCOPIED_PARTS. Thus,
- we have to save this before we zap TYPE_NONCOPIED_PARTS. */
- fixup_inline_methods (t);
-
/* Layout the non-static data members. */
for (field = non_static_data_members; field; field = TREE_CHAIN (field))
{
@@ -5077,6 +5072,8 @@ finish_struct_1 (t)
vfuns = 0;
CLASSTYPE_RTTI (t) = NULL_TREE;
+ fixup_inline_methods (t);
+
/* Do end-of-class semantic processing: checking the validity of the
bases and members and add implicitly generated methods. */
check_bases_and_members (t, &empty);