MS-style bit-field placement

David Korn dkorn@pixelpower.com
Sun Apr 15 10:17:00 GMT 2001


>-----Original Message-----
>From: Alexandre Oliva [ mailto:aoliva@redhat.com ]
>Sent: 14 April 2001 16:02


>> Here's a patch that makes GCC capable of placing bit-fields exactly
>> like Microsoft compilers do.  Or so it seems to me.

>> I'm a little bit unsure about whether to separate the three key
>> behaviors into different #defines, or to just have a single macro to
>> enable them all.  Opinions?  Ok to install?

  I don't have a copy of the language spec to hand, but IIRC the effects of
BITFIELD_SAME_TYPE_SIZE would contradict the standard layout rules for
bitfields, and so there should probably be some dependency of your patches
on the -ansi (and other language spec selecting) flags ?

      DaveK
-- 
"screams erupted at a Seattle hotel where Microsoft founder Bill Gates was
addressing an education and technology conference. He was whisked away as
his audience bolted for the exits. Some audience members were knocked down
by others trying to get out."
       -- CNN 2/28/01


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



More information about the Gcc-patches mailing list