This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3] break apart instantiations



Same symbols, different files.

tested x86/linux

2002-05-27  Benjamin Kosnik  <bkoz@redhat.com>

	* src/misc-inst.cc: Define unnecessary algorithm
	instantiations. Break apart instantiations into groupings below.
	* src/fstream-inst.cc: New.
	* src/io-inst.cc: New.	
	* src/istream-inst.cc: New.	
	* src/ostream-inst.cc: New.		
	* src/streambuf-inst.cc: New.	
	* src/sstream-inst.cc: New.		
	* src/Makefile.am (sources): Add files.
	* src/Makefile.in: Regenerate.

	* acinclude.m4: Work around automake 1.4-p5 bug, change
	AM_GNU_GETTEXT in comments to AM-GNU-GETTEXT.

Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/acinclude.m4,v
retrieving revision 1.206
diff -c -p -r1.206 acinclude.m4
*** acinclude.m4	16 May 2002 17:43:00 -0000	1.206
--- acinclude.m4	27 May 2002 14:42:50 -0000
*************** AC_DEFUN(GLIBCPP_ENABLE_CLOCALE, [
*** 1172,1186 ****
  
        # Declare intention to use gettext, and add support for specific
        # languages.
!       # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
        ALL_LINGUAS="de fr"
  
!       # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
        AC_CHECK_PROG(check_msgfmt, msgfmt, yes, no)
        if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
  	USE_NLS=yes
        fi
- 
        # Export the build objects.
        for ling in $ALL_LINGUAS; do \
          glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
--- 1172,1185 ----
  
        # Declare intention to use gettext, and add support for specific
        # languages.
!       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
        ALL_LINGUAS="de fr"
  
!       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
        AC_CHECK_PROG(check_msgfmt, msgfmt, yes, no)
        if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
  	USE_NLS=yes
        fi
        # Export the build objects.
        for ling in $ALL_LINGUAS; do \
          glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
Index: src/Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/src/Makefile.am,v
retrieving revision 1.105
diff -c -p -r1.105 Makefile.am
*** src/Makefile.am	19 Mar 2002 19:50:28 -0000	1.105
--- src/Makefile.am	27 May 2002 14:42:50 -0000
*************** sources = \
*** 68,74 ****
  	c++locale.cc locale.cc localename.cc codecvt.cc \
  	collate.cc ctype.cc messages.cc monetary.cc numeric.cc time.cc \
  	concept-inst.cc locale-inst.cc misc-inst.cc stl-inst.cc \
! 	string-inst.cc wstring-inst.cc valarray-inst.cc  ext-inst.cc
  
  VPATH = $(top_srcdir)/src:$(top_srcdir)
  
--- 68,76 ----
  	c++locale.cc locale.cc localename.cc codecvt.cc \
  	collate.cc ctype.cc messages.cc monetary.cc numeric.cc time.cc \
  	concept-inst.cc locale-inst.cc misc-inst.cc stl-inst.cc \
! 	string-inst.cc wstring-inst.cc valarray-inst.cc  ext-inst.cc \
! 	fstream-inst.cc io-inst.cc istream-inst.cc ostream-inst.cc \
! 	streambuf-inst.cc sstream-inst.cc
  
  VPATH = $(top_srcdir)/src:$(top_srcdir)
  
Index: src/ext-inst.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/src/ext-inst.cc,v
retrieving revision 1.2
diff -c -p -r1.2 ext-inst.cc
*** src/ext-inst.cc	31 Dec 2001 10:22:00 -0000	1.2
--- src/ext-inst.cc	27 May 2002 14:42:51 -0000
***************
*** 1,6 ****
  // Explicit instantiation file.
  
! // Copyright (C) 2001 Free Software Foundation, Inc.
  //
  // This file is part of the GNU ISO C++ Library.  This library is free
  // software; you can redistribute it and/or modify it under the
--- 1,6 ----
  // Explicit instantiation file.
  
! // Copyright (C) 2001, 2002 Free Software Foundation, Inc.
  //
  // This file is part of the GNU ISO C++ Library.  This library is free
  // software; you can redistribute it and/or modify it under the
***************
*** 32,40 ****
  //
  
  #include <ext/rope>
  
  namespace std
  {
    template
!   const unsigned long __gnu_cxx::rope<char, std::allocator<char> >::_S_min_len;
  } // namespace std
--- 32,48 ----
  //
  
  #include <ext/rope>
+ #include <ext/stdio_filebuf.h>
  
  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
Index: src/fstream-inst.cc
===================================================================
RCS file: src/fstream-inst.cc
diff -N src/fstream-inst.cc
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- src/fstream-inst.cc	27 May 2002 14:42:51 -0000
***************
*** 0 ****
--- 1,62 ----
+ // Explicit instantiation file.
+ 
+ // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
+ // Free Software Foundation, Inc.
+ //
+ // This file is part of the GNU ISO C++ Library.  This library is free
+ // software; you can redistribute it and/or modify it under the
+ // terms of the GNU General Public License as published by the
+ // Free Software Foundation; either version 2, or (at your option)
+ // any later version.
+ 
+ // This library is distributed in the hope that it will be useful,
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ // GNU General Public License for more details.
+ 
+ // You should have received a copy of the GNU General Public License along
+ // with this library; see the file COPYING.  If not, write to the Free
+ // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ // USA.
+ 
+ // As a special exception, you may use this file as part of a free software
+ // library without restriction.  Specifically, if other files instantiate
+ // templates or use macros or inline functions from this file, or you compile
+ // this file and link it with other files to produce an executable, this
+ // file does not by itself cause the resulting executable to be covered by
+ // the GNU General Public License.  This exception does not however
+ // invalidate any other reasons why the executable file might be covered by
+ // the GNU General Public License.
+ 
+ //
+ // ISO C++ 14882:
+ //
+ 
+ #include <fstream>
+ 
+ namespace std
+ {
+   // filebuf
+   template class basic_filebuf<char, char_traits<char> >;
+ #ifdef _GLIBCPP_USE_WCHAR_T
+   template class basic_filebuf<wchar_t, char_traits<wchar_t> >;
+ #endif
+ 
+   // ifstream
+   template class basic_ifstream<char>;
+ #ifdef _GLIBCPP_USE_WCHAR_T
+   template class basic_ifstream<wchar_t>;
+ #endif
+ 
+   // ofstream
+   template class basic_ofstream<char>;
+ #ifdef _GLIBCPP_USE_WCHAR_T
+   template class basic_ofstream<wchar_t>;
+ #endif
+ 
+   // fstream
+   template class basic_fstream<char>;
+ #ifdef _GLIBCPP_USE_WCHAR_T
+   template class basic_fstream<wchar_t>;
+ #endif
+ } //std
Index: src/io-inst.cc
===================================================================
RCS file: src/io-inst.cc
diff -N src/io-inst.cc
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- src/io-inst.cc	27 May 2002 14:42:51 -0000
***************
*** 0 ****
--- 1,60 ----
+ // Explicit instantiation file.
+ 
+ // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
+ // Free Software Foundation, Inc.
+ //
+ // This file is part of the GNU ISO C++ Library.  This library is free
+ // software; you can redistribute it and/or modify it under the
+ // terms of the GNU General Public License as published by the
+ // Free Software Foundation; either version 2, or (at your option)
+ // any later version.
+ 
+ // This library is distributed in the hope that it will be useful,
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ // GNU General Public License for more details.
+ 
+ // You should have received a copy of the GNU General Public License along
+ // with this library; see the file COPYING.  If not, write to the Free
+ // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ // USA.
+ 
+ // As a special exception, you may use this file as part of a free software
+ // library without restriction.  Specifically, if other files instantiate
+ // templates or use macros or inline functions from this file, or you compile
+ // this file and link it with other files to produce an executable, this
+ // file does not by itself cause the resulting executable to be covered by
+ // the GNU General Public License.  This exception does not however
+ // invalidate any other reasons why the executable file might be covered by
+ // the GNU General Public License.
+ 
+ //
+ // ISO C++ 14882:
+ //
+ 
+ #include <ios>
+ #include <iomanip>
+ #include <iostream>
+ 
+ namespace std
+ {
+   // basic_ios
+   template class basic_ios<char>;
+ #ifdef _GLIBCPP_USE_WCHAR_T
+   template class basic_ios<wchar_t>;
+ #endif
+ 
+   // iomanip
+   template class _Setfill<char>;
+   template _Setfill<char> setfill(char);
+ #ifdef _GLIBCPP_USE_WCHAR_T
+   template class _Setfill<wchar_t>;
+   template _Setfill<wchar_t> setfill(wchar_t);
+ #endif
+ 
+   // iostream
+   template class basic_iostream<char>;
+ #ifdef _GLIBCPP_USE_WCHAR_T
+   template class basic_iostream<wchar_t>; 
+ #endif
+ } //std
Index: src/istream-inst.cc
===================================================================
RCS file: src/istream-inst.cc
diff -N src/istream-inst.cc
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- src/istream-inst.cc	27 May 2002 14:42:51 -0000
***************
*** 0 ****
--- 1,70 ----
+ // Explicit instantiation file.
+ 
+ // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
+ // Free Software Foundation, Inc.
+ //
+ // This file is part of the GNU ISO C++ Library.  This library is free
+ // software; you can redistribute it and/or modify it under the
+ // terms of the GNU General Public License as published by the
+ // Free Software Foundation; either version 2, or (at your option)
+ // any later version.
+ 
+ // This library is distributed in the hope that it will be useful,
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ // GNU General Public License for more details.
+ 
+ // You should have received a copy of the GNU General Public License along
+ // with this library; see the file COPYING.  If not, write to the Free
+ // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ // USA.
+ 
+ // As a special exception, you may use this file as part of a free software
+ // library without restriction.  Specifically, if other files instantiate
+ // templates or use macros or inline functions from this file, or you compile
+ // this file and link it with other files to produce an executable, this
+ // file does not by itself cause the resulting executable to be covered by
+ // the GNU General Public License.  This exception does not however
+ // invalidate any other reasons why the executable file might be covered by
+ // the GNU General Public License.
+ 
+ //
+ // ISO C++ 14882:
+ //
+ 
+ #include <istream>
+ #include <iomanip>
+ 
+ namespace std
+ {
+   // istream
+   template class basic_istream<char>;
+   template istream& ws(istream&);
+   template istream& operator>>(istream&, char&);
+   template istream& operator>>(istream&, unsigned char&);
+   template istream& operator>>(istream&, signed char&);
+   template istream& operator>>(istream&, char*);
+   template istream& operator>>(istream&, unsigned char*);
+   template istream& operator>>(istream&, signed char*);
+ 
+   template istream& operator>>(istream&, _Setfill<char>);
+   template istream& operator>>(istream&, _Setiosflags);
+   template istream& operator>>(istream&, _Resetiosflags);
+   template istream& operator>>(istream&, _Setbase);
+   template istream& operator>>(istream&, _Setprecision);
+   template istream& operator>>(istream&, _Setw);
+ 
+ #ifdef _GLIBCPP_USE_WCHAR_T
+   template class basic_istream<wchar_t>;
+   template wistream& ws(wistream&);
+   template wistream& operator>>(wistream&, wchar_t&);
+   template wistream& operator>>(wistream&, wchar_t*);
+ 
+   template wistream& operator>>(wistream&, _Setfill<wchar_t>);
+   template wistream& operator>>(wistream&, _Setiosflags);
+   template wistream& operator>>(wistream&, _Resetiosflags);
+   template wistream& operator>>(wistream&, _Setbase);
+   template wistream& operator>>(wistream&, _Setprecision);
+   template wistream& operator>>(wistream&, _Setw);
+ #endif
+ } //std
Index: src/misc-inst.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/src/misc-inst.cc,v
retrieving revision 1.16
diff -c -p -r1.16 misc-inst.cc
*** src/misc-inst.cc	30 Apr 2002 19:04:41 -0000	1.16
--- src/misc-inst.cc	27 May 2002 14:42:51 -0000
***************
*** 33,205 ****
  //
  
  #include <string>
- #include <algorithm>
- #include <locale>
- #include <vector>
- #include <iterator>
- #include <streambuf>
- #include <sstream>
- #include <fstream>
- #include <ios>
  #include <istream>
  #include <ostream>
! #include <iomanip>
! #include <ext/stdio_filebuf.h>
! 
! // NB: Unnecessary if the .h headers already include these.
! #ifndef  _GLIBCPP_FULLY_COMPLIANT_HEADERS
! #include <bits/sstream.tcc>
! #include <bits/fstream.tcc>
! #include <bits/streambuf.tcc>
! #include <bits/istream.tcc>
! #include <bits/ostream.tcc>
! #endif
  
  namespace std
  {
-   // streambuf
-   template class basic_streambuf<char>;
- #ifdef _GLIBCPP_USE_WCHAR_T
-   template class basic_streambuf<wchar_t>;
- #endif
- 
-   // stringbuf
-   template class basic_stringbuf<char>;
- #ifdef _GLIBCPP_USE_WCHAR_T
-   template class basic_stringbuf<wchar_t>;
- #endif
- 
-   // filebuf
-   template class basic_filebuf<char, char_traits<char> >;
- #ifdef _GLIBCPP_USE_WCHAR_T
-   template class basic_filebuf<wchar_t, char_traits<wchar_t> >;
- #endif
- 
-   // basic_ios
-   template class basic_ios<char>;
- #ifdef _GLIBCPP_USE_WCHAR_T
-   template class basic_ios<wchar_t>;
- #endif
- 
-   // iomanip
-   template class _Setfill<char>;
-   template _Setfill<char> setfill(char);
- #ifdef _GLIBCPP_USE_WCHAR_T
-   template class _Setfill<wchar_t>;
-   template _Setfill<wchar_t> setfill(wchar_t);
- #endif
- 
-   // istream
-   template class basic_istream<char>;
-   template istream& ws(istream&);
-   template istream& operator>>(istream&, char&);
-   template istream& operator>>(istream&, unsigned char&);
-   template istream& operator>>(istream&, signed char&);
-   template istream& operator>>(istream&, char*);
-   template istream& operator>>(istream&, unsigned char*);
-   template istream& operator>>(istream&, signed char*);
- 
-   template istream& operator>>(istream&, _Setfill<char>);
-   template istream& operator>>(istream&, _Setiosflags);
-   template istream& operator>>(istream&, _Resetiosflags);
-   template istream& operator>>(istream&, _Setbase);
-   template istream& operator>>(istream&, _Setprecision);
-   template istream& operator>>(istream&, _Setw);
- 
- #ifdef _GLIBCPP_USE_WCHAR_T
-   template class basic_istream<wchar_t>;
-   template wistream& ws(wistream&);
-   template wistream& operator>>(wistream&, wchar_t&);
-   template wistream& operator>>(wistream&, wchar_t*);
- 
-   template wistream& operator>>(wistream&, _Setfill<wchar_t>);
-   template wistream& operator>>(wistream&, _Setiosflags);
-   template wistream& operator>>(wistream&, _Resetiosflags);
-   template wistream& operator>>(wistream&, _Setbase);
-   template wistream& operator>>(wistream&, _Setprecision);
-   template wistream& operator>>(wistream&, _Setw);
- #endif
- 
-   // ostream
-   template class basic_ostream<char>;
-   template ostream& endl(ostream&);
-   template ostream& ends(ostream&);
-   template ostream& flush(ostream&);
-   template ostream& operator<<(ostream&, char);
-   template ostream& operator<<(ostream&, unsigned char);
-   template ostream& operator<<(ostream&, signed char);
-   template ostream& operator<<(ostream&, const char*);
-   template ostream& operator<<(ostream&, const unsigned char*);
-   template ostream& operator<<(ostream&, const signed char*);
- 
-   template ostream& operator<<(ostream&, _Setfill<char>);
-   template ostream& operator<<(ostream&, _Setiosflags);
-   template ostream& operator<<(ostream&, _Resetiosflags);
-   template ostream& operator<<(ostream&, _Setbase);
-   template ostream& operator<<(ostream&, _Setprecision);
-   template ostream& operator<<(ostream&, _Setw);
- 
- #ifdef _GLIBCPP_USE_WCHAR_T
-   template class basic_ostream<wchar_t>;
-   template wostream& endl(wostream&);
-   template wostream& ends(wostream&);
-   template wostream& flush(wostream&);
-   template wostream& operator<<(wostream&, wchar_t);
-   template wostream& operator<<(wostream&, char);
-   template wostream& operator<<(wostream&, const wchar_t*);
-   template wostream& operator<<(wostream&, const char*);
- 
-   template wostream& operator<<(wostream&, _Setfill<wchar_t>);
-   template wostream& operator<<(wostream&, _Setiosflags);
-   template wostream& operator<<(wostream&, _Resetiosflags);
-   template wostream& operator<<(wostream&, _Setbase);
-   template wostream& operator<<(wostream&, _Setprecision);
-   template wostream& operator<<(wostream&, _Setw);
- #endif
-   
- 
-   // iostream
-   template class basic_iostream<char>;
- #ifdef _GLIBCPP_USE_WCHAR_T
-   template class basic_iostream<wchar_t>; 
- #endif
- 
-   // ifstream
-   template class basic_ifstream<char>;
- #ifdef _GLIBCPP_USE_WCHAR_T
-   template class basic_ifstream<wchar_t>;
- #endif
- 
-   // ofstream
-   template class basic_ofstream<char>;
- #ifdef _GLIBCPP_USE_WCHAR_T
-   template class basic_ofstream<wchar_t>;
- #endif
- 
-   // fstream
-   template class basic_fstream<char>;
- #ifdef _GLIBCPP_USE_WCHAR_T
-   template class basic_fstream<wchar_t>;
- #endif
- 
-   // istringstream
-   template class basic_istringstream<char>;
- #ifdef _GLIBCPP_USE_WCHAR_T
-   template class basic_istringstream<wchar_t>; 
- #endif
- 
-   // ostringstream
-   template class basic_ostringstream<char>;
- #ifdef _GLIBCPP_USE_WCHAR_T
-   template class basic_ostringstream<wchar_t>; 
- #endif
- 
-   // stringstream
-   template class basic_stringstream<char>;
- #ifdef _GLIBCPP_USE_WCHAR_T
-   template class basic_stringstream<wchar_t>; 
- #endif
- 
    // string related to iostreams
    template 
      basic_istream<char>& 
--- 33,45 ----
  //
  
  #include <string>
  #include <istream>
  #include <ostream>
! #include <algorithm>
! #include <vector>
  
  namespace std
  {
    // string related to iostreams
    template 
      basic_istream<char>& 
*************** namespace std
*** 228,233 ****
--- 68,77 ----
      getline(basic_istream<wchar_t>&, wstring&);
  #endif
  
+ #if 1
+   // XXX
+   // 2002-05-24 These are no longer needed and should be deleted.
+ 
    // algorithm
    typedef  _Char_traits_match<char, char_traits<char> > char_match;
  
*************** namespace std
*** 254,274 ****
      __uninitialized_copy_aux<vector<string>::const_iterator, string *>
      (vector<string>::const_iterator, vector<string>::const_iterator, 
       string*, __false_type);
- 
-   template
-     streamsize
-     __copy_streambufs(basic_ios<char>&, basic_streambuf<char>*,
- 		      basic_streambuf<char>*); 
- #ifdef _GLIBCPP_USE_WCHAR_T
-   template
-     streamsize
-     __copy_streambufs(basic_ios<wchar_t>&, basic_streambuf<wchar_t>*,
- 		      basic_streambuf<wchar_t>*); 
- #endif
-   
-   using __gnu_cxx::stdio_filebuf;
-   template class stdio_filebuf<char>;
- #ifdef _GLIBCPP_USE_WCHAR_T
-   template class stdio_filebuf<wchar_t>;
  #endif
  } //std
--- 98,102 ----
Index: src/ostream-inst.cc
===================================================================
RCS file: src/ostream-inst.cc
diff -N src/ostream-inst.cc
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- src/ostream-inst.cc	27 May 2002 14:42:51 -0000
***************
*** 0 ****
--- 1,76 ----
+ // Explicit instantiation file.
+ 
+ // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
+ // Free Software Foundation, Inc.
+ //
+ // This file is part of the GNU ISO C++ Library.  This library is free
+ // software; you can redistribute it and/or modify it under the
+ // terms of the GNU General Public License as published by the
+ // Free Software Foundation; either version 2, or (at your option)
+ // any later version.
+ 
+ // This library is distributed in the hope that it will be useful,
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ // GNU General Public License for more details.
+ 
+ // You should have received a copy of the GNU General Public License along
+ // with this library; see the file COPYING.  If not, write to the Free
+ // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ // USA.
+ 
+ // As a special exception, you may use this file as part of a free software
+ // library without restriction.  Specifically, if other files instantiate
+ // templates or use macros or inline functions from this file, or you compile
+ // this file and link it with other files to produce an executable, this
+ // file does not by itself cause the resulting executable to be covered by
+ // the GNU General Public License.  This exception does not however
+ // invalidate any other reasons why the executable file might be covered by
+ // the GNU General Public License.
+ 
+ //
+ // ISO C++ 14882:
+ //
+ 
+ #include <ostream>
+ #include <iomanip>
+ 
+ namespace std
+ {
+   // ostream
+   template class basic_ostream<char>;
+   template ostream& endl(ostream&);
+   template ostream& ends(ostream&);
+   template ostream& flush(ostream&);
+   template ostream& operator<<(ostream&, char);
+   template ostream& operator<<(ostream&, unsigned char);
+   template ostream& operator<<(ostream&, signed char);
+   template ostream& operator<<(ostream&, const char*);
+   template ostream& operator<<(ostream&, const unsigned char*);
+   template ostream& operator<<(ostream&, const signed char*);
+ 
+   template ostream& operator<<(ostream&, _Setfill<char>);
+   template ostream& operator<<(ostream&, _Setiosflags);
+   template ostream& operator<<(ostream&, _Resetiosflags);
+   template ostream& operator<<(ostream&, _Setbase);
+   template ostream& operator<<(ostream&, _Setprecision);
+   template ostream& operator<<(ostream&, _Setw);
+ 
+ #ifdef _GLIBCPP_USE_WCHAR_T
+   template class basic_ostream<wchar_t>;
+   template wostream& endl(wostream&);
+   template wostream& ends(wostream&);
+   template wostream& flush(wostream&);
+   template wostream& operator<<(wostream&, wchar_t);
+   template wostream& operator<<(wostream&, char);
+   template wostream& operator<<(wostream&, const wchar_t*);
+   template wostream& operator<<(wostream&, const char*);
+ 
+   template wostream& operator<<(wostream&, _Setfill<wchar_t>);
+   template wostream& operator<<(wostream&, _Setiosflags);
+   template wostream& operator<<(wostream&, _Resetiosflags);
+   template wostream& operator<<(wostream&, _Setbase);
+   template wostream& operator<<(wostream&, _Setprecision);
+   template wostream& operator<<(wostream&, _Setw);
+ #endif
+ } //std
Index: src/sstream-inst.cc
===================================================================
RCS file: src/sstream-inst.cc
diff -N src/sstream-inst.cc
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- src/sstream-inst.cc	27 May 2002 14:42:51 -0000
***************
*** 0 ****
--- 1,62 ----
+ // Explicit instantiation file.
+ 
+ // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
+ // Free Software Foundation, Inc.
+ //
+ // This file is part of the GNU ISO C++ Library.  This library is free
+ // software; you can redistribute it and/or modify it under the
+ // terms of the GNU General Public License as published by the
+ // Free Software Foundation; either version 2, or (at your option)
+ // any later version.
+ 
+ // This library is distributed in the hope that it will be useful,
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ // GNU General Public License for more details.
+ 
+ // You should have received a copy of the GNU General Public License along
+ // with this library; see the file COPYING.  If not, write to the Free
+ // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ // USA.
+ 
+ // As a special exception, you may use this file as part of a free software
+ // library without restriction.  Specifically, if other files instantiate
+ // templates or use macros or inline functions from this file, or you compile
+ // this file and link it with other files to produce an executable, this
+ // file does not by itself cause the resulting executable to be covered by
+ // the GNU General Public License.  This exception does not however
+ // invalidate any other reasons why the executable file might be covered by
+ // the GNU General Public License.
+ 
+ //
+ // ISO C++ 14882:
+ //
+ 
+ #include <sstream>
+ 
+ namespace std
+ {
+   // stringbuf
+   template class basic_stringbuf<char>;
+ #ifdef _GLIBCPP_USE_WCHAR_T
+   template class basic_stringbuf<wchar_t>;
+ #endif
+ 
+   // istringstream
+   template class basic_istringstream<char>;
+ #ifdef _GLIBCPP_USE_WCHAR_T
+   template class basic_istringstream<wchar_t>; 
+ #endif
+ 
+   // ostringstream
+   template class basic_ostringstream<char>;
+ #ifdef _GLIBCPP_USE_WCHAR_T
+   template class basic_ostringstream<wchar_t>; 
+ #endif
+ 
+   // stringstream
+   template class basic_stringstream<char>;
+ #ifdef _GLIBCPP_USE_WCHAR_T
+   template class basic_stringstream<wchar_t>; 
+ #endif
+ } //std
Index: src/streambuf-inst.cc
===================================================================
RCS file: src/streambuf-inst.cc
diff -N src/streambuf-inst.cc
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- src/streambuf-inst.cc	27 May 2002 14:42:51 -0000
***************
*** 0 ****
--- 1,56 ----
+ // Explicit instantiation file.
+ 
+ // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
+ // Free Software Foundation, Inc.
+ //
+ // This file is part of the GNU ISO C++ Library.  This library is free
+ // software; you can redistribute it and/or modify it under the
+ // terms of the GNU General Public License as published by the
+ // Free Software Foundation; either version 2, or (at your option)
+ // any later version.
+ 
+ // This library is distributed in the hope that it will be useful,
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ // GNU General Public License for more details.
+ 
+ // You should have received a copy of the GNU General Public License along
+ // with this library; see the file COPYING.  If not, write to the Free
+ // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ // USA.
+ 
+ // As a special exception, you may use this file as part of a free software
+ // library without restriction.  Specifically, if other files instantiate
+ // templates or use macros or inline functions from this file, or you compile
+ // this file and link it with other files to produce an executable, this
+ // file does not by itself cause the resulting executable to be covered by
+ // the GNU General Public License.  This exception does not however
+ // invalidate any other reasons why the executable file might be covered by
+ // the GNU General Public License.
+ 
+ //
+ // ISO C++ 14882:
+ //
+ 
+ #include <ios>
+ #include <streambuf>
+ 
+ namespace std
+ {
+   // streambuf
+   template class basic_streambuf<char>;
+ #ifdef _GLIBCPP_USE_WCHAR_T
+   template class basic_streambuf<wchar_t>;
+ #endif
+ 
+   template
+     streamsize
+     __copy_streambufs(basic_ios<char>&, basic_streambuf<char>*,
+ 		      basic_streambuf<char>*); 
+ #ifdef _GLIBCPP_USE_WCHAR_T
+   template
+     streamsize
+     __copy_streambufs(basic_ios<wchar_t>&, basic_streambuf<wchar_t>*,
+ 		      basic_streambuf<wchar_t>*); 
+ #endif
+ } //std


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]