cp: PR c++/3130, c++/3131, c++/3132 * cp-tree.h (BINFO_UNSHARED_MARKED): New #define. * class.c (force_canonical_binfo_r): Move BINFO_UNSHARED_MARKED, BINFO_LOST_PRIMARY_P. Don't move virtual bases unless they're primary and what they're primary too has been moved. (dfs_unshared_virtual_bases): Use BINFO_UNSHARED_MARKED. Cope with morally virtual bases. Duplicate BINFO_LOST_PRIMARY_P and BINFO_PRIMARY_BASE_OF. Clear BINFO_VTABLE for all but the most derived binfo. (mark_primary_bases): Use BINFO_UNSHARED_MARKED. (layout_nonempty_base_or_field): Add most derived type parameter. Adjust. (layout_empty_base): Likewise. (build_base_field): Likewise. (build_base_fields): Likewise. (propagate_binfo_offsets): Add most derived type parameter. Skip non canonical virtual bases too. (dfs_set_offset_for_unshared_vbases): Don't skip primary bases. Do skip canonical bases. (layout_virtual_bases): Adjust. (layout_class_type): Adjust. (dfs_get_primary_binfo): Build list of virtual primary base candidates. (get_primary_binfo): Check that the shared virtual primary base candidate was found first. (accumulate_vtbl_inits): Don't do anything for non-vptr containing binfos. For case 1 primary virtual bases, keep checking that we've not emerged from the hierarchy of RTTI_BINFO. testsuite: * g++.old-deja/g++.abi/vbase5.C: New test. * g++.old-deja/g++.abi/vbase6.C: New test. * g++.old-deja/g++.abi/vbase7.C: New test. From-SVN: r43266
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
.cvsignore | Loading commit data... | |
ChangeLog | Loading commit data... | |
ChangeLog.1 | Loading commit data... | |
ChangeLog.2 | Loading commit data... | |
ChangeLog.egcs | Loading commit data... | |
Make-lang.in | Loading commit data... | |
NEWS | Loading commit data... | |
call.c | Loading commit data... | |
cfns.gperf | Loading commit data... | |
cfns.h | Loading commit data... | |
class.c | Loading commit data... | |
config-lang.in | Loading commit data... | |
cp-tree.def | Loading commit data... | |
cp-tree.h | Loading commit data... | |
cvt.c | Loading commit data... | |
decl.c | Loading commit data... | |
decl.h | Loading commit data... | |
decl2.c | Loading commit data... | |
dump.c | Loading commit data... | |
errfn.c | Loading commit data... | |
error.c | Loading commit data... | |
except.c | Loading commit data... | |
expr.c | Loading commit data... | |
friend.c | Loading commit data... | |
g++.1 | Loading commit data... | |
g++spec.c | Loading commit data... | |
init.c | Loading commit data... | |
lang-options.h | Loading commit data... | |
lang-specs.h | Loading commit data... | |
lex.c | Loading commit data... | |
lex.h | Loading commit data... | |
mangle.c | Loading commit data... | |
method.c | Loading commit data... | |
mpw-config.in | Loading commit data... | |
mpw-make.sed | Loading commit data... | |
operators.def | Loading commit data... | |
optimize.c | Loading commit data... | |
parse.y | Loading commit data... | |
pt.c | Loading commit data... | |
ptree.c | Loading commit data... | |
repo.c | Loading commit data... | |
rtti.c | Loading commit data... | |
search.c | Loading commit data... | |
semantics.c | Loading commit data... | |
spew.c | Loading commit data... | |
tree.c | Loading commit data... | |
typeck.c | Loading commit data... | |
typeck2.c | Loading commit data... | |
xref.c | Loading commit data... |