summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-21 04:21:51 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-21 04:21:51 +0000
commit343d55670cd30172c8dc77e8de0feaebf0008f26 (patch)
treefe0eb4f936e5ca763e147a1068b27c8c72c5b030
parent149f0db43021255913d35cc7e070328858f7d58e (diff)
downloadppe42-gcc-343d55670cd30172c8dc77e8de0feaebf0008f26.tar.gz
ppe42-gcc-343d55670cd30172c8dc77e8de0feaebf0008f26.zip
* testsuite/ext/bitmap_allocator/check_allocate_max_size.cpp: Add
explicit instantiations for systems without weak symbols. * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98486 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libstdc++-v3/ChangeLog7
-rw-r--r--libstdc++-v3/testsuite/ext/bitmap_allocator/check_allocate_max_size.cc8
-rw-r--r--libstdc++-v3/testsuite/ext/bitmap_allocator/check_deallocate_null.cc10
3 files changed, 23 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 9bd78ced94f..0853f494182 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,10 @@
+2005-04-20 Mark Mitchell <mark@codesourcery.com>
+
+ * testsuite/ext/bitmap_allocator/check_allocate_max_size.cpp: Add
+ explicit instantiations for systems without weak symbols.
+ * testsuite/ext/bitmap_allocator/check_deallocate_null.cc:
+ Likewise.
+
2005-04-18 Jonathan Wakely <redi@gcc.gnu.org>
* include/bits/stl_algo.h (rotate_copy): Add missing std qualification.
diff --git a/libstdc++-v3/testsuite/ext/bitmap_allocator/check_allocate_max_size.cc b/libstdc++-v3/testsuite/ext/bitmap_allocator/check_allocate_max_size.cc
index 442b91db209..37843756bc1 100644
--- a/libstdc++-v3/testsuite/ext/bitmap_allocator/check_allocate_max_size.cc
+++ b/libstdc++-v3/testsuite/ext/bitmap_allocator/check_allocate_max_size.cc
@@ -22,10 +22,16 @@
#include <ext/bitmap_allocator.h>
#include <testsuite_allocator.h>
+typedef int value_type;
+
int main()
{
- typedef int value_type;
typedef __gnu_cxx::bitmap_allocator<value_type> allocator_type;
__gnu_test::check_allocate_max_size<allocator_type>();
return 0;
}
+
+#if !__GXX_WEAK
+// Explicitly instantiatiate for systems without weak symbols.
+template class __gnu_cxx::bitmap_allocator<value_type>;
+#endif
diff --git a/libstdc++-v3/testsuite/ext/bitmap_allocator/check_deallocate_null.cc b/libstdc++-v3/testsuite/ext/bitmap_allocator/check_deallocate_null.cc
index ebe8114793b..9d7ae98dce0 100644
--- a/libstdc++-v3/testsuite/ext/bitmap_allocator/check_deallocate_null.cc
+++ b/libstdc++-v3/testsuite/ext/bitmap_allocator/check_deallocate_null.cc
@@ -22,10 +22,18 @@
#include <ext/bitmap_allocator.h>
#include <testsuite_allocator.h>
+typedef int value_type;
+
int main()
{
- typedef int value_type;
typedef __gnu_cxx::bitmap_allocator<value_type> allocator_type;
__gnu_test::check_deallocate_null<allocator_type>();
return 0;
}
+
+#if !__GXX_WEAK
+// Explicitly instantiatiate for systems without weak symbols.
+template class __gnu_cxx::bitmap_allocator<value_type>;
+#endif
+
+
OpenPOWER on IntegriCloud