This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: How to stop gcc padding structs???
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: Re: [ECOS] How to stop gcc padding structs???
- From: Jesper Skov <jskov at cygnus dot co dot uk>
- Date: 29 Jan 2001 22:00:45 +0000
- Newsgroups: cygnus.sourceware.ecos.d
- Organization: Red Hat UK
- References: <20010128124058.A9989@visi.com>
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