This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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.

Merry Xmas,
Andrey.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]