GCC Administrator
6fb25ec080
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r83152.2
2004-06-15 00:16:23 +00:00
Paolo Carlini
d962e073a0
hash_map: Trivial formatting fixes.
...
2004-06-14 Paolo Carlini <pcarlini@suse.de>
* include/ext/hash_map: Trivial formatting fixes.
* include/ext/hash_set: Likewise.
* include/ext/memory: Likewise.
* include/ext/numeric: Likewise.
From-SVN: r83131
2004-06-14 19:40:45 +00:00
Benjamin Kosnik
2373de3a83
Makefile.in: Regenerate with automake 1.8.5.
...
2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
* Makefile.in: Regenerate with automake 1.8.5.
* aclocal.m4: Same.
* include/Makefile.in: Same.
* libmath/Makefile.in: Same.
* libsupc++/Makefile.in: Same.
* po/Makefile.in: Same.
* src/Makefile.in: Same.
* testsuite/Makefile.in: Same.
From-SVN: r83123
2004-06-14 17:49:30 +00:00
Paolo Carlini
14ba6d00aa
slist: Trivial formatting fixes.
...
2004-06-14 Paolo Carlini <pcarlini@suse.de>
* include/ext/slist: Trivial formatting fixes.
From-SVN: r83098
2004-06-14 13:03:45 +00:00
Paolo Carlini
ce2a46a203
locale_facets.tcc (time_get<>::_M_extract_name): Don't use the 'magic number' 10 in the computation of __minlen...
...
2004-06-14 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
Don't use the 'magic number' 10 in the computation of __minlen;
never access __name past __minlen; in the loop over __i3, don't
decrease __nmatches and increase __i3 at once, only either of
the two; tidy.
From-SVN: r83088
2004-06-14 10:49:36 +00:00
GCC Administrator
bd85b0cba6
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r83074.2
2004-06-14 00:16:16 +00:00
Paolo Carlini
fc6b41718d
locale_facets.tcc (time_get<>::do_get_time, [...]): Use only once _M_extract_via_format...
...
2004-06-13 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (time_get<>::do_get_time,
time_get<>::do_get_date): Use only once _M_extract_via_format,
instead of going through "%X"/"%x" and calling it two times
(+ using widen).
From-SVN: r83059
2004-06-13 09:52:14 +00:00
GCC Administrator
3e7ea383e6
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r83049.2
2004-06-13 00:16:53 +00:00
Paolo Carlini
4a787fa8bf
[multiple changes]
...
2004-06-12 Paolo Carlini <pcarlini@suse.de>
* include/ext/algorithm: Trivial formatting fixes.
* include/ext/functional: Likewise.
* include/ext/hash_fun.h: Likewise.
* include/ext/iterator: Likewise.
2004-06-12 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.tcc (find(const _CharT*, size_type,
size_type)): Reimplement using std::search.
* src/string-inst.cc: Instantiate std::search for char/wchar_t.
2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
* testsuite/performance/21_strings/string_find.cc: New.
From-SVN: r83022
2004-06-12 08:10:24 +00:00
GCC Administrator
e4602cf33b
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r83008.2
2004-06-12 00:16:18 +00:00
GCC Administrator
57ab9ac22c
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r82953.2
2004-06-11 00:16:14 +00:00
Aaron W. LaFramboise
bdd2a210b8
istream.tcc (istream::ignore): Fix for -Wuninitialized.
...
2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
* include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
From-SVN: r82939
2004-06-10 19:54:59 +00:00
Jan van Dijk
9ef313e31c
std_complex.h (sin(const complex<_Tp>& __z)): Make this function return a value.
...
2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
* include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
this function return a value.
From-SVN: r82928
2004-06-10 16:54:49 +00:00
GCC Administrator
ee18c9f169
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r82874.2
2004-06-10 00:16:17 +00:00
Paolo Carlini
7338fc64dd
re PR libstdc++/15775 (Allocator::pointer consistently ignored)
...
2004-06-09 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/15775
* include/bits/stl_deque.h: Consistently with stl_set.h, define
pointer as allocator's pointer, likewise for reference,
const_pointer, and const_reference.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/stl_vector.h: Likewise.
From-SVN: r82857
2004-06-09 21:37:46 +00:00
GCC Administrator
03febbee84
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r82802.2
2004-06-09 00:16:16 +00:00
Paolo Carlini
5f1a5ede6c
pool_allocator.h: Convert to a global free-list, as per the original SGI/HP design...
...
2004-06-08 Paolo Carlini <pcarlini@suse.de>
* include/ext/pool_allocator.h: Convert to a global free-list,
as per the original SGI/HP design: move the implementation
details to struct __pool_base, from which __pool_alloc derives.
* src/allocator.cc: Instantiate __pool_base.
From-SVN: r82794
2004-06-08 22:19:18 +00:00
GCC Administrator
aa07e14d5d
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r82733.2
2004-06-08 00:16:25 +00:00
GCC Administrator
00dd8ca593
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r82677.2
2004-06-07 00:16:15 +00:00
GCC Administrator
ad94c84603
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r82658.2
2004-06-06 00:16:15 +00:00
GCC Administrator
0fa96cea26
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r82640.2
2004-06-05 00:16:17 +00:00
GCC Administrator
1b6be71988
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r82616.2
2004-06-04 00:16:17 +00:00
GCC Administrator
85e933d8ed
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r82592.2
2004-06-03 00:16:16 +00:00
Gabriel Dos Reis
b53dcf3e5c
* include/std/std_complex.h (log): Tidy.
...
From-SVN: r82584
2004-06-02 21:04:07 +00:00
GCC Administrator
1e2a2bdc35
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r82566.2
2004-06-02 00:16:15 +00:00
GCC Administrator
017f7506b5
Daily bump.
...
From-SVN: r82525
2004-06-01 00:16:14 +00:00
GCC Administrator
d1eea9c043
Daily bump.
...
From-SVN: r82472
2004-05-31 00:16:13 +00:00
Gabriel Dos Reis
a4ddde0dee
std_complex.h (complex<_Tp>): Properly indent to follow C++STYLE.
...
* include/std/std_complex.h (complex<_Tp>): Properly indent
to follow C++STYLE.
(complex<>::__rep): New.
(__complex_abs): New. Dispatch to built-ins.
(abs): Use them.
(__complex_arg): New. Dispatch to built-ins.
(arg): Use it.
(__complex_cos): New. Dispatch to built-ins.
(cos): Use it.
(__complex_cosh): New. Dispatch to built-ins.
(cosh): Use it.
(__complex_exp): New. Dispatch to built-ins.
(exp): Use it.
(__complex_log): New. Dispatch to built-ins.
(log): Use it.
(__complex_sin): New. Dispatch to built-ins.
(sin): Use it.
(__complex_sinh): New. Dispatch to built-ins.
(sinh): Use it.
(__complex_sqrt): New. Dispatch to built-ins.
(sqrt): Use it.
(__complex_tan): New. Dispatch to built-ins.
(tan): Use it.
(__complex_tanh): New. Dispatch to built-ins.
(tanh): Use it.
(__complex_pow): New. Dispatch to built-ins.
(pow): Use it.
From-SVN: r82453
2004-05-30 14:41:39 +00:00
GCC Administrator
666e5d7b94
Daily bump.
...
From-SVN: r82436
2004-05-30 00:16:13 +00:00
Richard B. Kreckel
803cb0b5c9
re PR libstdc++/14600 (__gnu_cxx::stdio_sync_filebuf should expose internal FILE*)
...
2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/14600
* include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
* include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
* config/io/basic_file_stdio.cc (__basic_file::file): New.
* config/io/basic_file_stdio.h: Define.
Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
From-SVN: r82419
2004-05-29 14:40:59 +00:00
GCC Administrator
b1243dd57b
Daily bump.
...
From-SVN: r82407
2004-05-29 00:16:16 +00:00
GCC Administrator
431b736152
Daily bump.
...
From-SVN: r82345
2004-05-28 00:16:14 +00:00
GCC Administrator
67d060c4ed
Daily bump.
...
From-SVN: r82305
2004-05-27 00:16:17 +00:00
GCC Administrator
de29c8bc56
Daily bump.
...
From-SVN: r82271
2004-05-26 00:16:43 +00:00
GCC Administrator
42cc8f8919
Daily bump.
...
From-SVN: r82222
2004-05-25 00:16:18 +00:00
Paolo Carlini
b1c5b5a09b
istream.tcc (ignore): Correctly deal with n == numeric_limits<streamsize>::max().
...
2004-05-24 Paolo Carlini <pcarlini@suse.de>
* include/bits/istream.tcc (ignore): Correctly deal with
n == numeric_limits<streamsize>::max().
* testsuite/27_io/basic_istream/ignore/char/2.cc: New.
* include/bits/istream.tcc (basic_istream<>::getline): Prefer
'_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
__n == numeric_limits<>::min().
* include/bits/istream.tcc: Minor tweaks.
* testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
Tighten.
* testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
Likewise.
* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
Likewise.
* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
Likewise.
* testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
From-SVN: r82198
2004-05-24 09:40:56 +00:00
GCC Administrator
8eeea0c1c7
Daily bump.
...
From-SVN: r82180
2004-05-24 00:16:32 +00:00
GCC Administrator
42159b8af9
Daily bump.
...
From-SVN: r82156
2004-05-23 00:16:18 +00:00
Benjamin Kosnik
26c691a88b
re PR libstdc++/12854 (libstdc++ vs. -Weffc++)
...
2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/12854
Fixups for -Weffc++.
* include/bits/basic_string.h (basic_string::operator=): Return
pointer to this instead of result of assign. Although redundant,
this doesn't impact resultant codegen.
* include/bits/locale_facets.h (__numpunct_cache): Declare
assignment opxserator and copy constructor private.
(__timepunct_cache): Same.
(__moneypunct_cache): Same.
(collate): Use member initialization list for _M_c_locale_collate.
* config/locale/gnu/messages_members.h: Same.
* config/locale/gnu/time_members.h (__timepunct): Same.
* src/codecvt.cc: Use member initialization list to initialize
_M_c_locale_codecvt.
* src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
* config/os/gnu-linux/ctype_noninline.h: Same.
* src/locale.cc (_Impl): Same.
* src/locale_init.cc: Same.
* src/localename.cc: Same.
* include/bits/basic_ios.h (basic_ios): Complete member
initialization list.
* include/bits/istream.tcc (basic_istream::sentry): Same.
* include/bits/ostream.tcc (basic_ostream::sentry): Same.
* include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
_M_pback to member initialization list.
* include/std/std_streambuf.h: Same.
* include/std/std_sstream.h: Same, for _M_mode.
* src/ios.cc (ios_base): Same.
* include/ext/rope: Make derived classes match exception
specifications. Add copy constructors and assignment operators.
* include/debug/safe_base.h (_Safe_sequence_base): Declare copy
constructor and assignment operator protected.
(_Safe_iterator_base): Same.
* include/debug/formatter.h (_Error_formatter): Define copy
constructor and assignment operator.
* include/backward/strstream: Declare assignment operator and copy
constructor private.
From-SVN: r82153
2004-05-22 23:46:34 +00:00
Paolo Carlini
fea6ecb746
re PR libstdc++/15565 ([3.4 only] SLES9: leading + sign for unsigned int with showpos)
...
2004-05-22 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/15565
* include/bits/locale_facets.tcc (__int_to_char(unsigned long),
__int_to_char(unsigned long long)): Showpos is not relevant
for unsigned types.
* testsuite/22_locale/num_put/put/char/15565.cc: New.
* testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
* testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
char.
* testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
* testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
* testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
* testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
* testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
* testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
From-SVN: r82128
2004-05-22 09:02:56 +00:00
GCC Administrator
c5042c5c8b
Daily bump.
...
From-SVN: r82118
2004-05-22 00:16:14 +00:00
Paolo Carlini
32da620821
istream.tcc (ignore): Remove redundant line.
...
2004-05-21 Paolo Carlini <pcarlini@suse.de>
* include/bits/istream.tcc (ignore): Remove redundant line.
(readsome): Tidy, closely following 27.6.1.3, p30.
From-SVN: r82103
2004-05-21 17:16:21 +00:00
GCC Administrator
8754a0f6a0
Daily bump.
...
From-SVN: r82081
2004-05-21 00:16:18 +00:00
Paolo Carlini
3adf6cadbb
istream.tcc (operator>>(basic_istream<>&, basic_string<>&)): Use a temporary buffer, thus avoiding reallocation for common case.
...
2004-05-20 Paolo Carlini <pcarlini@suse.de>
* include/bits/istream.tcc (operator>>(basic_istream<>&,
basic_string<>&)): Use a temporary buffer, thus avoiding
reallocation for common case.
* testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
New.
* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
Likewise.
* include/bits/istream.tcc: Const-ification of a few variables.
* include/bits/ostream.tcc: Trivial formatting fixes and
const-ification of some variables.
From-SVN: r82070
2004-05-20 22:06:40 +00:00
GCC Administrator
a43b9dbe90
Daily bump.
...
From-SVN: r82045
2004-05-20 00:16:12 +00:00
Jonathan Wakely
c6618c0336
re PR libstdc++/11691 (stdio_filebuf leaks FILE buffer when "no close" is requested)
...
2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
* include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
From-SVN: r82019
2004-05-19 09:31:07 +01:00
GCC Administrator
933520b9be
Daily bump.
...
From-SVN: r82012
2004-05-19 00:16:12 +00:00
Paolo Carlini
2ab20654a2
[multiple changes]
...
2004-05-18 Paolo Carlini <pcarlini@suse.de>
* include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
tweaks.
2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
* include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
allocation loop which removes blocks from the global free list
from O(N) to O(1) when the required blocks are <= the number
available.
From-SVN: r81992
2004-05-18 15:58:33 +00:00
Jonathan Wakely
319da9da6b
enc_filebuf.h: Move concept-check macro to class scope.
...
2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
* include/ext/enc_filebuf.h: Move concept-check macro to class scope.
From-SVN: r81978
2004-05-18 10:09:39 +01:00
Benjamin Kosnik
261e5b9e6a
[multiple changes]
...
2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
* testsuite/23_containers/deque/14340.cc: New.
* testsuite/23_containers/list/14340.cc: New.
* testsuite/23_containers/map/14340.cc: New.
* testsuite/23_containers/multimap/14340.cc: New.
* testsuite/23_containers/multiset/14340.cc: New.
* testsuite/23_containers/set/14340.cc: New.
* testsuite/23_containers/vector/14340.cc: New.
2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
PR libstdc++/14340
* include/debug/safe_iterator.h (_Safe_iterator converting
constructor): Only allow declaration to instantiate when the
incoming _Safe_iterator has exactly the right iterator type.
From-SVN: r81970
2004-05-18 03:27:57 +00:00