]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
class.c (layout_class_type): Make DECL_MODE match TYPE_MODE for an bit-field whose...
authorMark Mitchell <mark@codesourcery.com>
Sun, 14 Sep 2003 23:50:49 +0000 (23:50 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 14 Sep 2003 23:50:49 +0000 (23:50 +0000)
* 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

gcc/cp/ChangeLog
gcc/cp/class.c

index 9647871b84b0ae237b58184222db02548be09ad5..3d2b3a5e5a2572562035cf37c69e842c5898c11f 100644 (file)
@@ -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.
index 485e9ad3f6886c9867149fc0c86a44094805a39e..582caf4279eddb83c5e25710cd38fd2b3eb314ab 100644 (file)
@@ -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,