From owner-freebsd-toolchain@freebsd.org Thu Mar 24 23:18:36 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 556C7ADD9FC for ; Thu, 24 Mar 2016 23:18:36 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 380C51D5C for ; Thu, 24 Mar 2016 23:18:36 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 37491ADD9FB; Thu, 24 Mar 2016 23:18:36 +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 36E25ADD9FA for ; Thu, 24 Mar 2016 23:18:36 +0000 (UTC) (envelope-from bdrewery@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 19CE81D5B; Thu, 24 Mar 2016 23:18:36 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 1356A1ABE; Thu, 24 Mar 2016 23:18:36 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id C6876200D3; Thu, 24 Mar 2016 23:18:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id izxrMZzfg3LP; Thu, 24 Mar 2016 23:18:33 +0000 (UTC) Subject: Re: CXXSTD=c++11 DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 0FFC8200CD To: Dimitry Andric 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> Cc: toolchain@FreeBSD.org From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: <56F475CB.8020107@FreeBSD.org> Date: Thu, 24 Mar 2016 16:18:35 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="72KcMDTBSS05IlpagUU89KU6E1qdEbQkC" 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: Thu, 24 Mar 2016 23:18:36 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --72KcMDTBSS05IlpagUU89KU6E1qdEbQkC Content-Type: multipart/mixed; boundary="CdnB6dMWhHgMpuiB9gnoXRFTV8npTHra0" From: Bryan Drewery To: Dimitry Andric Cc: toolchain@FreeBSD.org Message-ID: <56F475CB.8020107@FreeBSD.org> Subject: Re: CXXSTD=c++11 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> In-Reply-To: --CdnB6dMWhHgMpuiB9gnoXRFTV8npTHra0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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=3Dc++11 (there's more discussion in that link a= nd 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 i= n >> sys/cdefs.h? We shouldn't litter contrib code with #ifdef GCC_VERSION= >> blocks. >=20 > 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=3Dc++= 11. > This was so you could even build it with gcc 4.2.1 from base. >=20 > However, it really doesn't make much sense to do so, and upstream > libcxxrt simply uses static_assert directly, and requires -std=3Dc++11.= I > will update the libcxxrt build to do so, probably tomorrow. >=20 Sounds good. --=20 Regards, Bryan Drewery --CdnB6dMWhHgMpuiB9gnoXRFTV8npTHra0-- --72KcMDTBSS05IlpagUU89KU6E1qdEbQkC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJW9HXLAAoJEDXXcbtuRpfPmsgH+gKrS1a/H5pBO8mU73b6OiPx yDu+tFCfAIUH1RiP3vNA4zMb7+VrchFn6mTs3/DdJy6j41g6W8j6hMCQTF8ylnBL pBEdJ2izX9asq0C3iHPR9a75UDnYRS5Q4dmnWByR+nR1vegA5bbH5NCqHWvkTJdn vvmJOp0zpqNQyxxLKSy/Z8JyKcBQSj8mJDTidGsbSG8e58JhzBr5yjtsapMV4Mxj aWMl8CySnkLF0vBpYGfn6QY8XxVpD5rB777+mpjOLydOn3PvKAc/69hZB71CjxZ4 FMk6jbSbebXDH+8KyaO6c2drifMkwTxiPu8j+y25jKz2e3X3AwwBlKWXmWayzhU= =t0kt -----END PGP SIGNATURE----- --72KcMDTBSS05IlpagUU89KU6E1qdEbQkC--