This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Structure alignment problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]