svn commit: r209153 - head/lib/clang
nwhitehorn at freebsd.org
Mon Jun 14 17:33:53 UTC 2010
On Mon, 14 Jun 2010 19:26:09 +0200
Ulrich Spörlein <uqs at 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
> > Log:
> > Unbreak Clang on PowerPC.
> > 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.
> What about clang compiled using clang -O2? Ie., does clang bootstrap
> correctly on PPC and this is a genuine gcc 4.2.1 bug?
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
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.
More information about the svn-src-all