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