aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
AgeCommit message (Collapse)AuthorFilesLines
2010-05-07exception_ptr.h (make_exception_ptr): Add.Jonathan Wakely3-0/+51
2010-05-07 Jonathan Wakely <jwakely.gcc@gmail.com> * libsupc++/exception_ptr.h (make_exception_ptr): Add. * testsuite/18_support/exception_ptr/make_exception_ptr.cc: New. From-SVN: r159144
2010-05-06gnu.ver: Move decltype(nullptr) into CXXABI_1.3.5.Jason Merrill3-4/+17
* config/abi/pre/gnu.ver: Move decltype(nullptr) into CXXABI_1.3.5. * testsuite/util/testsuite_abi.cc (check_version): Add CXXABI_1.3.5. From-SVN: r159136
2010-05-06Add support for C++0x nullptr.Jason Merrill2-7/+8
gcc: * c-common.c (c_common_reswords): Add nullptr. * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids. * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE. (gen_type_die_with_usage): Likewise. * dbxout.c (dbxout_type): Likewise. * sdbout.c (plain_type_1): Likewise. gcc/cp: * cp-tree.def: Add NULLPTR_TYPE. * cp-tree.h: Add nullptr_node. (cp_tree_index): Add CPTI_NULLPTR. (SCALAR_TYPE_P): Add NULLPTR_TYPE. * call.c (null_ptr_cst_p): Handle nullptr. (standard_conversion): Likewise. (convert_arg_to_ellipsis): Likewise. * mangle.c (write_type): Likewise. * name-lookup.c (arg_assoc_type): Likewise. * parser.c (cp_parser_primary_expression): Likewise. * typeck.c (cp_build_binary_op): Likewise. (build_reinterpret_cast_1): Likewise. * error.c (dump_type): Likewise. (dump_type_prefix, dump_type_suffix): Likewise. * decl.c (cxx_init_decl_processing): Likewise. * cxx-pretty-print.c (pp_cxx_constant): Likewise. * cvt.c (ocp_convert): Likewise. * rtti.c (typeinfo_in_lib_p, emit_support_tinfos): Put nullptr_t tinfo in libsupc++. libstdc++-v3: * config/abi/pre/gnu.ver: Add typeinfo for decltype(nullptr). libiberty: * cp-demangle.c (cplus_demangle_builtin_types): Add nullptr. (cplus_demangle_type): Handle nullptr. From-SVN: r159131
2010-05-06basic_string.h: Escape class names in doxygen docs.Jonathan Wakely2-10/+14
2010-05-06 Jonathan Wakely <jwakely.gcc@gmail.com> * include/bits/basic_string.h: Escape class names in doxygen docs. From-SVN: r159129
2010-05-06re PR libstdc++/44014 (no std::string in API documentation)Jonathan Wakely4-7/+23
2010-05-06 Jonathan Wakely <jwakely.gcc@gmail.com> PR libstdc++/44014 * include/bits/stringfwd.h: Add doxygen comments and new group. * include/bits/basic_string.h: Add to new doxygen group. * doc/doxygen/user.cfg.in (ALIASES): Link to correct group. From-SVN: r159126
2010-05-06config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from list of ↵Rainer Orth6-271/+6
obsolete configurations. gcc: * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from list of obsolete configurations. Disabled check for obsolete configurations. (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*. Removed support for previous versions. * config/mips/iris.h: Removed. * config/mips/iris5.h: Removed. * config/mips/iris6.h: Merged old iris.h contents. (TARGET_IRIX): Removed. (DRIVER_SELF_SPECS): Removed mabi=32. (IDENT_ASM_OP): Removed undef. (STARTFILE_SPEC): Removed mabi=32. (ENDFILE_SPEC): Likewise. (IRIX_SUBTARGET_LINK_SPEC): Likewise. (MACHINE_TYPE): Update for IRIX 6.5. * config/mips/mips.c (mips_build_builtin_va_list): Replaced TARGET_IRIX by TARGET_IRIX6. (mips_file_start): Likewise. (mips_output_external): Remove IRIX 5/6 O32 support. (mips_output_function_prologue): Likewise. * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by TARGET_IRIX6. (TARGET_CPU_CPP_BUILTINS): Likewise. (TARGET_IRIX): Removed. * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32. (MULTILIB_DIRNAMES): Removed 32. (MULTILIB_OSDIRNAMES): Removed ../lib. * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5. (Specific, mips-sgi-irix5): Document removal. (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal. Remove references to older IRIX 6 releases and the O32 ABI. gcc/ada: * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support. libstdc++-v3: * configure.host: Removed irix[1-6], irix[1-5].*, irix6.[0-4]* support. * config/os/irix/irix5.2: Removed. From-SVN: r159121
2010-05-0529134.cc: Adjust for profile-mode too.Paolo Carlini5-98/+118
2010-05-05 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/23_containers/vector/bool/capacity/29134.cc: Adjust for profile-mode too. * testsuite/23_containers/vector/bool/modifiers/insert/31370.cc: Likewise. 2010-05-05 Paolo Carlini <paolo.carlini@oracle.com> * include/profile/unordered_map (unordered_map<>::insert(_InputIter, _InputIter), unordered_multimap<>::insert(_InputIter, _InputIter)): Fix typo, don't call base() on __first and __last. 2010-05-05 Paolo Carlini <paolo.carlini@oracle.com> Fix profile-mode vs -std=c++0x * include/profile/impl/profiler_trace.h: Do not include the whole <algorithm>, include <bits/stl_heap.h> (additionally to <bits/stl_algobase.h>). (__write_cost_factors): Replace std::for_each with open-coding. (__set_cost_factors): Likewise. (__report): Likewise; use std::make_heap / std::sort_heap instead of std::sort. (__report_cost_factors): Replace std::remove with open-coding. (__warn, __cost_factor_writer, __cost_factor_setter): Remove. From-SVN: r159082
2010-05-04no-dist in non-imported automake dirs.Ralf Wildenhues11-592/+110
libgfortran/: PR other/43620 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. * configure: Regenerate. * Makefile.in: Regenerate. libgomp/: PR other/43620 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. * configure: Regenerate. * Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. libjava/: PR other/43620 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. * Makefile.in: Regenerate. * gcj/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. libjava/libltdl/: PR other/43620 * Makefile.am (AUTOMAKE_OPTIONS): Add no-dist. * Makefile.in: Regenerate. libmudflap/: PR other/43620 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. * Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. libssp/: PR other/43620 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. * Makefile.in: Regenerate. libstdc++-v3/: PR other/43620 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. * configure: Regenerate. * Makefile.in: Regenerate. * doc/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * libsupc++/Makefile.in: Regenerate. * po/Makefile.in: Regenerate. * python/Makefile.in: Regenerate. * src/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. lto-plugin/: PR other/43620 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. * Makefile.in: Regenerate. From-SVN: r159041
2010-05-01faq.xml: Fix anachronisms.Jonathan Wakely7-13/+19
2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com> * doc/xml/faq.xml: Fix anachronisms. * doc/xml/manual/intro.xml (Make): Tweak grammar and whitespace. * doc/xml/manual/support.xml (NULL): Use inline <code> element instead of <programlisting> block. * doc/html/*: Regenerate. From-SVN: r158964
2010-04-30stl_pair.h (piecewise_construct_t, [...]): Add.Paolo Carlini12-65/+326
2010-04-30 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/stl_pair.h (piecewise_construct_t, pair<>::pair(piecewise_construct_t, tuple, tuple)): Add. (pair<>::__cons, pair<>::__do_cons): Declare. (__decay_and_strip, __strip_reference_wrapper): Move... * include/std/type_traits: ... here. * include/std/functional (_Index_tuple, _Build_index_tuple): Move... * include/std/tuple: ... here. (pack_arguments): Add. (pair<>::__cons, pair<>::__do_cons): Define. * testsuite/20_util/tuple/creation_functions/pack_arguments.cc: New. * testsuite/20_util/pair/piecewise.cc: Likewise. * testsuite/20_util/tuple/cons/big_tuples.cc: Include <utility>. * testsuite/20_util/tuple/cons/constructor.cc: Likewise. * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust dg-error line numbers. * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Likewise. * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. From-SVN: r158928
2010-04-27re PR libstdc++/43865 (C++ in freestanding environment)Jonathan Wakely2-2/+7
2010-04-27 Jonathan Wakely <jwakely.gcc@gmail.com> PR libstdc++/43865 * include/c_global/cstdlib (abort, exit): _GLIBCXX_NORETURN typo. From-SVN: r158812
2010-04-27status_cxx200x.xml: Update quick_exit status.Jonathan Wakely42-149/+154
2010-04-27 Jonathan Wakely <jwakely.gcc@gmail.com> * doc/xml/manual/status_cxx200x.xml: Update quick_exit status. * doc/html/*: Regenerate. From-SVN: r158804
2010-04-27re PR c++/42844 (const variable requires initializer / no explicitly ↵Fabien Chêne4-2/+22
declared default constructor) PR c++/42844 * decl.c (check_for_uninitialized_const_var): Handle classes that need constructing, too. (check_initializer): Call it for classes that need constructing, too. * class.c (in_class_defaulted_default_constructor): New. * cp-tree.h: Declare it. Co-Authored-By: Jason Merrill <jason@redhat.com> From-SVN: r158797
2010-04-271.c (test01): Clarify size definition.Alexander Monakov2-3/+9
2010-04-27 Alexander Monakov <amonakov@ispras.ru> * testsuite/22_locale/codecvt/unshift/char/1.c (test01): Clarify size definition. Use memcpy and memcmp to avoid access beyond allocated memory. From-SVN: r158780
2010-04-27status_cxx200x.xml: Update to match n3092.Jonathan Wakely40-507/+461
2010-04-27 Jonathan Wakely <jwakely.gcc@gmail.com> * doc/xml/manual/status_cxx200x.xml: Update to match n3092. * doc/html/*: Regenerate. From-SVN: r158751
2010-04-25status_cxx200x.xml: Update Threads status.Jonathan Wakely3-32/+40
2010-04-25 Jonathan Wakely <jwakely.gcc@gmail.com> * doc/xml/manual/status_cxx200x.xml: Update Threads status. * doc/html/manual/status.html: Regenerate. From-SVN: r158713
2010-04-24unique_ptr (unique_ptr::pointer): Use deleter's pointer type if it exists.Jonathan Wakely5-11/+84
2010-04-24 Jonathan Wakely <jwakely.gcc@gmail.com> * include/bits/unique_ptr (unique_ptr::pointer): Use deleter's pointer type if it exists. * testsuite/20_util/unique_ptr/requirements/pointer_type.cc: New. * testsuite/20_util/unique_ptr/assign/assign_neg.cc: Adjust. * testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: Adjust. From-SVN: r158682
2010-04-22partition.h (__parallel_partition): Improve scalability by...Johannes Singler2-75/+79
2010-04-22 Johannes Singler <singler@kit.edu> * include/parallel/partition.h (__parallel_partition): Improve scalability by: -introducing new variables __leftold, __rightold, __dist, thus -getting rid of omp lock by using atomic operations -getting rid of two omp barriers From-SVN: r158636
2010-04-22faq.xml: Link to manual.Jonathan Wakely135-4205/+4338
2010-04-22 Jonathan Wakely <jwakely.gcc@gmail.com> * doc/xml/faq.xml: Link to manual. * doc/xml/manual/using.xml: Expand dynamic libraries section. * doc/xml/manual/strings.xml: Mention shrink_to_fit() member. * doc/xml/manual/prerequisites.xml: Link to doxygen requirements. * doc/xml/manual/appendix_contributing.xml: Update Bash version. * doc/html/*: Regenerate. From-SVN: r158624
2010-04-13hash_map: Don't #include "backward_warning.h" if ↵Ian Lance Taylor3-0/+12
_GLIBCXX_PERMIT_BACKWARD_HASH is defined. * include/backward/hash_map: Don't #include "backward_warning.h" if _GLIBCXX_PERMIT_BACKWARD_HASH is defined. * include/backward/hash_set: Likewise. From-SVN: r158281
2010-04-12config.gcc: Removed *-*-solaris2.7* from list of obsolete configurations.Rainer Orth4-3/+9
gcc: * config.gcc: Removed *-*-solaris2.7* from list of obsolete configurations. Add to unsupported targets list. * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*, sparc*-sun-solaris2.[567]* from target lists. * configure: Regenerate. * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7 removal. Remove Solaris 7 patch references. (Specific, sparc-sun-solaris2.7): Removed. (sparc-sun-solaris2*): Update Solaris 7 example. (sparc64-*-solaris2*): Likewise. gcc/testsuite: * g++.dg/warn/miss-format-1.C: Removed *-*-solaris2.7 from dg-error, dg-warning. * gcc.dg/c99-stdint-6.c: Removed *-*-solaris2.7 from dg-options. libstdc++-v3: * configure.host (os_include_dir): Removed solaris2.7 support. * crossconfig.m4 (GLIBCXX_CROSSCONFIG): Likewise. * configure: Regenerate. From-SVN: r158236
2010-04-06parser.c (cp_parser_class_specifier): Set class location to that of ↵Jason Merrill4-4/+4
IDENTIFIER_NODE instead of '{' when possible. * parser.c (cp_parser_class_specifier): Set class location to that of IDENTIFIER_NODE instead of '{' when possible. * semantics.c (begin_class_definition): Do not overide locations with less precise ones. From-SVN: r158030
2010-04-06acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Show test result.Matthias Klose5-8/+19
2010-04-06 Matthias Klose <doko@ubuntu.com> * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Show test result. * configure: Regenerate. * doc/xml/manual/configure.xml, doc/html/manual/configure.html: Document --enable-libstdcxx-time as the short form for --enable-libstdcxx-time=yes. From-SVN: r157975
2010-04-03basic_string.h: Fix pasto in comment.Paolo Carlini3-9/+13
2010-04-03 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/basic_string.h: Fix pasto in comment. * include/ext/vstring.h: Likewise. From-SVN: r157955
2010-04-02Update to Automake 1.11.1.Ralf Wildenhues10-18/+31
gcc/: PR other/43620 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1. * aclocal.m4: Regenerate. lto-plugin/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. intl/: * aclocal.m4: Regenerate. boehm-gc/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * include/Makefile.in: Regenerate. fixincludes/: * aclocal.m4: Regenerate. libcpp/: * aclocal.m4: Regenerate. libdecnumber/: * aclocal.m4: Regenerate. libffi/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * include/Makefile.in: Regenerate. * man/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. libgfortran/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. libgomp/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * testsuite/Makefile.in: Regenerate. libjava/classpath/: * HACKING: Update required Automake version. * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * doc/Makefile.in: Regenerate. * doc/api/Makefile.in: Regenerate. * examples/Makefile.in: Regenerate. * external/Makefile.in: Regenerate. * external/jsr166/Makefile.in: Regenerate. * external/relaxngDatatype/Makefile.in: Regenerate. * external/sax/Makefile.in: Regenerate. * external/w3c_dom/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * lib/Makefile.in: Regenerate. * native/Makefile.in: Regenerate. * native/fdlibm/Makefile.in: Regenerate. * native/jawt/Makefile.in: Regenerate. * native/jni/Makefile.in: Regenerate. * native/jni/classpath/Makefile.in: Regenerate. * native/jni/gconf-peer/Makefile.in: Regenerate. * native/jni/gstreamer-peer/Makefile.in: Regenerate. * native/jni/gtk-peer/Makefile.in: Regenerate. * native/jni/java-io/Makefile.in: Regenerate. * native/jni/java-lang/Makefile.in: Regenerate. * native/jni/java-math/Makefile.in: Regenerate. * native/jni/java-net/Makefile.in: Regenerate. * native/jni/java-nio/Makefile.in: Regenerate. * native/jni/java-util/Makefile.in: Regenerate. * native/jni/midi-alsa/Makefile.in: Regenerate. * native/jni/midi-dssi/Makefile.in: Regenerate. * native/jni/native-lib/Makefile.in: Regenerate. * native/jni/qt-peer/Makefile.in: Regenerate. * native/jni/xmlj/Makefile.in: Regenerate. * native/plugin/Makefile.in: Regenerate. * resource/Makefile.in: Regenerate. * scripts/Makefile.in: Regenerate. * tools/Makefile.in: Regenerate. libjava/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * configure: Regenerate. * gcj/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. libjava/libltdl/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. libmudflap/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * testsuite/Makefile.in: Regenerate. libobjc/: * aclocal.m4: Regenerate. libssp/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. libstdc++-v3/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * doc/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * libsupc++/Makefile.in: Regenerate. * po/Makefile.in: Regenerate. * python/Makefile.in: Regenerate. * src/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. zlib/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. From-SVN: r157949
2010-03-30random_shuffle.h (__parallel_random_shuffle_drs): Take as many threads as ↵Johannes Singler2-2/+15
possible, i. 2010-03-30 Johannes Singler <singler@kit.edu> * include/parallel/random_shuffle.h (__parallel_random_shuffle_drs) : Take as many threads as possible, i. e. favor parallelism over cache efficiency. Use own PRNG also for the 1 thread case. From-SVN: r157826
2010-03-30unordered_map: Clean-up includes and guards.Paolo Carlini6-25/+30
2010-03-30 Paolo Carlini <paolo.carlini@oracle.com> * include/debug/unordered_map: Clean-up includes and guards. * include/debug/unordered_set: Likewise. * include/debug/list: Likewise. * include/profile/unordered_map: Likewise. * include/profile/unordered_set: Likewise. From-SVN: r157818
2010-03-29re PR target/43458 (c99_classification_macros_c.cc fails on hppa*-*-hpux*)John David Anglin2-2/+8
PR target/43458 * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc: Xfail hppa*-*-hpux*. From-SVN: r157806
2010-03-26profile_mode.xml (Profile Diagnostics): Correct cols.Rainer Orth3-1/+13
* doc/xml/manual/profile_mode.xml (Profile Diagnostics): Correct cols. * doc/xml/manual/using.xml (C++ 1998 Library Headers): Add missing c5 colspec. (C++ 1998 Library Headers for C Library Facilities): Likewise. (C++ 200x Library Headers): Likewise. From-SVN: r157754
2010-03-26[multiple changes]Paolo Carlini14-14/+1026
2010-03-25 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/unordered_map.h (operator==, operator!=): Add per N3068. * include/bits/unordered_set.h (operator==, operator!=): Likewise. * include/debug/unordered_map (operator==, operator!=): Likewise. * include/debug/unordered_set: Likewise. * include/profile/unordered_map: Likewise. * include/profile/unordered_set: Likewise. * testsuite/23_containers/unordered_map/operators/1.cc: New. * testsuite/23_containers/unordered_multimap/operators/1.cc: Likewise. * testsuite/23_containers/unordered_multimap/operators/2.cc: Likewise. * testsuite/23_containers/unordered_set/operators/1.cc: Likewise. * testsuite/23_containers/unordered_multiset/operators/1.cc: Likewise. 2010-03-25 John Lakos <jlakos@bloomberg.net> Pablo Halpern <phalpern@halpernwightsoftware.com> Paolo Carlini <paolo.carlini@oracle.com> * include/bits/hashtable_policy.h (struct _Equality_base): Add. * include/bits/hashtable.h (_Hashtable<>): Derive from the latter. From-SVN: r157736
2010-03-23testsuite_tr1.h (NType, [...]): Add.Paolo Carlini5-84/+34
2010-03-23 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/util/testsuite_tr1.h (NType, TType, SLType, PODType): Add. * testsuite/20_util/is_trivial/value.cc: Adjust. * testsuite/20_util/is_standard_layout/value.cc: Likewise. * testsuite/20_util/is_pod/value.cc: Likewise. From-SVN: r157673
2010-03-23value.cc: New.Paolo Carlini4-0/+178
2010-03-23 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/20_util/is_trivial/value.cc: New. * testsuite/20_util/is_standard_layout/value.cc: Likewise. * testsuite/20_util/is_pod/value.cc: Extend. From-SVN: r157671
2010-03-23stl_algobase.h (lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, ↵Paolo Carlini3-55/+61
_Compare)): Move... 2010-03-23 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/stl_algobase.h (lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare)): Move... * include/bits/stl_algo.h: ... here. From-SVN: r157668
2010-03-22numeric (inner_product, [...]): Precede subsequent call with ↵Johannes Singler5-15/+38
_GLIBCXX_STD_P:: to avoid ambiguity between... 2010-03-22 Johannes Singler <singler@kit.edu> * include/parallel/numeric (inner_product, partial_sum): Precede subsequent call with _GLIBCXX_STD_P:: to avoid ambiguity between __gnu_parallel:: and std:: * include/parallel/algobase.h (equal): Likewise. * include/parallel/algo.h (find_first_of, search_n, merge, nth_element, partial_sort, max_element, min_element): Likewise. * include/parallel/partial_sum.h (__parallel_partial_sum_linear): Qualify accumulate call with __gnu_parallel::. From-SVN: r157643
2010-03-22base.h (_PseudoSequence): Do not forward declare.Paolo Carlini2-19/+16
2010-03-22 Paolo Carlini <paolo.carlini@oracle.com> * include/parallel/base.h (_PseudoSequence): Do not forward declare. (_VoidFunctor): Remove, unused. (__median_of_three_iterators): Take __comp by value. (_PseudoSequenceIterator<>::operator++(int)): Do not const qualify the return type. (_PseudoSequenceIterator<>::operator!=): Fix return type to bool. From-SVN: r157628
2010-03-22base.h (_Less): Use std::less.Paolo Carlini3-41/+25
2010-03-22 Paolo Carlini <paolo.carlini@oracle.com> * include/parallel/base.h (_Less): Use std::less. (_Plus): Likewise use std::plus. (_Multiplies): Likewise use std::multiplies. * include/parallel/numeric: Adjust. From-SVN: r157622
2010-03-19freestanding.cc: Avoid -Wall warnings.Paolo Carlini2-5/+9
2010-03-19 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/17_intro/freestanding.cc: Avoid -Wall warnings. From-SVN: r157572
2010-03-19shared_ptr.h (shared_ptr(unique_ptr&&), [...]): Remove explicit specifier ↵Rodolfo Lima4-6/+102
(as per DR 925). 2010-03-19 Rodolfo Lima <rodolfo@rodsoft.org> * include/bits/shared_ptr.h (shared_ptr(unique_ptr&&), shared_ptr(auto_ptr&&)): Remove explicit specifier (as per DR 925). * include/bits/shared_ptr_base.h: Likewise. * testsuite/20_util/shared_ptr/creation/dr925.cc: New. From-SVN: r157570
2010-03-19random.tcc: Minor formatting changes.Paolo Carlini6-14/+27
2010-03-19 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/random.tcc: Minor formatting changes. 2010-03-19 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/stl_algo.h (shuffle): Fix typo in signature. * include/bits/algorithmfwd.h: Adjust. * testsuite/25_algorithms/shuffle/requirements/ explicit_instantiation/2.cc: Likewise. * testsuite/25_algorithms/shuffle/requirements/ explicit_instantiation/pod.cc: Likewise. From-SVN: r157565
2010-03-19stl_algo.h (shuffle): Add, per D3056.Paolo Carlini13-244/+493
2010-03-19 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/stl_algo.h (shuffle): Add, per D3056. (random_shuffle): Fix signature in C++0x mode. (lower_bound, __lg): Move... * include/bits/stl_algobase.h: ... here. * include/bits/algorithmfwd.h: Adjust. * include/parallel/algorithmfwd.h: Likewise. * include/parallel/algo.h: Likewise. * include/bits/hashtable_policy.h (__lower_bound): Remove, adjust callers. * include/tr1/hashtable_policy.h (__lower_bound): Likewise. * include/bits/random.tcc (__detail::__transform): Add, adjust std::transform callers; don't include <algorithm>. * testsuite/25_algorithms/shuffle/1.cc: Add. * testsuite/25_algorithms/shuffle/requirements/ explicit_instantiation/2.cc: Likewise. * testsuite/25_algorithms/shuffle/requirements/ explicit_instantiation/pod.cc: Likewise. * include/bits/random.h: Add comments. From-SVN: r157564
2010-03-17debug_mode.xml: Correct debug headers.Jonathan Wakely2-15/+19
2010-03-17 Jonathan Wakely <jwakely.gcc@gmail.com> * doc/xml/manual/debug_mode.xml: Correct debug headers. From-SVN: r157506
2010-03-17re PR libstdc++/43397 (std::function can't forward rvalue reference for ↵Jonathan Wakely3-20/+116
pointer to member function) 2010-03-17 Jonathan Wakely <jwakely.gcc@gmail.com> PR libstdc++/43397 * include/std/functional (_Mem_fn): Use perfect forwarding. * testsuite/20_util/function/43397.cc: New. From-SVN: r157504
2010-03-16re PR libstdc++/43394 (Spurious warnings while building parallel_list.cc on ↵Paolo Carlini2-3/+11
x86_64 -m32) 2010-03-16 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/43394 * include/parallel/compatibility.h: Add __k8 and __core2 among the i386 targets supporting atomic operations. From-SVN: r157498
2010-03-16hash_map: Use consistently the _BACKWARD_* prefix for the include guard.Paolo Carlini8-21/+36
2010-03-16 Paolo Carlini <paolo.carlini@oracle.com> * include/backward/hash_map: Use consistently the _BACKWARD_* prefix for the include guard. * include/backward/hash_fun.h: Likewise. * include/backward/hashtable.h: Likewise. * include/backward/auto_ptr.h: Likewise. * include/backward/strstream: Likewise. * include/backward/binders.h: Likewise. * include/backward/hash_set: Likewise. From-SVN: r157497
2010-03-16random.h (operator==(const uniform_int_distribution<>&, const ↵Paolo Carlini49-10/+2827
uniform_int_distribution<>&), [...]): Add, likewise for operator!=. 2010-03-16 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/random.h (operator==(const uniform_int_distribution<>&, const uniform_int_distribution<>&), operator==(const uniform_real_distribution<>&, const uniform_real_distribution<>&), operator==(const lognormal_distribution<>&, const lognormal_distribution<>&), operator==(const chi_squared_distribution<>&, const chi_squared_distribution<>&), operator==(const cauchy_distribution<>&, const cauchy_distribution<>&), operator==(const fisher_distribution<>&, const fisher_distribution<>&), operator==(const student_t_distribution<>&, const student_t_distribution<>&), operator==(const bernoulli_distribution<>&, const bernoulli_distribution<>&), operator==(const binomial_distribution<>&, const binomial_distribution<>&), operator==(const geometric_distribution<>&, const geometric_distribution<>&), operator==(const negative_binomial_distribution<>&, const negative_binomial_distribution<>&), operator==(const poisson_distribution<>&, const poisson_distribution<>&), operator==(const exponential_distribution<>&, const exponential_distribution<>&), operator==(const gamma_distribution<>&, const gamma_distribution<>&), operator==(const weibull_distribution<>&, const weibull_distribution<>&), operator==(const extreme_value_distribution<>&, const extreme_value_distribution<>&), operator==(const discrete_distribution<>&, const discrete_distribution<>&), operator==(const piecewise_constant_distribution<>&, const piecewise_constant_distribution<>&), operator==(const piecewise_linear_distribution<>&, const piecewise_linear_distribution<>&)): Add, likewise for operator!=. (operator!=(const independent_bits_engine<>&, const independent_bits_engine<>&), operator!=(const subtract_with_carry_engine<>&, const subtract_with_carry_engine<>&), operator!=(const discard_block_engine<>&, const discard_block_engine<>&), operator!=(const mersenne_twister_engine<>&, const mersenne_twister_engine<>&), operator!=(const linear_congruential_engine<>&, const linear_congruential_engine<>&), operator!=(const shuffle_order_engine<>&, const shuffle_order_engine<>&): Add. * include/bits/random.tcc (operator==(const normal_distribution<>&, const normal_distribution<>&)): Add. * testsuite/26_numerics/random/uniform_real_distribution/operators/ inequal.cc: New. * testsuite/26_numerics/random/uniform_real_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/piecewise_constant_distribution/ operators/inequal.cc: Likewise. * testsuite/26_numerics/random/piecewise_constant_distribution/ operators/equal.cc: Likewise. * testsuite/26_numerics/random/chi_squared_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/chi_squared_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/normal_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/normal_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/uniform_int_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/uniform_int_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/poisson_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/poisson_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/bernoulli_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/bernoulli_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/discrete_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/discrete_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/weibull_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/weibull_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/independent_bits_engine/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/subtract_with_carry_engine/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/discard_block_engine/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/cauchy_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/cauchy_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/negative_binomial_distribution/ operators/inequal.cc: Likewise. * testsuite/26_numerics/random/negative_binomial_distribution/ operators/equal.cc: Likewise. * testsuite/26_numerics/random/gamma_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/gamma_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/mersenne_twister_engine/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/fisher_f_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/fisher_f_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/exponential_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/exponential_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/binomial_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/binomial_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/lognormal_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/lognormal_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/extreme_value_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/extreme_value_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/piecewise_linear_distribution/ operators/inequal.cc: Likewise. * testsuite/26_numerics/random/piecewise_linear_distribution/ operators/equal.cc: Likewise. * testsuite/26_numerics/random/student_t_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/student_t_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/linear_congruential_engine/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/shuffle_order_engine/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/geometric_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/geometric_distribution/operators/ equal.cc: Likewise. From-SVN: r157489
2010-03-16forward_list.tcc (_Fwd_list_node_base:: _M_transfer_after): Return ↵Paolo Carlini8-76/+147
_Fwd_list_node_base*. 2010-03-15 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/forward_list.tcc (_Fwd_list_node_base:: _M_transfer_after): Return _Fwd_list_node_base*. (forward_list<>::_M_splice_after): Add. (forward_list<>::insert_after(const_iterator, size_type, const _Tp&), insert_after(const_iterator, _InputIterator, _InputIterator), insert_after(const_iterator, initializer_list<>)): Use the above, implement DR 1278 ([Ready] in Pittsburgh). * include/bits/forward_list.h (insert_after(const_iterator, size_type, const _Tp&), insert_after(const_iterator, _InputIterator, _InputIterator), insert_after(const_iterator, initializer_list<>)): Only declare. * testsuite/23_containers/forward_list/modifiers/2.cc: Adjust. * testsuite/23_containers/forward_list/requirements/dr438/ assign_neg.cc: Adjust dg-error line number. * testsuite/23_containers/forward_list/requirements/dr438/ insert_neg.cc: Likewise. * testsuite/23_containers/forward_list/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/forward_list/requirements/dr438/ constructor_2_neg.cc: Likewise. From-SVN: r157471
2010-03-152010-03-15 Paolo Carlini <paolo.carlini@oracle.com>Paolo Carlini1-0/+10
* Complete last ChangeLog entry. From-SVN: r157464
2010-03-15revert: forward_list.h: Support non-standard pointer typesPaolo Carlini24-1395/+219
2010-03-15 Paolo Carlini <paolo.carlini@oracle.com> Revert: 2008-11-11 Bob Walters <bob.s.walters@gmail.com> * include/bits/forward_list.h: Support non-standard pointer types (_Fwd_list_node_base): Add _Alloc template parameter. (_Fwd_list_node<>): Likewise. (_Fwd_list_iterator<>): Likewise. (_Fwd_list_const_iterator<>): Likewise. (_Fwd_list_node_base::_M_next, _M_transfer_after, _M_reverse_after): Use _Alloc<_Tp>::pointer. (_Fwd_list_iterator<>::_M_node): Use _Node_base::_Pointer. (_Fwd_list_base<>::_M_get_node, _M_create_node, _M_create_node, _M_insert_after, _M_put_node, _M_erase_after): Likewise. (_Fwd_list_const_iterator<>::_M_node): use _Node_base::_Const_pointer. (forward_list<>): Use __static_pointer_cast in place of static_cast, and __const_pointer_cast in place of const_cast. * include/bits/forward_list.tcc (_Fwd_list_node<>::_M_sort_after): Using _Pointer typedefs in place of standard pointers, __static_pointer_cast in place of static_cast. (_Fwd_list_base<>::_Fwd_list_base, _M_insert_after, _M_erase_after): Likewise. (forward_list<>::_M_initialize_dispatch, _M_fill_initialize, splice_after, remove, remove_if, merge): Likewise. * testsuite/23_containers/forward_list/ext_pointer/modifiers/1.cc: New. * testsuite/23_containers/forward_list/ext_pointer/modifiers/2.cc: Likewise. * testsuite/23_containers/forward_list/ext_pointer/modifiers/3.cc: Likewise. * testsuite/23_containers/forward_list/ext_pointer/modifiers/4.cc: Likewise. * testsuite/23_containers/forward_list/ext_pointer/modifiers/5.cc: Likewise. * testsuite/23_containers/forward_list/ext_pointer/operations/1.cc: Likewise. * testsuite/23_containers/forward_list/ext_pointer/operations/2.cc: Likewise. * testsuite/23_containers/forward_list/ext_pointer/operations/3.cc: Likewise. * testsuite/23_containers/forward_list/ext_pointer/operations/4.cc: Likewise. * testsuite/23_containers/forward_list/ext_pointer/operations/5.cc: Likewise. * testsuite/23_containers/forward_list/ext_pointer/operations/6.cc: Likewise. * testsuite/23_containers/forward_list/ext_pointer/operations/7.cc: Likewise. * testsuite/23_containers/forward_list/ext_pointer/requirements/1.cc: Likewise. * testsuite/23_containers/forward_list/ext_pointer/requirements/ explicit_instantiation/1.cc: Likewise. * testsuite/23_containers/forward_list/ext_pointer/requirements/ explicit_instantiation/3.cc: Likewise. * testsuite/23_containers/forward_list/ext_pointer/1.cc: Likewise. From-SVN: r157462
2010-03-13array (swap(array<>&, array<>&)): Use member swap.Paolo Carlini3-2/+8
2010-03-13 Paolo Carlini <paolo.carlini@oracle.com> * include/tr1_impl/array (swap(array<>&, array<>&)): Use member swap. * include/bits/stl_algo.h: Improve comment. From-SVN: r157421
2010-03-12run_doxygen: Adjust.Benjamin Kosnik6-288/+288
2010-03-12 Benjamin Kosnik <bkoz@redhat.com> * scripts/run_doxygen: Adjust. * doc/doxygen/user.cfg.in: Adjust latex, xml prefs. * doc/xml/api.xml: Update. * doc/Makefile.am: Re-do stamp rules. * doc/Makefile.in: Regenerate. From-SVN: r157409