aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
AgeCommit message (Collapse)AuthorFilesLines
2010-09-29[multiple changes]Paolo Carlini26-40/+1423
2010-09-29 Paolo Carlini <paolo.carlini@oracle.com> * include/Makefile.am: Add debug/forward_list. * include/Makefile.in: Regenerate. * testsuite/util/testsuite_container_traits.h (traits_base): Add has_erase_after and hash_insert_after typedefs. (traits<forward_list<>>): Adjust. * testsuite/util/exception/safety.h (erase_point, erase_range, insert_point): Deal correctly with forward_list. * include/Makefile.am: Add. 2010-09-29 François Dumont <francois.cppdevs@free.fr> * src/debug.cc: Add forward_list specific debug messages. * include/debug/forward_list: New. * include/debug/formatter.h: Add debug message ids and before begin iterator state. * include/debug/macros.h (__glibcxx_check_insert_after, __glibcxx_check_insert_range_after, __glibcxx_check_erase_after, __glibcxx_check_erase_range_after): Add. * include/debug/safe_iterator.h (_BeforeBeginHelper): Add. (_Safe_iterator<>::_M_before_dereferenceable, _Safe_iterator<>::_M_is_before_begin): Add. (_Safe_iterator<>::_M_dereferenceable, _Safe_iterator<>::_M_is_end, _Safe_iterator<>::_M_incrementable): Adjust. * include/std/forward_list: Include debug/forward when _GLIBCXX_DEBUG defined. * include/bits/forward_list.h, forward_list.tcc: Put in std::__norm when debug mode is active. * testsuite/23_containers/forward_list/capacity/1.cc: Fix to compile even in debug mode. * testsuite/23_containers/forward_list/debug/erase_after1.cc, erase_after2.cc, erase_after3.cc, erase_after4.cc, erase_after5.cc, insert_after1.cc,erase_after6.cc, erase_after7.cc, insert_after2.cc, erase_after8.cc, insert_after3.cc, erase_after9.cc: New. From-SVN: r164717
2010-09-28hash_bytes.cc (_Hash_bytes): Replace "clength" with "len" for "unusual ↵DJ Delorie2-1/+6
sizeof(size_t)" case. * libsupc++/hash_bytes.cc (_Hash_bytes): Replace "clength" with "len" for "unusual sizeof(size_t)" case. From-SVN: r164714
2010-09-28chi2_quality.cc: New.Matt Austern3-0/+391
2010-09-28 Matt Austern <austern@google.com> * testsuite/20_util/hash/chi2_quality.cc: New. * testsuite/20_util/hash/quality.cc: Likewise. From-SVN: r164682
2010-09-27allocator.h (allocator_arg_t, [...]): Add.Paolo Carlini9-23/+223
2010-09-27 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/allocator.h (allocator_arg_t, allocator_arg, uses_allocator): Add. * testsuite/20_util/uses_allocator/value.cc: New. * testsuite/20_util/uses_allocator/requirements/typedefs.cc: Likewise. * testsuite/20_util/uses_allocator/requirements/ explicit_instantiation.cc: Likewise. * include/bits/stl_queue.h (uses_allocator<queue>, uses_allocator<priority_queue>): Add. * include/bits/stl_stack.h (uses_allocator<stack>): Likewise. * include/bits/stl_pair.h (piecewise_construct): Add. * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust dg-error line number. From-SVN: r164654
2010-09-27cmath (__pow_helper): Remove.Paolo Carlini10-198/+52
2010-09-27 Paolo Carlini <paolo.carlini@oracle.com> * include/c_std/cmath (__pow_helper): Remove. (__cmath_power): Remove declaration. * include/c_global/cmath: Likewise. * include/std/complex (__complex_pow_unsigned): Add. (pow(const complex<_Tp>&, int)): Use the latter. * include/c_std/cmath.tcc: Remove file. * include/c_global/cmath.tcc: Likewise. * acinclude.m4: Adjust. * include/Makefile.am: Likewise. * configure: Regenerate. * include/Makefile.in: Likewise. From-SVN: r164645
2010-09-222010-09-22 Paolo Carlini <paolo.carlini@oracle.com>Paolo Carlini1-1/+1
* Fix typo in last ChangeLog entry. From-SVN: r164530
2010-09-22re PR libstdc++/45628 (std::fstream::tellg invalidates I/O buffer)David Krauss11-141/+329
2010-09-22 David Krauss <potswa@mac.com> PR libstdc++/45628 * include/bits/fstream.tcc (basic_filebuf::underflow): Add state transition to avoid modality requiring seekoff(0,ios::cur). (basic_filebuf::pbackfail): Likewise. (basic_filebuf::overflow): Likewise. (basic_filebuf::_M_seek): Avoid minor unnecessary conversion. (basic_filebuf::seekoff): Remove code to _M_get_ext_pos; make (0, ios::cur) a special case preserving buffer contents. (basic_filebuf::_M_get_ext_pos): New function to obtain status about codecvt extern_t buffer for overflow and seekoff. * include/std/fstream (basic_filebuf::_M_get_ext_pos): Likewise. * config/abi/pre/gnu.ver: Export new symbols. * testsuite/27_io/basic_filebuf/seekoff/char/45628-1.cc: New, verifies that seekoff(0, ios::cur) preserves buffers. * testsuite/27_io/basic_filebuf/seekoff/char/45628-2.cc: Likewise. for codecvt case. More lenient as it may still flush put area. * testsuite/27_io/basic_filebuf/seekoff/char/4.cc: Modify to check that seekoff is not required between read and write. * testsuite/27_io/basic_filebuf/seekoff/wchar_t/4.cc: Likewise. * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc: Remove. * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc: Likewise. * testsuite/util/testsuite_character.h (codecvt::do_length): Comply with 22.2.1.5.2/10 "Returns ... the LARGEST value in the range..." From-SVN: r164529
2010-09-22functional_hash.h (__hash_base): Add.Paolo Carlini12-22/+41
2010-09-22 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/functional_hash.h (__hash_base): Add. (hash): Derive from __hash_base instead. * include/debug/bitset (hash): Likewise. * include/debug/vector (hash): Likewise. * include/std/system_error (hash): Likewise. * include/std/thread (hash): Likewise. * include/std/bitset (hash): Likewise. * include/profile/bitset (hash): Likewise. * include/profile/vector (hash): Likewise. * include/bits/basic_string.h (hash): Likewise. * include/bits/stl_bvector.h (hash): Likewise. * include/std/typeindex (hash): Do not derive from unary_function, add result_type and argument_type typedefs; trim includes. From-SVN: r164528
2010-09-22typeindex: New.Paolo Carlini10-22/+442
2010-09-22 Paolo Carlini <paolo.carlini@oracle.com> * include/std/typeindex: New. * include/Makefile.am: Add. * include/Makefile.in: Regenerate. * include/precompiled/stdc++.h: Add. * testsuite/20_util/typeindex/comparison_operators.cc: New. * testsuite/20_util/typeindex/hash.cc: Likewise. * testsuite/20_util/typeindex/hash_code.cc: Likewise. * testsuite/20_util/typeindex/name.cc: Likewise. * testsuite/18_support/type_info/hash_code.cc: Tweak. From-SVN: r164521
2010-09-22hash_bytes.cc: Move...Paolo Carlini9-38/+117
2010-09-22 Paolo Carlini <paolo.carlini@oracle.com> * src/hash_bytes.cc: Move... * libsupc++/hash_bytes.cc: ... here. * src/Makefile.am: Adjust. * libsupc++/Makefile.am: Likewise. * config/abi/pre/gnu.ver: Likewise. * libsupc++/typeinfo (type_info::hash_code): Add in C++0x mode. * src/Makefile.in: Regenerate. * libsupc++/Makefile.am: Likewise. * testsuite/18_support/type_info/hash_code.cc: New. From-SVN: r164510
2010-09-20re PR libstdc++/45711 (Building with "--enable-libstdcxx-debug" fails during ↵Ralf Wildenhues3-0/+13
install) Fix PR libstdc++/45711. libstdc++-v3/: PR libstdc++/45711 * src/Makefile.am (stamp-debug): Also adjust possibly-relative file names in MKDIR_P, and, for consistency, also top_build_prefix. * src/Makefile.in: Regenerate. From-SVN: r164451
2010-09-19Uglify C++ headers some more.Ralf Wildenhues4-14/+25
libstdc++-v3/: * include/ext/throw_allocator.h (hash<__gnu_cxx::throw_value_limit>::operator()): Uglify local. (hash<__gnu_cxx::throw_value_random>::operator()): Likewise. * include/parallel/set_operations.h (__symmetric_difference_func): Uglify remaining arguments to __count, __first_empty, _M_invoke. (__difference_func): Likewise for __count. * include/profile/impl/profiler_node.h (__object_info_base::__write): Uglify parameter. From-SVN: r164411
2010-09-19hash_bytes.cc: Compile load_bytes and shift_mix only when __SIZEOF_SIZE_T__ ↵Paolo Carlini2-0/+7
== 8. 2010-09-19 Paolo Carlini <paolo.carlini@oracle.com> * src/hash_bytes.cc: Compile load_bytes and shift_mix only when __SIZEOF_SIZE_T__ == 8. From-SVN: r164410
2010-09-18re PR libstdc++/45713 (sizeof std::bitset<ULONG_MAX> == 1)Luc Hermitte3-2/+34
2010-09-17 Luc Hermitte <hermitte@free.fr> Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/45713 * include/std/bitset: Fix _GLIBCXX_BITSET_WORDS macro. * testsuite/23_containers/bitset/45713.cc: New. Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com> From-SVN: r164388
2010-09-16stl_raw_storage_iter.h (raw_storage_iterator<>:: operator=(const _Tp&)): Use ↵Paolo Carlini2-2/+7
std::__addressof. 2010-09-16 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/stl_raw_storage_iter.h (raw_storage_iterator<>:: operator=(const _Tp&)): Use std::__addressof. From-SVN: r164343
2010-09-16system_error (system_error::system_error(error_code), [...]): Fix for what() ↵Paolo Carlini8-27/+40
to return the NBTS recommended in the Note in 19.5.6.2/14. 2010-09-16 Paolo Carlini <paolo.carlini@oracle.com> * include/std/system_error (system_error::system_error(error_code), system_error(error_code, const string&), system_error(int, const error_category&), system_error(int, const error_category&, const string&)): Fix for what() to return the NBTS recommended in the Note in 19.5.6.2/14. * testsuite/19_diagnostics/system_error/cons-1.cc: Adjust. * testsuite/19_diagnostics/system_error/what-1.cc: Likewise. * testsuite/19_diagnostics/system_error/what-2.cc: Likewise. * testsuite/19_diagnostics/system_error/what-big.cc: Likewise. * testsuite/19_diagnostics/system_error/what-3.cc: Likewise. * testsuite/19_diagnostics/system_error/what-4.cc: Tidy includes. From-SVN: r164339
2010-09-16complex (complex<float>::operator=(float), [...]): Simplify a tad...Paolo Carlini2-42/+58
2010-09-16 Paolo Carlini <paolo.carlini@oracle.com> * include/std/complex (complex<float>::operator=(float), complex<float>::operator+=(float), complex<float>::operator-=(float), complex<double>::operator=(double), complex<double>::operator+=(double), complex<double>::operator-=(double), complex<long double>::operator=(long double), complex<long double>::operator+=(long double), complex<long double>::operator-=(long double)): Simplify a tad, just forward to the underlying __complex__ T operators, as operator*= and operator/= already do. * include/std/complex (complex<float>, complex<double>, complex<long double>): Simplify spelling of return types, just say complex, instead of complex<float>, complex<double>, complex<long double>, respectively. From-SVN: r164337
2010-09-15libstdc++.exp, ([check_v3_target_namedlocale]): Clean temporary source file ↵François Dumont2-1/+6
once compiled. 2010-09-15 François Dumont <francois.cppdevs@free.fr> * testsuite/lib/libstdc++.exp,([check_v3_target_namedlocale]): Clean temporary source file once compiled. From-SVN: r164316
2010-09-15[multiple changes]Paolo Carlini329-418/+713
2010-09-15 Paolo Carlini <paolo.carlini@oracle.com> * doc/xml/manual/prerequisites.xml: Update "C" library locale information prerequisites. 2010-09-15 François Dumont <francois.cppdevs@free.fr> * testsuite/lib/libstdc++.exp, dg-options.exp ([check_v3_target_namedlocale]): Take the name of the required locale. * testsuite/27_io/objects/wchar_t/9520.cc, 11.cc, 13.cc, 10.cc, 12.cc: Specify locale name to check. * testsuite/27_io/basic_streambuf/imbue/wchar_t/9322.cc, 13007-1.cc, 13007-2.cc: Likewise. * testsuite/27_io/basic_streambuf/imbue/char/9322.cc, 13007-1.cc, 13007-2.cc: Likewise. * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Likewise. * testsuite/27_io/basic_stringbuf/imbue/wchar_t/9322.cc: Likewise. * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Likewise. * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/2.cc: Likewise. * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Likewise. * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc, 2.cc: Likewise. * testsuite/27_io/basic_filebuf/imbue/wchar_t/13171-3.cc, 9322.cc, 13582-2.cc, 2.cc, 13582-3.cc, 12868.cc, 14975-2.cc, 13007.cc: Likewise. * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc, 13171-4.cc, 9322.cc, 13582-2.cc, 2.cc, 14975-1.cc, 13007.cc, 13171-1.cc: Likewise. * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc, 11305-2.cc, 11305-3.cc, 11305-4.cc: Likewise. * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc, 1.cc, 2.cc, 3.cc, 11389-1.cc, 4.cc, 11389-2.cc, 5.cc, 11389-3.cc, 11389-4.cc: Likewise. * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Likewise. * testsuite/27_io/manipulators/extended/put_money/wchar_t/1.cc: Likewise. * testsuite/27_io/manipulators/extended/put_money/char/1.cc: Likewise. * testsuite/27_io/manipulators/extended/get_money/wchar_t/1.cc: Likewise. * testsuite/27_io/manipulators/extended/get_money/char/1.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Likewise. * testsuite/22_locale/money_put/put/wchar_t/1.cc, 2.cc, 3.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/money_put/put/char/1.cc, 2.cc, 3.cc, 9780-3.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/facet/2.cc: Likewise. * testsuite/22_locale/collate/hash/wchar_t/2.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/collate/hash/char/2.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/collate/compare/wchar_t/1.cc, 2.cc, 3.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/collate/compare/char/1.cc, 2.cc, 3.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/collate/transform/wchar_t/2.cc, 3.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/collate/transform/char/2.cc, 3.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/ctype/cons/char/wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/ctype/to/wchar_t/wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/ctype/to/char/wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/ctype/scan/wchar_t/wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/ctype/scan/char/wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/ctype/widen/wchar_t/2.cc, 3.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/ctype/widen/char/wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/ctype/narrow/wchar_t/3.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/ctype/narrow/char/wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/ctype/is/wchar_t/2.cc,wrapped_locale.cc, wrapped_env.cc: Likewise * testsuite/22_locale/ctype/is/char/2.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/time_put/put/wchar_t/2.cc, 3.cc, 4.cc, 6.cc, 7.cc, 8.cc, wrapped_env.cc, wrapped_locale.cc, 17038.cc: Likewise. * testsuite/22_locale/time_put/put/char/2.cc, 3.cc, 4.cc, 6.cc, 9780-1.cc, 7.cc, 8.cc, wrapped_env.cc, wrapped_locale.cc, 17038.cc: Likewise. * testsuite/22_locale/money_get/get/wchar_t/1.cc, 2.cc, 3.cc, 4.cc, wrapped_env.cc, 10.cc, 11528.cc, wrapped_locale.cc, 11.cc, 12.cc, 13.cc, 15.cc, 16.cc, 17.cc, 18.cc: Likewise. * testsuite/22_locale/money_get/get/char/1.cc, 2.cc, 3.cc, 4.cc, wrapped_env.cc, 10.cc, 11528.cc, wrapped_locale.cc, 11.cc, 12.cc, 13.cc, 15.cc, 16.cc, 17.cc, 18.cc: Likewise * testsuite/22_locale/num_put/put/wchar_t/1.cc, 3.cc, 5.cc, wrapped_env.cc, 20914.cc, wrapped_locale.cc, 20909.cc: Likewise. * testsuite/22_locale/num_put/put/char/1.cc, 3.cc, 5.cc, 9780-2.cc, wrapped_env.cc, 20914.cc, wrapped_locale.cc, 20909.cc: Likewise. * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc, wrapped_locale.cc, 3.cc, 4.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/codecvt/unshift/char/wrapped_locale.cc, wrapped_env.cc: Likewise. testsuite/22_locale/codecvt/length/wchar_t/2.cc, wrapped_locale.cc, 3.cc, 4.cc, 7.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/codecvt/length/char/wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc, wrapped_locale.cc, 3.cc, 4.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/codecvt/always_noconv/char/wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc, wrapped_locale.cc, 3.cc, 4.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/codecvt/encoding/char/wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/codecvt/in/wchar_t/2.cc, wrapped_locale.cc, 3.cc, 4.cc, 7.cc, 8.cc, 9.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/codecvt/in/char/wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc, wrapped_locale.cc, 3.cc, 4.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/codecvt/max_length/char/wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/codecvt/out/wchar_t/2.cc, wrapped_locale.cc, 3.cc, 4.cc, 7.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/codecvt/out/char/wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: Likewise. * testsuite/22_locale/time_get/get_year/wchar_t/wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/time_get/get_year/char/wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/time_get/get_monthname/char/2.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/time_get/date_order/wchar_t/wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/time_get/date_order/char/wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/time_get/get_weekday/char/2.cc, 38081-1.cc, wrapped_locale.cc, 38081-2.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc, 26701.cc, 2.cc, wrapped_locale.cc, 4.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/time_get/get_date/char/12750.cc, 26701.cc, 2.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/time_get/get_time/wchar_t/1.cc, 2.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/time_get/get_time/char/1.cc, 2.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/num_get/get/wchar_t/1.cc, 3.cc, 5.cc, 6.cc, 9.cc, wrapped_env.cc, wrapped_locale.cc: Likewise. * testsuite/22_locale/num_get/get/char/1.cc, 3.cc, 5.cc, 6.cc, 9.cc, wrapped_env.cc, wrapped_locale.cc: Likewise. * testsuite/22_locale/locale/cons/38368.cc, 2.cc, 4.cc, 5.cc, 7.cc, 12658_thread-1.cc, 12658_thread-2.cc, 40184.cc, 29217.cc, 38365.cc: Likewise. * testsuite/22_locale/locale/global_locale_objects/14071.cc, 2.cc: Likewise. * testsuite/22_locale/moneypunct/40712.cc: Likewise. * testsuite/22_locale/moneypunct/members/wchar_t/2.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/moneypunct/members/char/2.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/messages_byname/named_equivalence.cc: Likewise. * testsuite/22_locale/numpunct_byname/named_equivalence.cc: Likewise. * testsuite/22_locale/messages/members/char/1.cc, 2.cc, wrapped_locale.cc, 3.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/numpunct/members/wchar_t/2.cc, wrapped_locale.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/numpunct/members/char/2.cc, wrapped_locale.cc, 3.cc, wrapped_env.cc: Likewise. * testsuite/22_locale/collate_byname/named_equivalence.cc: Likewise. From-SVN: r164300
2010-09-14[multiple changes]Paolo Carlini7-0/+78
2010-09-14 Matt Austern <austern@google.com> Paolo Carlini <paolo.carlini@oracle.com> * testsuite/performance/21_strings/hash.cc: New. 2010-09-14 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/performance/21_strings/string_append.cc: Rename to... * testsuite/performance/21_strings/append-1.cc: ... this. * testsuite/performance/21_strings/string_append_2.cc: Rename to... * testsuite/performance/21_strings/append-2.cc: ... this. * testsuite/performance/21_strings/string_cons_input_iterator.cc: Rename to... * testsuite/performance/21_strings/cons_input_iterator.cc: ... this. * testsuite/performance/21_strings/string_copy_cons_and_dest.cc: Rename to... * testsuite/performance/21_strings/copy_cons_and_dest.cc: ... this. * testsuite/performance/21_strings/string_find.cc: Rename to... * testsuite/performance/21_strings/find.cc: ... this. From-SVN: r164278
2010-09-13api.xml: Add title.Benjamin Kosnik4-6/+19
2010-09-13 Benjamin Kosnik <bkoz@redhat.com> * doc/xml/api.xml: Add title. * doc/xml/manual/spine.xml: Same. * doc/xml/spine.xml: Same. From-SVN: r164254
2010-09-13hash_bytes.cc: New file...Matt Austern12-102/+309
2010-09-13 Matt Austern <austern@google.com> * src/hash_bytes.cc: New file, exports _Hash_bytes (a Murmur hash), and _Fnv_hash_bytes (based on a FNV algorithm). * src/compatibility-c++0x.cc (hash<string>::operator(), hash<const string&>::operator(), hash<wstring>::operator(), hash<const wstring&>::operator(), hash<error_code>::operator()): Adjust, use _Hash_bytes. * include/std/system_error (hash<error_code>::operator()): Likewise. * include/std/thread (hash<thread::id>operator()): Likewise. * include/std/bitset (hash<bitset>operator()): Likewise. * include/bits/basic_string.h (hash<string>::operator(), hash<wstring>::operator(), hash<u16string>::operator(), hash<u32string>::operator()): Adjust. * include/bits/vector.tcc (hash<vector<bool>>::operator()): Adjust. * include/bits/functional_hash.h (_Hash_bytes, _Fnv_hash_bytes): Declare. (struct _Hash_impl, struct _Fnv_hash_impl): Add, use _Hash_bytes and _Fnv_hash_bytes, respectively. (hash<float>::operator(), hash<double>::operator()): Adjust. * config/abi/pre/gnu.ver: Add exports. * src/Makefile.am: Add. * src/Makefile.in: Regenerate. From-SVN: r164253
2010-09-13forward_list.h (forward_list<>::resize(size_type, value_type)): Fix ↵Paolo Carlini3-2/+8
signature, per LWG 1340. 2010-09-13 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/forward_list.h (forward_list<>::resize(size_type, value_type)): Fix signature, per LWG 1340. * include/bits/forward_list.tcc: Adjust definition. From-SVN: r164249
2010-09-134.cc: New.Paolo Carlini3-0/+175
2010-09-13 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/27_io/basic_filebuf/seekoff/char/4.cc: New. * testsuite/27_io/basic_filebuf/seekoff/wchar_t/4.cc: Likewise. From-SVN: r164248
2010-09-10hash-string-aux.cc: Remove.Paolo Carlini4-50/+53
2010-09-10 Paolo Carlini <paolo.carlini@oracle.com> * src/hash-string-aux.cc: Remove. Move contents... * src/hash_tr1.cc: ... here. * src/compatibility-c++0x.cc: ... and here. From-SVN: r164178
2010-09-09re PR libstdc++/45613 (bits/random.h misses include guards)Paolo Carlini4-1/+21
2010-09-09 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/45613 * include/bits/random.tcc: Add missing include guards. * include/bits/random.h: Likewise. * include/tr1/random.tcc: Likewise. From-SVN: r164074
2010-09-09cxxabi.h: Uglify nothrow to __nothrow__; fix a few inconsistent ↵Paolo Carlini2-19/+24
uglifications everywhere. 2010-09-09 Paolo Carlini <paolo.carlini@oracle.com> * libsupc++/cxxabi.h: Uglify nothrow to __nothrow__; fix a few inconsistent uglifications everywhere. From-SVN: r164073
2010-09-07re PR libstdc++/45549 (merge is_iterator into iterator_traits)Paolo Carlini4-18/+45
2010-09-07 Paolo Carlini <paolo.carlini@oracle.com> Marc Glisse <marc.glisse@normalesup.org> PR libstdc++/45549 * include/bits/cpp_type_traits.h (__is_iterator_helper): Rename to __has_iterator_category. (__is_iterator): Adjust. * include/bits/stl_iterator_base_types.h (__iterator_traits): Add in C++0x mode, use the latter. (iterator_traits): In C++0x mode, derive from the latter. * include/bits/stl_iterator_base_funcs.h (next, prev): Remove enable_if on the return type. Co-Authored-By: Marc Glisse <marc.glisse@normalesup.org> From-SVN: r163977
2010-09-07re PR libstdc++/45398 ([C++0x] Missing atomic<_Tp*>::store definition)Paolo Carlini2-14/+13
2010-09-07 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/45398 * include/std/atomic (atomic<_TP*>::store): Define. * include/std/atomic (atomic<_TP*>::load, exchange): Define inline. From-SVN: r163950
2010-09-06abi.exp: Add "libstdc++-abi/" to abi_check FAIL message.Jason Merrill2-1/+6
* testsuite/libstdc++-abi/abi.exp: Add "libstdc++-abi/" to abi_check FAIL message. From-SVN: r163916
2010-09-03re PR libstdc++/45347 (concurrence.h: In constructor ↵Paolo Carlini2-1/+8
'__gnu_cxx::__cond::__cond()': /home/jayk/obj/gcc451/alphaev67-dec-osf5.1/libstdc++-v3/include/ext/concurrence.h:276:29: warning: missing initializer for member '__pthread_cond_t::__bloc) 2010-09-03 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/45347 * include/ext/concurrence.h: Add #pragma GCC system_header. From-SVN: r163848
2010-09-03libstdc++.exp ([check_v3_target_debug_mode]): Fix so that it really detects ↵François Dumont130-1475/+927
when debug mode is activated. 2010-09-03 François Dumont <francois.cppdevs@free.fr> * testsuite/lib/libstdc++.exp ([check_v3_target_debug_mode]): Fix so that it really detects when debug mode is activated. * testsuite/util/debug/construct_neg.h, insert_neg.h, assign_neg.h: Remove, content moved... * testsuite/util/debug/checks.h: ... here. Modify checks to take the type of the container to test rather than an intermediate container type traits helper. * testsuite/23_containers/unordered_map/debug/insert1_neg.cc: Update to use dg-require-debug-mode when necessary and use new check functions. * testsuite/23_containers/unordered_map/debug/construct1_neg.cc: Likewise. * testsuite/23_containers/unordered_map/debug/construct2_neg.cc: Likewise. * testsuite/23_containers/unordered_map/debug/insert2_neg.cc: Likewise. * testsuite/23_containers/unordered_map/debug/construct3_neg.cc: Likewise. * testsuite/23_containers/unordered_map/debug/insert3_neg.cc: Likewise. * testsuite/23_containers/unordered_map/debug/construct4_neg.cc: Likewise. * testsuite/23_containers/unordered_map/debug/insert4_neg.cc: Likewise. * testsuite/23_containers/multimap/debug/insert1_neg.cc: Likewise. * testsuite/23_containers/multimap/debug/construct1_neg.cc: Likewise. * testsuite/23_containers/multimap/debug/construct2_neg.cc: Likewise. * testsuite/23_containers/multimap/debug/insert2_neg.cc: Likewise. * testsuite/23_containers/multimap/debug/construct3_neg.cc: Likewise. * testsuite/23_containers/multimap/debug/insert3_neg.cc: Likewise. * testsuite/23_containers/multimap/debug/construct4_neg.cc: Likewise. * testsuite/23_containers/multimap/debug/insert4_neg.cc: Likewise. * testsuite/23_containers/set/debug/insert1_neg.cc: Likewise. * testsuite/23_containers/set/debug/construct1_neg.cc: Likewise. * testsuite/23_containers/set/debug/construct2_neg.cc: Likewise. * testsuite/23_containers/set/debug/insert2_neg.cc: Likewise. * testsuite/23_containers/set/debug/construct3_neg.cc: Likewise. * testsuite/23_containers/set/debug/insert3_neg.cc: Likewise. * testsuite/23_containers/set/debug/construct4_neg.cc: Likewise. * testsuite/23_containers/set/debug/insert4_neg.cc: Likewise. * testsuite/23_containers/unordered_multimap/debug/insert1_neg.cc: Likewise. * testsuite/23_containers/unordered_multimap/debug/construct1_neg.cc: Likewise. * testsuite/23_containers/unordered_multimap/debug/construct2_neg.cc: Likewise. * testsuite/23_containers/unordered_multimap/debug/insert2_neg.cc: Likewise. * testsuite/23_containers/unordered_multimap/debug/construct3_neg.cc: Likewise. * testsuite/23_containers/unordered_multimap/debug/insert3_neg.cc: Likewise. * testsuite/23_containers/unordered_multimap/debug/construct4_neg.cc: Likewise. * testsuite/23_containers/unordered_multimap/debug/insert4_neg.cc: Likewise. * testsuite/23_containers/vector/debug/assign1_neg.cc: Likewise. * testsuite/23_containers/vector/debug/construct1_neg.cc: Likewise. * testsuite/23_containers/vector/debug/construct2_neg.cc: Likewise. * testsuite/23_containers/vector/debug/assign2_neg.cc: Likewise. * testsuite/23_containers/vector/debug/construct3_neg.cc: Likewise. * testsuite/23_containers/vector/debug/assign3_neg.cc: Likewise. * testsuite/23_containers/vector/debug/construct4_neg.cc: Likewise. * testsuite/23_containers/vector/debug/assign4_neg.cc: Likewise. * testsuite/23_containers/vector/debug/insert1_neg.cc: Likewise. * testsuite/23_containers/vector/debug/insert2_neg.cc: Likewise. * testsuite/23_containers/vector/debug/insert3_neg.cc: Likewise. * testsuite/23_containers/vector/debug/insert4_neg.cc: Likewise. * testsuite/23_containers/unordered_set/debug/insert1_neg.cc: Likewise. * testsuite/23_containers/unordered_set/debug/construct1_neg.cc: Likewise. * testsuite/23_containers/unordered_set/debug/construct2_neg.cc: Likewise. * testsuite/23_containers/unordered_set/debug/insert2_neg.cc: Likewise. * testsuite/23_containers/unordered_set/debug/construct3_neg.cc: Likewise. * testsuite/23_containers/unordered_set/debug/insert3_neg.cc: Likewise. * testsuite/23_containers/unordered_set/debug/construct4_neg.cc: Likewise. * testsuite/23_containers/unordered_set/debug/insert4_neg.cc: Likewise. * testsuite/23_containers/deque/debug/assign1_neg.cc: Likewise. * testsuite/23_containers/deque/debug/construct1_neg.cc: Likewise. * testsuite/23_containers/deque/debug/construct2_neg.cc: Likewise. * testsuite/23_containers/deque/debug/assign2_neg.cc: Likewise. * testsuite/23_containers/deque/debug/construct3_neg.cc: Likewise. * testsuite/23_containers/deque/debug/assign3_neg.cc: Likewise. * testsuite/23_containers/deque/debug/construct4_neg.cc: Likewise. * testsuite/23_containers/deque/debug/assign4_neg.cc: Likewise. * testsuite/23_containers/deque/debug/insert1_neg.cc: Likewise. * testsuite/23_containers/deque/debug/insert2_neg.cc: Likewise. * testsuite/23_containers/deque/debug/insert3_neg.cc: Likewise. * testsuite/23_containers/deque/debug/insert4_neg.cc: Likewise. * testsuite/23_containers/multiset/debug/insert1_neg.cc: Likewise. * testsuite/23_containers/multiset/debug/construct1_neg.cc: Likewise. * testsuite/23_containers/multiset/debug/construct2_neg.cc: Likewise. * testsuite/23_containers/multiset/debug/insert2_neg.cc: Likewise. * testsuite/23_containers/multiset/debug/construct3_neg.cc: Likewise. * testsuite/23_containers/multiset/debug/insert3_neg.cc: Likewise. * testsuite/23_containers/multiset/debug/construct4_neg.cc: Likewise. * testsuite/23_containers/multiset/debug/insert4_neg.cc: Likewise. * testsuite/23_containers/list/debug/assign1_neg.cc: Likewise. * testsuite/23_containers/list/debug/construct1_neg.cc: Likewise. * testsuite/23_containers/list/debug/construct2_neg.cc: Likewise. * testsuite/23_containers/list/debug/assign2_neg.cc: Likewise. * testsuite/23_containers/list/debug/construct3_neg.cc: Likewise. * testsuite/23_containers/list/debug/assign3_neg.cc: Likewise. * testsuite/23_containers/list/debug/construct4_neg.cc: Likewise. * testsuite/23_containers/list/debug/assign4_neg.cc: Likewise. * testsuite/23_containers/list/debug/insert1_neg.cc: Likewise. * testsuite/23_containers/list/debug/insert2_neg.cc: Likewise. * testsuite/23_containers/list/debug/insert3_neg.cc: Likewise. * testsuite/23_containers/list/debug/insert4_neg.cc: Likewise. * testsuite/23_containers/unordered_multiset/debug/insert1_neg.cc: Likewise. * testsuite/23_containers/unordered_multiset/debug/construct1_neg.cc: Likewise. * testsuite/23_containers/unordered_multiset/debug/construct2_neg.cc: Likewise. * testsuite/23_containers/unordered_multiset/debug/insert2_neg.cc: Likewise. * testsuite/23_containers/unordered_multiset/debug/construct3_neg.cc: Likewise. * testsuite/23_containers/unordered_multiset/debug/insert3_neg.cc: Likewise. * testsuite/23_containers/unordered_multiset/debug/construct4_neg.cc: Likewise. * testsuite/23_containers/unordered_multiset/debug/insert4_neg.cc: Likewise. * testsuite/23_containers/map/debug/insert1_neg.cc: Likewise. * testsuite/23_containers/map/debug/construct1_neg.cc: Likewise. * testsuite/23_containers/map/debug/construct2_neg.cc: Likewise. * testsuite/23_containers/map/debug/insert2_neg.cc: Likewise. * testsuite/23_containers/map/debug/construct3_neg.cc: Likewise. * testsuite/23_containers/map/debug/insert3_neg.cc: Likewise. * testsuite/23_containers/map/debug/construct4_neg.cc: Likewise. * testsuite/23_containers/map/debug/insert4_neg.cc: Likewise. * testsuite/23_containers/unordered_map/debug/cont_traits.h: Remove. * testsuite/23_containers/unordered_map/debug/debug_cont_traits.h: Likewise. * testsuite/23_containers/multimap/debug/cont_traits.h: Likewise. * testsuite/23_containers/multimap/debug/debug_cont_traits.h: Likewise. * testsuite/23_containers/set/debug/cont_traits.h: Likewise. * testsuite/23_containers/set/debug/debug_cont_traits.h: Likewise. * testsuite/23_containers/unordered_multimap/debug/cont_traits.h: Likewise. * testsuite/23_containers/unordered_multimap/debug/ debug_cont_traits.h: Likewise. * testsuite/23_containers/vector/debug/cont_traits.h: Likewise. * testsuite/23_containers/vector/debug/debug_cont_traits.h: Likewise. * testsuite/23_containers/unordered_set/debug/cont_traits.h: Likewise. * testsuite/23_containers/unordered_set/debug/debug_cont_traits.h: Likewise. * testsuite/23_containers/deque/debug/cont_traits.h: Likewise. * testsuite/23_containers/deque/debug/debug_cont_traits.h: Likewise. * testsuite/23_containers/multiset/debug/cont_traits.h: Likewise. * testsuite/23_containers/multiset/debug/debug_cont_traits.h: Likewise. * testsuite/23_containers/list/debug/cont_traits.h: Likewise. * testsuite/23_containers/list/debug/debug_cont_traits.h: Likewise. * testsuite/23_containers/unordered_multiset/debug/cont_traits.h: Likewise. * testsuite/23_containers/unordered_multiset/debug/ debug_cont_traits.h: Likewise. * testsuite/23_containers/map/debug/cont_traits.h: Likewise. * testsuite/23_containers/map/debug/debug_cont_traits.h: Likewise. * testsuite/21_strings/basic_string/element_access/char: Tidy. * testsuite/21_strings/basic_string/element_access/wchar_t: Likewise. From-SVN: r163837
2010-09-02re PR libstdc++/40974 (cannot build gcc-4.4.1: fenv_t has not been declared)Paolo Carlini3-2/+8
2010-09-02 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/40974 * include/Makefile.am: Add -nostdinc++ to PCHFLAGS. * include/Makefile.in: Regenerate. From-SVN: r163777
2010-09-01re PR libstdc++/45488 (lower_bound doesn't really require the iterator ↵Christopher Yeleighton2-31/+22
parameters to be default constructible) 2010-09-01 Christopher Yeleighton <giecrilj@stegny.2a.pl> Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/45488 * include/bits/stl_algobase.h (lower_bound): Clean-up a tad, move two variables inside the main loop. * include/bits/stl_algo.h (lower_bound, upper_bound, equal_range): Likewise. From-SVN: r163747
2010-09-01re PR libstdc++/45488 (lower_bound doesn't really require the iterator ↵Christopher Yeleighton1-0/+9
parameters to be default constructible) 2010-09-01 Christopher Yeleighton <giecrilj@stegny.2a.pl> Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/45488 * include/bits/stl_algobase.h (lower_bound): Clean-up a tad, move two variables inside the main loop. * include/bits/stl_algo.h (lower_bound, upper_bound, equal_range): Likewise. From-SVN: r163746
2010-08-31re PR libstdc++/44480 ([C++0x] Linear performance of begin() in unordered ↵Paolo Carlini2-53/+76
associative containers) 2010-08-31 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/44480 * include/bits/hashtable.h (_Hashtable<>::_M_begin_bucket_index): Add, caching the index of the first non-empty bucket. (begin, cbegin): Use it. (_Hashtable<>::_Hashtable(_InputIterator, _InputIterator, ...), _Hashtable(const _Hashtable&), _Hashtable(_Hashtable&&), swap(_Hashtable&), clear): Adjust. (_M_insert_bucket, _M_insert, erase(const_iterator), erase(const key_type&), _M_rehash): Update it. * include/bits/hashtable.h (_Hashtable<>::_M_erase): Remove. (erase(const_iterator)): Inline the latter. From-SVN: r163686
2010-08-31remove_freed.cc: Fix test01 return type to void.Paolo Carlini4-5/+12
2010-08-31 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/23_containers/forward_list/operations/remove_freed.cc: Fix test01 return type to void. * testsuite/util/exception/safety.h: Avoid -Wall -m32 warnings. * testsuite/util/replacement_memory_operators.h: Likewise. From-SVN: r163684
2010-08-29[multiple changes]Paolo Carlini167-72/+4819
2010-08-29 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/23_containers/bitset/invalidation: Move... * testsuite/23_containers/bitset/debug/invalidation: ... here. * testsuite/23_containers/deque/invalidation: Move... * testsuite/23_containers/deque/debug/invalidation: ... here. * testsuite/23_containers/list/invalidation: Move... * testsuite/23_containers/list/debug/invalidation: ... here. * testsuite/23_containers/map/invalidation: Move... * testsuite/23_containers/map/debug/invalidation: ... here. * testsuite/23_containers/multimap/invalidation: Move... * testsuite/23_containers/multimap/debug/invalidation: ... here. * testsuite/23_containers/set/invalidation: Move... * testsuite/23_containers/set/debug/invalidation: ... here. * testsuite/23_containers/multiset/invalidation: Move... * testsuite/23_containers/multiset/debug/invalidation: ... here. * testsuite/23_containers/vector/invalidation: Move... * testsuite/23_containers/vector/debug/invalidation: ... here. 2010-08-29 François Dumont <francois.cppdevs@free.fr> * include/bits/stl_algobase.h (_Iter_base): Move... * include/bits/stl_iterator_base_types.h: ...here. * include/debug/functions.h (__check_valid_range, __check_string, __check_sorted): Fix to not depend on _GLIBCXX_DEBUG; include formatter.h and use formatting macros for a consistent debug result. * include/debug/formatter.h (__check_singular): Declare; do not include debug.h. * include/debug/debug.h: Do not include formatter.h. * include/debug/safe_iterator.h (_Safe_iterator::_Base_Iterator) rename to iterator_type. (__gnu_debug::__base): Add. * include/debug/set.h: Use everywhere __gnu_debug::__base once iterator range valided. * include/debug/unordered_map: Likewise. * include/debug/multiset.h: Likewise. * include/debug/vector: Likewise. * include/debug/unordered_set: Likewise. * include/debug/deque: Likewise. * include/debug/map.h: Likewise. * include/debug/string: Likewise. * include/debug/list: Likewise. * include/debug/multimap.h: Likewise. * testsuite/23_containers/util/debug/assign_neg.h: New test cases on debug checks performed on container assign operation. * testsuite/23_containers/util/debug/construct_neg.h: New test cases on debug checks on constructors. * testsuite/23_containers/util/debug/insert_neg.h: New test cases on debug checks performed on container insert operations. * testsuite/23_containers/unordered_map/debug/cont_traits.h, debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc, construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc, insert3_neg.cc, insert4_neg.cc: New. * testsuite/23_containers/multimap/debug/cont_traits.h, debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc, construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc, insert3_neg.cc, insert4_neg.cc: Likewise. * testsuite/23_containers/set/debug/cont_traits.h, debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc, construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc, insert3_neg.cc, insert4_neg.cc: Likewise. * testsuite/23_containers/unordered_multimap/debug/cont_traits.h, debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc, construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc, insert3_neg.cc, insert4_neg.cc: Likewise. * testsuite/23_containers/unordered_set/debug/cont_traits.h, debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc, construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc, insert3_neg.cc, insert4_neg.cc: Likewise. * testsuite/23_containers/multiset/debug/cont_traits.h, debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc, construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc, insert3_neg.cc, insert4_neg.cc: Likewise. * testsuite/23_containers/unordered_multiset/debug/cont_traits.h, debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc, construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc, insert3_neg.cc, insert4_neg.cc: Likewise. * testsuite/23_containers/map/debug/cont_traits.h, debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc, construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc, insert3_neg.cc, insert4_neg.cc: Likewise. * testsuite/23_containers/vector/debug/cont_traits.h, debug_cont_traits.h, assign1_neg.cc, assign2_neg.cc, assign3_neg.cc, assign4_neg.cc, construct1_neg.cc, construct2_neg.cc, construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc, insert3_neg.cc, insert4_neg.cc: Likewise. * testsuite/23_containers/deque/debug/cont_traits.h, debug_cont_traits.h, assign1_neg.cc, assign2_neg.cc, assign3_neg.cc, assign4_neg.cc, construct1_neg.cc, construct2_neg.cc, construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc, insert3_neg.cc, insert4_neg.cc: Likewise. * testsuite/23_containers/list/debug/cont_traits.h, debug_cont_traits.h, assign1_neg.cc, assign2_neg.cc, assign3_neg.cc, assign4_neg.cc, construct1_neg.cc, construct2_neg.cc, construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc, insert3_neg.cc, insert4_neg.cc: Likewise. * testsuite/performance/23_containers/range_construct/ list_construct1.cc: New, validate performance impact of the patch on the debug mode. * testsuite/performance/23_containers/range_construct/ list_construct2.cc: Likewise. * testsuite/performance/23_containers/range_construct/ vector_construct.cc: Likewise. * testsuite/performance/23_containers/range_construct/ deque_construct.cc: Likewise. From-SVN: r163628
2010-08-27stl_iterator_base_types.h: Fix doxygen warning.Benjamin Kosnik2-1/+11
2010-08-26 Benjamin Kosnik <bkoz@redhat.com> * include/bits/stl_iterator_base_types.h: Fix doxygen warning. From-SVN: r163592
2010-08-21Fix misquoting in stdint.m4.Ralf Wildenhues2-8/+8
config/: PR target/45084 * stdint.m4 (GCC_HEADER_STDINT): Use m4 quotes for arguments of AC_MSG_ERROR. libdecnumber/: * configure: Regenerate. libgfortran/: * configure: Regenerate. libgomp/: * configure: Regenerate. libstdc++-v3/: * configure: Regenerate. From-SVN: r163441
2010-08-18re PR libstdc++/45276 (Need to document _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE)Kostya Serebryany2-0/+57
2010-08-18 Kostya Serebryany <kcc@google.com> Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/45276 * doc/xml/manual/debug.xml ([debug.races]): Add. Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com> From-SVN: r163342
2010-08-17re PR libstdc++/45300 (in cstdio/cstdlib keyword restrict is used instead of ↵Paolo Carlini3-6/+12
__restrict) 2010-08-17 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/45300 * include/c_std/cwchar: Replace 'restrict' -> '__restrict'. * include/c_global/cwchar: Likewise. From-SVN: r163304
2010-08-16re PR libstdc++/45300 (in cstdio/cstdlib keyword restrict is used instead of ↵Paolo Carlini5-14/+24
__restrict) 2010-08-16 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/45300 * include/c_std/cstdlib: Replace 'restrict' -> '__restrict'. * include/c_std/cstdio: Likewise. * include/c_global/cstdlib: Likewise. * include/c_global/cstdio: Likewise. From-SVN: r163283
2010-08-16printers.py (StdVectorPrinter): Added stuff to handle pretty-printing of ↵Chris Moller2-11/+51
std::vector<bool>. 2010-08-16 Chris Moller <cmoller@redhat.com> http://sourceware.org/bugzilla/show_bug.cgi?id=11874 * python/libstdcxx/v6/printers.py (StdVectorPrinter): Added stuff to handle pretty-printing of std::vector<bool>. From-SVN: r163282
2010-08-14re PR libstdc++/45283 (performance/30_threads/future/polling.cc fails at ↵Jonathan Wakely2-3/+14
compile time) 2010-08-14 Jonathan Wakely <jwakely.gcc@gmail.com> PR libstdc++/45283 * testsuite/performance/30_threads/future/polling.cc: Replace calls to shared_future::is_ready. From-SVN: r163250
2010-08-14hashtable.h (_Hashtable<>::operator=(const _Hashtable&)): Move inline.Paolo Carlini8-155/+201
2010-08-13 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/hashtable.h (_Hashtable<>::operator=(const _Hashtable&)): Move inline. (operator=(_Hashtable&&)): Define. * include/bits/unordered_map.h (unordered_map(unordered_map&&), unordered_map(const unordered_map&), unordered_multimap (unordered_multimap&&), unordered_multimap(const unordered_multimap&), __unordered_map(__unordered_map&&), __unordered_map(const __unordered_map&), __unordered_multimap(__unordered_multimap&&), __unordered_multimap(const __unordered_multimap&)): Do not define, leave implicit. * include/bits/unordered_set.h (unordered_set(unordered_set&&), unordered_set(const unordered_set&), unordered_multiset (unordered_multiset&&), unordered_multiset(const unordered_multiset&), __unordered_set(__unordered_set&&), __unordered_set(const __unordered_set&), __unordered_multiset(__unordered_multiset&&), __unordered_multiset(const __unordered_multiset&)): Likewise. * include/bits/unordered_map.h (__unordered_map(initializer_list<>), __unordered_map<>::operator=(initializer_list<>), __unordered_multimap(initializer_list<>), __unordered_multimap<>:: operator=(initializer_list<>)): Add. * include/bits/unordered_set.h (__unordered_set(initializer_list<>), __unordered_set<>::operator=(initializer_list<>), __unordered_multiset(initializer_list<>), __unordered_multiset<>:: operator=(initializer_list<>)): Likewise. * include/bits/unordered_map.h (__unordered_map(_InputIterator, _InputIterator, size_type __n), unordered_map(_InputIterator, _InputIterator, size_type __n), unordered_map(initializer_list<>, size_type __n), unordered_multimap(initializer_list<>, size_type __n)): Fix __n default to 0. * include/bits/unordered_set.h (__unordered_set(_InputIterator, _InputIterator, size_type __n), unordered_set(_InputIterator, _InputIterator, size_type __n), unordered_set(initializer_list<>, size_type __n), unordered_multiset(initializer_list<>, size_type __n)): Likewise. * include/debug/unordered_map (unordered_map(_InputIterator, _InputIterator, size_type __n), unordered_map(initializer_list<>, size_type __n), unordered_map(_InputIterator, _InputIterator, size_type __n), unordered_multimap(initializer_list<>, size_type __n)): Likewise. * include/debug/unordered_set (unordered_set(_InputIterator, _InputIterator, size_type __n), unordered_set(initializer_list<>, size_type __n), unordered_set(_InputIterator, _InputIterator, size_type __n), unordered_multiset(initializer_list<>, size_type __n)): Likewise. * include/profile/unordered_map (unordered_map(_InputIterator, _InputIterator, size_type __n), unordered_map(initializer_list<>, size_type __n), unordered_map(_InputIterator, _InputIterator, size_type __n), unordered_multimap(initializer_list<>, size_type __n)): Likewise. * include/profile/unordered_set (unordered_set(_InputIterator, _InputIterator, size_type __n), unordered_set(initializer_list<>, size_type __n), unordered_set(_InputIterator, _InputIterator, size_type __n), unordered_multiset(initializer_list<>, size_type __n)): Likewise. From-SVN: r163236
2010-08-14re PR libstdc++/45281 ↵Paolo Carlini2-22/+8
(performance/ext/pb_ds/priority_queue_text_modify_down_timing.cc fails at compile time) 2010-08-13 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/45281 * include/bits/stl_queue.h (queue(queue&&), operator=(queue&&), priority_queue(priority_queue&&), operator=(priority_queue&&)): Remove, per CH 15. From-SVN: r163231
2010-08-13dr1189.cc: Move to...Paolo Carlini6-0/+74
2010-08-13 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/23_containers/unordered_map/dr1189.cc: Move to... * testsuite/23_containers/unordered_map/hash_policy/dr1189.cc: ... here. * testsuite/23_containers/unordered_set/dr1189.cc: Move to... * testsuite/23_containers/unordered_set/hash_policy/dr1189.cc: ... here. * testsuite/23_containers/unordered_multimap/dr1189.cc: Move to... * testsuite/23_containers/unordered_multimap/hash_policy/dr1189.cc: ... here. * testsuite/23_containers/unordered_multiset/dr1189.cc: Move to... * testsuite/23_containers/unordered_multiset/hash_policy/dr1189.cc: ... here. * testsuite/23_containers/unordered_set/hash_policy/26132.cc: New. From-SVN: r163224
2010-08-13ios_init.cc (ios_base::Init::~Init): Add back semicolon at the end of the ↵Paolo Carlini8-20/+32
_GLIBCXX_SYNCHRONIZATION_HAPPENS* macros... 2010-08-12 Paolo Carlini <paolo.carlini@oracle.com> * src/ios_init.cc (ios_base::Init::~Init): Add back semicolon at the end of the _GLIBCXX_SYNCHRONIZATION_HAPPENS* macros, removed by mistake. * include/tr1_impl/boost_sp_counted_base.h: Likewise. * include/ext/rc_string_base.h: Likewise. * include/bits/locale_classes.h: Likewise. * include/bits/basic_string.h: Likewise. * include/bits/ios_base.h: Likewise. * include/bits/c++config: Adjust comment. From-SVN: r163223
2010-08-12c++config (_GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE, [...]): Add.Kostya Serebryany11-13/+101
2010-08-12 Kostya Serebryany <kcc@google.com> Paolo Carlini <paolo.carlini@oracle.com> * include/bits/c++config (_GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE, _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER): Add. * src/ios_init.cc (ios_base::Init::~Init): Decorate with the latter. * include/tr1_impl/boost_sp_counted_base.h: Likewise. * include/ext/rc_string_base.h: Likewise. * include/bits/locale_classes.h: Likewise. * include/bits/basic_string.h: Likewise. * include/bits/ios_base.h: Likewise. * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust dg-error line number. * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise. * testsuite/ext/profile/mutex_extensions.cc: Likewise. Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com> From-SVN: r163210