From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28751 invoked by alias); 10 Apr 2003 20:50:03 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 28738 invoked from network); 10 Apr 2003 20:50:03 -0000 Received: from unknown (HELO desire.geoffk.org) (12.235.88.42) by sources.redhat.com with SMTP; 10 Apr 2003 20:50:03 -0000 Received: (from geoffk@localhost) by desire.geoffk.org (8.11.6/8.11.6) id h3AKmtO20784; Thu, 10 Apr 2003 13:48:55 -0700 X-Authentication-Warning: desire.geoffk.org: geoffk set sender to geoffk@geoffk.org using -f To: kenner@vlsi1.ultra.nyu.edu (Richard Kenner) Cc: gcc-patches@gcc.gnu.org, gcc@gcc.gnu.org Subject: Re: DATA_ALIGNMENT vs. DECL_USER_ALIGNMENT References: <10304102025.AA02120@vlsi1.ultra.nyu.edu> From: Geoff Keating Date: Thu, 10 Apr 2003 21:00:00 -0000 In-Reply-To: <10304102025.AA02120@vlsi1.ultra.nyu.edu> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-04/txt/msg00458.txt.bz2 kenner@vlsi1.ultra.nyu.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