On Thu, Sep 4, 2008 at 9:30 AM, Art Haas <[EMAIL PROTECTED]> wrote:
> Hi.
>
> My last successful build was from yesterday morning. After the large
> libstdc++ patch by Chris Fairles landed the builds have failed with the
> following error:
>
> In file included from
> /export/home/arth/gnu/gcc.git/libstdc++-v3/src/mutex.cc:30:
> /export/home/arth/gnu/gcc-0904/i386-pc-solaris2.10/libstdc++-v3/include/mutex:
>  In constructor 'std::once_flag::once_flag()':
> /export/home/arth/gnu/gcc-0904/i386-pc-solaris2.10/libstdc++-v3/include/mutex:618:
>  error: could not convert '{{0, 0, 0, 0}}' to '__gthread_once_t'
> make[4]: *** [mutex.lo] Error 1
>
> Art Haas
>

Can you try the attached patch?

Thanks,
Chris
Index: include/std/mutex
===================================================================
--- include/std/mutex   (revision 139984)
+++ include/std/mutex   (working copy)
@@ -615,8 +615,10 @@
     typedef __gthread_once_t __native_type;
 
     once_flag()
-    : _M_once(__GTHREAD_ONCE_INIT)
-    { }
+    {
+      __gthread_once_t __tmp = __GTHREAD_ONCE_INIT;
+      _M_once = __tmp;
+    }
     
     once_flag(const once_flag&) = delete;
     once_flag& operator=(const once_flag&) = delete;

Reply via email to