From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 12:30:31 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4FF17106564A; Mon, 3 May 2010 12:30:31 +0000 (UTC) (envelope-from cbergstrom@pathscale.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 24A288FC0A; Mon, 3 May 2010 12:30:30 +0000 (UTC) Received: by pxi11 with SMTP id 11so205173pxi.13 for ; Mon, 03 May 2010 05:30:21 -0700 (PDT) Received: by 10.140.247.17 with SMTP id u17mr3548969rvh.151.1272889821381; Mon, 03 May 2010 05:30:21 -0700 (PDT) Received: from [192.168.1.33] (ppp-58-8-182-179.revip2.asianet.co.th [58.8.182.179]) by mx.google.com with ESMTPS id q10sm1476399rvp.8.2010.05.03.05.30.18 (version=SSLv3 cipher=RC4-MD5); Mon, 03 May 2010 05:30:20 -0700 (PDT) Message-ID: <4BDEC2E3.2030305@pathscale.com> Date: Mon, 03 May 2010 19:34:43 +0700 From: =?UTF-8?B?IkMuIEJlcmdzdHLDtm0i?= User-Agent: Thunderbird 2.0.0.22 (X11/20090909) MIME-Version: 1.0 To: =?UTF-8?B?QW5kcml1cyBNb3JrxatuYXM=?= References: <4BDD28E2.8010201@rawbw.com> <20100503092213.GA1294@straylight.m.ringlet.net> <4BDEA78F.90303@pathscale.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: yuri@rawbw.com, freebsd-ports@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: GSoC: Making ports work with clang X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2010 12:30:31 -0000 Andrius Morkūnas wrote: > On Mon, 03 May 2010 13:38:07 +0300, C. Bergström > wrote: >> I can understand from a commercial perspective why having a permissive >> licensed production compiler could be good.. I can understand why many >> people don't like gcc or fsf, but what does the BSD community get? >> >> 1) Performance? >> 2) Robustness? >> 3) ... ? > Seeing how often I see this question, maybe I'll write (or force > rdivacky@ to do it) an explanation why clang/llvm is good for FreeBSD. > Anyway, for now, very short version: > 1) Performance - in the long run, yes. gcc 4.2 in base will not be > updated anymore. llvm on the other hand is actively developed > and includes fancy stuff that new CPUs have. Clang also compiles > stuff faster than gcc. What fancy stuff is in the ports tree which clang will take advantage of? > 2) Robustness - not yet. It's still too early to rely on stability of > clang/llvm, but eventually it will get better. I wish someone would just buy and open source EDG.. It would be a lot faster and less expensive > 3) BSD-like license, C99 and eventually C++0x support. > I'm too lazy to think about this right now. > >> What's really the goal here? > To quote myself: "make clang and ports to be friendly with each other". > My goals are stated in the initial email and the wiki. I'll update the > wiki with some clarification on what are and what are not my goals when > I have more time. > >> What problem are you working to solve? > The problem is that ports tree is full of assumptions that compiler is > gcc. At the moment, there is no way to use alternative compiler without > breaking too many things. This is something I can clearly relate to and would see as beneficial. I can't say the gentoo/arch approach is correct, but it may not be a bad idea to steal whatever they have have done correctly. I'd be more than happy to help or work with you if it's feasible to add another compiler to this project.