PATCH: MS bitfield layout support for w32 targets

Joseph S. Myers jsm28@cam.ac.uk
Wed Mar 27 05:40:00 GMT 2002


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



More information about the Gcc-patches mailing list