OSDN Git Service

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