This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Bootstrap broken on HEAD for i686-pc-linux-gnu
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Tue, 6 May 2003 12:32:37 -0500
- Subject: Re: Bootstrap broken on HEAD for i686-pc-linux-gnu
Loren I can confirm that the patch below removes the build error.
-benjamin
2003-05-06 Matt Kraai <kraai@alumni.cmu.edu>
* include/ext/stl_rope.h (_Rope_RopeRep::_Rope_RopeRep):
Use a temporary variable to initialize _M_c_string_lock.
Index: include/ext/stl_rope.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/ext/stl_rope.h,v
retrieving revision 1.21
diff -c -p -r1.21 stl_rope.h
*** include/ext/stl_rope.h 6 May 2003 14:32:52 -0000 1.21
--- include/ext/stl_rope.h 6 May 2003 17:33:01 -0000
*************** struct _Rope_RopeRep : public _Rope_rep_
*** 500,506 ****
# endif
_M_tag(__t), _M_is_balanced(__b), _M_depth(__d), _M_c_string(0)
#ifdef __GTHREAD_MUTEX_INIT
! { _M_c_string_lock = __GTHREAD_MUTEX_INIT; }
#else
{ __GTHREAD_MUTEX_INIT_FUNCTION (&_M_c_string_lock); }
#endif
--- 500,509 ----
# endif
_M_tag(__t), _M_is_balanced(__b), _M_depth(__d), _M_c_string(0)
#ifdef __GTHREAD_MUTEX_INIT
! {
! __gthread_mutex_t __tmp = __GTHREAD_MUTEX_INIT;
! _M_c_string_lock = __tmp;
! }
#else
{ __GTHREAD_MUTEX_INIT_FUNCTION (&_M_c_string_lock); }
#endif