From owner-svn-src-all@FreeBSD.ORG Tue May 3 14:16:04 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 D1A66106566C; Tue, 3 May 2011 14:16:04 +0000 (UTC) (envelope-from rdivacky@vlakno.cz) Received: from vlakno.cz (lev.vlakno.cz [46.28.110.116]) by mx1.freebsd.org (Postfix) with ESMTP id 909F38FC0C; Tue, 3 May 2011 14:16:04 +0000 (UTC) Received: by vlakno.cz (Postfix, from userid 1002) id 9E41E7F3A8B; Tue, 3 May 2011 15:39:27 +0200 (CEST) Date: Tue, 3 May 2011 15:39:27 +0200 From: Roman Divacky To: Dimitry Andric Message-ID: <20110503133927.GA41839@freebsd.org> References: <201105022113.p42LD8TH055002@svn.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201105022113.p42LD8TH055002@svn.freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org 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 14:16:04 -0000 With the recent libobjc removal this means that we can compile all (no exceptions) of FreeBSD/{i386,amd64} with clang. Quite a milestone in my opinion :) 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 > > Log: > Clang r130700 can now compile sys/boot/i386/boot2 with room to spare. > > Modified: > head/sys/boot/i386/boot2/Makefile > > Modified: head/sys/boot/i386/boot2/Makefile > ============================================================================== > --- 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 @@ > > .include > > -# XXX: clang can compile the boot code just fine, but boot2 gets too big > -CC:=${CC:C/^(.*\/)?clang$/gcc/1} > - > FILES= boot boot1 boot2 > > NM?= nm > @@ -45,6 +42,12 @@ CFLAGS= -Os \ > -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \ > -Winline --param max-inline-insns-single=100 > > +.if ${CC:T:Mclang} == "clang" > +CFLAGS+= -mllvm -stack-alignment=8 -mllvm -inline-threshold=3 > +# XXX: clang integrated-as doesn't grok .codeNN directives yet > +CFLAGS+= ${.IMPSRC:T:Mboot1.S:C/^.+$/-no-integrated-as/} > +.endif > + > LDFLAGS=-static -N --gc-sections > > # Pick up ../Makefile.inc early.