From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4971 invoked by alias); 30 Nov 2001 00:47:41 -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 4950 invoked from network); 30 Nov 2001 00:47:40 -0000 Received: from unknown (HELO mail-out1.apple.com) (17.254.0.52) by hostedprojects.ges.redhat.com with SMTP; 30 Nov 2001 00:47:40 -0000 Received: from mailgate2.apple.com (A17-129-100-225.apple.com [17.129.100.225]) by mail-out1.apple.com (8.11.3/8.11.3) with ESMTP id fAU0leu07887 for ; Thu, 29 Nov 2001 16:47:40 -0800 (PST) Received: from scv2.apple.com (scv2.apple.com) by mailgate2.apple.com (Content Technologies SMTPRS 4.2.1) with ESMTP id ; Thu, 29 Nov 2001 16:47:36 -0800 Received: from apple.com (vpn-gh-1026.apple.com [17.254.140.1]) by scv2.apple.com (8.11.3/8.11.3) with ESMTP id fAU0lZr01593; Thu, 29 Nov 2001 16:47:35 -0800 (PST) Message-ID: <3C06D70A.4EA36154@apple.com> Date: Thu, 22 Nov 2001 04:18:00 -0000 From: Stan Shebs X-Mailer: Mozilla 4.77C-CCK-MCD {C-UDP; EBM-APPLE} (Macintosh; U; PPC) X-Accept-Language: en MIME-Version: 1.0 To: Geert bosch CC: gcc@gcc.gnu.org Subject: Re: ICE outputting unaligned fp constant on powerpc-apple-darwin5.1 References: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-SW-Source: 2001-11/txt/msg01096.txt.bz2 Geert bosch wrote: > > Compiler bootstraps fine, but fails with the following test case: > > struct s { > > char c; > > double d; > > }; > > > > struct s t [] = { { 0, 0.0 } }; > > It hits an ICE in assemble_real, at varasm.c:2169: > > if (align < GET_MODE_ALIGNMENT (mode)) > > abort (); OK OK, I admit to being a dirty software hoarder! We have some local patches to fix several alignment problems, and apparently this is one of them, because your example works fine in our latest code. The patches are intermingled with a - get ready to retch - -malign-mac68k option that is needed by some very old code, and we wanted to separate things before submitting. But clearly we need to do the separating sooner rather than later - sorry! Stan From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stan Shebs To: Geert bosch Cc: gcc@gcc.gnu.org Subject: Re: ICE outputting unaligned fp constant on powerpc-apple-darwin5.1 Date: Thu, 29 Nov 2001 16:47:00 -0000 Message-ID: <3C06D70A.4EA36154@apple.com> References: X-SW-Source: 2001-11/msg01597.html Message-ID: <20011129164700.5c8Gt32H-TiDmAN-Fop4SIhZlaaYebHe33a73UnlKZI@z> Geert bosch wrote: > > Compiler bootstraps fine, but fails with the following test case: > > struct s { > > char c; > > double d; > > }; > > > > struct s t [] = { { 0, 0.0 } }; > > It hits an ICE in assemble_real, at varasm.c:2169: > > if (align < GET_MODE_ALIGNMENT (mode)) > > abort (); OK OK, I admit to being a dirty software hoarder! We have some local patches to fix several alignment problems, and apparently this is one of them, because your example works fine in our latest code. The patches are intermingled with a - get ready to retch - -malign-mac68k option that is needed by some very old code, and we wanted to separate things before submitting. But clearly we need to do the separating sooner rather than later - sorry! Stan