PATCH: MS bitfield layout support for w32 targets

Danny Smith danny_r_smith_2001@yahoo.co.nz
Wed Mar 27 13:23:00 GMT 2002


 --- "Joseph S. Myers" <jsm28@cam.ac.uk> wrote: > 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).
> 


Huh, I'm just hooking into  an option that someone else introduced.  Why
weren't these condition imposed on Alexandre when he put this in for SH5
port?.  

Donn Terry provide some testcases and some comments in code documunting his
ealier version of this option.  
 http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00577.html.  
I'll see what I can do, but a proper test requires access to a real MS
compiler, which I don't have.

Danny

http://www.sold.com.au - SOLD.com.au Auctions
- 1,000s of Bargains!



More information about the Gcc-patches mailing list