OSDN Git Service

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