Re: gcc and attribute __packed__

2006-02-10 Thread Daniel Jacobowitz
On Fri, Feb 10, 2006 at 04:56:20PM +0100, Nicolas DICHTEL wrote: > Hi all, > > here is the result on ARM of my little program: > > [EMAIL PROTECTED]:/usr/admin# ./test2 > 4 5 6 8 > 2 3 4 6 > > > Is it normal to add an attribute __packed__ on each union{} > contained in a structure, or is it a b

Re: gcc and attribute __packed__

2006-02-10 Thread Andrew Haley
Nicolas DICHTEL writes: > Hi all, > > here is the result on ARM of my little program: > > [EMAIL PROTECTED]:/usr/admin# ./test2 > 4 5 6 8 > 2 3 4 6 > > > Is it normal to add an attribute __packed__ on each union{} > contained in a structure, or is it a bug of my compiler ? > On X86,

gcc and attribute __packed__

2006-02-10 Thread Nicolas DICHTEL
Hi all, here is the result on ARM of my little program: [EMAIL PROTECTED]:/usr/admin# ./test2 4 5 6 8 2 3 4 6 Is it normal to add an attribute __packed__ on each union{} contained in a structure, or is it a bug of my compiler ? On X86, this kind of structure has always the good size. Regards