A STL patch for egcs 1.0.2

H.J. Lu hjl@lucon.org
Thu Feb 19 10:47:00 GMT 1998


> 
> >>>>> H J Lu <hjl@lucon.org> writes:
> 
> > Ulrich, this will make STL thread-safe for glibc 2 and at the same
> > time, the non-thread code should be ok. Can you take a look? libstdc++
> > in egcs 1.0.2 should be fixed for glibc 2.
> 
> I still think not enough people are writing threaded code to make this

It is kind of saying noone uses namespace with g++. Yes, they are
people using thread with glibc 2. Yes, some of them use C++. I don't
think making libstdc++ thread-unsafe is acceptable for glibc 2. BTW,
my change only affects glibc 2. The rest remains the same.

> necessary for 1.0.2.  Also, your patch changes more than necessary; there's
> no need to add #includes of stl_config.h.
> 

STL needs a way to find the system is based on glibc 2 so that
thread is enabled for glibc 2 automatically. Do you have any
suggestions?


-- 
H.J. Lu (hjl@gnu.org)



More information about the Gcc mailing list