From owner-freebsd-current@FreeBSD.ORG Mon May 31 19:57:08 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE6CC106564A for ; Mon, 31 May 2010 19:57:07 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 82E9C8FC18 for ; Mon, 31 May 2010 19:57:07 +0000 (UTC) Received: by vws10 with SMTP id 10so1946410vws.13 for ; Mon, 31 May 2010 12:57:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type; bh=maf0XRQOaFpNvFbHRKGal5c64GMZQBWzIKeGehsxpuQ=; b=ugZTAfSmryXOqQUeSulmbhDC8nN+MAchpkvzNJwdbVAxdXOehOaCezcWzL5QmujhJH JvotMMv3ZccCTSIxHhoVWC7AmSFgJiRAPDS+hDr1GxC4AVmR5riLMsIpg1NRBvDwGJxj RngTu3Fee7in5lqwTzF714RjBPYnNiUuGAJMo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; b=gtbKvMCGgZJ7zBcv7NkhxsJqV8QS4efhSs7Ad/n+qRmKj0k0sJSLpWvZj5iQaX2hJf taAIa1l4rCLKM2BZTc7p082/Al3iuBf58qgZcDDyI15yhJVluFFRUVm70VM506qEO5EY O4EGaAb+/05EE6kuO4bBt/Hk/dTVjTdGUNqZ4= Received: by 10.224.94.83 with SMTP id y19mr1880293qam.71.1275334329231; Mon, 31 May 2010 12:32:09 -0700 (PDT) Received: from kan.dnsalias.net (c-24-63-226-98.hsd1.ma.comcast.net [24.63.226.98]) by mx.google.com with ESMTPS id 6sm5435517qwd.33.2010.05.31.12.32.07 (version=SSLv3 cipher=RC4-MD5); Mon, 31 May 2010 12:32:07 -0700 (PDT) Date: Mon, 31 May 2010 15:32:01 -0400 From: Alexander Kabaev To: Steve Kargl Message-ID: <20100531153201.2377d1aa@kan.dnsalias.net> In-Reply-To: <20100531151841.GA56247@troutmask.apl.washington.edu> References: <20100529130240.GA99732@freebsd.org> <20100531144938.GA55909@troutmask.apl.washington.edu> <4C03D0C0.4050306@andric.com> <20100531151841.GA56247@troutmask.apl.washington.edu> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/wa_aN/PSB.atf8/rvedBM_+"; protocol="application/pgp-signature" Cc: Brandon Gooch , Dimitry Andric , Roman Divacky , current@freebsd.org Subject: Re: [TESTING]: ClangBSD branch needs testing before the import to HEAD X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 May 2010 19:57:08 -0000 --Sig_/wa_aN/PSB.atf8/rvedBM_+ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 31 May 2010 08:18:42 -0700 Steve Kargl wrote: > On Mon, May 31, 2010 at 05:07:44PM +0200, Dimitry Andric wrote: > > On 2010-05-31 16:49, Steve Kargl wrote: > > >> So, what exactly should we expect, if anything, to break? :) > > >=20 > > > Did you build and install new boot code? ISTR that clang=20 > > > can't compile src/sys/boot/i386/boot0 to the required=20 > > > 512 bytes. > >=20 > > No, boot0 is written in assembly, and run through the regular (GNU) > > assembler. Neither gcc nor clang do anything more except calling > > the linker. > >=20 > > The only component (in the whole clangbsd src tree) which still > > needs to be compiled with gcc is boot2, which otherwise ends up > > just a little too big, and doesn't fit. This is being worked on, > > but it isn't very critical, really. Note that clangbsd > > automatically uses gcc for this specific code, unless you override > > it manually. >=20 > Doesn't this imply that clang/llvm isn't quite ready for deployment. > Being able to boot a complete clang/llvm compiled FreeBSD system > would seem to be critical. >=20 > When you say "This is being worked on", do you mean clang/llvm is > being changed to compile boot2 or do you mean boot2 is being changed > to allow clang/lvvm to compile it? > =20 FWIW, boot2 was a problem child for each and every GCC import on my memory. Every single major GCC release has claimed better optimizations and more compact generated code and yet they all inevitably generated code which was appreciably bigger than code produced by previus GCC version. This should not be used as an excuse to hold clang at bay, provided base src still comes with working way for building the working boot2 image (gcc). =20 --=20 Alexander Kabaev --Sig_/wa_aN/PSB.atf8/rvedBM_+ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iD8DBQFMBA62Q6z1jMm+XZYRApKLAKDaoJaFjnhjzPd1CogkvI7/aeB+RACgooKw PTQOZIRdnU9GKYbQZsp0sEs= =GWr4 -----END PGP SIGNATURE----- --Sig_/wa_aN/PSB.atf8/rvedBM_+--