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: dewar at gnat dot com (Robert Dewar)
- To: dewar at gnat dot com, weigand at immd1 dot informatik dot uni-erlangen dot de
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org,kenner at vlsi1 dot ultra dot nyu dot edu, rth at redhat dot com
- Date: Thu, 10 Apr 2003 17:00:17 -0400 (EDT)
- Subject: Re: DATA_ALIGNMENT vs. DECL_USER_ALIGNMENT
> Is it not true in Ada that if something is a particular type, then
> it has the properties (including alignment) of that type?
>
> That sounds like a pretty fundamental part of the idea of 'type', not
> language-specific.
No, that is not the case, if type'alignment is set, then objects of the type
can have that alignment or a greater alignment. The same is true for
type'size.