about tstring.cc fails on i*86-pc-linux-gnu

H.J. Lu hjl@lucon.org
Thu Jan 15 16:06:00 GMT 1998


> 
> Hi,
> 
> I just found why there is a regression with egcs-971215 on
> i*86-pc-linux-gnu configurations (somebody reported this but
> I don't remember any fixes) during compilation of tstring.cc
> in libstdc++ tests. Errors were because first parameter
> of __default_alloc_template<bool threads,int inst> depends
> whether defined _PTHREADS symbol. For an unknown matter
> libstdc++ modules in i*86-pc-linux-gnu configuration always
> compiled with -D_PTHREADS, so default allocator "alloc"
> in libstdc++ is treated as __default_alloc_template<true,0>,
> while during compilation of tstring.cc it is treated as
> __default_alloc_template<false,0>. This cause undefined
> symbols during link stage.
> 

My STL patch fixed this bug.


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



More information about the Gcc mailing list