stor-layout.c (layout_decl): Revert change to handling of alignment in packed types.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Mon, 2 Jul 2001 10:27:17 +0000 (10:27 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 2 Jul 2001 10:27:17 +0000 (06:27 -0400)
* stor-layout.c (layout_decl): Revert change to handling of alignment
in packed types.

From-SVN: r43686

gcc/ChangeLog
gcc/stor-layout.c

index 4631a628815a42d6bd97d1ebce426a7710cf8e18..14fea6022ad54001c57725ed606df6c29bf989f5 100644 (file)
@@ -1,3 +1,8 @@
+Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * stor-layout.c (layout_decl): Revert change to handling of alignment
+       in packed types.
+
 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
        * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
index 52e23cb4c8707e9f54eb5df504fa5632c877305b..3e7fb19073d7e0ef987d04a28e3ab8d2ff12f57c 100644 (file)
@@ -381,7 +381,7 @@ layout_decl (decl, known_align)
       DECL_BIT_FIELD_TYPE (decl) = DECL_BIT_FIELD (decl) ? type : 0;
       if (maximum_field_alignment != 0)
        DECL_ALIGN (decl) = MIN (DECL_ALIGN (decl), maximum_field_alignment);
-      else if (DECL_PACKED (decl) && known_align % DECL_ALIGN (decl) != 0)
+      else if (DECL_PACKED (decl))
        {
          DECL_ALIGN (decl) = MIN (DECL_ALIGN (decl), BITS_PER_UNIT);
          DECL_USER_ALIGN (decl) = 0;