------- Comment #5 from alexandre dot nunes at gmail dot com 2007-10-20 13:35 ------- (In reply to comment #4) > (In reply to comment #2) > > The standard puts all the burden on the implementation (See 6.7.2.1/10). > > The GCC manual in turn says the behavior is specified by the ABI (4.9 > > Structures, unions, enumerations, and bit-fields), which would be the sysv > > ABI > > which I > > don't have handy right now. > > > > http://www.sco.com/developers/devspecs/abi386-4.pdf > > Would that be it? >
I couldn't find (ok, I didn't try hard enough) the generic abi, but the 386 abi only tells about the case of bitfields on regular structures, i.e. those without the packed attribute. I do believe that ABI-conformant structures are always padded (aligned), and the packed structures are outside of the ABI scope... I'll try and see if I find the generic sysv abi docs. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33823