From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25282 invoked by alias); 10 Apr 2003 01:25:19 -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 25275 invoked from network); 10 Apr 2003 01:25:18 -0000 Received: from unknown (HELO faui11.informatik.uni-erlangen.de) (131.188.31.2) by sources.redhat.com with SMTP; 10 Apr 2003 01:25:18 -0000 Received: (from weigand@localhost) by faui11.informatik.uni-erlangen.de (8.9.1/8.1.4-FAU) id DAA24775; Thu, 10 Apr 2003 03:21:58 +0200 (MET DST) From: Ulrich Weigand Message-Id: <200304100121.DAA24775@faui11.informatik.uni-erlangen.de> Subject: Re: DATA_ALIGNMENT vs. DECL_USER_ALIGNMENT To: kenner@vlsi1.ultra.nyu.edu (Richard Kenner) Date: Thu, 10 Apr 2003 07:20:00 -0000 Cc: weigand@immd1.informatik.uni-erlangen.de, gcc@gcc.gnu.org In-Reply-To: <10304100113.AA27918@vlsi1.ultra.nyu.edu> from "Richard Kenner" at Apr 09, 2003 09:13:50 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00410.txt.bz2 Richard Kenner wrote: > But this does not solve my problem that Ada does not > bootstrap; for some reason the Ada frontend sets the > USER_ALIGN flag for a huge number of variables, even > those that were defined without any special 'Alignment > attributes ... > > That's because the front end will specify the alignment of some variables. > But what does that have to with failure to bootstrap? Well, as I said, this behaviour of the Ada front end causes global variables to be generated that have a forced 1-byte alignment (which up to now never happened with any other frontend, even though theoretically possible). Because varasm.c ignores the backend's DATA_ALIGNMENT macro for variables with forced alignment, this means that labels end up being generated on odd addresses; the s390 backend (in 64-bit mode) generates code that assumes this never happens and will fail if this assumption is violated. Bye, Ulrich -- Dr. Ulrich Weigand weigand@informatik.uni-erlangen.de