class.c (dfs_unshared_virtual_bases): Add ATTRIBUTE_UNUSED.
authorNathan Sidwell <nathan@codesourcery.com>
Fri, 20 Apr 2001 15:29:09 +0000 (15:29 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 20 Apr 2001 15:29:09 +0000 (15:29 +0000)
commit06d9f09f53cd3d0c1164986a9c5ff3a37e59dec4
tree0450a1d1b73690e0e654642706589b65a48cb971
parenta0a7b566f791a05642de174586fb7e4748ff1dc3
class.c (dfs_unshared_virtual_bases): Add ATTRIBUTE_UNUSED.

cp:
* class.c (dfs_unshared_virtual_bases): Add ATTRIBUTE_UNUSED.
(layout_empty_base): Return at end flag.
(build_base_field): Likewise.
(build_base_fields): Likewise.
(layout_virtual_bases): Don't add 1 to eoc value.
(end_of_class): Use full size for empty bases.
(layout_class_type): Clear CLASSNEARLY_EMPTY_P if we appended
empty bases. Don't add 1 to eoc value. Only add trailing padding
if we're an empty class with no empty bases.
(dump_class_hierarchy): Dump size and alignment.
testsuite:
* g++.old-deja/g++.abi/empty2.C: New test.
* g++.old-deja/g++.abi/empty3.C: New test.

From-SVN: r41460
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.abi/empty2.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.abi/empty3.C [new file with mode: 0644]