This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: DATA_ALIGNMENT vs. DECL_USER_ALIGNMENT
- From: Richard Henderson <rth at redhat dot com>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: weigand at immd1 dot informatik dot uni-erlangen dot de, gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Thu, 10 Apr 2003 14:29:52 -0700
- Subject: Re: DATA_ALIGNMENT vs. DECL_USER_ALIGNMENT
- References: <10304102025.AA02120@vlsi1.ultra.nyu.edu>
On Thu, Apr 10, 2003 at 04:25:31PM -0400, Richard Kenner wrote:
> Well, it looks like DECL_USER_ALIGN is copied from TYPE_USER_ALIGN
> in do_type_align (stor-layout.c), called via this call chain:
>
> I figured it had to be something like that. It's probably correct for C,
> but not for Ada. Perhaps we need a new lang hook?
Maybe. I'm a bit confused as to why *_USER_ALIGN would be set for
"most types" though. Seems to me that should only be done if the
USER did something specific, like "for x'alignment use N".
r~