From owner-svn-src-head@FreeBSD.ORG Mon Jun 14 17:33:53 2010 Return-Path: Delivered-To: svn-src-head@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D5CD1065673; Mon, 14 Jun 2010 17:33:53 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id F0CE98FC14; Mon, 14 Jun 2010 17:33:52 +0000 (UTC) MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Received: from avs-daemon.smtpauth1.wiscmail.wisc.edu by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0L4000500M4GR100@smtpauth1.wiscmail.wisc.edu>; Mon, 14 Jun 2010 12:33:52 -0500 (CDT) Received: from anacreon.physics.wisc.edu (anacreon.physics.wisc.edu [128.104.160.176]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0L4000HEVM4ET940@smtpauth1.wiscmail.wisc.edu>; Mon, 14 Jun 2010 12:33:51 -0500 (CDT) Date: Mon, 14 Jun 2010 12:33:50 -0500 From: Nathan Whitehorn In-reply-to: <20100614172608.GD3632@acme.spoerlein.net> To: Ulrich =?ISO-8859-1?Q?Sp=F6rlein?= Message-id: <20100614123350.68a8c78b@anacreon.physics.wisc.edu> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; powerpc64-portbld-freebsd9.0) Content-transfer-encoding: quoted-printable X-Spam-Report: AuthenticatedSender=yes, SenderIP=128.104.160.176 X-Spam-PmxInfo: Server=avs-9, Version=5.5.9.395186, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2010.6.14.172115, SenderIP=128.104.160.176 References: <201006140623.o5E6Nl4w067862@svn.freebsd.org> <20100614172608.GD3632@acme.spoerlein.net> Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, Ed Schouten Subject: Re: svn commit: r209153 - head/lib/clang X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jun 2010 17:33:53 -0000 On Mon, 14 Jun 2010 19:26:09 +0200 Ulrich Sp=C3=B6rlein wrote: > On Mon, 14.06.2010 at 06:23:47 +0000, Ed Schouten wrote: > > Author: ed > > Date: Mon Jun 14 06:23:47 2010 > > New Revision: 209153 > > URL: http://svn.freebsd.org/changeset/base/209153 > >=20 > > Log: > > Unbreak Clang on PowerPC. > > =20 > > It seems GCC 4.2.1 on PowerPC miscompiles Clang, causing it to > > crash when building even simple Hello World applications. Switch > > back to -O1 for this architecture. >=20 > What about clang compiled using clang -O2? Ie., does clang bootstrap > correctly on PPC and this is a genuine gcc 4.2.1 bug? >=20 > Regards, > Uli clang is not completely functional on PPC at the moment. It compiles simple programs fine, but has two nasty bugs (One is LLVM bug 7374 and relates to alignment of struct members, and the other is a missing implementation of va_arg for ELF systems), so is not capable of self-hosting. Given the amount of time involved in binary searching the 2D space of all of the LLVM libraries and the set of GCC optimizations added with -O2, I haven't tracked down the problem in detail. -Nathan