On alignment

Andrew Haley aph@redhat.com
Thu Apr 24 11:45:00 GMT 2003


Jason Merrill writes:
 > 
 > A similar trick using offsetof should work with all versions of
 > gcc; just add a char field to the beginning of the struct, and
 > measure the offset to the TYPE field.

Ah, okay.  That sounds pretty neat.

Tom, time for the third (or is it fourth) version of your patch.  :-)

Andrew.



More information about the Gcc mailing list