DATA_ALIGNMENT vs. DECL_USER_ALIGNMENT
Richard Kenner
kenner@vlsi1.ultra.nyu.edu
Thu Apr 17 21:41:00 GMT 2003
Ok, you got me curious. Would you mind explaining to an Ada-clueless
person how come these two cases can possibly be different? In my
C-centric view, I really can't see the difference. Code snippets
demonstrating the semantic difference would be highly appreciated.
You gave one in your previous message: if you specify the alignment of
a type, you don't want to see the alignment of the type made more
strict since that would affect *fields* of that type. But you don't
mind if stand-alone objects of that type were aligned stricter. If
you specifically set the alignment of an object, you are presumably
doing so because you *don't* want the object to be put at a stricter
alignment.
More information about the Gcc
mailing list