class.c (build_base_field): Do not set DECL_PACKED on the FIELD_DECL.
authorMark Mitchell <mark@codesourcery.com>
Thu, 19 Dec 2002 02:31:50 +0000 (02:31 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 19 Dec 2002 02:31:50 +0000 (02:31 +0000)
* class.c (build_base_field): Do not set DECL_PACKED on the
FIELD_DECL.

From-SVN: r60277

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

index 342f2ecffd84aa2aa41827e5316d0830f4089b75..dbf094257ab5bdc454ea17fe0745024a74439638 100644 (file)
@@ -1,3 +1,8 @@
+2002-12-18  Mark Mitchell  <mark@codesourcery.com>
+
+       * class.c (build_base_field): Do not set DECL_PACKED on the
+       FIELD_DECL.
+
 2002-12-18  Gabriel Dos Reis  <gdr@integrable-solutions.net>
 
        * cp-tree.h (struct tree_srcloc): Use location_t.
index 9f95c994703600869efa7ca9ec95e262fbcac266..6035e05464444ec6a982dce8a064e6a8fca45028 100644 (file)
@@ -3889,8 +3889,6 @@ 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);
-      /* Tell the backend not to round up to TYPE_ALIGN.  */
-      DECL_PACKED (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