Peter Memishian <[EMAIL PROTECTED]> wrote:

>
>  > Correct. But it seems to be a gcc bug. The C-standard allows padding at
>  > the end of a structure but from my understanding, a structure like
>
> I could be misremembering, but I thought the Solaris ABI prohibits such
> padding (not that it does you any good ;-)

I don't see any benefit from this kind of padding either.

>  > 
>  > struct xxx {
>  > ...
>  >    type    last element;
>  >    char    pad[0];
>  > };
>
> FWIW, my recollection is that C99 requires `char pad[]' in that case,
> and that `pad[0]' is a gcc-ism that predates C99.

I know it was wrong when I did write it ;-)
Sometimes things like this happen.

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
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to