Paolo Carlini
adb31ad60d
istream.tcc (getline(char_type*, streamsize, char_type), [...]): Restore a generic version of the functions...
...
2004-11-08 Paolo Carlini <pcarlini@suse.de>
* include/bits/istream.tcc (getline(char_type*, streamsize,
char_type), ignore(streamsize), ignore(streamsize, int_type)):
Restore a generic version of the functions, not using the
protected members of basic_streambuf.
* include/std/std_istream.h (getline(char_type*, streamsize,
char_type), ignore(streamsize), ignore(streamsize, int_type)):
Declare optimized specializations for char and wchar_t.
* src/istream.cc: New file, define the latter.
* src/Makefile.am: Add.
* src/Makefile.in: Regenerate.
From-SVN: r90268
2004-11-08 15:46:28 +00:00
GCC Administrator
1a89f1b506
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r90249.2
2004-11-08 00:16:15 +00:00
GCC Administrator
d5d9e59836
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r90213.2
2004-11-07 00:16:18 +00:00
GCC Administrator
bc54e9de0c
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r90153.2
2004-11-06 00:16:42 +00:00
Benjamin Kosnik
6309eefc3d
re PR libstdc++/17218 (unknown subjects in generated libstdc++ manpages)
...
2004-11-05 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/17218
PR libstdc++/17223
* docs/doxygen/filter: Remove.
* docs/doxygen/filter.sed: Remove.
* docs/doxygen/mainpage.html: Add link to functions.
* docs/doxygen/run_doxygen: Changes due to new source filtering.
* docs/doxygen/user.cfg.in: Update to doxygen 1.3.9.1, tweak.
* include/bits/allocator.h: Tweaks for doxygen.
* include/bits/char_traits.h: Same.
* include/bits/codecvt.h: Same.
* include/bits/concurrence.h: Same.
* include/bits/locale_facets.h: Same.
* include/ext/array_allocator.h: Same.
* include/ext/debug_allocator.h: Same.
* include/ext/malloc_allocator.h: Same.
* include/ext/mt_allocator.h: Same.
* include/ext/new_allocator.h: Same.
* include/ext/pool_allocator.h: Same.
* include/ext/stdio_sync_filebuf.h: Same.
* include/std/std_memory.h: Same.
* include/tr1/array: Same.
* include/tr1/tuple: Same.
* config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
* config/os/gnu-linux/ctype_base.h: Same.
From-SVN: r90137
2004-11-05 19:58:03 +00:00
GCC Administrator
30a8b5f807
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r90097.2
2004-11-05 00:16:46 +00:00
Paolo Carlini
eba7452ba8
locale_facets.tcc (num_get<>::do_get(bool&)): Evaluate __beg == __end the exact strict minimum number of times.
...
2004-11-04 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (num_get<>::do_get(bool&)):
Evaluate __beg == __end the exact strict minimum number of times.
From-SVN: r90058
2004-11-04 11:29:30 +00:00
GCC Administrator
76969785b4
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r90044.2
2004-11-04 00:16:19 +00:00
Jonathan Wakely
cb1d5dbaeb
stl_numeric.h (partial_sum, [...]): Avoid dereferencing two times __first in the prologue.
...
2004-11-03 Jonathan Wakely <redi@gcc.gnu.org>
* include/bits/stl_numeric.h (partial_sum, adjacent_difference):
Avoid dereferencing two times __first in the prologue.
From-SVN: r90038
2004-11-03 22:22:34 +00:00
Paolo Carlini
dae62ba8fd
stl_numeric.h: Trivial formatting fixes.
...
2004-11-03 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_numeric.h: Trivial formatting fixes.
From-SVN: r90024
2004-11-03 10:14:24 +00:00
Benjamin Kosnik
34a133a808
c++config: Spacing.
...
2004-11-03 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/c++config: Spacing.
* libsupc++/del_op.cc: Include c++config.h.
* libsupc++/del_opnt.cc: Same.
* libsupc++/del_opv.cc: Same.
* libsupc++/del_opvnt.cc: Same.
* libsupc++/new_op.cc: Same.
* libsupc++/new_opnt.cc: Same.
* libsupc++/new_opv.cc: Same.
* libsupc++/new_opvnt.cc: Same.
From-SVN: r90021
2004-11-03 04:07:22 +00:00
Aaron W. LaFramboise
5cc781508e
* config/os/bsd/darwin/os_defines.h
...
(_GLIBCXX_WEAK_DEFINITION): Define.
* include/bits/c++config (_GLIBCXX_WEAK_DEFINITION): Define.
* libsupc++/del_op.cc (operator delete(void *)): Use
_GLIBCXX_WEAK_DEFINITION.
* libsupc++/del_opnt.cc
(operator delete(void *, const std::nothrow_t&)): Same.
* libsupc++/del_opv.cc (operator delete[](void *)): Same.
* libsupc++/del_opvnt.cc
(operator delete[](void *, const std::nothrow_t&)): Same.
* libsupc++/new_op.cc (operator new(std::size_t)): Same.
* libsupc++/new_opnt.cc
(operator new(std::size_t, const std::nothrow_t&)): Same
* libsupc++/new_opv.cc (operator new[](std::size_t)): Same.
* libsupc++/new_opvnt.cc
(operator new[](std::size_t, const std::nothrow_t&)): Same.
From-SVN: r90017
2004-11-02 21:00:00 -06:00
Paolo Carlini
e597a4d366
locale_facets.tcc (num_get<>::_M_extract_int): Evaluate *__beg the exact strict minimum number of times...
...
2004-11-02 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (num_get<>::_M_extract_int):
Evaluate *__beg the exact strict minimum number of times; likewise
for __beg != __end; slightly simplify main parsing loop.
From-SVN: r90012
2004-11-03 01:05:08 +00:00
GCC Administrator
fc706639e8
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r90009.2
2004-11-03 00:16:21 +00:00
Benjamin Kosnik
bd80bd9b93
re PR libstdc++/17922 (Spurious warnings about std::ios_base::seekdir)
...
2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/17922
* include/bits/ios_base.h : Add enum values.
* testsuite/testsuite_hooks.h (bitmask_operators): Add function.
* testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: New.
* testsuite/27_io/ios_base/types/fmtflags/case_label.cc: New.
* testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: New.
* testsuite/27_io/ios_base/types/iostate/case_label.cc: New.
* testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: New.
* testsuite/27_io/ios_base/types/openmode/case_label.cc: New.
* testsuite/27_io/ios_base/types/seekdir/case_label.cc: New.
* config/io/c_io_stdio.h (__ios_flags): Mark deprecated.
* src/ios.cc: Same.
* testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
* testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
From-SVN: r89996
2004-11-02 19:00:19 +00:00
GCC Administrator
8bf639fa5e
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89968.2
2004-11-02 00:16:20 +00:00
Paolo Carlini
8dc5fa3267
locale_facets.tcc (num_get<>::_M_extract_float): Evaluate *__beg the exact strict minimum number of times...
...
2004-11-01 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
Evaluate *__beg the exact strict minimum number of times; likewise
for __beg != __end; in the main parsing loop, call ++__beg in two
places only. The former is also a correctness issue, because,
according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
dereferenced only one time for each increment.
From-SVN: r89940
2004-11-01 11:31:44 +00:00
GCC Administrator
f388b490a8
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89927.2
2004-11-01 00:16:16 +00:00
GCC Administrator
13747d3eda
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89905.2
2004-10-31 00:16:45 +00:00
GCC Administrator
d2019928fd
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89870.2
2004-10-30 00:16:21 +00:00
Chris Jefferson
158414d635
stl_algo.h (find_first_of(,,,,pred)): Remove invalid EqualOpConcept.
...
2004-10-29 Chris Jefferson <chris@bubblescope.net>
* include/bit/stl_algo.h (find_first_of(,,,,pred)):
Remove invalid EqualOpConcept.
* testsuite/25_algorithms/find_first_of/concept_check_1.cc: New.
From-SVN: r89853
2004-10-29 21:44:55 +00:00
GCC Administrator
1a8dfc45ba
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89798.2
2004-10-29 00:16:20 +00:00
Paolo Carlini
53a8d0f021
locale_facets.tcc (num_get<>::_M_extract_float): Cache *__beg in __c when parsing exponent sign too.
...
2004-10-28 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
Cache *__beg in __c when parsing exponent sign too.
(num_get<>::do_get(..., bool&)): Cache *__beg.
(money_get<>::_M_extract)): Likewise, in money_base::value.
From-SVN: r89753
2004-10-28 12:47:36 +00:00
Paolo Carlini
5536e07dad
basic_string.h (assign(const basic_string&)): Move out of line...
...
2004-10-27 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.h (assign(const basic_string&)):
Move out of line...
* include/bits/basic_string.tcc: ... here.
From-SVN: r89726
2004-10-28 01:04:35 +00:00
GCC Administrator
02c2429ce9
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89721.2
2004-10-28 00:16:23 +00:00
Paolo Carlini
6bfad5e135
basic_string.h (_M_replace_aux, [...]): Move out of line...
...
2004-10-27 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
Move out of line...
* include/bits/basic_string.tcc: ... here.
From-SVN: r89637
2004-10-27 12:02:37 +00:00
Paolo Carlini
ab4375af84
basic_string.h (append(const basic_string&), [...]): Move out of line...
...
2004-10-26 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.h (append(const basic_string&),
append(size_type, _CharT)): Move out of line...
* include/bits/basic_string.tcc: ... here.
From-SVN: r89622
2004-10-27 01:02:47 +00:00
GCC Administrator
667e401793
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89618.2
2004-10-27 00:16:16 +00:00
Paolo Carlini
a6cb7068eb
basic_string.h (erase(size_type, size_type), [...]): Call _M_mutate instead of _M_replace_safe...
...
2004-10-26 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.h (erase(size_type, size_type),
erase(iterator), erase(iterator, iterator)): Call _M_mutate
instead of _M_replace_safe, equivalent when the fourth argument
is zero and simpler.
From-SVN: r89608
2004-10-26 21:16:58 +00:00
GCC Administrator
595961fccb
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89567.2
2004-10-26 00:16:17 +00:00
Paolo Carlini
8eae76be5f
basic_string.h (_Rep::_M_is_safe): Move to basic_string as _M_disjunct, adjust to take only __s.
...
2004-10-25 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.h (_Rep::_M_is_safe): Move to
basic_string as _M_disjunct, adjust to take only __s.
* include/bits/basic_string.tcc: Adjust consistently callers.
From-SVN: r89534
2004-10-25 15:16:49 +00:00
Paolo Carlini
d87bdb1330
basic_string.tcc (assign(const _CharT*, size_type)): Adjust bit missing from the previous commit.
...
2004-10-25 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
Adjust bit missing from the previous commit.
From-SVN: r89532
2004-10-25 10:43:59 +00:00
Paolo Carlini
ec61e852bc
basic_string.h (_Rep::_M_is_safe, [...]): New, use througout.
...
2004-10-25 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
_M_move, _M_copy, _M_assign): New, use througout.
(operator+=(_CharT)): Define in terms of push_back.
(append(const basic_string&)): Define here, inline, and simplify,
don't use the full _M_replace_safe.
(append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
(push_back): Likewise.
(assign(const basic_string&)): Define here, inline.
* include/bits/basic_string.tcc (append(const _CharT* s, size_type):
Fix: when s points inside the _Rep, upon reallocation (reserve) we
were copying from deallocated memory.
(append(const basic_string&, size_type, size_type)): Simplify,
don't use _M_replace_safe.
(replace(size_type, size_type, const _CharT*, size_type)): Slightly
tweak.
(reserve): Likewise.
* testsuite/21_strings/basic_string/append/char/2.cc: New.
* testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
* testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
* testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
* testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
* testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
From-SVN: r89526
2004-10-25 08:45:04 +00:00
GCC Administrator
dc717146f2
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89515.2
2004-10-25 00:16:17 +00:00
GCC Administrator
545b6261a4
Daily bump.
...
From-SVN: r89500
2004-10-24 00:16:10 +00:00
GCC Administrator
f38b1cee95
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89484.2
2004-10-23 00:16:25 +00:00
Benjamin Kosnik
aed305a929
array (array): Make safe for zero-sized arrays.
...
2004-10-21 Benjamin Kosnik <bkoz@redhat.com>
* include/tr1/array (array): Make safe for zero-sized arrays.
(array::end): Return one past the end.
(array::at): Use __throw_out_of_range, include functexcept.h.
(operator==): Implement.
(operator!=): Same.
(operator<): Same.
(operator>): Same.
(operator>=): Same.
(operator<=): Same.
* testsuite/tr1/6_containers/array/capacity/(empty.cc,
max_size.cc, size.cc): New.
* testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
not_equal): New.
* testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
New.
* testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc:
New.
* testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
* testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
instantiate, typedefs, zero_size_arrays): New.
From-SVN: r89429
2004-10-22 05:32:16 +00:00
GCC Administrator
52f446a7bb
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89420.2
2004-10-22 00:16:28 +00:00
Paolo Carlini
cbf52bfab3
basic_string.h (_M_set_length_and_sharable): New.
...
2004-10-21 Paolo Carlini <pcarlini@suse.de>
Benjamin Kosnik <bkoz@redhat.com>
* include/bits/basic_string.h (_M_set_length_and_sharable): New.
* include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
size_type), _M_mutate, _M_clone): Use it.
(_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
From-SVN: r89415
2004-10-21 22:01:41 +00:00
Paolo Carlini
996e539545
vector.tcc (_M_insert_aux, [...]): Check at the outset that we are not trying to exceed max_size...
...
2004-10-21 Paolo Carlini <pcarlini@suse.de>
Dhruv Matani <dhruvbird@gmx.net>
Nathan Myers <ncm@cantrip.org>
* include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
_M_range_insert): Check at the outset that we are not trying
to exceed max_size, then deal properly with __len overflows.
* testsuite/23_containers/vector/modifiers/insert/1.cc: New.
* testsuite/testsuite_allocator.h: Remove redundant include.
Co-Authored-By: Dhruv Matani <dhruvbird@gmx.net>
Co-Authored-By: Nathan Myers <ncm@cantrip.org>
From-SVN: r89377
2004-10-21 14:53:02 +00:00
GCC Administrator
851c356137
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89354.2
2004-10-21 00:16:17 +00:00
GCC Administrator
a47498de53
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89306.2
2004-10-20 00:16:22 +00:00
GCC Administrator
df484c6bbc
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89262.2
2004-10-19 00:16:15 +00:00
Paolo Carlini
cc6e67d442
basic_string.tcc (_M_mutate): Do not reallocate unnecessarily when _M_rep() == &_S_empty_rep() and __new_size...
...
2004-10-18 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.tcc (_M_mutate): Do not reallocate
unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
== capacity() (== 0): is ok to just leave everything unchanged.
* include/bits/basic_string.h: Minor formatting fixes.
* include/bits/basic_string.tcc: Likewise.
From-SVN: r89199
2004-10-18 08:43:17 +00:00
GCC Administrator
eedfbe08e3
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89188.2
2004-10-18 00:16:46 +00:00
GCC Administrator
375e216644
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89162.2
2004-10-17 00:16:15 +00:00
GCC Administrator
85e5c2cfa4
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89127.2
2004-10-16 00:16:22 +00:00
GCC Administrator
28233fb67d
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89072.2
2004-10-15 00:16:48 +00:00
GCC Administrator
599a049f76
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89019.2
2004-10-14 00:16:29 +00:00
Paolo Carlini
cbb0dcef12
basic_string.tcc (_S_create): Use consistently the exponential policy, simplify.
...
2004-10-13 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.tcc (_S_create): Use consistently
the exponential policy, simplify.
* testsuite/performance/21_strings/string_append_2.cc: New.
* include/ext/array_allocator.h (allocate): Fix bad_alloc check.
* testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
that case sizeof(_Rep) == 24).
From-SVN: r88972
2004-10-13 08:58:41 +00:00