This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Add missing instantiations to some testcases
- From: Paolo Carlini <pcarlini at suse dot de>
- To: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 04 Jul 2004 20:03:17 +0200
- Subject: [v3] Add missing instantiations to some testcases
Hi,
obvious, committed to mainline.
///////////////
2004-07-04 Paolo Carlini <pcarlini@suse.de>
* testsuite/25_algorithms/copy/1.cc: Add instantiations for
systems with no COMDAT or weak support.
* testsuite/25_algorithms/copy/2.cc: Likewise.
* testsuite/25_algorithms/copy/3.cc: Likewise.
* testsuite/25_algorithms/copy/4.cc: Likewise.
diff -urN libstdc++-v3-orig/testsuite/25_algorithms/copy/1.cc libstdc++-v3/testsuite/25_algorithms/copy/1.cc
--- libstdc++-v3-orig/testsuite/25_algorithms/copy/1.cc 2004-07-01 19:53:21.000000000 +0200
+++ libstdc++-v3/testsuite/25_algorithms/copy/1.cc 2004-07-04 12:29:40.000000000 +0200
@@ -56,6 +56,11 @@
VERIFY( equal(s2, s2 + N, A) );
}
+#if !__GXX_WEAK__ && _MT_ALLOCATOR_H
+// Explicitly instantiate for systems with no COMDAT or weak support.
+template class __gnu_cxx::__mt_alloc<int>;
+#endif
+
int
main()
{
diff -urN libstdc++-v3-orig/testsuite/25_algorithms/copy/2.cc libstdc++-v3/testsuite/25_algorithms/copy/2.cc
--- libstdc++-v3-orig/testsuite/25_algorithms/copy/2.cc 2004-07-01 19:53:21.000000000 +0200
+++ libstdc++-v3/testsuite/25_algorithms/copy/2.cc 2004-07-04 12:30:11.000000000 +0200
@@ -57,6 +57,11 @@
VERIFY( equal(s2, s2 + N, a.begin()) );
}
+#if !__GXX_WEAK__ && _MT_ALLOCATOR_H
+// Explicitly instantiate for systems with no COMDAT or weak support.
+template class __gnu_cxx::__mt_alloc<int>;
+#endif
+
int
main()
{
diff -urN libstdc++-v3-orig/testsuite/25_algorithms/copy/3.cc libstdc++-v3/testsuite/25_algorithms/copy/3.cc
--- libstdc++-v3-orig/testsuite/25_algorithms/copy/3.cc 2004-07-01 19:53:21.000000000 +0200
+++ libstdc++-v3/testsuite/25_algorithms/copy/3.cc 2004-07-04 12:30:58.000000000 +0200
@@ -58,6 +58,12 @@
VERIFY( equal(s2, s2 + N, a.begin()) );
}
+#if !__GXX_WEAK__ && _MT_ALLOCATOR_H
+// Explicitly instantiate for systems with no COMDAT or weak support.
+template class __gnu_cxx::__mt_alloc<int*>;
+template class __gnu_cxx::__mt_alloc<int>;
+#endif
+
int
main()
{
diff -urN libstdc++-v3-orig/testsuite/25_algorithms/copy/4.cc libstdc++-v3/testsuite/25_algorithms/copy/4.cc
--- libstdc++-v3-orig/testsuite/25_algorithms/copy/4.cc 2004-07-01 19:53:21.000000000 +0200
+++ libstdc++-v3/testsuite/25_algorithms/copy/4.cc 2004-07-04 12:32:07.000000000 +0200
@@ -58,6 +58,12 @@
VERIFY( equal(s2, s2 + N, a.begin()) );
}
+#if !__GXX_WEAK__ && _MT_ALLOCATOR_H
+// Explicitly instantiate for systems with no COMDAT or weak support.
+template class __gnu_cxx::__mt_alloc<std::_List_node<int> >;
+template class __gnu_cxx::__mt_alloc<int>;
+#endif
+
int
main()
{