This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/8731: thread mutex initializers
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, georg dot wild at gmx dot de, nobody at gcc dot gnu dot org
- Date: 27 Nov 2002 14:56:31 -0000
- Subject: Re: libstdc++/8731: thread mutex initializers
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, georg dot wild at gmx dot de, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Old Synopsis: STL problems
New Synopsis: thread mutex initializers
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Nov 27 06:56:28 2002
State-Changed-Why:
Confirmed. The problem comes from code like this, buried deep
inside libstdc++:
--------------------
struct pthread_mutex_st {
void * res0;
int res1;
int res2;
int res3;
int res4;
int res5;
};
struct pthread_mutexattr_st;
//...
typedef pthread_mutex_t __gthread_mutex_t;
//...
__gthread_mutex_t __tmp = {0, 0, 0, PTHREAD_MUTEX_TIMED_NP, { 0, 0 }};
-----------------------
This happens in bits/stl_threads.h:74, so I better
reclassify it for libstdc++.
Georg, in this case it would be interesting to have
the original, unpreprocessed code, to see whether it
works with newer and/or older versions of gcc. Can you
provide a stripped down version of it?
Thanks
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8731