From owner-svn-src-all@FreeBSD.ORG Mon Dec 12 12:18:13 2011 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37A2F1065672; Mon, 12 Dec 2011 12:18:13 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from theravensnest.org (theravensnest.org [109.169.23.128]) by mx1.freebsd.org (Postfix) with ESMTP id CCDF28FC08; Mon, 12 Dec 2011 12:18:12 +0000 (UTC) Received: from [192.168.0.2] (cpc2-cwma5-0-0-cust875.7-3.cable.virginmedia.com [86.11.39.108]) (authenticated bits=0) by theravensnest.org (8.14.4/8.14.4) with ESMTP id pBCCIA2G036877 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Mon, 12 Dec 2011 12:18:11 GMT (envelope-from theraven@FreeBSD.org) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: David Chisnall In-Reply-To: <4EE51CA3.9060809@FreeBSD.org> Date: Sun, 11 Dec 2011 22:40:26 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201112072117.pB7LHoaL055972@svn.freebsd.org> <4EE120D7.10903@FreeBSD.org> <4EE51CA3.9060809@FreeBSD.org> To: Andreas Tobler X-Mailer: Apple Mail (2.1251.1) Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r228330 - in head: include sys/sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2011 12:18:13 -0000 On 11 Dec 2011, at 21:12, Andreas Tobler wrote: > As far as I understand, GCC does not support this attribute = [[noreturn]] yet. But it defines both, __cplusplus and = __cplusplus=3D201103L. On gcc-4.7 __cplusplus=3D201103L is the default = when we build libstdc++. Advertising C++11 compatibility and then not supporting fairly simple = C++11 features seems like a pretty major GCC bug. =20 > So I think we have to extend the check as below or we can reorder the = defines that GNUC is before the __cplusplus && __cplusplus>=3D 201103L. I'd rather prefer the standard version to the non-standard version, but = maybe we can add an extra check to see if your compiler incompetent. David=