OSDN Git Service

2b2b00595b972313d0aac05fe1b1b618d366bae0
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2003-07-30  Phil Edwards  <pme@gcc.gnu.org>
2
3         * include/bits/c++config:  Partial reversion (comment placement) of
4         previous patch.
5
6 2003-07-30  Benjamin Kosnik  <bkoz@redhat.com>
7
8         * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
9         (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
10         (_GLIBCXX_AT_AT): Remove.
11         (__USE_MALLOC): Remove.
12         * include/std/std_fstream.h: Modify.
13         * include/bits/basic_ios.h: Same.
14         * include/bits/valarray_array.h: Same.
15         * include/c_std/std_cmath.h: Same.
16         * include/c_std/cmath.tcc: Same.
17         * include/std/std_vector.h: Same.
18         * include/std/std_string.h: Same.
19         * include/std/std_stack.h: Same.
20         * include/std/std_queue.h: Same.
21         * include/std/std_list.h: Same.
22         * include/std/std_deque.h: Same.
23         * include/std/std_streambuf.h: Same.
24         * include/std/std_sstream.h: Same.
25         * include/std/std_ostream.h: Same.
26         * include/std/std_istream.h: Same.
27         * include/bits/valarray_array.tcc: Same, format.
28
29         * include/c/std_cctype.h: Fix include guards.
30         * include/c/std_cerrno.h: Same.
31         * include/c/std_cfloat.h: Same.
32         * include/c/std_climits.h: Same.
33         * include/c/std_clocale.h: Same.
34         * include/c/std_cmath.h: Same.
35         * include/c/std_csetjmp.h: Same.
36         * include/c/std_csignal.h: Same.
37         * include/c/std_cstdarg.h: Same.
38         * include/c/std_cstddef.h: Same.
39         * include/c/std_cstdio.h: Same.
40         * include/c/std_cstdlib.h: Same.
41         * include/c/std_cstring.h: Same.
42         * include/c/std_ctime.h: Same.
43         * include/c/std_cwchar.h: Same.
44         * include/c/std_cwctype.h: Same.
45         * include/c_std/cmath.tcc: Same.
46         * include/c_std/std_cmath.h: Same.
47         
48 2003-07-30  Gawain Bolton  <gp.bolton@computer.org>
49
50         PR libstdc++/11504.  
51         * include/bits/stl_tree.h: Replace C-style casts with C++-style
52         casts.  Changes to avoid casting away constness.  Eliminate
53         _Rb_tree_base_iterator class.  Change _Rb_tree_iterator to use
54         initialization lists.  Move out implementation of __black_count()
55         to...
56         * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
57         Rename_Rb_tree_base_iterator::_M_increment() to
58         _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
59         _Rb_tree_decrement.
60         * config/linker-map.gnu: Add and change symbols here.
61
62 2003-07-30  Jonathan Wakely  <redi@gcc.gnu.org>
63
64         * docs/html/22_locale/howto.html: Use locale::classic() instead
65         of locale("C").
66
67 2003-07-28  Benjamin Kosnik  <bkoz@redhat.com>
68
69         * testsuite/testsuite_hooks.h: Remove list include.
70         (func_callback): Define as unique type, not std::list.
71         Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
72         * testsuite/libstdc++-v3.dg/dg.exp: Same.
73         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
74         * testsuite/23_containers/bitset_ctor.cc: 
75         * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
76         * testsuite/18_support/numeric_limits.cc: Same.
77         * testsuite/21_strings/basic_string/append/char/1.cc: Same.
78         * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
79         * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
80         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
81         * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
82         * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
83         * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
84         * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
85         * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
86         * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
87         * testsuite/21_strings/basic_string/find/char/1.cc: Same.
88         * testsuite/21_strings/basic_string/find/char/2.cc: Same.
89         * testsuite/21_strings/basic_string/find/char/3.cc: Same.
90         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
91         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
92         * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
93         * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
94         * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
95         * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
96         * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
97         * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc: 
98         * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc: 
99         * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc: 
100         * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc: 
101         * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc: 
102         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc: 
103         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc: 
104         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc: 
105         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc: 
106         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc: 
107         * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
108         * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
109         * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
110         * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
111         * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
112         * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
113         * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
114         * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
115         * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
116         * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
117         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
118         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
119         * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
120         * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
121         * testsuite/23_containers/bitset_ctor.cc: Same.
122         * testsuite/23_containers/bitset_shift.cc: Same.
123         * testsuite/23_containers/vector_ctor.cc: Same.
124         * testsuite/23_containers/vector_element_access.cc: Same.
125         * testsuite/24_iterators/istreambuf_iterator.cc: Same.
126         * testsuite/24_iterators/iterator.cc: Same.
127         * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
128         * testsuite/25_algorithms/lower_bound.cc: Same.
129         * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
130         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
131         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
132         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
133         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
134         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
135         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
136         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
137         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
138         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
139         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: 
140         Same.
141         
142 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
143
144         * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
145         docs/html/test.html, docs/html/17_intro/headers_cc.txt,
146         docs/html/17_intro/howto.html, docs/html/ext/howto.html:  Change
147         GLIBCPP to GLIBCXX (and explain as needed).
148
149 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
150
151         * README:  Update.
152
153 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
154
155         * testsuite/22_locale/messages/members/char/1.cc,
156         testsuite/22_locale/messages/members/char/2.cc,
157         testsuite/22_locale/messages/members/char/3.cc,
158         testsuite/22_locale/messages_byname/1.cc:  Update comment regarding
159         the origin of LOCALEDIR.
160         * testsuite/lib/libstdc++-v3.exp:  New file.
161
162 2003-07-25  Benjamin Kosnik  <bkoz@redhat.com>
163
164         * include/bits/char_traits.h: Update copyright, tweak.
165         * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
166         std types.
167
168 2003-07-24  Matt Austern  <austern@apple.com>
169
170         * /include/bits/char_traits.h (class char_traits): Put all the
171         real work into the new class template __gnu_cxx::char_traits.
172         Gave generic definitions for member functions.  Types are taken
173         from the new class template __gnu_cxx::_Char_types.
174         * testsuite/21_strings/char_traits/requirements/short/1.cc: New
175         file.  Test of std::char_traits<short>, which serves as a test of
176         the char_traits primary template.
177
178 2003-07-24  Benjamin Kosnik  <bkoz@redhat.com>
179
180         * testsuite/*: Change __gnu_cxx_test to __gnu_test.
181
182 2003-07-24  Nathan Myers  <ncm-nospam@cantrip.org>
183
184         * testsuite/23_containers/map_operators.cc: Conform to 
185         container requirement as value must be Assignable.
186
187 2003-07-23  Alexandre Oliva  <aoliva@redhat.com>
188
189         * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
190         tests not only generation of pch files, but also their use.
191         * aclocal.m4, configure: Rebuilt.
192
193 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
194
195         * config/cpu/hppa/atomicity.h: Change
196         _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
197         to match misc-inst.cc
198
199 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
200
201         * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
202         * include/c_std/std_cctype.h: Ditto.
203         * include/c_std/std_cerrno.h: Ditto.
204         * include/c_std/std_cfloat.h: Ditto.
205         * include/c_std/std_climits.h: Ditto.
206         * include/c_std/std_clocale.h: Ditto.
207         * include/c_std/std_cmath.h: Ditto.
208         * include/c_std/std_csetjmp.h: Ditto.
209         * include/c_std/std_csignal.h: Ditto.
210         * include/c_std/std_cstdarg.h: Ditto.
211         * include/c_std/std_cstddef.h: Ditto.
212         * include/c_std/std_cstdio.h: Ditto.
213         * include/c_std/std_cstdlib.h: Ditto.
214         * include/c_std/std_cstring.h: Ditto.
215         * include/c_std/std_ctime.h: Ditto.
216         * include/c_std/std_cwchar.h: Ditto.
217         * include/c_std/std_cwctype.h: Ditto.
218         * include/std/std_algorithm.h: Ditto.
219         * include/std/std_bitset.h: Ditto.
220         * include/std/std_complex.h: Ditto.
221         * include/std/std_deque.h: Ditto.
222         * include/std/std_fstream.h: Ditto.
223         * include/std/std_functional.h: Ditto.
224         * include/std/std_iomanip.h: Ditto.
225         * include/std/std_ios.h: Ditto.
226         * include/std/std_iosfwd.h: Ditto.
227         * include/std/std_iostream.h: Ditto.
228         * include/std/std_istream.h: Ditto.
229         * include/std/std_iterator.h: Ditto.
230         * include/std/std_limits.h: Ditto.
231         * include/std/std_list.h: Ditto.
232         * include/std/std_locale.h: Ditto.
233         * include/std/std_map.h: Ditto.
234         * include/std/std_memory.h: Ditto.
235         * include/std/std_numeric.h: Ditto.
236         * include/std/std_ostream.h: Ditto.
237         * include/std/std_queue.h: Ditto.
238         * include/std/std_set.h: Ditto.
239         * include/std/std_sstream.h: Ditto.
240         * include/std/std_stack.h: Ditto.
241         * include/std/std_stdexcept.h: Ditto.
242         * include/std/std_streambuf.h: Ditto.
243         * include/std/std_string.h: Ditto.
244         * include/std/std_utility.h: Ditto.
245         * include/std/std_valarray.h: Ditto.
246         * include/std/std_vector.h: Ditto.
247
248 2003-07-22  Doug Gregor  <dgregor@apple.com>
249
250         * include/bits/basic_string.h (basic_string::insert): Deprecate
251         GNU extension.
252
253 2003-07-21  Benjamin Kosnik  <bkoz@redhat.com>
254
255         * scripts/testsuite_flags.in (--build-includes): Remove extraneous
256         paths for libio.
257         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
258         (test03): Include typeinfo for bad_cast.
259         * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
260         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
261         * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
262
263 2003-07-21  Doug Gregor  <dgregor@apple.com>
264
265         * include/bits/boost_concept_check.h:
266         (_EqualityComparableConcept::__constraints): Remove != from the 
267         list of constraints; it is not listed in Table 28 of the C++98 
268         standard.
269
270 2003-07-18  Andreas Jaeger  <aj@suse.de>
271
272         * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
273         * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
274         * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
275         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
276
277 2003-07-17  Benjamin Kosnik  <bkoz@redhat.com>
278         
279         * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
280         * config/locale/generic/messages_members.h: Tweaks.
281         * config/locale/generic/monetary_members.cc
282         (moneypunct::_M_initialize_moneypunct): Use cache.
283         (moneypunct::~moneypunct): Delete cache.
284         * config/locale/generic/time_members.cc:
285         (__timepunct::_M_initialize_timepunct): Use cache.
286         * config/locale/generic/time_members.h:
287         (__timepunct::~__timepunct): Delete cache.
288         (__timepunct::__timepunct): Set cache.
289         * config/locale/gnu/messages_members.h: Tweaks.
290         * config/locale/gnu/monetary_members.cc:
291         (moneypunct::_M_initialize_moneypunct): Use cache.
292         (moneypunct::~moneypunct): Delete cache.
293         * config/locale/gnu/time_members.cc:
294         (__timepunct::_M_initialize_timepunct): Use cache.
295         * config/locale/gnu/time_members.h:
296         (__timepunct::~__timepunct): Delete cache.
297         (__timepunct::__timepunct): Set cache.
298         * include/bits/locale_facets.h (__timepunct_cache): New.
299         (__moneypunct_cache): New.
300         * include/bits/locale_facets.tcc: Tweak.
301         * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
302         * src/locale-inst.cc: Instantiate caches.
303         * src/globals.cc: Add "C" caches.
304         * src/localename.cc: Use external "C" caches.
305
306 2003-07-17  Phil Edwards  <pme@gcc.gnu.org>
307
308         * docs/doxygen/guide.html:  Fix typo.
309
310 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
311
312         * include/ext/pod_char_traits.h: Add state template argument.
313
314 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
315
316         * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
317         (num_get::_M_convert_int): To _M_insert_int.
318         (num_get::_M_convert_float): To _M_insert_float.        
319         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
320         Use caches for ctype, num_get.
321         (num_get::_M_extract_int): Same.
322         (num_get::get(bool)): Same.
323         (__verify_grouping): Use size_t.
324         * src/locale-inst.cc: Update.
325         * src/locale.cc: Adjust _S_atoms_in.
326
327 2003-07-16  Phil Edwards  <pme@gcc.gnu.org>
328
329         * docs/doxygen/mainpage.html:  Move building/writing instructions...
330         * docs/doxygen/guide.html:  ...to here.  New file.
331
332 2003-07-16  Jonathan Wakely  <redi@gcc.gnu.org>
333
334         * docs/html/ext/howto.html: Update URL for SGI STL docs.
335         * docs/html/faq/index.html: Same.
336         * docs/html/faq/index.txt: Regenerate.
337
338 2003-07-16  Paolo Carlini  <pcarlini@unitus.it>
339
340         PR libstdc++/11528
341         * include/bits/locale_facets.tcc (money_get::do_get):
342         Strip only _leading_ zeros.
343         * testsuite/22_locale/money_get/get/char/11528.cc: Add.
344         * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
345
346 2003-07-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
347
348         * include/ext/hash_map (class hash_multimap): Remove extra
349         semicolons from __glibcxx_class_requires3 entries.
350         * include/ext/hash_set (class hash_set): Ditto.
351         (class hash_multiset): Ditto.
352
353 2003-07-15  Petur Runolfsson  <peturr02@ru.is>
354
355         * include/bits/char_traits.h (char_traits<wchar_t>::move):
356         Change last parameter from int_type to size_t.
357
358 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
359
360         * include/bits/stl_algo.h (includes, set_union, set_intersection,
361         set_difference, set_symmetric_difference, max_element, min_element,
362         next_permutation, prev_permutation, find_first_of, find_end):
363         Document.
364         * include/bits/stl_algobase.h (copy,copy_backward):  Clarify overlap
365         restrictions in docs.
366         * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
367         Document.
368         * docs/doxygen/doxygroups.cc (setoperations):  New group.
369
370 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
371
372         * include/bits/basic_string.h:  Document public functions.
373         * docs/doxygen/TODO:  Update c21 todo.
374
375 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
376
377         * include/bits/stl_list.h:  Document more functions.
378         * docs/doxygen/TODO:  Update c23 todo.
379
380 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
381
382         * config/locale/gnu/c_locale.h (__convert_from_v): One more
383         qualification.
384
385 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
386
387         * include/bits/stl_tempbuf.h: Qualify free with std::.
388         * src/locale.cc: Include <cstdlib>, qualify getenv.
389
390 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
391
392         * config/locale/gnu/c_locale.h (__convert_from_v): Include
393         <cstdio>. Qualify names.
394         * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
395
396 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
397             Nathan C. Myers  <ncm-nospam@cantrip.org>
398
399         PR libstdc++/11378
400         * include/std/std_fstream.h (xsputn): Declare only.
401         * include/bits/fstream.tcc (xsputn): Define, optimize for the
402         always_noconv() case: when __n is sufficiently large flush 
403         the buffer and issue a direct write, if possible combining the
404         two with writev in __basic_file<>::xsputn_2.
405         * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
406         New, declare.
407         * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
408         Define.
409         * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
410         the availability of writev in <sys/uio.h>.
411         * configure.in: Call here.
412         * acconfig.h: Add undef for the corresponding symbol.
413         * aclocal.m4: Regenerate.
414         * configure: Regenerate.
415         * config.h.in: Regenerate.
416         * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
417
418         * include/std/std_fstream.h (sync): Constify a variable.
419
420 2003-07-14  Benjamin Kosnik  <bkoz@redhat.com>
421
422         * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
423         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
424         
425 2003-07-14  Gabriel Dos Reis  <gcc@integrable-solutions.net>
426
427         * config/locale/gnu/c_locale.h (__convert_from_v): Include
428         <cstring> and <cstdlib>. Qualify names.
429
430 2003-07-13  Mark Mitchell  <mark@codesourcery.com>
431
432         * config/locale/generic/c_locale.h: Include <cstdlib> and
433         <cstring>.
434         * include/bits/boost_concept_check.h: Add this-> to unqualified
435         method calls.
436         * include/bits/deque.tcc: Likewise.
437         * include/bits/locale_facets.h : Likewise.
438         * include/bits/ostream.tcc: Likewise.
439         * include/bits/stl_algo.h: Likewise.
440         * include/bits/stl_bvector.h: Likewise.
441         * include/bits/stl_deque.h: Likewise.
442         * include/bits/stl_list.h: Likewise.
443         * include/bits/stl_tree.h: Likewise.
444         * include/bits/stl_vector.h: Likewise.
445         * include/bits/vector.tcc: Likewise.
446         * include/ext/rope: Likewise.
447         * include/ext/ropeimpl.h: Likewise.
448         * include/ext/stdio_filebuf.h: Likewise.
449
450 2003-07-11  Jerry Quinn  <jlquinn@optonline.net>
451
452         * include/bits/basic_ios.h (copyfmt): Document.
453         * include/bits/ios_base.h (event, event_callback, register_callback,
454         xalloc, iword, pword):  Document.
455         (imbue, ~ios_base): Update docs on callbacks.
456
457 2003-07-11  Phil Edwards  <pme@gcc.gnu.org>
458
459         * acinclude.m4 (GLIBCC_ENABLE_SYMVERS):  Tweak comments.  Add
460         warning messages if the environment cannot support symbol versioning.
461         (port_specific_symbol_file):  It's plural, add an 's' on the end.
462         * configure.host:  Likewise.
463         * src/Makefile.am:  Likewise.
464         * config/linker-map.gnu:  Remove one semicolon, heh.
465         * scripts/extract_symvers:  Don't assume useful 'export' syntax.
466         Set LANG as well as LC_ALL for possibly-broken sort(1)s.
467         * aclocal.m4, configure, src/Makefile.in:  Regenerated.
468
469 2003-07-09  Benjamin Kosnik  <bkoz@redhat.com>
470
471         * include/bits/locale_facets.tcc: Use function object for
472         __use_cache instead of template function. Partially specialize for 
473         __numpunct<_CharT>.
474         * include/bits/locale_classes.h: Update friend declaration for
475         __use_cache.
476         (_M_install_cache): No throw exception specs.
477         * src/locale.cc: Remove __use_cache specializations.
478         * include/ext/pod_char_traits.h (length): Tweak.
479         * include/bits/locale_facets.h (__numpunct_cache): Remove
480         char_type typedef.
481         * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
482         (pod_long): Remove.
483         * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
484         * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
485         * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
486         * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
487         * testsuite/22_locale/numpunct/members/pod/1.cc: New.
488         * testsuite/22_locale/numpunct/members/pod/2.cc: New.
489         
490 2003-07-09  Jerry Quinn  <jlquinn@optonline.net>
491
492         * src/ios.cc (_M_grow_words):  Fix spelling.
493
494 2003-07-09  Gawain Bolton  <gp.bolton@computer.org>
495
496         * include/bits/stl_tree.h: Move larger member functions in
497         _Rb_tree_base_iterator and _Rb_tree_node to...
498         * src/stl_tree.cc: Here.
499         * src/Makefile.in: Add stl_tree.cc.
500         * src/Makefile.in: Regenerated.
501         * config/linker-map.gnu: Add symbols here.
502
503 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
504
505         * testsuite/ext/pod_char_traits.cc: New.
506         * include/ext/pod_char_traits.h: New.
507         * include/Makefile.am (ext_headers): Add pod_char_traits.h.
508         * include/Makefile.in: Regenerate.
509         * docs/html/21_strings/howto.html: Update.
510                 
511 2003-07-08  Gawain Bolton  <gp.bolton@computer.org>
512
513         * testsuite/performance/list_create_fill_sort.cc: New.
514
515 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
516
517         * config/locale/generic/numeric_members.cc: Correct type info.
518         * config/locale/gnu/numeric_members.cc: Same.
519         * include/bits/locale_facets.h: Same.
520         
521         * include/bits/char_traits.h: Correct spacing.
522
523         * src/locale.cc: Wrap to 80 col.
524         
525 2003-07-07  Paolo Carlini  <pcarlini@unitus.it>
526
527         * include/std/std_complex.h: Partially revert last
528         changes: cmath functions must not be qualified.
529
530 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
531
532         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Do not test for binutils
533         2.11 with globbing backport fix.
534         * aclocal.m4, configure:  Regenerated.
535
536 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
537
538         * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
539         if output is at all possible (!_M_reading), cannot be active.
540
541         * include/std/std_fstream.h: Tweak comments to doxygen style.
542
543 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
544
545         * include/bits/locale_classes.h: Fully qualify standard
546         functions with std::, thus avoiding Koenig lookup.
547         * include/bits/locale_facets.tcc: Likewise.
548         * src/locale.cc: Likewise.
549         * src/localename.cc: Likewise.
550
551 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
552
553         * include/bits/allocator_traits.h:  Fix doxygen markup.
554         * include/ext/mt_allocator.h:  Likewise.
555
556 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
557
558         * testsuite/testsuite_hooks.h:  Guard against a missing unlink().
559
560 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
561
562         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Bump minimal version
563         requirement.  Add port_specific_symbol_file variable.
564         * configure.host:  Add docs for port_specific_symbol_file.
565         Clean up try_cpu block for x86.
566         * config/linker-map.gnu:  No more "last symbol can't have a
567         semicolon" kaka.  Add hook for port-specific symbols.
568         * src/Makefile.am:  Remove trailing whitespace.
569         (libstdc++-symbol.ver):  Detect the presence of port-specific
570         symbols, and add them accordingly.
571
572         * docs/html/17_intro/porting.texi:  Bring up to date.
573
574         * src/Makefile.in, aclocal.m4, configure,
575         docs/html/17_intro/porting.html:  Regenerated.
576
577 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
578
579         * scripts/create_testsuite_files:  New file.
580         * testsuite/Makefile.am (all-local, check-performance):  Use it.
581         * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests):  Remove.
582         * testsuite/Makefile.in:  Regenerated.
583
584         * testsuite/performance/filebuf_sputc.cc:  Remove the temporary
585         files at the end.
586         * testsuite/performance/fstream_seek_write.cc:  Likewise.
587         * testsuite/performance/ofstream_insert_float.cc:  Likewise.
588         * testsuite/performance/ofstream_insert_int.cc:  Likewise.
589         * testsuite/abi_check.cc (main):  Nicer spacing in usage output.
590
591 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
592
593         * include/bits/stl_list.h: Performance and memory usage
594         improvements. In particular, the behaviour of the constructor and
595         destructor as the list header node is no longer dynamically
596         allocated/de-allocated.
597         * include/bits/list.tcc: Likewise.
598
599 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
600
601         * include/std/std_complex.h: Fully qualify standard
602         functions with std::, thus avoiding Koenig lookup.
603         * include/std/std_memory.h: Likewise.
604         * include/std/std_valarray.h: Likewise.
605
606 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
607
608         * include/bits/stl_tree.h: _Rb_tree_rebalance():  Add local
609           variable for grandparent and use const
610
611 2003-07-05  David Billinghurst <David.Billinghurst@riotinto.com>
612
613         * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
614         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
615         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
616         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
617         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
618         * testsuite/27_io/objects/char/7.cc: Ditto
619         * testsuite/27_io/objects/char/9661-1.cc: Ditto
620
621 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
622
623         * include/std/std_bitset.h: Fully qualify standard
624         functions with std::, thus avoiding Koenig lookup.
625
626         * include/std/std_fstream.h: Change comment to doxygen style.
627
628 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
629
630         * include/std/std_limits.h:  More CPP->CXX changes.
631         * scripts/check_survey.in:  Likewise.
632
633 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
634
635         Move from CPP to CXX.
636         * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
637         * testsuite/Makefile.am: Same.
638         * testsuite/Makefile.in: Regenerate.
639         * po/Makefile.am: Same.
640         * po/Makefile.in: Regenerate.   
641         * libsupc++/Makefile.am: Same.
642         * libsupc++/Makefile.in: Regenerate.    
643         * libmath/Makefile.am: Same.
644         * libmath/Makefile.in: Regenerate.      
645         * include/Makefile.am: Same.
646         * include/Makefile.in: Regenerate.      
647         * src/Makefile.am: Same.
648         * src/Makefile.in: Regenerate.  
649         * acconfig.h: Same.
650         * configure.host: Same.
651         * configure.in: Same.
652         * configure: Regenerate.
653         * acinclude.m4: Same.
654         * aclocal.m4: Same.
655         * src: Change all files in this directory.
656         * testsuite: Same.
657         * include: Same, standardize include guards.
658         * config: Same.
659         * libsupc++: Same.
660         
661 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
662
663         * testsuite/22_locale/collate/compare/wchar_t/2.cc
664         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
665         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
666         * testsuite/22_locale/collate/hash/wchar_t/2.cc
667         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
668         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
669         * testsuite/22_locale/collate/transform/wchar_t/2.cc
670         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
671         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
672         XFAIL on all targets.
673
674 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
675
676         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
677         * aclocal.m4: Regenerate.
678         * configure: Regenerate.
679
680 2003-07-04  Jerry Quinn  <jlquinn@optonline.net>
681
682         * include/bits/locale_facets.tcc (__int_to_char): Move common case
683         to the top.
684
685 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
686             Petur Runolfsson  <peturr02@ru.is>
687
688         * config/io/basic_file_stdio.cc: Revert.
689
690 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
691
692         * include/bits/deque.tcc: Fully qualify standard
693         functions with std::, thus avoiding Koenig lookup.
694         * include/bits/gslice_array.h: Likewise.
695         * include/bits/indirect_array.h: Likewise.
696         * include/bits/list.tcc: Likewise.
697         * include/bits/mask_array.h: Likewise.
698         * include/bits/slice_array.h: Likewise.
699
700 2003-07-04  Gawain Bolton  <gbolton@free.fr>
701
702         * include/bits/stl_tree.h: Performance and memory usage
703         improvements.
704
705 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
706
707         * Makefile.am: Replace PWD with PWD_COMMAND.
708         * Makefile.in: Regenerated.
709         * docs/html/Makefile: Likewise.
710
711 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
712
713         * include/bits/valarray_array.h: Fully qualify standard
714         functions with std::, thus avoiding Koenig lookup.
715         * include/bits/vector.tcc: Likewise.
716
717 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
718
719         * include/Makefile.am: Update target_ to host_.
720         * include/Makefile.in: Regenerate.
721         * src/Makefile.am: Same.
722         * src/Makefile.in: Regenerate.
723
724         * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
725
726 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
727
728         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
729         --enable-libstdcxx-debug-flags.
730         (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
731         (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
732         * aclocal.m4: Regenerate.
733         * configure: Same.
734         * docs/html/configopts.html: Update.
735
736 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
737
738         Revert the fix for libstdc++/11378.
739
740 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
741
742         PR libstdc++/11378
743         * include/std/std_fstream.h (xsputn): In the unbuffered case,
744         provided always_noconv(), issue directly _M_file.xsputn.
745         * testsuite/performance/filebuf_unbuf_sputn.cc: New.
746
747 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
748
749         * include/bits/stl_list.h: Fully qualify standard
750         functions with std::, thus avoiding Koenig lookup.
751         * include/bits/stl_queue.h: Likewise.
752         * include/bits/stl_raw_storage_iter.h: Likewise.
753         * include/bits/stl_tempbuf.h: Likewise.
754         * include/bits/stl_tree.h: Likewise.
755         * include/bits/stl_uninitialized.h: Likewise.
756         * include/bits/stl_vector.h: Likewise.
757         * include/ext/rope: Change includes order.
758
759 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
760
761         * configure.host (fpos_include_dir): Fix.
762
763 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
764
765         * include/bits/stl_heap.h: Fully qualify standard
766         functions with std::, thus avoiding Koenig lookup.
767         * include/bits/stl_iterator_base_funcs.h: Likewise.
768
769         * include/bits/stl_algo.h: Qualify __iterator_category too.
770         * include/bits/stl_algobase.h: Likewise.
771         * include/bits/stl_bvector.h: Likewise.
772
773         * include/bits/stl_algo.h: Don't qualify the pair type.
774
775 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
776
777         * include/Makefile.am (target_headers): Add fpos.h
778         (bits_headers): Remove.
779         * include/Makefile.in: Regenerate.
780         * configure.in: Add FPOS_INC_SRCDIR, substitute it.
781         * configure: Regenerate.
782         * configure.host: Add fpos_include_dir.
783         * config/os/gnu-linux/fpos.h: New.
784         * config/os/generic/fpos.h: Add.
785         * include/bits/fpos.h: Remove.
786
787         * config/io/c_io_stdio.h: Remove fpos_t typedef.
788
789         * include/bits/fstream.tcc: Tweaks.
790         * include/std/std_fstream.h: Same.
791
792         * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
793         * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
794         * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
795         * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
796         * testsuite/27_io/fpos/1.cc: New.
797
798 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
799             Petur Runolfsson  <peturr02@ru.is>
800
801         * include/std/std_streambuf.h: Remove _M_pos.
802         * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
803         * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
804         use fread/fwrite instead of read/write.
805         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
806         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
807         before reading again.
808         * testsuite/27_io/objects/char/6.cc: Tweak.
809
810 2003-07-03  David Edelsohn  <edelsohn@gnu.org>
811
812         * testsuite/22_locale/num_put/put/char/7.cc: Guard with
813         _GLIBCPP_USE_WCHAR_T.
814
815 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
816
817         * include/bits/basic_string.tcc (_M_replace_aux): Constify
818         __n1 and __off1.
819
820 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
821
822         * include/bits/stl_bvector.h: Fully qualify standard
823         functions with std::, thus avoiding Koenig lookup.
824         * include/bits/stl_construct.h: Likewise.
825         * include/bits/stl_deque.h: Likewise.
826
827 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
828
829         * testsuite/22_locale/num_put/put/char/7.cc: Include
830         <testsuite_hooks.h>, tweak.
831         * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
832
833 2003-07-01  Phil Edwards  <pme@gcc.gnu.org>
834
835         * testsuite/Makefile.am (AM_MAKEFLAGS):  Set to -j1 (affects
836         check* targets, but not libs/programs).
837         * testsuite/Makefile.in:  Regenerate.
838
839 2003-07-01  Roger Sayle  <roger@eyesopen.com>
840
841         * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
842         (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
843         * aclocal.m4: Regenerate.
844         * configure: Regenerate.
845
846 2003-07-01  Benjamin Kosnik  <bkoz@redhat.com>
847
848         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
849         * aclocal.m4: Regenerated.
850         * configure: Regenerated.
851
852 2003-07-01  Paolo Carlini  <pcarlini@unitus.it>
853
854         PR libstdc++/11389
855         * include/bits/fstream.tcc (underflow): For encoding() == 0
856         don't read more than __buflen chars.
857         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
858         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
859         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
860         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
861
862 2003-07-01  Jerry Quinn  <jlquinn@optonline.net>
863
864         * 22_locale/num_put/put/char/7.cc: New.
865         * 22_locale/num_put/put/wchar_t/7.cc: New.
866
867 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
868
869         * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
870         * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
871
872 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
873
874         * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
875         * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
876         * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
877         * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
878         * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
879         * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
880         * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
881         * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
882         * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
883         * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
884         * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
885         * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
886         * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
887         * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
888         * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
889         * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
890         * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
891         * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
892         * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
893         * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
894         * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
895         * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
896         * data/seekoff-1.tst: Remove.
897         * data/seekoff-1io.tst: New.
898         * data/seekoff-1out.tst: New.
899         * data/seekoff-2.tst: Remove.
900         * data/seekoff-2io.tst: New.
901         * data/seekoff-2out.tst: New.
902         * data/seekoff.txt
903         * data/seekpos-1.tst: Remove.
904         * data/seekpos-1io.tst: New.
905         * data/seekpos-1out.tst: New.
906         * data/seekpos-2.tst: Remove.
907         * data/seekpos-2io.tst: New.
908         * data/seekpos-2out.tst: New.
909         * data/seekpos.txt: New.
910
911 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
912
913         * src/locale.cc (__use_cache<numpunct>): Move from here ...
914         * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
915         here.
916
917 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
918
919         * include/bits/stl_algobase.h: Fully qualify standard
920         functions with std::, thus avoiding Koenig lookup.
921
922 2003-06-30  Doug Gregor <dgregor@apple.com>
923
924         * include/bits/locale_facets.tcc (money_get::do_get): Avoid
925         subscripting empty string.
926
927 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
928
929         * testsuite/Makefile.am (check-am):  Do not override.
930         (baseline_symbols):  Declare as PHONY, so no need to 'touch' it.
931         * testsuite/Makefile.in:  Regenerate.
932
933 2003-06-30  Doug Gregor <dgregor@apple.com>
934
935         * testsuite/24_iterators/insert_iterator.cc (test01, test02):
936         Don't initialize an insert_iterator with a singular iterator.
937
938 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
939
940         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
941         * aclocal.m4: Regenerate.
942         * configure.in (GLIBCPP_CHECK_PCH): Move, change to
943         GLIBCPP_ENABLE_PCH, default to yes.
944         * configure: Regenerate.
945         * docs/html/configopts.html: Add --enable-pch.
946
947 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
948
949         * testsuite/lib/libstdc++-v3-dg.exp:  Add comments.
950         (libstdc++-v3-init):  Also set LD_RUN_PATH.
951
952 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
953
954         * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
955         from here to filebuf and stringbuf.
956         (~basic_streambuf()): Don't set _M_mode.
957         (basic_streambuf()): Don't set _M_mode.
958         * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
959         (~basic_filebuf()): Clean up.
960         * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
961         * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
962         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
963         * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
964         * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
965         * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
966         * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
967
968 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
969
970         * include/std/std_fstream.h (_M_underflow): Remove.
971         (uflow): Remove, inherited from streambuf.
972         (underflow): Only declare.
973         * include/bits/fstream.tcc (_M_underflow): Rename to
974         underflow, to which is equivalent for __bump == false,
975         simplify.
976         * include/std/std_sstream.h (_M_underflow): Remove.
977         (uflow): Remove, inherited from streambuf.
978         (underflow): Only declare.
979         * include/bits/sstream.tcc (_M_underflow): Rename to
980         underflow, to which is equivalent for __bump == false,
981         simplify.
982
983 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
984
985         * include/bits/stl_algo.h: Fully qualify standard functions
986         with std::, thus avoiding Koenig lookup.
987
988 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
989
990         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
991         Improve type correctness-wise.
992         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
993         Likewise.
994         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
995         Likewise.
996         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
997         Likewise.
998
999 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
1000
1001         * include/std/std_streambuf.h (uflow): According to
1002         27.5.2.4.3,p16, don't check gptr() < egptr().
1003
1004 2003-06-28  Paolo Carlini  <pcarlini@unitus.it>
1005
1006         PR libstdc++/9875
1007         * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
1008         (seekpos): Likewise.
1009         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
1010         New test.
1011         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
1012         New test.
1013
1014 2003-06-27  Benjamin Kosnik  <bkoz@redhat.com>
1015
1016         * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
1017         output name to libstdc++-v3-performance.sum.
1018         * testsuite/Makefile.am (CLEANFILES): Remove .performance.
1019         * testsuite/Makefile.in: Regenerate.
1020
1021 2003-06-27  Matthias Klose  <doko@debian.org>
1022
1023         * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
1024         output of abi-check in libstdc++-v3-abi.sum.
1025         * testsuite/Makefile.in: Regenerate.
1026
1027 2003-06-27  Krister Walfridsson  <cato@df.lth.se>
1028
1029         * config/os/bsd/netbsd/ctype_noninline.h
1030         (_C_ctype_): Declare.
1031         (ctype<char>::classic_table): Return _C_ctype_ + 1.
1032         (ctype<char>::ctype): Use classic_table.
1033
1034 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
1035             Nathan C. Myers  <ncm-nospam@cantrip.org>
1036
1037         PR libstdc++/9178
1038         * include/bits/fstream.tcc (_M_underflow): Properly estimate
1039         the worst-case number of external bytes for a given get area.
1040         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
1041
1042 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
1043             Petur Runolfsson  <peturr02@ru.is>
1044
1045         PR libstdc++/11305
1046         * include/bits/fstream.tcc (overflow): Properly estimate the
1047         worst-case number of external bytes for a given put area
1048         (by using codecvt::max_length()).
1049         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
1050         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
1051         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
1052         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
1053
1054 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
1055
1056         * config/linker-map.gnu: Remove ; after __numpunct_cache.
1057
1058 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
1059
1060         * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
1061         to the imbued locale.
1062         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
1063         _M_getloc.
1064         (num_put::_M_convert_float): Use.
1065
1066 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
1067             Jerry Quinn  <jlquinn@optonline.net>
1068
1069         * config/linker-map.gnu: Add __numpunct_cache.
1070         * config/locale/gnu/numeric_members.cc
1071         (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
1072         all elements for "C" locale.
1073         (numpunct::~numpunct): Delete _M_data.
1074         * config/locale/generic/numeric_members.cc: Same.
1075         * include/bits/basic_ios.tcc
1076         (basic_ios::init): Remove __locale_cache bits.
1077         (basic_ios::_M_cache_locale): Same.
1078         * include/bits/ios_base.h: Same. Tweaks.
1079         * include/bits/locale_classes.h: Tweaks. Reorder classes.
1080         (__use_cache): Make friends with _Impl, locale.
1081         (_Impl::_M_caches): Add.
1082         (_Impl::_M_install_cache): Add.
1083         * include/bits/locale_facets.h (__numpunct_cache): New.
1084         (numpunct): Encapsulate data members in __numpunct_cache member,
1085         _M_data. Adjust virtuals.
1086         (numpunct::numpunct): New ctor for the same.
1087         (__locale_cache_base): Remove.
1088         (__locale_cache): Remove.
1089         * include/bits/locale_facets.tcc (__use_cache): New function,
1090         specializations.
1091         (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
1092         * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
1093         * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
1094         * src/locale-inst.cc: Same. Add __numpunct_cache.
1095         * src/locale.cc: Tweak inlines.
1096         (__use_cache): Define specializations.
1097         * src/localename.cc: Use global bits.
1098         (_Impl::~Impl): Deal with __numpunct_cache destruction.
1099         (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
1100         (_Impl::_M_init_facet): Take into account __numpunct_cache.
1101         * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
1102         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1103
1104 2003-06-26  Nathan C. Myers  <ncm-nospam@cantrip.org>
1105             Paolo Carlini  <pcarlini@unitus.it>
1106
1107         * testsuite/performance/filebuf_copy.cc: New, testing char
1108         by char file copy.
1109
1110 2003-06-26  Paolo Carlini  <pcarlini@unitus.it>
1111             Nathan C. Myers  <ncm-nospam@cantrip.org>
1112
1113         * include/bits/fstream.tcc (_M_underflow): When the actual
1114         end of file is reached, set 'uncommitted' mode to allow a
1115         next write without an intervening seek (see C++98 27.8.1.1,2
1116         and C89 7.9.5.3).
1117         * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
1118
1119 2003-06-25  Nathan C. Myers  <ncm-nospam@cantrip.org>
1120
1121         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1122         sputc): Move inline, from here...
1123         * include/std/std_streambuf.h: ... to here.
1124
1125         * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
1126         sputbackc, sungetc, sputc): Use __builtin_expect.
1127
1128 2003-06-24  Phil Edwards  <pme@gcc.gnu.org>
1129
1130         * docs/doxygen/mainpage.html:  Use a useful title.
1131
1132 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
1133
1134         * docs/html/documentation.html: Remove assignment info.
1135         * docs/html/17_intro/contribute.html: Edits.
1136         * docs/html/17_intro/libstdc++-assign.tx: Remove.
1137
1138         * docs/html/test.html: Update.
1139
1140         * README: Update.
1141
1142 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
1143             Ulrich Drepper  <drepper@redhat.com>
1144
1145         * testsuite/testsuite_performance.h: Tweak mallinfo.
1146
1147 2003-06-24  Paolo Carlini  <pcarlini@unitus.it>
1148             Nathan C. Myers  <ncm-nospam@cantrip.org>
1149
1150         * include/std/std_fstream.h (_M_filepos): Remove.
1151         (_M_reading, _M_writing): New, encode the various I/O modes:
1152         'read', 'write' and 'uncommitted'.
1153         (sync): If there is something to flush, do it, then go to
1154         'uncommitted' mode.
1155         * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
1156         with three different cases: __off > 0 (upon underflow),
1157         __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
1158         seekoff/pos).
1159         (_M_underflow): Don't call overflow, set _M_reading to true
1160         on success, tweak.
1161         (pbackfail): Set _M_reading to true on pback creation, tweak.
1162         (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
1163         set _M_writing to true on success, tweak.
1164         (seekoff): Simplify, set _M_reading, _M_writing to false, call
1165         _M_set_buffer(-1) ('uncommitted').
1166         (open, close, setbuf): Set _M_reading, _M_writing to false and
1167         call _M_set_buffer(-1), tweak.
1168         (basic_filebuf): Don't set _M_buf_unified.
1169         (_M_destroy_internal_buffer): Don't call setg and setp.
1170         * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
1171         _M_writing and _M_set_buffer(-1).
1172         * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
1173         _M_out_lim, _M_buf_unified): Remove.
1174         (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
1175         (setp): Don't set _M_out_lim.
1176         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
1177         the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
1178         upon open the mode is 'uncommitted' and therefore the put area
1179         pointers are null.
1180         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
1181         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
1182         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
1183         * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
1184         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
1185         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
1186         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1187         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
1188         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
1189         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
1190         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
1191         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
1192         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
1193         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
1194         * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
1195         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
1196         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
1197         * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
1198         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
1199         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
1200
1201         * include/bits/fstream.tcc (showmanyc): Use only the
1202         documented derivation interface to basic_streambuf (gptr(),
1203         setg(), etc.) to work right with user specializations.
1204         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1205         sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
1206         * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
1207         Likewise.
1208         * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
1209         xsgetn): Likewise.
1210
1211 2003-06-23  Loren J. Rittle  <ljrittle@acm.org>
1212
1213         * configure.host (freebsd*): Set abi_baseline_pair.
1214         * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
1215         (at or near first release) to 3.3.
1216         * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
1217         * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
1218         * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
1219
1220         * include/ext/mt_allocator.h: Portability.
1221         * testsuite/testsuite_performance.h: Likewise.
1222
1223 2003-06-23  Benjamin Kosnik  <bkoz@redhat.com>
1224
1225         * docs/html/17_intro/libstdc++-assign.txt: Update address.
1226
1227         * testsuite/performance/ifstream_getline.cc: Fix.
1228
1229 2003-06-23  Doug Gregor <dgregor@apple.com>
1230
1231         * include/bits/boost_concept_check.h: Don't use _D or _R for type
1232         names.
1233
1234 2003-06-22  Paolo Carlini  <pcarlini@unitus.it>
1235             Nathan C. Myers  <ncm-nospam@cantrip.org>
1236
1237         * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
1238         is now used only for filebuf, when _M_buf_unified is true.
1239         epgtr() plays the role of _M_out_lim but it's only updated
1240         upon overflow, underflow, uflow, seekoff/pos.
1241         * include/bits/sstream.tcc (_M_underflow): New, implements
1242         stringbuf::underflow and uflow.
1243         (seekoff, seekpos): Tweak, use  _M_update_egptr.
1244         * include/std/std_sstream.h (str): Rewrote, deal correctly
1245         with the new logic, in particular, when pptr() > egptr().
1246         (_M_sync): When __testout && !__testin set all the get area
1247         pointers to the current string end.
1248         (_M_update_egptr): New, internal function updating egptr()
1249         to the actual string end.
1250         (_M_underflow): New, declare.
1251         (underflow): Dispatch to _M_underflow(false).
1252         (uflow): Dispatch to _M_underflow(true).
1253
1254         * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
1255         seekpos): Use only the documented derivation interface to
1256         basic_streambuf (gptr(), setg(), etc.) to work right with
1257         user specializations.
1258         * include/std/std_sstream.h (str, _M_sync): Likewise.
1259
1260 2003-06-20  Doug Gregor <dgregor@apple.com>
1261
1262         * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
1263         * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
1264         dereference end iterator.
1265         * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
1266         * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
1267         index equal to the length of a string.
1268         * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
1269         * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
1270         * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
1271         * testsuite/22_locale/ctype/widen/char/1.cc: Same.
1272         * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
1273         * testsuite/23_containers/list_modifiers.cc: Don't dereference
1274         singular reverse iterator.
1275         * testsuite/23_containers/vector_bool.cc: Don't increment singular
1276         iterator.
1277         * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
1278
1279 2003-06-20  Doug Gregor <dgregor@apple.com>
1280
1281         * include/bits/basic_string.h (basic_string::replace): Dispatch
1282         _InputIterator version based on _Is_integer.
1283         * include/bits/basic_string.tcc (basic_string::replace):
1284         Renamed replace(iterator, iterator, size_type, _CharT) to
1285         _M_replace_aux.
1286         * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
1287         Test basic_string::assign(_InputIterator, _InputIterator),
1288         which calls basic_string::replace(iterator, iterator,
1289         _Input_iterator, _InputIterator).
1290
1291 2003-06-20  Benjamin Kosnik  <bkoz@redhat.com>
1292
1293         * testsuite/testsuite_performance.h (resource_counter): Don't use
1294         mallinfo at the moment.
1295
1296 2003-06-20  Matthias Klose  <doko@debian.org>
1297
1298         * configure.host: Set try_cpu to target_cpu for existing
1299         baseline files.
1300
1301 2003-06-19  Andreas Jaeger  <aj@suse.de>
1302
1303         * testsuite/Makefile.am (extract_symvers): Revert accidental
1304         change.
1305         * testsuite/Makefile.in: Regenerate.
1306
1307         * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
1308         * configure: Regenerated.
1309
1310 2003-06-19  Paolo Carlini  <pcarlini@unitus.it>
1311
1312         * include/std/std_sstream.h (_M_sync): Make non virtual.
1313
1314 2003-06-18  Benjamin Kosnik  <bkoz@redhat.com>
1315
1316         * testsuite/testsuite_performance.h (time_counter): New.
1317         (resource_counter): New.
1318         (report_performance): New.
1319         (start_counters): New.
1320         (stop_counters): New.
1321         (clear_counters): New.
1322         * testsuite/performance/allocator.cc: Instrument.
1323         * testsuite/performance/cout_insert_int.cc: Same.
1324         * testsuite/performance/complex_norm.cc: Same.
1325         * testsuite/performance/filebuf_sputc.cc: New.
1326         * testsuite/performance/fstream_seek_write.cc: Same.
1327         * testsuite/performance/ifstream_getline.cc: Same.
1328         * testsuite/performance/map_create_fill.cc: Same.
1329         * testsuite/performance/ofstream_insert_float.cc: Same.
1330         * testsuite/performance/ofstream_insert_int.cc: Same.
1331         * testsuite/performance/string_append.cc: Convert.
1332         * scripts/check_performance: New.
1333         * testsuite/Makefile.am (check-performance): New.
1334         (CLEANFILES): Add.
1335
1336 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
1337             Benjamin Kosnik  <bkoz@redhat.com>
1338
1339         * include/std/std_sstream.h (setbuf): Check __n >= 0.
1340         * include/bits/fstream.tcc (setbuf): Tweak.
1341
1342 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
1343
1344         * include/bits/sstream.tcc (seekoff): We can't seek beyond
1345         _M_out_lim, therefore _M_move_out_cur boils down to simply
1346         updating _M_out_cur.
1347         (seekpos): Likewise, clean up.
1348
1349 2003-06-18  Nathan C. Myers  <ncm-nospam@cantrip.org>
1350             Paolo Carlini  <pcarlini@unitus.it>
1351
1352         * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
1353         simply equivalent to the unbuffered case (0, 0) as far as
1354         _M_buf_size is concerned.
1355
1356 2003-06-18  Andreas Jaeger  <aj@suse.de>
1357
1358         * testsuite/Makefile.am (new-abi-baseline): Create baseline
1359         directory.
1360         (baseline_file): Use baseline_dir.
1361         (baseline_dir): New.
1362         (mkinstalldirs): New.
1363
1364         * acinclude.m4: Rename baseline_file to baseline_dir, strip
1365         filename from baseline_dir.
1366
1367         * testsuite/Makefile.in: Regenerated.
1368         * Makefile.in: Regenerated.
1369         * aclocal.m4: Regenerated.
1370         * configure: Regenerated.
1371
1372 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
1373
1374         * configure.in: Missed check_survey bit.
1375         * configure: Regenerated.
1376
1377 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
1378
1379         * scripts: New.
1380         * config/abi/extract_symvers: Move to...
1381         * scripts/extract_symvers: ...here.
1382         * mkcheck.in: Move to..
1383         * scripts/check_survey.in: ...here.
1384         * testsuite_flags.in: Move to..
1385         * scripts/testsuite_flags.in: ...here.
1386         * configure.in: Change check and testsuite_flags locations.
1387         * configure: Regenerate.
1388         * testsuite/Makefile.am (current_symbols.txt): Change location.
1389         * testsuite/Makefile.in: Regenerate.
1390         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
1391         location of testsuite_flags.
1392         * Makefile.am (check-script): Move..
1393         (check-script-install): Move...
1394         * testsuite/Makefile.am: ... here.
1395         * testsuite/Makefile.in: Regenerate.
1396         * Makefile.in: Regenerate.
1397
1398 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
1399
1400         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
1401
1402 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
1403
1404         * Makefile.am (check-abi): Move...
1405         (new-abi-baseline): Move...
1406         * testsuite/Makefile.am: ...here.
1407         (new-abi-baseline): Conditionalize.
1408         (check-abi): Conditionalize.
1409         (check-abi-verbose): New.
1410         * Makefile.in: Regenerate.
1411         * testsuite/Makefile.in: Regenerate.
1412         * configure.in: Consolidate testsuite configure bits.
1413         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
1414         * configure: Regenerate.
1415         * aclocal.m4: Regenerate.
1416         * testsuite/abi_check.cc: Add --check-verbose.
1417         Only output detailed information if --check-verbose.
1418
1419 2003-06-16  Andreas Jaeger  <aj@suse.de>
1420
1421         * testsuite/abi_check.cc: Create summary report.
1422
1423 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
1424
1425         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
1426         for systems with BUFSIZ != 8192.
1427         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1428         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
1429         Minor tweaks.
1430
1431 2003-06-16  Andreas Jaeger  <aj@suse.de>
1432
1433         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
1434         check-abi multilib aware.
1435         * aclocal.m4: Regenerate.
1436         * configure: Regenerate.
1437
1438 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
1439             Andreas Jaeger  <aj@suse.de>
1440
1441         * configure.host: Set x86_64 abi_baseline pair correctly.
1442
1443 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
1444
1445         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
1446         fix for missing seeks between gets and puts into...
1447         * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
1448         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
1449         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
1450         * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
1451         * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
1452         * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
1453
1454 2003-06-15  Richard Henderson  <rth@redhat.com>
1455
1456         * config/linker-map.gnu: Export virtual function thunks for
1457         64-bit systems too.
1458
1459 2003-06-13  Benjamin Kosnik  <bkoz@redhat.com>
1460
1461         * config/abi/i686-pc-linux-gnu: To..
1462         * config/abi/i486-linux-gnu: ...this.
1463         * config/abi/alphaev67-unknown-linux-gnu: To..
1464         * config/abi/alpha-linux-gnu: ...this.
1465         * config/abi/ia64-unknown-linux-gnu: To...
1466         * config/abi/ia64-linux-gnu: ...this.
1467         * config/abi/x86_64-unknown-linux-gnu: To...
1468         * config/abi/x86_64-linux-gnu: ...this.
1469         * config/abi/i386-unknown-freebsd4: To...
1470         * config/abi/i386-freebsd4: ...this.
1471         * config/linker-map.gnu: Cleanups, move libsupc++ bits into
1472         CXXABI.
1473         * configure.host: abi_baseline_triplet to abi_baseline_pair.
1474         Simplify cpu bits so that abi_baseline_pair can use the same
1475         cpu configuration.
1476         * acinclude.m4: Same.
1477         * aclocal.m4: Regenerate.
1478         * configure.in: Can't get enable_abi_check to yes unless native.
1479         * configure: Regenerate.
1480
1481 2003-06-13  Paolo Carlini  <pcarlini@unitus.it>
1482
1483         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
1484         fix for missing seeks between gets and puts into...
1485         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
1486         * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
1487         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
1488         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
1489         * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
1490         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
1491         for missing seeks between gets and puts.
1492         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
1493         * testsuite/data/seekoff-1.tst: New.
1494         * testsuite/data/seekoff-2.tst: New.
1495         * testsuite/data/seekpos-1.tst: New.
1496         * testsuite/data/seekpos-2.tst: New.
1497
1498 2003-06-13  Nathan C. Myers <ncm-nospam@cantrip.org>
1499
1500         Avoid multi-processor bus contention on increment/decrement-and-
1501         test of the reference count in the empty-string object, by comparing
1502         addresses first, and never touching the reference count of the empty-
1503         string object.
1504         * include/bits/basic_string.h:
1505         (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
1506         members.
1507         (_Rep::_S_empty_rep()): New accessor.
1508         (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
1509         a base class _Rep_base.
1510         (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
1511         (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
1512         since no longer must increment its refcount.
1513         * include/bits/basic_string.tcc:
1514         (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
1515         return immediately.  The former might be unnecessary.  The latter
1516         prevents begin() and end() from cloning it unnecessarily.
1517         (_S_construct(_InIterator, _InIterator, const _Alloc&,
1518         input_iterator_tag), _S_construct(_InIterator, _InIterator,
1519         const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
1520         const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
1521         (_M_mutate): Check for the empty string and treat it as shared.
1522         This is necessary here because _M_mutate is sometimes called with
1523         all-zero arguments; in all other uses of _M_is_shared, the test comes
1524         out right anyhow.
1525
1526 2003-06-12  Benjamin Kosnik  <bkoz@redhat.com>
1527
1528         * src/allocator-inst.cc: Explicitly instantiate.
1529         * include/ext/pool_allocator.h: Inhibit implicit instantiations.
1530         Tweaks.
1531         * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
1532
1533 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
1534
1535         * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
1536         * aclocal.m4: Regenerate.
1537         * Makefile.am (SUBDIRS): Remove libio.
1538         * Makefile.in: Regenerate.
1539         * configure.in: Same.
1540         * configure: Regenerate.
1541         * config/io/basic_file_libio.cc: Remove.
1542         * config/io/basic_file_libio.h: Remove.
1543         * config/io/c_io_libio_codecvt.c: Remove.
1544         * config/io/c_io_libio.h: Remove.
1545         * libio/*: Remove.
1546         * src/Makefile.am: Same.
1547         * src/Makefile.in: Regenerate.
1548         * docs/html/configopts.html: Edits.
1549         * docs/html/explanations.html: Edits.
1550
1551 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
1552
1553         * include/bits/stl_alloc.h (__debug_alloc): Move out.
1554         (__malloc_alloc): Same.
1555         (__pool_alloc): Same.
1556         (__new_alloc): Same.
1557         Rename to..
1558         * include/bits/allocator.h: ...this.
1559         * include/bits/stl_deque.h: Modify comment.
1560         * include/bits/stl_tree.h: Modify include.
1561         * include/std/std_memory.h: Same.
1562         * include/ext/rope: Same.
1563         * include/ext/slist: Same.
1564         * include/std/std_vector.h: Same.
1565         * include/std/std_stack.h: Same.
1566         * include/std/std_queue.h: Same.
1567         * include/std/std_list.h: Same.
1568         * include/std/std_deque.h: Same.
1569         * include/backward/alloc.h: Same.
1570         * include/ext/debug_allocator.h: New.
1571         * include/ext/malloc_allocator.h: New.
1572         * include/ext/pool_allocator.h: New.
1573         * include/ext/new_allocator.h: New.
1574         * include/bits/pthread_allocimpl.h: Remove.
1575         * include/bits/stl_pthread_alloc.h: Remove.
1576         * include/Makefile.am (ext_headers): Add.
1577         * include/Makefile.in: Regenerate.
1578         * src/stl-inst.cc: Use __gnu_cxx namespace.
1579         * src/stl-inst.cc: Move to...
1580         * src/allocator-inst.cc: Here.
1581         * src/Makefile.am (sources): Update.
1582         * src/Makefile.in: Regenerate.
1583         * config/linker-map.gnu: Remove __pool_alloc bits.
1584         * testsuite/ext/headers.cc: Add.
1585         * testsuite/ext/allocators.cc: Fixup.
1586
1587 2003-06-11  Stefan Olsson  <stefan@snon.net>
1588             Ola Rönnerup  <fnolis@home.se>
1589
1590         * include/Makefile.am (ext_headers): Add.
1591         * include/Makefile.in: Regenerate.
1592         * include/ext/mt_allocator.h: New file.
1593
1594 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
1595
1596         * include/bits/fstream.tcc (close): Clean up a bit.
1597
1598         * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
1599
1600         * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
1601         - the saved _M_in_cur, that is - cannot be null.
1602         (sync): Constify a variable.
1603
1604         * include/std/std_streambuf.h: Tweak a comment.
1605         (in_avail): Constify a variable.
1606
1607 2003-06-10  Phil Edwards  <pme@gcc.gnu.org>
1608
1609         * docs/html/17_intro/BUGS:  Update from 2.90.8 snapshot.
1610         * docs/html/17_intro/CHECKLIST:  Bring up to date with respect to
1611         correctness of container::iterator typedefs.  Fix whitespace.
1612         * docs/html/20_util/howto.html, docs/html/ext/howto.html:  Add links
1613         to allocator docs.
1614         * docs/html/documentation.html:  Regenerate.
1615
1616         * include/bits/basic_string.h, include/bits/basic_string.tcc,
1617         include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
1618         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
1619         include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
1620         include/bits/stl_list.h, include/bits/stl_uninitialized.h,
1621         include/bits/stl_vector.h, include/bits/vector.tcc,
1622         include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
1623         Change _Iter names to _Iterator, and __pos to __position.
1624
1625         * include/bits/stl_relops.h, include/bits/stl_numeric.h,
1626         include/bits/stl_multiset.h, include/bits/stl_set.h:
1627         Remove emacs markers.
1628
1629         * include/bits/stl_threads.h (_STL_auto_lock):  Add __unused__.
1630
1631 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
1632
1633         * include/bits/fstream.tcc (overflow): According to
1634         27.5.2.4.5, overflow() returns not_eof(eof()).
1635         * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
1636         * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
1637
1638 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
1639
1640         * include/bits/fstream.tcc (_M_underflow): Check overflow return
1641         value; tweak slightly.
1642
1643 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
1644
1645         * include/bits/fstream.tcc (_M_underflow): Do not special
1646         case the unbuffered case, which really means simply a one char
1647         get area.
1648         (basic_filebuf): Initialize _M_buf_size.
1649         (setbuf): Unbuffered means _M_buf_size == 1, since only
1650         _M_buf_size - 1 == 0 chars are going to be used for the
1651         put area and 1 for the get area.
1652         * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
1653         (~basic_streambuf): Tweak.
1654         (basic_streambuf): Do not initialize _M_buf_size.
1655         * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
1656         (~basic_filebuf): Tweak.
1657         (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
1658         unbuffered situation (i.e., put area pointers NULL).
1659         * include/bits/streambuf.tcc (sbumpc): Clean up.
1660         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
1661         * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
1662         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
1663         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
1664         * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
1665         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
1666         * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
1667
1668 2003-06-09  Phil Edwards  <pme@gcc.gnu.org>
1669
1670         * acinclude.m4:  Move all AM_CONDITIONAL calls out.
1671         (GLIBCPP_CONFIGURE):  Set defaults for variables used in AM_CONDITIONAL
1672         statements.
1673         * configure.in:  Centralize AM_CONDITIONALs so that they are always
1674         run.  Make use of GLIBCPP_IS_CROSS_COMPILING.
1675         * aclocal.m4, configure:  Regenerated.
1676
1677 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
1678
1679         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 235.
1680
1681 2003-06-06  Nathan Myers  <ncm-nospam@cantrip.org>
1682
1683         * include/bits/stl_iterator.h
1684         (reverse_iterator::reverse_iterator()): Apply DR235: default
1685         constructor default-initializes data member.  Instantiated on a
1686         pointer type, the member has to end up equal to zero.
1687
1688 2003-06-06  Benjamin Kosnik  <bkoz@redhat.com>
1689
1690         * include/bits/stl_alloc.h: Cleanups.
1691         * include/ext/functional: Same.
1692         * include/ext/hash_map: Same.
1693         * include/ext/hash_set: Same.
1694         * include/ext/iterator: Same.
1695         * include/ext/memory: Same.
1696         * include/ext/numeric: Same.
1697         * include/ext/rb_tree: Same.
1698         * include/ext/ropeimpl.h: Same.
1699         * include/ext/slist: Same.
1700         * include/ext/stdio_filebuf.h: Same.
1701         * include/ext/stdio_sync_filebuf.h: Same.
1702         * include/ext/stl_rope.h: Move to...
1703         * include/ext/rope: ...here.
1704         * include/ext/stl_hash_fun.h: Move to...
1705         * include/ext/hash_fun.h: ...here.
1706         * include/ext/stl_hashtable.h: Move to...
1707         * include/ext/hashtable.h: ...here.
1708         * include/backward/hashtable.h: Reflect new names.
1709         * include/Makefile.am: Same.
1710         * include/Makefile.in: Regenerated.
1711
1712 2003-06-05  Benjamin Kosnik  <bkoz@redhat.com>
1713
1714         PR libstdc++/9024
1715         * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
1716         * include/bits/stl_algobase.h: Tweak.
1717         * include/std/std_fstream.h: Move _M_buf_size to...
1718         * include/std/std_streambuf.h: ...here. Modify.
1719         * include/bits/streambuf.tcc: Same.
1720         * testsuite/testsuite_hooks.h: Tweak.
1721         * testsuite/testsuite_io.h (constraint_filebuf): New.
1722         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
1723         * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
1724         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
1725         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
1726         * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
1727         * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
1728         * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
1729         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
1730         * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
1731         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
1732         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
1733         * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
1734         * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
1735         * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
1736         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
1737         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
1738         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
1739         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
1740         * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
1741         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
1742         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
1743         * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
1744         * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
1745         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
1746         * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
1747         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
1748         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
1749         * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
1750         * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
1751         * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
1752         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
1753         * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
1754         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
1755         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
1756         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
1757         * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
1758         * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
1759         * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
1760         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
1761         * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
1762         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
1763         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
1764         * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
1765         * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
1766         * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
1767         * testsuite/data/sgetc.txt: New.
1768         * testsuite/data/sgetn.txt: New.
1769
1770 2003-06-05  Paolo Carlini  <pcarlini@unitus.it>
1771
1772         PR libstdc++/11095
1773         * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
1774         Deal with width() smaller than zero.
1775         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
1776         operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
1777         _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
1778         char*), operator<<(basic_ostream<char, _Traits>&, const char*),
1779         operator<<(basic_ostream, const basic_string&)): Likewise.
1780
1781         * testsuite/27_io/basic_istream/extractors_character/char/
1782         (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
1783         * testsuite/27_io/basic_ostream/inserters_character/char/
1784         (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
1785         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
1786         (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
1787
1788 2003-06-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1789
1790         * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
1791         .gch compilation works.
1792         * aclocal.m4, configure: Regenerate.
1793         * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
1794         initialize PCHFLAGS.
1795
1796 2003-06-04  Paolo Carlini  <pcarlini@unitus.it>
1797
1798         * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
1799         erase(iterator), erase(iterator, iterator), c_str,
1800         compare(const basic_string&)): Constify various variables.
1801         * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
1802         const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
1803         _S_create, resize, _M_replace, _M_replace_safe,
1804         append(const basic_string&), append(const basic_string&, size_type,
1805         size_type), append(const _CharT*, size_type), append(size_type,
1806         _CharT), operator+(const _CharT*, const basic_string&),
1807         operator+(_CharT, const basic_string&), replace(iterator, iterator,
1808         size_type, _CharT), find(const _CharT*, size_type, size_type),
1809         find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
1810         rfind(_CharT, size_type), compare(size_type, size_type,
1811         const basic_string&), compare(size_type, size_type,
1812         const basic_string&, size_type, size_type), compare(const _CharT*),
1813         compare(size_type, size_type, const _CharT*), compare(size_type,
1814         size_type, const _CharT*, size_type)): Likewise.
1815
1816 2003-06-03  Benjamin Kosnik  <bkoz@redhat.com>
1817
1818         * include/bits/fstream.tcc (pbackfail): Make a rarely taken
1819         'if' branch less obscure.
1820
1821 2003-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
1822
1823         PR libstdc++/9815
1824         * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
1825         asm case to asm.
1826         * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
1827         (__atomic_add): likewise.
1828
1829 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1830
1831         * include/bits/sstream.tcc (pbackfail): Minor clean up and
1832         reformatting, consistent with basic_filebuf::pbackfail.
1833
1834 2003-06-02  Richard Kreckel  <Richard.Kreckel@GiNaC.DE>
1835
1836         PR libstdc++/11062
1837         * config/cpu/mips/atomicity.h:  Change __attribute__ ((unused)) to
1838         __attribute__ ((__unused__)).
1839         * config/os/aix/atomicity.h:  Likewise.
1840
1841 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1842
1843         PR libstdc++/9761
1844         * include/bits/fstream.tcc (pbackfail): If the pback buffer
1845         is already active don't try to store in it a second char.
1846         * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
1847
1848         * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
1849
1850 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1851
1852         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
1853         line spacing.
1854
1855 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1856
1857         * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
1858         instead of unnecessarily taking the address of _M_pback.
1859         (xsgetn): Simplify slightly for a single char pback buffer.
1860
1861 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1862
1863         * include/bits/sstream.tcc (seekoff): Remove four unnecessary
1864         variables and two 'if', clean up.
1865
1866 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1867
1868         * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
1869         not _M_out_end, since the former actually points to the string
1870         end (vs buffer end).
1871         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
1872
1873 2003-05-30  Phil Edwards  <pme@gcc.gnu.org>
1874
1875         * docs/doxygen/filter:  New file.
1876         * docs/doxygen/filter.sed:  New file.
1877         * docs/doxygen/run_doxygen:  Add g flag to sed substitutions.  Duh.
1878         * docs/doxygen/user.cfg.in (INPUT_FILTER):  Point to new filter.
1879         * docs/html/documentation.html:  Fix links to doxygen pages.
1880
1881 2003-05-30  Paolo Carlini  <pcarlini@unitus.it>
1882
1883         * include/bits/fstream.tcc (_M_convert_to_external): Don't
1884         check for __ilen > 0.
1885
1886 2003-05-29  Sylvain Pion  <Sylvain.Pion@mpi-sb.mpg.de>
1887
1888         PR libstdc++/10783
1889         * include/bits/stl_iterator.h (class __normal_iterator):
1890         Don't inherit from iterator, add missing typedefs.
1891
1892 2003-05-29  Paolo Carlini <pcarlini@unitus.it>
1893
1894         * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
1895         * testsuite/24_iterators/reverse_iterator/1.cc: New.
1896         * testsuite/24_iterators/reverse_iterator/2.cc: New.
1897         * testsuite/24_iterators/reverse_iterator/3.cc: New, from
1898         PR libstdc++/10783.
1899
1900 2003-05-27  Steve Ellcey  <sje@cup.hp.com>
1901
1902         * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
1903         on IA64 HP-UX.
1904         * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
1905         _LIBUNWIND_STD_ABI is set.
1906
1907 2003-05-26  Brendan Kehoe  <brendan@zen.org>
1908
1909         * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
1910         make sure the number of digits required after the decimal-point
1911         (if any) is exactly the value returned by frac_digits().
1912         * testsuite/22_locale/money_get/get/char/9.cc: New.
1913         * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
1914
1915 2003-05-27  Jonathan Wakely  <redi@gcc.gnu.org>
1916
1917         * include/std/std_istream.h, include/std/std_ostream.h: Typo in
1918         comment.
1919
1920 2003-05-26  Benjamin Kosnik  <bkoz@redhat.com>
1921
1922         PR libstdc++/9339
1923         * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
1924         (_M_pback): No array necessary.
1925         * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
1926         unbuffered case, coalesec into ...
1927         (basic_filebuf::overflow): ...this.
1928         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
1929         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
1930
1931 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
1932
1933         * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
1934         libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
1935         libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
1936         libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
1937         libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
1938         libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
1939         libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
1940         libsupc++/eh_unex_handler.cc, libsupc++/exception,
1941         libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
1942         libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
1943         libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
1944         libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
1945         Replace "GNU CC" with "GCC".
1946
1947         * include/backward/new.h: Replace "GNU CC" with "GCC".
1948
1949 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1950
1951         PR libstdc++/3066.
1952         * configure.in: Switch target to host, don't assume newlib.
1953         (target_alias): Remove.
1954         * configure: Regenerate.
1955         * acinclude.m4: Same.
1956         * aclocal.m4: Regenerate.
1957         * configure.target: Same. Rename to...
1958         * configure.host: This.
1959
1960 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
1961
1962         * include/std/std_fstream.h (_S_pback_size): Remove definition.
1963         (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
1964         pback buffer.
1965         * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
1966         * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
1967         of _S_pback_size for systems with no COMDAT or weak support.
1968         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
1969         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
1970         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
1971         * testsuite/27_io/basic_fstream/3.cc: Likewise.
1972         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
1973         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
1974         * testsuite/27_io/basic_ofstream/3.cc: Likewise.
1975         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
1976         * testsuite/27_io/basic_streambuf/3.cc: Likewise.
1977
1978 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
1979
1980         * include/bits/fstream.tcc (_M_underflow): Simplify:
1981         !__testout implies _M_filepos == _M_in_end, therefore
1982         the first _M_file.seekoff call is never issued.
1983
1984 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1985
1986         * configure.in: Sort cross table.
1987         * configure: Regenerate.
1988
1989 2003-05-22  Brad Spencer  <spencer@infointeractive.com>
1990
1991         PR libstdc++/10106
1992         * configure.in: Add Solaris cross bits.
1993
1994 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
1995
1996         * libstdc++-v3/config/os/mingw32/os_defines.h
1997         (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
1998         (NOMINMAX): Define.  Update copyright year.
1999
2000 2003-05-21  Paolo Carlini  <pcarlini@unitus.it>
2001
2002         * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
2003
2004 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
2005
2006         * docs/html/faq/index.html: Fix typo.
2007         * docs/html/faq/index.txt: Regenerate.
2008
2009 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
2010
2011         * docs/html/test.html: Fix markup.
2012
2013 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
2014
2015         * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
2016         zero.
2017         Update copyright year.
2018
2019 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
2020
2021         * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
2022
2023 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
2024
2025         * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
2026         further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
2027
2028 2003-05-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2029
2030         * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
2031         Cast via void* to avoid -Wcast-align warnings.
2032         (__default_alloc_template::_S_refill): Likewise.
2033
2034 2003-05-20  Benjamin Kosnik  <bkoz@redhat.com>
2035
2036         * testsuite/README: Move to...
2037         * docs/html/test.html: ...here. Add documentation.
2038         * docs/html/install.html: Move testing bits out..
2039         * docs/html/documentation.html: Add separate testing link.
2040         * testsuite/performance: Add.
2041         * testsuite/performance/allocator.cc: New.
2042         * testsuite/performance/complex_norm.cc: New.
2043         * testsuite/performance/cout_insert_int.cc: New.
2044         * testsuite/performance/fstream_seek_write.cc: New.
2045         * testsuite/performance/ifstream_getline.cc: New.
2046         * testsuite/performance/map_create_fill.cc: New.
2047         * testsuite/performance/ofstream_insert_float.cc: New.
2048         * testsuite/performance/ofstream_insert_int.cc: New.
2049         * testsuite/performance/string_append.cc: New.
2050         * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
2051         performance tests.
2052
2053 2003-05-20  Gabriel Dos Reis <gdr@integrable-solutions.net>
2054
2055         PR libstdc++/10689
2056         * include/std/std_complex.h (pow): Tidy.
2057
2058 2003-05-19  Paolo Carlini  <pcarlini@unitus.it>
2059
2060         * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
2061         that upon filebuf::close() 27.8.1.1,3 is enforced.
2062
2063 2003-05-15  Loren J. Rittle  <ljrittle@acm.org>
2064
2065         * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
2066
2067 2003-05-15  Paolo Carlini  <pcarlini@unitus.it>
2068             Nathan Myers  <ncm@cantrip.org>
2069
2070         * include/bits/fstream.tcc (_M_overflow): Rewrote to call
2071         _M_convert_to_external only once (_M_buf_size is now the size of
2072         the put area + 1 for the overflow char of a full area); call
2073         _M_set_buffer instead of _M_set_indeterminate.
2074         (setbuf): Don't accept a buffer smaller than 2 chars.
2075         (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
2076         instead of _M_set_determinate.
2077         (open): Call _M_set_buffer, instead of _M_set_indeterminate.
2078         (seekoff): Likewise.
2079         * include/ext/stdio_filebuf.h (stdio_filebuf(int,
2080         std::ios_base::openmode, bool, size_t),
2081         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
2082         Likewise.
2083         * include/std/std_fstream.h (_M_set_indeterminate): Remove.
2084         (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
2085         _M_buf_size - 1.
2086         * include/std/std_streambuf.h: Tweak _M_out_lim comment.
2087         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
2088         into account that, for _M_buf_size == BUFSIZ == 8192, the size of
2089         the put area is now BUFSIZ - 1.
2090         * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
2091         that now the smallest _M_buf_size is 2 (still fails, for the same
2092         reason, with 3.2.3)
2093
2094 2003-05-14  Loren J. Rittle  <ljrittle@acm.org>
2095
2096         * testsuite/thread/pthread4.cc: Tweak test.
2097
2098 2003-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2099
2100         * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
2101         excess errors dg marker, use dg-errors instead.
2102         * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
2103         * testsuite/20_util/auto_ptr_neg.cc: Same.
2104
2105 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
2106
2107         * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
2108         cached member.
2109         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
2110         Initialize _M_codecvt.
2111         (basic_filebuf::imbue): Same.
2112         (basic_filebuf::showmanyc): Use it.
2113         (basic_filebuf::underflow): Use it.
2114         (basic_filebuf::_M_convert_to_external): Use it.
2115         (basic_filebuf::seekoff): Use it.
2116         (basic_filebuf::imbue): Use it, tweaks.
2117         * include/bits/localefwd.h (__check_facet): New.
2118         * include/bits/locale_classes.h: Tweaks.
2119         * include/bits/locale_facets.tcc: Tweaks.
2120         * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
2121         _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
2122         _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
2123         * include/bits/basic_ios.tcc: Same.
2124         * include/bits/istream.tcc: Same.
2125         * include/bits/ostream.tcc: Same.
2126         * include/std/std_streambuf.h: Same.
2127         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
2128         * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
2129         * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
2130         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
2131         * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
2132         * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
2133
2134 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
2135
2136         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
2137         unnecessary includes and unused string literals.
2138         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
2139         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
2140         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
2141         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
2142
2143 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
2144
2145         * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
2146
2147 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
2148
2149         * include/std/std_fstream.h (_M_convert_to_external): Change
2150         to return bool, take two less streamsize parameters.
2151         * include/bits/fstream.tcc (_M_convert_to_external): Tweak
2152         consistently definition.
2153         (_M_overflow): Adjust call points.
2154
2155 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
2156
2157         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
2158
2159 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
2160
2161         * testsuite/Makefile.am:  Properly quote /both/ LD_RUN_PATHs.
2162         * testsuite/Makefile.in:  Regenerate.
2163
2164 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
2165
2166         * testsuite/Makefile.am:  Properly quote LD_RUN_PATH.
2167         * testsuite/Makefile.in:  Regenerate.
2168
2169 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
2170
2171         PR libstdc++/3181
2172         * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
2173         (acos): Handle integer argument.
2174         (asin): Likewise.
2175         (atan): Likewise.
2176         (atan2): Likewise.
2177         (ceil): Likewise.
2178         (cos): Likewise.
2179         (cosh): Likewise.
2180         (exp): Likewise.
2181         (fabs): Likewise.
2182         (floor): Likewise.
2183         (frexp): Likewise.
2184         (ldexp): Likewise.
2185         (log): Likewise.
2186         (log10): Likewise.
2187         (sin): Likewise.
2188         (sinh): Likewise.
2189         (sqrt): Likewise.
2190         (tan): Likewise.
2191         (tanh): Likewise.
2192         * include/bits/cpp_type_traits.h (__are_same<>): New traits.
2193         (__enable_if): Likewise.
2194         * testsuite/26_numerics/cmath/overloads.C: New test.
2195
2196 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
2197
2198         PR libstdc++/9027
2199         PR libstdc++/9520
2200         PR libstdc++/10096
2201         * include/bits/fstream.tcc (basic_file::_M_underflow):  Add generic
2202         implementation, based on old wchar_t specialization, add support
2203         for codecvt::in() return value of codecvt_base::noconv, remove
2204         _M_file.sys_ungetc() call.
2205         * include/std/std_fstream.h (basic_file::underflow,
2206         basic_file::uflow, basic_file::_M_underflow):  Remove
2207         specialization declarations, call _M_underflow from generic versions
2208         of underflow and uflow.
2209         * src/fstream.cc (basic_file::underflow, basic_file::uflow,
2210         basic_file::_M_underflow):  Remove specializations.
2211         * src/Makefile.am (sources):  Remove fstream.cc.
2212         * src/Makefile.in:  Regenerated.
2213         * testsuite/27_io/basic_filebuf/underflow/10096.cc:  New test.
2214         * testsuite/27_io/basic_filebuf/underflow/char/1.cc:  New test.
2215         * testsuite/27_io/basic_filebuf/underflow/char/9027.cc:  New test.
2216         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc:  New test.
2217
2218 2003-05-10  Benjamin Kosnik  <bkoz@redhat.com>
2219
2220         * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
2221         buffer.
2222         * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
2223         unbuffered bits.
2224         (__basic_file::xsputn): Same.
2225         (__basic_file::seekoff): Same.
2226         (__basic_file::seekpos): Same.
2227         (__basic_file::showmanyc): Same.
2228         * config/io/basic_file_stdio.cc: Same.
2229         * include/std/std_fstream.h: Same.
2230         * include/bits/fstream.tcc: Same.
2231         * src/fstream.cc: Same.
2232         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
2233
2234 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
2235
2236         PR libstdc++/9520
2237         PR libstdc++/9661
2238         PR libstdc++/9662
2239         * include/ext/stdio_sync_filebuf.h:  New file.
2240         (basic_stdiobuf):  New.
2241         * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
2242         * include/Makefile.in: Regenerate.
2243         * include/bits/ios_base.h (Init::_S_create_buffers,
2244         Init::_S_destroy_buffers):  Remove declarations.
2245         * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
2246         buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync):  Define.
2247         * src/ios.cc (Init::_S_create_buffers,
2248         Init::_S_destroy_buffers):  Remove.
2249         (Init::Init):  Create and use syncronized buffers.
2250         (ios_base::sync_with_stdio):  Destroy syncronized buffers,
2251         create and install unsyncronized buffers.
2252         * testsuite/27_io/objects/char/10.cc:  New test.
2253         * testsuite/27_io/objects/char/9.cc:  New test.
2254         * testsuite/27_io/objects/char/9661-1.cc:  New test.
2255         * testsuite/27_io/objects/char/9661-2_xin.cc:  New test.
2256         * testsuite/27_io/objects/char/9661-2_xin.in:  New.
2257         * testsuite/27_io/objects/wchar_t/1.cc:  New test.
2258         * testsuite/27_io/objects/wchar_t/10.cc:  New test.
2259         * testsuite/27_io/objects/wchar_t/2.cc:  New test.
2260         * testsuite/27_io/objects/wchar_t/2523-1_xin.cc:  New test.
2261         * testsuite/27_io/objects/wchar_t/2523-1_xin.in:  New.
2262         * testsuite/27_io/objects/wchar_t/2523-2_xin.cc:  New test.
2263         * testsuite/27_io/objects/wchar_t/2523-2_xin.in:  New.
2264         * testsuite/27_io/objects/wchar_t/3045.cc:  New test.
2265         * testsuite/27_io/objects/wchar_t/3647.cc:  New test.
2266         * testsuite/27_io/objects/wchar_t/3_xin.cc:  New test.
2267         * testsuite/27_io/objects/wchar_t/3_xin.in:  New.
2268         * testsuite/27_io/objects/wchar_t/4_xin.cc:  New test.
2269         * testsuite/27_io/objects/wchar_t/4_xin.in:  New.
2270         * testsuite/27_io/objects/wchar_t/5.cc:  New test.
2271         * testsuite/27_io/objects/wchar_t/5268.cc:  New test.
2272         * testsuite/27_io/objects/wchar_t/5280_xin.cc:  New test.
2273         * testsuite/27_io/objects/wchar_t/5280_xin.in:  New.
2274         * testsuite/27_io/objects/wchar_t/6.cc:  New test.
2275         * testsuite/27_io/objects/wchar_t/6548_xin.cc:  New test.
2276         * testsuite/27_io/objects/wchar_t/6548_xin.in:  New.
2277         * testsuite/27_io/objects/wchar_t/6648-1_xin.cc:  New test.
2278         * testsuite/27_io/objects/wchar_t/6648-1_xin.in:  New.
2279         * testsuite/27_io/objects/wchar_t/6648-2_xin.cc:  New test.
2280         * testsuite/27_io/objects/wchar_t/6648-2_xin.in:  New.
2281         * testsuite/27_io/objects/wchar_t/7.cc:  New test.
2282         * testsuite/27_io/objects/wchar_t/7744_xin.cc:  New test.
2283         * testsuite/27_io/objects/wchar_t/7744_xin.in:  New.
2284         * testsuite/27_io/objects/wchar_t/8.cc:  New test.
2285         * testsuite/27_io/objects/wchar_t/9_xin.cc:  New test.
2286         * testsuite/27_io/objects/wchar_t/9_xin.in:  New.
2287         * testsuite/27_io/objects/wchar_t/9520.cc:  New test.
2288         * testsuite/27_io/objects/wchar_t/9661-1.cc:  New test.
2289         * testsuite/27_io/objects/wchar_t/9661-2_xin.cc:  New test.
2290         * testsuite/27_io/objects/wchar_t/9661-2_xin.in:  New.
2291         * testsuite/27_io/objects/wchar_t/9662.cc:  New test.
2292         * testsuite/ext/stdiobuf_char.cc:  New test.
2293         * testsuite/ext/stdiobuf_wchar_t.cc:  New test.
2294
2295 2003-05-10  Paolo Carlini  <pcarlini@unitus.it>
2296
2297         * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
2298         unnecessary includes and unused string literals.
2299         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
2300
2301 2003-05-08  Paolo Carlini  <pcarlini@unitus.it>
2302
2303         * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
2304
2305 2003-05-07  Richard Henderson  <rth@redhat.com>
2306
2307         PR c++/10570
2308         * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
2309         (__cxa_end_catch): Likewise.
2310         * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise.  Use
2311         _Unwind_Resume_or_Rethrow.
2312         * libsupc++/eh_personality.cc (empty_exception_spec): New.
2313         (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
2314         for _UA_FORCE_UNWIND.  Honor empty filter spec for foreign
2315         exceptions.  Don't push terminate/unexpected to cxa functions.
2316         (__cxa_call_unexpected): Remove foreign exception fixmes.
2317
2318 2003-05-07  Benjamin Kosnik  <bkoz@redhat.com>
2319
2320         * testsuite/27_io/ios_base/cons: New.
2321         * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
2322         * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
2323
2324 2003-05-07  Paolo Carlini  <pcarlini@unitus.it>
2325
2326         * include/std/std_fstream.h (_M_is_indeterminate): Remove.
2327         * src/fstream.cc
2328         (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
2329         there is no buffer or __testget == !__testinit.
2330
2331         * src/fstream.cc
2332         (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
2333         automatically sets, if appropriate, _M_out_cur == _M_in_cur.
2334
2335         * include/std/std_fstream.h (_M_destroy_pback): Don't set
2336         unnecessarily _M_pback_cur_save and _M_pback_end_save.
2337
2338         * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
2339
2340         * include/std/std_sstream.h (_M_sync): Minor tweak.
2341
2342         * include/bits/fstream.tcc (close): No need to call
2343         _M_destroy_pback, setting _M_pback_init to false suffices
2344         to clean up.
2345
2346 2003-05-06  Benjamin Kosnik  <bkoz@redhat.com>
2347
2348         * include/bits/stl_algo.h: Enums as _S_.
2349         * include/bits/stl_tree.h: Same.
2350         * include/bits/stl_bvector.h: Same.
2351         * include/bits/ios_base.h: Same.
2352         * include/bits/stl_alloc.h: Same.
2353         * include/ext/stl_hashtable.h: Same.
2354         * src/ios.cc: And here.
2355
2356         * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
2357         * include/bits/sstream.tcc: Same.
2358
2359         * include/bits/basic_ios.h: Correct spacing for '< ctype'.
2360
2361         * include/bits/locale_facets.tcc: Replace __temp to __tmp.
2362
2363         * include/bits/locale_facets.h (__num_base): Remove protected.
2364         Use _S_[io]* names for enumerations.
2365         (_S_format_int): Remove.
2366         * include/bits/locale_facets.tcc: Same.
2367         * src/locale.cc: Same.
2368
2369         * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
2370
2371 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
2372
2373         * docs/html/faq/index.html (3.10):  Add note about mips atomicity.h.
2374         * docs/html/faq/index.txt:  Regenerated.
2375
2376 2003-05-06  Michael Ritzert <Ritzert@t-online.de>
2377             Matt Kraai <kraai@alumni.cmu.edu>
2378
2379         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
2380         And retweak.
2381
2382 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
2383
2384         * configure.target (mips*): Use the generic atomicity.h by default.
2385
2386 2003-05-05  Loren J. Rittle  <ljrittle@acm.org>
2387             (Inspired by an alternate patch from Danny Smith.)
2388
2389         * include/bits/stl_threads.h (_Atomic_swap): Kill it...
2390         (_Swap_lock_struct<>): ...and the horse it rode in on.
2391         * src/globals.cc (_Swap_lock_struct<>): Likewise.
2392         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
2393         member to support...
2394         * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
2395         visibility rules related to POSIX threads.
2396         * testsuite/thread/pthread7-rope.cc: New test.
2397
2398 2003-05-04  Paolo Carlini  <pcarlini@unitus.it>
2399
2400         * testsuite/21_strings/basic_string/find/char/3.cc: New
2401         file, testing basic_string<char>::find_first_not_of.
2402         * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
2403         Likewise for basic_string<wchar_t>.
2404
2405 2003-05-03  Loren J. Rittle  <ljrittle@acm.org>
2406
2407         * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
2408
2409 2003-05-02  Benjamin Kosnik  <bkoz@redhat.com>
2410
2411         * include/Makefile.am (CLEANFILES): Remove PCH files in target
2412         directory.
2413         * include/Makefile.in: Regenerate.
2414
2415 2003-05-02  Paolo Carlini  <pcarlini@unitus.it>
2416
2417         * include/std/std_sstream.h (str()): Tidy.
2418
2419 2003-05-02  Nathan Myers  <ncm@cantrip.org>
2420             Paolo Carlini  <pcarlini@unitus.it>
2421
2422         * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
2423
2424 2003-05-02  Jonathan Wakely  <redi@gcc.gnu.org>
2425
2426         * include/bits/basic_string.h (swap): Remove redundant template
2427         parameters from declaration of non-template member function.
2428
2429 2003-05-01  Phil Edwards  <pme@gcc.gnu.org>
2430
2431         * acconfig.h (_GLIBCPP_USE_NLS):  New symbol.
2432         * configure.in:  Move libintl.h header test...
2433         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  ...to here.  Gather all
2434         the NLS-related test results into one symbol.
2435         * src/functexcept.cc:  Use it here.
2436         * aclocal.m4, config.h.in, configure:  Regenerated.
2437
2438 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2439
2440         * include/bits/sstream.tcc (overflow): Instead of calling
2441         str(), then _M_string.reserve, thus copying the contents
2442         of the current buffer two times, just copy the latter in
2443         a temporary, then use the 'swap trick'.
2444
2445 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2446
2447         * include/std/std_sstream.h (str()): Revert the best of the
2448         previous 'improvement', incorrect due to the COW nature of
2449         v3 basic_string; simplify.
2450
2451 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2452
2453         * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
2454         type of __avail to ptrdiff_t to avoid signed-unsigned warning.
2455
2456 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
2457
2458         * testsuite/abi_check.cc (check_version): Update known versions.
2459         Check added symbols for version_name != base version. Add missing
2460         symbols to incompatible list.
2461
2462 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
2463
2464         * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
2465         * aclocal.m4: Regenerated.
2466         * configure: Regenerated.
2467
2468 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2469
2470         * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
2471         Const-ify some variables.
2472         (basic_streambuf::xsputn): Likewise; change the type of some
2473         variables to size_t.
2474         (__copy_streambufs): Change some variables to size_t.
2475
2476 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2477
2478         * include/std/std_sstream.h (str()): Avoid constructing
2479         a basic_string temporary not only when it would turn out
2480         to be zero-sized but also when identical to the current
2481         _M_string buffer.
2482
2483 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2484
2485         * include/ext/stdio_filebuf.h
2486         (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
2487         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
2488         Shorten a bit (-10 lines) by factoring out some code.
2489
2490 2003-04-30  Phil Edwards  <pme@gcc.gnu.org>
2491
2492         * acinclude.m4:  Add bit missing from previous patch.
2493         * aclocal.m4, configure:  Regenerated.
2494
2495 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
2496
2497         * docs/doxygen/mainpage.html:  Bring up to date.
2498         * docs/doxygen/run_doxygen:  Cosmetic tweaks.  Work around a bug
2499         in Doxygen.
2500         * docs/doxygen/user.cfg.in:  Scanning the precompiled headers
2501         breaks everything.  Don't scan them.
2502         * docs/html/documentation.html:  Point to "Write after approval"
2503         notes.
2504
2505 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
2506
2507         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  Search for gettext outside
2508         of libc if message translations are being used.  Fix info text in
2509         xieee_1003.1-2001 case.
2510         * aclocal.m4, configure:  Regenerate.
2511
2512 2003-04-29 Joel Sherrill  <joel.sherrill@OARcorp.com>
2513            Loren J. Rittle <ljrittle@acm.org>
2514            Martin v. Loewis  <martin@v.loewis.de>
2515
2516         * config/cpu/i386/atomicity.h: New file.
2517
2518 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
2519
2520         * include/bits/fstream.tcc (open): Change to single return.
2521
2522 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
2523
2524         * include/std/std_sstream.h (underflow): Change to single return.
2525
2526 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
2527
2528         * include/std/std_streambuf.h (_M_buf): is currently
2529         used only for basic_filebuf, therefore move it there.
2530         (basic_streambuf(), ~basic_streambuf()): Adjust.
2531         * include/std/std_fstream.h (_M_buf): Moved here.
2532         * include/std/std_sstream.h (setbuf): Don't set _M_buf,
2533         is actually redundant for basic_stringbuf.
2534         (_M_really_sync): Likewise.
2535         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2536         * include/bits/sstream.tcc (seekoff): Adjust.
2537
2538 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
2539
2540         * src/localename.cc: Standardize exception strings.
2541         * src/locale.cc: Same.
2542         * src/ios.cc: Same.
2543         * include/bits/basic_string.tcc: Same.
2544         * include/bits/basic_ios.tcc: Same.
2545         * include/std/std_bitset.h: Same.
2546         * include/ext/ropeimpl.h: Same.
2547         * include/bits/stl_vector.h: Same.
2548         * include/bits/stl_deque.h: Same.
2549         * include/bits/stl_bvector.h: Same.
2550         * config/locale/generic/c_locale.cc: Same.
2551         * config/locale/gnu/c_locale.cc: Same.
2552         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
2553
2554         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
2555
2556 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
2557
2558         * include/std/std_streambuf.h (_M_buf_size): is currently
2559         used only for basic_filebuf, therefore move it there.
2560         (basic_streambuf(), ~basic_streambuf()): Adjust.
2561         * include/std/std_fstream.h (_M_buf_size): Moved here.
2562         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2563
2564 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
2565
2566         * include/bits/streambuf.tcc (__copy_streambufs): Don't use
2567         _M_buf_size (synced input is now correctly dealt with
2568         elsewhere); when the output buffer is full don't fall back
2569         to a snextc-sputc loop, call overflow instead.
2570
2571 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
2572
2573         * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
2574         the innermost 'if' by factoring out some code.
2575
2576 2003-04-28  Phil Edwards  <pme@gcc.gnu.org>
2577
2578         * configure.in:  Test for libintl.h.
2579         * include/bits/c++config:  Define __N for everybody.
2580         * include/bits/basic_string.h, include/bits/stl_bvector.h,
2581         include/bits/stl_deque.h, include/bits/stl_vector.h,
2582         include/std/std_bitset.h:  Wrap all __throw* text with __N.
2583         * po/Makefile.am (pot):  New rule, mostly working.
2584         * src/functexcept.cc:  Call gettext on all __throw* arguments when
2585         -fexceptions is in effect.
2586         * po/Makefile.in, config.h.in, configure:  Regenerate.
2587
2588 2003-04-28  Petur Runolfsson  <peturr02@ru.is>
2589
2590         PR libstdc++/9523
2591         * include/bits/ios_base.h (Init::_S_ios_create,
2592         Init::_S_ios_destroy):  Remove declarations.
2593         (Init::_S_create_buffers,
2594         Init::_S_destroy_buffers):  Declare
2595         * src/ios.cc (Init::_S_ios_create):  Remove
2596         (Init::_S_create_buffers):  Create buffers and add to streams.
2597         (Init::_S_ios_destroy):  Rename to...
2598         (Init::_S_destroy_buffers):  this.
2599         (Init::Init):  Only construct streams once.
2600         (Init::~Init):  Flush streams, don't destroy them.
2601         (ios_base::sync_with_stdio):  Don't destroy streams, only buffers.
2602         * testsuite/27_io/ios_base/sync_with_stdio/9523.cc:  New test.
2603         * testsuite/27_io/objects/char/5.cc:  New test.
2604         * testsuite/27_io/objects/char/5268.cc:  Avoid undefined behavior.
2605         * testsuite/27_io/objects/char/6.cc:  New test.
2606         * testsuite/27_io/objects/char/7.cc:  New test.
2607
2608 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
2609
2610         * testsuite/27_io/objects/char/8.cc:  New test.
2611
2612 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
2613
2614         * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
2615         * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
2616
2617 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
2618
2619         * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
2620         _M_destroy_pback. _M_pback_create to
2621         _M_create_pback. _M_underflow_common to
2622         _M_underflow. _M_really_overflow to _M_overflow.
2623         * include/bits/fstream.tcc: Same.
2624         * src/fstream.cc: Same.
2625         * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
2626         _M_move_in_cur.  _M_out_cur_move to _M_move_out_cur.
2627         * include/bits/streambuf.tcc: Same.
2628         * include/bits/fstream.tcc: Same.
2629         * include/bits/sstream.tcc: Same.
2630
2631 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
2632
2633         * include/bits/locale_classes.h (locale::_Impl): Change _M_names
2634         from fixed size array.
2635         (locale): Change _S_categories as well.
2636         Formatting tweaks.
2637         * include/bits/locale_facets.tcc: Tweak.
2638         * config/locale/gnu/c_locale.cc: Assign _S_categories.
2639         * config/locale/generic/c_locale.cc: Same.
2640         * src/locale.cc: Tweak.
2641         * src/globals.cc: Change facet_name to name_vec, add names_c.
2642         * src/localename.cc: Use them.
2643         (locale::_Impl::~_Impl): Destroy _M_names.
2644         (locale::_Impl::_Impl): Create _M_names.
2645
2646 2003-04-27  Andreas Schwab  <schwab@suse.de>
2647
2648         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2649         (__enc_traits): Use __ibom and __ebom instead of ignoring them.
2650
2651 2003-04-27  Nathan Myers  <ncm@cantrip.org>
2652
2653         Move some basic_string members out of line because
2654         they are too big to reasonably be inline.
2655         * include/bits/basic_string.h
2656         (assign(const basic_string&, size_type, size_type),
2657         assign(const _CharT*, size_type),
2658         insert(size_type, const basic_string&, size_type, size_type),
2659         insert(size_type, const _CharT*, size_type),
2660         replace(size_type, size_type, const _CharT*, size_type)):
2661         Move from here to...
2662         * include/bits/basic_string.tcc: ...here.
2663
2664 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
2665
2666         * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
2667         the innermost 'if' by factoring out some code.
2668
2669 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
2670
2671         * include/bits/streambuf.tcc (__copy_streambufs): Don't
2672         use in_avail(), simplify.
2673
2674 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
2675
2676         * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
2677         in basic_stringbuf it's unused.
2678
2679         * include/std/std_sstream.h (underflow): consistently use
2680         _M_in_cur, not gptr().
2681
2682 2003-04-25  Ranjit Mathew  <rmathew@hotmail.com>
2683             Phil Edwards  <pme@gcc.gnu.org>
2684
2685         * testsuite_flags.in: Guard against the possibility
2686         of having "xgcc" as a part of a folder name in the
2687         path to the GCC build folder.
2688         * testsuite/Makefile.am: Likewise.
2689         * testsuite/Makefile.in: Regenerated.
2690
2691 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
2692
2693         PR libstdc++/10132
2694         * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
2695         exception specifications.
2696         (basic_filebuf::close): Same.
2697         (basic_filebuf::_M_pback_destroy): Same.
2698         (basic_filebuf::_M_destroy_internal_buffer): Same.
2699         (basic_filebuf): Remove __res_type typedef.
2700         * src/fstream.cc: Same.
2701         * include/bits/fstream.tcc
2702         (basic_filebuf::_M_convert_to_external): Simplify.
2703         (basic_filebuf::seekoff): Use has_facet before use_facet.
2704         (basic_filebuf::close): Add exception specification of throw().
2705         * testsuite/27_io/basic_filebuf/cons: New.
2706         * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
2707         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
2708         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
2709         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
2710
2711 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
2712
2713         * include/bits/locale_classes.h
2714         (locale::_S_extra_categories_size): Remove.
2715         * src/locale.cc: Remove _S_extra_categories_size.
2716         * src/localename.cc: Same.
2717         * config/locale/gnu/c_locale.cc: Same.
2718         * config/locale/generic/c_locale.cc: Same.
2719
2720 2003-04-24  Richard Sandiford  <rsandifo@redhat.com>
2721
2722         * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
2723
2724 2003-04-24  Phil Edwards  <pme@gcc.gnu.org>
2725
2726         * docs/html/17_intro/howto.html:  Update some links.
2727         * docs/html/18_support/howto.html:  Link doxygen numeric_limits notes.
2728         * docs/html/27_io/howto.html:  Link doxygen stdio_filebuf notes.
2729         * docs/html/ext/howto.html:  Link to demangler notes and API.
2730         * docs/html/faq/index.html:  Remove trailing whitespace.
2731         (1.4, 2.4, 3.8, 4.1):  Bring up to date.
2732         (5.6):  Change to a bulleted list.
2733
2734         * docs/html/faq/index.txt, docs/html/documentation.html,
2735         docs/html/17_intro/porting.html:  Regenerate.
2736
2737 2003-04-23  Paolo Carlini  <pcarlini@unitus.it>
2738
2739         * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
2740         belongs to basic_filebuf.
2741         * testsuite/27_io/basic_fstream/3.cc: Likewise.
2742         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
2743         * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
2744         instantiation (now belongs to basic_filebuf).
2745         * testsuite/27_io/basic_iostream/3.cc: Likewise.
2746         * testsuite/27_io/basic_istream/3.cc: Likewise.
2747         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
2748         _S_pback_size now belongs to basic_filebuf.
2749         * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
2750         instantiation (now belongs to basic_filebuf).
2751         * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
2752         belongs to basic_filebuf.
2753         * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
2754         instantiation (now belongs to basic_filebuf).
2755         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
2756         _S_pback_size now belongs to basic_filebuf.
2757         * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
2758         instantiation (now belongs to basic_filebuf).
2759         * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
2760         to basic_filebuf.
2761         * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
2762         instantiation (now belongs to basic_filebuf).
2763         * testsuite/27_io/basic_stringstream/3.cc: Likewise.
2764
2765 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
2766
2767         * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
2768         * configure: Regenerated.
2769
2770 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
2771
2772         * config/locale/generic/c_locale.h (__convert_from_v): Use
2773         attribute unused.
2774
2775 2003-04-23  Phil Edwards  <pme@gcc.gnu.org>
2776
2777         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 60, partial
2778         implementation only.
2779         * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
2780         Comment and change to comply with DR 60 and the effect on gcount().
2781         * include/std/std_istream.h:  Update comments.
2782         * testsuite/27_io/basic_istream/putback/char/1.cc (test01):  Add
2783         comments about reasons for tests.  Test sync() against gcount().
2784         * testsuite/27_io/basic_istream/seekg/char/2.cc:  New file, test
2785         for effect on gcount().
2786         * testsuite/27_io/basic_istream/tellg/char/2.cc:  New file, test
2787         for effect on gcount().
2788
2789 2003-04-22  Loren J. Rittle  <ljrittle@acm.org>
2790
2791         * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
2792         Adjust timing.
2793
2794 2003-04-22  Paolo Carlini  <pcarlini@unitus.it>
2795
2796         * include/std/std_streambuf.h (_S_pback_size, _M_pback,
2797         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
2798         _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
2799         (basic_streambuf::basic_streambuf()): Adjust.
2800         * include/std/std_fstream.h (_S_pback_size, _M_pback,
2801         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
2802         _M_pback_create(), _M_pback_destroy()): Moved here
2803         from basic_streambuf.
2804         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
2805         Adjust.
2806         (basic_filebuf::_S_pback_size): Add declaration.
2807         * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
2808         Remove declaration.
2809
2810 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
2811
2812         Consistently use _M_in_beg instead of eback(), _M_in_cur
2813         instead of gptr(), and so on.
2814         * include/bits/fstream.tcc (pbackfail, imbue): Here.
2815         * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
2816         * include/bits/streambuf.tcc (sbumpc, sputbackc,
2817         __copy_streambufs): Ditto.
2818         * include/std/std_streambuf.h (sgetc): Ditto.
2819
2820 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
2821
2822         * include/bits/sstream.tcc (pbackfail, overflow):
2823         Formatting fixes.
2824
2825 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
2826
2827         * include/std/std_streambuf.h (uflow()): It's used only by
2828         basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
2829         therefore do not consider the _M_buf_unified == true case.
2830
2831         * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
2832
2833 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
2834
2835         * docs/html/ext/howto.html ('LWG Issues'):
2836         Add issues 19, 90, 171, 231, 271.
2837
2838 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
2839
2840         * include/bits/sstream.tcc (pbackfail): Remove redundant
2841         NULL pointer check from test involving _M_in_*.
2842         (overflow, seekoff, seekpos): Const qualify bool variables.
2843         * include/std/std_sstream.h (underflow): Remove redundant
2844         NULL pointer check from test involving _M_in_*.
2845         (_M_really_sync): Const qualify bool variables.
2846         * src/fstream.cc (_M_underflow_common): Remove redundant
2847         NULL pointer check from test involving _M_in_*, const qualify
2848         bool variables.
2849
2850         * include/std/std_streambuf.h (sgetc): Remove redundant
2851         variable.
2852
2853 2003-04-18  Paolo Carlini  <pcarlini@unitus.it>
2854
2855         According to 5.9 para 2 (second bullet) for pointers p, q
2856         pointing to the same type, with  p == 0 and q == 0, (p < q)
2857         is false.
2858         * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
2859         seekoff): Remove redundant NULL pointer checks from tests
2860         involving _M_out_* and _M_in_*, const qualify bool variables.
2861         (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
2862         qualify bool variables.
2863         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
2864         Remove redundant NULL pointer checks from tests involving
2865         _M_out_* and _M_in_*, const qualify bool variables.
2866         * include/std/std_fstream.h (sync): Likewise.
2867         (_M_is_indeterminate): Const qualify bool variables.
2868         * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
2869         NULL pointer checks from tests involving _M_out_* and _M_in_*,
2870         const qualify bool variables.
2871         (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
2872         variables.
2873
2874 2003-04-18  Loren J. Rittle  <ljrittle@acm.org>
2875
2876         * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
2877         C99 FP macros, if actually captured.
2878
2879         * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
2880         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
2881         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
2882         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
2883         * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
2884         New macro.
2885         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
2886         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
2887         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
2888         * include/c_std/std_cstdlib.h: Use new macros.
2889         * include/c_std/std_cstdio.h: Use new macros.
2890         * include/c_std/std_cwchar.h: Use new macros.
2891
2892 2003-04-17  Benjamin Kosnik  <bkoz@redhat.com>
2893
2894         PR libstdc++/9555
2895         * include/bits/ostream.tcc: Catch all exceptions for formatted
2896         output, instead of std::exception and derivatives.
2897         * include/bits/istream.tcc: Same.
2898         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
2899         * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
2900         * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
2901         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
2902         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2903         * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
2904         New.
2905
2906 2003-04-17  Phil Edwards  <pme@gcc.gnu.org>
2907
2908         * include/bits/c++config:  Minor cosmetic tweaks.
2909
2910 2003-04-17  Loren J. Rittle  <ljrittle@acm.org>
2911
2912         * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
2913         * include/Makefile.am (pch_input): Find in ${target_builddir}.
2914         (pch_output): Rename to...
2915         (pch_output_builddir): ..this.  Find in ${target_builddir}.
2916         (pch_source): Tweak.
2917         (pch_build): Key off a built file.
2918         (pch_output rule): Rename to...
2919         (pch_input rule): ...this.  Produce ${pch_output_builddir}
2920         instead of ${pch_output}.
2921         (install-pch rule): Install ${pch_output_builddir}.
2922         * include/Makefile.in: Regenerated.
2923
2924 2003-04-17  Paolo Carlini  <pcarlini@unitus.it>
2925
2926         * include/std/std_streambuf.h (setp): _M_out_lim, being
2927         the end limit of used put area, is set equal to _M_out_beg.
2928
2929 2003-04-16  Benjamin Kosnik  <bkoz@redhat.com>
2930
2931         * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
2932         * aclocal.m4: Regenerated.
2933         * configure.in: Remove old demangler bits.
2934         Call pch checks.
2935         * configure: Regenerate.
2936         * config.h.in: Regenerate.
2937         * include/Makefile.am (allstamps): Now allstamped.
2938         (allcreated): Define this.
2939         (all-local): Use 'em.
2940         Conditionally define pch_build, pch_install based on
2941         GLIBCPP_BUILD_PCH.
2942         (${pch_output}): New rule.
2943         (install-pch): New rule.
2944         (install-headers): New rule.
2945         (install-data-local): Install headers and conditionally pch.
2946         * include/Makefile.in: Regenerate.
2947         * testsuite_flags.in (--build-cxx): Use pch file.
2948
2949 2003-04-16  Jonathan Wakely  <redi@gcc.gnu.org>
2950
2951         * docs/html/ext/sgiexts.html: Fix path to stylesheet.
2952
2953 2003-04-15  Benjamin Kosnik  <bkoz at redhat dot com>
2954             Paolo Carlini  <pcarlini at unitus dot it>
2955
2956         PR libstdc++/9423
2957         * docs/html/27_io/howto.html
2958         ('The buffering is screwing up my program!'): Explain that
2959         opening counts as an I/O operation.
2960
2961 2003-04-15  Andreas Tobler  <a.tobler@schweiz.ch>
2962
2963         * testsuite/thread/pthread1.cc: Enable for darwin test.
2964         * testsuite/thread/pthread2.cc: Same.
2965         * testsuite/thread/pthread3.cc: Same.
2966         * testsuite/thread/pthread4.cc: Same.
2967         * testsuite/thread/pthread5.cc: Same.
2968         * testsuite/thread/pthread6.cc: Same.
2969
2970 2003-04-15  Loren J. Rittle  <ljrittle@acm.org>
2971
2972         libstdc++/7680
2973         * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
2974         Populate it with multiple legal ways to obtain the C99 float
2975         transcendentals.  Use them instead of direct global reference.
2976         (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
2977         * docs/html/17_intro/porting.texi
2978         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
2979         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
2980         (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
2981         * config/os/bsd/freebsd/os_defines.h
2982         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
2983         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
2984         * testsuite/26_numerics/c_math_dynamic.cc: New file.
2985
2986 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
2987             Benjamin Kosnik  <bkoz@redhat.com>
2988
2989         * config/os/generic/ctype_inline.h: Fix.
2990
2991 2003-04-14  Benjamin Kosnik  <bkoz@redhat.com>
2992
2993         * testsuite/testsuite_hooks.h
2994         (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
2995         Change to try_named_locale.
2996         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
2997
2998         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
2999         try_named_locale.
3000         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
3001         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
3002         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
3003         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
3004         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
3005         * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
3006         * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
3007         * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
3008         * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
3009         * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
3010         * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
3011         * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
3012         * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
3013         * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
3014         * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
3015         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
3016         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
3017         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
3018         * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
3019         * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
3020         * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
3021         * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
3022         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
3023         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
3024         * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
3025         * testsuite/22_locale/collate/compare/char/1.cc: Same.
3026         * testsuite/22_locale/collate/compare/char/2.cc: Same.
3027         * testsuite/22_locale/collate/compare/char/3.cc: Same.
3028         * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
3029         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
3030         * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
3031         * testsuite/22_locale/collate/hash/char/2.cc: Same.
3032         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
3033         * testsuite/22_locale/collate/transform/char/2.cc: Same.
3034         * testsuite/22_locale/collate/transform/char/3.cc: Same.
3035         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
3036         * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
3037         * testsuite/22_locale/collate_byname/1.cc: Same.
3038         * testsuite/22_locale/ctype/is/char/2.cc: Same.
3039         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3040         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
3041         * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
3042         * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
3043         * testsuite/22_locale/facet/2.cc: Same.
3044         * testsuite/22_locale/locale/cons/2.cc: Same.
3045         * testsuite/22_locale/locale/cons/4.cc: Same.
3046         * testsuite/22_locale/locale/cons/5.cc: Same.
3047         * testsuite/22_locale/locale/cons/7.cc: Same.
3048         * testsuite/22_locale/locale/cons/7222-c.cc: Same.
3049         * testsuite/22_locale/locale/cons/7222-env.cc: Same.
3050         * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
3051         * testsuite/22_locale/messages/members/char/1.cc: Same.
3052         * testsuite/22_locale/messages/members/char/2.cc: Same.
3053         * testsuite/22_locale/messages/members/char/3.cc: Same.
3054         * testsuite/22_locale/messages_byname/1.cc: Same.
3055         * testsuite/22_locale/money_get/get/char/1.cc: Same.
3056         * testsuite/22_locale/money_get/get/char/2.cc: Same.
3057         * testsuite/22_locale/money_get/get/char/3.cc: Same.
3058         * testsuite/22_locale/money_get/get/char/4.cc: Same.
3059         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
3060         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
3061         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
3062         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
3063         * testsuite/22_locale/money_put/put/char/1.cc: Same.
3064         * testsuite/22_locale/money_put/put/char/2.cc: Same.
3065         * testsuite/22_locale/money_put/put/char/3.cc: Same.
3066         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
3067         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
3068         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
3069         * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
3070         * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
3071         * testsuite/22_locale/moneypunct_byname/1.cc: Same.
3072         * testsuite/22_locale/num_get/get/char/1.cc: Same.
3073         * testsuite/22_locale/num_get/get/char/2.cc: Same.
3074         * testsuite/22_locale/num_get/get/char/3.cc: Same.
3075         * testsuite/22_locale/num_get/get/char/5.cc: Same.
3076         * testsuite/22_locale/num_get/get/char/6.cc: Same.
3077         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
3078         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
3079         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
3080         * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
3081         * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
3082         * testsuite/22_locale/num_put/put/char/1.cc: Same.
3083         * testsuite/22_locale/num_put/put/char/2.cc: Same.
3084         * testsuite/22_locale/num_put/put/char/3.cc: Same.
3085         * testsuite/22_locale/num_put/put/char/5.cc: Same.
3086         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
3087         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
3088         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
3089         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
3090         * testsuite/22_locale/numpunct/members/char/1.cc: Same.
3091         * testsuite/22_locale/numpunct/members/char/2.cc: Same.
3092         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
3093         * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
3094         * testsuite/22_locale/numpunct_byname/1.cc: Same.
3095         * testsuite/22_locale/numpunct_byname/2.cc: Same.
3096         * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
3097         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
3098         * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
3099         * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
3100         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
3101         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
3102         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
3103         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
3104         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
3105         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
3106         * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
3107         * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
3108         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
3109         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
3110         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
3111         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
3112         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
3113         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
3114         * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
3115         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
3116         * testsuite/22_locale/time_put/put/char/1.cc: Same.
3117         * testsuite/22_locale/time_put/put/char/2.cc: Same.
3118         * testsuite/22_locale/time_put/put/char/3.cc: Same.
3119         * testsuite/22_locale/time_put/put/char/4.cc: Same.
3120         * testsuite/22_locale/time_put/put/char/5.cc: Same.
3121         * testsuite/22_locale/time_put/put/char/6.cc: Same.
3122         * testsuite/22_locale/time_put/put/char/7.cc: Same.
3123         * testsuite/22_locale/time_put/put/char/8.cc: Same.
3124         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
3125         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
3126         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
3127         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
3128         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
3129         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
3130         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
3131         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
3132         * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
3133         * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
3134         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
3135         * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
3136         * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
3137
3138 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
3139
3140         * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
3141         solaris includes, not generic.
3142
3143 2003-04-14  Loren J. Rittle  <ljrittle@acm.org>
3144
3145         * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
3146
3147         * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
3148         * include/bits/concept_check.h: Fix multi-line comment.
3149         * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
3150         when target is *-*-freebsd*.
3151
3152 2003-04-14  Nathan Myers  <ncm@cantrip.org>
3153             Paolo Carlini  <pcarlini@unitus.it>
3154
3155         PR libstdc++/9701 (in_avail())
3156         * include/std/std_streambuf.h (in_avail): Simplify, in_avail
3157         doesn't care if there is anything in some putback cell.
3158         * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
3159
3160         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
3161         unused string literals.
3162
3163 2003-04-14  Paolo Carlini  <pcarlini@unitus.it>
3164
3165         * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
3166         _M_out_end, _M_set_indeterminate() does it.
3167
3168 2003-04-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3169
3170         * os/hpux/ctype_inline.h: Replace with gnu-linux version.
3171
3172 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
3173
3174         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
3175         Change basic_streambuf instantiation to "unsigned char".
3176         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3177
3178 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
3179
3180         Remove _M_buf_size_opt, use directly _M_buf_size instead.
3181         * include/bits/fstream.tcc
3182         (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
3183         references to _M_buf_size_opt.
3184         * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
3185         * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
3186         __bufsize to __in_avail and __size_opt to __buf_size.
3187         * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
3188         * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
3189         * include/std/std_streambuf.h (~basic_streambuf(),
3190         basic_streambuf()): Likewise, remove _M_buf_size_opt member.
3191         * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
3192         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
3193         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
3194         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
3195         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
3196         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
3197         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
3198         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
3199         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
3200         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
3201         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
3202         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
3203
3204 2003-04-12  Paolo Carlini  <pcarlini at unitus dot it>
3205
3206         * include/ext/stdio_filebuf.h
3207         (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
3208         stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
3209         _M_buf_size_opt == 0 only means "not to use an allocated buffer"
3210         since a stack-based buffer is used for small values of the size_t
3211         parameter.
3212         * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
3213         If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
3214         * testsuite/ext/stdio_filebuf_2.cc: New testfile.
3215
3216 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
3217
3218         PR libstdc++/9533
3219         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
3220         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
3221
3222 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
3223
3224         * testsuite/22_locale/locale/cons/3.cc: Split.
3225         * testsuite/22_locale/locale/cons/7222-c.cc: New.
3226         * testsuite/22_locale/locale/cons/7222-env.cc: New.
3227         Check before trying to create a locale from the environment.
3228         * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
3229         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3230         Adjust includes.
3231
3232 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
3233
3234         * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
3235         locale to construct this hybrid locale, not the global locale.
3236
3237 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
3238
3239         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
3240         instantiation for AIX.
3241         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3242         * testsuite/25_algorithms/min_max.cc: Same.
3243
3244 2003-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3245
3246         * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
3247         twice.  Always set _M_cfile to 0 when stream was open.
3248
3249 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
3250
3251         Reshuffle 27_io testsuite.  * testsuite/27_io/filebuf.cc,
3252         filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
3253         filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
3254         filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
3255         filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
3256         ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
3257         ifstream_members.cc, instantiations.cc, ios.cc,
3258         ios_base_callbacks.cc, ios_base_members_static-1.tst,
3259         ios_base_members_static.cc, ios_base_storage.cc,
3260         ios_base_types.cc, ios_ctor.cc, ios_init.cc,
3261         ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
3262         iostream.cc, iostream_members.cc, istream.cc,
3263         istream_exception.cc, istream_extractor_char.cc,
3264         istream_extractor_other-1.tst, istream_extractor_other-1.txt,
3265         istream_extractor_other-2.tst, istream_extractor_other.cc,
3266         istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
3267         istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
3268         istream_sentry.cc, istream_unformatted-1.tst,
3269         istream_unformatted-1.txt, istream_unformatted.cc,
3270         istringstream.cc, istringstream_members.cc,
3271         narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
3272         ofstream_members.cc, ostream.cc, ostream_exception.cc,
3273         ostream_fail.cc, ostream_inserter_arith.cc,
3274         ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
3275         ostream_inserter_char.cc, ostream_inserter_other-1.tst,
3276         ostream_inserter_other-2.tst, ostream_inserter_other.cc,
3277         ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
3278         ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
3279         ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
3280         streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
3281         stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
3282         wide_stream_objects.cc, istream_extractor_arith/01.cc,
3283         istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
3284         istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
3285         istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
3286         istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
3287         istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
3288         Split into...
3289         * 27_io/basic_filebuf/1.cc: New.
3290         * 27_io/basic_filebuf/2.cc: New.
3291         * 27_io/basic_filebuf/3.cc: New.
3292         * 27_io/basic_filebuf/4.cc: New.
3293         * 27_io/basic_filebuf/close/char/1.cc: New.
3294         * 27_io/basic_filebuf/close/char/2.cc: New.
3295         * 27_io/basic_filebuf/close/char/3.cc: New.
3296         * 27_io/basic_filebuf/close/char/4879.cc: New.
3297         * 27_io/basic_filebuf/close/char/9964.cc: New.
3298         * 27_io/basic_filebuf/imbue/char/1.cc: New.
3299         * 27_io/basic_filebuf/imbue/char/9322.cc: New.
3300         * 27_io/basic_filebuf/in_avail/char/1.cc: New.
3301         * 27_io/basic_filebuf/is_open/char/1.cc: New.
3302         * 27_io/basic_filebuf/open/char/1.cc: New.
3303         * 27_io/basic_filebuf/open/char/2.cc: New.
3304         * 27_io/basic_filebuf/open/char/3.cc: New.
3305         * 27_io/basic_filebuf/open/char/9507.cc: New.
3306         * 27_io/basic_filebuf/overflow/char/1.cc: New.
3307         * 27_io/basic_filebuf/overflow/char/3599.cc: New.
3308         * 27_io/basic_filebuf/overflow/char/9169.cc: New.
3309         * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
3310         * 27_io/basic_filebuf/overflow/char/9988.cc: New.
3311         * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
3312         * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
3313         * 27_io/basic_filebuf/seekoff/char/1.cc: New.
3314         * 27_io/basic_filebuf/seekoff/char/2.cc: New.
3315         * 27_io/basic_filebuf/seekpos/char/1.cc: New.
3316         * 27_io/basic_filebuf/seekpos/char/2.cc: New.
3317         * 27_io/basic_filebuf/setbuf/char/1.cc: New.
3318         * 27_io/basic_filebuf/setbuf/char/2.cc: New.
3319         * 27_io/basic_filebuf/setbuf/char/3.cc: New.
3320         * 27_io/basic_filebuf/sgetc/char/1.cc: New.
3321         * 27_io/basic_filebuf/sgetn/char/1.cc: New.
3322         * 27_io/basic_filebuf/sgetn/char/2.cc: New.
3323         * 27_io/basic_filebuf/snextc/char/1.cc: New.
3324         * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
3325         * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
3326         * 27_io/basic_filebuf/sputc/char/1.cc: New.
3327         * 27_io/basic_filebuf/sputc/char/1057.cc: New.
3328         * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
3329         * 27_io/basic_filebuf/sputn/char/1.cc: New.
3330         * 27_io/basic_filebuf/sputn/char/1057.cc: New.
3331         * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
3332         * 27_io/basic_filebuf/sungetc/char/1.cc: New.
3333         * 27_io/basic_filebuf/sync/char/1057.cc: New.
3334         * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
3335         * 27_io/basic_filebuf/underflow/char/10097.cc: New.
3336         * 27_io/basic_fstream/1.cc: New.
3337         * 27_io/basic_fstream/2.cc: New.
3338         * 27_io/basic_fstream/3.cc: New.
3339         * 27_io/basic_fstream/4.cc: New.
3340         * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
3341         * 27_io/basic_ifstream/1.cc: New.
3342         * 27_io/basic_ifstream/2.cc: New.
3343         * 27_io/basic_ifstream/3.cc: New.
3344         * 27_io/basic_ifstream/4.cc: New.
3345         * 27_io/basic_ifstream/cons/char/1.cc: New.
3346         * 27_io/basic_ifstream/open/char/1.cc: New.
3347         * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
3348         * 27_io/basic_ios/1.cc: New.
3349         * 27_io/basic_ios/2.cc: New.
3350         * 27_io/basic_ios/3.cc: New.
3351         * 27_io/basic_ios/4.cc: New.
3352         * 27_io/basic_ios/clear/char/1.cc: New.
3353         * 27_io/basic_ios/cons/char/1.cc: New.
3354         * 27_io/basic_ios/cons/char/2.cc: New.
3355         * 27_io/basic_ios/cons/char/3.cc: New.
3356         * 27_io/basic_ios/copyfmt/char/1.cc: New.
3357         * 27_io/basic_ios/copyfmt/char/2.cc: New.
3358         * 27_io/basic_ios/exceptions/char/1.cc: New.
3359         * 27_io/basic_ios/locales/char/1.cc: New.
3360         * 27_io/basic_iostream/1.cc: New.
3361         * 27_io/basic_iostream/2.cc: New.
3362         * 27_io/basic_iostream/3.cc: New.
3363         * 27_io/basic_iostream/4.cc: New.
3364         * 27_io/basic_istream/1.cc: New.
3365         * 27_io/basic_istream/2.cc: New.
3366         * 27_io/basic_istream/3.cc: New.
3367         * 27_io/basic_istream/4.cc: New.
3368         * 27_io/basic_istream/exceptions/char/9561.cc: New.
3369         * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
3370         * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
3371         * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
3372         * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
3373         * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
3374         * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
3375         * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
3376         * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
3377         * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
3378         * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
3379         * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
3380         * 27_io/basic_istream/extractors_character/char/1.cc: New.
3381         * 27_io/basic_istream/extractors_character/char/2.cc: New.
3382         * 27_io/basic_istream/extractors_character/char/3.cc: New.
3383         * 27_io/basic_istream/extractors_character/char/9826.cc: New.
3384         * 27_io/basic_istream/extractors_other/char/1.cc: New.
3385         * 27_io/basic_istream/extractors_other/char/2.cc: New.
3386         * 27_io/basic_istream/extractors_other/char/3.cc: New.
3387         * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
3388         * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
3389         * 27_io/basic_istream/get/char/1.cc: New.
3390         * 27_io/basic_istream/get/char/2.cc: New.
3391         * 27_io/basic_istream/getline/char/1.cc: New.
3392         * 27_io/basic_istream/getline/char/2.cc: New.
3393         * 27_io/basic_istream/getline/char/3.cc: New.
3394         * 27_io/basic_istream/ignore/char/1.cc: New.
3395         * 27_io/basic_istream/ignore/char/6360.cc: New.
3396         * 27_io/basic_istream/ignore/char/7220.cc: New.
3397         * 27_io/basic_istream/peek/char/1.cc: New.
3398         * 27_io/basic_istream/peek/char/6414.cc: New.
3399         * 27_io/basic_istream/putback/char/1.cc: New.
3400         * 27_io/basic_istream/read/char/1.cc: New.
3401         * 27_io/basic_istream/read/char/2.cc: New.
3402         * 27_io/basic_istream/read/char/3.cc: New.
3403         * 27_io/basic_istream/readsome/char/6746-1.cc: New.
3404         * 27_io/basic_istream/readsome/char/6746-2.cc: New.
3405         * 27_io/basic_istream/readsome/char/8258.cc: New.
3406         * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
3407         * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
3408         * 27_io/basic_istream/seekg/char/8348-1.cc: New.
3409         * 27_io/basic_istream/seekg/char/8348-2.cc: New.
3410         * 27_io/basic_istream/seekg/char/fstream.cc: New.
3411         * 27_io/basic_istream/seekg/char/sstream.cc: New.
3412         * 27_io/basic_istream/sentry/char/1.cc: New.
3413         * 27_io/basic_istream/sentry/char/2.cc: New.
3414         * 27_io/basic_istream/sentry/char/3.cc: New.
3415         * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
3416         * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
3417         * 27_io/basic_istream/tellg/char/1.cc: New.
3418         * 27_io/basic_istream/tellg/char/8348.cc: New.
3419         * 27_io/basic_istream/tellg/char/fstream.cc: New.
3420         * 27_io/basic_istream/tellg/char/sstream.cc: New.
3421         * 27_io/basic_istream/ws/char/1.cc: New.
3422         * 27_io/basic_istringstream/1.cc: New.
3423         * 27_io/basic_istringstream/2.cc: New.
3424         * 27_io/basic_istringstream/3.cc: New.
3425         * 27_io/basic_istringstream/4.cc: New.
3426         * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
3427         * 27_io/basic_istringstream/str/char/1.cc: New.
3428         * 27_io/basic_ofstream/1.cc: New.
3429         * 27_io/basic_ofstream/2.cc: New.
3430         * 27_io/basic_ofstream/3.cc: New.
3431         * 27_io/basic_ofstream/4.cc: New.
3432         * 27_io/basic_ofstream/cons/char/2.cc: New.
3433         * 27_io/basic_ofstream/open/char/1.cc: New.
3434         * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
3435         * 27_io/basic_ostream/1.cc: New.
3436         * 27_io/basic_ostream/2.cc: New.
3437         * 27_io/basic_ostream/3.cc: New.
3438         * 27_io/basic_ostream/4.cc: New.
3439         * 27_io/basic_ostream/cons/char/9827.cc: New.
3440         * 27_io/basic_ostream/endl/char/1.cc: New.
3441         * 27_io/basic_ostream/ends/char/1.cc: New.
3442         * 27_io/basic_ostream/ends/char/2.cc: New.
3443         * 27_io/basic_ostream/exceptions/char/9561.cc: New.
3444         * 27_io/basic_ostream/flush/char/1.cc: New.
3445         * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
3446         * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
3447         * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
3448         * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
3449         * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
3450         * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
3451         * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
3452         * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
3453         * 27_io/basic_ostream/inserters_character/char/1.cc: New.
3454         * 27_io/basic_ostream/inserters_character/char/2.cc: New.
3455         * 27_io/basic_ostream/inserters_character/char/3.cc: New.
3456         * 27_io/basic_ostream/inserters_character/char/4.cc: New.
3457         * 27_io/basic_ostream/inserters_character/char/5.cc: New.
3458         * 27_io/basic_ostream/inserters_character/char/6.cc: New.
3459         * 27_io/basic_ostream/inserters_character/char/8.cc: New.
3460         * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
3461         * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
3462         * 27_io/basic_ostream/inserters_other/char/1.cc: New.
3463         * 27_io/basic_ostream/inserters_other/char/2.cc: New.
3464         * 27_io/basic_ostream/inserters_other/char/3.cc: New.
3465         * 27_io/basic_ostream/inserters_other/char/4.cc: New.
3466         * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
3467         * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
3468         * 27_io/basic_ostream/sentry/char/1.cc: New.
3469         * 27_io/basic_ostream/sentry/char/2.cc: New.
3470         * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
3471         * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
3472         * 27_io/basic_ostream/tellp/char/1.cc: New.
3473         * 27_io/basic_ostream/tellp/char/2.cc: New.
3474         * 27_io/basic_ostringstream/1.cc: New.
3475         * 27_io/basic_ostringstream/2.cc: New.
3476         * 27_io/basic_ostringstream/3.cc: New.
3477         * 27_io/basic_ostringstream/4.cc: New.
3478         * 27_io/basic_ostringstream/cons/char/3.cc: New.
3479         * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
3480         * 27_io/basic_ostringstream/str/char/1.cc: New.
3481         * 27_io/basic_ostringstream/str/char/2.cc: New.
3482         * 27_io/basic_streambuf/1.cc: New.
3483         * 27_io/basic_streambuf/2.cc: New.
3484         * 27_io/basic_streambuf/3.cc: New.
3485         * 27_io/basic_streambuf/cons/char/1.cc: New.
3486         * 27_io/basic_streambuf/imbue/char/1.cc: New.
3487         * 27_io/basic_streambuf/imbue/char/9322.cc: New.
3488         * 27_io/basic_streambuf/overflow/char/1.cc: New.
3489         * 27_io/basic_streambuf/overflow/char/2.cc: New.
3490         * 27_io/basic_streambuf/overflow/char/3599.cc: New.
3491         * 27_io/basic_streambuf/sgetc/char/1.cc: New.
3492         * 27_io/basic_streambuf/sgetn/char/1.cc: New.
3493         * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
3494         * 27_io/basic_streambuf/sputc/char/1057.cc: New.
3495         * 27_io/basic_streambuf/sputn/char/1.cc: New.
3496         * 27_io/basic_streambuf/sputn/char/1057.cc: New.
3497         * 27_io/basic_streambuf/sync/char/1057.cc: New.
3498         * 27_io/basic_stringbuf/1.cc: New.
3499         * 27_io/basic_stringbuf/2.cc: New.
3500         * 27_io/basic_stringbuf/3.cc: New.
3501         * 27_io/basic_stringbuf/4.cc: New.
3502         * 27_io/basic_stringbuf/5.cc: New.
3503         * 27_io/basic_stringbuf/imbue/char/1.cc: New.
3504         * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
3505         * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
3506         * 27_io/basic_stringbuf/overflow/char/2.cc: New.
3507         * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
3508         * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
3509         * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
3510         * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
3511         * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
3512         * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
3513         * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
3514         * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
3515         * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
3516         * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
3517         * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
3518         * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
3519         * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
3520         * 27_io/basic_stringbuf/snextc/char/1.cc: New.
3521         * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
3522         * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
3523         * 27_io/basic_stringbuf/sputc/char/1.cc: New.
3524         * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
3525         * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
3526         * 27_io/basic_stringbuf/sputn/char/1.cc: New.
3527         * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
3528         * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
3529         * 27_io/basic_stringbuf/str/char/1.cc: New.
3530         * 27_io/basic_stringbuf/str/char/2.cc: New.
3531         * 27_io/basic_stringbuf/str/char/3.cc: New.
3532         * 27_io/basic_stringbuf/str/char/3955.cc: New.
3533         * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
3534         * 27_io/basic_stringbuf/sync/char/1057.cc: New.
3535         * 27_io/basic_stringstream/1.cc: New.
3536         * 27_io/basic_stringstream/2.cc: New.
3537         * 27_io/basic_stringstream/3.cc: New.
3538         * 27_io/basic_stringstream/4.cc: New.
3539         * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
3540         * 27_io/basic_stringstream/str/char/1.cc: New.
3541         * 27_io/basic_stringstream/str/char/2.cc: New.
3542         * 27_io/basic_stringstream/str/char/3.cc: New.
3543         * 27_io/basic_stringstream/str/char/4.cc: New.
3544         * 27_io/fpos/1.cc: New.
3545         * 27_io/fpos/2.cc: New.
3546         * 27_io/fpos/3.cc: New.
3547         * 27_io/ios_base/callbacks/1.cc: New.
3548         * 27_io/ios_base/state/1.cc: New.
3549         * 27_io/ios_base/storage/1.cc: New.
3550         * 27_io/ios_base/storage/2.cc: New.
3551         * 27_io/ios_base/storage/3.cc: New.
3552         * 27_io/ios_base/sync_with_stdio/1.cc: New.
3553         * 27_io/ios_base/sync_with_stdio/2.cc: New.
3554         * 27_io/manipulators/adjustfield/char/1.cc: New.
3555         * 27_io/manipulators/adjustfield/char/2.cc: New.
3556         * 27_io/manipulators/basefield/char/1.cc: New.
3557         * 27_io/manipulators/standard/char/1.cc: New.
3558         * 27_io/manipulators/standard/char/2.cc: New.
3559         * 27_io/objects/char/1.cc: New.
3560         * 27_io/objects/char/2.cc: New.
3561         * 27_io/objects/char/2523-1_xin.cc: New.
3562         * 27_io/objects/char/2523-1_xin.in: New.
3563         * 27_io/objects/char/2523-2_xin.cc: New.
3564         * 27_io/objects/char/2523-2_xin.in: New.
3565         * 27_io/objects/char/3045.cc: New.
3566         * 27_io/objects/char/3647.cc: New.
3567         * 27_io/objects/char/3_xin.cc: New.
3568         * 27_io/objects/char/3_xin.in: New.
3569         * 27_io/objects/char/4_xin.cc: New.
3570         * 27_io/objects/char/4_xin.in: New.
3571         * 27_io/objects/char/5268.cc: New.
3572         * 27_io/objects/char/5280_xin.cc: New.
3573         * 27_io/objects/char/5280_xin.in: New.
3574         * 27_io/objects/char/6548_xin.cc: New.
3575         * 27_io/objects/char/6548_xin.in: New.
3576         * 27_io/objects/char/6648-1_xin.cc: New.
3577         * 27_io/objects/char/6648-1_xin.in: New.
3578         * 27_io/objects/char/6648-2_xin.cc: New.
3579         * 27_io/objects/char/6648-2_xin.in: New.
3580         * 27_io/objects/char/7744_xin.cc: New.
3581         * 27_io/objects/char/7744_xin.in: New.
3582         * 27_io/objects/wchar_t/1.cc: New.
3583         * 27_io/types/1.cc: New.
3584         * 27_io/types/2.cc: New.
3585         * data/filebuf_members-1.tst: New.
3586         * data/filebuf_members-1.txt: New.
3587         * data/filebuf_virtuals-1.tst: New.
3588         * data/filebuf_virtuals-1.txt: New.
3589         * data/filebuf_virtuals-2.tst: New.
3590         * data/filebuf_virtuals-3.tst: New.
3591         * data/ifstream_members-1.tst: New.
3592         * data/ifstream_members-1.txt: New.
3593         * data/ios_base_members_static-1.tst: New.
3594         * data/istream_extractor_other-1.tst: New.
3595         * data/istream_extractor_other-1.txt: New.
3596         * data/istream_extractor_other-2.tst: New.
3597         * data/istream_seeks-1.tst: New.
3598         * data/istream_seeks-1.txt: New.
3599         * data/istream_seeks-2.tst: New.
3600         * data/istream_seeks-3.tst: New.
3601         * data/istream_unformatted-1.tst: New.
3602         * data/istream_unformatted-1.txt: New.
3603         * data/ofstream_members-1.tst: New.
3604         * data/ostream_inserter_char-1.tst: New.
3605         * data/ostream_inserter_char-1.txt: New.
3606         * data/ostream_inserter_other-1.tst: New.
3607         * data/ostream_inserter_other-2.tst: New.
3608         * data/ostream_seeks-1.tst: New.
3609
3610 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
3611
3612         * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
3613         requirement that __mode must be strict input or output.
3614
3615         * include/std/std_streambuf.h (basic_streambuf::setp): Set
3616         _M_out_lim.
3617
3618         * include/std/std_sstream.h (basic_strinbuf::str): Zero length
3619         output string shouldn't core.
3620         (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
3621         type.
3622         * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
3623
3624         * include/bits/istream.tcc (basic_istream::putback): Set gcount to
3625         zero.
3626
3627 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
3628
3629         * testsuite/data: New directory.
3630         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
3631         to copy files from the testsuite data directory.
3632         (libstdc++-v3-list-sourcefiles): Add another test list filter, for
3633         testfiles containing _xin, which now means this is an interactive
3634         test and should be run with the interactive dejagnu hooks.
3635         * testsuite/Makefile.am: Remove testsuite_* files.
3636         * testsuite/Makefile.in: Regenerate.
3637
3638 2003-04-09  Zack Weinberg  <zack@codesourcery.com>
3639
3640         * docs/html/install.html: Document complete list of locales
3641         required by test suite.  Document procedure for installing
3642         said locales under Debian.  Solicit instructions for other
3643         operating systems.
3644
3645 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
3646
3647         * include/bits/sstream.tcc (overflow): Make sure operands of min
3648         and max have the same type.
3649
3650 2003-04-04  Jerry Quinn  <jlquinn@optonline.net>
3651
3652         PR libstdc++/10276
3653         * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
3654         initialization.
3655
3656 2003-03-31  Paolo Carlini  <pcarlini@unitus.it>
3657
3658         * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
3659         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
3660         Don't set _M_out_end.
3661         (basic_filebuf::overflow): Replace _M_out_buf_size() with
3662         this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
3663         * include/bits/sstream.tcc (basic_stringbuf::overflow):
3664         Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
3665         * include/bits/streambuf.tcc (basic_streambuf::sputc):
3666         Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
3667         (basic_streambuf::xsputn): Replace _M_out_buf_size() with
3668         _M_out_end - _M_out_cur.
3669         (__copy_streambufs): Likewise.
3670         * include/std/std_fstream.h (_M_set_determinate): Set
3671         _M_out_end here.
3672
3673 2003-03-30  Paolo Carlini  <pcarlini@unitus.it>
3674
3675         * include/bits/fstream.tcc (basic_filebuf::showmanyc,
3676         _M_convert_to_external, _M_really_overflow, seekoff): Fix
3677         test for synced buffer.
3678         * include/std/std_fstream.h (sync): Likewise.
3679         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
3680         basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
3681
3682 2003-03-28  Benjamin Kosnik  <bkoz@redhat.com>
3683
3684         * include/std/std_sstream.h (basic_istringstream): Adjust
3685         initialization.
3686         (basic_ostringstream): Same.
3687         (basic_stringstream): Same.
3688         * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
3689         (basic_ofstream): Same.
3690         (basic_fstream): Same.
3691         * include/std/std_ostream.h (basic_ostrem): Add protected ctor
3692         that does not call init.
3693         * include/std/std_istream.h (basic_istream): Same.
3694         (basic_iostream): Construct istream, ostream uninitialized, use
3695         init to initialize just once. Add protected ctor that does not
3696         call init.
3697
3698 2003-03-28  Paolo Carlini  <pcarlini@unitus.it>
3699             Nathan Myers  <ncm@cantrip.org>
3700
3701         PR libstdc++/9533
3702         * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
3703         call underflow().
3704         (basic_filebuf<>::showmanyc): Use the information provided
3705         by codecvt and __basic_file<>::showmanyc_helper to implement
3706         a non-trivial showmanyc.
3707         * config/io/basic_file_stdio.h
3708         (__basic_file<>::showmanyc_helper): New, declare.
3709         * config/io/basic_file_stdio.cc
3710         (__basic_file<>::showmanyc_helper): Define.
3711         (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
3712         (__basic_file<char>::open): Don't call fcntl().
3713         * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
3714         GLIBCPP_CHECK_POLL): New macros.
3715         * configure.in: Call here.
3716         * acconfig.h: Add #undefs for the corresponding symbols.
3717         * aclocal.m4: Regenerate.
3718         * configure: Regenerate.
3719         * config.h.in: Regenerate.
3720
3721 2003-03-24  Benjamin Kosnik  <bkoz@redhat.com>
3722
3723         * config/linker-map.gnu: Remove string export restrictions.
3724
3725 2003-03-24  Paolo Carlini  <pcarlini@unitus.it>
3726
3727         * testsuite/21_strings/basic_string/find/char/1.cc: Remove
3728         find_first_of, find_last_of and find_last_not_of tests.
3729         * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
3730         tests here, new file.
3731         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
3732         remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
3733         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
3734         wchar_t find_first_of tests here, new file.
3735         * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
3736         tests here.
3737         * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
3738         tests here.
3739         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
3740         wchar_t find_last_of tests here.
3741         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
3742         wchar_t find_last_not_of tests here.
3743
3744 2003-03-22  Loren J. Rittle  <ljrittle@acm.org>
3745
3746         * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
3747         Correct return value.
3748
3749 2003-03-21  Jerry Quinn  <jlquinn@optonline.net>
3750
3751         PR libstdc++/5730
3752         * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
3753         * include/std/std_complex.h (norm):  Use faster,
3754         less accurate computation for builtin float types under --fast-math.
3755
3756 2003-03-21  Magnus Fromreide  <gnats@magfr.user.lysator.liu.se>
3757
3758         * testsuite/testsuite_hooks.h: Fix warning nits.
3759
3760 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
3761
3762         * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
3763         Only .set mips2 for the o32 ABI.
3764
3765 2003-03-19  Paolo Carlini  <pcarlini@unitus.it>
3766
3767         * testsuite/21_strings/char_traits/requirements/char/1.cc:
3768         Test char not wchar_t.
3769
3770 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
3771
3772         * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
3773         Correct size, taking into account sizeof(wchar_t).
3774
3775 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
3776
3777         Reshuffle 21_strings testsuite.
3778         * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
3779         assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
3780         element_access.cc, operations.cc, char_traits_requirements.cc,
3781         find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
3782         compare.cc, inserters_extractors.cc, substr.cc: Split up, add
3783         wchar_t tests as follows.
3784         * 21_strings/basic_string/append/char/1.cc: New.
3785         * 21_strings/basic_string/append/wchar_t/1.cc: New.
3786         * 21_strings/basic_string/assign/char/1.cc: New.
3787         * 21_strings/basic_string/assign/char/2.cc: New.
3788         * 21_strings/basic_string/assign/char/3.cc: New.
3789         * 21_strings/basic_string/assign/wchar_t/1.cc: New.
3790         * 21_strings/basic_string/assign/wchar_t/2.cc: New.
3791         * 21_strings/basic_string/assign/wchar_t/3.cc: New.
3792         * 21_strings/basic_string/capacity/1.cc: New.
3793         * 21_strings/basic_string/capacity/char/1.cc: New.
3794         * 21_strings/basic_string/capacity/char/2.cc: New.
3795         * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
3796         * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
3797         * 21_strings/basic_string/compare/char/1.cc: New.
3798         * 21_strings/basic_string/compare/wchar_t/1.cc: New.
3799         * 21_strings/basic_string/cons/char/1.cc: New.
3800         * 21_strings/basic_string/cons/char/2.cc: New.
3801         * 21_strings/basic_string/cons/char/3.cc: New.
3802         * 21_strings/basic_string/cons/char/4.cc: New.
3803         * 21_strings/basic_string/cons/char/5.cc: New.
3804         * 21_strings/basic_string/cons/wchar_t/1.cc: New.
3805         * 21_strings/basic_string/cons/wchar_t/2.cc: New.
3806         * 21_strings/basic_string/cons/wchar_t/3.cc: New.
3807         * 21_strings/basic_string/cons/wchar_t/4.cc: New.
3808         * 21_strings/basic_string/cons/wchar_t/5.cc: New.
3809         * 21_strings/basic_string/element_access/char/1.cc: New.
3810         * 21_strings/basic_string/element_access/char/2.cc: New.
3811         * 21_strings/basic_string/element_access/char/3.cc: New.
3812         * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
3813         * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
3814         * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
3815         * 21_strings/basic_string/find/char/1.cc: New.
3816         * 21_strings/basic_string/find/wchar_t/1.cc: New.
3817         * 21_strings/basic_string/insert/char/1.cc: New.
3818         * 21_strings/basic_string/insert/char/2.cc: New.
3819         * 21_strings/basic_string/insert/wchar_t/1.cc: New.
3820         * 21_strings/basic_string/insert/wchar_t/2.cc: New.
3821         * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
3822         * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
3823         * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
3824         * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
3825         * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
3826         * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
3827         * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
3828         * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
3829         * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
3830         * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
3831         * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
3832         * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
3833         * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
3834         * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
3835         * 21_strings/basic_string/operators/char/1.cc: New.
3836         * 21_strings/basic_string/operators/char/2.cc: New.
3837         * 21_strings/basic_string/operators/wchar_t/1.cc: New.
3838         * 21_strings/basic_string/operators/wchar_t/2.cc: New.
3839         * 21_strings/basic_string/replace/char/1.cc: New.
3840         * 21_strings/basic_string/replace/char/2.cc: New.
3841         * 21_strings/basic_string/replace/char/3.cc: New.
3842         * 21_strings/basic_string/replace/char/4.cc: New.
3843         * 21_strings/basic_string/replace/char/5.cc: New.
3844         * 21_strings/basic_string/replace/wchar_t/1.cc: New.
3845         * 21_strings/basic_string/replace/wchar_t/2.cc: New.
3846         * 21_strings/basic_string/replace/wchar_t/3.cc: New.
3847         * 21_strings/basic_string/replace/wchar_t/4.cc: New.
3848         * 21_strings/basic_string/replace/wchar_t/5.cc: New.
3849         * 21_strings/basic_string/rfind/char/1.cc: New.
3850         * 21_strings/basic_string/rfind/char/2.cc: New.
3851         * 21_strings/basic_string/rfind/char/3.cc: New.
3852         * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
3853         * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
3854         * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
3855         * 21_strings/basic_string/substr/char/1.cc: New.
3856         * 21_strings/basic_string/substr/wchar_t/1.cc: New.
3857         * 21_strings/c_strings/char/1.cc: New.
3858         * 21_strings/c_strings/char/2.cc: New.
3859         * 21_strings/c_strings/wchar_t/1.cc: New.
3860         * 21_strings/c_strings/wchar_t/2.cc: New.
3861         * 21_strings/char_traits/requirements/char/1.cc: New.
3862         * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
3863         * 21_strings/char_traits/typedefs/char/1.cc: New.
3864
3865 2003-03-17  Paolo Carlini  <pcarlini@unitus.it>
3866             Petur Runolfsson  <peturr02@ru.is>
3867
3868         PR libstdc++/10097
3869         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
3870         basic_filebuf<wchar_t>::_M_underflow_common):
3871         if (gptr() < egptr()) return *gptr().
3872         * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
3873
3874         * testsuite/27_io/filebuf_members.cc (test_04): Minor
3875         changes: unlink fifo before making it, fix spelling error.
3876
3877 2003-03-17  Benjamin Kosnik  <bkoz@redhat.com>
3878
3879         * testsuite/Makefile.am (CLEANFILES): Add tmp*.
3880         * testsuite/Makefile.in: Regenerate.
3881         * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
3882         Cleanups.
3883
3884 2003-03-17  Petur Runolfsson  <peturr02@ru.is>
3885
3886         PR libstdc++/9964
3887         * include/bits/fstream.tcc (basic_filebuf::close):
3888         Always close file, even when write fails.
3889         * testsuite/27_io/filebuf_members.cc (test_07):  New test.
3890
3891 2003-03-17  Danny Smith  <dannysmith@users.sourceforge.net>
3892
3893         * libsupc++/Makefile.am (C_COMPILE): Remove.
3894         (LTCOMPILE): Likewise.
3895         * libsupc++/Makefile.in: Regenerate.
3896
3897 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
3898
3899         * testsuite/23_containers/bitset_members.cc: Add test variable.
3900         * testsuite/23_containers/map_insert.cc: Same.
3901         * testsuite/22_locale/ctype/cons/char/1.cc: Same.
3902         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
3903         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
3904         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
3905         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
3906         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
3907         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
3908         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
3909         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
3910         * testsuite/27_io/istream_exception.cc: Same.
3911         * testsuite/27_io/filebuf_virtuals.cc: Same.
3912         * testsuite/27_io/stringbuf_virtuals.cc: Same.
3913         * testsuite/27_io/ostream_inserter_arith.cc: Same.
3914         * testsuite/26_numerics/valarray_operators.cc: Same.
3915         * testsuite/26_numerics/slice.cc: Same.
3916         * testsuite/26_numerics/slice_array_assignment.cc: Same.
3917         * testsuite/24_iterators/istream_iterator.cc: Same.
3918         * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
3919
3920 2003-03-14  Petur Runolfsson  <peturr02@ru.is>
3921
3922         PR libstdc++/9581
3923         PR libstdc++/9870
3924         * config/locale/generic/ctype_members.cc,
3925         * config/locale/gnu/ctype_members.cc
3926         (ctype<wchar_t>::do_widen(char)):  Cast argument to
3927         unsigned char before passing to btowc.
3928         (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
3929         Convert characters with btowc instead of mbsrtowcs.
3930         (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
3931         char, char*):
3932         Convert characters with wctob instead of wcsrtombs.
3933         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc:  New test.
3934         * testsuite/22_locale/ctype/widen/wchar_t/2.cc:  New test.
3935         * testsuite/22_locale/ctype/widen/wchar_t/3.cc:  New test.
3936
3937 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
3938
3939         * include/stdc++.h: New.
3940         * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
3941         * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
3942         * include/Makefile.in: Regenerate.
3943         * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
3944         (--cxxflags): Put -g -O2 here.
3945         * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
3946
3947 2003-03-14  Loren J. Rittle  <ljrittle@acm.org>
3948
3949         * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
3950         missing named locale.
3951
3952 2003-03-14  Andreas Schwab  <schwab@suse.de>
3953
3954         * configure.in: Only append to makefiles that are newly created to
3955         avoid multiple multi-do/multi-clean rules.
3956         * configure: Rebuilt.
3957
3958 2003-03-13  Jonathan Wakely  <redi@gcc.gnu.org>
3959
3960         * docs/html/configopts.html, docs/html/documentation.html,
3961         docs/html/explanations.html, docs/html/install.html,
3962         docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
3963         invalid XHTML and make page header style consistent.
3964
3965 2003-03-12  Jonathan Wakely  <redi@gcc.gnu.org>
3966
3967         * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
3968         * docs/html/faq/index.txt: Regenerate.
3969         * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
3970
3971 2003-03-12  Andreas Schwab  <schwab@suse.de>
3972
3973         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
3974         glibcpp_toolexeclibdir.
3975         * aclocal.m4, configure: Rebuilt.
3976
3977 2003-03-11  Jonathan Wakely  <redi@gcc.gnu.org>
3978
3979         * docs/html/faq/index.html: Update text about location of headers.
3980         * docs/html/faq/index.txt: Regenerate.
3981
3982 2003-03-11  Carlo Wood  <carlo@alinoe.com>
3983
3984         * include/bits/demangle.h: Prepend accessors of
3985         class qualifier with 'get_' in order to fix warnings
3986         when compiling with -Wshadow.
3987
3988 2003-03-11  Loren J. Rittle  <ljrittle@acm.org>
3989
3990         * config/os/bsd/freebsd/ctype_inline.h:  Support _M_table
3991         when so installed.
3992         * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
3993
3994         * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
3995         report lack of setenv().
3996
3997 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
3998
3999         * config/io/basic_file_stdio.cc: include <unistd.h>.
4000
4001 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
4002             Nathan Myers  <ncm@cantrip.org>
4003
4004         PR libstdc++/7744
4005         * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
4006         seekoff, seekpos): Add a boolean parameter __stdio.
4007         * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
4008         seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
4009         fseek/ftell, respectively), otherwise read (write, lseek, lseek,
4010         respectively).
4011         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
4012         _M_really_overflow, seekoff): Use the boolean parameter in the calls.
4013         * include/std/std_fstream.h (sync): Likewise.
4014         * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
4015         * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
4016         libstdc++/8399 commit involving isatty(0).
4017         * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
4018         (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
4019         * configure.in: Remove call.
4020         * aclocal.m4: Regenerate.
4021         * config.h.in: Regenerate.
4022         * configure: Regenerate.
4023         * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
4024
4025 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
4026
4027         PR libstdc++/9988
4028         * include/bits/fstream.tcc (overflow): don't write EOF to file.
4029         * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
4030
4031 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
4032
4033         PR libstdc++/9561
4034         * include/bits/basic_ios.h (_M_setstate): New.
4035         * include/bits/ostream.tcc (operator<<): Use it.
4036         * include/bits/istream.tcc (operator>>): Use it.
4037         * include/std/std_ostream.h (operator<<): Make friends.
4038         * include/std/std_istream.h (operator>>): Make friends.
4039         * testsuite/27_io/ostream_exception.cc,
4040         testsuite/27_io/istream_exception.cc: New tests.
4041
4042 2003-03-08  Benjamin Kosnik  <bkoz@redhat.com>
4043
4044         * include/bits/locale_facets.tcc: Fix typo.
4045
4046 2003-03-08  Loren J. Rittle  <ljrittle@acm.org>
4047
4048         * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
4049
4050         * config/locale/generic/c_locale.cc
4051         (locale::facet::_S_create_c_locale): Throw runtime exception when
4052         unsupported language is specified.
4053         * testsuite/testsuite_hooks.h
4054         (run_test_wrapped_generic_locale_exception_catcher): New function.
4055         * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
4056         Suppress runtime exception thrown by generic implementation.
4057         (run_tests_wrapped_env): Likewise.
4058         (run_test_wrapped_generic_locale_exception_catcher): New function.
4059         * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
4060         * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
4061         * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
4062         * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
4063         * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
4064         * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
4065         * testsuite/22_locale/collate_byname/1.cc: New test wrap.
4066         * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
4067         * testsuite/22_locale/facet/2.cc: New test wrap.
4068         * testsuite/22_locale/locale/cons/4.cc: New test wrap.
4069         * testsuite/22_locale/locale/cons/5.cc: New test wrap.
4070         * testsuite/22_locale/locale/cons/7.cc: New test wrap.
4071         * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
4072         * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
4073         * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
4074         * testsuite/22_locale/messages_byname/1.cc: New test wrap.
4075         * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
4076         * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
4077         * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
4078         * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
4079         * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
4080         * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
4081         * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
4082         * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
4083         * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
4084         * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
4085         * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
4086         * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
4087         * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
4088         * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
4089         * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
4090         * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
4091         * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
4092         * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
4093         * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
4094         * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
4095         * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
4096         * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
4097         * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
4098         * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
4099         * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
4100         * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
4101         * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
4102         * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
4103         * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
4104         * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
4105         * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
4106         * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
4107         * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
4108         * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
4109         * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
4110         * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
4111         * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
4112         * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
4113         * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
4114         * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
4115         * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
4116         * testsuite/27_io/ios_members.cc: New test wrap.
4117         * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
4118         New test wrap.
4119         * testsuite/27_io/streambuf_members.cc: New test wrap.
4120         * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
4121
4122 2003-03-08  Paolo Carlini <pcarlini@unitus.it>
4123             Petur Runolfsson  <peturr02@ru.is>
4124
4125         PR libstdc++/9424
4126         * include/bits/streambuf.tcc (__copy_streambufs): Use
4127         sgetn-sputn only when sputn cannot fail, otherwise fall back
4128         to safe snextc-sputc.
4129         * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
4130
4131 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
4132
4133         * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
4134         locale cache for truename and falsename.
4135
4136 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
4137
4138         * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
4139         _M_word_size initialization.
4140
4141 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
4142
4143         * include/bits/fstream.tcc (_M_convert_to_external):
4144         Set __elen to zero if codecvt::out eventually fails.
4145
4146 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
4147
4148         PR libstdc++/9182
4149         * include/bits/fstream.tcc (_M_really_overflow): Check
4150         for _M_convert_to_external possible failures.
4151         * include/std/std_fstream.h (sync): Check _M_really_overflow
4152         return value and return -1 in case of failure.
4153         * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
4154
4155 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
4156
4157         PR libstdc++/9826
4158         * include/bits/istream.tcc (operator>>(_CharT*),
4159         operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
4160         * testsuite/27_io/stringstream.cc (test02): Add.
4161
4162         * include/bits/istream.tcc (operator>>(_CharT*)):
4163         Assign a char_type to *__s.
4164
4165 2003-03-07  Petur Runolfsson  <peturr02@ru.is>
4166
4167         PR libstdc++/9817
4168         * include/bits/locale_facets.tcc
4169         (collate::do_compare, collate::do_transform):
4170         Handle nul characters in input.
4171         * testsuite/22_locale/collate/compare/char/3.cc:  New test.
4172         * testsuite/22_locale/collate/compare/wchar_t/3.cc:  New test.
4173         * testsuite/22_locale/collate/transform/char/3.cc:  New test.
4174         * testsuite/22_locale/collate/transform/wchar_t/3.cc:  New test.
4175
4176 2003-03-07  Jerry Quinn  <jlquinn@optonline.net>
4177
4178         * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
4179         sputn fails.
4180         * testsuite/27_io/ostream_fail.cc: New test.
4181
4182 2003-03-07  Matthias Klose  <doko@debian.org>
4183
4184         * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
4185         FLAGS_TO_PASS: Set to AM_MAKEFLAGS
4186         * Makefile.in: Regenerate.
4187         * libsupc++/Makefile.am: Express glibcppinstalldir in terms
4188         of gxx_include_dir.
4189         AM_MAKEFLAGS: Pass gxx_include_dir.
4190         * libsupc++/Makefile.in: Regenerate.
4191
4192 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
4193
4194         * testsuite/27_io/ios_base_storage.cc (test02): Set exception
4195         mask.  Test setting small-numbered pword and iword slots.  Test
4196         behavior at limit of numeric_limits::max.  Check that values are
4197         still good after failures.
4198
4199 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
4200
4201         * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
4202         (ios_base::ios_base): Set _M_word, _M_word_size.
4203         (ios_base::~ios_base): Remove redundant test.
4204         * testsuite/27_io/ios_base_storage.cc (test03): New.
4205
4206 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
4207
4208         * src/strstream.cc, include/bits/basic_string.tcc: Remove
4209         incorrect whitespace added in my previous change.
4210
4211 2003-03-05  Carlo Wood  <carlo@alinoe.com>
4212
4213         * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
4214         _S_initialized() in order to allow debugging libraries to detect
4215         when the std streams are initialized from an overloaded operator
4216         new.
4217
4218 2003-03-05  Benjamin Kosnik  <bkoz@redhat.com>
4219
4220         * libsupc++/demangle.h: Move to..
4221         * include/bits/demangle.h: ...here.
4222         * src/demangle.cc: Adjust include.
4223         * include/Makefile.am (bits_headers): Add.
4224         * include/Makefile.in: Regenerate.
4225
4226 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
4227
4228         * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
4229
4230         * config/linker-map.gnu: Filter typeinfo and vtable info.
4231
4232 2003-03-04  Jerry Quinn  <jlquinn@optonline.net>
4233
4234         * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
4235         new failure.  Throw exception if badbit and exception mask when ix
4236         >= numeric_limits<int>::max().
4237
4238 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
4239
4240         * src/strstream.cc (strstreambuf::overflow): Make sure operands of
4241         min and max have the same type.
4242         * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
4243
4244 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
4245
4246         * include/Makefile.am (allstamps): Remove stamp-std-precompile.
4247         * include/Makefile.in: Regenerate.
4248
4249 2003-03-03  Benjamin Kosnik  <bkoz@redhat.com>
4250
4251         * testsuite/abi_check.cc (report_symbol_info): Add version info.
4252
4253         * config/linker-map.gnu: Hide more stuff.
4254         * include/Makefile.am: Cleanups.
4255         * include/Makefile.in: Regenerate.
4256
4257 2003-02-27  Jerry Quinn  <jlquinn@optonline.net>
4258
4259         * config/locale/generic/messages_members.h (messages::messages):
4260         Remove name from unused parameter.
4261
4262 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
4263
4264         * src/Makefile.am (sources): Add demangle.cc.
4265         (demangle.o): Add.
4266         (demangle.lo): Add.
4267         * src/Makefile.in: Regenerate.
4268         * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
4269         * libsupc++/Makefile.in: Regenerate.
4270
4271         * testsuite/testsuite_hooks.h
4272         (__gnu_cxx_test::verify_demangle): New.
4273         * testsuite/testsuite_hooks.cc: Define.
4274
4275 2003-02-27  Carlo Wood  <carlo@alinoe.com>
4276
4277         * src/demangle.cc: New.
4278         * libsupc++/demangle.h: New.
4279
4280 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
4281             Carlo Wood  <carlo@alinoe.com>
4282
4283         * testsuite/demangle/abi_examples/01.cc: New.
4284         * testsuite/demangle/abi_examples/02.cc: New.
4285         * testsuite/demangle/abi_examples/03.cc: New.
4286         * testsuite/demangle/abi_examples/04.cc: New.
4287         * testsuite/demangle/abi_examples/05.cc: New.
4288         * testsuite/demangle/abi_examples/06.cc: New.
4289         * testsuite/demangle/abi_examples/07.cc: New.
4290         * testsuite/demangle/abi_examples/08.cc: New.
4291         * testsuite/demangle/abi_examples/09.cc: New.
4292         * testsuite/demangle/abi_examples/10.cc: New.
4293         * testsuite/demangle/abi_examples/11.cc: New.
4294         * testsuite/demangle/abi_examples/12.cc: New.
4295         * testsuite/demangle/abi_examples/13.cc: New.
4296         * testsuite/demangle/abi_examples/14.cc: New.
4297         * testsuite/demangle/abi_examples/15.cc: New.
4298         * testsuite/demangle/abi_examples/16.cc: New.
4299         * testsuite/demangle/abi_examples/17.cc: New.
4300         * testsuite/demangle/abi_examples/18.cc: New.
4301         * testsuite/demangle/abi_examples/19.cc: New.
4302         * testsuite/demangle/abi_examples/20.cc: New.
4303         * testsuite/demangle/abi_examples/21.cc: New.
4304         * testsuite/demangle/abi_examples/22.cc: New.
4305         * testsuite/demangle/abi_examples/23.cc: New.
4306         * testsuite/demangle/abi_examples/24.cc: New.
4307         * testsuite/demangle/abi_examples/25.cc: New.
4308         * testsuite/demangle/abi_examples/26.cc: New.
4309         * testsuite/demangle/abi_text/01.cc: New.
4310         * testsuite/demangle/abi_text/02.cc: New.
4311         * testsuite/demangle/abi_text/03.cc: New.
4312         * testsuite/demangle/abi_text/04.cc: New.
4313         * testsuite/demangle/abi_text/05.cc: New.
4314         * testsuite/demangle/abi_text/06.cc: New.
4315         * testsuite/demangle/abi_text/07.cc: New.
4316         * testsuite/demangle/abi_text/08.cc: New.
4317         * testsuite/demangle/abi_text/09.cc: New.
4318         * testsuite/demangle/abi_text/10.cc: New.
4319         * testsuite/demangle/abi_text/11.cc: New.
4320         * testsuite/demangle/abi_text/12.cc: New.
4321         * testsuite/demangle/abi_text/13.cc: New.
4322         * testsuite/demangle/abi_text/14.cc: New.
4323         * testsuite/demangle/regression/3111-1.cc: New.
4324         * testsuite/demangle/regression/3111-2.cc: New.
4325         * testsuite/demangle/regression/7986-01.cc: New.
4326         * testsuite/demangle/regression/7986-02.cc: New.
4327         * testsuite/demangle/regression/7986-03.cc: New.
4328         * testsuite/demangle/regression/7986-04.cc: New.
4329         * testsuite/demangle/regression/7986-05.cc: New.
4330         * testsuite/demangle/regression/7986-06.cc: New.
4331         * testsuite/demangle/regression/7986-07.cc: New.
4332         * testsuite/demangle/regression/7986-08.cc: New.
4333         * testsuite/demangle/regression/7986-09.cc: New.
4334         * testsuite/demangle/regression/7986-10.cc: New.
4335         * testsuite/demangle/regression/7986-11.cc: New.
4336         * testsuite/demangle/regression/7986-12.cc: New.
4337         * testsuite/demangle/regression/7986.cc: New.
4338         * testsuite/demangle/regression/8897.cc: New.
4339         * testsuite/demangle/regression/cw-01.cc: New.
4340         * testsuite/demangle/regression/cw-02.cc: New.
4341         * testsuite/demangle/regression/cw-03.cc: New.
4342         * testsuite/demangle/regression/cw-04.cc: New.
4343         * testsuite/demangle/regression/cw-05.cc: New.
4344         * testsuite/demangle/regression/cw-06.cc: New.
4345         * testsuite/demangle/regression/cw-07.cc: New.
4346         * testsuite/demangle/regression/cw-08.cc: New.
4347         * testsuite/demangle/regression/cw-09.cc: New.
4348         * testsuite/demangle/regression/cw-10.cc: New.
4349         * testsuite/demangle/regression/cw-11.cc: New.
4350         * testsuite/demangle/regression/cw-12.cc: New.
4351         * testsuite/demangle/regression/cw-13.cc: New.
4352         * testsuite/demangle/regression/cw-14.cc: New.
4353         * testsuite/demangle/regression/old.cc: New.
4354
4355 2003-02-25  Phil Edwards  <pme@gcc.gnu.org>
4356
4357         * docs/doxygen/Intro.3:  Update with new (proper) names.
4358         * docs/doxygen/TODO:  Update.
4359         * docs/doxygen/run_doxygen:  More comments, fix up man pages.
4360         Fake entries for standard typedefs.
4361         * docs/doxygen/user.cfg.in:  Turn INLINE_INHERITED_MEMB back on.
4362         * docs/html/documentation.html:  Top-level man page is now called
4363         C++Intro.
4364         * include/std/std_limits.h:  Doxygenate.
4365
4366 2003-02-25  Scott Snyder  <snyder@fnal.gov>
4367
4368         PR libstdc++/9811
4369         * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
4370         Correct documentation.
4371         * include/bits/stl_multimap.h (lower_bound, upper_bound,
4372         equal_range): Likewise.
4373
4374 2003-02-24  Paolo Carlini  <pcarlini@unitus.it>
4375
4376         PR libstdc++/9825
4377         * src/fstream.cc
4378         (basic_filebuf<char/wchar_t>::_M_underflow_common): When
4379         __bump is true (uflow), always increment the read pointer
4380         (_M_in_cur) before returning successfully.
4381         * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
4382
4383 2003-02-24  Paolo Carlini <pcarlini@unitus.it>
4384             Nathan Myers <ncm@cantrip.org>
4385
4386         PR libstdc++/9404, PR libstdc++/9701 (partial)
4387         (aka pptr == epptr implies overflow)
4388         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
4389         Consistently, _M_out_end points to the end of the buffer just
4390         created.
4391         (overflow): Tweak to use _M_out_buf_size().
4392         (_M_convert_to_external): The role of the old _M_out_end is
4393         now played by _M_out_lim.
4394         (_M_really_overflow): Likewise.
4395         (seekoff): Likewise.
4396         (setbuf): _M_out_end points to the end of the external buffer.
4397         * include/bits/sstream.tcc (overflow): Rewrote, taking into
4398         account the resolution of DR 169 (TC).
4399         (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
4400         (seekpos): Use _M_string.capacity(); tweak.
4401         * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
4402         * include/std/std_fstream.h (sync): The role of the old
4403         _M_out_end is now played by _M_out_lim.
4404         (_M_set_indeterminate): Use _M_set_determinate.
4405         (_M_set_determinate): _M_out_end is now _M_out_lim.
4406         (_M_is_indeterminate): Likewise.
4407         * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
4408         (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
4409         which have the information readily available as _M_string.capacity();
4410         for ate and app modes, pass the string size to _M_really_sync.
4411         (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
4412         point to the end of the buffer (i.e., epptr) and to the string end,
4413         respectively.
4414         * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
4415         which points to the right limit of the used put area.
4416         (_M_out_cur_move): The role of the old _M_out_end is now played
4417         by _M_out_lim.
4418         (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
4419         _M_out_end  - _M_out_cur (i.e., pptr), _very_ close to the letter
4420         of the standard.
4421         (basic_streambuf()): Initialize _M_out_lim too.
4422         * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
4423         * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
4424         * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
4425
4426 2003-02-24  Benjamin Kosnik  <bkoz@redhat.com>
4427
4428         * testsuite/27_io/ios_base_storage.cc (main): Call
4429         set_memory_limits.
4430
4431 2003-02-21  Jerry Quinn  <jlquinn@optonline.net>
4432
4433         * include/bits/locale_facets.tcc (_M_convert_float): Replace
4434         numpunct facet accesses with data from __locale_cache.
4435
4436 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
4437
4438         * docs/html/faq/index.html (3.9):  New note, wchar_t on FreeBSD.
4439         * docs/html/faq/index.txt:  Regenerate.
4440
4441 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
4442
4443         * config/linker-map.gnu:  Also export locking symbols needed for the
4444         generic atomicity.h case.
4445
4446 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
4447
4448         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
4449         config.status.
4450         * configure: Rebuilt.
4451
4452 2003-02-19  Paolo Carlini  <pcarlini@unitus.it>
4453
4454         * include/bits/sstream.tcc (overflow): According to
4455         27.7.1.3, p5, actual output is performed by sputc(c).
4456
4457 2003-02-19  Phil Edwards  <pme@gcc.gnu.org>
4458
4459         PR libstdc++/9582
4460         * include/bits/stl_alloc.h:  Remove all traces of assert().
4461
4462 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
4463
4464         * include/std/std_sstream.h (str()): the size of the
4465         current string may be different from the initial one
4466         whenever _M_out_end > _M_out_beg.
4467         * testsuite/27_io/stringbuf_members.cc (test07): Add.
4468
4469 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
4470
4471         PR libstdc++/9582
4472         * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
4473
4474 2003-02-17  Benjamin Kosnik  <bkoz@redhat.com>
4475
4476         * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
4477         * testsuite/27_io/ios_members.cc (test03): New.
4478
4479 2003-02-17  Jerry Quinn  <jlquinn@optonline.net>
4480
4481         * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
4482         (basic_ios::_M_cache_facets): Move into above.
4483         * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
4484         cache.
4485         (basic_ios::imbue): Force locale cache to be built.
4486         (basic_ios::_M_init): Create and initialize locale cache.
4487         * include/bits/ios_base.h (__locale_cache_base): Declare.
4488         (ios_base::_M_locale_cache): New.
4489         (ios_base::_M_cache): Define.
4490         * include/bits/locale_facets.h: (__num_base): Fix comment.  Add
4491         _S_end.
4492         (__locale_cache_base,__locale_cache<_CharT>):  New classes.
4493         (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
4494         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
4495         cache literal string, grouping flag, thousands separator.
4496         (__locale_cache<_CharT>::__locale_cache): New.
4497         (__locale_cache<_CharT>::_M_init): New.
4498         * src/ios.cc: Clear _M_locale_cache in constructor.
4499         * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
4500         New.
4501
4502 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
4503
4504         * src/locale-inst.cc: Do not include <cassert>.
4505         * src/locale.cc: Likewise.
4506
4507 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
4508
4509         PR libstdc++/9580
4510         * include/std/std_fstream.h: Declare underflow and uflow
4511         specializations, change generic definitions to do nothing.
4512         * src/fstream.cc: Add underflow and uflow specializations.
4513
4514 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
4515
4516         PR libstdc++/9169
4517         * include/bits/fstream.tcc (_M_convert_to_external):
4518         Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
4519         * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
4520
4521 2003-02-13  Benjamin Kosnik  <bkoz@redhat.com>
4522
4523         * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
4524         * include/bits/basic_ios.tcc: Guard use of extern template.
4525         * include/std/std_iomanip.h: Same.
4526         * include/bits/streambuf.tcc: Same.
4527         * include/bits/stl_alloc.h: Same.
4528         * include/bits/locale_facets.tcc: Same.
4529         * include/bits/ostream.tcc: Same.
4530         * include/bits/istream.tcc: Same.
4531         * include/bits/fstream.tcc: Same.
4532         * include/bits/basic_string.tcc: Same.
4533
4534 2003-02-13  Paolo Carlini  <pcarlini@unitus.it>
4535
4536         * include/bits/ostream.tcc (sentry::sentry): Improve
4537         performance-wise the fix for libstdc++/9563.
4538
4539 2003-02-12  Phil Edwards  <pme@gcc.gnu.org>
4540
4541         * config/cpu/generic/atomicity.h (_Atomic_add_mutex):  Fix declaration.
4542         (_GLIBCPP_NEED_GENERIC_MUTEX):  Define for this file.
4543         (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once):  Declare
4544         when we don't have static mutex initialization.
4545         (__exchange_and_add):  Use _Atomic_add_mutex_once.
4546         * src/misc-inst.cc:  Definitions of all the above.
4547
4548 2003-02-12  Paolo Carlini  <pcarlini@unitus.it>
4549
4550         PR libstdc++/9563
4551         * include/bits/ostream.tcc (sentry::sentry): Check
4552         the state of the stream after the preparation.
4553         * testsuite/27_io/ostream_sentry.cc (test02): Add.
4554
4555 2003-02-11  Benjamin Kosnik  <bkoz@redhat.com>
4556
4557         * include/Makefile.am (stamp-std-precompile): Add rule.
4558         * include/Makefile.in: Regenerated.
4559
4560 2003-02-11 Jerry Quinn  <jlquinn@optonline.net>
4561            Benjamin Kosnik  <benjamin@redhat.com>
4562
4563         * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
4564         Add indexes into this array.
4565         (__num_base::_S_atoms): To _S_atoms_in.
4566         (num_put::_M_insert): Rename to _M_pad.
4567         (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
4568         (num_put::_M_widen_int): Rename to _M_group_int.
4569         (num_put::_M_widen_float): Rename to _M_group_float.
4570         * include/bits/locale_facets.tcc (__int_to_char): New inline
4571         function and adapter functions.
4572         (num_put::_M_group_int): Streamline.
4573         (num_put::_M_group_float): Streamline.
4574         (num_put::_M_convert_int): Remove unused parameter names. Choose
4575         large enough buffer for text.  Use __int_to_char instead of
4576         __convert_from_v.  Formatted text is now at the end of the buffer.
4577         (num_put::_M_convert_float): Preliminary fixups.
4578         * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
4579         (__int_to_char<unsigned long long>): Same.
4580         (__int_to_char<char, unsigned long>): New.
4581         (__int_to_char<char, unsigned long long>): New.
4582         (__int_to_char<wchar_t, unsigned long>): New.
4583         (__int_to_char<wchar_t, unsigned long long>): New.
4584
4585 2003-02-11  Scott Snyder  <snyder@fnal.gov>
4586
4587         PR libstdc++/9659
4588         * include/bits/fstream.tcc (seekoff): Avoid operator+
4589         for pos_type.
4590
4591 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
4592
4593         PR libstdc++/9320
4594         * include/ext/stdio_filebuf.h
4595         (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
4596         stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
4597         Change to take a __size parameter of type size_t, not
4598         of type (template parameter dependent) int_type.
4599         * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
4600         size vars to size_t.
4601         * testsuite/ext/stdio_filebuf.cc: Add.
4602
4603 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
4604             Petur Runolfsson  <peturr02@ru.is>
4605
4606         PR libstdc++/9318
4607         * include/bits/streambuf.tcc (__copy_streambufs):
4608         Don't conditionalize the copy to __testput.
4609         * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
4610
4611 2002-02-11  DJ Delorie  <dj@redhat.com>
4612
4613         * acinclude.m4: Check for native targets that can't link at
4614         this point in the build.
4615         * aclocal.m4: Regenerate.
4616         * configure: Regenerate.
4617
4618 2003-02-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4619
4620         * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
4621         Correct alignment.
4622         (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
4623         lock.
4624
4625 2003-02-07  Paolo Carlini  <pcarlini@unitus.it>
4626
4627         * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
4628         unsigned char platforms.
4629
4630 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
4631
4632         PR libstdc++/9562
4633         * include/std/std_istream.h
4634         (basic_istream::sentry::operator bool()): Make const.
4635         * include/std/std_ostream.h
4636         (basic_ostream::sentry::operator bool()): Likewise.
4637         * testsuite/27_io/istream_sentry.cc (test03): Add.
4638         * testsuite/27_io/ostream_sentry.cc: Add.
4639
4640 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
4641
4642         PR libstdc++/9548
4643         Implement resolution of DR 231 (Ready)
4644         * include/bits/locale_facets.h (__num_base::_S_format_float):
4645         Change declaration: return void, remove __prec parameter.
4646         * src/locale.cc (__num_base::_S_format_float): Implement
4647         resolution of DR 231.
4648         * include/bits/locale_facets.tcc (num_put::_M_convert_float):
4649         Tweak uses. Check for negative precision.
4650         * testsuite/22_locale/num_put/put/char/6.cc: Add
4651         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
4652
4653 2003-02-06  Peter Soetens  <peter.soetens@mech.kuleuven.ac.be>
4654
4655         * config/io/basic_file_libio.h: Fixups.
4656         * config/io/c_io_libio.h: Same.
4657         * libio/Makefile.am: Same.
4658         * libio/Makefile.in: Regenerated.
4659
4660 2003-02-06  Benjamin Kosnik  <bkoz@redhat.com>
4661
4662         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
4663         Explicitly use the "C" locale.
4664         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
4665
4666 2003-02-06  Petur Runolfsson  <peturr02@ru.is>
4667
4668         DR 75
4669         DR 305
4670         PR libstdc++/9028 (partial)
4671         PR libstdc++/9224
4672         PR libstdc++/9246
4673         PR libstdc++/9247
4674
4675         * src/codecvt.cc
4676         (codecvt<wchar_t, char, mbstate_t>::do_encoding,
4677         codecvt<wchar_t, char, mbstate_t>::do_length,
4678         codecvt<wchar_t, char, mbstate_t>::do_max_length):
4679         Move...
4680         * config/locale/generic/codecvt_members.cc:  ...here.
4681         * config/locale/gnu/codecvt_members.cc:  ...and here.
4682
4683         * config/locale/generic/codecvt_members.cc,
4684         * config/locale/gnu/codecvt_members.cc
4685         (codecvt<wchar_t, char, mbstate_t>::do_encoding
4686         codecvt<wchar_t, char, mbstate_t>::do_in,
4687         codecvt<wchar_t, char, mbstate_t>::do_length,
4688         codecvt<wchar_t, char, mbstate_t>::do_max_length,
4689         codecvt<wchar_t, char, mbstate_t>::do_out):
4690         New implementation that handles stateless encodings,
4691         including UTF-8.
4692
4693         * config/locale/generic/codecvt_members.cc,
4694         * config/locale/gnu/codecvt_members.cc,
4695         * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
4696         * include/bits/codecvt.h,
4697         * src/codecvt.cc
4698         (codecvt::length, codecvt::do_length):
4699         Change type of first argument of length and do_length from
4700         'const state_type&' to 'state_type&' according to DR 75.
4701
4702         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc:  Cleanup.
4703         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc:  New test.
4704         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc:  New test.
4705         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc:  New test.
4706         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
4707         Cleanup and check for correct return value from encoding
4708         for "C" locale.
4709         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc:  New test.
4710         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc:  New test.
4711         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc:  New test.
4712         * testsuite/22_locale/codecvt/in/wchar_t/1.cc:  Cleanup.
4713         * testsuite/22_locale/codecvt/in/wchar_t/2.cc:  New test.
4714         * testsuite/22_locale/codecvt/in/wchar_t/3.cc:  New test.
4715         * testsuite/22_locale/codecvt/in/wchar_t/4.cc:  New test.
4716         * testsuite/22_locale/codecvt/in/wchar_t/5.cc:  New test.
4717         * testsuite/22_locale/codecvt/in/wchar_t/6.cc:  New test.
4718         * testsuite/22_locale/codecvt/in/wchar_t/7.cc:  New test.
4719         * testsuite/22_locale/codecvt/in/wchar_t/8.cc:  New test.
4720         * testsuite/22_locale/codecvt/in/wchar_t/9.cc:  New test.
4721         * testsuite/22_locale/codecvt/length/char/1.cc:  Cleanup.
4722         * testsuite/22_locale/codecvt/length/char/2.cc:  New test.
4723         * testsuite/22_locale/codecvt/length/wchar_t/1.cc:  Cleanup.
4724         * testsuite/22_locale/codecvt/length/wchar_t/2.cc:  New test.
4725         * testsuite/22_locale/codecvt/length/wchar_t/3.cc:  New test.
4726         * testsuite/22_locale/codecvt/length/wchar_t/4.cc:  New test.
4727         * testsuite/22_locale/codecvt/length/wchar_t/5.cc:  New test.
4728         * testsuite/22_locale/codecvt/length/wchar_t/6.cc:  New test.
4729         * testsuite/22_locale/codecvt/length/wchar_t/7.cc:  New test.
4730         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc:  Cleanup.
4731         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc:  New test.
4732         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc:  New test.
4733         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc:  New test.
4734         * testsuite/22_locale/codecvt/out/wchar_t/1.cc:  Cleanup.
4735         * testsuite/22_locale/codecvt/out/wchar_t/2.cc:  New test.
4736         * testsuite/22_locale/codecvt/out/wchar_t/3.cc:  New test.
4737         * testsuite/22_locale/codecvt/out/wchar_t/4.cc:  New test.
4738         * testsuite/22_locale/codecvt/out/wchar_t/5.cc:  New test.
4739         * testsuite/22_locale/codecvt/out/wchar_t/6.cc:  New test.
4740         * testsuite/22_locale/codecvt/out/wchar_t/7.cc:  New test.
4741         * testsuite/22_locale/codecvt/unicode/1.cc:  New test.
4742         * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc:  Cleanup.
4743         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc:  New test.
4744         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc:  New test.
4745         * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc:  New test.
4746
4747 2003-02-05  Benjamin Kosnik  <bkoz@redhat.com>
4748
4749         * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
4750         (money_put::do_put): Same.
4751
4752 2003-02-05  Jerry Quinn  <jlquinn@optonline.net>
4753
4754         * include/bits/ios_base.h (ios_base): Document reserved storage.
4755
4756         * include/bits/locale_facets.h: (struct __pad): Comment on
4757         implementation.
4758         (__verify_grouping): Same.
4759         (__add_grouping): Same.
4760         * include/bits/locale_facets.tcc (__verify_grouping): Move
4761         comments to declaration.
4762         (__add_grouping): Same.
4763
4764         * include/bits/locale_facets.tcc:
4765         (__write<_CharT, _OutIter>): New function.
4766         (__write<_CharT>): New function specialization.
4767         (num_put::_M_insert): Remove explicit loop over iterator.  Use
4768         __write.
4769         (num_put::_M_widen_float): Remove __basefield.
4770         (num_put::_M_widen_int): Move __basefield to within grouping block.
4771
4772         * include/bits/streambuf_iterator.h: Include <streambuf>.
4773         (ostreambuf_iterator::_M_put): Add.
4774
4775 2003-02-05  Paolo Carlini  <pcarlini@unitus.it>
4776
4777         * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
4778
4779 2003-02-04  Nathan Myers  <ncm@cantrip.org>
4780
4781         * testsuite/25_algorithms/min_max.cc (test02): Add.
4782
4783 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
4784
4785         PR libstdc++/9439, PR libstdc++/9425
4786         * config/io/basic_file_stdio.cc
4787         (__basic_file<char>::seekoff, seekpos): Return -1L if
4788         fseek fails.
4789         * include/bits/fstream.tcc (basic_filebuf::seekoff):
4790         Check _M_file.seekoff return value; always return
4791         pos_type(off_type(-1)) in case of failure.
4792         (basic_filebuf::pbackfail): Check this->seekoff return
4793         value and return traits_type::eof() in case of failure.
4794         * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
4795
4796 2003-02-04  Jerry Quinn  <jlquinn@optonline.net>
4797
4798         * include/std/std_ostream.h (ostream::_M_write): Declare.
4799         * ostream.tcc (ostream::_M_write): Define.
4800         (basic_ostream::write): Use it.
4801         (operator<<(basic_ostream, _CharT)): Ditto.
4802         (operator<<(basic_ostream, char)): Ditto.
4803         (operator<<(basic_ostream, _CharT*)): Ditto.
4804         (operator<<(basic_ostream, char*)): Ditto.
4805         (operator<<(basic_ostream, basic_string)): Ditto.
4806
4807 2003-02-04  Benjamin Kosnik  <bkoz@redhat.com>
4808
4809         * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
4810
4811 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
4812
4813         * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
4814         add HTML comment about updating links if numbering changes.
4815
4816 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
4817
4818         PR libstdc++/9538
4819         * include/bits/streambuf.tcc (sputbackc): Access
4820         this->gptr()[-1] only if _M_in_beg < _M_in_cur.
4821         * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
4822
4823 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
4824
4825         PR libstdc++/9507
4826         * include/bits/fstream.tcc (open): If the 'ate' repositioning
4827         operation fails, calls close _and_ returns a null pointer
4828         to indicate failure (27.8.1.3,4).
4829         * testsuite/27_io/filebuf_members.cc (test_06): Add.
4830
4831 2003-02-04  Petur Runolfsson  <peturr02@ru.is>
4832
4833         * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
4834
4835 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
4836
4837         * docs/html/27_io/howto.html: New section on stdio_filebuf.
4838         * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
4839         * docs/html/documentation.html: Regenerate.
4840
4841 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
4842
4843         * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
4844         * docs/html/17_intro/porting.html: Regenerate.
4845
4846 2003-02-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
4847             Phil Edwards  <pme@gcc.gnu.org>
4848
4849         * include/std/std_bitset.h:  Replace CHAR_BIT with __CHAR_BIT__, use
4850         numeric_limits for bits-per-word values.
4851         (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
4852         Use __builtin_popcountl instead.
4853         (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
4854         _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
4855         Use __builtin_ctzl instead.
4856         (_S_bit_count, _S_first_one):  Remove.
4857         * config/linker-map.gnu (GLIBCPP_3.4):  Remove std::_S_bit_count.
4858         * src/Makefile.am (sources):  Remove bitset.cc.
4859         * src/bitset.cc:  Delete file.
4860         * src/Makefile.in:  Regenerate.
4861
4862 2003-02-03  Phil Edwards  <pme@gcc.gnu.org>
4863
4864         PR libstdc++/9527, PR libstdc++/8713
4865         * docs/html/install.html:  Mention glibc version requirement.
4866         * docs/html/faq/index.html (3.8):  New note, glibc 2.2.5+ is needed
4867         with 3.2.1+ (formatting bugfixes).
4868         * docs/html/faq/index.txt:  Regenerate.
4869
4870 2003-02-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4871
4872         PR libstdc++/9234
4873         * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
4874         operator.
4875
4876         * include/bits/valarray_before.h (__not_equal_to): Use != instead
4877         of ==.
4878
4879         * testsuite/26_numerics/valarray_operators.cc: New test.
4880
4881 2003-02-01  Phil Edwards  <pme@gcc.gnu.org>
4882
4883         * docs/html/faq/index.html:  Correct link to libg++ information.
4884         * docs/html/faq/index.txt:  Regenerated.
4885
4886 2003-02-01  Paolo Carlini  <pcarlini@unitus.it>
4887             Benjamin Kosnik  <bkoz@redhat.com>
4888
4889         Const correctness issue:
4890         http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
4891         * include/bits/locale_classes.h
4892         (locale::_Impl::_M_facets): Change type to const facet**.
4893         (locale::_Impl::_M_install_facet): Change declaration to
4894         take const facet*.
4895         (locale::facet::_M_references): Make mutable.
4896         (locale::facet::_M_add_reference): Declare const.
4897         (locale::facet::_M_remove_reference): Likewise.
4898         * include/bits/locale_facets.tcc
4899         (use_facet(const locale&)): Tweak for const facet** _M_facets.
4900         (has_facet(const locale&)): Likewise.
4901         * src/locale.cc
4902         (locale::facet::_M_add_reference): Adjust definition.
4903         (locale::facet::_M_remove_reference): Likewise.
4904         * src/localename.cc
4905         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
4906         const facet** _M_facets.
4907         (locale::_Impl::_Impl(const char*, size_t)): Likewise.
4908         (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
4909         (locale::_Impl::_M_install_facet): Adjust definition to take
4910         const facet* and for const facet** _M_facets.
4911         * testsuite/22_locale/locale/cons/8.cc: Add.
4912
4913 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
4914
4915         * include/std/std_limits.h (numeric_limits<float>::has_infinity):
4916         Use __FLT_HAS_INIFINITY__ to initialize.
4917         (numeric_limits<float>::has_quiet_NaN): Likewise.
4918         (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
4919         to initialize.
4920         (numeric_limits<double>::has_quiet_NaN): Likewise.
4921         (numeric_limits<long double>::has_infinity): Use
4922         __LDBL_HAS_INIFINITY__ to initialize.
4923         (numeric_limits<long_double>::has_quiet_NaN): Likewise.
4924
4925 2003-01-28  Nathan Sidwell  <nathan@codesourcery.com>
4926
4927         PR c++/9433
4928         * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
4929         with bases which are very ambiguous.
4930
4931 2003-01-28  Danny Smith  <dannysmith@users.sourceforge.net>
4932
4933         * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
4934         @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
4935         * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
4936         * src/Makefile.in: Regenerate.
4937         * libsupc++/Makefile.in: Regenerate.
4938
4939 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
4940
4941         * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
4942         $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
4943         version_specific_libs is enabled.
4944         * aclocal.m4, configure: Rebuilt.
4945
4946 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
4947
4948         * include/bits/valarray_meta.h: Remove, split into ...
4949         * include/bits/valarray_before.h: ... this, and ...
4950         * include/bits/valarray_after.h: ... this.
4951         * include/std/std_valarray.h: Adjust.
4952         * include/Makefile.am (bits_headers): Adjust.
4953         * include/Makefile.in: Regenerate.
4954
4955 2003-01-24  Andreas Schwab  <schwab@suse.de>
4956
4957         * config/linker-map.gnu: Fix for size_t variance.
4958
4959 2003-01-23  Petur Runolfsson  <peturr02@ru.is>
4960
4961         PR libstdc++/9322
4962         * include/std/std_streambuf.h
4963         (basic_streambuf::basic_streambuf,
4964         basic_streambuf::~basic_streambuf,
4965         basic_streambuf::getloc, basic_streambuf::imbue):
4966         Remove _M_buf_locale_init
4967         * include/bits/fstream.tcc (basic_filebuf::imbue):  Likewise
4968         * testsuite/27_io/filebuf_virtuals.cc (test08):  Add.
4969         * testsuite/27_io/streambuf_members.cc (test08):  Add.
4970         * testsuite/27_io/stringbuf_virtuals.cc (test08):  Add.
4971
4972 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
4973
4974         Revert include ordering.
4975         * config/locale/generic/c_locale.h: Add include guards.
4976         * config/locale/gnu/c_locale.h: Same.
4977         * include/bits/locale_classes.h: Remove cctype include.
4978         * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
4979         * include/std/std_fstream.h: Remove streambuf include.
4980         * include/std/std_sstream.h: Remove streambuf include.
4981
4982 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
4983
4984         * configure.in (libtool_VERSION): To 6:0:0.
4985         * configure: Regenerated.
4986         * config/linker-map.gnu: Clean.
4987
4988         * src/misc-inst.cc: Remove instantiations.
4989
4990         * include/bits/stl_alloc.h (__malloc_alloc_template):
4991         To __malloc_alloc.
4992         (__default_alloc_template): To __pool_alloc.
4993         * src/stl-inst.cc: Same.
4994         * include/backward/alloc.h: Update.
4995         * testsuite/ext/allocators.cc: Update.
4996
4997         * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
4998         really try to remove these if possible.
4999         * src/locale.cc (std): Same.
5000
5001         * testsuite/abi_check.cc (check_version): Add.
5002
5003 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
5004             Sysoltsev Slawa  <Vyatcheslav.Sysoltsev@intel.com>
5005             Mark Mitchell  <mark@codesourcery.com>
5006
5007         PR libstdc++/9269
5008         * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
5009         (basic_filebuf::underflow): Declare.
5010         Move definitions.
5011
5012 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
5013
5014         * include/bits/locale_facets.h: Move non-facet classes requiring
5015         <string> to...
5016         * include/bits/locale_classes.h: New.
5017         * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
5018         * include/bits/Makefile.in: Regenerate.
5019
5020         * include/bits/locale_facets.tcc (__convert_from_v): Move to...
5021         * config/locale/gnu/c_locale.h: ...here.
5022         * config/locale/generic/c_locale.h: Same.
5023
5024         * include/bits/locale_facets.tcc: Move declarations to...
5025         * include/bits/locale_facets.h: ...here.
5026         * include/bits/basic_ios.h: Tweak includes accordingly.
5027         * include/std/std_sstream.h: Add streambuf include.
5028         * include/std/std_fstream.h: Ditto.
5029         * include/std/std_locale.h: Add locale_classes.h include.
5030         * include/std/std_iosfwd.h: Tweak.
5031         * src/concept-inst.cc: Add iterator include.
5032
5033         * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
5034         bits as unexported in the future.
5035
5036 2003-01-21  Benjamin Kosnik  <bkoz@redhat.com>
5037
5038         Reshuffle 22_locale testsuite.
5039         * 22_locale/(codecvt.cc money_get.cc
5040         codecvt_members_char_char.cc money_get_members_char.cc
5041         codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
5042         codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
5043         codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
5044         moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
5045         collate_members_char.cc money_put.cc collate_members_wchar_t.cc
5046         money_put_members_char.cc ctor_copy_dtor.cc
5047         money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
5048         num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
5049         ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
5050         numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
5051         ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
5052         num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
5053         ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
5054         operators.cc ctype_widen_char.cc static_members.cc
5055         ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
5056         global_templates.cc time_get_members_wchar_t.cc, members.cc,
5057         time_put.cc, messages_byname.cc, time_put_members_char.cc,
5058         messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
5059         Split up into individual test cases...
5060         * 22_locale/codecvt/1.cc: New.
5061         * 22_locale/codecvt/2.cc: New.
5062         * 22_locale/codecvt/always_noconv/char/1.cc: New.
5063         * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
5064         * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
5065         * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
5066         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
5067         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
5068         * 22_locale/codecvt/encoding/char/1.cc: New.
5069         * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
5070         * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
5071         * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
5072         * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
5073         * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
5074         * 22_locale/codecvt/in/char/1.cc: New.
5075         * 22_locale/codecvt/in/char/wrapped_env.cc: New.
5076         * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
5077         * 22_locale/codecvt/in/wchar_t/1.cc: New.
5078         * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
5079         * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
5080         * 22_locale/codecvt/length/char/1.cc: New.
5081         * 22_locale/codecvt/length/char/wrapped_env.cc: New.
5082         * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
5083         * 22_locale/codecvt/length/wchar_t/1.cc: New.
5084         * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
5085         * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
5086         * 22_locale/codecvt/max_length/char/1.cc: New.
5087         * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
5088         * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
5089         * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
5090         * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
5091         * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
5092         * 22_locale/codecvt/out/char/1.cc: New.
5093         * 22_locale/codecvt/out/char/wrapped_env.cc: New.
5094         * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
5095         * 22_locale/codecvt/out/wchar_t/1.cc: New.
5096         * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
5097         * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
5098         * 22_locale/codecvt/unicode/char.cc: New.
5099         * 22_locale/codecvt/unicode/wchar_t.cc: New.
5100         * 22_locale/codecvt/unshift/char/1.cc: New.
5101         * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
5102         * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
5103         * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
5104         * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
5105         * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
5106         * 22_locale/collate/1.cc: New.
5107         * 22_locale/collate/2.cc: New.
5108         * 22_locale/collate/compare/char/1.cc: New.
5109         * 22_locale/collate/compare/char/2.cc: New.
5110         * 22_locale/collate/compare/char/wrapped_env.cc: New.
5111         * 22_locale/collate/compare/char/wrapped_locale.cc: New.
5112         * 22_locale/collate/compare/wchar_t/1.cc: New.
5113         * 22_locale/collate/compare/wchar_t/2.cc: New.
5114         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
5115         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
5116         * 22_locale/collate/hash/char/1.cc: New.
5117         * 22_locale/collate/hash/char/2.cc: New.
5118         * 22_locale/collate/hash/char/wrapped_env.cc: New.
5119         * 22_locale/collate/hash/char/wrapped_locale.cc: New.
5120         * 22_locale/collate/hash/wchar_t/1.cc: New.
5121         * 22_locale/collate/hash/wchar_t/2.cc: New.
5122         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
5123         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
5124         * 22_locale/collate/transform/char/2.cc: New.
5125         * 22_locale/collate/transform/char/wrapped_env.cc: New.
5126         * 22_locale/collate/transform/char/wrapped_locale.cc: New.
5127         * 22_locale/collate/transform/wchar_t/2.cc: New.
5128         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
5129         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
5130         * 22_locale/collate_byname/1.cc: New.
5131         * 22_locale/ctype/1.cc: New.
5132         * 22_locale/ctype/2.cc: New.
5133         * 22_locale/ctype/cons/char/1.cc: New.
5134         * 22_locale/ctype/cons/char/wrapped_env.cc: New.
5135         * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
5136         * 22_locale/ctype/is/char/1.cc: New.
5137         * 22_locale/ctype/is/char/2.cc: New.
5138         * 22_locale/ctype/is/char/3.cc: New.
5139         * 22_locale/ctype/is/char/wrapped_env.cc: New.
5140         * 22_locale/ctype/is/char/wrapped_locale.cc: New.
5141         * 22_locale/ctype/is/wchar_t/1.cc: New.
5142         * 22_locale/ctype/is/wchar_t/2.cc: New.
5143         * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
5144         * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
5145         * 22_locale/ctype/narrow/char/1.cc: New.
5146         * 22_locale/ctype/narrow/char/2.cc: New.
5147         * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
5148         * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
5149         * 22_locale/ctype/narrow/wchar_t/1.cc: New.
5150         * 22_locale/ctype/narrow/wchar_t/2.cc: New.
5151         * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
5152         * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
5153         * 22_locale/ctype/scan/char/1.cc: New.
5154         * 22_locale/ctype/scan/char/wrapped_env.cc: New.
5155         * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
5156         * 22_locale/ctype/scan/wchar_t/1.cc: New.
5157         * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
5158         * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
5159         * 22_locale/ctype/to/char/1.cc: New.
5160         * 22_locale/ctype/to/char/wrapped_env.cc: New.
5161         * 22_locale/ctype/to/char/wrapped_locale.cc: New.
5162         * 22_locale/ctype/to/wchar_t/1.cc: New.
5163         * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
5164         * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
5165         * 22_locale/ctype/widen/char/1.cc: New.
5166         * 22_locale/ctype/widen/char/wrapped_env.cc: New.
5167         * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
5168         * 22_locale/ctype/widen/wchar_t/1.cc: New.
5169         * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
5170         * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
5171         * 22_locale/facet/1.cc: New.
5172         * 22_locale/facet/2.cc: New.
5173         * 22_locale/global_templates/1.cc: New.
5174         * 22_locale/locale/cons/1.cc: New.
5175         * 22_locale/locale/cons/2.cc: New.
5176         * 22_locale/locale/cons/3.cc: New.
5177         * 22_locale/locale/cons/4.cc: New.
5178         * 22_locale/locale/cons/5.cc: New.
5179         * 22_locale/locale/cons/6.cc: New.
5180         * 22_locale/locale/cons/7.cc: New.
5181         * 22_locale/locale/global_locale_objects/1.cc: New.
5182         * 22_locale/locale/global_locale_objects/2.cc: New.
5183         * 22_locale/locale/global_locale_objects/3.cc: New.
5184         * 22_locale/locale/operations/1.cc: New.
5185         * 22_locale/locale/operations/2.cc: New.
5186         * 22_locale/messages/1.cc: New.
5187         * 22_locale/messages/2.cc: New.
5188         * 22_locale/messages/members/char/1.cc: New.
5189         * 22_locale/messages/members/char/2.cc: New.
5190         * 22_locale/messages/members/char/3.cc: New.
5191         * 22_locale/messages/members/char/wrapped_env.cc: New.
5192         * 22_locale/messages/members/char/wrapped_locale.cc: New.
5193         * 22_locale/messages_byname/1.cc: New.
5194         * 22_locale/money_get/1.cc: New.
5195         * 22_locale/money_get/2.cc: New.
5196         * 22_locale/money_get/get/char/1.cc: New.
5197         * 22_locale/money_get/get/char/2.cc: New.
5198         * 22_locale/money_get/get/char/3.cc: New.
5199         * 22_locale/money_get/get/char/4.cc: New.
5200         * 22_locale/money_get/get/char/5.cc: New.
5201         * 22_locale/money_get/get/char/6.cc: New.
5202         * 22_locale/money_get/get/char/7.cc: New.
5203         * 22_locale/money_get/get/char/8.cc: New.
5204         * 22_locale/money_get/get/char/wrapped_env.cc: New.
5205         * 22_locale/money_get/get/char/wrapped_locale.cc: New.
5206         * 22_locale/money_get/get/wchar_t/1.cc: New.
5207         * 22_locale/money_get/get/wchar_t/2.cc: New.
5208         * 22_locale/money_get/get/wchar_t/3.cc: New.
5209         * 22_locale/money_get/get/wchar_t/4.cc: New.
5210         * 22_locale/money_get/get/wchar_t/5.cc: New.
5211         * 22_locale/money_get/get/wchar_t/6.cc: New.
5212         * 22_locale/money_get/get/wchar_t/7.cc: New.
5213         * 22_locale/money_get/get/wchar_t/8.cc: New.
5214         * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
5215         * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
5216         * 22_locale/money_put/1.cc: New.
5217         * 22_locale/money_put/2.cc: New.
5218         * 22_locale/money_put/put/char/1.cc: New.
5219         * 22_locale/money_put/put/char/2.cc: New.
5220         * 22_locale/money_put/put/char/3.cc: New.
5221         * 22_locale/money_put/put/char/4.cc: New.
5222         * 22_locale/money_put/put/char/5.cc: New.
5223         * 22_locale/money_put/put/char/6.cc: New.
5224         * 22_locale/money_put/put/char/wrapped_env.cc: New.
5225         * 22_locale/money_put/put/char/wrapped_locale.cc: New.
5226         * 22_locale/money_put/put/wchar_t/1.cc: New.
5227         * 22_locale/money_put/put/wchar_t/2.cc: New.
5228         * 22_locale/money_put/put/wchar_t/3.cc: New.
5229         * 22_locale/money_put/put/wchar_t/4.cc: New.
5230         * 22_locale/money_put/put/wchar_t/5.cc: New.
5231         * 22_locale/money_put/put/wchar_t/6.cc: New.
5232         * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
5233         * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
5234         * 22_locale/moneypunct/1.cc: New.
5235         * 22_locale/moneypunct/2.cc: New.
5236         * 22_locale/moneypunct/3.cc: New.
5237         * 22_locale/moneypunct/members/char/1.cc: New.
5238         * 22_locale/moneypunct/members/char/2.cc: New.
5239         * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
5240         * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
5241         * 22_locale/moneypunct/members/wchar_t/1.cc: New.
5242         * 22_locale/moneypunct/members/wchar_t/2.cc: New.
5243         * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
5244         * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
5245         * 22_locale/moneypunct_byname/1.cc: New.
5246         * 22_locale/num_get/1.cc: New.
5247         * 22_locale/num_get/2.cc: New.
5248         * 22_locale/num_get/get/char/1.cc: New.
5249         * 22_locale/num_get/get/char/2.cc: New.
5250         * 22_locale/num_get/get/char/3.cc: New.
5251         * 22_locale/num_get/get/char/4.cc: New.
5252         * 22_locale/num_get/get/char/5.cc: New.
5253         * 22_locale/num_get/get/char/6.cc: New.
5254         * 22_locale/num_get/get/char/wrapped_env.cc: New.
5255         * 22_locale/num_get/get/char/wrapped_locale.cc: New.
5256         * 22_locale/num_get/get/wchar_t/1.cc: New.
5257         * 22_locale/num_get/get/wchar_t/2.cc: New.
5258         * 22_locale/num_get/get/wchar_t/3.cc: New.
5259         * 22_locale/num_get/get/wchar_t/4.cc: New.
5260         * 22_locale/num_get/get/wchar_t/5.cc: New.
5261         * 22_locale/num_get/get/wchar_t/6.cc: New.
5262         * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
5263         * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
5264         * 22_locale/num_put/1.cc: New.
5265         * 22_locale/num_put/2.cc: New.
5266         * 22_locale/num_put/put/char/1.cc: New.
5267         * 22_locale/num_put/put/char/2.cc: New.
5268         * 22_locale/num_put/put/char/3.cc: New.
5269         * 22_locale/num_put/put/char/4.cc: New.
5270         * 22_locale/num_put/put/char/5.cc: New.
5271         * 22_locale/num_put/put/char/wrapped_env.cc: New.
5272         * 22_locale/num_put/put/char/wrapped_locale.cc: New.
5273         * 22_locale/num_put/put/wchar_t/1.cc: New.
5274         * 22_locale/num_put/put/wchar_t/2.cc: New.
5275         * 22_locale/num_put/put/wchar_t/3.cc: New.
5276         * 22_locale/num_put/put/wchar_t/4.cc: New.
5277         * 22_locale/num_put/put/wchar_t/5.cc: New.
5278         * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
5279         * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
5280         * 22_locale/numpunct/1.cc: New.
5281         * 22_locale/numpunct/2.cc: New.
5282         * 22_locale/numpunct/members/char/1.cc: New.
5283         * 22_locale/numpunct/members/char/2.cc: New.
5284         * 22_locale/numpunct/members/char/wrapped_env.cc: New.
5285         * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
5286         * 22_locale/numpunct/members/wchar_t/1.cc: New.
5287         * 22_locale/numpunct/members/wchar_t/2.cc: New.
5288         * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
5289         * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
5290         * 22_locale/numpunct_byname/1.cc: New.
5291         * 22_locale/numpunct_byname/2.cc: New.
5292         * 22_locale/time_get/1.cc: New.
5293         * 22_locale/time_get/2.cc: New.
5294         * 22_locale/time_get/date_order/char/1.cc: New.
5295         * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
5296         * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
5297         * 22_locale/time_get/date_order/wchar_t/1.cc: New.
5298         * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
5299         * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
5300         * 22_locale/time_get/get_date/char/1.cc: New.
5301         * 22_locale/time_get/get_date/char/2.cc: New.
5302         * 22_locale/time_get/get_date/char/3.cc: New.
5303         * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
5304         * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
5305         * 22_locale/time_get/get_date/wchar_t/1.cc: New.
5306         * 22_locale/time_get/get_date/wchar_t/2.cc: New.
5307         * 22_locale/time_get/get_date/wchar_t/3.cc: New.
5308         * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
5309         * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
5310         * 22_locale/time_get/get_monthname/char/1.cc: New.
5311         * 22_locale/time_get/get_monthname/char/2.cc: New.
5312         * 22_locale/time_get/get_monthname/char/3.cc: New.
5313         * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
5314         * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
5315         * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
5316         * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
5317         * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
5318         * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
5319         * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
5320         * 22_locale/time_get/get_time/char/1.cc: New.
5321         * 22_locale/time_get/get_time/char/2.cc: New.
5322         * 22_locale/time_get/get_time/char/3.cc: New.
5323         * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
5324         * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
5325         * 22_locale/time_get/get_time/wchar_t/1.cc: New.
5326         * 22_locale/time_get/get_time/wchar_t/2.cc: New.
5327         * 22_locale/time_get/get_time/wchar_t/3.cc: New.
5328         * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
5329         * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
5330         * 22_locale/time_get/get_weekday/char/1.cc: New.
5331         * 22_locale/time_get/get_weekday/char/2.cc: New.
5332         * 22_locale/time_get/get_weekday/char/3.cc: New.
5333         * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
5334         * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
5335         * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
5336         * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
5337         * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
5338         * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
5339         * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
5340         * 22_locale/time_get/get_year/char/1.cc: New.
5341         * 22_locale/time_get/get_year/char/3.cc: New.
5342         * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
5343         * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
5344         * 22_locale/time_get/get_year/wchar_t/1.cc: New.
5345         * 22_locale/time_get/get_year/wchar_t/3.cc: New.
5346         * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
5347         * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
5348         * 22_locale/time_put/1.cc: New.
5349         * 22_locale/time_put/2.cc: New.
5350         * 22_locale/time_put/put/char/1.cc: New.
5351         * 22_locale/time_put/put/char/10.cc: New.
5352         * 22_locale/time_put/put/char/2.cc: New.
5353         * 22_locale/time_put/put/char/3.cc: New.
5354         * 22_locale/time_put/put/char/4.cc: New.
5355         * 22_locale/time_put/put/char/5.cc: New.
5356         * 22_locale/time_put/put/char/6.cc: New.
5357         * 22_locale/time_put/put/char/7.cc: New.
5358         * 22_locale/time_put/put/char/8.cc: New.
5359         * 22_locale/time_put/put/char/9.cc: New.
5360         * 22_locale/time_put/put/char/wrapped_env.cc: New.
5361         * 22_locale/time_put/put/char/wrapped_locale.cc: New.
5362         * 22_locale/time_put/put/wchar_t/1.cc: New.
5363         * 22_locale/time_put/put/wchar_t/10.cc: New.
5364         * 22_locale/time_put/put/wchar_t/2.cc: New.
5365         * 22_locale/time_put/put/wchar_t/3.cc: New.
5366         * 22_locale/time_put/put/wchar_t/4.cc: New.
5367         * 22_locale/time_put/put/wchar_t/5.cc: New.
5368         * 22_locale/time_put/put/wchar_t/6.cc: New.
5369         * 22_locale/time_put/put/wchar_t/7.cc: New.
5370         * 22_locale/time_put/put/wchar_t/8.cc: New.
5371         * 22_locale/time_put/put/wchar_t/9.cc: New.
5372         * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
5373         * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
5374
5375 2003-01-16  Jeffrey D. Oldham  <oldham@codesourcery.com>
5376
5377         * config/locale/generic/messages_members.h
5378         (messages_byname<_CharT>::messages_byname): Use this-> to refer to
5379         unqualified members of base clasess.
5380
5381 2003-01-16  Mark Mitchell  <mark@codesourcery.com>
5382             Jeffrey Oldham <oldham@codesourcery.com>
5383
5384         * config/locale/gnu/messages_members.h: Use this-> to refer to
5385         unqualified members of base clasess.
5386         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
5387         * include/bits/codecvt.h: Likewise.
5388         * include/bits/deque.tcc: Likewise.
5389         * include/bits/fstream.tcc: Likewise.
5390         * include/bits/istream.tcc: Likewise.
5391         * include/bits/list.tcc: Likewise.
5392         * include/bits/locale_facets.h: Likewise.
5393         * include/bits/ostream.tcc: Likewise.
5394         * include/bits/sstream.tcc: Likewise.
5395         * include/bits/stl_bvector.h: Likewise.
5396         * include/bits/stl_deque.h: Likewise.
5397         * include/bits/stl_list.h: Likewise.
5398         * include/bits/stl_tree.h: Likewise.
5399         * include/bits/stl_vector.h: Likewise.
5400         * include/bits/vector.tcc: Likewise.
5401         * include/ext/ropeimpl.h: Likewise.
5402         * include/ext/stdio_filebuf.h: Likewise.
5403         * include/ext/stl_rope.h: Likewise.
5404         * include/std/std_fstream.h: Likewise.
5405         * include/std/std_sstream.h: Likewise.
5406
5407 2003-01-15  Phil Edwards  <pme@gcc.gnu.org>
5408
5409         * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
5410
5411 2003-01-15  Benjamin Kosnik  <bkoz@redhat.com>
5412
5413         * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
5414         GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
5415         * aclocal.m4: Regenerate.
5416         * configure: Regenerate.
5417         * testsuite/Makefile.am (all-local): Add conditional rule to
5418         generate testsuite_wchar_t.
5419         * testsuite/Makefile.in: Regenerate.
5420         * testsuite/lib/libstdc++-v3-dg.exp
5421         (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
5422         testsuite_wchar_t is not present in the build directory.
5423         * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
5424         Remove setulimit bits.
5425         * testsuite/26_numerics/complex_value.cc: Set to noopts.
5426         * testsuite/Makefile.am (CLEANFILES): Add.
5427         * testsuite/Makefile.in: Regenerate.
5428
5429 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5430
5431         * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
5432         __hppa__.
5433
5434 2003-01-14  Jeffrey D. Oldham  <oldham@codesourcery.com>
5435
5436         Further conform g++'s __vmi_class_type_info to the C++ ABI
5437         specification.
5438         * libsupc++/cxxabi.h
5439         (__vmi_class_type_info::__flags_masks): Remove enumerations not
5440         required by the specification.
5441
5442 2003-01-12  Benjamin Kosnik  <bkoz@redhat.com>
5443
5444         Renames, namespaces for testsuite utilities.
5445         * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
5446         (gnu_allocator_tracker): Rename to allocation_tracker.
5447         (gnu_new_allocator): Rename to tracker_alloc.
5448         (__set_testsuite_memlimit): Rename to set_memory_limits.
5449         (gnu_assignment_operator): Rename to assignment_operator.
5450         (gnu_destructor): Rename to destructor.
5451         (gnu_copy_tracker): Rename to copy_tracker.
5452         (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
5453         (run_tests_wrapped_locale): New.
5454         (run_tests_wrapped_env): New.
5455         * testsuite/testsuite_hooks.cc: Same.
5456         (class locale_data): Add.
5457         (class enviornment_variable): Add.
5458         (class not_found): Add.
5459         * testsuite/testsuite_allocator.h: Same.
5460         * testsuite/testsuite_allocator.cc: Same.
5461         * testsuite/23_containers/deque_ctor.cc
5462         (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
5463         allocation_tracker.
5464         Change gnu_new_allocator to tracker_alloc.
5465         Change gnu_counting_struct to counter.
5466         Change gnu_copy_tracker to copy_tracker.
5467         Change gnu_copy_constructor to copy_constructor.
5468         Change gnu_assignment_operator to assignment_operator.
5469         Inject.
5470         * testsuite/23_containers/vector_capacity.cc: Same.
5471         * testsuite/23_containers/vector_ctor.cc (test01): Same.
5472         * testsuite/23_containers/list_modifiers.cc: Change
5473         gnu_copy_tracker to copy_tracker.
5474         * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
5475         __set_testsuite_memlimit to set_memory_limits.
5476         * testsuite/21_strings/insert.cc (main): Same.
5477         * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
5478         * testsuite/27_io/stringstream.cc: Same.
5479         * testsuite/27_io/stringbuf.cc: Same.
5480         * testsuite/27_io/streambuf.cc: Same.
5481         * testsuite/27_io/ostream.cc: Same.
5482         * testsuite/27_io/istream.cc: Same.
5483         * testsuite/27_io/fstream.cc: Same.
5484         * testsuite/lib/libstdc++-v3-dg.exp
5485         (libstdc++-v3-list-sourcefiles): Additionally handle files two and
5486         three levels deeper in glob patterns.
5487
5488 2003-01-11  Phil Edwards  <pme@gcc.gnu.org>
5489
5490         * docs/doxygen/tables.html:  Finished now.
5491         * docs/doxygen/user.cfg.in:  Update to latest version of Doxygen.
5492         * include/bits/basic_ios.h (basic_ios::rdbuf):  Add example to
5493         comments.
5494
5495         * include/bits/deque.tcc, include/bits/stl_alloc.h,
5496         include/bits/stl_deque.h, include/bits/stl_list.h,
5497         include/bits/stl_vector.h:  Remove _GLIBCPP_DEPRECATED bits scheduled
5498         for 3.4 removal.
5499
5500 2003-01-09  Benjamin Kosnik  <bkoz@redhat.com>
5501
5502         * configure.in: Revert.
5503         * configure: Regenerate.
5504
5505 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
5506
5507         * include/Makefile.am (install-data-local): Prepend
5508         $(DESTDIR) to destination paths in all (un)installation
5509         commands.  Use ${c_base_builddir} and ${std_builddir}
5510         as destination subdirectories to achieve consistency with
5511         preceding mkinstalldirs commands.  No effect because both
5512         variables contain "." only.
5513         * include/Makefile.in: Regenerate.
5514
5515 2003-01-08  Benjamin Kosnik  <bkoz@redhat.com>
5516
5517         * include/Makefile.am (stamp-*): Add checks for existing stamps.
5518         * include/Makefile.in: Regenerate.
5519
5520         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
5521         * aclocal.m4: Regenerate.
5522
5523         * configure.in: Don't add new multi-do rules every time the
5524         directory is reconfigured.
5525         * configure: Regenerate.
5526
5527 2003-01-08  Brad Spencer  <spencer@infointeractive.com>
5528             Nathan Myers  <ncm@cantrip.org>
5529
5530         * src/Makefile.am (stamp-debug): Clean.
5531         * src/Makefile.in: Regenerate.
5532
5533 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
5534
5535         PR libstdc++/8707
5536         * Makefile.am (distclean-multi): Fix.
5537         * Makefile.in: Regenerate.
5538
5539 2003-01-06  Benjamin Kosnik  <bkoz@redhat.com>
5540
5541         * include/bits/locale_facets.h (messages): Move ctor, dtor
5542         definitions to..
5543         (__timepunct): Same.
5544         * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
5545         definitions. Conditionalize for GNU systems.
5546         * config/locale/generic/messages_members.h (messages): Add dtor, ctor
5547         definitions.
5548         * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
5549         definitions. Conditionalize for GNU systems.
5550         * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
5551         definitions.
5552         * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
5553         * src/locale.cc: Define.
5554         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
5555         Use it.
5556         * config/locale/gnu/time_members.h: Use it.
5557         * config/locale/gnu/messages_members.h: Use it.
5558         * config/linker-map.gnu: Add locale::facets details.
5559         * include/Makefile.am (target_headers_extra): Add time_members.h.
5560         * include/Makefile.in: Regenerate.
5561         * acinclude.m4: Export CTIME_H.
5562         * aclocal.m4: Regenerate.
5563         * configure: Regnerate.
5564
5565 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
5566
5567         * src/codecvt.cc
5568         (codecvt<char, char, mbstate_t>::do_in, do_out):
5569         Tweak parameters to avoid unused parameter warnings.
5570
5571 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
5572
5573         PR libstdc++/9151
5574         * include/bits/locale_facets.cc (num_put::_M_convert_float):
5575         Limit __prec to digits10 + 2, not digits10 + 1, taking into
5576         account the possibility of %{g,G} conversion specifiers
5577         inside _S_format_float.
5578         * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
5579
5580 2003-01-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5581
5582         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
5583         libstdc++-v3-list-sourcefiles): Additionally handle files one
5584         level deeper in glob patterns.
5585
5586         * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
5587         * testsuite/27_io/istream_extractor_arith/01.cc,
5588         testsuite/27_io/istream_extractor_arith/02.cc,
5589         testsuite/27_io/istream_extractor_arith/03.cc,
5590         testsuite/27_io/istream_extractor_arith/06.cc,
5591         testsuite/27_io/istream_extractor_arith/07.cc,
5592         testsuite/27_io/istream_extractor_arith/08.cc,
5593         testsuite/27_io/istream_extractor_arith/09.cc,
5594         testsuite/27_io/istream_extractor_arith/10.cc,
5595         testsuite/27_io/istream_extractor_arith/11.cc,
5596         testsuite/27_io/istream_extractor_arith/12.cc,
5597         testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
5598         * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
5599         sparc*-*-solaris2*.
5600
5601 2003-01-05  Paolo Carlini <pcarlini@unitus.it>
5602
5603         PR libstdc++/9168
5604         * src/codecvt.cc
5605         (codecvt<char, char, mbstate_t>::do_in, do_out):
5606         Implement the resolution of DR19 (TC).
5607         * testsuite/22_locale/codecvt_members_char_char.cc
5608         (test01): Tweak.
5609
5610 2003-01-02  Jason Merrill  <jason@redhat.com>
5611
5612         * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
5613         *__mem is also an output.
5614         * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.