Paolo Carlini
aa2b7414b0
allocator.h (allocator_arg_t, [...]): Add.
...
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-27 17:27:43 +00:00
Paolo Carlini
f3961bdf99
cmath (__pow_helper): Remove.
...
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-27 09:27:05 +00:00
Paolo Carlini
c98ca4c79c
2010-09-22 Paolo Carlini <paolo.carlini@oracle.com>
...
* Fix typo in last ChangeLog entry.
From-SVN: r164530
2010-09-22 19:46:06 +00:00
David Krauss
3531cf5ef3
re PR libstdc++/45628 (std::fstream::tellg invalidates I/O buffer)
...
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-22 19:40:43 +00:00
Paolo Carlini
5d64ee190c
functional_hash.h (__hash_base): Add.
...
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-22 17:50:36 +00:00
Paolo Carlini
bafa9791ac
typeindex: New.
...
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-22 12:04:08 +00:00
Paolo Carlini
33da99cb9c
hash_bytes.cc: Move...
...
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-22 08:19:08 +00:00
Ralf Wildenhues
8d03ad011a
re PR libstdc++/45711 (Building with "--enable-libstdcxx-debug" fails during 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-20 19:33:12 +00:00
Ralf Wildenhues
6e687a9ad7
Uglify C++ headers some more.
...
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-19 09:44:24 +00:00
Paolo Carlini
61e60481d0
hash_bytes.cc: Compile load_bytes and shift_mix only when __SIZEOF_SIZE_T__ == 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-19 08:52:50 +00:00
Luc Hermitte
fc99f7809e
re PR libstdc++/45713 (sizeof std::bitset<ULONG_MAX> == 1)
...
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-18 01:29:31 +00:00
Paolo Carlini
5ee996a2c6
stl_raw_storage_iter.h (raw_storage_iterator<>:: operator=(const _Tp&)): Use 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-16 17:09:10 +00:00
Paolo Carlini
b5fbd147fe
system_error (system_error::system_error(error_code), [...]): Fix for what() 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-16 14:55:37 +00:00
Paolo Carlini
f941c3e212
complex (complex<float>::operator=(float), [...]): Simplify a tad...
...
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-16 12:39:13 +00:00
François Dumont
619b56bce2
libstdc++.exp, ([check_v3_target_namedlocale]): Clean temporary source file 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 20:54:48 +00:00
Paolo Carlini
9c69a45888
[multiple changes]
...
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-15 10:46:39 +00:00
Paolo Carlini
a5d39cb4a7
[multiple changes]
...
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-14 10:27:36 +00:00
Benjamin Kosnik
14694348f1
api.xml: Add title.
...
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-13 18:31:17 +00:00
Matt Austern
e7f72940d2
hash_bytes.cc: New file...
...
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-13 18:23:56 +00:00
Paolo Carlini
ac42c96090
forward_list.h (forward_list<>::resize(size_type, value_type)): Fix 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-13 16:30:47 +00:00
Paolo Carlini
fe09341996
4.cc: New.
...
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-13 15:12:31 +00:00
Paolo Carlini
2dd3121f9e
hash-string-aux.cc: Remove.
...
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-10 14:07:55 +00:00
Paolo Carlini
06f29237d7
re PR libstdc++/45613 (bits/random.h misses include guards)
...
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-09 11:23:39 +00:00
Paolo Carlini
61356c15ac
cxxabi.h: Uglify nothrow to __nothrow__; fix a few inconsistent 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-09 10:46:04 +00:00
Paolo Carlini
ccef29e831
re PR libstdc++/45549 (merge is_iterator into iterator_traits)
...
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-07 22:30:33 +00:00
Paolo Carlini
b7c3f5eb21
re PR libstdc++/45398 ([C++0x] Missing atomic<_Tp*>::store definition)
...
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-07 14:05:23 +00:00
Jason Merrill
6d105d8db8
abi.exp: Add "libstdc++-abi/" to abi_check FAIL message.
...
* testsuite/libstdc++-abi/abi.exp: Add "libstdc++-abi/" to
abi_check FAIL message.
From-SVN: r163916
2010-09-06 09:55:40 -04:00
Paolo Carlini
9c7f808d0b
re PR libstdc++/45347 (concurrence.h: In constructor '__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-03 23:19:18 +00:00
François Dumont
d78301422a
libstdc++.exp ([check_v3_target_debug_mode]): Fix so that it really detects 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-03 18:10:46 +00:00
Paolo Carlini
6f0546801a
re PR libstdc++/40974 (cannot build gcc-4.4.1: fenv_t has not been declared)
...
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-02 14:13:00 +00:00
Christopher Yeleighton
1ed78d6c3d
re PR libstdc++/45488 (lower_bound doesn't really require the iterator 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-01 22:58:15 +00:00
Christopher Yeleighton
5ad97fcf61
re PR libstdc++/45488 (lower_bound doesn't really require the iterator 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-09-01 22:58:05 +00:00
Paolo Carlini
18dbb85903
re PR libstdc++/44480 ([C++0x] Linear performance of begin() in unordered 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-31 17:39:51 +00:00
Paolo Carlini
ba6a601c1a
remove_freed.cc: Fix test01 return type to void.
...
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-31 17:24:39 +00:00
Paolo Carlini
1f5ca1a15c
[multiple changes]
...
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-29 17:39:00 +00:00
Benjamin Kosnik
ee1e5e63ec
stl_iterator_base_types.h: Fix doxygen warning.
...
2010-08-26 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/stl_iterator_base_types.h: Fix doxygen warning.
From-SVN: r163592
2010-08-27 18:16:05 +00:00
Ralf Wildenhues
75bc9e5e0d
Fix misquoting in stdint.m4.
...
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-21 12:18:02 +00:00
Kostya Serebryany
3ff91293eb
re PR libstdc++/45276 (Need to document _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE)
...
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-18 15:21:56 +00:00
Paolo Carlini
a85615d28a
re PR libstdc++/45300 (in cstdio/cstdlib keyword restrict is used instead of __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-17 13:15:41 +00:00
Paolo Carlini
f2871ffddb
re PR libstdc++/45300 (in cstdio/cstdlib keyword restrict is used instead of __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-16 19:01:35 +00:00
Chris Moller
7bf7b578b7
printers.py (StdVectorPrinter): Added stuff to handle pretty-printing of 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-16 18:48:27 +00:00
Jonathan Wakely
73571bf1e2
re PR libstdc++/45283 (performance/30_threads/future/polling.cc fails at 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-14 21:00:55 +01:00
Paolo Carlini
417e896ead
hashtable.h (_Hashtable<>::operator=(const _Hashtable&)): Move inline.
...
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-14 01:00:23 +00:00
Paolo Carlini
10260b86aa
re PR libstdc++/45281 (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-14 00:09:21 +00:00
Paolo Carlini
7d74619b73
dr1189.cc: Move to...
...
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-13 13:08:09 +00:00
Paolo Carlini
8c61f40011
ios_init.cc (ios_base::Init::~Init): Add back semicolon at the end of the _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-13 11:48:34 +00:00
Kostya Serebryany
be335b18a9
c++config (_GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE, [...]): Add.
...
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
2010-08-12 22:56:59 +00:00
Paolo Carlini
afb767b41f
hashtable.h (_Hashtable<>::erase(const key_type&)): Use std::__addressof.
...
2010-08-11 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/hashtable.h (_Hashtable<>::erase(const key_type&)):
Use std::__addressof.
* include/bits/forward_list.tcc (forward_list<>::remove): Deal
correctly with &__tmp->_M_value == &__val.
* testsuite/23_containers/forward_list/operations/remove_freed.cc:
New.
From-SVN: r163178
2010-08-11 23:59:35 +00:00
Paolo Carlini
633e8e192b
stl_algo.h (shuffle): Change signature consistently with random_shuffle (US 121).
...
2010-08-11 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/stl_algo.h (shuffle): Change signature consistently
with random_shuffle (US 121).
* 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: r163102
2010-08-11 17:10:04 +00:00
Paolo Carlini
4c7aaebf4d
move.h (forward): Reinstate the N2835 version.
...
2010-08-11 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/move.h (forward): Reinstate the N2835 version.
From-SVN: r163101
2010-08-11 16:55:33 +00:00