Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jun 2010 12:33:50 -0500
From:      Nathan Whitehorn <nwhitehorn@freebsd.org>
To:        Ulrich =?ISO-8859-1?Q?Sp=F6rlein?= <uqs@spoerlein.net>
Cc:        svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, Ed Schouten <ed@FreeBSD.org>
Subject:   Re: svn commit: r209153 - head/lib/clang
Message-ID:  <20100614123350.68a8c78b@anacreon.physics.wisc.edu>
In-Reply-To: <20100614172608.GD3632@acme.spoerlein.net>
References:  <201006140623.o5E6Nl4w067862@svn.freebsd.org> <20100614172608.GD3632@acme.spoerlein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 14 Jun 2010 19:26:09 +0200
Ulrich Sp=C3=B6rlein <uqs@spoerlein.net> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100614123350.68a8c78b>