From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesper Skov To: ecos-discuss@sourceware.cygnus.com Subject: Re: [ECOS] How to stop gcc padding structs??? Date: Mon, 29 Jan 2001 14:15:00 -0000 Message-id: References: <20010128124058.A9989@visi.com> X-SW-Source: 2001-01/msg00461.html typedef struct { volatile unsigned char data __attribute__((packed)); volatile unsigned char _xxx __attribute__((packed)); } high __attribute((packed)); Replace with typedef struct { volatile unsigned char data; volatile unsigned char _xxx; } __attribute__((packed)) high ; and it should work. Jesper