DATA_ALIGNMENT vs. DECL_USER_ALIGNMENT
Alexandre Oliva
aoliva@redhat.com
Thu Apr 17 20:10:00 GMT 2003
On Apr 17, 2003, dewar@gnat.com (Robert Dewar) wrote:
> Yes, you are specifying an alignment for objects of the type, but the
> implementation is always free to give a larger alignment.
I hope not if this would change the layout of a structure containing a
member with the specified alignment requirement. This is where
propagating the user-requested alignment for a type into the field
decl comes into play: by doing this, we make sure the alignment
request is obeyed, regardless of whether it comes from the field decl
or from its type.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
More information about the Gcc-patches
mailing list