This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
libstdc++ patch
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Thu, 20 Jun 2002 08:09:50 -0700 (PDT)
- Subject: libstdc++ patch
- Reply-to: sje at cup dot hp dot com
This patch fixes a couple of "Unsatisfied symbol" messages from the very
picky HP-UX IA64 linker when linking against a shared libstdc++.
Theoretically, I have write access to the GCC tree now, so if someone
approves this patch I can check it in myself.
Steve Ellcey
sje@cup.hp.com
2002-06-20 Steve Ellcey <sje@cup.hp.com>
* src/ext-inst.cc (_S_fetch): Add explicit templates for char and
wchar types.
(_S_min_len): Ditto.
*** gcc.orig/libstdc++-v3/src/ext-inst.cc Wed Jun 19 13:55:25 2002
--- gcc/libstdc++-v3/src/ext-inst.cc Wed Jun 19 16:17:05 2002
***************
*** 36,48 ****
namespace std
{
template
const unsigned long
__gnu_cxx::rope<char, std::allocator<char> >::_S_min_len;
! using __gnu_cxx::stdio_filebuf;
template class stdio_filebuf<char>;
#ifdef _GLIBCPP_USE_WCHAR_T
template class stdio_filebuf<wchar_t>;
#endif
} // namespace std
--- 36,67 ----
namespace std
{
+ using __gnu_cxx::stdio_filebuf;
+
template
const unsigned long
__gnu_cxx::rope<char, std::allocator<char> >::_S_min_len;
! template
! char
! __gnu_cxx::rope<char, std::allocator<char> >::
! _S_fetch(__gnu_cxx::_Rope_RopeRep<char, std::allocator<char> >*,
! unsigned long);
!
template class stdio_filebuf<char>;
+
#ifdef _GLIBCPP_USE_WCHAR_T
+ template
+ const unsigned long
+ __gnu_cxx::rope<wchar_t, std::allocator<wchar_t> >::_S_min_len;
+
+ template
+ wchar_t
+ __gnu_cxx::rope<wchar_t, std::allocator<wchar_t> >::
+ _S_fetch(__gnu_cxx::_Rope_RopeRep<wchar_t, std::allocator<wchar_t> >*,
+ unsigned long);
+
template class stdio_filebuf<wchar_t>;
#endif
+
} // namespace std