stor-layout.c (do_type_align): New fn, split out from...
authorJason Merrill <jason@gcc.gnu.org>
Tue, 14 Oct 2003 18:43:27 +0000 (14:43 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 14 Oct 2003 18:43:27 +0000 (14:43 -0400)
commit1b4d5fde31787e652ca03dcd9143911d34eab136
tree6ce23fe6c27297992fbc3d02ada01154a587901a
parent415c96ca6aba0c768f212dce3cffb85ff34dc1d1
stor-layout.c (do_type_align): New fn, split out from...

        * 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.

From-SVN: r72485
gcc/testsuite/gcc.dg/pack-test-4.c [new file with mode: 0644]