From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12727 invoked by alias); 10 Apr 2003 21:01:23 -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 12715 invoked from network); 10 Apr 2003 21:01:23 -0000 Received: from unknown (HELO vlsi1.ultra.nyu.edu) (128.122.140.213) by sources.redhat.com with SMTP; 10 Apr 2003 21:01:23 -0000 Received: by vlsi1.ultra.nyu.edu (4.1/1.34) id AA02658; Thu, 10 Apr 03 17:05:30 EDT Date: Thu, 10 Apr 2003 21:10:00 -0000 From: kenner@vlsi1.ultra.nyu.edu (Richard Kenner) Message-Id: <10304102105.AA02658@vlsi1.ultra.nyu.edu> To: geoffk@geoffk.org Subject: Re: DATA_ALIGNMENT vs. DECL_USER_ALIGNMENT Cc: gcc-patches@gcc.gnu.org, gcc@gcc.gnu.org X-SW-Source: 2003-04/txt/msg00463.txt.bz2 Is it not true in Ada that if something is a particular type, then it has the properties (including alignment) of that type? The other issue is that DECL_USER_ALIGN is supposed to indicate if an alignment was specified *for a decl*. If you want to know if an alignment is specified for *the type of a decl*, you check TYPE_USER_ALIGN (TREE_TYPE (decl)). Some code may wish to do something if *either* alignment was user-specified, but then it can check *both* flags.