This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] mutex vs. cstdatomic
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org, Jack Howarth <howarth at bromo dot med dot uc dot edu>
- Date: Sat, 13 Dec 2008 09:49:58 +0100
- Subject: Re: [v3] mutex vs. cstdatomic
- References: <20081212232738.0db851ec@balbo.artheist.org>
Hi,
> There appears to be an include ordering issue on darwin:
>
> No joy:
> #include "gstdint.h"
> #include <cstdatomic>
> #include <mutex>
>
> OK:
> #include "gstdint.h"
> #include <mutex>
> #include <cstdatomic>
>
> Adjusting this allows bootstrap on darwin again.
Most likely I'm saying the obvious, but certainly the above should be
further investigated: if the facilities in <cstdatomic> explicitly
require the facilities in <mutex>, then the latter should be included
explicitely by the former, otherwise, if it's because of an
implementation detail, that is <mutex> includes something that
<cstdatomic> also happen to need and at the moment doesn't include by
mistake, that should be also fixed ASAP.
Paolo.