From owner-freebsd-arm@FreeBSD.ORG Mon Mar 18 10:40:02 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 C6C077A4; Mon, 18 Mar 2013 10:40:02 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from smtp3.clear.net.nz (smtp3.clear.net.nz [203.97.33.64]) by mx1.freebsd.org (Postfix) with ESMTP id 95891113; Mon, 18 Mar 2013 10:40:02 +0000 (UTC) Received: from mxin3-orange.clear.net.nz (lb2-srcnat.clear.net.nz [203.97.32.237]) by smtp3.clear.net.nz (CLEAR Net Mail) with ESMTP id <0MJU003P7MP4I020@smtp3.clear.net.nz>; Mon, 18 Mar 2013 22:07:52 +1300 (NZDT) Received: from 202-0-48-19.paradise.net.nz (HELO bender) ([202.0.48.19]) by smtpin32.paradise.net.nz with ESMTP; Mon, 18 Mar 2013 22:07:52 +1300 Date: Mon, 18 Mar 2013 22:07:47 +1300 From: Andrew Turner Subject: RFC: Make clang the default compiler on ARM To: freebsd-arm@freebsd.org, freebsd-toolchain@freebsd.org Message-id: <20130318220747.29d3fd29@bender> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit 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 10:40:02 -0000 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