This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [basic-improvements] bootstrap failure on x86
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Diego Novillo <dnovillo at redhat dot com>
- Cc: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 31 Oct 2002 11:41:10 -0800
- Subject: Re: [basic-improvements] bootstrap failure on x86
- References: <20021031120628.GA7096@tornado.toronto.redhat.com>
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);
}