From owner-freebsd-arm@FreeBSD.ORG Mon Mar 18 15:33:33 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 2C27497F for ; Mon, 18 Mar 2013 15:33:33 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-da0-x22b.google.com (mail-da0-x22b.google.com [IPv6:2607:f8b0:400e:c00::22b]) by mx1.freebsd.org (Postfix) with ESMTP id 0926C2E5 for ; Mon, 18 Mar 2013 15:33:33 +0000 (UTC) Received: by mail-da0-f43.google.com with SMTP id u36so1416941dak.30 for ; Mon, 18 Mar 2013 08:33:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer:x-gm-message-state; bh=Fi1UncaN1wsPaTAqneOIfmMAYZiT0PY93MXGFGVRcQc=; b=MuyBbbUGdkgOb/PYuADOgi/wUEVFoUwaMowRpb5QJy2E14N34PijKuMVk9sbVEcLPS 5jNSt0TCqvINj1Uwz1DRpy7jYQKYzKvXWf1QgZr+XFtEQdqCZ997uQYs6aExXFb1WWFZ dmx8b5WBRcFwJxYnHqHVbHzrI9vdtGZWdhvl6viAld1Sc+f0OV2y7FOWw+FX9UIp+9u9 EVd2o7chMR2HURIc9gG5C8uNftLU3OMJd1Sw0iCva97GctPVA1BAXRuKSXaZitFTbc3t BxCVCxSzDQFBAcmUNrPon+FSXHMU2nCcmSq4wewdGv6Dj7wtFhdd82tg+uGNNbeWijtF KHgQ== X-Received: by 10.66.50.232 with SMTP id f8mr11288118pao.183.1363620812730; Mon, 18 Mar 2013 08:33:32 -0700 (PDT) Received: from fusionlt2834a.int.fusionio.com ([216.51.42.66]) by mx.google.com with ESMTPS id vc4sm8625161pab.10.2013.03.18.08.33.30 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Mar 2013 08:33:31 -0700 (PDT) Sender: Warner Losh Subject: Re: RFC: Make clang the default compiler on ARM Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <20130318220747.29d3fd29@bender> Date: Mon, 18 Mar 2013 09:33:28 -0600 Content-Transfer-Encoding: 7bit Message-Id: <773A0A0D-4208-4F5B-AA73-416512709A4A@bsdimp.com> References: <20130318220747.29d3fd29@bender> To: Andrew Turner X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQnkJx5R3qPksYT9RgFJZgaZLbpk/ghjW7LPidSVpKv09yqEnOjiB7ZQDLNCzu3LWKvKihQ+ 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: Mon, 18 Mar 2013 15:33:33 -0000 On Mar 18, 2013, at 3:07 AM, Andrew Turner wrote: > 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. > > 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. > > 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. > > 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). > > Andrew > > [1] http://people.freebsd.org/~andrew/clang/arm_clang_default.diff This scares me, but we're at a great time in our schedule for it. Warner