This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
packing on arm
- To: gcc-bugs at gcc dot gnu dot org
- Subject: packing on arm
- From: mike stump <mrs at windriver dot com>
- Date: Tue, 16 Oct 2001 10:45:27 -0700 (PDT)
typedef struct TSTRU0
{
char byte1 __attribute__ ( (packed));
short sz __attribute__ ( (packed));
int iz __attribute__ ( (packed));
int lz __attribute__ ( (packed));
} tstru0;
typedef struct TSTRU1
{
char byte1;
short sz;
int iz;
int lz;
} __attribute__ ((packed)) tstru1;
int mysize0 = sizeof (tstru0);
int mysize1 = sizeof (tstru1);
@ Generated by gcc 2.7.9-970819 for ARM/coff
@ GNU C version 2.7.9-970819 (arm-wrs-vxworks) compiled by GNU C version cygnus-2.7-96q4.
@ options passed:
@ options enabled: -fpeephole -ffunction-cse -fkeep-static-consts
@ -freg-struct-return -fcommon -fverbose-asm -fgnu-linker -mapcs-32
@ -msoft-float
gcc2_compiled.:
___gnu_compiled_c:
.global _mysize0
.data
.align 0
_mysize0:
.word 11
.global _mysize1
.align 0
_mysize1:
.word 11
@ Generated by gcc 2.9-010413 (2.96+) ARM/Thumb/StrongARM/XScale VxWorks 5.4 for ARM/VxWorks
.gcc2_compiled.:
.global _mysize0
.data
.align 2
_mysize0:
.word 12
.global _mysize1
.align 2
_mysize1:
.word 11
? Is this a new bug in later compilers or a desired behavior?