Commit dd98e14f by Nathan Sidwell Committed by Nathan Sidwell

cp-tree.h (VF_DERIVED_VALUE): Remove.

	* cp-tree.h (VF_DERIVED_VALUE): Remove.
	* class.c (finish_struct_1): Use VF_BINFO_VALUE not VF_DERIVED_VALUE.

From-SVN: r56023
parent 04c1334c
2002-08-04 Nathan Sidwell <nathan@codesourcery.com>
* cp-tree.h (VF_DERIVED_VALUE): Remove.
* class.c (finish_struct_1): Use VF_BINFO_VALUE not VF_DERIVED_VALUE.
2002-08-03 Nathan Sidwell <nathan@codesourcery.com> 2002-08-03 Nathan Sidwell <nathan@codesourcery.com>
PR 7470. PR 7470.
......
...@@ -5120,15 +5120,13 @@ finish_struct_1 (t) ...@@ -5120,15 +5120,13 @@ finish_struct_1 (t)
{ {
tree vfields = CLASSTYPE_VFIELDS (t); tree vfields = CLASSTYPE_VFIELDS (t);
while (vfields) for (vfields = CLASSTYPE_VFIELDS (t);
{ vfields; vfields = TREE_CHAIN (vfields))
/* Mark the fact that constructor for T /* Mark the fact that constructor for T could affect anybody
could affect anybody inheriting from T inheriting from T who wants to initialize vtables for
who wants to initialize vtables for VFIELDS's type. */ VFIELDS's type. */
if (VF_DERIVED_VALUE (vfields)) if (VF_BINFO_VALUE (vfields))
TREE_ADDRESSABLE (vfields) = 1; TREE_ADDRESSABLE (vfields) = 1;
vfields = TREE_CHAIN (vfields);
}
} }
/* Make the rtl for any new vtables we have created, and unmark /* Make the rtl for any new vtables we have created, and unmark
......
...@@ -1620,8 +1620,6 @@ struct lang_type GTY(()) ...@@ -1620,8 +1620,6 @@ struct lang_type GTY(())
#define VF_BASETYPE_VALUE(NODE) TREE_VALUE (NODE) #define VF_BASETYPE_VALUE(NODE) TREE_VALUE (NODE)
/* Accessor macros for the BINFO_VIRTUALS list. */ /* Accessor macros for the BINFO_VIRTUALS list. */
#define VF_DERIVED_VALUE(NODE) \
(VF_BINFO_VALUE (NODE) ? BINFO_TYPE (VF_BINFO_VALUE (NODE)) : NULL_TREE)
/* The number of bytes by which to adjust the `this' pointer when /* The number of bytes by which to adjust the `this' pointer when
calling this virtual function. Subtract this value from the this calling this virtual function. Subtract this value from the this
...@@ -1637,8 +1635,7 @@ struct lang_type GTY(()) ...@@ -1637,8 +1635,7 @@ struct lang_type GTY(())
#define BV_FN(NODE) (TREE_VALUE (NODE)) #define BV_FN(NODE) (TREE_VALUE (NODE))
/* Nonzero if we should use a virtual thunk for this entry. */ /* Nonzero if we should use a virtual thunk for this entry. */
#define BV_USE_VCALL_INDEX_P(NODE) \ #define BV_USE_VCALL_INDEX_P(NODE) (TREE_LANG_FLAG_0 (NODE))
(TREE_LANG_FLAG_0 (NODE))
/* Nonzero for TREE_LIST node means that this list of things /* Nonzero for TREE_LIST node means that this list of things
is a list of parameters, as opposed to a list of expressions. */ is a list of parameters, as opposed to a list of expressions. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment