From owner-svn-src-all@FreeBSD.ORG Tue May 3 16:49:31 2011 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07C341065674; Tue, 3 May 2011 16:49:31 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id 8E00F8FC08; Tue, 3 May 2011 16:49:29 +0000 (UTC) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.4/8.14.4) with ESMTP id p439RvKu024629; Tue, 3 May 2011 04:27:57 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.4/8.14.4/Submit) id p439RvS3024628; Tue, 3 May 2011 04:27:57 -0500 (CDT) (envelope-from brooks) Date: Tue, 3 May 2011 04:27:57 -0500 From: Brooks Davis To: Roman Divacky Message-ID: <20110503092757.GA24552@lor.one-eyed-alien.net> References: <201105022113.p42LD8TH055002@svn.freebsd.org> <20110503133927.GA41839@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fdj2RfSjLxBAspz7" Content-Disposition: inline In-Reply-To: <20110503133927.GA41839@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (lor.one-eyed-alien.net [127.0.0.1]); Tue, 03 May 2011 04:27:57 -0500 (CDT) Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, Dimitry Andric Subject: Re: svn commit: r221348 - head/sys/boot/i386/boot2 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 May 2011 16:49:31 -0000 --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 03, 2011 at 03:39:27PM +0200, Roman Divacky wrote: > With the recent libobjc removal this means that we can compile > all (no exceptions) of FreeBSD/{i386,amd64} with clang. >=20 > Quite a milestone in my opinion :) Great news! Thanks for all the work to make this happen! Has boot2 been submitted to LLVM as a clang regression test? Thanks, Brooks >=20 > On Mon, May 02, 2011 at 09:13:08PM +0000, Dimitry Andric wrote: > > Author: dim > > Date: Mon May 2 21:13:08 2011 > > New Revision: 221348 > > URL: http://svn.freebsd.org/changeset/base/221348 > >=20 > > Log: > > Clang r130700 can now compile sys/boot/i386/boot2 with room to spare. > >=20 > > Modified: > > head/sys/boot/i386/boot2/Makefile > >=20 > > Modified: head/sys/boot/i386/boot2/Makefile > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > > --- head/sys/boot/i386/boot2/Makefile Mon May 2 21:10:13 2011 (r221347) > > +++ head/sys/boot/i386/boot2/Makefile Mon May 2 21:13:08 2011 (r221348) > > @@ -2,9 +2,6 @@ > > =20 > > .include > > =20 > > -# XXX: clang can compile the boot code just fine, but boot2 gets too b= ig > > -CC:=3D${CC:C/^(.*\/)?clang$/gcc/1} > > - > > FILES=3D boot boot1 boot2 > > =20 > > NM?=3D nm > > @@ -45,6 +42,12 @@ CFLAGS=3D -Os \ > > -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \ > > -Winline --param max-inline-insns-single=3D100 > > =20 > > +.if ${CC:T:Mclang} =3D=3D "clang" > > +CFLAGS+=3D -mllvm -stack-alignment=3D8 -mllvm -inline-threshold=3D3 > > +# XXX: clang integrated-as doesn't grok .codeNN directives yet > > +CFLAGS+=3D ${.IMPSRC:T:Mboot1.S:C/^.+$/-no-integrated-as/} > > +.endif > > + > > LDFLAGS=3D-static -N --gc-sections > > =20 > > # Pick up ../Makefile.inc early. >=20 --fdj2RfSjLxBAspz7 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iD8DBQFNv8qdXY6L6fI4GtQRAqqsAKDfekWELf17Jni2vZFXibzcLxjsyACgrXol qd1b5HxJJpih4ETohr1Ahuk= =CVJH -----END PGP SIGNATURE----- --fdj2RfSjLxBAspz7--