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: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 23 May 2006 16:08:26 -0700
- Subject: Re: [patch] improve handling of ms_struct
- References: <D66E4746-A612-4016-A959-E33A703DB24C@apple.com>
OK? Thoughts? Questions?
-eric
2006-04-27 Eric Christopher <echristo@apple.com>
* stor-layout.c (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.
So I had some requests to put the docs into gcc and come up with a
testcase or two. Here's a start on some testcases and the docs as well.
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.
OK? Tested on x86-darwin with bootstrap and regression test. No
regressions. It does fix bugs with an existing feature so I think
it's applicable for stage 3.
-eric
Attachment:
fsf_ms_struct.diff.txt
Description: Text document