This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Revert problematic part of layout change
- To: gcc-patches at gcc dot gnu dot org
- Subject: Revert problematic part of layout change
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Mon, 2 Jul 01 06:35:01 EDT
This patch reverts the hunk in my stor-layout.c change that has a potential
of changing the alignment of structs, though I don't believe it actually
could at this point.
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.
*** stor-layout.c 2001/06/02 11:14:06 1.98
--- stor-layout.c 2001/07/02 10:24:51
*************** layout_decl (decl, known_align)
*** 382,386 ****
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)
{
DECL_ALIGN (decl) = MIN (DECL_ALIGN (decl), BITS_PER_UNIT);
--- 382,386 ----
if (maximum_field_alignment != 0)
DECL_ALIGN (decl) = MIN (DECL_ALIGN (decl), maximum_field_alignment);
! else if (DECL_PACKED (decl))
{
DECL_ALIGN (decl) = MIN (DECL_ALIGN (decl), BITS_PER_UNIT);