* stor-layout.c (do_type_align): New fn, split out from...
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Oct 2003 18:43:27 +0000 (18:43 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Oct 2003 18:43:27 +0000 (18:43 +0000)
commitc8b04847f2994147a41922219d7947381e18d3d4
tree6ce23fe6c27297992fbc3d02ada01154a587901a
parentc30dcdf99f3043aa775cb6e03d94abf22ac14d85
    * stor-layout.c (do_type_align): New fn, split out from...
        (layout_decl): ...here.  Do all alignment calculations for
        FIELD_DECLs here.
        (update_alignment_for_field): Not here.
        (start_record_layout, debug_rli): Remove unpadded_align.
        * tree.h (struct record_layout_info_s): Remove unpadded_align.
        * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
        or DECL_MODE on the CONST_DECLs.
        (finish_struct): Don't mess with DECL_ALIGN.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72485 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/gcc.dg/pack-test-4.c [new file with mode: 0644]