OSDN Git Service

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