A STL patch for egcs 1.0.2
Jason Merrill
jason@cygnus.com
Fri Feb 20 12:26:00 GMT 1998
>>>>> H J Lu <hjl@lucon.org> writes:
>> >> 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?
Because it is. Nobody will be including, say, ropeimpl.h directly, they'll
include <rope>, which gets stl_config.h before ropeimpl.h. How else would
the current thread #ifdefs work?
> 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?
I don't. Users can worry about it if they really want to. Anyway, you
don't have to define it the same both ways; that just means you get two
copies of the STL code.
Jason
More information about the Gcc
mailing list