From owner-freebsd-arm@FreeBSD.ORG Tue Mar 19 22:09:36 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1C0B33C8; Tue, 19 Mar 2013 22:09:36 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from vps.hungerhost.com (vps.hungerhost.com [216.38.53.176]) by mx1.freebsd.org (Postfix) with ESMTP id E34B59C4; Tue, 19 Mar 2013 22:09:35 +0000 (UTC) Received: from [209.249.190.124] (port=51809 helo=gnnmac.hudson-trading.com) by vps.hungerhost.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1UI4iI-00045w-56; Tue, 19 Mar 2013 18:09:00 -0400 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: RFC: Make clang the default compiler on ARM From: George Neville-Neil In-Reply-To: <773A0A0D-4208-4F5B-AA73-416512709A4A@bsdimp.com> Date: Tue, 19 Mar 2013 18:08:50 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <471C5F38-2401-4308-871F-32D6A395D209@neville-neil.com> References: <20130318220747.29d3fd29@bender> <773A0A0D-4208-4F5B-AA73-416512709A4A@bsdimp.com> To: Warner Losh X-Mailer: Apple Mail (2.1503) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps.hungerhost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - neville-neil.com X-Get-Message-Sender-Via: vps.hungerhost.com: authenticated_id: gnn@neville-neil.com Cc: freebsd-arm@freebsd.org, freebsd-toolchain@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Mar 2013 22:09:36 -0000 On Mar 18, 2013, at 11:33 , Warner Losh wrote: >=20 > On Mar 18, 2013, at 3:07 AM, Andrew Turner wrote: >=20 >> I would like to make clang the default compiler on ARM using the = patch >> at [1]. This only affects little-endian ARM as there is no support = for >> big-endian ARM in clang. >>=20 >> This will help me with my work to update the FreeBSD ARM ABI as I am >> planning on moving to a hard-float ABI on armv6 as all SoCs we >> are likely to support have at least a VFPv3-D16 floating point >> coprocessor. The version of gcc we have in our tree does not support >> the hard float ABI with VFP and support was added after gcc moved to >> the GPLv3 so we are usable to make use of it. >>=20 >> The only issue I know about is an incompatibility between gcc and = clang >> with ARM EABI however this has been fixed upstream and I plan on >> bringing it into our tree before making clang the default. If anyone >> knows of any other issues please let me know now so I can look into >> them. >>=20 >> If nobody brings up any issues or has any objections to me doing this >> I will make clang the default earlier than 25 March (UTC+0). >>=20 >> Andrew >>=20 >> [1] http://people.freebsd.org/~andrew/clang/arm_clang_default.diff >=20 > This scares me, but we're at a great time in our schedule for it. >=20 I think we ought to do this, in particular since LLVM is the future of = compiler tech. Sooner we break it the sooner we can fix it :-) Best, George