------- Comment #4 from nathan at gcc dot gnu dot org  2005-11-30 10:29 -------
Subject: Bug 21166

Author: nathan
Date: Wed Nov 30 10:29:09 2005
New Revision: 107712

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107712
Log:
.:
        PR c++/21166
        * c-decl.c (finish_struct):  Only set DECL_PACKED on a field
        when its natural alignment is > BITS_PER_UNIT.
        * stor-layout.c (finalize_type_size): Revert my patch of 2005-08-08.
        * c-common.c (handle_packed_attribute): Ignore packing on a field
        whose type is naturally char aligned.
cp:
        PR c++/21166
        * class.c (check_field_decls): Only set DECL_PACKED on a field
        when its natural alignment is > BITS_PER_UNIT.

Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/c-common.c
    branches/gcc-4_1-branch/gcc/c-decl.c
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/class.c
    branches/gcc-4_1-branch/gcc/stor-layout.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21166

Reply via email to