Compiling gcc with -Werror=implicit-function-declaration (needed as
warnings for implicit declaration are causing mis-configuration) shows
that vxlib-tls.c still references __gthread*tsd*, but the only remaining
declarations are to __gthread*tls*. I added a conditional declaration
of the __gthread*tsd* functions, and also noticed that one of the calls
to __gthread_tsd_leave_dtor_context doesn't pass tcb.
Also, it says that these functions are provided by the kernel, but I
haven't been able to find any documentation to confirm this. Can
someone confirm that these are in fact provided by the kernel?
I'm citing http://gcc.gnu.org/ml/gcc-patches/2005-08/msg01314.html for
the old prototypes.
The attached patch adds both the conditional declarations (on __RTP__)
and the minor change to the function call.
Robert Mason