aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Elizabeth Chastain <mec@shout.net>2003-02-18 07:24:44 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-02-18 07:24:44 +0000
commit0f3a821963b4844cfc91001df5d8a474ab816a81 (patch)
tree2a83e67d7f769752c72745767104f7ef9acf3b8a
parent6067bea410aa2a585f7017f2fef4842c84f0321c (diff)
downloadgcc-0f3a821963b4844cfc91001df5d8a474ab816a81.zip
gcc-0f3a821963b4844cfc91001df5d8a474ab816a81.tar.gz
gcc-0f3a821963b4844cfc91001df5d8a474ab816a81.tar.bz2
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
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/class.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 7278ec4..3c4b38a 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-17 Michael Elizabeth Chastain <mec@shout.net>
+
+ * class.c (build_base_field): Mark fields for base classes with
+ DECL_IGNORED_P.
+
2003-02-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/9457
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 04130a0..5e8b9fa 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. */