Inconsistent use of __GTHREAD_HAS_COND

Jason Merrill jason@redhat.com
Wed Oct 10 02:20:00 GMT 2007


fafa wrote:
> I tried to build gcc from the latest snapshot (gcc-4.3-20071005),
> but I undefined the symbol "__GTHREAD_HAS_COND"
> which is desribed in libstdc++-v3\ChangeLog as follows:
>   ...
>   [!__GTHREAD_HAS_COND] Fall back to the old code, which deadlocks.
>   ...
> 
> But libstdc++-v3\libsupc++\guard.cc uses the class __guard from
> libstdc++-v3\include\ext\concurrence.h which depends on the symbol
> __GTHREAD_HAS_COND and is undefined now.

Hmm?  __guard is a typedef in cxxabi-tweaks.h and doesn't depend on 
__GTHREAD_HAS_COND.

Jason



More information about the Gcc mailing list