From 5256147c3dc8a0c7348b0ff4ca20e60624407392 Mon Sep 17 00:00:00 2001 From: mmitchel Date: Sun, 14 Sep 2003 23:50:49 +0000 Subject: [PATCH] * class.c (layout_class_type): Make DECL_MODE match TYPE_MODE for an bit-field whose width exceeds that of its type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71388 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/class.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 9647871b84b..3d2b3a5e5a2 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2003-09-14 Mark Mitchell + + * class.c (layout_class_type): Make DECL_MODE match TYPE_MODE for + an bit-field whose width exceeds that of its type. + 2003-09-14 Geoffrey Keating * rtti.c (get_tinfo_decl): Set TREE_PUBLIC for typeinfo decls. diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 485e9ad3f68..582caf4279e 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -4759,6 +4759,7 @@ layout_class_type (tree t, tree *virtuals_p) field to the size of its declared type; the rest of the field is effectively invisible. */ DECL_SIZE (field) = TYPE_SIZE (type); + DECL_MODE (field) = TYPE_MODE (type); } else layout_nonempty_base_or_field (rli, field, NULL_TREE, -- 2.11.4.GIT