Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Dec 2011 22:40:26 +0000
From:      David Chisnall <theraven@FreeBSD.org>
To:        Andreas Tobler <andreast@FreeBSD.org>
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
Message-ID:  <DFB22709-37FC-4DC0-91C5-EF72E96A9982@FreeBSD.org>
In-Reply-To: <4EE51CA3.9060809@FreeBSD.org>
References:  <201112072117.pB7LHoaL055972@svn.freebsd.org> <4EE120D7.10903@FreeBSD.org> <4EE51CA3.9060809@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DFB22709-37FC-4DC0-91C5-EF72E96A9982>