OSDN Git Service

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