Never change BINFO_INHERITANCE_CHAIN.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Aug 1998 15:30:49 +0000 (15:30 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Aug 1998 15:30:49 +0000 (15:30 +0000)
commit79076e9798a0c03e1b16d6d48893023c2fde5143
tree1e804ccfe218681304e0553b38219628709207f1
parent2022c24b9b35ad206386b1f9136e6c810c5b1d3c
Never change BINFO_INHERITANCE_CHAIN.
* init.c (emit_base_init): Change modification of
BINFO_INHERITANCE_CHAIN to an assert.
* search.c (get_base_distance_recursive): Likewise.
(get_base_distance): Likewise.
(lookup_member): Likewise.
(convert_pointer_to_single_level): Likewise.
(lookup_field): Likewise.  Lose setting TREE_VIA_* on TREE_LISTs.
(lookup_fnfields): Likewise.
* tree.c (propagate_binfo_offsets): Don't call unshare_base_binfos.
(unshare_base_binfos): Don't call propagate_binfo_offsets.
(layout_basetypes): Call propagate_binfo_offsets instead of
unshare_base_binfos.
* decl.c (xref_basetypes): Call unshare_base_binfos.
* pt.c (instantiate_class_template): Likewise.
* tree.c (reverse_path): Remove 'copy' parm; always make a
temporary copy.
* class.c (build_vbase_path): Just call it.
* search.c (compute_access): Likewise.  Don't re-reverse.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22024 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/init.c
gcc/cp/pt.c
gcc/cp/search.c
gcc/cp/tree.c