This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Counter-PATCH (libstdc++-v3, mainline) for: std::_Atomic_swapfor i386


Loren, your patch breaks bootstrap on my x86-linux-gnu box. In the 
creation of ext-inst.o, I get this:

/home/bangerth/tmp/gcc/b34/i686-pc-linux-gnu/libstdc++-v3/include/ext/stl_rope.h: In
   constructor `__gnu_cxx::_Rope_RopeRep<_CharT,
   _Alloc>::_Rope_RopeRep(__gnu_cxx::_Rope_RopeRep<_CharT, _Alloc>::_Tag, int,
   bool, unsigned int, typename __gnu_cxx::_Rope_rep_base<_CharT, _Alloc>::allocator_type)':
/home/bangerth/tmp/gcc/b34/i686-pc-linux-gnu/libstdc++-v3/include/ext/stl_rope.h:503: error: expected
   primary-expression
/home/bangerth/tmp/gcc/b34/i686-pc-linux-gnu/libstdc++-v3/include/ext/stl_rope.h:503: error: expected
   `;'

The lines in question are 
-------------------------
    _Rope_RopeRep(_Tag __t, int __d, bool __b, size_t __size,
                  allocator_type __a)
        : _Rope_rep_base<_CharT,_Alloc>(__size, __a),
#         ifndef __GC
          _Refcount_Base(1),
#         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; }         //////// line 503
#else
    { __GTHREAD_MUTEX_INIT_FUNCTION (&_M_c_string_lock); }
#endif
------------------------

I don't know what exactly goes wrong, but if you have specific questions 
feel free to ask!

W.

-------------------------------------------------------------------------
Wolfgang Bangerth              email:            bangerth@ices.utexas.edu
                               www: http://www.ices.utexas.edu/~bangerth/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]