This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] improve handling of ms_struct
- From: Eric Christopher <echristo at apple dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 2 Jun 2006 15:24:15 -0700
- Subject: Re: [patch] improve handling of ms_struct
- References: <D66E4746-A612-4016-A959-E33A703DB24C@apple.com> <E8E96922-8C2B-4C49-A7D9-6B6360A91826@apple.com> <Pine.LNX.4.64.0605232316380.6892@digraph.polyomino.org.uk> <6008E60E-793F-4FCC-8C79-5BF75B4D2F26@apple.com>
New patch attached. OK for mainline? Tested by looking at the
generated info files (above the operational testing yesterday).
-eric
2006-05-19 Eric Christopher <echristo@apple.com>
* stor-layout.c (start_record_layout): Initialize
remaining_in_alignment.
(debug_rli): Output value for remaining_in_alignment.
(update_alignment_for_field): Unconditionalize
ms_bitfield_layout_p code. Handle non-bitfield fields. Remove
extra alignment code.
(place_field): Don't realign if ms_bitfield_layout_p.
Unconditionalize
ms_bitfield_layout_p code. Rewrite handling of structure fields.
* tree.h (record_layout_info_s): Remove prev_packed.
* doc/extend.texi (ms_struct): Add documentation of format.
2006-05-19 Eric Christopher <echristo@apple.com>
* gcc.dg/attr-ms_struct-1.c: New.
Ping?
-eric