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: Geoff Keating <geoffk at geoffk dot org>
- To: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: 10 Apr 2003 13:48:55 -0700
- Subject: Re: DATA_ALIGNMENT vs. DECL_USER_ALIGNMENT
- References: <10304102025.AA02120@vlsi1.ultra.nyu.edu>
kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner) writes:
> 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?
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.
--
- Geoffrey Keating <geoffk at geoffk dot org>