> 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 ;-)

 > 
 > 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.

-- 
meem
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to