This is the mail archive of the gcc-bugs@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]

[Bug libstdc++/13913] [3.5 Regression] win32: compile error: __GTHREAD_MUTEX_INIT' was not declared in this scope


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-29 04:20 -------
Confirmed, the problem is here:
#ifdef __GTHREADS
  template<typename _Tp> typename __mt_alloc<_Tp>::thread_record*
  volatile __mt_alloc<_Tp>::_S_thread_freelist_first = NULL;

  template<typename _Tp> __gthread_mutex_t
  __mt_alloc<_Tp>::_S_thread_freelist_mutex = __GTHREAD_MUTEX_INIT;  <--- this line

  /*
   * Actual initialization in _S_init()
   */
  template<typename _Tp> __gthread_key_t
  __mt_alloc<_Tp>::_S_thread_key;
#endif

Looks like someone forgot that not every target defines __GTHREAD_MUTEX_INIT.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |build
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-29 04:20:48
               date|                            |
            Summary|win32: compile error:       |[3.5 Regression] win32:
                   |__GTHREAD_MUTEX_INIT' was   |compile error:
                   |not declared in this scope  |__GTHREAD_MUTEX_INIT' was
                   |                            |not declared in this scope
   Target Milestone|---                         |3.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13913


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