This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++ related boostrap failure
- From: Phil Edwards <phil at jaj dot com>
- To: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Cc: Benjamin Kosnik <bkoz at redhat dot com>, rittle at latour dot rsch dot comm dot mot dot com, libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 20 Feb 2003 11:47:31 -0500
- Subject: Re: libstdc++ related boostrap failure
- References: <Pine.BSF.4.51.0302131144330.83957@naos.dbai.tuwien.ac.at> <200302140317.h1E3H4eH030020@latour.rsch.comm.mot.com> <20030214171730.GA25989@disaster.jaj.com> <20030219231345.GA30170@disaster.jaj.com> <20030219175051.2f5d6f96.bkoz@redhat.com> <Pine.BSF.4.51.0302200138590.47568@acrux.dbai.tuwien.ac.at> <20030220004612.GA31785@disaster.jaj.com>
> > >>The choice is either
> > >>
> > >> A) export _Atomic_add_mutex from the library, like Loren's patch did, or
> > > I too think 'A' is the best option.
> > >
> > Phil, Loren, is one of you going to commit such a patch?
>
> I plan on committing Loren's patch plus some explanatory comments.
Like so. Once somebody confirms that FreeBSD can build&test with this
patch, I can go back and commit the original genric atomicity.h patch,
as well as this one, to the 3.3 branch.
2003-02-20 Phil Edwards <pme at gcc dot gnu dot org>
* config/linker-map.gnu: Also export locking symbols needed for the
generic atomicity.h case.
Index: config/linker-map.gnu
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/config/linker-map.gnu,v
retrieving revision 1.30
diff -u -3 -p -r1.30 linker-map.gnu
--- config/linker-map.gnu 3 Feb 2003 19:37:53 -0000 1.30
+++ config/linker-map.gnu 20 Feb 2003 16:45:10 -0000
@@ -62,7 +62,12 @@ GLIBCPP_3.4 {
std::__basic_file*;
std::__num_base*;
std::__timepunct*;
- std::__numeric_limits_base*
+ std::__numeric_limits_base*;
+
+ # Needed only when generic cpu's atomicity.h is in use.
+ __gnu_cxx::_Atomic_add_mutex;
+ __gnu_cxx::_Atomic_add_mutex_once;
+ __gnu_cxx::__gthread_atomic_add_mutex_once
};
# Names not in an 'extern' block are mangled names.