From owner-freebsd-toolchain@freebsd.org Sun Mar 27 21:33:12 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A18C7ADF3F3 for ; Sun, 27 Mar 2016 21:33:12 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8ABD11B16 for ; Sun, 27 Mar 2016 21:33:12 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 8A0F6ADF3F2; Sun, 27 Mar 2016 21:33:12 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 89B62ADF3F1 for ; Sun, 27 Mar 2016 21:33:12 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A83651B14; Sun, 27 Mar 2016 21:33:11 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::ad9c:32e8:3e6c:1da3] (unknown [IPv6:2001:7b8:3a7:0:ad9c:32e8:3e6c:1da3]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 2ADCC25589; Sun, 27 Mar 2016 23:33:03 +0200 (CEST) Subject: Re: CXXSTD=c++11 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_73059E3B-2345-46FE-86B3-1AF41FF703E7"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 (ebbf3ef) From: Dimitry Andric In-Reply-To: <56F475CB.8020107@FreeBSD.org> Date: Sun, 27 Mar 2016 23:33:02 +0200 Cc: toolchain@FreeBSD.org Message-Id: <222A6D82-ED88-4F93-869E-6615BFEE0441@FreeBSD.org> References: <56F46BE0.7080909@FreeBSD.org> <43ABA5F3-60E0-4A29-9698-B345A3DA0A8B@FreeBSD.org> <56F46E1B.4010605@FreeBSD.org> <56F46F67.2000807@FreeBSD.org> <7B77010A-B377-4B1A-835A-D48F59E5290D@FreeBSD.org> <56F475CB.8020107@FreeBSD.org> To: Bryan Drewery X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Mar 2016 21:33:12 -0000 --Apple-Mail=_73059E3B-2345-46FE-86B3-1AF41FF703E7 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=windows-1252 On 25 Mar 2016, at 00:18, Bryan Drewery wrote: > > On 3/24/2016 4:16 PM, Dimitry Andric wrote: >> On 24 Mar 2016, at 23:54, Dimitry Andric wrote: >>> >>> On 24 Mar 2016, at 23:51, Bryan Drewery wrote: >> ... >>>> It fails without -std=c++11 (there's more discussion in that link and in >>>> PR 205453). >>> >>> Yeah, I also commented on PR 205453 in the past, but I still don't >>> understand where the external gcc gets its _Static_assert macro from. >>> Or whether it gets it at all. Maybe we should place a hack for this in >>> sys/cdefs.h? We shouldn't litter contrib code with #ifdef GCC_VERSION >>> blocks. >> >> Hm, hacking around in cdefs.h also doesn't really help, because gcc >> refuses to recognize either _Static_assert or static_assert when it's >> not in C++11 mode. Reading back https://reviews.freebsd.org/D1390, I >> see that I originally wanted to avoid building libcxxrt with -std=c++11. >> This was so you could even build it with gcc 4.2.1 from base. >> >> However, it really doesn't make much sense to do so, and upstream >> libcxxrt simply uses static_assert directly, and requires -std=c++11. I >> will update the libcxxrt build to do so, probably tomorrow. >> > > Sounds good. Done in r297299 [1]. I also imported libc++ r255683 [2], which should fix llvm-cov compilation with g++, in r297322 [3]. -Dimitry [1] https://svnweb.freebsd.org/changeset/base/297299 [2] http://reviews.llvm.org/rL255683 [3] https://svnweb.freebsd.org/changeset/base/297322 --Apple-Mail=_73059E3B-2345-46FE-86B3-1AF41FF703E7 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.29 iEYEARECAAYFAlb4UY4ACgkQsF6jCi4glqOT8wCfRanHMTeKfjRRO/KxIhYIJ+Ij n/4AoIv7xInkqgdqdz+FMaOwgOqTz6zt =72Cv -----END PGP SIGNATURE----- --Apple-Mail=_73059E3B-2345-46FE-86B3-1AF41FF703E7--