OSDN Git Service

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