changing struct bitfield allocation ?
Alexandre Oliva
aoliva@redhat.com
Fri Jul 25 05:29:00 GMT 2003
On Jul 25, 2003, DJ Delorie <dj@redhat.com> wrote:
>> BITS_BIG_ENDIAN?
> It specifically states that it has no effect on structure layout:
> "This macro does not affect the way structure fields are packed into
> bytes or words; that is controlled by BYTES_BIG_ENDIAN."
It says it doesn't affect packing into bytes or words. I think it
does affect bit-fields. See, for example, h8300.h: it defines
BITS_BIG_ENDIAN to 0, even though BYTES_BIG_ENDIAN is 1, and I *think*
it gets the effect you want.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
More information about the Gcc
mailing list