[v3] c++0x <mutex> and <condition_variable>

Chris Fairles chris.fairles@gmail.com
Wed Sep 3 20:19:00 GMT 2008


On Wed, Sep 3, 2008 at 3:56 PM, Andreas Tobler <andreast-list@fgznet.ch> wrote:
> Paolo Carlini wrote:
>>
>> Chris Fairles wrote:
>>>
>>> Missed a few explicit bool casts.
>>>
>>
>> Committed after a multilib build on x86_64-linux.
>
> Breaks bootstrap on *-*-darwin*.
>
> In file included from
> /Volumes/development/gcc/head/gcc/libstdc++-v3/src/mutex.cc:30:
> /Volumes/development/gcc/head/objdir/powerpc-apple-darwin9.4.0/libstdc++-v3/include/mutex:
> In member function 'bool std::timed_mutex::try_lock_until(const
> std::chrono::time_point<_Clock, _Duration1>&)':
> /Volumes/development/gcc/head/objdir/powerpc-apple-darwin9.4.0/libstdc++-v3/include/mutex:218:
> error: there are no arguments to '__gthread_mutex_timedlock' that depend on
> a template parameter, so a declaration of '__gthread_mutex_timedlock' must
> be available
>
>
> Reverting 139943 on libstdc++ brings it back to working.
>
> Thanks,
> Andreas
>

Perhaps for now we shouldn't define _GTHREADS_CXX0X in gthr-posix.h
unless _POSIX_TIMERS > 0 ? (attached patch plus changelog).

Chris
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Changelog_gthr_posix_cxx0x.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080903/1bcb8fd1/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gthr-posix-cxx0x.patch.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080903/1bcb8fd1/attachment-0001.txt>


More information about the Gcc-patches mailing list