From owner-freebsd-toolchain@FreeBSD.ORG Mon Mar 18 15:33:33 2013 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2E4C5980 for ; Mon, 18 Mar 2013 15:33:33 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-da0-x232.google.com (mail-da0-x232.google.com [IPv6:2607:f8b0:400e:c00::232]) by mx1.freebsd.org (Postfix) with ESMTP id 09F672E6 for ; Mon, 18 Mar 2013 15:33:33 +0000 (UTC) Received: by mail-da0-f50.google.com with SMTP id t1so1407243dae.37 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=SnUdVaSPv3d2+ZOKhoujxGjO+XbA8IpfazUC9lNYDswx73ROarIIKEVJpGCmkvTtKd qOn2U/2EtQdH0//Mq/S9QZHEihqDB+yjSIgb6CtYViXbAtwo5lL9UTzuBr/VBvyZmdLl Vxw3CPsst+oWnGsLUxPtrqQUDWPwH+ry/csonQZP+sUIX4A9Zu/EmHAlragTOtuhMVKe 7KLzxCGF+CvdwQpNxyefnBqJgw+JQF8ZrZGSSmYT71hZxfXXKWBiwlTg1s3XA2Qk0zXN v1OrgxDyFDpSHCXJ4RhIKc4vopooR815XaaToFWdOw3RcBlPCNCcIeJkLcAtqPEh7E7S MgpQ== 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: ALoCoQnst5kYjjgxWXw+E7rYDMzaSfUFBRaH54LStKct2QPwVBkwGrxruzmecRsvzXr7iGmp2iuS Cc: freebsd-arm@freebsd.org, freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain 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