Steve Bennett <[EMAIL PROTECTED]> wrote:

> > After reading the C-99 Standard, it turned out that the last method 
> > is the "official" way to prevent tail padding of structures.
> > 
> > Could you please run the last test again but use:
> > 
> > #pragma pack(1)
> > 
> > struct test1
> > {
> >     char blerg[1];
> >     char type[4];
> >     char flibble[3];
> >     char more[2];
> >     char dummy[];
> > };
> > 
>
> sizeof(test1) is 12
>
> And just in case you are wondering, I ran all those previous tests again
> with -std=c99 with exactly the same results.

Thank you for the test!

So GCC is in clear violation with the C-99 standard.

Did you have contact with the GCC guys that are working on the ARM port?

Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily

Reply via email to