re PR c++/8218 (Excessively large amount of memory used with classes with large array...
authorMark Mitchell <mark@codesourcery.com>
Mon, 21 Oct 2002 08:40:24 +0000 (08:40 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 21 Oct 2002 08:40:24 +0000 (08:40 +0000)
commit5ec1192eb5b091bb0822591b5371fd0f9ba70946
tree6ec5aa6e54097ca287116667434de18a185afc25
parent97cc1f5e6c4288904aa4360cc2e91a7b45593ef2
re PR c++/8218 (Excessively large amount of memory used with classes with large array members)

PR c++/8218
* cp-tree.h (lang_type_class): Add contains_empty_class_p.
(CLASSTYPE_CONTAINS_EMPTY_CLASS_P): New macro.
* class.c (check_bases): Update CLASSTYPE_CONTAINS_EMPTY_CLASS_P.
(check_field_decls): Likewise.
(layout_class_type): Likewise.
(finish_struct_1): Initialize it.
(walk_subobject_offsets): Use it to prune searches.

From-SVN: r58356
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h