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