diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2001-07-02 10:27:17 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2001-07-02 06:27:17 -0400 |
commit | 3aa12a583f98074d6eaca377d9f3842df7c387ed (patch) | |
tree | 27b4dbe63d37dfecf82a417d237f4e4327d68c7c /gcc | |
parent | 071d36e2954f35d7474c99e84f99c0084ea643e7 (diff) | |
download | gcc-3aa12a583f98074d6eaca377d9f3842df7c387ed.zip gcc-3aa12a583f98074d6eaca377d9f3842df7c387ed.tar.gz gcc-3aa12a583f98074d6eaca377d9f3842df7c387ed.tar.bz2 |
stor-layout.c (layout_decl): Revert change to handling of alignment in packed types.
* stor-layout.c (layout_decl): Revert change to handling of alignment
in packed types.
From-SVN: r43686
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/stor-layout.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4631a62..14fea60 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 52e23cb..3e7fb19 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -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; |