From owner-freebsd-toolchain@FreeBSD.ORG Mon Mar 18 10:40:02 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 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-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 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 From owner-freebsd-toolchain@FreeBSD.ORG Mon Mar 18 11:06:50 2013 Return-Path: Delivered-To: freebsd-toolchain@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E02BCBF9 for ; Mon, 18 Mar 2013 11:06:50 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B95C7AC5 for ; Mon, 18 Mar 2013 11:06:50 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2IB6oB5002319 for ; Mon, 18 Mar 2013 11:06:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2IB6okc002317 for freebsd-toolchain@FreeBSD.org; Mon, 18 Mar 2013 11:06:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 18 Mar 2013 11:06:50 GMT Message-Id: <201303181106.r2IB6okc002317@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-toolchain@FreeBSD.org Subject: Current problem reports assigned to 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 11:06:50 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/175930 toolchain [headers] clang does not define __STDC_ISO_10646__, de 1 problem total. From owner-freebsd-toolchain@FreeBSD.ORG Mon Mar 18 11:13:34 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 5BD9CCA1; Mon, 18 Mar 2013 11:13:34 +0000 (UTC) (envelope-from nick@flirble.org) Received: from plum.flirble.org (plum.flirble.org [194.70.3.20]) by mx1.freebsd.org (Postfix) with ESMTP id 2BE1FDE2; Mon, 18 Mar 2013 11:13:33 +0000 (UTC) Received: from nick by plum.flirble.org with local (Exim 4.75 (FreeBSD)) (envelope-from ) id 1UHXhO-000LBx-LX; Mon, 18 Mar 2013 10:53:50 +0000 Date: Mon, 18 Mar 2013 10:53:50 +0000 From: Nicholas Clark To: Andrew Turner Subject: Re: RFC: Make clang the default compiler on ARM Message-ID: <20130318105349.GS3729@plum.flirble.org> References: <20130318220747.29d3fd29@bender> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130318220747.29d3fd29@bender> X-Organisation: Tetrachloromethane User-Agent: Mutt/1.5.21 (2010-09-15) Sender: Nicholas Clark 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 11:13:34 -0000 On Mon, Mar 18, 2013 at 10:07:47PM +1300, 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. > [1] http://people.freebsd.org/~andrew/clang/arm_clang_default.diff I admit that I'm a complete outsider here I'm not sure if I'm qualified to comment, but in the code in question, the comment above the changed line is becoming increasingly incorrect, isn't it? (This seems to reflect the sad reality of code comments generally, including in the code I write and get to deal with.) Nicholas Clark 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 From owner-freebsd-toolchain@FreeBSD.ORG Mon Mar 18 15:37:10 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 9A0FBA07 for ; Mon, 18 Mar 2013 15:37:10 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 3222730B for ; Mon, 18 Mar 2013 15:37:09 +0000 (UTC) Received: by mail-wi0-f170.google.com with SMTP id hm11so3077727wib.1 for ; Mon, 18 Mar 2013 08:37:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=fnpfxG+pWSa+B1YNSNOSjoyNaTEMEAyX67EC6vgejJc=; b=lyOFtZPYXgCwHI/zCXvC1iifXogpSjoh1jnReEqr2J3TahiF9YaCBwGyibzGhP0cdj v46tGU9dVuYd7Id0rAjRzmDpibNWkUqzzDLf82BzX2MmtgNLgaAjU6b0RThrtunxC/0m zYiGqFQIGezJoe5i76YP+c71072NDEi9WUtW0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:x-gm-message-state; bh=fnpfxG+pWSa+B1YNSNOSjoyNaTEMEAyX67EC6vgejJc=; b=fuguoHDQPtp6nCOVmmD0GBJmgMAfQ08g1mYB700Yr6iKFQfUY4CkfwoDKODgIF+GsN 4XuiQT6DuETZo+xCkmIRngrH8ysge4ZI+JbpXd2JplcC97cdJYBGCvv4UBew8b6ZTORx UQ/IILpT0Gqe12uz5mu/FkdaaM9zjrkrVc8OqtoZzCzSWBeC51S6ENMLXDpJKYQ55ZcR 09k1agf0cgK7VADZhLyc5ylvnWnCwEfKVMHV3ZbRimKIwjXxFcXG24nNFmI94bywefkJ TptuhxbroRUei5iRIaodUC/a7AouiFHlAx/WuR330s0oANi0rOc5MXr7FM/zyDmZwYUu 1Azw== X-Received: by 10.180.14.233 with SMTP id s9mr17680228wic.25.1363621029231; Mon, 18 Mar 2013 08:37:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.82.74 with HTTP; Mon, 18 Mar 2013 08:36:39 -0700 (PDT) In-Reply-To: <20130318105349.GS3729@plum.flirble.org> References: <20130318220747.29d3fd29@bender> <20130318105349.GS3729@plum.flirble.org> From: Eitan Adler Date: Mon, 18 Mar 2013 11:36:39 -0400 Message-ID: Subject: Re: RFC: Make clang the default compiler on ARM To: Nicholas Clark Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQmNViglPn3Gf5H29OKCp+NxvphPT+l3B1jIfP+ILync/juG6nKj6dCGNoIgDGKin/N3UYi7 Cc: freebsd-arm@freebsd.org, freebsd-toolchain@freebsd.org, Andrew Turner 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:37:10 -0000 On 18 March 2013 06:53, Nicholas Clark wrote: > On Mon, Mar 18, 2013 at 10:07:47PM +1300, 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. > >> [1] http://people.freebsd.org/~andrew/clang/arm_clang_default.diff > > I admit that I'm a complete outsider here I'm not sure if I'm qualified to > comment, but in the code in question, the comment above the changed line is > becoming increasingly incorrect, isn't it? I think you are right. Given that the comment duplicates the if statement below, it should probably just be dropped. -- Eitan Adler From owner-freebsd-toolchain@FreeBSD.ORG Tue Mar 19 22:09:36 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 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, Andrew Turner 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: 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