From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27901 invoked by alias); 10 Apr 2003 16:20:44 -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 27884 invoked from network); 10 Apr 2003 16:20:43 -0000 Received: from unknown (HELO desire.geoffk.org) (12.235.88.42) by sources.redhat.com with SMTP; 10 Apr 2003 16:20:43 -0000 Received: (from geoffk@localhost) by desire.geoffk.org (8.11.6/8.11.6) id h3AGIef20649; Thu, 10 Apr 2003 09:18:40 -0700 X-Authentication-Warning: desire.geoffk.org: geoffk set sender to geoffk@geoffk.org using -f To: Ulrich Weigand Cc: kenner@vlsi1.ultra.nyu.edu, gcc@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: Re: DATA_ALIGNMENT vs. DECL_USER_ALIGNMENT References: <200304100040.CAA24017@faui11.informatik.uni-erlangen.de> <200304101527.RAA07154@faui11.informatik.uni-erlangen.de> From: Geoff Keating Date: Thu, 10 Apr 2003 16:39:00 -0000 In-Reply-To: <200304101527.RAA07154@faui11.informatik.uni-erlangen.de> 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/msg00429.txt.bz2 Ulrich Weigand writes: > However, Ada bootstrap still fails, because it uses > inconsistent alignment flags for the same symbol between > different translation units: the elaboration check flag > variables are defined from within Ada sources, and marked > as forced 1-byte aligned there, but they are *referenced* > from within auto-generated C sources, and are declared > simply as 'extern char xxx;' there, without any forced > alignment specification. > > This means that when compiling the C source that references > the variables, I do not know that they are in fact 1-byte > aligned. Do you think the backend should be able to cope > with even this scenario, or would you consider this a > frontend bug? I'd consider this a bug *somewhere*. I'd think that if the Ada frontend is going to do this, then in the C sources the variables need to be marked with the appropriate alignment. -- - Geoffrey Keating