stor-layout.c (do_type_align): New fn, split out from...
authorJason Merrill <jason@gcc.gnu.org>
Thu, 3 Apr 2003 18:23:04 +0000 (13:23 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 3 Apr 2003 18:23:04 +0000 (13:23 -0500)
commit78d55cc86ecc681c975581dd3e7e20bb5315b83a
tree48bd2ec66587d328da6da0a95a49e3ec358b2fea
parentd10f5ecf5c750f3107cd6d38fb9fd13837caedfc
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.
        * cp/class.c (build_vtable): Set DECL_ALIGN here.
        (get_vtable_decl): Not here.
        (layout_vtable_decl): Or here.
        (create_vtable_ptr): Or here.
        (layout_class_type): Or here.
        (check_bitfield_decl): Don't mess with field alignment.
        * ada/misc.c (gnat_adjust_rli): #if 0.

From-SVN: r65207
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/misc.c
gcc/c-decl.c
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/doc/tm.texi
gcc/stor-layout.c
gcc/tree.h