tech-embed archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: arm, net and '__attribute__ ((__packed__))'



On Sat, Feb 05, 2005 at 02:04:14PM +0000, Richard Earnshaw wrote:
> On Sat, 05 Feb 2005 15:48:39 +0200, Sami Kantoluoto wrote:

[ snip ]

> >     } __attribute__((__packed__)) llc_un;
> > } __attribute__((__packed__));
> > 
> > 
> > I can't believe that NetBSD has any problems with these so maybe I'm missing
> > some compiler options or has NetBSD's gcc been patched or something else?
> >
>
> NetBSD uses gcc configured with structure-size-boundary set to 8, rather 
> than 32 (the default for a standard arm-elf compiler).  Which is why you 
> are seeing this problem.  Try building *all* your code with 
> -mstructure-size-boundary=8.

Yes, that helped. Thanks.

> But yes, this is probably a bug in the header file.  Could you file a PR?

Sure.


     -sk



Home | Main Index | Thread Index | Old Index