aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
AgeCommit message (Collapse)AuthorFilesLines
2013-03-22re PR libstdc++/56678 ([c++11] non-uglified name in <chrono>)Paolo Carlini2-1/+6
2013-03-22 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/56678 * include/std/chrono (__is_ratio): Uglify T. From-SVN: r196954
2013-03-18PR libstdc++/55977 (partial, std::vector and std::deque bits)Paolo Carlini7-2/+154
2013-03-18 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/55977 (partial, std::vector and std::deque bits) * include/bits/stl_vector.h (_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag)): Use emplace_back. * include/bits/deque.tcc (_M_range_initialize(_InputIterator, _InputIterator, std::input_iterator_tag)): Likewise. * testsuite/23_containers/vector/cons/55977.cc: New. * testsuite/23_containers/deque/cons/55977.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Adjust dg-error line number. * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Likewise. From-SVN: r196774
2013-03-17re PR libstdc++/55979 ([C++11] std::list range construction imposes ↵Paolo Carlini5-1/+61
unnecessary conversion constraints) 2013-03-17 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/55979 * include/bits/stl_list.h (_M_initialize_dispatch(_InputIterator, _InputIterator, __false_type)): Use emplace_back. * testsuite/23_containers/list/cons/55979.cc: New. * testsuite/23_containers/list/modifiers/1.h: Adjust. * testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Adjust dg-error line number. From-SVN: r196755
2013-03-16re PR c++/55017 ([DR 1051] [C++11] Rvalue-reference member should cause copy ↵Jason Merrill2-1/+7
constructor to be deleted, but still declared) PR c++/55017 * method.c (walk_field_subobs): Disallow copy of rvalue ref. From-SVN: r196728
2013-03-16re PR libstdc++/56468 (Clang exposes bug with unexpected forward-declaration ↵Jonathan Wakely2-1/+8
of type_info) PR libstdc++/56468 * libsupc++/exception_ptr.h (type_info): Declare. From-SVN: r196709
2013-03-16re PR libstdc++/56002 ([C++11] allow generic locks to be used without ↵Jonathan Wakely3-8/+15
requiring plattform support for threads) PR libstdc++/56002 * include/std/mutex (lock_guard, unique_lock, lock): Define without depending on _GLIBCXX_HAS_GTHREADS. * testsuite/30_threads/lock_guard/cons/1.cc: Run on all targets. From-SVN: r196706
2013-03-16re PR libstdc++/56492 (std::packaged_task requires CopyConstructible stored ↵Jonathan Wakely3-78/+175
task) PR libstdc++/56492 * include/std/future (__future_base::_Result): Add result_type typedef. (__future_base::_S_allocate_result): Overload for std::allocator. (__future_base::_Task_setter): Use _Result::result_type instead of deducing the type from the task. (__future_base::_Task_state): Store allocator to allow shared state to be reset. Replace std::function with member of target object type accessed via ... (__future_base::_Task_state_base): New abstract base class. (__future_base::_Task_state_base::_M_run): New virtual function to invoke type-erased target object. (__future_base::_Task_state_base::_M_reset): New virtual function to create new shared_state using same target object and allocator. (__future_base::__create_task_state): Allocate a new _Task_state. (packaged_task::packaged_task): Use __create_task_state. (packaged_task::reset): Use _Task_state_base::_M_reset. * testsuite/30_threads/packaged_task/cons/56492.cc: New. From-SVN: r196695
2013-03-15unwind-cxx.h: Include sys/sdt.h if detected.Tom Tromey7-3/+38
* libsupc++/unwind-cxx.h: Include sys/sdt.h if detected. (PROBE2): New macro. * libsupc++/eh_throw.cc (__cxa_throw, __cxa_rethrow): Add probe. * libsupc++/eh_catch.cc (__cxa_begin_catch): Add probe. * configure.ac: Check for sys/sdt.h. * configure, config.h.in: Rebuild. From-SVN: r196674
2013-03-14re PR libstdc++/56613 (map::operator[](key_type&&) fails with custom allocator)Jonathan Wakely3-2/+87
PR libstdc++/56613 * include/bits/stl_tree.h (_Rb_tree::_M_create_node): Use allocator_traits instead of calling construct directly. * testsuite/23_containers/map/56613.cc: New. From-SVN: r196666
2013-03-14*: Regenerate.Benjamin Kosnik46-179/+183
2013-03-13 Benjamin Kosnik <bkoz@redhat.com> * doc/html/*: Regenerate. From-SVN: r196647
2013-03-13re PR libstdc++/56609 ([C++11] Several type traits give incorrect results ↵Paolo Carlini4-1/+14
for std::nullptr_t) 2013-03-13 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/56609 * include/std/type_traits (is_fundamental): Add std::nullptr_t. * testsuite/20_util/is_fundamental/value.cc: Extend. * testsuite/20_util/is_compound/value.cc: Likewise. From-SVN: r196630
2013-03-0955463.cc: Avoid -Wunused warnings.Paolo Carlini2-43/+52
2013-03-09 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/20_util/function_objects/mem_fn/55463.cc: Avoid -Wunused warnings. From-SVN: r196572
2013-03-08memoryfwd.h: New.Benjamin Kosnik17-83/+132
* include/bits/memoryfwd.h: New. Centralize forward declarations. * include/bits/algorithmfwd.h: Consistent comments. * include/bits/localefwd.h: Same. * include/ext/vstring_fwd.h: Same. * include/parallel/algorithmfwd.h: Same. * include/parallel/numericfwd.h: Same. * include/std/iosfwd: Same. * include/bits/alloc_traits.h: Include memoryfwd.h, remove allocator forward decl. * include/ext/alloc_traits.h: Remove allocator forward decl. * include/bits/stl_construct.h: Same. * include/bits/stringfwd.h: Include memoryfwd.h, remove allocator forward decl. Consistent comments. * doc/doxygen/user.cfg.in (TEMPLATE_RELATIONS): To NO. * include/Makefile.am (bits_headers): Add memoryfwd.h. * include/Makefile.in: Regenerate. * configure: Same. e enter the commit message for your changes. Lines starting From-SVN: r196559
2013-03-08vector.tcc (vector<>operator=(const vector<>&): Reset pointers after ↵François Dumont12-0/+61
deallocation when memory can be reused. 2013-03-08 François Dumont <fdumont@gcc.gnu.org> * include/bits/vector.tcc (vector<>operator=(const vector<>&): Reset pointers after deallocation when memory can be reused. * testsuite/23_containers/vector/allocator/minimal.cc: Insert elements to really challenge C++11 allocator integration. * testsuite/23_containers/vector/allocator/copy.cc: Likewise. * testsuite/23_containers/vector/allocator/copy_assign.cc: Likewise. * testsuite/23_containers/vector/allocator/move_assign.cc: Likewise. * testsuite/23_containers/vector/allocator/swap.cc: Likewise and swap vector back before checks on memory/personality mapping are performed. * testsuite/23_containers/forward_list/allocator/minimal.cc: Insert element to really challenge C++11 allocator integration. * testsuite/23_containers/forward_list/allocator/copy.cc: Likewise. * testsuite/23_containers/forward_list/allocator/copy_assign.cc: Likewise. * testsuite/23_containers/forward_list/allocator/move_assign.cc: Likewise. * testsuite/23_containers/forward_list/allocator/swap.cc: Likewise and swap forward_list back before checks on memory/personality mapping are performed. From-SVN: r196557
2013-03-07baseline_symbols.txt: Update.Jakub Jelinek10-2/+116
* config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update. * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise. * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Likewise. * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise. * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise. * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise. * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise. * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise. * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise. From-SVN: r196523
2013-03-06Filter out basever symbols on SolarisRainer Orth8-31/+23
* scripts/extract_symvers.pl: Omit symbols bound to base versions. * scripts/extract_symvers.in: Likewise. * config/abi/post/solaris2.9/baseline_symbols.txt: Regenerate. * config/abi/post/solaris2.9/sparcv9/baseline_symbols.txt: Likewise. * config/abi/post/solaris2.10/baseline_symbols.txt: Likewise. * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise. * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise. From-SVN: r196489
2013-03-04Fix and optimize von_mises_distribution class.Ulrich Drepper2-13/+20
From-SVN: r196436
2013-03-03Add math constants and triangular and von Mises distributions.Ulrich Drepper20-17/+1430
From-SVN: r196407
2013-03-01re PR libstdc++/56475 (Incorrect result of configure test for /dev/random ↵Kai Tietz2-6/+16
(_GLIBCXX_USE_RANDOM_TR1) for MinGW platform (and others?)) PR libstdc++/56475 * acinclude.m4 (GLIBCXX_CHECK_RANDOM_TR1): Disable check for mingw-targets. * configure: Regenerated. From-SVN: r196371
2013-03-01Update Solaris baselinesRainer Orth6-0/+66
* config/abi/post/solaris2.9/baseline_symbols.txt: Regenerate. * config/abi/post/solaris2.9/sparcv9/baseline_symbols.txt: Likewise. * config/abi/post/solaris2.10/baseline_symbols.txt: Likewise. * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise. * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise. From-SVN: r196370
2013-02-26re PR libstdc++/56012 ([C++11] Narrowing conversion in atomic_flag)Jonathan Wakely5-7/+83
PR libstdc++/56012 * include/bits/atomic_base.h (atomic_flag): Fix narrowing conversion. * testsuite/29_atomics/atomic/operators/56012.cc: New. PR libstdc++/56011 * include/std/atomic (atomic<bool>::operator=(bool) volatile): Add missing overload. * testsuite/29_atomics/atomic/operators/56011.cc: New. From-SVN: r196296
2013-02-25configure.ac: Check for __cxa_thread_atexit_impl.Jason Merrill5-0/+40
* configure.ac: Check for __cxa_thread_atexit_impl. * libsupc++/atexit_thread.cc (__cxa_thread_atexit): Just forward to it if available. * config.h.in, configure: Regenerate. From-SVN: r196276
2013-02-20streambuf (basic_streambuf): Use injected class name instead of non-standard ↵Jonathan Wakely2-13/+18
__streambuf_type typedef. * include/std/streambuf (basic_streambuf): Use injected class name instead of non-standard __streambuf_type typedef. Fix unclosed Doxygen group. From-SVN: r196185
2013-02-20faq.html: Fix spelling.Jonathan Wakely7-7/+16
* doc/html/faq.html: Fix spelling. * doc/xml/faq.xml: Likewise. * include/bits/basic_ios.h: Likewise. * include/bits/regex.h: Likewise. * include/std/istream: Likewise. * include/std/streambuf: Likewise. From-SVN: r196184
2013-02-2055043.cc: Add missing namespace qualification.Jonathan Wakely3-2/+8
* testsuite/23_containers/unordered_set/55043.cc: Add missing namespace qualification. * testsuite/23_containers/unordered_multiset/55043.cc: Likewise. From-SVN: r196183
2013-02-20user.cfg.in: Set __cplusplus to 201103L.Benjamin Kosnik12-75/+179
2013-02-19 Benjamin Kosnik <bkoz@redhat.com> * doc/doxygen/user.cfg.in: Set __cplusplus to 201103L. Change to _GLIBCXX_INCLUDE_AS_CXX11. DIRECTORY_GRAPH, MARKDOWN_SUPPORT, AUTOLINK_SUPPORT to NO. Update to doxygen 1.8.3.1. * include/bits/stl_pair.h: Add to utilities group. * include/std/tuple: Same. * include/std/typeindex: Same. * include/bits/stringfwd.h: Fix markup. * include/std/limits: Same. * include/std/type_traits: Same. * include/tr1/memory: Same. * include/tr1/regex: Same. * scripts/run_doxygen: Comment. * testsuite/20_util/uses_allocator/cons_neg.cc: Fixup line numbers. From-SVN: r196162
2013-02-14quick_exit.cc: #if out the whole test if unsupported.Jason Merrill2-2/+9
* testsuite/18_support/quick_exit/quick_exit.cc: #if out the whole test if unsupported. From-SVN: r196066
2013-02-13re PR libstdc++/56111 ({float,double,long double} complex not accepted anymore)Marc Glisse4-1/+51
2013-02-13 Marc Glisse <marc.glisse@inria.fr> PR libstdc++/56111 * include/std/complex (complex): Undefine. * include/c_compatibility/complex.h (complex): Only undefine if <complex> has been included. * testsuite/26_numerics/complex/56111.cc: New testcase. From-SVN: r196034
2013-02-13hashtable_policy.h (_Hash_code_base): Restore default constructor protected.François Dumont3-9/+17
2013-02-13 François Dumont <fdumont@gcc.gnu.org> * include/bits/hashtable_policy.h (_Hash_code_base): Restore default constructor protected. * include/bits/hashtable.h: static assert that _Hash_code_base has a default constructor available through inheritance. From-SVN: r196030
2013-02-12cstdlib (at_quick_exit, quick_exit): Provide in C++11 mode.Paolo Carlini2-0/+33
2013-02-12 Paolo Carlini <paolo.carlini@oracle.com> * include/c_std/cstdlib (at_quick_exit, quick_exit): Provide in C++11 mode. From-SVN: r195974
2013-02-1238081-1.cc (test01): Don't expect dots after abbreviated weekday names for ↵Julian Brown3-0/+26
ru_RU for glibc versions... libstdc++-v3/ * testsuite/22_locale/time_get/get_weekday/char/38081-1.cc (test01): Don't expect dots after abbreviated weekday names for ru_RU for glibc versions >= 2.17. * testsuite/22_locale/time_get/get_weekday/char/38081-2.cc (test01): Likewise. From-SVN: r195971
2013-02-12random.tcc (__transform): Remove.Paolo Carlini2-14/+23
2013-02-12 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/random.tcc (__transform): Remove. (__normalize): Add. (discrete_distribution<>::param_type::_M_initialize): Adjust. (piecewise_constant_distribution<>::param_type::_M_initialize): Likewise. (piecewise_linear_distribution<>::param_type::_M_initialize): Likewise. From-SVN: r195970
2013-02-12Makefile.am (hashtable_c++0x.lo, [...]): Use -fimplicit-templates.Benjamin Kosnik4-7/+22
2013-02-11 Benjamin Kosnik <bkoz@redhat.com> * src/c++11/Makefile.am (hashtable_c++0x.lo, hashtable_c++0x.o): Use -fimplicit-templates. * src/c++11/Makefile.in: Regenerate. * src/c++11/hashtable_c++0x.cc: Remove instantiation for std::lower_bound template. From-SVN: r195966
2013-02-11cstdlib (at_quick_exit, quick_exit): Do not declare.Paolo Carlini4-17/+38
2013-02-11 Paolo Carlini <paolo.carlini@oracle.com> * include/c_std/cstdlib (at_quick_exit, quick_exit): Do not declare. * include/c_global/cstdlib (at_quick_exit, quick_exit): Declare only in C++11 mode and if available in the underlying C library. * testsuite/18_support/quick_exit/quick_exit.cc: Compile with -std=gnu++11; check _GLIBCXX_HAVE_AT_QUICK_EXIT and _GLIBCXX_HAVE_QUICK_EXIT. From-SVN: r195961
2013-02-11*: Regenerate.Benjamin Kosnik108-1199/+1174
2013-02-11 Benjamin Kosnik <bkoz@redhat.com> * doc/html/*: Regenerate. From-SVN: r195959
2013-02-11linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE): New.Jason Merrill7-0/+1033
* linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE): New. (GLIBCXX_CHECK_STDLIB_SUPPORT): Check for atexit and at_quick_exit. * include/c_std/cstdlib: Add atexit and at_quick_exit. * include/c_global/cstdlib: Add atexit and at_quick_exit. * testsuite/18_support/quick_exit/quick_exit.cc: New. From-SVN: r195948
2013-02-11re PR libstdc++/56282 (std::basic_ios<char> broken with -std=c++11 ↵Paolo Carlini3-48/+23
(undefined reference)) 2013-02-11 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/56282 Revert: 2013-02-06 Edward Smith-Rowland <3dw4rd@verizon.net> PR libstdc++/56193 * include/bits/basic_ios.h: Replace operator void*() const with explicit operator bool() const in C++11 and greater. * testsuite/27_io/basic_ios/pr56193.cc: New file. From-SVN: r195939
2013-02-11containers.xml: Add section on unordered containers.François Dumont3-2/+88
2013-02-10 François Dumont <fdumont@gcc.gnu.org> Jonathan Wakely <jwakely.gcc@gmail.com> * doc/xml/manual/containers.xml: Add section on unordered containers. * doc/xml/manual/using.xml: Fix incomplete sentence. Co-Authored-By: Jonathan Wakely <jwakely.gcc@gmail.com> From-SVN: r195937
2013-02-11re PR libstdc++/56267 (unordered containers require Assignable hash function)Jonathan Wakely5-3/+56
PR libstdc++/56267 * include/bits/hashtable.h (__cache_default): Check if hash function is copy assignable. * testsuite/23_containers/unordered_set/56267.cc: New. * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust dg-error line number. * testsuite/23_containers/unordered_set/ not_default_constructible_hash_neg.cc: Likewise. From-SVN: r195936
2013-02-11re PR libstdc++/56278 (unordered containers fail static assertion)Jonathan Wakely3-7/+45
PR libstdc++/56278 * include/bits/hashtable_policy.h (_Hash_code_base): Make default constructor public. * testsuite/23_containers/unordered_set/56278.cc: New. From-SVN: r195935
2013-02-09bessel_function.tcc (__cyl_bessel_ij_series): Code simplification.François Dumont2-8/+7
2013-02-09 François Dumont <fdumont@gcc.gnu.org> * include/tr1/bessel_function.tcc (__cyl_bessel_ij_series): Code simplification. From-SVN: r195925
2013-02-08re PR libstdc++/56216 (TR1 bessel functions bomb at x == 0!)Edward Smith-Rowland13-131/+177
PR libstdc++/56216 From-SVN: r195886
2013-02-07pr56193.cc: Tweak.Paolo Carlini2-4/+7
2013-02-07 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/27_io/basic_ios/pr56193.cc: Tweak. From-SVN: r195852
2013-02-07Add the full Copyright blurb on the PR56193 test.Edward Smith-Rowland1-1/+19
From-SVN: r195851
2013-02-07PR56193 - Wrong test operator for basic_ios in C++11.Edward Smith-Rowland3-0/+26
From-SVN: r195849
2013-02-06Add missing explicit instantiation for std::lower_bound templateDodji Seketeli2-0/+13
Since commit r195676[1], it looks like libstdc++-v3/src/c++11/hashtable_c++0x.cc is missing an explicit instantiation for std::lower_bound. This leads to libstdc++.so having the symbol for that (missing) instantiation be undefined, thus preventing executables from being linked with libstdc++. The patchlet below seems to fixed the issue for me. Boostrapped and tested on x86_64-unknown-linux-gnu. [1]: commit bc36b44c7cb0e5e97ac807b8fb17507e0fb09008 Author: fdumont <fdumont@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Fri Feb 1 20:44:41 2013 +0000 2013-02-01 François Dumont <fdumont@gcc.gnu.org> * include/bits/hashtable_policy.h (_Prime_rehash_policy::_M_next_bkt) (_Prime_rehash_policy::_M_need_rehash): Move definition... * src/c++11/hashtable_c++0x.cc: ... here. * src/shared/hashtable-aux.cc: Remove c++config.h include. * config/abi/gnu.ver (GLIBCXX_3.4.18): Export _Prime_rehash_policy symbols. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195676 138bc75d-0d04-0410-961f-82ee72b054a4 libstdc++-v3/ChangeLog * libstdc++-v3/src/c++11/hashtable_c++0x.cc (namespace std): Add missing instantiation for std::lower_bound template. From-SVN: r195783
2013-02-04functional_hash.h (std::__is_fast_hash<>): New.François Dumont7-5/+46
2013-02-04 François Dumont <fdumont@gcc.gnu.org> * include/bits/functional_hash.h (std::__is_fast_hash<>): New. * include/bits/basic_string.h: Specialize previous to mark std::hash for string types as slow. * include/bits/hashtable.h (__cache_default): Replace is_integral with __is_fast_hash. * src/c++11/hash_c++0x.cc: Add type_traits include. * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adapt dg-error line number. * testsuite/23_containers/unordered_set/ not_default_constructible_hash_neg.cc: Likewise. From-SVN: r195738
2013-02-04PR libstdc++/56202 (again)Manuel López-Ibáñez3-7/+13
2013-02-04 Manuel López-Ibáñez <manu@gcc.gnu.org> Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/56202 (again) * include/bits/random.tcc (binomial_distribution<>:: _M_waiting(_UniformRandomNumberGenerator&, _IntType)): Fix thinko in previous commit. * include/bits/random.h: Fix comment typo. Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com> From-SVN: r195732
2013-02-04re PR libstdc++/56202 (SIGFPE (division by zero) in std::binomial_distribution)Manuel López-Ibáñez2-0/+14
2013-02-04 Manuel López-Ibáñez <manu@gcc.gnu.org> Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/56202 * include/bits/random.tcc (binomial_distribution<>:: _M_waiting(_UniformRandomNumberGenerator&, _IntType)): Avoid division by zero. Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com> From-SVN: r195722
2013-02-03Update copyright in libstdc++-v3.Richard Sandiford6550-7497/+6594
From-SVN: r195701