From 0f3a821963b4844cfc91001df5d8a474ab816a81 Mon Sep 17 00:00:00 2001 From: Michael Elizabeth Chastain Date: Tue, 18 Feb 2003 07:24:44 +0000 Subject: [PATCH] class.c (build_base_field): Mark fields for base classes with DECL_IGNORED_P. * class.c (build_base_field): Mark fields for base classes with DECL_IGNORED_P. From-SVN: r63026 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/class.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7278ec4e6fb..3c4b38acb7d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2003-02-17 Michael Elizabeth Chastain + + * class.c (build_base_field): Mark fields for base classes with + DECL_IGNORED_P. + 2003-02-17 Kriang Lerdsuwanakij PR c++/9457 diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 04130a06323..5e8b9fa1ec1 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -3958,7 +3958,8 @@ build_base_field (record_layout_info rli, tree binfo, DECL_SIZE_UNIT (decl) = CLASSTYPE_SIZE_UNIT (basetype); DECL_ALIGN (decl) = CLASSTYPE_ALIGN (basetype); DECL_USER_ALIGN (decl) = CLASSTYPE_USER_ALIGN (basetype); - + DECL_IGNORED_P (decl) = 1; + /* Try to place the field. It may take more than one try if we have a hard time placing the field without putting two objects of the same type at the same address. */ -- 2.30.2