Structure alignment problem
Mark Yang
markarmlinux@yahoo.com
Mon Nov 4 14:22:00 GMT 2002
try this instead:
typedef struct {
unsigned char Var1;
} __attribute__((packed)) mystruct ;
Mark
--- Nicolas Moreau <nicolas@enttec.com> wrote:
> Quoting Fabio Giovagnini <fgiovag@tin.it>:
>
> > in my gcc-3.0.3 for sh and h8300 h s the typedef
> with align works poperly.
> >
> > typedef struct {
> > unsigned char Var1;
> > } mystruct __attribute__((packed));
> >
> > What version are you using?
>
> 2.95.3 is this a known bug, can't find anything
> about it ?
>
> Maybe we should upgarde, what version would be the
> most stable 3.0.4, 3.1, 3.2 ?
>
> Thanks
>
> Nic
>
>
> -------------------------------------------------
>
>
> ------
> Want more information? See the CrossGCC FAQ,
> http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to
> crossgcc-unsubscribe@sources.redhat.com
>
__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list