A STL patch for egcs 1.0.2
H.J. Lu
hjl@lucon.org
Fri Feb 20 12:26:00 GMT 1998
> >> 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?
>
> I meant that stl_config.h will have been included already at the points
The problem is how you can be sure stl_config.h will be always included
in the user code since libstdc++ and the user code have to match?
> where you added the #includes, so they are no-ops. Here's a simplified
> patch, with a couple other changes that I suggested in our conversation
> with Matt:
>
> Wed Jan 14 16:15:05 1998 H.J. Lu (hjl@gnu.org)
>
> * ropeimpl.h: Check __STL_PTHREADS instead of _PTHREADS.
> * stl_alloc.h: Ditto.
> * stl_config.h: Ditto.
> * stl_rope.h: Ditto.
>
> * stl_config.h: include <_G_config.h> if __GNUC__ is defined.
> (__STL_PTHREADS): Defined if _PTHREADS is defined or
> __GLIBC__ >= 2 and _NOTHREADS is not defined.
I am not use if _NOTHREADS will work since you have to define it
both when libstdc++ is built and is used by the user code. How do
you make sure that?
H.J.
More information about the Gcc
mailing list