OSDN Git Service

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