Re: svn commit: r228330 - in head: include sys/sys

[ Available lists | Index of svn-src-all | Month of Dec 2011 | Week of 12 Dec 2011 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
David Chisnall <theraven@FreeBSD.org>
Date
12 Dec 2011 12:18:13
Subject
Re: svn commit: r228330 - in head: include sys/sys
Message-ID
DFB22709-37FC-4DC0-91C5-EF72E96A9982@FreeBSD.org


[ Hide this part ]
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=201103L. On gcc-4.7 __cplusplus=201103L 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.

> So I think we have to extend the check as below or we can reorder the defines that GNUC is before the __cplusplus && __cplusplus>= 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

Elapsed time: 0.170 seconds