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