This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: changing struct bitfield allocation ?
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