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