This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] improve handling of ms_struct



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]