summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/testsuite/ext/array_allocator
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright years in libstdc++-v3/rsandifo2014-01-029-9/+9
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206301 138bc75d-0d04-0410-961f-82ee72b054a4
* Update copyright in libstdc++-v3.rsandifo2013-02-039-9/+9
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195701 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>bkoz2009-05-282-58/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/util/testsuite_allocator.h (check_new, check_delete): Move to ... * testsuite/util/replacement_memory_operators.h: ...here. New. * testsuite/util/testsuite_hooks.h (counter): To object_counter. * testsuite/util/testsuite_hooks.cc: Same. * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Use replacement_memory_operators.h. * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same. * testsuite/ext/mt_allocator/check_delete.cc: Same. * testsuite/ext/mt_allocator/deallocate_local_thread-5.cc: Same. * testsuite/ext/mt_allocator/deallocate_local_thread-7.cc: Same. * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same. * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same. * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same. * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same. * testsuite/ext/mt_allocator/deallocate_local-6.cc: Same. * testsuite/ext/mt_allocator/deallocate_local-8.cc: Same. * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same. * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same. * testsuite/ext/mt_allocator/check_new.cc: Same. * testsuite/ext/debug_allocator/check_delete.cc: Same. * testsuite/ext/debug_allocator/check_new.cc: Same. * testsuite/ext/new_allocator/deallocate_global.cc: Same. * testsuite/ext/new_allocator/check_delete.cc: Same. * testsuite/ext/new_allocator/check_new.cc: Same. * testsuite/ext/new_allocator/deallocate_local.cc: Same. * testsuite/ext/throw_allocator/deallocate_global.cc: Same. * testsuite/ext/throw_allocator/check_delete.cc: Same. * testsuite/ext/throw_allocator/check_new.cc: Same. * testsuite/ext/throw_allocator/deallocate_local.cc: Same. * testsuite/ext/malloc_allocator/deallocate_global.cc: Same. * testsuite/ext/malloc_allocator/check_delete.cc: Same. * testsuite/ext/malloc_allocator/check_new.cc: Same. * testsuite/ext/malloc_allocator/deallocate_local.cc: Same. * testsuite/ext/pool_allocator/check_delete.cc: Same. * testsuite/ext/pool_allocator/check_new.cc: Same. * testsuite/ext/bitmap_allocator/check_delete.cc: Same. * testsuite/ext/bitmap_allocator/check_new.cc: Same. * testsuite/ext/array_allocator/check_delete.cc: Same. * testsuite/ext/array_allocator/check_new.cc: Same. * testsuite/23_containers/deque/cons/1.cc: Same. * testsuite/23_containers/deque/cons/2.cc: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147937 138bc75d-0d04-0410-961f-82ee72b054a4
* Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception.jakub2009-04-099-69/+36
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145841 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-10-26 Paolo Carlini <pcarlini@suse.de>paolo2007-10-271-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/ext/throw_allocator.h (throw_allocator<>:: construct<>(pointer, _Args&&...)): Add. * include/ext/pool_allocator.h (__pool_alloc<>:: construct<>(pointer, _Args&&...)): Likewise. (construct(pointer, const _Tp&)): Cast pointer to void*. * include/ext/bitmap_allocator.h (bitmap_allocator<>:: construct<>(pointer, _Args&&...)): Add. (construct(pointer, const _Tp&)): Cast pointer to void*. * include/ext/new_allocator.h (new_allocator<>:: construct<>(pointer, _Args&&...)): Add. (construct(pointer, const _Tp&)): Cast pointer to void*. * include/ext/malloc_allocator.h (malloc_allocator<>:: construct<>(pointer, _Args&&...)): Add. (construct(pointer, const _Tp&)): Cast pointer to void*. * include/ext/array_allocator.h (array_allocator<>:: construct<>(pointer, _Args&&...)): Add. (construct(pointer, const _Tp&)): Cast pointer to void*. * include/ext/mt_allocator.h (__mt_alloc<>:: construct<>(pointer, _Args&&...)): Add. (construct(pointer, const _Tp&)): Cast pointer to void*. * testsuite/util/testsuite_allocator.h (tracker_allocator<>:: construct<>(pointer, _Args&&...)): Add. (construct(pointer, const _Tp&)): Cast pointer to void*. (uneq_allocator<>::construct<>(pointer, _Args&&...)): Add. (construct(pointer, const _Tp&)): Cast pointer to void*. * testsuite/ext/mt_allocator/variadic_construct.cc: New. * testsuite/ext/new_allocator/variadic_construct.cc: Likewise. * testsuite/ext/throw_allocator/variadic_construct.cc: Likewise. * testsuite/ext/malloc_allocator/variadic_construct.cc: Likewise. * testsuite/ext/pool_allocator/variadic_construct.cc: Likewise. * testsuite/ext/bitmap_allocator/variadic_construct.cc: Likewise. * testsuite/ext/array_allocator/variadic_construct.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129672 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-10-24 Paolo Carlini <pcarlini@suse.de>paolo2007-10-243-13/+13
| | | | | | | | | | | * include/tr1_impl/array (_M_instance): Align naturally. * testsuite/ext/array_allocator/1.cc: Use ext/vstring, more solid than our current basic_string vs alignment. * testsuite/ext/array_allocator/2.cc: Likewise. * testsuite/ext/array_allocator/3.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129604 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-04-26 Benjamin Kosnik <bkoz@redhat.com>bkoz2006-04-261-0/+46
| | | | | | | | | | | PR libstdc++/26875 * include/ext/array_allocator.h (array_allocator): _M_used, new data member. * testsuite/ext/array_allocator/26875.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113283 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-01-31 Paolo Carlini <pcarlini@suse.de>paolo2006-01-311-4/+1
| | | | | | | | | PR libstdc++/21554 * include/tr1/array (array<>::_M_instance): Maximally align. * testsuite/ext/array_allocator/2.cc: Do not xfail for powerpc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110445 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-12-28 Paolo Carlini <pcarlini@suse.de>paolo2005-12-281-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/std/std_bitset.h (bitset<>::_M_copy_from_string, bitset<>::_M_copy_to_string, bitset<>::operator>>): Reverse loop. * testsuite/25_algorithms/heap/heap.cc (test01): Always enable complexity checks. * testsuite/18_support/numeric_limits/specialization.cc: Avoid unused parameter warning. * testsuite/18_support/numeric_limits/traps.cc: Acoid unused variable warning. * testsuite/ext/malloc_allocator/deallocate_global.cc: Fix format string. * testsuite/ext/malloc_allocator/deallocate_local.cc: Likewise. * testsuite/ext/array_allocator/2.cc: Remove unused variable. * testsuite/tr1/3_function_objects/mem_fn.cc: Avoid unused variable warnings. * testsuite/tr1/6_containers/unordered/instantiate/set.cc: Just instantiate. * testsuite/tr1/6_containers/unordered/instantiate/map.cc: Likewise. * testsuite/tr1/6_containers/unordered/instantiate/hash.cc: Likewise. * testsuite/tr1/6_containers/unordered/instantiate/multiset.cc: Likewise. * testsuite/tr1/6_containers/unordered/instantiate/multimap.cc: Likewise. * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc: Avoid unused variable warnings. * testsuite/tr1/6_containers/array/requirements/zero_sized_arrays.cc: Likewise. * testsuite/thread/18185.cc: Likewise. * testsuite/27_io/ios_base/storage/11584.cc: Likewise; avoid comparison between signed and unsigned warning. * testsuite/27_io/types/1.cc: Avoid unused variable warnings. * testsuite/testsuite_allocator.h (check_new): Likewise. (check_deallocate_null): Adjust return type. * testsuite/testsuite_hooks.h (bitmask_operators): Avoid unused variable warnings. * testsuite/21_strings/c_strings/wchar_t/24559.cc: Avoid unused variable warning. 2005-12-28 Chris Jefferson <chris@bubblescope.net> * include/std/std_bitset.h (bitset<0>::set, bitset<0>::reset, bitset<0>::flip, bitset<0>::test): Add inline specializations for bitset<0>. * testsuite/tr1/6_containers/unordered/insert/multiset_range.cc (test01): Add static cast. * testsuite/tr1/6_containers/unordered/insert/set_range.cc (test01): Likewise. * testsuite/testsuite_hooks.h (operator==(NonDefaultConstructible, NonDefaultConstructible), operator<(NonDefaultConstructible, NonDefaultConstrictible)): Avoid unused parameter warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109103 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>kcook2005-08-177-7/+7
| | | | | | | * All files: Update FSF address. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103192 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-05-28 Paolo Carlini <pcarlini@suse.de>paolo2005-05-281-5/+7
| | | | | | | | | | | | | | | | | | | | | | | Revert: 2005-05-18 Paolo Carlini <pcarlini@suse.de> Nathan Myers <ncm@cantrip.org> PR libstdc++/19495 * include/bits/basic_string.h (_Raw_bytes_alloc): Rebind to size_type instead of char and rename to _Raw_alloc. * include/bits/basic_string.tcc (_Rep::_M_destroy, _Rep::_S_create): Use the above. * src/bitmap_allocator.cc: Add instantiation for size_type. * src/mt_allocator.cc: Likewise. * src/pool_allocator.cc: Likewise. * include/ext/array_allocator.h: Tweak slightly, avoid assuming the existence of an _Array::begin() and size() members. * testsuite/ext/array_allocator/2.cc: Tweak to use an allocator of size_type, instead of char, thus avoiding problems with rebinds, not treated correctly by array_allocator. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100304 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-05-18 Paolo Carlini <pcarlini@suse.de>paolo2005-05-181-7/+5
| | | | | | | | | | | | | | | | | | | | | Nathan Myers <ncm@cantrip.org> PR libstdc++/19495 * include/bits/basic_string.h (_Raw_bytes_alloc): Rebind to size_type instead of char and rename to _Raw_alloc. * include/bits/basic_string.tcc (_Rep::_M_destroy, _Rep::_S_create): Use the above. * src/bitmap_allocator.cc: Add instantiation for size_type. * src/mt_allocator.cc: Likewise. * src/pool_allocator.cc: Likewise. * include/ext/array_allocator.h: Tweak slightly, avoid assuming the existence of an _Array::begin() and size() members. * testsuite/ext/array_allocator/2.cc: Tweak to use an allocator of size_type, instead of char, thus avoiding problems with rebinds, not treated correctly by array_allocator. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99933 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/ext/array_allocator/2.cc: XFAIL for powerpc*-*-linux*.janis2005-02-101-0/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94786 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-11-18 Paolo Carlini <pcarlini@suse.de>paolo2004-11-183-9/+15
| | | | | | | | | | | * testsuite/26_numerics/numeric/sum_diff.cc: Use VERIFY. * testsuite/ext/array_allocator/1.cc: Likewise. * testsuite/ext/array_allocator/2.cc: Likewise. * testsuite/ext/array_allocator/3.cc: Likewise. * testsuite/ext/enc_filebuf/char/13598.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90878 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-10-29 Benjamin Kosnik <bkoz@redhat.com>bkoz2004-10-292-4/+67
| | | | | | | | | | | | | | | | | | | | * testsuite/testsuite_allocator.h (check_delete): New. (check_new): Simplify. * testsuite/ext/array_allocator/check_delete.cc: New. * testsuite/ext/array_allocator/check_new.cc: Simplify. * testsuite/ext/debug_allocator/check_delete.cc: New. * testsuite/ext/debug_allocator/check_new.cc: Simplify. * testsuite/ext/malloc_allocator/check_delete.cc: New. * testsuite/ext/malloc_allocator/check_new.cc: Simplify. * testsuite/ext/mt_allocator/check_delete.cc: New. * testsuite/ext/mt_allocator/check_new.cc: Simplify. * testsuite/ext/new_allocator/check_delete.cc: New. * testsuite/ext/new_allocator/check_new.cc: Simplify. * testsuite/ext/pool_allocator/check_delete.cc: New. * testsuite/ext/pool_allocator/check_new.cc: Simplify. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89850 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-10-26 Benjamin Kosnik <bkoz@redhat.com>bkoz2004-10-261-0/+66
| | | | | | | | | | * include/ext/array_allocator.h (array::allocate): Check for valid array object, use its size member function directly. * testsuite/ext/array_allocator/3.cc: New. * docs/html/20_util/allocator.html: Add docs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89573 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-10-20 Paolo Carlini <pcarlini@suse.de>paolo2004-10-211-0/+31
| | | | | | | | | | | | | | | | | | | | * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc when n > max_size(). * include/ext/malloc_allocator.h (allocate): Likewise. * include/ext/mt_allocator.h (allocate): Likewise. * include/ext/new_allocator.h (allocate): Likewise. * include/ext/array_allocator.h: Use __throw_bad_alloc(). * include/ext/pool_allocator.h: Use __builtin_expect. * testsuite/ext/array_allocator/check_allocate_max_size.cc: New. * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise. * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise. * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise. * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise. * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise. * testsuite/testsuite_allocator.h (check_allocate_max_size): New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89351 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>bkoz2004-10-142-0/+91
| | | | | | | | | | | | | | | | | | | | | | | | | * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for null pointer. * include/ext/pool_allocator.h (debug_allocator::deallocate): Check pointer value. * include/ext/debug_allocator.h (debug_allocator::deallocate): Throw exceptions, don't abort. * include/ext/array_allocator.h (array_allocator_base::deallocate): Remove unused parameters. * testsuite/testsuite_allocator.h (check_deallocate_null): New. * testsuite/ext/mt_allocator/check_deallocate_null.cc: New. * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New. * testsuite/ext/array_allocator/check_deallocate_null.cc: New. * testsuite/ext/debug_allocator/check_deallocate_null.cc: New. * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New. * testsuite/ext/new_allocator/check_deallocate_null.cc: New. * testsuite/ext/pool_allocator/check_deallocate_null.cc: New. * testsuite/testsuite_allocator.h (check_new): Add instance argument. * testsuite/ext/array_allocator/check_new.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89060 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-10-13 Paolo Carlini <pcarlini@suse.de>paolo2004-10-131-1/+1
| | | | | | | | | | | | | * include/bits/basic_string.tcc (_S_create): Use consistently the exponential policy, simplify. * testsuite/performance/21_strings/string_append_2.cc: New. * include/ext/array_allocator.h (allocate): Fix bad_alloc check. * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in that case sizeof(_Rep) == 24). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88972 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-10-07 Benjamin Kosnik <bkoz@redhat.com>bkoz2004-10-072-0/+137
* include/tr1: New. * include/tr1/array: New. * include/Makefile.am (tr1_headers): New. (stamp-tr1): New. (install-headers): New. (allstamped): Add stamp-tr1. * include/ext/array_allocator.h: New. * include/Makefile.am: Add. * include/Makefile.in: Regenerate. * testsuite/ext/array_allocator/1.cc: New. * testsuite/ext/array_allocator/2.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88711 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud