This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: DATA_ALIGNMENT vs. DECL_USER_ALIGNMENT
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: aoliva at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Thu, 17 Apr 03 16:34:24 EDT
- Subject: Re: DATA_ALIGNMENT vs. DECL_USER_ALIGNMENT
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.