aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-09-14 23:50:49 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-09-14 23:50:49 +0000
commit269083955ae0888882c6c57a207af8f25d1e33ee (patch)
tree08f1527bee651017ed359b3b876a03967fa2ac46 /gcc
parent80a1718866c460d5d44a7fddd814e0245e744ffb (diff)
downloadgcc-269083955ae0888882c6c57a207af8f25d1e33ee.zip
gcc-269083955ae0888882c6c57a207af8f25d1e33ee.tar.gz
gcc-269083955ae0888882c6c57a207af8f25d1e33ee.tar.bz2
class.c (layout_class_type): Make DECL_MODE match TYPE_MODE for an bit-field whose width exceeds that of its...
* class.c (layout_class_type): Make DECL_MODE match TYPE_MODE for an bit-field whose width exceeds that of its type. From-SVN: r71388
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/class.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 9647871..3d2b3a5 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2003-09-14 Mark Mitchell <mark@codesourcery.com>
+
+ * 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 <geoffk@apple.com>
* rtti.c (get_tinfo_decl): Set TREE_PUBLIC for typeinfo decls.
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 485e9ad..582caf4 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,