GCC Administrator
fb643d23f7
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r88832.2
2004-10-10 00:16:14 +00:00
Paolo Carlini
dafa8871d1
std_memory.h (__get_temporary_buffer): Don't use INT_MAX...
...
2004-10-09 Paolo Carlini <pcarlini@suse.de>
* include/std/std_memory.h (__get_temporary_buffer): Don't use
INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
platforms too.
* testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
line numbers.
From-SVN: r88814
2004-10-09 08:23:02 +00:00
GCC Administrator
a5df984b5f
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r88805.2
2004-10-09 00:16:17 +00:00
GCC Administrator
9c049d3808
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r88724.2
2004-10-08 00:16:13 +00:00
Paolo Carlini
4681bebd90
list.tcc (operator=): Avoid iterator postincrement.
...
2004-10-07 Paolo Carlini <pcarlini@suse.de>
* include/bits/list.tcc (operator=): Avoid iterator postincrement.
* include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
From-SVN: r88715
2004-10-07 22:44:30 +00:00
Benjamin Kosnik
3febde356c
tr1: New.
...
2004-10-07 Benjamin Kosnik <bkoz@redhat.com>
* include/tr1: New.
* include/tr1/array: New.
* include/Makefile.am (tr1_headers): New.
(stamp-tr1): New.
(install-headers): New.
(allstamped): Add stamp-tr1.
* include/ext/array_allocator.h: New.
* include/Makefile.am: Add.
* include/Makefile.in: Regenerate.
* testsuite/ext/array_allocator/1.cc: New.
* testsuite/ext/array_allocator/2.cc: New.
From-SVN: r88711
2004-10-07 22:06:23 +00:00
GCC Administrator
d1d525310b
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r88653.2
2004-10-07 00:17:18 +00:00
Benjamin Kosnik
e3f78d9b11
acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
...
2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
(GLIBCXX_CONFIGURE_TESTSUITE): Use it.
* configure: Regenerated.
* testsuite/Makefile.am (CLEANFILES): Add TEST for
check-performance executables.
(stamp_thread): New.
(all-local): Use it.
* testsuite/Makefile.in: Regenerate.
* scripts/create_testsuite_files: Filter thread tests.
* testsuite/thread/pthread1.cc: Remove macro conditionals: this
file will only be run by thread enabled configurations.
* testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
* testsuite/thread/pthread6.cc: Same.
* testsuite/thread/pthread5.cc: Same.
* testsuite/thread/pthread4.cc: Same.
* testsuite/thread/pthread3.cc: Same.
* testsuite/thread/pthread2.cc: Same.
* testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
* testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
* testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
* testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
* testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
* testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
* testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
* testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
* testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
From-SVN: r88628
2004-10-06 22:12:34 +00:00
Paolo Carlini
dbb8bfe8c5
[multiple changes]
...
2004-10-06 Paolo Carlini <pcarlini@suse.de>
* include/std/std_sstream.h (_M_sync): When the caller is
setbuf, don't trust _M_string.capacity() to be the size of
the buffer area, use _M_string.size() in this case.
* testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
* testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
* include/bits/sstream.tcc (overflow): Avoid calling string::assign
unnecessarily when the current _M_string is empty.
2004-10-06 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
Avoid iterator postincrement.
(__rotate): Likewise.
* include/bits/stl_algo.h: Minor formatting tweaks.
2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
* include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
Avoid iterator postincrement; fix swapping middle element with
itself on odd-length inputs.
From-SVN: r88593
2004-10-06 09:06:59 +00:00
Benjamin Kosnik
12cde21b12
re PR libstdc++/17780 (std::allocator vs. static init)
...
2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/17780
* include/ext/mt_allocator.h (__pool_base::_Tune): Add default
options as compile-time constant enums.
(__pool_base::_Tune::is_default): New.
(__pool_base::_Block_address): New.
(__pool_base): Rearrange data members.
(__pool::_M_reserve_memory): To _M_reserve_block.
(__pool::_M_reclaim_memory): To _M_reclaim_block.
(__pool::_Bin_record): Add _Block_address data member.
(__pool<false>): Add _M_thread_freelist_initial.
(__pool::~__pool): Declare.
(__common_pool_policy): Move static data member to...
(__common_pool_policy::_S_get_pool): ...here, make static local.
(__per_type_pool_policy): Move static data member to...
(__per_type_pool_policy::_S_get_pool): ...here, make static local.
(__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
Remove static member definitions. Use define for __default_policy.
* src/mt_allocator.cc: Same.
* config/linker-map.gnu: Don't export _S_get_pool. Renames.
* testsuite/ext/new_allocator: New.
* testsuite/ext/new_allocator/instantiate.cc: New.
* testsuite/ext/new_allocator/check_new.cc: New.
* testsuite/ext/new_allocator/deallocate_global.cc: New.
* testsuite/ext/new_allocator/deallocate_local.cc: New.
* testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
template arguments.
* testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
* testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
* testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
* testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
* testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
* testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
* testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
* testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
* testsuite/ext/mt_allocator/deallocate.cc: New.
* testsuite/ext/malloc_allocator/deallocate.cc: New.
* testsuite/ext/malloc_allocator/deallocate_global.cc: New.
* testsuite/ext/malloc_allocator/deallocate_local.cc: New.
From-SVN: r88589
2004-10-06 04:22:42 +00:00
GCC Administrator
7e5f29431c
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r88584.2
2004-10-06 00:16:16 +00:00
Christopher Jefferson
575665ff64
stl_algobase.h (iter_swap): delegate to swap via __iter_swap when iterator's value_types are equal.
...
2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
* include/bits/stl_algobase.h (iter_swap): delegate to swap via
__iter_swap when iterator's value_types are equal.
(struct __iter_swap): New.
From-SVN: r88549
2004-10-05 10:28:17 +00:00
GCC Administrator
b1a1ed7f64
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r88537.2
2004-10-05 00:16:26 +00:00
GCC Administrator
66cea67583
Daily bump.
...
From-SVN: r88470
2004-10-04 00:16:13 +00:00
Paolo Carlini
11aaf40c8c
stl_list.h: Trivial formatting fixes.
...
2004-10-03 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_list.h: Trivial formatting fixes.
* include/bits/stl_tree.h: Likewise.
From-SVN: r88451
2004-10-03 15:50:32 +00:00
Paolo Carlini
9d7bc6de21
sstream.tcc (seekpos): In case of success, just return __sp.
...
2004-10-03 Paolo Carlini <pcarlini@suse.de>
* include/bits/sstream.tcc (seekpos): In case of success, just
return __sp.
From-SVN: r88443
2004-10-03 11:33:53 +00:00
GCC Administrator
400356e3e9
Daily bump.
...
From-SVN: r88435
2004-10-03 00:16:10 +00:00
GCC Administrator
62bea9efc8
Daily bump.
...
From-SVN: r88415
2004-10-02 00:16:11 +00:00
Paolo Carlini
abccc4f66c
sstream.tcc (pbackfail): Implement correctly 27.7.1.3/2, bullet 2...
...
2004-10-01 Paolo Carlini <pcarlini@suse.de>
* include/bits/sstream.tcc (pbackfail): Implement correctly
27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
write in the buffer.
* testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
* testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
* testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
* testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
From-SVN: r88407
2004-10-01 21:01:29 +00:00
Paolo Carlini
f67b6b7a9e
sstream.tcc (seekpos): Minor rearrangement of two conditionals consistently with seekoff.
...
2004-10-01 Paolo Carlini <pcarlini@suse.de>
* include/bits/sstream.tcc (seekpos): Minor rearrangement of two
conditionals consistently with seekoff.
* include/std/std_sstream.h (setbuf): Avoid a string temporary.
(_M_sync): Simplify a bit, clean-up comment.
From-SVN: r88389
2004-10-01 09:22:49 +00:00
GCC Administrator
97804fa37c
Daily bump.
...
From-SVN: r88373
2004-10-01 00:16:11 +00:00
Paolo Carlini
9c9e97bdb4
PR libstdc++/10975 (DR 453)
...
2004-09-30 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/10975 (DR 453)
* include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
and __off == 0.
* docs/html/ext/howto.html: Add an entry for DR 453.
* testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
* testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
* testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
* testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
* testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
* testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
move to...
* testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
* testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
move to...
* testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
From-SVN: r88341
2004-09-30 17:23:10 +00:00
GCC Administrator
fa74d329ec
Daily bump.
...
From-SVN: r88316
2004-09-30 00:16:12 +00:00
Paolo Carlini
983de0da66
std_sstream.h (basic_stringbuf(ios_base::openmode)): Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
...
2004-09-29 Paolo Carlini <pcarlini@suse.de>
* include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
(str()): Slightly tweak, protect from pptr() == 0.
(_M_update_egptr()): Likewise.
* include/bits/sstream.tcc (ssekoff, seekpos): In order to check
for an empty buffer use __beg instead of _M_string.capacity().
* testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
* testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
* testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
* testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
2004-09-29 Paolo Carlini <pcarlini@suse.de>
Benjamin Kosnik <bkoz@redhat.com>
* testsuite/testsuite_io.h (class constraint_buf): New, extended
and templatized version of constraint_filebuf; add typedefs for
streambuf/stringbuf/filebuf and wchar_t counterparts.
Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
From-SVN: r88307
2004-09-29 21:14:43 +00:00
GCC Administrator
f7deb4e9f6
Daily bump.
...
From-SVN: r88262
2004-09-29 00:16:16 +00:00
Paolo Carlini
1165dc50e8
[multiple changes]
...
2004-09-28 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/16612
* include/bits/basic_string.h (_M_dispose, _M_refcopy,
basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
don't deal with _S_empty_rep.
* include/bits/basic_string.tcc (_S_construct, _M_destroy,
_M_leak_hard, _M_mutate): Likewise.
* acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
* acconfig.h: Add corresponding undef.
* configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
* docs/html/configopts.html: Document --enable-fully-dynamic-string.
* configure: Regenerate.
* config.h.in: Likewise.
2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
Paolo Carlini <pcarlini@suse.de>
* testsuite/21_strings/basic_string/operations/char/1.cc: New.
* testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
* testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
* testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
New.
2004-09-28 Paolo Carlini <pcarlini@suse.de>
* README: Remove obsolete entry about include/c_shadow.
From-SVN: r88225
2004-09-28 08:58:35 +00:00
GCC Administrator
081077002d
Daily bump.
...
From-SVN: r88212
2004-09-28 00:16:13 +00:00
GCC Administrator
84ca2ba728
Daily bump.
...
From-SVN: r88156
2004-09-27 00:16:14 +00:00
GCC Administrator
e6f433fc08
Daily bump.
...
From-SVN: r88119
2004-09-26 00:16:13 +00:00
GCC Administrator
f921af3008
Daily bump.
...
From-SVN: r88085
2004-09-25 00:16:20 +00:00
GCC Administrator
57ce4e0dce
Daily bump.
...
From-SVN: r87994
2004-09-24 00:16:19 +00:00
P.J. Darcy
512baaea75
gthr-tpf.h: New file.
...
2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
gcc/ChangeLog:
* gthr-tpf.h: New file.
* config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
* gthr.h: Use gthr-tpf.h on TPF OS.
libstdc++-v3/ChangeLog:
* include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
Add rule to build ${host_builddir}/gthr-tpf.h.
* include/Makefile.in: Regenerate.
From-SVN: r87982
2004-09-23 20:57:25 +00:00
Paolo Carlini
e5a067e81a
boost_concept_check.h (struct _SequenceConcept): Remove wrong requirement, i.e., not present in Table 67.
...
2004-09-23 Paolo Carlini <pcarlini@suse.de>
Magnus Fromreide <magfr@lysator.liu.se>
* include/bits/boost_concept_check.h (struct _SequenceConcept):
Remove wrong requirement, i.e., not present in Table 67.
Co-Authored-By: Magnus Fromreide <magfr@lysator.liu.se>
From-SVN: r87937
2004-09-23 09:13:29 +00:00
GCC Administrator
20ac2c8c4e
Daily bump.
...
From-SVN: r87906
2004-09-23 00:16:17 +00:00
GCC Administrator
31b92e3226
Daily bump.
...
From-SVN: r87833
2004-09-22 00:16:17 +00:00
GCC Administrator
d6c0b27afa
Daily bump.
...
From-SVN: r87783
2004-09-21 00:16:13 +00:00
GCC Administrator
82b0258299
Daily bump.
...
From-SVN: r87739
2004-09-20 00:16:14 +00:00
GCC Administrator
4557647703
Daily bump.
...
From-SVN: r87717
2004-09-19 00:16:13 +00:00
GCC Administrator
e407d8cb49
Daily bump.
...
From-SVN: r87683
2004-09-18 00:16:19 +00:00
Jonathan Wakely
a5fbe527f4
stl_algo.h (remove): Remove too restrictive concept-check.
...
2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
* include/bits/stl_algo.h (remove): Remove too restrictive
concept-check.
From-SVN: r87650
2004-09-17 14:11:59 +00:00
Paolo Carlini
c93af6f23d
fstream.tcc (xsgetn): Slightly tweak conditional, as per Nathan's original suggestion.
...
2004-09-17 Paolo Carlini <pcarlini@suse.de>
* include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
as per Nathan's original suggestion.
From-SVN: r87647
2004-09-17 14:01:18 +00:00
Paolo Carlini
ee19761de7
basic_file_stdio.cc (__basic_file<>::close)): Don't call unnecessarily sync, that is fflush...
...
2004-09-17 Paolo Carlini <pcarlini@suse.de>
Andrea Arcangeli <andrea@suse.de>
* config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
call unnecessarily sync, that is fflush: the library, since 3.4.0
does not use buffered fread/fwrite.
* include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
Co-Authored-By: Andrea Arcangeli <andrea@suse.de>
From-SVN: r87636
2004-09-17 08:42:07 +00:00
GCC Administrator
02382b9149
Daily bump.
...
From-SVN: r87622
2004-09-17 00:16:17 +00:00
GCC Administrator
bb15588e23
Daily bump.
...
From-SVN: r87581
2004-09-16 00:16:16 +00:00
GCC Administrator
798e5365d4
Daily bump.
...
From-SVN: r87523
2004-09-15 00:16:20 +00:00
Nathan Myers
d176806941
fstream.tcc (xsgetn): Slightly tweak the recent fix for 11722...
...
2004-09-14 Nathan Myers <ncm@cantrip.org>
* include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
for 11722: copy can replace move; the common case is __avail == 0.
From-SVN: r87501
2004-09-14 19:11:46 +00:00
Paolo Carlini
67dd4a9377
cpp_type_traits.h: Rename __is_trivially_copyable to __is_scalar...
...
2004-09-14 Paolo Carlini <pcarlini@suse.de>
* include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
to __is_scalar, more clear and consistent with "tr1" naming.
* include/bits/stl_algobase.h: Update consistently throughout.
From-SVN: r87497
2004-09-14 18:35:21 +00:00
GCC Administrator
86620a426f
Daily bump.
...
From-SVN: r87465
2004-09-14 00:16:15 +00:00
Paolo Carlini
c56e3d82fc
re PR libstdc++/11722 ([3.4 only] Unbuffered filebuf::sgetn is slow)
...
2004-09-13 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/11722
* include/std/std_fstream.h (xsgetn): Declare only.
* include/bits/fstream.tcc (xsgetn): Define, optimize for the
always_noconv() case: when __n > __buflen, copy the available
buffer and issue a direct read.
* testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
* include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
conditional.
From-SVN: r87453
2004-09-13 22:21:34 +00:00
GCC Administrator
caddffe40d
Daily bump.
...
From-SVN: r87416
2004-09-13 00:16:13 +00:00