summaryrefslogtreecommitdiff
path: root/libstdc++-v3
Commit message (Collapse)AuthorAgeFilesLines
* 2012-10-09 Daniel Krugler <daniel.kruegler@googlemail.com>paolo2012-10-0915-71/+630
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/std/type_traits (common_time): Provide "SFINAE-friendly" implementation. (__success_type, __failure_type): Fix. * include/std/chrono (common_type): Likewise for the chrono::time_point specialization. * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: New. * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc: Likewise. * testsuite/20_util/duration/requirements/sfinae_friendly_1.cc: Likewise. * testsuite/20_util/common_type/requirements/typedefs-1.cc: Adjust wrt LWG 2141. * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Adjust dg-error line numbers. * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise. * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise. * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Likewise. * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Likewise. * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. * testsuite/20_util/result_of/sfinae_friendly_1.cc: Trivial stylistic tweaks. * testsuite/20_util/result_of/sfinae_friendly_2.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192276 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-09 Andrew MacLeod <amacleod@redhat.com>amacleod2012-10-092-1/+7
| | | | | | | | | | PR libstdc++/54861 * include/bits/atomic_base.h (atomic_signal_fence): Call __atomic_signal_fence instead of __atomic_thread_fence. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192268 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-09 Benjamin Kosnik <bkoz@redhat.com>bkoz2012-10-092-1/+6
| | | | | | | * testsuite/20_util/specialized_algorithms/uninitialized_copy/808590.cc: Fix constant value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192265 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-10-0914-8/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR libstdc++/54869 * include/ext/random (simd_fast_mersenne_twister_engine): Provide only for little endian targets. * include/ext/random.tcc: Likewise. * config/cpu/i486/opt/ext/opt_random.h: Likewise. * testsuite/lib/libstdc++.exp (check_v3_target_little_endian): Add. * testsuite/lib/dg-options.exp (dg-require-little-endian): Add. * testsuite/ext/random/simd_fast_mersenne_twister_engine/ operators/equal.cc: Use the latter. * testsuite/ext/random/simd_fast_mersenne_twister_engine/ operators/serialize.cc: Likewise. * testsuite/ext/random/simd_fast_mersenne_twister_engine/ operators/inequal.cc: Likewise. * testsuite/ext/random/simd_fast_mersenne_twister_engine/ cons/copy.cc: Likewise. * testsuite/ext/random/simd_fast_mersenne_twister_engine/ cons/seed1.cc: Likewise. * testsuite/ext/random/simd_fast_mersenne_twister_engine/ cons/seed2.cc: Likewise. * testsuite/ext/random/simd_fast_mersenne_twister_engine/ cons/default.cc: Likewise. * testsuite/ext/random/simd_fast_mersenne_twister_engine/ cons/seed_seq.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192256 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/54754redi2012-10-092-127/+49
| | | | | | | * include/parallel/compatibility.h: Use atomic built-ins when they are lock-free. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192240 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/util/testsuite_abi.cc (check_version): Add CXXABI_1.3.7.uros2012-10-092-1/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192237 138bc75d-0d04-0410-961f-82ee72b054a4
* Support C++11 thread_local destructors.jason2012-10-086-1/+163
| | | | | | | | | | | | | gcc/cp/ * decl.c (get_thread_atexit_node): New. (register_dtor_fn): Use it for TLS. libstdc++-v3/ * libsupc++/cxxabi.h: Declare __cxa_thread_atexit. * libsupc++/atexit_thread.cc: New. * libsupc++/Makefile.am (nested_exception.lo): Add it. * config/abi/pre/gnu.ver: Add __cxa_thread_atexit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192210 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-07 Matthias Klose <doko@ubuntu.com>doko2012-10-071-0/+6
| | | | | | | | | * testsuite/28_regex/algorithms/match/basic: Remove empty directory. * testsuite/28_regex/algorithms/match/extended: Likewise. * testsuite/28_regex/algorithms/match: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192180 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-06 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-10-062-18/+7
| | | | | | | | | | | | | | | | | | | | | | | | PR c++/52764 * ginclude/stdint-wrap.h: In C++11 if __STDC_HOSTED__ define __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS. * ginclude/stdint-gcc.h: In C++11 unconditionally define limit and constant macros. /testsuite 2012-10-06 Paolo Carlini <paolo.carlini@oracle.com> PR c++/52764 * g++.dg/cpp0x/stdint.C: New. /libstdc++-v3 2012-10-06 Paolo Carlini <paolo.carlini@oracle.com> PR c++/52764 * include/c_global/cstdint: Remove __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS related macros. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192174 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-06 Joe Seymour <jseymour@codesourcery.com>paolo2012-10-062-2/+6
| | | | | | | * include/tr2/dynamic_bitset: Fix cxxabi_forced.h include path. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192154 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-05 Benjamin Kosnik <bkoz@redhat.com>bkoz2012-10-0514-0/+191
| | | | | | | | | | | * testsuite/28_regex/algorithms/match: Rename to... * testsuite/28_regex/algorithms/regex_match: ...this. * testsuite/28_regex/basic_regex/regex.cc: Rename to... * testsuite/28_regex/basic_regex/ctors/basic/default.cc: ...this. * testsuite/util/testsuite_regex.h: New. * testsuite/28_regex/basic_regex/ctors/basic/raw_string.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192146 138bc75d-0d04-0410-961f-82ee72b054a4
* cp/jakub2012-10-052-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cp-tree.h (SIZEOF_EXPR_TYPE_P): Define. * tree.c (cp_tree_equal): Handle SIZEOF_EXPR with SIZEOF_EXPR_TYPE_P. * mangle.c (write_expression): Likewise. * cxx-pretty-print.c (pp_cxx_unary_expression): Likewise. * error.c (dump_expr): Likewise. * parser.c (cp_parser_unary_expression): For sizeof call cxx_sizeof_or_alignof_{type,expr} just for diagnostics and return SIZEOF_EXPR with the operand. * pt.c (tsubst_copy, tsubst_copy_and_build): For SIZEOF_EXPR, call cxx_sizeof_or_alignof_{type,expr} for diagnostics, but return SIZEOF_EXPR with tsubsted operand. (value_dependent_expression_p): Handle SIZEOF_EXPR with SIZEOF_EXPR_TYPE_P. (instantiation_dependent_r): Likewise. * call.c (null_ptr_cst_p): Call maybe_constant_value for C++98. * semantics.c (finish_call_expr): Call sizeof_pointer_memaccess_warning if needed. (cxx_eval_constant_expression): Handle SIZEOF_EXPR. (potential_constant_expression_1): Remove early exit for C++98. Handle PROPERTY_REF. * decl.c (duplicate_decls): When redeclaring a builtin function, keep the merged decl builtin also if newdecl is a gnu_inline inline definition. (fold_sizeof_expr_r): New function. (compute_array_index_type): Fold SIZEOF_EXPRs in itype. * cp-gimplify.c (cp_genericize_r): Fold SIZEOF_EXPR. * typeck.c (cp_build_binary_op): For warn_for_sign_compare try harder using maybe_constant_value to get INTEGER_CSTs. * decl.c (stabilize_vla_size): Call pointer_set_destroy at the end. testsuite/ * g++.dg/torture/Wsizeof-pointer-memaccess1.C: New test. * g++.dg/torture/Wsizeof-pointer-memaccess2.C: New test. * g++.dg/warn/Wsign-compare-5.C: New test. * g++.dg/warn/Wsizeof-pointer-memaccess-1.C: New test. * g++.dg/warn/Wnull-conversion-1.C: For c++11 add dg-error. * g++.dg/ext/builtin30.C: New test. * g++.dg/ext/vla12.C: New test. * gcc.dg/builtins-85.c: New test. libstdc++-v3/ * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line numbers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192141 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-05 Marc Glisse <marc.glisse@inria.fr>glisse2012-10-052-5/+19
| | | | | | | | | | | | PR libstdc++/54686 * include/c_global/cstdlib (abs(long long)): Define with __builtin_llabs when we have long long. (abs(long)): Use __builtin_labs. (abs(__int128)): Define when we have __int128. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192138 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-05 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-10-055-61/+13
| | | | | | | | | | | | * include/c_global/cstdlib: Remove redundant pasto code protected by __GXX_EXPERIMENTAL_CXX0X__. * include/c_global/cwctype: Likewise. * include/c_global/ccomplex: Remove uses of obsolete macro _GLIBCXX_INCLUDE_AS_TR1. * include/c_global/cfloat: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192137 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-05 Marc Glisse <marc.glisse@inria.fr>glisse2012-10-053-5/+52
| | | | | | | | | | | | | PR libstdc++/54686 * include/c_std/cstdlib (abs(long long)): Define with __builtin_llabs when we have long long. (abs(long)): Use __builtin_labs. (abs(__int128)): Define when we have __int128. * testsuite/26_numerics/headers/cstdlib/54686.c: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192132 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-03 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-10-046-31/+103
| | | | | | | | | | | | | | | | | | PR libstdc++/53248 * include/std/array (__array_traits<>): Add. (array<>): Allow for zero-size arrays of non default-constructible elements. * testsuite/23_containers/array/requirements/ non_default_constructible.cc: New. * testsuite/23_containers/array/requirements/zero_sized_arrays.cc: Adjust. * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust dg-error line numbers. * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192056 138bc75d-0d04-0410-961f-82ee72b054a4
* libgcc:redi2012-10-023-76/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR other/53889 * gthr.h (__gthread_recursive_mutex_destroy): Document new required function. * gthr-posix.h (__gthread_recursive_mutex_destroy): Define. * gthr-single.h (__gthread_recursive_mutex_destroy): Likewise. * config/gthr-rtems.h (__gthread_recursive_mutex_destroy): Likewise. * config/gthr-vxworks.h (__gthread_recursive_mutex_destroy): Likewise. * config/i386/gthr-win32.h (__gthread_recursive_mutex_destroy): Likewise. * config/mips/gthr-mipssde.h (__gthread_recursive_mutex_destroy): Likewise. * config/pa/gthr-dce.h (__gthread_recursive_mutex_destroy): Likewise. * config/s390/gthr-tpf.h (__gthread_recursive_mutex_destroy): Likewise. libstdc++-v3: PR other/53889 * include/std/mutex (__recursive_mutex_base::~__recursive_mutex_base): Use __gthread_recursive_mutex_destroy. (__recursive_mutex_base::_S_destroy): Remove. (__recursive_mutex_base::_S_destroy_win32): Likewise. * include/ext/concurrence.h (__recursive_mutex::~__recursive_mutex): Use __gthread_recursive_mutex_destroy. (__recursive_mutex::_S_destroy): Remove. (__recursive_mutex::_S_destroy_win32): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192002 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-01 Benjamin Kosnik <bkoz@redhat.com>bkoz2012-10-012-0/+8
| | | | | | | * config/abi/pre/gnu-versioned-namespace.ver: Add more typeinfo/vtable exports. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191949 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-01 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-10-013-0/+20
| | | | | | | | | | | PR libstdc++/54757 * include/ext/random (rice_distribution<>::operator()): Use std::hypot only if _GLIBCXX_USE_C99_MATH_TR1. * include/ext/random.tcc (rice_distribution<>::__generate_impl): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191944 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-01 Daniel Krugler <daniel.kruegler@googlemail.com>paolo2012-10-017-81/+984
| | | | | | | | | | | | | | | * include/std/type_traits (result_of): Provide "SFINAE-friendly" (see N3436) implementation. * testsuite/20_util/result_of/sfinae_friendly_1.cc: New. * testsuite/20_util/result_of/sfinae_friendly_2.cc: Likewise. * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Tweak dg-error line numbers. * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Likewise. * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191930 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-09-30 Benjamin Kosnik <bkoz@redhat.com>bkoz2012-09-302-56/+69
| | | | | | * doc/doxygen/user.cfg.in: Update to doxygen 1.8.2. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191876 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/ext/ropeimpl.h (__uninitialized_fill_n_a): Fix usingredi2012-09-303-1/+33
| | | | | | | declaration. * testsuite/ext/rope/5.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191869 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/54577redi2012-09-3049-207/+284
| | | | | | | | * doc/xml/manual/status_cxx2011.xml: N2350 changes are missing from sequence containers. * doc/html/*: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191866 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix ChangeLog dateredi2012-09-291-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191857 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/34106redi2012-09-292-169/+19
| | | | | | * include/parallel/compatibility.h: Remove non-GCC code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191856 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-09-28 Benjamin Kosnik <bkoz@redhat.com>bkoz2012-09-2916-31/+52
| | | | | | | | | | | | | | | | | | | | | | * fragment.am (CONFIG_CXXFLAGS): Remove EXTRA_CXX_FLAGS. * libsupc++/Makefile.am (LTCXXCOMPILE): Add EXTRA_CXX_FLAGS here. * src/Makefile.am: Same. * src/c++98/Makefile.am: Same. * src/c++11/Makefile.am: Same. * Makefile.in: Regenerated. * src/Makefile.am: Same. * src/c++11/Makefile.in: Same. * src/c++98/Makefile.in: Same. * include/Makefile.in: Same. * po/Makefile.in: Same. * python/Makefile.in: Same. * testsuite/Makefile.in: Same. 2012-09-28 Benjamin Kosnik <bkoz@redhat.com> * src/c++98/Makefile.am: Fixup PARALLEL_FLAGS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191847 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-09-28 Benjamin Kosnik <bkoz@redhat.com>bkoz2012-09-2823-582/+239
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * acinclude.m4 (GLIBCXX_ENABLE_PARALLEL): Remove ENABLE_PARALLEL. * include/Makefile.am: Same. * src/c++98/Makefile.am: Same. * src/Makefile.am: Same. * Makefile.in: Regenerated. * aclocal.m4: Same. * configure: Same. * doc/Makefile.in: Same. * include/Makefile.in: Same. * libsupc++/Makefile.in: Same. * po/Makefile.in: Same. * python/Makefile.in: Same. * src/Makefile.in: Same. * testsuite/Makefile.in: Same. * src/c++11/Makefile.in: Same. * src/c++98/Makefile.in: Same. * src/c++98/compatibility-debug_list-2.cc: Update comments. * src/c++98/compatibility-debug_list.cc: Same. * src/c++98/compatibility-list-2.cc: Renamed to src/c++98/list-aux-2.cc * src/c++98/compatibility-list.cc: Renamed to src/c++98/list-aux.cc * src/c++98/compatibility-parallel_list-2.cc: Renamed to src/c++98/list_associated-2.cc. * src/c++98/compatibility-parallel_list.cc: Renamed to src/c++98/list_associated.cc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191837 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-09-27 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-09-272-1/+6
| | | | | | | | PR libstdc++/54727 * config/cpu/i486/opt/bits/opt_random.h: Avoid UINT64_C. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191806 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-09-26 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-09-272-1/+14
| | | | | | | * include/ext/random: Add include checks for c++11 and <cstdint>. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191792 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-09-26 Benjamin Kosnik <bkoz@redhat.com>bkoz2012-09-273-16/+37
| | | | | | | | PR libstdc++/54314 * config/abi/pre/gnu.ver: Add vtable exports. * config/abi/pre/gnu-versioned-namespace.ver: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191788 138bc75d-0d04-0410-961f-82ee72b054a4
* Correct truncation on last checkin.bkoz2012-09-271-3/+171
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191787 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-09-26 Akira Takahashi <faithandbrave@gmail.com>paolo2012-09-262-2/+9
| | | | | | | | | PR libstdc++/53515 * include/bits/stl_iterator_base_funcs.h (__advance(_InputIterator&, _Distance, input_iterator_tag)): Add _GLIBCXX_DEBUG_ASSERT(__n >= 0). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191784 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-09-26 Ulrich Drepper <drepper@gmail.com>drepper2012-09-2622-300/+764
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Optimize bulk mode for normal_distribution<double> for SSE3. * configure.host: Define cpu_opt_bits_random. * configure.ac: Substitute CPU_OPT_BITS_RANDOM. * include/Makefile.am (bits_headers): Add ${bits_host_headers}. (bits_host_headers): Define. * include/bits/random.tcc: Move __details::_Power_of_2 to... * include/bits/random.h: ...here. * include/std/random: Include <bits/opt_random.h>. * config/cpu/i486/opt/bits/opt_random.h: New file. * config/cpu/generic/opt/bits/opt_random.h: New file. * configure: Regenerated. * Makefile.in: Regenerated. * aclocal.m4: Regenerated. * doc/Makefile.in: Regenerated. * include/Makefile.in: Regenerated. * libsupc++/Makefile.in: Regenerated. * po/Makefile.in: Regenerated. * python/Makefile.in: Regenerated. * src/Makefile.in: Regenerated. * src/c++11/Makefile.in: Regenerated. * src/c++98/Makefile.in: Regenerated. * testsuite/Makefile.in: Regenerated. * config/cpu/generic/opt/ext/opt_random.h: Fix comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191758 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-09-25 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-09-252-3/+6
| | | | | | | * doc/xml/manual/status_cxx2011.xml: Update vs PR 44436. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191695 138bc75d-0d04-0410-961f-82ee72b054a4
* Implement the K-distribution as an extension.emsr2012-09-2510-0/+653
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191688 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-09-24 François Dumont <fdumont@gcc.gnu.org>fdumont2012-09-2420-116/+1277
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR libstdc++/44436 * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_): Take _Base_ptr rather than _Const_Base_ptr. (_Rb_tree<>::_M_insert_node): New. (_Rb_tree<>::_M_get_insert_unique_pos): New, search code of _M_insert_unique method. (_Rb_tree<>::_M_insert_unique): Use latter. (_Rb_tree<>::_M_emplace_unique): New, likewise. (_Rb_tree<>::_M_get_insert_equal_pos): New, search code of _M_insert_equal method. (_Rb_tree<>::_M_insert_equal): Use latter. (_Rb_tree<>::_M_emplace_equal): New, likewise. (_Rb_tree<>::_M_get_insert_hint_unique_pos): New, search code of _M_insert_unique_ method. (_Rb_tree<>::_M_insert_unique_): Use latter. (_Rb_tree<>::_M_emplace_hint_unique): New, likewise. (_Rb_tree<>::_M_get_insert_hint_equal_pos): New, search code of _M_insert_equal_ method. (_Rb_tree<>::_M_insert_equal_): Use latter. (_Rb_tree<>::_M_emplace_hint_equal): New, likewise. (_Rb_tree<>::_M_insert_lower): Remove first _Base_ptr parameter, useless as always null. * include/bits/stl_map.h: Include <tuple> in C++11. (map<>::operator[](const key_type&)): Use _Rb_tree<>::_M_emplace_hint_unique in C++11. (map<>::operator[](key_type&&)): Likewise. (map<>::emplace): New. (map<>::emplace_hint): New. * include/bits/stl_multimap.h (multimap<>::emplace): New. (multimap<>::emplace_hint): New. * include/bits/stl_set.h (set<>::emplace): New. (set<>::emplace_hint): New. * include/bits/stl_multiset.h (multiset<>::emplace): New. (multiset<>::emplace_hint): New. * include/debug/map.h (std::__debug::map<>::emplace): New. (std::__debug::map<>::emplace_hint): New. * include/debug/multimap.h (std::__debug::multimap<>::emplace): New. (std::__debug::multimap<>::emplace_hint): New. * include/debug/set.h (std::__debug::set<>::emplace): New. (std::__debug::set<>::emplace_hint): New. * include/debug/multiset.h (std::__debug::multiset<>::emplace): New. (std::__debug::multiset<>::emplace_hint): New. * include/profile/map.h (std::__profile::map<>::emplace): New. (std::__profile::map<>::emplace_hint): New. * include/profile/multimap.h (std::__profile::multimap<>::emplace): New. (std::__profile::multimap<>::emplace_hint): New. * include/profile/set.h (std::__profile::set<>::emplace): New. (std::__profile::set<>::emplace_hint): New. * include/profile/multiset.h (std::__profile::multiset<>::emplace): New. (std::__profile::multiset<>::emplace_hint): New. * testsuite/util/testsuite_container_traits.h: Signal that emplace and emplace_hint are available on std::map, std::multimap, std::set and std::multiset in C++11. * testsuite/23_containers/map/operators/2.cc: New. * testsuite/23_containers/map/modifiers/emplace/1.cc: New. * testsuite/23_containers/multimap/modifiers/emplace/1.cc: New. * testsuite/23_containers/set/modifiers/emplace/1.cc: New. * testsuite/23_containers/multiset/modifiers/emplace/1.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191679 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-09-24 François Dumont <fdumont@gcc.gnu.org>fdumont2012-09-242-5/+12
| | | | | | | | * testsuite/performance/23_containers/insert_erase/41975.cc: Use __uset_hashtable rather than removed __unordered_set. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191678 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-09-23 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-09-232-6/+27
| | | | | | | | | | Revert: 2012-09-21 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/stl_algobase.h (max, min): Use conditional operator. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191652 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/54675uros2012-09-233-32/+39
| | | | | | | | | | * include/ext/random: Avoid the badname __alpha (and, for consistency, __mu, __nu, __sigma and __omega too). * include/bits/random.tcc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191650 138bc75d-0d04-0410-961f-82ee72b054a4
* Implement the Pareto distribution as an extension.emsr2012-09-2110-5/+617
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191612 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-09-21 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-09-212-20/+10
| | | | | | | * include/bits/stl_algobase.h (max, min): Use conditional operator. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191608 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-09-18 Benjamin Kosnik <bkoz@redhat.com>bkoz2012-09-2026-356/+640
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR libstdc++/28811 PR libstdc++/54482 * configure.ac (glibcxx_lt_pic_flag, glibcxx_compiler_pic_flag, glibcxx_compiler_shared_flag): New. Use them. (lt_prog_compiler_pic_CXX): Set via glibcxx_*_flag(s) above. (pic_mode): Set to default. (PIC_CXXFLAGS): Remove. * Makefile.am (PICFLAG, PICFLAG_FOR_TARGET): Remove. Comment. * libsupc++/Makefile.am: Use glibcxx_ld_pic_flag and glibcxx_compiler_shared_flag. Comment. * src/c++11/Makefile.am: Same. * src/c++98/Makefile.am: Same. * src/Makefile.am: Use glibcxx_compiler_pic_flag. * Makefile.in: Regenerated. * aclocal.m4: Same. * configure: Same. * doc/Makefile.in: Same. * include/Makefile.in: Same. * libsupc++/Makefile.in: Same. * po/Makefile.in: Same. * python/Makefile.in: Same. * src/Makefile.in: Same. * src/c++11/Makefile.in: Same. * src/c++98/Makefile.in: Same. * testsuite/Makefile.in: Same. * src/c++11/compatibility-atomic-c++0x.cc: Use _GLIBCXX_SHARED instead of PIC to designate shared-only code blocks. * src/c++11/compatibility-c++0x.cc: Same. * src/c++11/compatibility-thread-c++0x.cc: Same. * src/c++98/compatibility-list-2.cc: Same. * src/c++98/compatibility.cc: : Same. * testsuite/17_intro/shared_with_static_deps.cc: New. * doc/xml/manual/build_hacking.xml: Separate configure from make/build issues, add build details. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191509 138bc75d-0d04-0410-961f-82ee72b054a4
* Implement the Nakagami statistical distribution as an extension.emsr2012-09-1810-0/+598
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191434 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-09-18 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-09-183-1/+17
| | | | | | | | | | | | PR libstdc++/54612 * include/ext/random.tcc (operator== (const __gnu_cxx::simd_fast_mersenne_twister_engine<>&, const __gnu_cxx::simd_fast_mersenne_twister_engine<>&)): Fix state_size use. * config/cpu/i486/opt/ext/opt_random.h: Guard with __SSE2__. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191424 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac: Substitute CPU_OPT_EXT_RANDOM.drepper2012-09-1720-206/+493
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.host: Define cpu_opt_ext_random to location of the optimized version of <ext/random>. * include/Makefile.am (ext_headers): Add ${ext_host_headers}. (ext_host_headers): Define. * include/ext/random (simd_fast_mersenne_twister_engine<> ::operator==): Don't define function here. * include/ext/random.tcc (simd_fast_mersenne_twister_engine): Don't define code using SSE2 here. Define generic code only if _GLIBCXX_OPT_HAVE_RANDOM_SFMT_GEN_READ is not defined. (simd_fast_mersenne_twister_engine<> ::operator==): Define here if _GLIBCXX_OPT_HAVE_RANDOM_SFMT_OPERATOREQUAL is not defined. * config/cpu/generic/opt/ext/opt_random.h: New file. * config/cpu/i486/opt/ext/opt_random.h: New file. * libsupc++/Makefile.in: Regenerated. * testsuite/Makefile.in: Regenerated. * po/Makefile.in: Regenerated. * configure: Regenerated. * Makefile.in: Regenerated. * doc/Makefile.in: Regenerated. * aclocal.m4: Regenerated. * python/Makefile.in: Regenerated. * include/Makefile.in: Regenerated. * src/c++98/Makefile.in: Regenerated. * src/c++11/Makefile.in: Regenerated. * src/Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191384 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix a paste-o in ext/random.tcc - declared an Adapted urng that was not used ↵emsr2012-09-172-3/+5
| | | | | | ot needed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191371 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-09-16 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-09-1631-9/+53
| | | | | | | | | | | | | | | | | | | | * include/ext/random (rice_distribution<>::operator==): Change inline friend definition to non-template. * testsuite/ext/random/rice_distribution/requirements/ explicit_instantiation/1.cc: New. * testsuite/26_numerics/random/normal_mv_distribution: Move... * testsuite/ext/random/normal_mv_distribution: ... here. * testsuite/26_numerics/random/simd_fast_mersenne_twister_engine: Move... * testsuite/ext/random/simd_fast_mersenne_twister_engine: ... here. * testsuite/26_numerics/random/beta_distribution: Move... * testsuite/ext/random/beta_distribution: ... here. * testsuite/26_numerics/random/rice_distribution: Move... * testsuite/ext/random/rice_distribution: ... here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191367 138bc75d-0d04-0410-961f-82ee72b054a4
* Add the rice distribution as an extension.emsr2012-09-169-15/+618
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191362 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure: Regenerated.dje2012-09-142-10/+16
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191330 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-09-14 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-09-141-2/+1
| | | | | | | * Tweak last ChangeLog entry. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191296 138bc75d-0d04-0410-961f-82ee72b054a4