[basic-improvements] bootstrap failure on x86

Zack Weinberg zack@codesourcery.com
Thu Oct 31 11:41:00 GMT 2002


On Thu, Oct 31, 2002 at 07:06:28AM -0500, Diego Novillo wrote:
> /home/dnovillo/perf/sbox/bib/local/src/libstdc++-v3/libsupc++/eh_globals.cc:50: error: `
>    __gthread_key_dtor' undeclared (first use this function)
> /home/dnovillo/perf/sbox/bib/local/src/libstdc++-v3/libsupc++/eh_globals.cc:50: error: (Each
>    undeclared identifier is reported only once for each function it appears 
>    in.)

Mea culpa.  First I trusted cscope to have found all uses of
__gthread_key_dtor (when it didn't even look at *.cc files) and then I
didn't bother building libstdc++.

I've committed this patch to resolve the bug.

zw

	* libsupc++/eh_globals.cc: Don't call __gthread_key_dtor.

===================================================================
Index: libsupc++/eh_globals.cc
--- libsupc++/eh_globals.cc	8 Jun 2001 03:55:43 -0000	1.2
+++ libsupc++/eh_globals.cc	31 Oct 2002 19:14:05 -0000
@@ -47,7 +47,6 @@ static int use_thread_key = -1;
 static void
 get_globals_dtor (void *ptr)
 {
-  __gthread_key_dtor (globals_key, ptr);
   if (ptr)
     std::free (ptr);
 }



More information about the Gcc-patches mailing list