summaryrefslogtreecommitdiff
path: root/libstdc++-v3
Commit message (Collapse)AuthorAgeFilesLines
* 2009-06-22 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-06-226-11/+26
| | | | | | | | | | | | | | * testsuite/util/testsuite_common_types.h (bitwise_operators, bitwise_assignment_operators): Initialize a and b. (struct has_bitwise_operators): Do not call the latter. * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc: Adjust dg-error line numbers. * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise. * testsuite/29_atomics/atomic/cons/assign_neg.cc: Likewise. * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148809 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-22 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-06-225-4/+12
| | | | | | | | | | | * testsuite/23_containers/list/invalidation/1.cc: Mark test as possibly unused. * testsuite/23_containers/list/invalidation/2.cc: Likewise. * testsuite/23_containers/list/invalidation/3.cc: Likewise. * testsuite/23_containers/list/invalidation/4.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148801 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-21 Jonathan Wakely <jwakely.gcc@gmail.com>redi2009-06-2169-5/+4453
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/std/future: New. * include/Makefile.am: Add. * include/Makefile.in: Regenerate. * src/future.cc: New. * src/Makefile.am: Add. * src/Makefile.in: Regenerate. * config/abi/pre/gnu.ver: Add export. * testsuite/30_threads/headers/future/std_c++0x_neg.cc: New. * testsuite/30_threads/headers/future/types_std_c++0x.cc: New. * testsuite/30_threads/packaged_task/cons/1.cc: New. * testsuite/30_threads/packaged_task/cons/2.cc: New. * testsuite/30_threads/packaged_task/cons/assign_neg.cc: New. * testsuite/30_threads/packaged_task/cons/copy_neg.cc: New. * testsuite/30_threads/packaged_task/cons/move_assign.cc: New. * testsuite/30_threads/packaged_task/cons/move.cc: New. * testsuite/30_threads/packaged_task/members/boolconv.cc: New. * testsuite/30_threads/packaged_task/members/get_future.cc: New. * testsuite/30_threads/packaged_task/members/get_future2.cc: New. * testsuite/30_threads/packaged_task/members/invoke.cc: New. * testsuite/30_threads/packaged_task/members/invoke2.cc: New. * testsuite/30_threads/packaged_task/members/invoke3.cc: New. * testsuite/30_threads/packaged_task/members/invoke4.cc: New. * testsuite/30_threads/packaged_task/members/invoke5.cc: New. * testsuite/30_threads/packaged_task/members/reset.cc: New. * testsuite/30_threads/packaged_task/members/reset2.cc: New. * testsuite/30_threads/packaged_task/members/swap.cc: New. * testsuite/30_threads/packaged_task/requirements/ explicit_instantiation.cc: New. * testsuite/30_threads/promise/cons/1.cc: New. * testsuite/30_threads/promise/cons/assign_neg.cc: New. * testsuite/30_threads/promise/cons/copy_neg.cc: New. * testsuite/30_threads/promise/cons/move_assign.cc: New. * testsuite/30_threads/promise/cons/move.cc: New. * testsuite/30_threads/promise/members/get_future.cc: New. * testsuite/30_threads/promise/members/get_future2.cc: New. * testsuite/30_threads/promise/members/set_exception.cc: New. * testsuite/30_threads/promise/members/set_exception2.cc: New. * testsuite/30_threads/promise/members/set_value.cc: New. * testsuite/30_threads/promise/members/set_value2.cc: New. * testsuite/30_threads/promise/members/set_value3.cc: New. * testsuite/30_threads/promise/members/swap.cc: New. * testsuite/30_threads/promise/requirements/ explicit_instantiation.cc: New. * testsuite/30_threads/shared_future/cons/assign_neg.cc: New. * testsuite/30_threads/shared_future/cons/copy.cc: New. * testsuite/30_threads/shared_future/cons/default_neg.cc: New. * testsuite/30_threads/shared_future/cons/move.cc: New. * testsuite/30_threads/shared_future/members/get.cc: New. * testsuite/30_threads/shared_future/members/get2.cc: New. * testsuite/30_threads/shared_future/members/has_exception.cc: New. * testsuite/30_threads/shared_future/members/has_value.cc: New. * testsuite/30_threads/shared_future/members/is_ready.cc: New. * testsuite/30_threads/shared_future/members/wait.cc: New. * testsuite/30_threads/shared_future/members/wait_for.cc: New. * testsuite/30_threads/shared_future/members/wait_until.cc: New. * testsuite/30_threads/shared_future/requirements/ explicit_instantiation.cc: New. * testsuite/30_threads/unique_future/cons/assign_neg.cc: New. * testsuite/30_threads/unique_future/cons/copy_neg.cc: New. * testsuite/30_threads/unique_future/cons/default_neg.cc: New. * testsuite/30_threads/unique_future/cons/move.cc: New. * testsuite/30_threads/unique_future/members/get.cc: New. * testsuite/30_threads/unique_future/members/get2.cc: New. * testsuite/30_threads/unique_future/members/has_exception.cc: New. * testsuite/30_threads/unique_future/members/has_value.cc: New. * testsuite/30_threads/unique_future/members/is_ready.cc: New. * testsuite/30_threads/unique_future/members/wait.cc: New. * testsuite/30_threads/unique_future/members/wait_for.cc: New. * testsuite/30_threads/unique_future/members/wait_until.cc: New. * testsuite/30_threads/unique_future/requirements/ explicit_instantiation.cc: New. * testsuite/performance/30_threads/future/polling.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148765 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-20 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-06-213-45/+8
| | | | | | | * Revert last Change. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148756 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-20 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-06-203-4/+52
| | | | | | | | | | PR libstdc++/40497 * include/bits/stl_iterator_base_funcs.h (next, prev): Fix the signature per the current C++1x draft (N2857). * testsuite/24_iterators/operations/40497.cc: Add. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148751 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-19 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-06-194-65/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/random.h (_Adaptor): Simplify for _DInputType always a floating point type. (uniform_int_distribution<>::uniform_int_distribution(_IntType, _IntType)): Fix second default argument. (uniform_int_distribution<>::_M_call): Remove. (uniform_int_distribution<>::operator()(_UniformRandomNumberGenerator&, const param_type&)): Only declare. * include/bits/random.tcc (uniform_int_distribution<>::_M_call( _UniformRandomNumberGenerator&, result_type, result_type, true_type): Remove. uniform_int_distribution<>::operator()(_UniformRandomNumberGenerator&, const param_type&): Define here. (geometric_distribution<>::operator()(_UniformRandomNumberGenerator&, const param_type&), discrete_distribution<>::operator() (_UniformRandomNumberGenerator&, const param_type&), piecewise_constant_distribution<>::operator() (_UniformRandomNumberGenerator&, const param_type&), piecewise_linear_distribution<>::operator() (_UniformRandomNumberGenerator&, const param_type&)): Use double as the second template argument of _Adaptor. * testsuite/26_numerics/random/uniform_int_distribution/cons/ default.cc: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148720 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-19 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-06-193-98/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/random.tcc (discrete_distribution<>::param_type:: param_type(size_t, double, double, _Func), discrete_distribution<>::operator()(_UniformRandomNumberGenerator&, const param_type&)): Tidy. (piecewise_constant_distribution<>::param_type::_M_initialize): Use reserve, fix. (piecewise_constant_distribution<>::param_type:: param_type(initializer_list<>, _Func), piecewise_constant_distribution<>::param_type:: param_type(size_t, _RealType, _RealType, _Func), piecewise_linear_distribution<>::param_type:: param_type(initializer_list<>, _Func), piecewise_linear_distribution<>::param_type:: param_type(size_t, _RealType, _RealType, _Func)): Use reserve, tidy. (piecewise_constant_distribution<>::param_type:: param_type(_InputIteratorB, _InputIteratorB, _InputIteratorW), piecewise_constant_distribution<>:: operator()(_UniformRandomNumberGenerator&, const param_type&), piecewise_linear_distribution<>:: operator()(_UniformRandomNumberGenerator&, const param_type&)): Fix. (operator>>(std::basic_istream<>&, piecewise_constant_distribution<>&), operator>>(std::basic_istream<>&, piecewise_linear_distribution<>&)): Use reserve. * include/bits/random.h: Minor cosmetic changes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148719 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-17 Benjamin Kosnik <bkoz@redhat.com>bkoz2009-06-1853-1582/+2116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/23_containers/list/check_construct_destroy.h: New. Move test logic here. * testsuite/23_containers/list/moveable.h: Same. * testsuite/23_containers/list/modifiers/insert/25288.h: Same. * testsuite/23_containers/list/modifiers/1.h: Same. * testsuite/23_containers/list/modifiers/2.h: Same. * testsuite/23_containers/list/modifiers/3.h: Same. * testsuite/23_containers/list/modifiers/swap/1.h: Same. * testsuite/23_containers/list/modifiers/swap/2.h: Same. * testsuite/23_containers/list/modifiers/swap/3.h: Same. * testsuite/23_containers/list/operations/1.h: Same. * testsuite/23_containers/list/operations/2.h: Same. * testsuite/23_containers/list/operations/3.h: Same. * testsuite/23_containers/list/operations/4.h: Same. * testsuite/23_containers/list/operations/5.h: Same. * testsuite/23_containers/list/capacity/1.h: Same. * testsuite/23_containers/list/init-list.h: Same. * testsuite/23_containers/list/cons/1.h: Same. * testsuite/23_containers/list/cons/2.h: Same. * testsuite/23_containers/list/cons/3.h: Same. * testsuite/23_containers/list/cons/4.h: Same. * testsuite/23_containers/list/cons/5.h: Same. * testsuite/23_containers/list/cons/6.h: Same. * testsuite/23_containers/list/cons/7.h: Same. * testsuite/23_containers/list/cons/8.h: Same. * testsuite/23_containers/list/cons/9.h: Same. * testsuite/23_containers/list/cons/clear_allocator.h: Same. * testsuite/23_containers/list/modifiers/insert/25288.cc: Include test header. * testsuite/23_containers/list/modifiers/1.cc: Same. * testsuite/23_containers/list/modifiers/2.cc: Same. * testsuite/23_containers/list/modifiers/3.cc: Same. * testsuite/23_containers/list/modifiers/swap/1.cc: Same. * testsuite/23_containers/list/modifiers/swap/2.cc: Same. * testsuite/23_containers/list/modifiers/swap/3.cc: Same. * testsuite/23_containers/list/operations/1.cc: Same. * testsuite/23_containers/list/operations/2.cc: Same. * testsuite/23_containers/list/operations/3.cc: Same. * testsuite/23_containers/list/operations/4.cc: Same. * testsuite/23_containers/list/operations/5.cc: Same. * testsuite/23_containers/list/capacity/1.cc: Same. * testsuite/23_containers/list/init-list.cc: Same. * testsuite/23_containers/list/cons/1.cc: Same. * testsuite/23_containers/list/cons/2.cc: Same. * testsuite/23_containers/list/cons/3.cc: Same. * testsuite/23_containers/list/cons/4.cc: Same. * testsuite/23_containers/list/cons/5.cc: Same. * testsuite/23_containers/list/cons/6.cc: Same. * testsuite/23_containers/list/cons/7.cc: Same. * testsuite/23_containers/list/cons/8.cc: Same. * testsuite/23_containers/list/cons/9.cc: Same. * testsuite/23_containers/list/cons/clear_allocator.cc: Same. * testsuite/23_containers/list/check_construct_destroy.cc: Same. * testsuite/23_containers/list/moveable.cc: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148644 138bc75d-0d04-0410-961f-82ee72b054a4
* * python/hook.in: Do not fail when there is no current objfile.tromey2009-06-172-27/+37
| | | | | | Use os.path.normpath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148626 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-16 Jonathan Wakely <jwakely.gcc@gmail.com>redi2009-06-163-11/+54
| | | | | | | | | | | * libsupc++/exception_ptr.h (exception_ptr::swap(exception_ptr&&)): Remove. (exception_ptr::operator=(exception_ptr&&)): Cast source to rvalue-reference so that move constructor is called. * testsuite/18_support/exception_ptr/move.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148555 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-16 Jonathan Wakely <jwakely.gcc@gmail.com>redi2009-06-162-2/+7
| | | | | | | | * include/std/thread (~thread(), operator=(thread&&)): Call terminate if joinable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148552 138bc75d-0d04-0410-961f-82ee72b054a4
* * python/libstdcxx/v6/printers.py (StdMapPrinter.__init__): Don'ttromey2009-06-152-6/+16
| | | | | | | | | | | set self.iter. (StdMapPrinter.to_string): Make a new iterator. (StdMapPrinter.children): Likewise. (StdSetPrinter.__init__): Don't set self.iter. (StdSetPrinter.to_string): Make a new iterator. (StdSetPrinter.children): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148506 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-11 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-06-113-262/+271
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/random.tcc (negative_binomial_distribution<>::operator() (_UniformRandomNumberGenerator&, const param_type&): Tweak to use a class member gamma_distribution. (negative_binomial_distribution<>::operator() (_UniformRandomNumberGenerator&)): Implement out of line here. (operator<<(basic_ostream<>&, negative_binomial_distribution<>), operator>>(basic_ostream<>&, negative_binomial_distribution<>): Adjust. (student_t_distribution<>::operator() (_UniformRandomNumberGenerator&, const param_type&): Move inline, simplify. (operator<<(basic_ostream<>&, student_t_distribution<>), operator>>(basic_ostream<>&, student_t_distribution<>): Adjust. (chi_squared_distribution<>::operator() (_UniformRandomNumberGenerator&, const param_type&): Move inline, tweak to use a class member gamma_distribution. (operator<<(basic_ostream<>&, chi_squared_distribution<>), operator>>(basic_ostream<>&, chi_squared_distribution<>): Adjust. (fisher_f_distribution<>::operator() (_UniformRandomNumberGenerator&, const param_type&): Move inline, tweak to use class member gamma_distributions. (operator<<(basic_ostream<>&, fisher_f_distribution<>), operator>>(basic_ostream<>&, fisher_f_distribution<>): Adjust. * include/bits/random.h: Adjust, minor tweaks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148393 138bc75d-0d04-0410-961f-82ee72b054a4
* * python/libstdcxx/v6/printers.py (lookup_function): Remove extratromey2009-06-102-7/+13
| | | | | | | | | ';'. (build_libstdcxx_dictionary): Accept shortened form of basic_string names. (StdStringPrinter.to_string): Remove reference to WideEncoding. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148358 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/40289:tromey2009-06-104-8/+74
| | | | | | | | | | * python/Makefile.in: Rebuild. * python/hook.in: Compute module path relative to objfile. * python/Makefile.am (pythondir): Redefine. (gdb.py): Subst toolexeclibdir. (install-data-local): Rewrite. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148357 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-09 Benjamin Kosnik <bkoz@redhat.com>bkoz2009-06-102-3/+15
| | | | | | | | * include/bits/move.h: Doxygen group fixes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148337 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-08 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-06-083-217/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/random.tcc (gamma_distribution<>::operator() (_UniformRandomNumberGenerator&, const param_type&): Redo, using the Marsaglia/Tsang algorithm. (gamma_distribution<>::param_type::_M_initialize): Adjust. (operator<<(basic_ostream<>&, gamma_distribution<>), operator>>(basic_ostream<>&, gamma_distribution<>): Likewise. * include/bits/random.tcc(student_t_distribution<>::_M_gaussian): Remove, just use normal_distribution. (operator<<(basic_ostream<>&, student_t_distribution<>), operator>>(basic_ostream<>&, student_t_distribution<>): Adjust. (linear_congruential_engine<>::operator()()): Move inline. (lognormal_distribution<>::operator()(_UniformRandomNumberGenerator&, const param_type&)): Move inline, just use normal_distribution. (operator<<(basic_ostream<>&, lognormal_distribution<>), operator>>(basic_ostream<>&, lognormal_distribution<>): Adjust. (weibull_distribution<>::operator()(_UniformRandomNumberGenerator&, const param_type&)): Move here, out of line. (piecewise_constant_distribution<>::param_type::param_type()): Move inline. * include/bits/random.h: Adjust, minor tweaks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148276 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-05 Benjamin Kosnik <bkoz@redhat.com>bkoz2009-06-052-2/+6
| | | | | | | | * testsuite/29_atomics/atomic_address/cons/aggregate.cc: Remove xfail. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148222 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-04 Benjamin Kosnik <bkoz@redhat.com>bkoz2009-06-0511-365/+383
| | | | | | | | | | | | | | | | | * include/ext/throw_allocator.h: Rework. * include/ext/pb_ds/detail/debug_map_base.hpp: Adjust usage. * include/ext/pb_ds/detail/gp_hash_table_map_/resize_fn_imps.hpp: Same. * include/ext/pb_ds/detail/ov_tree_map_/erase_fn_imps.hpp: Same. * include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hpp: Same. * testsuite/23_containers/list/modifiers/insert/25288.cc: Same. * testsuite/util/regression/rand/priority_queue/ container_rand_regression_test.tcc: Inline functions. * testsuite/util/regression/rand/assoc/ container_rand_regression_test.tcc: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148204 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-03 Benjamin Kosnik <bkoz@redhat.com>bkoz2009-06-032-2/+6
| | | | | | | | * testsuite/23_containers/list/cons/6.cc: Adjust test name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148140 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-03 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-06-037-10/+52
| | | | | | | | | | | | | | | | | PR libstdc++/40296 * libsupc++/exception_ptr.h (exception_ptr::operator!, exception_ptr::operator __safe_bool): Only declare when _GLIBCXX_EH_PTR_COMPAT is undefined. * libsupc++/eh_ptr.cc: Define _GLIBCXX_EH_PTR_COMPAT before including exception_ptr. * testsuite/18_support/exception_ptr/40296.cc: New. * testsuite/18_support/nested_exception/throw_with_nested.cc: Adjust. * testsuite/18_support/nested_exception/cons.cc: Likewise. * testsuite/18_support/nested_exception/nested_ptr.cc: Likewise. * testsuite/18_support/exception_ptr/current_exception.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148122 138bc75d-0d04-0410-961f-82ee72b054a4
* libstdc++-v3/rsandifo2009-06-023-0/+17467
| | | | | | | | | * crossconfig.m4 (GLIBCXX_CROSSCONFIG): Handle AIX targets. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148098 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-03 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-06-023-6/+39
| | | | | | | | | PR libstdc++/40299 * include/ext/memory: Fully qualify calls with __gnu_cxx. * testsuite/ext/rope/40299.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148081 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-28 Tom Tromey <tromey@redhat.com>tromey2009-05-2811-6/+1237
| | | | | | | | | | | | | | Phil Muldoon <pmuldoon@redhat.com> Jonathan Wakely <jwakely.gcc@gmail.com> * python/Makefile.in, , python/libstdcxx/__init__.py, python/libstdcxx/v6/__init__.py, python/libstdcxx/v6/printers.py, python/hook.in, python/Makefile.am: New files. * configure, Makefile.in: Rebuild. * acinclude.m4 (glibcxx_SUBDIRS): Add python. * Makefile.am (SUBDIRS): Add python. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147958 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>bkoz2009-05-2841-1163/+309
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* * call.c (implicit_conversion): Handle conversion fromjason2009-05-272-2/+2
| | | | | | | | | | | | initializer-list to scalar. (convert_like_real): Likewise. Avoid crashing on list initialization with bad conversions. (can_convert): Use LOOKUP_EXPLICIT. (can_convert_arg_bad): Add flags parm. * cp-tree.h: Adjust. * typeck.c (convert_for_assignment): Pass flags. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147933 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-27 Benjamin Kosnik <bkoz@redhat.com>bkoz2009-05-274-27/+91
| | | | | | | | | | | * libsupc++/initializer_list: Format. * testsuite/18_support/initializer_list/requirements/typedefs.cc: New. * testsuite/18_support/initializer_list/requirements/ explicit_instantiation.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147931 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-27 Benjamin Kosnik <bkoz@redhat.com>bkoz2009-05-274-6/+84
| | | | | | | | | | | | PR libstdc++/40273 * include/tr1_impl/functional: Add explicit cast. * testsuite/20_util/function/requirements/ explicit_instantiation.cc: New. * testsuite/20_util/function/null_pointer_comparisons.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147930 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-24 Eelis van der Weegen <eelis@eelis.net>paolo2009-05-242-0/+13
| | | | | | | * libsupc++/initializer_list (initializer_list): Add missing typedefs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147828 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-21 Benjamin Kosnik <bkoz@redhat.com>bkoz2009-05-222-2/+7
| | | | | | | | | PR libstdc++/40221 * include/tr1_impl/functional: Add explicit cast. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147794 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-21 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-05-221-0/+0
| | | | | | | | | | | | | | | | | | PR libstdc++/40094 Revert: 2009-05-07 Paolo Carlini <paolo.carlini@oracle.com> * include/ext/throw_allocator.h (throw_allocator_base): Avoid out of line member functions definitions. (throw_allocator_base::_S_g, _S_map, _S_throw_prob, _S_label): Remove, use static locals instead. (throw_allocator_base::do_check_allocated, print_to_string): Declare. * src/throw_allocator.cc: New. * src/Makefile.am: Add. * config/abi/pre/gnu.ver: Add exports. * src/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147789 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-21 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-05-227-221/+225
| | | | | | | | | | | | | | | | | | PR libstdc++/40094 Revert: 2009-05-07 Paolo Carlini <paolo.carlini@oracle.com> * include/ext/throw_allocator.h (throw_allocator_base): Avoid out of line member functions definitions. (throw_allocator_base::_S_g, _S_map, _S_throw_prob, _S_label): Remove, use static locals instead. (throw_allocator_base::do_check_allocated, print_to_string): Declare. * src/throw_allocator.cc: New. * src/Makefile.am: Add. * config/abi/pre/gnu.ver: Add exports. * src/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147788 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-20 Benjamin Kosnik <bkoz@redhat.com>bkoz2009-05-2115-57/+67
| | | | | | | | | | | | | | | | | | | | | | * include/tr1_impl/functional (function): Use explicit operator bool. * include/bits/shared_ptr.h (__shared_ptr): Same. * include/bits/unique_ptr.h (unique_ptr): Same. * include/std/mutex (unique_lock): Same. * include/std/system_error (error_code): Same. (error_condition): Same. * include/std/ostream (sentry): Same. * include/std/istream (sentry): Same. * testsuite/19_diagnostics/error_condition/operators/bool.cc: Adjust. * testsuite/19_diagnostics/error_condition/operators/bool_neg.cc: Same. * testsuite/19_diagnostics/error_code/operators/bool.cc: Same. * testsuite/19_diagnostics/error_code/operators/bool_neg.cc: Same. * testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: Same. * testsuite/20_util/unique_ptr/assign/assign_neg.cc: Same. * testsuite/20_util/shared_ptr/observers/bool_conv.cc: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147756 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-19 Benjamin Kosnik <bkoz@redhat.com>bkoz2009-05-2044-429/+572
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/23_containers/list/14340.cc: Abstract list type. * testsuite/23_containers/list/init-list.cc: Same. * testsuite/23_containers/list/pthread5.cc: Same. * testsuite/23_containers/list/invalidation/1.cc: Same. * testsuite/23_containers/list/invalidation/2.cc: Same. * testsuite/23_containers/list/invalidation/3.cc: Same. * testsuite/23_containers/list/invalidation/4.cc: Same. * testsuite/23_containers/list/modifiers/insert/25288.cc: Same. * testsuite/23_containers/list/modifiers/1.cc: Same. * testsuite/23_containers/list/modifiers/2.cc: Same. * testsuite/23_containers/list/modifiers/3.cc: Same. * testsuite/23_containers/list/modifiers/swap/1.cc: Same. * testsuite/23_containers/list/modifiers/swap/2.cc: Same. * testsuite/23_containers/list/modifiers/swap/3.cc: Same. * testsuite/23_containers/list/cons/1.cc: Same. * testsuite/23_containers/list/cons/2.cc: Same. * testsuite/23_containers/list/cons/3.cc: Same. * testsuite/23_containers/list/cons/4.cc: Same. * testsuite/23_containers/list/cons/5.cc: Same. * testsuite/23_containers/list/cons/6.cc: Same. * testsuite/23_containers/list/cons/7.cc: Same. * testsuite/23_containers/list/cons/clear_allocator.cc: Same. * testsuite/23_containers/list/cons/8.cc: Same. * testsuite/23_containers/list/cons/9.cc: Same. * testsuite/23_containers/list/operations/1.cc: Same. * testsuite/23_containers/list/operations/2.cc: Same. * testsuite/23_containers/list/operations/3.cc: Same. * testsuite/23_containers/list/operations/4.cc: Same. * testsuite/23_containers/list/operations/5.cc: Same. * testsuite/23_containers/list/requirements/citerators.cc: Same. * testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Same. * testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Same. * testsuite/23_containers/list/requirements/dr438/ constructor_1_neg.cc: Same. * testsuite/23_containers/list/requirements/dr438/ constructor_2_neg.cc: Same. * testsuite/23_containers/list/requirements/dr438/constructor.cc: Same. * testsuite/23_containers/list/requirements/ partial_specialization/1.cc: Same. * testsuite/23_containers/list/23781.cc: Same. * testsuite/23_containers/list/pthread1.cc: Same. * testsuite/23_containers/list/capacity/1.cc: Same. * testsuite/23_containers/list/capacity/29134.cc: Same. * testsuite/23_containers/list/check_construct_destroy.cc: Same. * testsuite/23_containers/list/moveable.cc: Same. * testsuite/util/common_type/assoc/common_type.hpp: Re-break lines. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147728 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-19 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-05-196-7/+129
| | | | | | | | | | | | | | PR libstdc++/40184 * include/bits/locale_classes.h (locale::facet::_S_lc_ctype_c_locale): Declare... * config/locale/gnu/c_locale.cc: ... and define. * config/locale/generic/c_locale.cc: Define. * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)): Use it. * testsuite/22_locale/locale/cons/40184.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147714 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-18 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-05-183-3/+57
| | | | | | | | | | | PR libstdc++/40192 * include/bits/stl_construct.h (struct _Destroy_aux): Add. (_Destroy(_ForwardIterator, _ForwardIterator)): Use the latter. * testsuite/23_containers/vector/40192.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147680 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-18 Jonathan Wakely <jwakely.gcc@gmail.com>redi2009-05-1847-685/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/stl_pair.h (swap): Do not swap rvalues. * include/bits/stl_deque.h (swap): Likewise. * include/bits/stl_list.h (swap): Likewise. * include/bits/stl_vector.h (swap): Likewise. * include/bits/stl_bvector.h (swap): Likewise. * include/bits/stl_queue.h (swap): Likewise. * include/bits/stl_stack.h (swap): Likewise. * include/bits/stl_tree.h (swap): Likewise. * include/bits/stl_map.h (swap): Likewise. * include/bits/stl_multimap.h (swap): Likewise. * include/bits/stl_set.h (swap): Likewise. * include/bits/stl_multiset.h (swap): Likewise. * include/bits/forward_list.h (swap): Likewise. * include/bits/unique_ptr.h (swap): Likewise. * include/debug/deque (swap): Likewise. * include/debug/list (swap): Likewise. * include/debug/vector (swap): Likewise. * include/debug/map.h (swap): Likewise. * include/debug/multimap.h (swap): Likewise. * include/debug/set.h (swap): Likewise. * include/debug/multiset.h (swap): Likewise. * include/debug/unordered_map (swap): Likewise. * include/debug/unordered_set (swap): Likewise. * include/ext/vstring.h (swap): Likewise. * include/tr1_impl/unordered_map (swap): Likewise. * include/tr1_impl/hashtable (swap): Likewise. * include/tr1_impl/unordered_set (swap): Likewise. * include/std/tuple (swap): Likewise. * include/std/mutex (swap): Likewise. * include/std/thread (swap): Likewise. (operator<<): Only output to lvalue streams. * testsuite/20_util/shared_ptr/modifiers/swap_rvalue.cc: Remove. * testsuite/23_containers/headers/forward_list/synopsis.cc: Adjust. * testsuite/23_containers/deque/requirements/dr438/ assign_neg.cc: Adjust line numbers. * testsuite/23_containers/deque/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/deque/requirements/dr438/ constructor_2_neg.cc: Likewise. * testsuite/23_containers/deque/requirements/dr438/ insert_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/ assign_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/ constructor_2_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/ insert_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/ assign_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/ constructor_2_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/ insert_neg.cc: Likewise. * testsuite/30_threads/thread/swap/1.cc: Swap with lvalue and also test non-member swap. * testsuite/30_threads/thread/swap/2.cc: Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147678 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-13 Jonathan Wakely <jwakely.gcc@gmail.com>redi2009-05-165-17/+27
| | | | | | | | | | | * include/std/mutex: Move std::lock_error to ... * src/compatibility.cc: Here. * src/mutex.cc: Likewise. * testsuite/30_threads/headers/mutex/types_std_c++0x.cc: Add checks for lock types and remove std::lock_error check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147609 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-15 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-05-152-2/+5
| | | | | | | | * testsuite/21_strings/basic_string/40160.cc: Remove spurious double include. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147600 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-15 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-05-154-13/+90
| | | | | | | | | | | | | PR libstdc++/40160 * include/debug/formatter.h (_Parameter::_Parameter): Don't use typeid when __GXX_RTTI is undefined. * src/debug.cc (_Error_formatter::_Parameter::_M_print_field): Adjust for null _M_variant._M_iterator._M_type, _M_variant._M_iterator._M_seq_type, _M_variant._M_sequence._M_type. * testsuite/21_strings/basic_string/40160.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147599 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-15 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-05-156-34/+56
| | | | | | | | | | | | | | | | * testsuite/26_numerics/random/discrete_distribution/cons/ num_xbound_fun.cc: Minor tweaks. * testsuite/26_numerics/random/piecewise_constant_distribution/ cons/initlist_fun.cc: Likewise * testsuite/26_numerics/random/piecewise_constant_distribution/ cons/num_xbound_fun.cc: Likewise * testsuite/26_numerics/random/piecewise_linear_distribution/ cons/initlist_fun.cc: Likewise * testsuite/26_numerics/random/piecewise_linear_distribution/ cons/num_xbound_fun.cc: Likewise git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147567 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-15 David Billinghurst <billingd@gcc.gnu.org>billingd2009-05-152-2/+7
| | | | | | | | | PR libstdc++/36211 * testsuite/lib/libstdc++.exp(v3_target_compile): Add cxxldflags to additional_flags rather than cxx_final. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147565 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-15 David Billinghurst <billingd@gcc.gnu.org>billingd2009-05-156-10/+33
| | | | | | | | | | | | | | | | * testsuite/26_numerics/random/discrete_distribution/cons/num_xbound_fun.cc: Replace non-standard macro M_PI with constant pi. * testsuite/26_numerics/random/piecewise_constant_distribution/cons/initlist_fun.cc: Likewise * testsuite/26_numerics/random/piecewise_constant_distribution/cons/num_xbound_fun.cc: Likewise * testsuite/26_numerics/random/piecewise_linear_distribution/cons/initlist_fun.cc: Likewise * testsuite/26_numerics/random/piecewise_linear_distribution/cons/num_xbound_fun.cc: Likewise git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147564 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-14 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-05-143-53/+47
| | | | | | | | | | | | | | | | PR libstdc++/40123 * random.tcc (independent_bits_engine<>::operator()()): Use result_type(1), not 1UL. * random.tcc (independent_bits_engine<>::operator()()): Use _M_b.max() and _M_b.min(), instead of this->max() and this->min(). * random.h (_ShiftMin1): Remove, adjust everywhere. * random.tcc: Minor cosmetic changes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147538 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-14 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-05-142-4/+9
| | | | | | | | | * include/bits/random.tcc (cauchy_distribution<>:: operator()(_UniformRandomNumberGenerator&, const param_type&)): Avoid M_PI, a glibc extension. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147521 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/Makefile.am (PCHFLAGS): Remove -Winvalid-pch.bje2009-05-133-2/+7
| | | | | | | * include/Makefile.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147459 138bc75d-0d04-0410-961f-82ee72b054a4
* * src/compatibility.cc (_ZTIe, _ZTIPe, _ZTIPKe): Change type tobje2009-05-132-8/+13
| | | | | | | const void * const. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147455 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-12 Edward Smith-Rowland <3dw4rd@verizon.net>bkoz2009-05-122-29/+35
| | | | | | | | | | * doc/xml/manual/status_cxx200x.xml: Note missing constexpr for random number engines, complex, bitset, array, time utilities, and char_traits. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147449 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-12 Jonathan Wakely <jwakely.gcc@gmail.com>redi2009-05-1211-4/+560
| | | | | | | | | | | | | | | | * libsupc++/exception: Include nested_exception.h in C++0x mode. * libsupc++/nested_exception.h: New. * libsupc++/Makefile.am: Add new header. * libsupc++/Makefile.in: Regenerate. * testsuite/18_support/nested_exception/rethrow_nested.cc: New. * testsuite/18_support/nested_exception/throw_with_nested.cc: New. * testsuite/18_support/nested_exception/cons.cc: New. * testsuite/18_support/nested_exception/nested_ptr.cc: New. * testsuite/18_support/nested_exception/rethrow_if_nested.cc: New. * doc/xml/manual/status_cxx200x.xml: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147446 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-07 Paolo Carlini <paolo.carlini@oracle.com>paolo2009-05-082-1/+4
| | | | | | | * include/ext/throw_allocator.h: Remove redundante include. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147265 138bc75d-0d04-0410-961f-82ee72b054a4