svn commit: r221348 - head/sys/boot/i386/boot2

Brooks Davis brooks at FreeBSD.org
Tue May 3 16:49:31 UTC 2011


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.
> 
> 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

> 
> 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 <bsd.own.mk>
> >  
> > -# 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.
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20110503/81f1f99a/attachment.pgp


More information about the svn-src-head mailing list