This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: MS bitfield layout support for w32 targets
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 27 Mar 2002 13:40:39 +0000 (GMT)
- Subject: Re: PATCH: MS bitfield layout support for w32 targets
On Wed, 27 Mar 2002, [iso-8859-1] Danny Smith wrote:
> The attached patch adds -mms-bitfields as a new target switch for
> cygwin and mingw32. This switch provides w32 targets with option to
> use MS-compatable storage layout for bitfields in structures, as
> introduced by Alexandre Oliva
> in SH5 port (refer http://gcc.gnu.org/ml/gcc-patches/2002-02/msg00402.html
> ).
>
> Bootstapped and tested on i586-pc-mingw32.
>
> OK for mainline?
Obviously not without documentation for the switch in invoke.texi, and
testcases in the testsuite (define structures whose layout differs with
the two ABIs, put values in them, check the bit-pattern is correct in both
the -mms-bitfields case and the default case).
--
Joseph S. Myers
jsm28@cam.ac.uk