OSDN Git Service

* include/bits/stl_threads.h (_Atomic_swap): Kill it...
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2003-05-05  Loren J. Rittle  <ljrittle@acm.org>
2             (Inspired by an alternate patch from Danny Smith.)
3
4         * include/bits/stl_threads.h (_Atomic_swap): Kill it...
5         (_Swap_lock_struct<>): ...and the horse it rode in on.
6         * src/globals.cc (_Swap_lock_struct<>): Likewise.
7         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
8         member to support...
9         * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
10         visibility rules related to POSIX threads.
11         * testsuite/thread/pthread7-rope.cc: New test.
12
13 2003-05-04  Paolo Carlini  <pcarlini@unitus.it>
14
15         * testsuite/21_strings/basic_string/find/char/3.cc: New
16         file, testing basic_string<char>::find_first_not_of.
17         * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
18         Likewise for basic_string<wchar_t>.
19
20 2003-05-03  Loren J. Rittle  <ljrittle@acm.org>
21
22         * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
23
24 2003-05-02  Benjamin Kosnik  <bkoz@redhat.com>
25
26         * include/Makefile.am (CLEANFILES): Remove PCH files in target
27         directory.
28         * include/Makefile.in: Regenerate.
29
30 2003-05-02  Paolo Carlini  <pcarlini@unitus.it>
31
32         * include/std/std_sstream.h (str()): Tidy.
33
34 2003-05-02  Nathan Myers  <ncm@cantrip.org>
35             Paolo Carlini  <pcarlini@unitus.it>
36
37         * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
38
39 2003-05-02  Jonathan Wakely  <redi@gcc.gnu.org>
40
41         * include/bits/basic_string.h (swap): Remove redundant template
42         parameters from declaration of non-template member function.
43
44 2003-05-01  Phil Edwards  <pme@gcc.gnu.org>
45
46         * acconfig.h (_GLIBCPP_USE_NLS):  New symbol.
47         * configure.in:  Move libintl.h header test...
48         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  ...to here.  Gather all
49         the NLS-related test results into one symbol.
50         * src/functexcept.cc:  Use it here.
51         * aclocal.m4, config.h.in, configure:  Regenerated.
52
53 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
54
55         * include/bits/sstream.tcc (overflow): Instead of calling
56         str(), then _M_string.reserve, thus copying the contents
57         of the current buffer two times, just copy the latter in
58         a temporary, then use the 'swap trick'.
59
60 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
61
62         * include/std/std_sstream.h (str()): Revert the best of the
63         previous 'improvement', incorrect due to the COW nature of
64         v3 basic_string; simplify.
65
66 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
67
68         * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
69         type of __avail to ptrdiff_t to avoid signed-unsigned warning.
70
71 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
72
73         * testsuite/abi_check.cc (check_version): Update known versions.
74         Check added symbols for version_name != base version. Add missing
75         symbols to incompatible list.
76         
77 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
78
79         * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
80         * aclocal.m4: Regenerated.
81         * configure: Regenerated.
82
83 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
84
85         * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
86         Const-ify some variables.
87         (basic_streambuf::xsputn): Likewise; change the type of some
88         variables to size_t.
89         (__copy_streambufs): Change some variables to size_t.
90
91 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
92
93         * include/std/std_sstream.h (str()): Avoid constructing
94         a basic_string temporary not only when it would turn out
95         to be zero-sized but also when identical to the current
96         _M_string buffer.
97
98 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
99
100         * include/ext/stdio_filebuf.h
101         (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
102         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
103         Shorten a bit (-10 lines) by factoring out some code.
104
105 2003-04-30  Phil Edwards  <pme@gcc.gnu.org>
106
107         * acinclude.m4:  Add bit missing from previous patch.
108         * aclocal.m4, configure:  Regenerated.
109
110 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
111
112         * docs/doxygen/mainpage.html:  Bring up to date.
113         * docs/doxygen/run_doxygen:  Cosmetic tweaks.  Work around a bug
114         in Doxygen.
115         * docs/doxygen/user.cfg.in:  Scanning the precompiled headers
116         breaks everything.  Don't scan them.
117         * docs/html/documentation.html:  Point to "Write after approval"
118         notes.
119
120 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
121
122         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  Search for gettext outside
123         of libc if message translations are being used.  Fix info text in
124         xieee_1003.1-2001 case.
125         * aclocal.m4, configure:  Regenerate.
126
127 2003-04-29 Joel Sherrill  <joel.sherrill@OARcorp.com>
128            Loren J. Rittle <ljrittle@acm.org>
129            Martin v. Loewis  <martin@v.loewis.de>
130
131         * config/cpu/i386/atomicity.h: New file.
132
133 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
134
135         * include/bits/fstream.tcc (open): Change to single return.
136
137 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
138
139         * include/std/std_sstream.h (underflow): Change to single return.
140
141 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
142
143         * include/std/std_streambuf.h (_M_buf): is currently
144         used only for basic_filebuf, therefore move it there.
145         (basic_streambuf(), ~basic_streambuf()): Adjust.
146         * include/std/std_fstream.h (_M_buf): Moved here.
147         * include/std/std_sstream.h (setbuf): Don't set _M_buf,
148         is actually redundant for basic_stringbuf.
149         (_M_really_sync): Likewise.
150         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
151         * include/bits/sstream.tcc (seekoff): Adjust.
152
153 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
154
155         * src/localename.cc: Standardize exception strings.
156         * src/locale.cc: Same.
157         * src/ios.cc: Same.
158         * include/bits/basic_string.tcc: Same.
159         * include/bits/basic_ios.tcc: Same.
160         * include/std/std_bitset.h: Same.
161         * include/ext/ropeimpl.h: Same.
162         * include/bits/stl_vector.h: Same.
163         * include/bits/stl_deque.h: Same.
164         * include/bits/stl_bvector.h: Same.
165         * config/locale/generic/c_locale.cc: Same.
166         * config/locale/gnu/c_locale.cc: Same.
167         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
168
169         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
170         
171 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
172
173         * include/std/std_streambuf.h (_M_buf_size): is currently
174         used only for basic_filebuf, therefore move it there.
175         (basic_streambuf(), ~basic_streambuf()): Adjust.
176         * include/std/std_fstream.h (_M_buf_size): Moved here.
177         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
178
179 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
180
181         * include/bits/streambuf.tcc (__copy_streambufs): Don't use
182         _M_buf_size (synced input is now correctly dealt with
183         elsewhere); when the output buffer is full don't fall back
184         to a snextc-sputc loop, call overflow instead.
185
186 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
187
188         * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
189         the innermost 'if' by factoring out some code.
190
191 2003-04-28  Phil Edwards  <pme@gcc.gnu.org>
192
193         * configure.in:  Test for libintl.h.
194         * include/bits/c++config:  Define __N for everybody.
195         * include/bits/basic_string.h, include/bits/stl_bvector.h,
196         include/bits/stl_deque.h, include/bits/stl_vector.h,
197         include/std/std_bitset.h:  Wrap all __throw* text with __N.
198         * po/Makefile.am (pot):  New rule, mostly working.
199         * src/functexcept.cc:  Call gettext on all __throw* arguments when
200         -fexceptions is in effect.
201         * po/Makefile.in, config.h.in, configure:  Regenerate.
202
203 2003-04-28  Petur Runolfsson  <peturr02@ru.is>
204  
205         PR libstdc++/9523
206         * include/bits/ios_base.h (Init::_S_ios_create,
207         Init::_S_ios_destroy):  Remove declarations.
208         (Init::_S_create_buffers,
209         Init::_S_destroy_buffers):  Declare
210         * src/ios.cc (Init::_S_ios_create):  Remove
211         (Init::_S_create_buffers):  Create buffers and add to streams.
212         (Init::_S_ios_destroy):  Rename to...
213         (Init::_S_destroy_buffers):  this.
214         (Init::Init):  Only construct streams once.
215         (Init::~Init):  Flush streams, don't destroy them.
216         (ios_base::sync_with_stdio):  Don't destroy streams, only buffers.
217         * testsuite/27_io/ios_base/sync_with_stdio/9523.cc:  New test.
218         * testsuite/27_io/objects/char/5.cc:  New test.
219         * testsuite/27_io/objects/char/5268.cc:  Avoid undefined behavior.
220         * testsuite/27_io/objects/char/6.cc:  New test.
221         * testsuite/27_io/objects/char/7.cc:  New test.
222
223 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
224
225         * testsuite/27_io/objects/char/8.cc:  New test.
226         
227 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
228
229         * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
230         * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
231         
232 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
233
234         * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
235         _M_destroy_pback. _M_pback_create to
236         _M_create_pback. _M_underflow_common to
237         _M_underflow. _M_really_overflow to _M_overflow.
238         * include/bits/fstream.tcc: Same.
239         * src/fstream.cc: Same.
240         * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
241         _M_move_in_cur.  _M_out_cur_move to _M_move_out_cur.
242         * include/bits/streambuf.tcc: Same.
243         * include/bits/fstream.tcc: Same.
244         * include/bits/sstream.tcc: Same.
245         
246 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
247
248         * include/bits/locale_classes.h (locale::_Impl): Change _M_names
249         from fixed size array.
250         (locale): Change _S_categories as well.
251         Formatting tweaks.
252         * include/bits/locale_facets.tcc: Tweak.
253         * config/locale/gnu/c_locale.cc: Assign _S_categories.
254         * config/locale/generic/c_locale.cc: Same.
255         * src/locale.cc: Tweak.
256         * src/globals.cc: Change facet_name to name_vec, add names_c.
257         * src/localename.cc: Use them.
258         (locale::_Impl::~_Impl): Destroy _M_names.
259         (locale::_Impl::_Impl): Create _M_names.
260         
261 2003-04-27  Andreas Schwab  <schwab@suse.de>
262
263         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
264         (__enc_traits): Use __ibom and __ebom instead of ignoring them.
265
266 2003-04-27  Nathan Myers  <ncm@cantrip.org>
267
268         Move some basic_string members out of line because
269         they are too big to reasonably be inline.
270         * include/bits/basic_string.h
271         (assign(const basic_string&, size_type, size_type),
272         assign(const _CharT*, size_type),
273         insert(size_type, const basic_string&, size_type, size_type),
274         insert(size_type, const _CharT*, size_type),
275         replace(size_type, size_type, const _CharT*, size_type)):
276         Move from here to...
277         * include/bits/basic_string.tcc: ...here.
278         
279 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
280
281         * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
282         the innermost 'if' by factoring out some code.
283
284 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
285
286         * include/bits/streambuf.tcc (__copy_streambufs): Don't
287         use in_avail(), simplify.
288
289 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
290
291         * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
292         in basic_stringbuf it's unused.
293         
294         * include/std/std_sstream.h (underflow): consistently use
295         _M_in_cur, not gptr().
296
297 2003-04-25  Ranjit Mathew  <rmathew@hotmail.com>
298             Phil Edwards  <pme@gcc.gnu.org>
299         
300         * testsuite_flags.in: Guard against the possibility
301         of having "xgcc" as a part of a folder name in the
302         path to the GCC build folder.
303         * testsuite/Makefile.am: Likewise.
304         * testsuite/Makefile.in: Regenerated.
305         
306 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
307
308         PR libstdc++/10132
309         * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
310         exception specifications.
311         (basic_filebuf::close): Same.
312         (basic_filebuf::_M_pback_destroy): Same.
313         (basic_filebuf::_M_destroy_internal_buffer): Same.
314         (basic_filebuf): Remove __res_type typedef.     
315         * src/fstream.cc: Same.
316         * include/bits/fstream.tcc
317         (basic_filebuf::_M_convert_to_external): Simplify.
318         (basic_filebuf::seekoff): Use has_facet before use_facet.
319         (basic_filebuf::close): Add exception specification of throw().
320         * testsuite/27_io/basic_filebuf/cons: New.
321         * testsuite/27_io/basic_filebuf/cons/wchar_t: New.      
322         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.   
323         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
324         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
325
326 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
327         
328         * include/bits/locale_classes.h
329         (locale::_S_extra_categories_size): Remove.
330         * src/locale.cc: Remove _S_extra_categories_size.
331         * src/localename.cc: Same.
332         * config/locale/gnu/c_locale.cc: Same.
333         * config/locale/generic/c_locale.cc: Same.
334         
335 2003-04-24  Richard Sandiford  <rsandifo@redhat.com>
336
337         * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
338
339 2003-04-24  Phil Edwards  <pme@gcc.gnu.org>
340
341         * docs/html/17_intro/howto.html:  Update some links.
342         * docs/html/18_support/howto.html:  Link doxygen numeric_limits notes.
343         * docs/html/27_io/howto.html:  Link doxygen stdio_filebuf notes.
344         * docs/html/ext/howto.html:  Link to demangler notes and API.
345         * docs/html/faq/index.html:  Remove trailing whitespace.
346         (1.4, 2.4, 3.8, 4.1):  Bring up to date.
347         (5.6):  Change to a bulleted list.
348
349         * docs/html/faq/index.txt, docs/html/documentation.html,
350         docs/html/17_intro/porting.html:  Regenerate.
351
352 2003-04-23  Paolo Carlini  <pcarlini@unitus.it>
353
354         * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
355         belongs to basic_filebuf.
356         * testsuite/27_io/basic_fstream/3.cc: Likewise.
357         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
358         * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
359         instantiation (now belongs to basic_filebuf).
360         * testsuite/27_io/basic_iostream/3.cc: Likewise.
361         * testsuite/27_io/basic_istream/3.cc: Likewise.
362         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
363         _S_pback_size now belongs to basic_filebuf.
364         * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
365         instantiation (now belongs to basic_filebuf).
366         * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
367         belongs to basic_filebuf.
368         * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
369         instantiation (now belongs to basic_filebuf).
370         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
371         _S_pback_size now belongs to basic_filebuf.
372         * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
373         instantiation (now belongs to basic_filebuf).
374         * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
375         to basic_filebuf.
376         * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
377         instantiation (now belongs to basic_filebuf).
378         * testsuite/27_io/basic_stringstream/3.cc: Likewise.
379
380 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
381
382         * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
383         * configure: Regenerated.
384         
385 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
386         
387         * config/locale/generic/c_locale.h (__convert_from_v): Use
388         attribute unused.
389
390 2003-04-23  Phil Edwards  <pme@gcc.gnu.org>
391
392         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 60, partial
393         implementation only.
394         * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
395         Comment and change to comply with DR 60 and the effect on gcount().
396         * include/std/std_istream.h:  Update comments.
397         * testsuite/27_io/basic_istream/putback/char/1.cc (test01):  Add
398         comments about reasons for tests.  Test sync() against gcount().
399         * testsuite/27_io/basic_istream/seekg/char/2.cc:  New file, test
400         for effect on gcount().
401         * testsuite/27_io/basic_istream/tellg/char/2.cc:  New file, test
402         for effect on gcount().
403
404 2003-04-22  Loren J. Rittle  <ljrittle@acm.org>
405
406         * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
407         Adjust timing.
408
409 2003-04-22  Paolo Carlini  <pcarlini@unitus.it>
410
411         * include/std/std_streambuf.h (_S_pback_size, _M_pback,
412         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
413         _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
414         (basic_streambuf::basic_streambuf()): Adjust.
415         * include/std/std_fstream.h (_S_pback_size, _M_pback,
416         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
417         _M_pback_create(), _M_pback_destroy()): Moved here
418         from basic_streambuf.
419         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
420         Adjust.
421         (basic_filebuf::_S_pback_size): Add declaration.
422         * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
423         Remove declaration.
424
425 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
426
427         Consistently use _M_in_beg instead of eback(), _M_in_cur
428         instead of gptr(), and so on.
429         * include/bits/fstream.tcc (pbackfail, imbue): Here.
430         * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
431         * include/bits/streambuf.tcc (sbumpc, sputbackc,
432         __copy_streambufs): Ditto.
433         * include/std/std_streambuf.h (sgetc): Ditto.
434
435 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
436
437         * include/bits/sstream.tcc (pbackfail, overflow):
438         Formatting fixes.
439
440 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
441
442         * include/std/std_streambuf.h (uflow()): It's used only by
443         basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
444         therefore do not consider the _M_buf_unified == true case.
445
446         * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
447
448 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
449
450         * docs/html/ext/howto.html ('LWG Issues'):
451         Add issues 19, 90, 171, 231, 271.
452
453 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
454
455         * include/bits/sstream.tcc (pbackfail): Remove redundant
456         NULL pointer check from test involving _M_in_*.
457         (overflow, seekoff, seekpos): Const qualify bool variables.
458         * include/std/std_sstream.h (underflow): Remove redundant
459         NULL pointer check from test involving _M_in_*.
460         (_M_really_sync): Const qualify bool variables.
461         * src/fstream.cc (_M_underflow_common): Remove redundant
462         NULL pointer check from test involving _M_in_*, const qualify
463         bool variables.
464
465         * include/std/std_streambuf.h (sgetc): Remove redundant
466         variable.
467
468 2003-04-18  Paolo Carlini  <pcarlini@unitus.it>
469
470         According to 5.9 para 2 (second bullet) for pointers p, q
471         pointing to the same type, with  p == 0 and q == 0, (p < q)
472         is false.
473         * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
474         seekoff): Remove redundant NULL pointer checks from tests
475         involving _M_out_* and _M_in_*, const qualify bool variables.
476         (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
477         qualify bool variables.
478         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
479         Remove redundant NULL pointer checks from tests involving
480         _M_out_* and _M_in_*, const qualify bool variables.
481         * include/std/std_fstream.h (sync): Likewise.
482         (_M_is_indeterminate): Const qualify bool variables.
483         * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
484         NULL pointer checks from tests involving _M_out_* and _M_in_*,
485         const qualify bool variables.
486         (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
487         variables.
488
489 2003-04-18  Loren J. Rittle  <ljrittle@acm.org>
490
491         * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
492         C99 FP macros, if actually captured.
493
494         * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
495         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
496         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
497         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
498         * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
499         New macro.
500         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
501         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
502         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
503         * include/c_std/std_cstdlib.h: Use new macros.
504         * include/c_std/std_cstdio.h: Use new macros.
505         * include/c_std/std_cwchar.h: Use new macros.
506
507 2003-04-17  Benjamin Kosnik  <bkoz@redhat.com>
508
509         PR libstdc++/9555
510         * include/bits/ostream.tcc: Catch all exceptions for formatted
511         output, instead of std::exception and derivatives.
512         * include/bits/istream.tcc: Same.
513         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
514         * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
515         * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
516         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
517         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
518         * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
519         New.
520
521 2003-04-17  Phil Edwards  <pme@gcc.gnu.org>
522
523         * include/bits/c++config:  Minor cosmetic tweaks.
524
525 2003-04-17  Loren J. Rittle  <ljrittle@acm.org>
526
527         * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
528         * include/Makefile.am (pch_input): Find in ${target_builddir}.
529         (pch_output): Rename to...
530         (pch_output_builddir): ..this.  Find in ${target_builddir}.
531         (pch_source): Tweak.
532         (pch_build): Key off a built file.
533         (pch_output rule): Rename to...
534         (pch_input rule): ...this.  Produce ${pch_output_builddir}
535         instead of ${pch_output}.
536         (install-pch rule): Install ${pch_output_builddir}.
537         * include/Makefile.in: Regenerated.
538
539 2003-04-17  Paolo Carlini  <pcarlini@unitus.it>
540
541         * include/std/std_streambuf.h (setp): _M_out_lim, being
542         the end limit of used put area, is set equal to _M_out_beg.
543
544 2003-04-16  Benjamin Kosnik  <bkoz@redhat.com>
545
546         * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
547         * aclocal.m4: Regenerated.
548         * configure.in: Remove old demangler bits.
549         Call pch checks.
550         * configure: Regenerate.
551         * config.h.in: Regenerate.
552         * include/Makefile.am (allstamps): Now allstamped.
553         (allcreated): Define this.
554         (all-local): Use 'em.
555         Conditionally define pch_build, pch_install based on
556         GLIBCPP_BUILD_PCH.
557         (${pch_output}): New rule.
558         (install-pch): New rule.
559         (install-headers): New rule.
560         (install-data-local): Install headers and conditionally pch.
561         * include/Makefile.in: Regenerate.
562         * testsuite_flags.in (--build-cxx): Use pch file.
563
564 2003-04-16  Jonathan Wakely  <redi@gcc.gnu.org>
565
566         * docs/html/ext/sgiexts.html: Fix path to stylesheet.
567
568 2003-04-15  Benjamin Kosnik  <bkoz at redhat dot com>
569             Paolo Carlini  <pcarlini at unitus dot it>
570
571         PR libstdc++/9423
572         * docs/html/27_io/howto.html
573         ('The buffering is screwing up my program!'): Explain that
574         opening counts as an I/O operation.
575
576 2003-04-15  Andreas Tobler  <a.tobler@schweiz.ch>
577
578         * testsuite/thread/pthread1.cc: Enable for darwin test.
579         * testsuite/thread/pthread2.cc: Same.
580         * testsuite/thread/pthread3.cc: Same.
581         * testsuite/thread/pthread4.cc: Same.
582         * testsuite/thread/pthread5.cc: Same.
583         * testsuite/thread/pthread6.cc: Same.
584  
585 2003-04-15  Loren J. Rittle  <ljrittle@acm.org>
586
587         libstdc++/7680
588         * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
589         Populate it with multiple legal ways to obtain the C99 float
590         transcendentals.  Use them instead of direct global reference.
591         (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
592         * docs/html/17_intro/porting.texi
593         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
594         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
595         (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
596         * config/os/bsd/freebsd/os_defines.h
597         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
598         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
599         * testsuite/26_numerics/c_math_dynamic.cc: New file.
600
601 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
602             Benjamin Kosnik  <bkoz@redhat.com>
603
604         * config/os/generic/ctype_inline.h: Fix.
605         
606 2003-04-14  Benjamin Kosnik  <bkoz@redhat.com>
607         
608         * testsuite/testsuite_hooks.h
609         (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
610         Change to try_named_locale.
611         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
612
613         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
614         try_named_locale.
615         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
616         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
617         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
618         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
619         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
620         * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
621         * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
622         * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
623         * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
624         * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
625         * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
626         * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
627         * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
628         * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
629         * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
630         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
631         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
632         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
633         * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
634         * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
635         * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
636         * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
637         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
638         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
639         * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
640         * testsuite/22_locale/collate/compare/char/1.cc: Same.
641         * testsuite/22_locale/collate/compare/char/2.cc: Same.
642         * testsuite/22_locale/collate/compare/char/3.cc: Same.
643         * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
644         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
645         * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
646         * testsuite/22_locale/collate/hash/char/2.cc: Same.
647         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
648         * testsuite/22_locale/collate/transform/char/2.cc: Same.
649         * testsuite/22_locale/collate/transform/char/3.cc: Same.
650         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
651         * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
652         * testsuite/22_locale/collate_byname/1.cc: Same.
653         * testsuite/22_locale/ctype/is/char/2.cc: Same.
654         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
655         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
656         * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
657         * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
658         * testsuite/22_locale/facet/2.cc: Same.
659         * testsuite/22_locale/locale/cons/2.cc: Same.
660         * testsuite/22_locale/locale/cons/4.cc: Same.
661         * testsuite/22_locale/locale/cons/5.cc: Same.
662         * testsuite/22_locale/locale/cons/7.cc: Same.
663         * testsuite/22_locale/locale/cons/7222-c.cc: Same.
664         * testsuite/22_locale/locale/cons/7222-env.cc: Same.
665         * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
666         * testsuite/22_locale/messages/members/char/1.cc: Same.
667         * testsuite/22_locale/messages/members/char/2.cc: Same.
668         * testsuite/22_locale/messages/members/char/3.cc: Same.
669         * testsuite/22_locale/messages_byname/1.cc: Same.
670         * testsuite/22_locale/money_get/get/char/1.cc: Same.
671         * testsuite/22_locale/money_get/get/char/2.cc: Same.
672         * testsuite/22_locale/money_get/get/char/3.cc: Same.
673         * testsuite/22_locale/money_get/get/char/4.cc: Same.
674         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
675         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
676         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
677         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
678         * testsuite/22_locale/money_put/put/char/1.cc: Same.
679         * testsuite/22_locale/money_put/put/char/2.cc: Same.
680         * testsuite/22_locale/money_put/put/char/3.cc: Same.
681         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
682         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
683         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
684         * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
685         * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
686         * testsuite/22_locale/moneypunct_byname/1.cc: Same.
687         * testsuite/22_locale/num_get/get/char/1.cc: Same.
688         * testsuite/22_locale/num_get/get/char/2.cc: Same.
689         * testsuite/22_locale/num_get/get/char/3.cc: Same.
690         * testsuite/22_locale/num_get/get/char/5.cc: Same.
691         * testsuite/22_locale/num_get/get/char/6.cc: Same.
692         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
693         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
694         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
695         * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
696         * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
697         * testsuite/22_locale/num_put/put/char/1.cc: Same.
698         * testsuite/22_locale/num_put/put/char/2.cc: Same.
699         * testsuite/22_locale/num_put/put/char/3.cc: Same.
700         * testsuite/22_locale/num_put/put/char/5.cc: Same.
701         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
702         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
703         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
704         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
705         * testsuite/22_locale/numpunct/members/char/1.cc: Same.
706         * testsuite/22_locale/numpunct/members/char/2.cc: Same.
707         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
708         * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
709         * testsuite/22_locale/numpunct_byname/1.cc: Same.
710         * testsuite/22_locale/numpunct_byname/2.cc: Same.
711         * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
712         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
713         * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
714         * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
715         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
716         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
717         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
718         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
719         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
720         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
721         * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
722         * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
723         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
724         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
725         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
726         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
727         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
728         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
729         * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
730         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
731         * testsuite/22_locale/time_put/put/char/1.cc: Same.
732         * testsuite/22_locale/time_put/put/char/2.cc: Same.
733         * testsuite/22_locale/time_put/put/char/3.cc: Same.
734         * testsuite/22_locale/time_put/put/char/4.cc: Same.
735         * testsuite/22_locale/time_put/put/char/5.cc: Same.
736         * testsuite/22_locale/time_put/put/char/6.cc: Same.
737         * testsuite/22_locale/time_put/put/char/7.cc: Same.
738         * testsuite/22_locale/time_put/put/char/8.cc: Same.
739         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
740         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
741         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
742         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
743         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
744         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
745         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
746         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
747         * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
748         * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
749         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
750         * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
751         * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
752         
753 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
754             
755         * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
756         solaris includes, not generic.
757
758 2003-04-14  Loren J. Rittle  <ljrittle@acm.org>
759
760         * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
761
762         * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
763         * include/bits/concept_check.h: Fix multi-line comment.
764         * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
765         when target is *-*-freebsd*.
766
767 2003-04-14  Nathan Myers  <ncm@cantrip.org>
768             Paolo Carlini  <pcarlini@unitus.it>
769
770         PR libstdc++/9701 (in_avail())
771         * include/std/std_streambuf.h (in_avail): Simplify, in_avail
772         doesn't care if there is anything in some putback cell.
773         * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
774
775         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
776         unused string literals.
777
778 2003-04-14  Paolo Carlini  <pcarlini@unitus.it>
779
780         * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
781         _M_out_end, _M_set_indeterminate() does it.
782
783 2003-04-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
784
785         * os/hpux/ctype_inline.h: Replace with gnu-linux version.
786
787 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
788
789         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
790         Change basic_streambuf instantiation to "unsigned char".
791         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
792
793 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
794
795         Remove _M_buf_size_opt, use directly _M_buf_size instead.
796         * include/bits/fstream.tcc
797         (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
798         references to _M_buf_size_opt. 
799         * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
800         * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
801         __bufsize to __in_avail and __size_opt to __buf_size.
802         * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
803         * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
804         * include/std/std_streambuf.h (~basic_streambuf(),
805         basic_streambuf()): Likewise, remove _M_buf_size_opt member.
806         * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
807         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
808         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
809         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
810         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
811         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
812         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
813         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
814         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
815         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
816         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
817         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
818
819 2003-04-12  Paolo Carlini  <pcarlini at unitus dot it>
820
821         * include/ext/stdio_filebuf.h
822         (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
823         stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
824         _M_buf_size_opt == 0 only means "not to use an allocated buffer"
825         since a stack-based buffer is used for small values of the size_t
826         parameter.
827         * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
828         If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
829         * testsuite/ext/stdio_filebuf_2.cc: New testfile.
830
831 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
832
833         PR libstdc++/9533
834         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
835         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
836
837 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
838
839         * testsuite/22_locale/locale/cons/3.cc: Split.
840         * testsuite/22_locale/locale/cons/7222-c.cc: New.
841         * testsuite/22_locale/locale/cons/7222-env.cc: New.     
842         Check before trying to create a locale from the environment.
843         * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
844         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
845         Adjust includes.
846         
847 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
848
849         * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
850         locale to construct this hybrid locale, not the global locale.
851
852 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
853
854         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
855         instantiation for AIX.
856         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
857         * testsuite/25_algorithms/min_max.cc: Same.
858         
859 2003-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
860
861         * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
862         twice.  Always set _M_cfile to 0 when stream was open.
863
864 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
865
866         Reshuffle 27_io testsuite.  * testsuite/27_io/filebuf.cc,
867         filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
868         filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
869         filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
870         filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
871         ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
872         ifstream_members.cc, instantiations.cc, ios.cc,
873         ios_base_callbacks.cc, ios_base_members_static-1.tst,
874         ios_base_members_static.cc, ios_base_storage.cc,
875         ios_base_types.cc, ios_ctor.cc, ios_init.cc,
876         ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
877         iostream.cc, iostream_members.cc, istream.cc,
878         istream_exception.cc, istream_extractor_char.cc,
879         istream_extractor_other-1.tst, istream_extractor_other-1.txt,
880         istream_extractor_other-2.tst, istream_extractor_other.cc,
881         istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
882         istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
883         istream_sentry.cc, istream_unformatted-1.tst,
884         istream_unformatted-1.txt, istream_unformatted.cc,
885         istringstream.cc, istringstream_members.cc,
886         narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
887         ofstream_members.cc, ostream.cc, ostream_exception.cc,
888         ostream_fail.cc, ostream_inserter_arith.cc,
889         ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
890         ostream_inserter_char.cc, ostream_inserter_other-1.tst,
891         ostream_inserter_other-2.tst, ostream_inserter_other.cc,
892         ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
893         ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
894         ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
895         streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
896         stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
897         wide_stream_objects.cc, istream_extractor_arith/01.cc,
898         istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
899         istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
900         istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
901         istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
902         istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
903         Split into...
904         * 27_io/basic_filebuf/1.cc: New.
905         * 27_io/basic_filebuf/2.cc: New.
906         * 27_io/basic_filebuf/3.cc: New.
907         * 27_io/basic_filebuf/4.cc: New.
908         * 27_io/basic_filebuf/close/char/1.cc: New.
909         * 27_io/basic_filebuf/close/char/2.cc: New.
910         * 27_io/basic_filebuf/close/char/3.cc: New.
911         * 27_io/basic_filebuf/close/char/4879.cc: New.
912         * 27_io/basic_filebuf/close/char/9964.cc: New.
913         * 27_io/basic_filebuf/imbue/char/1.cc: New.
914         * 27_io/basic_filebuf/imbue/char/9322.cc: New.
915         * 27_io/basic_filebuf/in_avail/char/1.cc: New.
916         * 27_io/basic_filebuf/is_open/char/1.cc: New.
917         * 27_io/basic_filebuf/open/char/1.cc: New.
918         * 27_io/basic_filebuf/open/char/2.cc: New.
919         * 27_io/basic_filebuf/open/char/3.cc: New.
920         * 27_io/basic_filebuf/open/char/9507.cc: New.
921         * 27_io/basic_filebuf/overflow/char/1.cc: New.
922         * 27_io/basic_filebuf/overflow/char/3599.cc: New.
923         * 27_io/basic_filebuf/overflow/char/9169.cc: New.
924         * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
925         * 27_io/basic_filebuf/overflow/char/9988.cc: New.
926         * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
927         * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
928         * 27_io/basic_filebuf/seekoff/char/1.cc: New.
929         * 27_io/basic_filebuf/seekoff/char/2.cc: New.
930         * 27_io/basic_filebuf/seekpos/char/1.cc: New.
931         * 27_io/basic_filebuf/seekpos/char/2.cc: New.
932         * 27_io/basic_filebuf/setbuf/char/1.cc: New.
933         * 27_io/basic_filebuf/setbuf/char/2.cc: New.
934         * 27_io/basic_filebuf/setbuf/char/3.cc: New.
935         * 27_io/basic_filebuf/sgetc/char/1.cc: New.
936         * 27_io/basic_filebuf/sgetn/char/1.cc: New.
937         * 27_io/basic_filebuf/sgetn/char/2.cc: New.
938         * 27_io/basic_filebuf/snextc/char/1.cc: New.
939         * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
940         * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
941         * 27_io/basic_filebuf/sputc/char/1.cc: New.
942         * 27_io/basic_filebuf/sputc/char/1057.cc: New.
943         * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
944         * 27_io/basic_filebuf/sputn/char/1.cc: New.
945         * 27_io/basic_filebuf/sputn/char/1057.cc: New.
946         * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
947         * 27_io/basic_filebuf/sungetc/char/1.cc: New.
948         * 27_io/basic_filebuf/sync/char/1057.cc: New.
949         * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
950         * 27_io/basic_filebuf/underflow/char/10097.cc: New.
951         * 27_io/basic_fstream/1.cc: New.
952         * 27_io/basic_fstream/2.cc: New.
953         * 27_io/basic_fstream/3.cc: New.
954         * 27_io/basic_fstream/4.cc: New.
955         * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
956         * 27_io/basic_ifstream/1.cc: New.
957         * 27_io/basic_ifstream/2.cc: New.
958         * 27_io/basic_ifstream/3.cc: New.
959         * 27_io/basic_ifstream/4.cc: New.
960         * 27_io/basic_ifstream/cons/char/1.cc: New.
961         * 27_io/basic_ifstream/open/char/1.cc: New.
962         * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
963         * 27_io/basic_ios/1.cc: New.
964         * 27_io/basic_ios/2.cc: New.
965         * 27_io/basic_ios/3.cc: New.
966         * 27_io/basic_ios/4.cc: New.
967         * 27_io/basic_ios/clear/char/1.cc: New.
968         * 27_io/basic_ios/cons/char/1.cc: New.
969         * 27_io/basic_ios/cons/char/2.cc: New.
970         * 27_io/basic_ios/cons/char/3.cc: New.
971         * 27_io/basic_ios/copyfmt/char/1.cc: New.
972         * 27_io/basic_ios/copyfmt/char/2.cc: New.
973         * 27_io/basic_ios/exceptions/char/1.cc: New.
974         * 27_io/basic_ios/locales/char/1.cc: New.
975         * 27_io/basic_iostream/1.cc: New.
976         * 27_io/basic_iostream/2.cc: New.
977         * 27_io/basic_iostream/3.cc: New.
978         * 27_io/basic_iostream/4.cc: New.
979         * 27_io/basic_istream/1.cc: New.
980         * 27_io/basic_istream/2.cc: New.
981         * 27_io/basic_istream/3.cc: New.
982         * 27_io/basic_istream/4.cc: New.
983         * 27_io/basic_istream/exceptions/char/9561.cc: New.
984         * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
985         * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
986         * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
987         * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
988         * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
989         * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
990         * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
991         * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
992         * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
993         * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
994         * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
995         * 27_io/basic_istream/extractors_character/char/1.cc: New.
996         * 27_io/basic_istream/extractors_character/char/2.cc: New.
997         * 27_io/basic_istream/extractors_character/char/3.cc: New.
998         * 27_io/basic_istream/extractors_character/char/9826.cc: New.
999         * 27_io/basic_istream/extractors_other/char/1.cc: New.
1000         * 27_io/basic_istream/extractors_other/char/2.cc: New.
1001         * 27_io/basic_istream/extractors_other/char/3.cc: New.
1002         * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
1003         * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
1004         * 27_io/basic_istream/get/char/1.cc: New.
1005         * 27_io/basic_istream/get/char/2.cc: New.
1006         * 27_io/basic_istream/getline/char/1.cc: New.
1007         * 27_io/basic_istream/getline/char/2.cc: New.
1008         * 27_io/basic_istream/getline/char/3.cc: New.
1009         * 27_io/basic_istream/ignore/char/1.cc: New.
1010         * 27_io/basic_istream/ignore/char/6360.cc: New.
1011         * 27_io/basic_istream/ignore/char/7220.cc: New.
1012         * 27_io/basic_istream/peek/char/1.cc: New.
1013         * 27_io/basic_istream/peek/char/6414.cc: New.
1014         * 27_io/basic_istream/putback/char/1.cc: New.
1015         * 27_io/basic_istream/read/char/1.cc: New.
1016         * 27_io/basic_istream/read/char/2.cc: New.
1017         * 27_io/basic_istream/read/char/3.cc: New.
1018         * 27_io/basic_istream/readsome/char/6746-1.cc: New.
1019         * 27_io/basic_istream/readsome/char/6746-2.cc: New.
1020         * 27_io/basic_istream/readsome/char/8258.cc: New.
1021         * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
1022         * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
1023         * 27_io/basic_istream/seekg/char/8348-1.cc: New.
1024         * 27_io/basic_istream/seekg/char/8348-2.cc: New.
1025         * 27_io/basic_istream/seekg/char/fstream.cc: New.
1026         * 27_io/basic_istream/seekg/char/sstream.cc: New.
1027         * 27_io/basic_istream/sentry/char/1.cc: New.
1028         * 27_io/basic_istream/sentry/char/2.cc: New.
1029         * 27_io/basic_istream/sentry/char/3.cc: New.
1030         * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
1031         * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
1032         * 27_io/basic_istream/tellg/char/1.cc: New.
1033         * 27_io/basic_istream/tellg/char/8348.cc: New.
1034         * 27_io/basic_istream/tellg/char/fstream.cc: New.
1035         * 27_io/basic_istream/tellg/char/sstream.cc: New.
1036         * 27_io/basic_istream/ws/char/1.cc: New.
1037         * 27_io/basic_istringstream/1.cc: New.
1038         * 27_io/basic_istringstream/2.cc: New.
1039         * 27_io/basic_istringstream/3.cc: New.
1040         * 27_io/basic_istringstream/4.cc: New.
1041         * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
1042         * 27_io/basic_istringstream/str/char/1.cc: New.
1043         * 27_io/basic_ofstream/1.cc: New.
1044         * 27_io/basic_ofstream/2.cc: New.
1045         * 27_io/basic_ofstream/3.cc: New.
1046         * 27_io/basic_ofstream/4.cc: New.
1047         * 27_io/basic_ofstream/cons/char/2.cc: New.
1048         * 27_io/basic_ofstream/open/char/1.cc: New.
1049         * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
1050         * 27_io/basic_ostream/1.cc: New.
1051         * 27_io/basic_ostream/2.cc: New.
1052         * 27_io/basic_ostream/3.cc: New.
1053         * 27_io/basic_ostream/4.cc: New.
1054         * 27_io/basic_ostream/cons/char/9827.cc: New.
1055         * 27_io/basic_ostream/endl/char/1.cc: New.
1056         * 27_io/basic_ostream/ends/char/1.cc: New.
1057         * 27_io/basic_ostream/ends/char/2.cc: New.
1058         * 27_io/basic_ostream/exceptions/char/9561.cc: New.
1059         * 27_io/basic_ostream/flush/char/1.cc: New.
1060         * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
1061         * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
1062         * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
1063         * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
1064         * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
1065         * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
1066         * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
1067         * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
1068         * 27_io/basic_ostream/inserters_character/char/1.cc: New.
1069         * 27_io/basic_ostream/inserters_character/char/2.cc: New.
1070         * 27_io/basic_ostream/inserters_character/char/3.cc: New.
1071         * 27_io/basic_ostream/inserters_character/char/4.cc: New.
1072         * 27_io/basic_ostream/inserters_character/char/5.cc: New.
1073         * 27_io/basic_ostream/inserters_character/char/6.cc: New.
1074         * 27_io/basic_ostream/inserters_character/char/8.cc: New.
1075         * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
1076         * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
1077         * 27_io/basic_ostream/inserters_other/char/1.cc: New.
1078         * 27_io/basic_ostream/inserters_other/char/2.cc: New.
1079         * 27_io/basic_ostream/inserters_other/char/3.cc: New.
1080         * 27_io/basic_ostream/inserters_other/char/4.cc: New.
1081         * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
1082         * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
1083         * 27_io/basic_ostream/sentry/char/1.cc: New.
1084         * 27_io/basic_ostream/sentry/char/2.cc: New.
1085         * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
1086         * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
1087         * 27_io/basic_ostream/tellp/char/1.cc: New.
1088         * 27_io/basic_ostream/tellp/char/2.cc: New.
1089         * 27_io/basic_ostringstream/1.cc: New.
1090         * 27_io/basic_ostringstream/2.cc: New.
1091         * 27_io/basic_ostringstream/3.cc: New.
1092         * 27_io/basic_ostringstream/4.cc: New.
1093         * 27_io/basic_ostringstream/cons/char/3.cc: New.
1094         * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
1095         * 27_io/basic_ostringstream/str/char/1.cc: New.
1096         * 27_io/basic_ostringstream/str/char/2.cc: New.
1097         * 27_io/basic_streambuf/1.cc: New.
1098         * 27_io/basic_streambuf/2.cc: New.
1099         * 27_io/basic_streambuf/3.cc: New.
1100         * 27_io/basic_streambuf/cons/char/1.cc: New.
1101         * 27_io/basic_streambuf/imbue/char/1.cc: New.
1102         * 27_io/basic_streambuf/imbue/char/9322.cc: New.
1103         * 27_io/basic_streambuf/overflow/char/1.cc: New.
1104         * 27_io/basic_streambuf/overflow/char/2.cc: New.
1105         * 27_io/basic_streambuf/overflow/char/3599.cc: New.
1106         * 27_io/basic_streambuf/sgetc/char/1.cc: New.
1107         * 27_io/basic_streambuf/sgetn/char/1.cc: New.
1108         * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
1109         * 27_io/basic_streambuf/sputc/char/1057.cc: New.
1110         * 27_io/basic_streambuf/sputn/char/1.cc: New.
1111         * 27_io/basic_streambuf/sputn/char/1057.cc: New.
1112         * 27_io/basic_streambuf/sync/char/1057.cc: New.
1113         * 27_io/basic_stringbuf/1.cc: New.
1114         * 27_io/basic_stringbuf/2.cc: New.
1115         * 27_io/basic_stringbuf/3.cc: New.
1116         * 27_io/basic_stringbuf/4.cc: New.
1117         * 27_io/basic_stringbuf/5.cc: New.
1118         * 27_io/basic_stringbuf/imbue/char/1.cc: New.
1119         * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
1120         * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
1121         * 27_io/basic_stringbuf/overflow/char/2.cc: New.
1122         * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
1123         * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
1124         * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
1125         * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
1126         * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
1127         * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
1128         * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
1129         * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
1130         * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
1131         * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
1132         * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
1133         * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
1134         * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
1135         * 27_io/basic_stringbuf/snextc/char/1.cc: New.
1136         * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
1137         * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
1138         * 27_io/basic_stringbuf/sputc/char/1.cc: New.
1139         * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
1140         * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
1141         * 27_io/basic_stringbuf/sputn/char/1.cc: New.
1142         * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
1143         * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
1144         * 27_io/basic_stringbuf/str/char/1.cc: New.
1145         * 27_io/basic_stringbuf/str/char/2.cc: New.
1146         * 27_io/basic_stringbuf/str/char/3.cc: New.
1147         * 27_io/basic_stringbuf/str/char/3955.cc: New.
1148         * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
1149         * 27_io/basic_stringbuf/sync/char/1057.cc: New.
1150         * 27_io/basic_stringstream/1.cc: New.
1151         * 27_io/basic_stringstream/2.cc: New.
1152         * 27_io/basic_stringstream/3.cc: New.
1153         * 27_io/basic_stringstream/4.cc: New.
1154         * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
1155         * 27_io/basic_stringstream/str/char/1.cc: New.
1156         * 27_io/basic_stringstream/str/char/2.cc: New.
1157         * 27_io/basic_stringstream/str/char/3.cc: New.
1158         * 27_io/basic_stringstream/str/char/4.cc: New.
1159         * 27_io/fpos/1.cc: New.
1160         * 27_io/fpos/2.cc: New.
1161         * 27_io/fpos/3.cc: New.
1162         * 27_io/ios_base/callbacks/1.cc: New.
1163         * 27_io/ios_base/state/1.cc: New.
1164         * 27_io/ios_base/storage/1.cc: New.
1165         * 27_io/ios_base/storage/2.cc: New.
1166         * 27_io/ios_base/storage/3.cc: New.
1167         * 27_io/ios_base/sync_with_stdio/1.cc: New.
1168         * 27_io/ios_base/sync_with_stdio/2.cc: New.
1169         * 27_io/manipulators/adjustfield/char/1.cc: New.
1170         * 27_io/manipulators/adjustfield/char/2.cc: New.
1171         * 27_io/manipulators/basefield/char/1.cc: New.
1172         * 27_io/manipulators/standard/char/1.cc: New.
1173         * 27_io/manipulators/standard/char/2.cc: New.
1174         * 27_io/objects/char/1.cc: New.
1175         * 27_io/objects/char/2.cc: New.
1176         * 27_io/objects/char/2523-1_xin.cc: New.
1177         * 27_io/objects/char/2523-1_xin.in: New.
1178         * 27_io/objects/char/2523-2_xin.cc: New.
1179         * 27_io/objects/char/2523-2_xin.in: New.
1180         * 27_io/objects/char/3045.cc: New.
1181         * 27_io/objects/char/3647.cc: New.
1182         * 27_io/objects/char/3_xin.cc: New.
1183         * 27_io/objects/char/3_xin.in: New.
1184         * 27_io/objects/char/4_xin.cc: New.
1185         * 27_io/objects/char/4_xin.in: New.
1186         * 27_io/objects/char/5268.cc: New.
1187         * 27_io/objects/char/5280_xin.cc: New.
1188         * 27_io/objects/char/5280_xin.in: New.
1189         * 27_io/objects/char/6548_xin.cc: New.
1190         * 27_io/objects/char/6548_xin.in: New.
1191         * 27_io/objects/char/6648-1_xin.cc: New.
1192         * 27_io/objects/char/6648-1_xin.in: New.
1193         * 27_io/objects/char/6648-2_xin.cc: New.
1194         * 27_io/objects/char/6648-2_xin.in: New.
1195         * 27_io/objects/char/7744_xin.cc: New.
1196         * 27_io/objects/char/7744_xin.in: New.
1197         * 27_io/objects/wchar_t/1.cc: New.
1198         * 27_io/types/1.cc: New.
1199         * 27_io/types/2.cc: New.
1200         * data/filebuf_members-1.tst: New.
1201         * data/filebuf_members-1.txt: New.
1202         * data/filebuf_virtuals-1.tst: New.
1203         * data/filebuf_virtuals-1.txt: New.
1204         * data/filebuf_virtuals-2.tst: New.
1205         * data/filebuf_virtuals-3.tst: New.
1206         * data/ifstream_members-1.tst: New.
1207         * data/ifstream_members-1.txt: New.
1208         * data/ios_base_members_static-1.tst: New.
1209         * data/istream_extractor_other-1.tst: New.
1210         * data/istream_extractor_other-1.txt: New.
1211         * data/istream_extractor_other-2.tst: New.
1212         * data/istream_seeks-1.tst: New.
1213         * data/istream_seeks-1.txt: New.
1214         * data/istream_seeks-2.tst: New.
1215         * data/istream_seeks-3.tst: New.
1216         * data/istream_unformatted-1.tst: New.
1217         * data/istream_unformatted-1.txt: New.
1218         * data/ofstream_members-1.tst: New.
1219         * data/ostream_inserter_char-1.tst: New.
1220         * data/ostream_inserter_char-1.txt: New.
1221         * data/ostream_inserter_other-1.tst: New.
1222         * data/ostream_inserter_other-2.tst: New.
1223         * data/ostream_seeks-1.tst: New.
1224
1225 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
1226
1227         * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
1228         requirement that __mode must be strict input or output.
1229
1230         * include/std/std_streambuf.h (basic_streambuf::setp): Set
1231         _M_out_lim.
1232         
1233         * include/std/std_sstream.h (basic_strinbuf::str): Zero length
1234         output string shouldn't core.
1235         (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
1236         type.
1237         * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
1238         
1239         * include/bits/istream.tcc (basic_istream::putback): Set gcount to
1240         zero.
1241
1242 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
1243
1244         * testsuite/data: New directory.
1245         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
1246         to copy files from the testsuite data directory.        
1247         (libstdc++-v3-list-sourcefiles): Add another test list filter, for
1248         testfiles containing _xin, which now means this is an interactive
1249         test and should be run with the interactive dejagnu hooks.
1250         * testsuite/Makefile.am: Remove testsuite_* files.
1251         * testsuite/Makefile.in: Regenerate.
1252         
1253 2003-04-09  Zack Weinberg  <zack@codesourcery.com>
1254
1255         * docs/html/install.html: Document complete list of locales
1256         required by test suite.  Document procedure for installing
1257         said locales under Debian.  Solicit instructions for other
1258         operating systems.
1259
1260 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
1261
1262         * include/bits/sstream.tcc (overflow): Make sure operands of min
1263         and max have the same type.
1264
1265 2003-04-04  Jerry Quinn  <jlquinn@optonline.net>
1266
1267         PR libstdc++/10276
1268         * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
1269         initialization.
1270
1271 2003-03-31  Paolo Carlini  <pcarlini@unitus.it>
1272
1273         * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
1274         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
1275         Don't set _M_out_end.
1276         (basic_filebuf::overflow): Replace _M_out_buf_size() with
1277         this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
1278         * include/bits/sstream.tcc (basic_stringbuf::overflow):
1279         Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
1280         * include/bits/streambuf.tcc (basic_streambuf::sputc):
1281         Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
1282         (basic_streambuf::xsputn): Replace _M_out_buf_size() with
1283         _M_out_end - _M_out_cur.
1284         (__copy_streambufs): Likewise.
1285         * include/std/std_fstream.h (_M_set_determinate): Set
1286         _M_out_end here.
1287
1288 2003-03-30  Paolo Carlini  <pcarlini@unitus.it>
1289
1290         * include/bits/fstream.tcc (basic_filebuf::showmanyc,
1291         _M_convert_to_external, _M_really_overflow, seekoff): Fix
1292         test for synced buffer.
1293         * include/std/std_fstream.h (sync): Likewise.
1294         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
1295         basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
1296
1297 2003-03-28  Benjamin Kosnik  <bkoz@redhat.com>
1298
1299         * include/std/std_sstream.h (basic_istringstream): Adjust
1300         initialization.
1301         (basic_ostringstream): Same.
1302         (basic_stringstream): Same.
1303         * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
1304         (basic_ofstream): Same.
1305         (basic_fstream): Same.
1306         * include/std/std_ostream.h (basic_ostrem): Add protected ctor
1307         that does not call init.
1308         * include/std/std_istream.h (basic_istream): Same.
1309         (basic_iostream): Construct istream, ostream uninitialized, use
1310         init to initialize just once. Add protected ctor that does not
1311         call init.
1312
1313 2003-03-28  Paolo Carlini  <pcarlini@unitus.it>
1314             Nathan Myers  <ncm@cantrip.org>
1315
1316         PR libstdc++/9533
1317         * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
1318         call underflow().
1319         (basic_filebuf<>::showmanyc): Use the information provided
1320         by codecvt and __basic_file<>::showmanyc_helper to implement
1321         a non-trivial showmanyc.
1322         * config/io/basic_file_stdio.h
1323         (__basic_file<>::showmanyc_helper): New, declare.
1324         * config/io/basic_file_stdio.cc
1325         (__basic_file<>::showmanyc_helper): Define.
1326         (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
1327         (__basic_file<char>::open): Don't call fcntl().
1328         * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
1329         GLIBCPP_CHECK_POLL): New macros.
1330         * configure.in: Call here.
1331         * acconfig.h: Add #undefs for the corresponding symbols.
1332         * aclocal.m4: Regenerate.
1333         * configure: Regenerate.
1334         * config.h.in: Regenerate.
1335
1336 2003-03-24  Benjamin Kosnik  <bkoz@redhat.com>
1337
1338         * config/linker-map.gnu: Remove string export restrictions.
1339
1340 2003-03-24  Paolo Carlini  <pcarlini@unitus.it>
1341
1342         * testsuite/21_strings/basic_string/find/char/1.cc: Remove
1343         find_first_of, find_last_of and find_last_not_of tests.
1344         * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
1345         tests here, new file.
1346         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
1347         remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
1348         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
1349         wchar_t find_first_of tests here, new file.
1350         * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
1351         tests here.
1352         * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
1353         tests here.
1354         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
1355         wchar_t find_last_of tests here.
1356         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
1357         wchar_t find_last_not_of tests here.
1358
1359 2003-03-22  Loren J. Rittle  <ljrittle@acm.org>
1360
1361         * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
1362         Correct return value.
1363
1364 2003-03-21  Jerry Quinn  <jlquinn@optonline.net>
1365
1366         PR libstdc++/5730
1367         * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
1368         * include/std/std_complex.h (norm):  Use faster,
1369         less accurate computation for builtin float types under --fast-math.
1370
1371 2003-03-21  Magnus Fromreide  <gnats@magfr.user.lysator.liu.se>
1372
1373         * testsuite/testsuite_hooks.h: Fix warning nits.
1374
1375 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
1376
1377         * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
1378         Only .set mips2 for the o32 ABI.
1379
1380 2003-03-19  Paolo Carlini  <pcarlini@unitus.it>
1381
1382         * testsuite/21_strings/char_traits/requirements/char/1.cc:
1383         Test char not wchar_t.
1384
1385 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
1386
1387         * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
1388         Correct size, taking into account sizeof(wchar_t).
1389
1390 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
1391
1392         Reshuffle 21_strings testsuite.
1393         * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
1394         assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
1395         element_access.cc, operations.cc, char_traits_requirements.cc,
1396         find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
1397         compare.cc, inserters_extractors.cc, substr.cc: Split up, add
1398         wchar_t tests as follows.
1399         * 21_strings/basic_string/append/char/1.cc: New.
1400         * 21_strings/basic_string/append/wchar_t/1.cc: New.
1401         * 21_strings/basic_string/assign/char/1.cc: New.
1402         * 21_strings/basic_string/assign/char/2.cc: New.
1403         * 21_strings/basic_string/assign/char/3.cc: New.
1404         * 21_strings/basic_string/assign/wchar_t/1.cc: New.
1405         * 21_strings/basic_string/assign/wchar_t/2.cc: New.
1406         * 21_strings/basic_string/assign/wchar_t/3.cc: New.
1407         * 21_strings/basic_string/capacity/1.cc: New.
1408         * 21_strings/basic_string/capacity/char/1.cc: New.
1409         * 21_strings/basic_string/capacity/char/2.cc: New.
1410         * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
1411         * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
1412         * 21_strings/basic_string/compare/char/1.cc: New.
1413         * 21_strings/basic_string/compare/wchar_t/1.cc: New.
1414         * 21_strings/basic_string/cons/char/1.cc: New.
1415         * 21_strings/basic_string/cons/char/2.cc: New.
1416         * 21_strings/basic_string/cons/char/3.cc: New.
1417         * 21_strings/basic_string/cons/char/4.cc: New.
1418         * 21_strings/basic_string/cons/char/5.cc: New.
1419         * 21_strings/basic_string/cons/wchar_t/1.cc: New.
1420         * 21_strings/basic_string/cons/wchar_t/2.cc: New.
1421         * 21_strings/basic_string/cons/wchar_t/3.cc: New.
1422         * 21_strings/basic_string/cons/wchar_t/4.cc: New.
1423         * 21_strings/basic_string/cons/wchar_t/5.cc: New.
1424         * 21_strings/basic_string/element_access/char/1.cc: New.
1425         * 21_strings/basic_string/element_access/char/2.cc: New.
1426         * 21_strings/basic_string/element_access/char/3.cc: New.
1427         * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
1428         * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
1429         * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
1430         * 21_strings/basic_string/find/char/1.cc: New.
1431         * 21_strings/basic_string/find/wchar_t/1.cc: New.
1432         * 21_strings/basic_string/insert/char/1.cc: New.
1433         * 21_strings/basic_string/insert/char/2.cc: New.
1434         * 21_strings/basic_string/insert/wchar_t/1.cc: New.
1435         * 21_strings/basic_string/insert/wchar_t/2.cc: New.
1436         * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
1437         * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
1438         * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
1439         * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
1440         * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
1441         * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
1442         * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
1443         * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
1444         * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
1445         * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
1446         * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
1447         * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
1448         * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
1449         * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
1450         * 21_strings/basic_string/operators/char/1.cc: New.
1451         * 21_strings/basic_string/operators/char/2.cc: New.
1452         * 21_strings/basic_string/operators/wchar_t/1.cc: New.
1453         * 21_strings/basic_string/operators/wchar_t/2.cc: New.
1454         * 21_strings/basic_string/replace/char/1.cc: New.
1455         * 21_strings/basic_string/replace/char/2.cc: New.
1456         * 21_strings/basic_string/replace/char/3.cc: New.
1457         * 21_strings/basic_string/replace/char/4.cc: New.
1458         * 21_strings/basic_string/replace/char/5.cc: New.
1459         * 21_strings/basic_string/replace/wchar_t/1.cc: New.
1460         * 21_strings/basic_string/replace/wchar_t/2.cc: New.
1461         * 21_strings/basic_string/replace/wchar_t/3.cc: New.
1462         * 21_strings/basic_string/replace/wchar_t/4.cc: New.
1463         * 21_strings/basic_string/replace/wchar_t/5.cc: New.
1464         * 21_strings/basic_string/rfind/char/1.cc: New.
1465         * 21_strings/basic_string/rfind/char/2.cc: New.
1466         * 21_strings/basic_string/rfind/char/3.cc: New.
1467         * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
1468         * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
1469         * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
1470         * 21_strings/basic_string/substr/char/1.cc: New.
1471         * 21_strings/basic_string/substr/wchar_t/1.cc: New.
1472         * 21_strings/c_strings/char/1.cc: New.
1473         * 21_strings/c_strings/char/2.cc: New.
1474         * 21_strings/c_strings/wchar_t/1.cc: New.
1475         * 21_strings/c_strings/wchar_t/2.cc: New.
1476         * 21_strings/char_traits/requirements/char/1.cc: New.
1477         * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
1478         * 21_strings/char_traits/typedefs/char/1.cc: New.
1479
1480 2003-03-17  Paolo Carlini  <pcarlini@unitus.it>
1481             Petur Runolfsson  <peturr02@ru.is>
1482
1483         PR libstdc++/10097
1484         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
1485         basic_filebuf<wchar_t>::_M_underflow_common):
1486         if (gptr() < egptr()) return *gptr().
1487         * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
1488
1489         * testsuite/27_io/filebuf_members.cc (test_04): Minor
1490         changes: unlink fifo before making it, fix spelling error.
1491
1492 2003-03-17  Benjamin Kosnik  <bkoz@redhat.com>
1493
1494         * testsuite/Makefile.am (CLEANFILES): Add tmp*.
1495         * testsuite/Makefile.in: Regenerate.
1496         * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
1497         Cleanups.
1498
1499 2003-03-17  Petur Runolfsson  <peturr02@ru.is>
1500
1501         PR libstdc++/9964
1502         * include/bits/fstream.tcc (basic_filebuf::close):
1503         Always close file, even when write fails.
1504         * testsuite/27_io/filebuf_members.cc (test_07):  New test.
1505
1506 2003-03-17  Danny Smith  <dannysmith@users.sourceforge.net>
1507
1508         * libsupc++/Makefile.am (C_COMPILE): Remove.
1509         (LTCOMPILE): Likewise.
1510         * libsupc++/Makefile.in: Regenerate.
1511
1512 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
1513
1514         * testsuite/23_containers/bitset_members.cc: Add test variable.
1515         * testsuite/23_containers/map_insert.cc: Same.
1516         * testsuite/22_locale/ctype/cons/char/1.cc: Same.
1517         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
1518         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
1519         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
1520         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
1521         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
1522         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
1523         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
1524         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
1525         * testsuite/27_io/istream_exception.cc: Same.
1526         * testsuite/27_io/filebuf_virtuals.cc: Same.
1527         * testsuite/27_io/stringbuf_virtuals.cc: Same.
1528         * testsuite/27_io/ostream_inserter_arith.cc: Same.
1529         * testsuite/26_numerics/valarray_operators.cc: Same.
1530         * testsuite/26_numerics/slice.cc: Same.
1531         * testsuite/26_numerics/slice_array_assignment.cc: Same.
1532         * testsuite/24_iterators/istream_iterator.cc: Same.
1533         * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
1534
1535 2003-03-14  Petur Runolfsson  <peturr02@ru.is>
1536
1537         PR libstdc++/9581
1538         PR libstdc++/9870
1539         * config/locale/generic/ctype_members.cc,
1540         * config/locale/gnu/ctype_members.cc
1541         (ctype<wchar_t>::do_widen(char)):  Cast argument to
1542         unsigned char before passing to btowc.
1543         (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
1544         Convert characters with btowc instead of mbsrtowcs.
1545         (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
1546         char, char*):
1547         Convert characters with wctob instead of wcsrtombs.
1548         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc:  New test.
1549         * testsuite/22_locale/ctype/widen/wchar_t/2.cc:  New test.
1550         * testsuite/22_locale/ctype/widen/wchar_t/3.cc:  New test.
1551
1552 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
1553
1554         * include/stdc++.h: New.
1555         * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
1556         * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
1557         * include/Makefile.in: Regenerate.
1558         * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
1559         (--cxxflags): Put -g -O2 here.
1560         * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
1561
1562 2003-03-14  Loren J. Rittle  <ljrittle@acm.org>
1563
1564         * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
1565         missing named locale.
1566
1567 2003-03-14  Andreas Schwab  <schwab@suse.de>
1568
1569         * configure.in: Only append to makefiles that are newly created to
1570         avoid multiple multi-do/multi-clean rules.
1571         * configure: Rebuilt.
1572
1573 2003-03-13  Jonathan Wakely  <redi@gcc.gnu.org>
1574
1575         * docs/html/configopts.html, docs/html/documentation.html,
1576         docs/html/explanations.html, docs/html/install.html,
1577         docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
1578         invalid XHTML and make page header style consistent.
1579
1580 2003-03-12  Jonathan Wakely  <redi@gcc.gnu.org>
1581
1582         * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
1583         * docs/html/faq/index.txt: Regenerate.
1584         * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
1585
1586 2003-03-12  Andreas Schwab  <schwab@suse.de>
1587
1588         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
1589         glibcpp_toolexeclibdir.
1590         * aclocal.m4, configure: Rebuilt.
1591
1592 2003-03-11  Jonathan Wakely  <redi@gcc.gnu.org>
1593
1594         * docs/html/faq/index.html: Update text about location of headers.
1595         * docs/html/faq/index.txt: Regenerate.
1596
1597 2003-03-11  Carlo Wood  <carlo@alinoe.com>
1598
1599         * include/bits/demangle.h: Prepend accessors of
1600         class qualifier with 'get_' in order to fix warnings
1601         when compiling with -Wshadow.
1602
1603 2003-03-11  Loren J. Rittle  <ljrittle@acm.org>
1604
1605         * config/os/bsd/freebsd/ctype_inline.h:  Support _M_table
1606         when so installed.
1607         * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
1608
1609         * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
1610         report lack of setenv().
1611
1612 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
1613
1614         * config/io/basic_file_stdio.cc: include <unistd.h>.
1615
1616 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
1617             Nathan Myers  <ncm@cantrip.org>
1618
1619         PR libstdc++/7744
1620         * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
1621         seekoff, seekpos): Add a boolean parameter __stdio.
1622         * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
1623         seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
1624         fseek/ftell, respectively), otherwise read (write, lseek, lseek,
1625         respectively).
1626         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
1627         _M_really_overflow, seekoff): Use the boolean parameter in the calls.
1628         * include/std/std_fstream.h (sync): Likewise.
1629         * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
1630         * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
1631         libstdc++/8399 commit involving isatty(0).
1632         * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
1633         (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
1634         * configure.in: Remove call.
1635         * aclocal.m4: Regenerate.
1636         * config.h.in: Regenerate.
1637         * configure: Regenerate.
1638         * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
1639
1640 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
1641
1642         PR libstdc++/9988
1643         * include/bits/fstream.tcc (overflow): don't write EOF to file.
1644         * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
1645
1646 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
1647
1648         PR libstdc++/9561
1649         * include/bits/basic_ios.h (_M_setstate): New.
1650         * include/bits/ostream.tcc (operator<<): Use it.
1651         * include/bits/istream.tcc (operator>>): Use it.
1652         * include/std/std_ostream.h (operator<<): Make friends.
1653         * include/std/std_istream.h (operator>>): Make friends.
1654         * testsuite/27_io/ostream_exception.cc,
1655         testsuite/27_io/istream_exception.cc: New tests.
1656
1657 2003-03-08  Benjamin Kosnik  <bkoz@redhat.com>
1658
1659         * include/bits/locale_facets.tcc: Fix typo.
1660
1661 2003-03-08  Loren J. Rittle  <ljrittle@acm.org>
1662
1663         * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
1664
1665         * config/locale/generic/c_locale.cc
1666         (locale::facet::_S_create_c_locale): Throw runtime exception when
1667         unsupported language is specified.
1668         * testsuite/testsuite_hooks.h
1669         (run_test_wrapped_generic_locale_exception_catcher): New function.
1670         * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
1671         Suppress runtime exception thrown by generic implementation.
1672         (run_tests_wrapped_env): Likewise.
1673         (run_test_wrapped_generic_locale_exception_catcher): New function.
1674         * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
1675         * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
1676         * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
1677         * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
1678         * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
1679         * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
1680         * testsuite/22_locale/collate_byname/1.cc: New test wrap.
1681         * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
1682         * testsuite/22_locale/facet/2.cc: New test wrap.
1683         * testsuite/22_locale/locale/cons/4.cc: New test wrap.
1684         * testsuite/22_locale/locale/cons/5.cc: New test wrap.
1685         * testsuite/22_locale/locale/cons/7.cc: New test wrap.
1686         * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
1687         * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
1688         * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
1689         * testsuite/22_locale/messages_byname/1.cc: New test wrap.
1690         * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
1691         * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
1692         * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
1693         * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
1694         * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
1695         * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
1696         * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
1697         * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
1698         * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
1699         * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
1700         * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
1701         * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
1702         * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
1703         * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
1704         * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
1705         * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
1706         * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
1707         * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
1708         * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
1709         * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
1710         * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
1711         * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
1712         * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
1713         * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
1714         * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
1715         * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
1716         * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
1717         * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
1718         * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
1719         * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
1720         * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
1721         * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
1722         * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
1723         * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
1724         * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
1725         * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
1726         * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
1727         * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
1728         * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
1729         * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
1730         * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
1731         * testsuite/27_io/ios_members.cc: New test wrap.
1732         * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
1733         New test wrap.
1734         * testsuite/27_io/streambuf_members.cc: New test wrap.
1735         * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
1736
1737 2003-03-08  Paolo Carlini <pcarlini@unitus.it>
1738             Petur Runolfsson  <peturr02@ru.is>
1739
1740         PR libstdc++/9424
1741         * include/bits/streambuf.tcc (__copy_streambufs): Use
1742         sgetn-sputn only when sputn cannot fail, otherwise fall back
1743         to safe snextc-sputc.
1744         * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
1745
1746 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
1747
1748         * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
1749         locale cache for truename and falsename.
1750
1751 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
1752
1753         * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
1754         _M_word_size initialization.
1755
1756 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
1757
1758         * include/bits/fstream.tcc (_M_convert_to_external):
1759         Set __elen to zero if codecvt::out eventually fails.
1760
1761 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
1762
1763         PR libstdc++/9182
1764         * include/bits/fstream.tcc (_M_really_overflow): Check
1765         for _M_convert_to_external possible failures.
1766         * include/std/std_fstream.h (sync): Check _M_really_overflow
1767         return value and return -1 in case of failure.
1768         * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
1769
1770 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
1771
1772         PR libstdc++/9826
1773         * include/bits/istream.tcc (operator>>(_CharT*),
1774         operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
1775         * testsuite/27_io/stringstream.cc (test02): Add.
1776
1777         * include/bits/istream.tcc (operator>>(_CharT*)):
1778         Assign a char_type to *__s.
1779
1780 2003-03-07  Petur Runolfsson  <peturr02@ru.is>
1781
1782         PR libstdc++/9817
1783         * include/bits/locale_facets.tcc
1784         (collate::do_compare, collate::do_transform):
1785         Handle nul characters in input.
1786         * testsuite/22_locale/collate/compare/char/3.cc:  New test.
1787         * testsuite/22_locale/collate/compare/wchar_t/3.cc:  New test.
1788         * testsuite/22_locale/collate/transform/char/3.cc:  New test.
1789         * testsuite/22_locale/collate/transform/wchar_t/3.cc:  New test.
1790
1791 2003-03-07  Jerry Quinn  <jlquinn@optonline.net>
1792
1793         * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
1794         sputn fails.
1795         * testsuite/27_io/ostream_fail.cc: New test.
1796
1797 2003-03-07  Matthias Klose  <doko@debian.org>
1798
1799         * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
1800         FLAGS_TO_PASS: Set to AM_MAKEFLAGS
1801         * Makefile.in: Regenerate.
1802         * libsupc++/Makefile.am: Express glibcppinstalldir in terms
1803         of gxx_include_dir.
1804         AM_MAKEFLAGS: Pass gxx_include_dir.
1805         * libsupc++/Makefile.in: Regenerate.
1806
1807 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
1808
1809         * testsuite/27_io/ios_base_storage.cc (test02): Set exception
1810         mask.  Test setting small-numbered pword and iword slots.  Test
1811         behavior at limit of numeric_limits::max.  Check that values are
1812         still good after failures.
1813
1814 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
1815
1816         * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
1817         (ios_base::ios_base): Set _M_word, _M_word_size.
1818         (ios_base::~ios_base): Remove redundant test.
1819         * testsuite/27_io/ios_base_storage.cc (test03): New.
1820
1821 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
1822
1823         * src/strstream.cc, include/bits/basic_string.tcc: Remove
1824         incorrect whitespace added in my previous change.
1825
1826 2003-03-05  Carlo Wood  <carlo@alinoe.com>
1827
1828         * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
1829         _S_initialized() in order to allow debugging libraries to detect
1830         when the std streams are initialized from an overloaded operator
1831         new.
1832
1833 2003-03-05  Benjamin Kosnik  <bkoz@redhat.com>
1834
1835         * libsupc++/demangle.h: Move to..
1836         * include/bits/demangle.h: ...here.
1837         * src/demangle.cc: Adjust include.
1838         * include/Makefile.am (bits_headers): Add.
1839         * include/Makefile.in: Regenerate.
1840
1841 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
1842
1843         * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
1844
1845         * config/linker-map.gnu: Filter typeinfo and vtable info.
1846
1847 2003-03-04  Jerry Quinn  <jlquinn@optonline.net>
1848
1849         * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
1850         new failure.  Throw exception if badbit and exception mask when ix
1851         >= numeric_limits<int>::max().
1852
1853 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
1854
1855         * src/strstream.cc (strstreambuf::overflow): Make sure operands of
1856         min and max have the same type.
1857         * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
1858
1859 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
1860
1861         * include/Makefile.am (allstamps): Remove stamp-std-precompile.
1862         * include/Makefile.in: Regenerate.
1863
1864 2003-03-03  Benjamin Kosnik  <bkoz@redhat.com>
1865
1866         * testsuite/abi_check.cc (report_symbol_info): Add version info.
1867
1868         * config/linker-map.gnu: Hide more stuff.
1869         * include/Makefile.am: Cleanups.
1870         * include/Makefile.in: Regenerate.
1871
1872 2003-02-27  Jerry Quinn  <jlquinn@optonline.net>
1873
1874         * config/locale/generic/messages_members.h (messages::messages):
1875         Remove name from unused parameter.
1876
1877 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
1878
1879         * src/Makefile.am (sources): Add demangle.cc.
1880         (demangle.o): Add.
1881         (demangle.lo): Add.
1882         * src/Makefile.in: Regenerate.
1883         * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
1884         * libsupc++/Makefile.in: Regenerate.
1885
1886         * testsuite/testsuite_hooks.h
1887         (__gnu_cxx_test::verify_demangle): New.
1888         * testsuite/testsuite_hooks.cc: Define.
1889
1890 2003-02-27  Carlo Wood  <carlo@alinoe.com>
1891
1892         * src/demangle.cc: New.
1893         * libsupc++/demangle.h: New.
1894
1895 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
1896             Carlo Wood  <carlo@alinoe.com>
1897
1898         * testsuite/demangle/abi_examples/01.cc: New.
1899         * testsuite/demangle/abi_examples/02.cc: New.
1900         * testsuite/demangle/abi_examples/03.cc: New.
1901         * testsuite/demangle/abi_examples/04.cc: New.
1902         * testsuite/demangle/abi_examples/05.cc: New.
1903         * testsuite/demangle/abi_examples/06.cc: New.
1904         * testsuite/demangle/abi_examples/07.cc: New.
1905         * testsuite/demangle/abi_examples/08.cc: New.
1906         * testsuite/demangle/abi_examples/09.cc: New.
1907         * testsuite/demangle/abi_examples/10.cc: New.
1908         * testsuite/demangle/abi_examples/11.cc: New.
1909         * testsuite/demangle/abi_examples/12.cc: New.
1910         * testsuite/demangle/abi_examples/13.cc: New.
1911         * testsuite/demangle/abi_examples/14.cc: New.
1912         * testsuite/demangle/abi_examples/15.cc: New.
1913         * testsuite/demangle/abi_examples/16.cc: New.
1914         * testsuite/demangle/abi_examples/17.cc: New.
1915         * testsuite/demangle/abi_examples/18.cc: New.
1916         * testsuite/demangle/abi_examples/19.cc: New.
1917         * testsuite/demangle/abi_examples/20.cc: New.
1918         * testsuite/demangle/abi_examples/21.cc: New.
1919         * testsuite/demangle/abi_examples/22.cc: New.
1920         * testsuite/demangle/abi_examples/23.cc: New.
1921         * testsuite/demangle/abi_examples/24.cc: New.
1922         * testsuite/demangle/abi_examples/25.cc: New.
1923         * testsuite/demangle/abi_examples/26.cc: New.
1924         * testsuite/demangle/abi_text/01.cc: New.
1925         * testsuite/demangle/abi_text/02.cc: New.
1926         * testsuite/demangle/abi_text/03.cc: New.
1927         * testsuite/demangle/abi_text/04.cc: New.
1928         * testsuite/demangle/abi_text/05.cc: New.
1929         * testsuite/demangle/abi_text/06.cc: New.
1930         * testsuite/demangle/abi_text/07.cc: New.
1931         * testsuite/demangle/abi_text/08.cc: New.
1932         * testsuite/demangle/abi_text/09.cc: New.
1933         * testsuite/demangle/abi_text/10.cc: New.
1934         * testsuite/demangle/abi_text/11.cc: New.
1935         * testsuite/demangle/abi_text/12.cc: New.
1936         * testsuite/demangle/abi_text/13.cc: New.
1937         * testsuite/demangle/abi_text/14.cc: New.
1938         * testsuite/demangle/regression/3111-1.cc: New.
1939         * testsuite/demangle/regression/3111-2.cc: New.
1940         * testsuite/demangle/regression/7986-01.cc: New.
1941         * testsuite/demangle/regression/7986-02.cc: New.
1942         * testsuite/demangle/regression/7986-03.cc: New.
1943         * testsuite/demangle/regression/7986-04.cc: New.
1944         * testsuite/demangle/regression/7986-05.cc: New.
1945         * testsuite/demangle/regression/7986-06.cc: New.
1946         * testsuite/demangle/regression/7986-07.cc: New.
1947         * testsuite/demangle/regression/7986-08.cc: New.
1948         * testsuite/demangle/regression/7986-09.cc: New.
1949         * testsuite/demangle/regression/7986-10.cc: New.
1950         * testsuite/demangle/regression/7986-11.cc: New.
1951         * testsuite/demangle/regression/7986-12.cc: New.
1952         * testsuite/demangle/regression/7986.cc: New.
1953         * testsuite/demangle/regression/8897.cc: New.
1954         * testsuite/demangle/regression/cw-01.cc: New.
1955         * testsuite/demangle/regression/cw-02.cc: New.
1956         * testsuite/demangle/regression/cw-03.cc: New.
1957         * testsuite/demangle/regression/cw-04.cc: New.
1958         * testsuite/demangle/regression/cw-05.cc: New.
1959         * testsuite/demangle/regression/cw-06.cc: New.
1960         * testsuite/demangle/regression/cw-07.cc: New.
1961         * testsuite/demangle/regression/cw-08.cc: New.
1962         * testsuite/demangle/regression/cw-09.cc: New.
1963         * testsuite/demangle/regression/cw-10.cc: New.
1964         * testsuite/demangle/regression/cw-11.cc: New.
1965         * testsuite/demangle/regression/cw-12.cc: New.
1966         * testsuite/demangle/regression/cw-13.cc: New.
1967         * testsuite/demangle/regression/cw-14.cc: New.
1968         * testsuite/demangle/regression/old.cc: New.
1969
1970 2003-02-25  Phil Edwards  <pme@gcc.gnu.org>
1971
1972         * docs/doxygen/Intro.3:  Update with new (proper) names.
1973         * docs/doxygen/TODO:  Update.
1974         * docs/doxygen/run_doxygen:  More comments, fix up man pages.
1975         Fake entries for standard typedefs.
1976         * docs/doxygen/user.cfg.in:  Turn INLINE_INHERITED_MEMB back on.
1977         * docs/html/documentation.html:  Top-level man page is now called
1978         C++Intro.
1979         * include/std/std_limits.h:  Doxygenate.
1980
1981 2003-02-25  Scott Snyder  <snyder@fnal.gov>
1982
1983         PR libstdc++/9811
1984         * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
1985         Correct documentation.
1986         * include/bits/stl_multimap.h (lower_bound, upper_bound,
1987         equal_range): Likewise.
1988
1989 2003-02-24  Paolo Carlini  <pcarlini@unitus.it>
1990
1991         PR libstdc++/9825
1992         * src/fstream.cc
1993         (basic_filebuf<char/wchar_t>::_M_underflow_common): When
1994         __bump is true (uflow), always increment the read pointer
1995         (_M_in_cur) before returning successfully.
1996         * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
1997
1998 2003-02-24  Paolo Carlini <pcarlini@unitus.it>
1999             Nathan Myers <ncm@cantrip.org>
2000
2001         PR libstdc++/9404, PR libstdc++/9701 (partial)
2002         (aka pptr == epptr implies overflow)
2003         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
2004         Consistently, _M_out_end points to the end of the buffer just
2005         created.
2006         (overflow): Tweak to use _M_out_buf_size().
2007         (_M_convert_to_external): The role of the old _M_out_end is
2008         now played by _M_out_lim.
2009         (_M_really_overflow): Likewise.
2010         (seekoff): Likewise.
2011         (setbuf): _M_out_end points to the end of the external buffer.
2012         * include/bits/sstream.tcc (overflow): Rewrote, taking into
2013         account the resolution of DR 169 (TC).
2014         (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
2015         (seekpos): Use _M_string.capacity(); tweak.
2016         * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
2017         * include/std/std_fstream.h (sync): The role of the old
2018         _M_out_end is now played by _M_out_lim.
2019         (_M_set_indeterminate): Use _M_set_determinate.
2020         (_M_set_determinate): _M_out_end is now _M_out_lim.
2021         (_M_is_indeterminate): Likewise.
2022         * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
2023         (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
2024         which have the information readily available as _M_string.capacity();
2025         for ate and app modes, pass the string size to _M_really_sync.
2026         (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
2027         point to the end of the buffer (i.e., epptr) and to the string end,
2028         respectively.
2029         * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
2030         which points to the right limit of the used put area.
2031         (_M_out_cur_move): The role of the old _M_out_end is now played
2032         by _M_out_lim.
2033         (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
2034         _M_out_end  - _M_out_cur (i.e., pptr), _very_ close to the letter
2035         of the standard.
2036         (basic_streambuf()): Initialize _M_out_lim too.
2037         * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
2038         * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
2039         * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
2040
2041 2003-02-24  Benjamin Kosnik  <bkoz@redhat.com>
2042
2043         * testsuite/27_io/ios_base_storage.cc (main): Call
2044         set_memory_limits.
2045
2046 2003-02-21  Jerry Quinn  <jlquinn@optonline.net>
2047
2048         * include/bits/locale_facets.tcc (_M_convert_float): Replace
2049         numpunct facet accesses with data from __locale_cache.
2050
2051 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
2052
2053         * docs/html/faq/index.html (3.9):  New note, wchar_t on FreeBSD.
2054         * docs/html/faq/index.txt:  Regenerate.
2055
2056 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
2057
2058         * config/linker-map.gnu:  Also export locking symbols needed for the
2059         generic atomicity.h case.
2060
2061 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
2062
2063         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2064         config.status.
2065         * configure: Rebuilt.
2066
2067 2003-02-19  Paolo Carlini  <pcarlini@unitus.it>
2068
2069         * include/bits/sstream.tcc (overflow): According to
2070         27.7.1.3, p5, actual output is performed by sputc(c).
2071
2072 2003-02-19  Phil Edwards  <pme@gcc.gnu.org>
2073
2074         PR libstdc++/9582
2075         * include/bits/stl_alloc.h:  Remove all traces of assert().
2076
2077 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
2078
2079         * include/std/std_sstream.h (str()): the size of the
2080         current string may be different from the initial one
2081         whenever _M_out_end > _M_out_beg.
2082         * testsuite/27_io/stringbuf_members.cc (test07): Add.
2083
2084 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
2085
2086         PR libstdc++/9582
2087         * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
2088
2089 2003-02-17  Benjamin Kosnik  <bkoz@redhat.com>
2090
2091         * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
2092         * testsuite/27_io/ios_members.cc (test03): New.
2093
2094 2003-02-17  Jerry Quinn  <jlquinn@optonline.net>
2095
2096         * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
2097         (basic_ios::_M_cache_facets): Move into above.
2098         * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
2099         cache.
2100         (basic_ios::imbue): Force locale cache to be built.
2101         (basic_ios::_M_init): Create and initialize locale cache.
2102         * include/bits/ios_base.h (__locale_cache_base): Declare.
2103         (ios_base::_M_locale_cache): New.
2104         (ios_base::_M_cache): Define.
2105         * include/bits/locale_facets.h: (__num_base): Fix comment.  Add
2106         _S_end.
2107         (__locale_cache_base,__locale_cache<_CharT>):  New classes.
2108         (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
2109         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
2110         cache literal string, grouping flag, thousands separator.
2111         (__locale_cache<_CharT>::__locale_cache): New.
2112         (__locale_cache<_CharT>::_M_init): New.
2113         * src/ios.cc: Clear _M_locale_cache in constructor.
2114         * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
2115         New.
2116
2117 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
2118
2119         * src/locale-inst.cc: Do not include <cassert>.
2120         * src/locale.cc: Likewise.
2121
2122 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
2123
2124         PR libstdc++/9580
2125         * include/std/std_fstream.h: Declare underflow and uflow
2126         specializations, change generic definitions to do nothing.
2127         * src/fstream.cc: Add underflow and uflow specializations.
2128
2129 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
2130
2131         PR libstdc++/9169
2132         * include/bits/fstream.tcc (_M_convert_to_external):
2133         Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
2134         * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
2135
2136 2003-02-13  Benjamin Kosnik  <bkoz@redhat.com>
2137
2138         * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
2139         * include/bits/basic_ios.tcc: Guard use of extern template.
2140         * include/std/std_iomanip.h: Same.
2141         * include/bits/streambuf.tcc: Same.
2142         * include/bits/stl_alloc.h: Same.
2143         * include/bits/locale_facets.tcc: Same.
2144         * include/bits/ostream.tcc: Same.
2145         * include/bits/istream.tcc: Same.
2146         * include/bits/fstream.tcc: Same.
2147         * include/bits/basic_string.tcc: Same.
2148
2149 2003-02-13  Paolo Carlini  <pcarlini@unitus.it>
2150
2151         * include/bits/ostream.tcc (sentry::sentry): Improve
2152         performance-wise the fix for libstdc++/9563.
2153
2154 2003-02-12  Phil Edwards  <pme@gcc.gnu.org>
2155
2156         * config/cpu/generic/atomicity.h (_Atomic_add_mutex):  Fix declaration.
2157         (_GLIBCPP_NEED_GENERIC_MUTEX):  Define for this file.
2158         (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once):  Declare
2159         when we don't have static mutex initialization.
2160         (__exchange_and_add):  Use _Atomic_add_mutex_once.
2161         * src/misc-inst.cc:  Definitions of all the above.
2162
2163 2003-02-12  Paolo Carlini  <pcarlini@unitus.it>
2164
2165         PR libstdc++/9563
2166         * include/bits/ostream.tcc (sentry::sentry): Check
2167         the state of the stream after the preparation.
2168         * testsuite/27_io/ostream_sentry.cc (test02): Add.
2169
2170 2003-02-11  Benjamin Kosnik  <bkoz@redhat.com>
2171
2172         * include/Makefile.am (stamp-std-precompile): Add rule.
2173         * include/Makefile.in: Regenerated.
2174
2175 2003-02-11 Jerry Quinn  <jlquinn@optonline.net>
2176            Benjamin Kosnik  <benjamin@redhat.com>
2177
2178         * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
2179         Add indexes into this array.
2180         (__num_base::_S_atoms): To _S_atoms_in.
2181         (num_put::_M_insert): Rename to _M_pad.
2182         (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
2183         (num_put::_M_widen_int): Rename to _M_group_int.
2184         (num_put::_M_widen_float): Rename to _M_group_float.
2185         * include/bits/locale_facets.tcc (__int_to_char): New inline
2186         function and adapter functions.
2187         (num_put::_M_group_int): Streamline.
2188         (num_put::_M_group_float): Streamline.
2189         (num_put::_M_convert_int): Remove unused parameter names. Choose
2190         large enough buffer for text.  Use __int_to_char instead of
2191         __convert_from_v.  Formatted text is now at the end of the buffer.
2192         (num_put::_M_convert_float): Preliminary fixups.
2193         * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
2194         (__int_to_char<unsigned long long>): Same.
2195         (__int_to_char<char, unsigned long>): New.
2196         (__int_to_char<char, unsigned long long>): New.
2197         (__int_to_char<wchar_t, unsigned long>): New.
2198         (__int_to_char<wchar_t, unsigned long long>): New.
2199
2200 2003-02-11  Scott Snyder  <snyder@fnal.gov>
2201
2202         PR libstdc++/9659
2203         * include/bits/fstream.tcc (seekoff): Avoid operator+
2204         for pos_type.
2205
2206 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
2207
2208         PR libstdc++/9320
2209         * include/ext/stdio_filebuf.h
2210         (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
2211         stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
2212         Change to take a __size parameter of type size_t, not
2213         of type (template parameter dependent) int_type.
2214         * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
2215         size vars to size_t.
2216         * testsuite/ext/stdio_filebuf.cc: Add.
2217
2218 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
2219             Petur Runolfsson  <peturr02@ru.is>
2220
2221         PR libstdc++/9318
2222         * include/bits/streambuf.tcc (__copy_streambufs):
2223         Don't conditionalize the copy to __testput.
2224         * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
2225
2226 2002-02-11  DJ Delorie  <dj@redhat.com>
2227
2228         * acinclude.m4: Check for native targets that can't link at
2229         this point in the build.
2230         * aclocal.m4: Regenerate.
2231         * configure: Regenerate.
2232
2233 2003-02-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2234
2235         * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
2236         Correct alignment.
2237         (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
2238         lock.
2239
2240 2003-02-07  Paolo Carlini  <pcarlini@unitus.it>
2241
2242         * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
2243         unsigned char platforms.
2244
2245 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
2246
2247         PR libstdc++/9562
2248         * include/std/std_istream.h
2249         (basic_istream::sentry::operator bool()): Make const.
2250         * include/std/std_ostream.h
2251         (basic_ostream::sentry::operator bool()): Likewise.
2252         * testsuite/27_io/istream_sentry.cc (test03): Add.
2253         * testsuite/27_io/ostream_sentry.cc: Add.
2254
2255 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
2256
2257         PR libstdc++/9548
2258         Implement resolution of DR 231 (Ready)
2259         * include/bits/locale_facets.h (__num_base::_S_format_float):
2260         Change declaration: return void, remove __prec parameter.
2261         * src/locale.cc (__num_base::_S_format_float): Implement
2262         resolution of DR 231.
2263         * include/bits/locale_facets.tcc (num_put::_M_convert_float):
2264         Tweak uses. Check for negative precision.
2265         * testsuite/22_locale/num_put/put/char/6.cc: Add
2266         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2267
2268 2003-02-06  Peter Soetens  <peter.soetens@mech.kuleuven.ac.be>
2269
2270         * config/io/basic_file_libio.h: Fixups.
2271         * config/io/c_io_libio.h: Same.
2272         * libio/Makefile.am: Same.
2273         * libio/Makefile.in: Regenerated.
2274
2275 2003-02-06  Benjamin Kosnik  <bkoz@redhat.com>
2276
2277         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
2278         Explicitly use the "C" locale.
2279         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
2280
2281 2003-02-06  Petur Runolfsson  <peturr02@ru.is>
2282
2283         DR 75
2284         DR 305
2285         PR libstdc++/9028 (partial)
2286         PR libstdc++/9224
2287         PR libstdc++/9246
2288         PR libstdc++/9247
2289
2290         * src/codecvt.cc
2291         (codecvt<wchar_t, char, mbstate_t>::do_encoding,
2292         codecvt<wchar_t, char, mbstate_t>::do_length,
2293         codecvt<wchar_t, char, mbstate_t>::do_max_length):
2294         Move...
2295         * config/locale/generic/codecvt_members.cc:  ...here.
2296         * config/locale/gnu/codecvt_members.cc:  ...and here.
2297
2298         * config/locale/generic/codecvt_members.cc,
2299         * config/locale/gnu/codecvt_members.cc
2300         (codecvt<wchar_t, char, mbstate_t>::do_encoding
2301         codecvt<wchar_t, char, mbstate_t>::do_in,
2302         codecvt<wchar_t, char, mbstate_t>::do_length,
2303         codecvt<wchar_t, char, mbstate_t>::do_max_length,
2304         codecvt<wchar_t, char, mbstate_t>::do_out):
2305         New implementation that handles stateless encodings,
2306         including UTF-8.
2307
2308         * config/locale/generic/codecvt_members.cc,
2309         * config/locale/gnu/codecvt_members.cc,
2310         * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
2311         * include/bits/codecvt.h,
2312         * src/codecvt.cc
2313         (codecvt::length, codecvt::do_length):
2314         Change type of first argument of length and do_length from
2315         'const state_type&' to 'state_type&' according to DR 75.
2316
2317         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc:  Cleanup.
2318         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc:  New test.
2319         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc:  New test.
2320         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc:  New test.
2321         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
2322         Cleanup and check for correct return value from encoding
2323         for "C" locale.
2324         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc:  New test.
2325         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc:  New test.
2326         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc:  New test.
2327         * testsuite/22_locale/codecvt/in/wchar_t/1.cc:  Cleanup.
2328         * testsuite/22_locale/codecvt/in/wchar_t/2.cc:  New test.
2329         * testsuite/22_locale/codecvt/in/wchar_t/3.cc:  New test.
2330         * testsuite/22_locale/codecvt/in/wchar_t/4.cc:  New test.
2331         * testsuite/22_locale/codecvt/in/wchar_t/5.cc:  New test.
2332         * testsuite/22_locale/codecvt/in/wchar_t/6.cc:  New test.
2333         * testsuite/22_locale/codecvt/in/wchar_t/7.cc:  New test.
2334         * testsuite/22_locale/codecvt/in/wchar_t/8.cc:  New test.
2335         * testsuite/22_locale/codecvt/in/wchar_t/9.cc:  New test.
2336         * testsuite/22_locale/codecvt/length/char/1.cc:  Cleanup.
2337         * testsuite/22_locale/codecvt/length/char/2.cc:  New test.
2338         * testsuite/22_locale/codecvt/length/wchar_t/1.cc:  Cleanup.
2339         * testsuite/22_locale/codecvt/length/wchar_t/2.cc:  New test.
2340         * testsuite/22_locale/codecvt/length/wchar_t/3.cc:  New test.
2341         * testsuite/22_locale/codecvt/length/wchar_t/4.cc:  New test.
2342         * testsuite/22_locale/codecvt/length/wchar_t/5.cc:  New test.
2343         * testsuite/22_locale/codecvt/length/wchar_t/6.cc:  New test.
2344         * testsuite/22_locale/codecvt/length/wchar_t/7.cc:  New test.
2345         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc:  Cleanup.
2346         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc:  New test.
2347         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc:  New test.
2348         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc:  New test.
2349         * testsuite/22_locale/codecvt/out/wchar_t/1.cc:  Cleanup.
2350         * testsuite/22_locale/codecvt/out/wchar_t/2.cc:  New test.
2351         * testsuite/22_locale/codecvt/out/wchar_t/3.cc:  New test.
2352         * testsuite/22_locale/codecvt/out/wchar_t/4.cc:  New test.
2353         * testsuite/22_locale/codecvt/out/wchar_t/5.cc:  New test.
2354         * testsuite/22_locale/codecvt/out/wchar_t/6.cc:  New test.
2355         * testsuite/22_locale/codecvt/out/wchar_t/7.cc:  New test.
2356         * testsuite/22_locale/codecvt/unicode/1.cc:  New test.
2357         * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc:  Cleanup.
2358         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc:  New test.
2359         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc:  New test.
2360         * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc:  New test.
2361
2362 2003-02-05  Benjamin Kosnik  <bkoz@redhat.com>
2363
2364         * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
2365         (money_put::do_put): Same.
2366
2367 2003-02-05  Jerry Quinn  <jlquinn@optonline.net>
2368
2369         * include/bits/ios_base.h (ios_base): Document reserved storage.
2370
2371         * include/bits/locale_facets.h: (struct __pad): Comment on
2372         implementation.
2373         (__verify_grouping): Same.
2374         (__add_grouping): Same.
2375         * include/bits/locale_facets.tcc (__verify_grouping): Move
2376         comments to declaration.
2377         (__add_grouping): Same.
2378
2379         * include/bits/locale_facets.tcc:
2380         (__write<_CharT, _OutIter>): New function.
2381         (__write<_CharT>): New function specialization.
2382         (num_put::_M_insert): Remove explicit loop over iterator.  Use
2383         __write.
2384         (num_put::_M_widen_float): Remove __basefield.
2385         (num_put::_M_widen_int): Move __basefield to within grouping block.
2386
2387         * include/bits/streambuf_iterator.h: Include <streambuf>.
2388         (ostreambuf_iterator::_M_put): Add.
2389
2390 2003-02-05  Paolo Carlini  <pcarlini@unitus.it>
2391
2392         * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
2393
2394 2003-02-04  Nathan Myers  <ncm@cantrip.org>
2395
2396         * testsuite/25_algorithms/min_max.cc (test02): Add.
2397
2398 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
2399
2400         PR libstdc++/9439, PR libstdc++/9425
2401         * config/io/basic_file_stdio.cc
2402         (__basic_file<char>::seekoff, seekpos): Return -1L if
2403         fseek fails.
2404         * include/bits/fstream.tcc (basic_filebuf::seekoff):
2405         Check _M_file.seekoff return value; always return
2406         pos_type(off_type(-1)) in case of failure.
2407         (basic_filebuf::pbackfail): Check this->seekoff return
2408         value and return traits_type::eof() in case of failure.
2409         * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
2410
2411 2003-02-04  Jerry Quinn  <jlquinn@optonline.net>
2412
2413         * include/std/std_ostream.h (ostream::_M_write): Declare.
2414         * ostream.tcc (ostream::_M_write): Define.
2415         (basic_ostream::write): Use it.
2416         (operator<<(basic_ostream, _CharT)): Ditto.
2417         (operator<<(basic_ostream, char)): Ditto.
2418         (operator<<(basic_ostream, _CharT*)): Ditto.
2419         (operator<<(basic_ostream, char*)): Ditto.
2420         (operator<<(basic_ostream, basic_string)): Ditto.
2421
2422 2003-02-04  Benjamin Kosnik  <bkoz@redhat.com>
2423
2424         * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
2425
2426 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
2427
2428         * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
2429         add HTML comment about updating links if numbering changes.
2430
2431 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
2432
2433         PR libstdc++/9538
2434         * include/bits/streambuf.tcc (sputbackc): Access
2435         this->gptr()[-1] only if _M_in_beg < _M_in_cur.
2436         * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
2437
2438 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
2439
2440         PR libstdc++/9507
2441         * include/bits/fstream.tcc (open): If the 'ate' repositioning
2442         operation fails, calls close _and_ returns a null pointer
2443         to indicate failure (27.8.1.3,4).
2444         * testsuite/27_io/filebuf_members.cc (test_06): Add.
2445
2446 2003-02-04  Petur Runolfsson  <peturr02@ru.is>
2447
2448         * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
2449
2450 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
2451
2452         * docs/html/27_io/howto.html: New section on stdio_filebuf.
2453         * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
2454         * docs/html/documentation.html: Regenerate.
2455
2456 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
2457
2458         * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
2459         * docs/html/17_intro/porting.html: Regenerate.
2460
2461 2003-02-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
2462             Phil Edwards  <pme@gcc.gnu.org>
2463
2464         * include/std/std_bitset.h:  Replace CHAR_BIT with __CHAR_BIT__, use
2465         numeric_limits for bits-per-word values.
2466         (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
2467         Use __builtin_popcountl instead.
2468         (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
2469         _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
2470         Use __builtin_ctzl instead.
2471         (_S_bit_count, _S_first_one):  Remove.
2472         * config/linker-map.gnu (GLIBCPP_3.4):  Remove std::_S_bit_count.
2473         * src/Makefile.am (sources):  Remove bitset.cc.
2474         * src/bitset.cc:  Delete file.
2475         * src/Makefile.in:  Regenerate.
2476
2477 2003-02-03  Phil Edwards  <pme@gcc.gnu.org>
2478
2479         PR libstdc++/9527, PR libstdc++/8713
2480         * docs/html/install.html:  Mention glibc version requirement.
2481         * docs/html/faq/index.html (3.8):  New note, glibc 2.2.5+ is needed
2482         with 3.2.1+ (formatting bugfixes).
2483         * docs/html/faq/index.txt:  Regenerate.
2484
2485 2003-02-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2486
2487         PR libstdc++/9234
2488         * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
2489         operator.
2490
2491         * include/bits/valarray_before.h (__not_equal_to): Use != instead
2492         of ==.
2493
2494         * testsuite/26_numerics/valarray_operators.cc: New test.
2495
2496 2003-02-01  Phil Edwards  <pme@gcc.gnu.org>
2497
2498         * docs/html/faq/index.html:  Correct link to libg++ information.
2499         * docs/html/faq/index.txt:  Regenerated.
2500
2501 2003-02-01  Paolo Carlini  <pcarlini@unitus.it>
2502             Benjamin Kosnik  <bkoz@redhat.com>
2503
2504         Const correctness issue:
2505         http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
2506         * include/bits/locale_classes.h
2507         (locale::_Impl::_M_facets): Change type to const facet**.
2508         (locale::_Impl::_M_install_facet): Change declaration to
2509         take const facet*.
2510         (locale::facet::_M_references): Make mutable.
2511         (locale::facet::_M_add_reference): Declare const.
2512         (locale::facet::_M_remove_reference): Likewise.
2513         * include/bits/locale_facets.tcc
2514         (use_facet(const locale&)): Tweak for const facet** _M_facets.
2515         (has_facet(const locale&)): Likewise.
2516         * src/locale.cc
2517         (locale::facet::_M_add_reference): Adjust definition.
2518         (locale::facet::_M_remove_reference): Likewise.
2519         * src/localename.cc
2520         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
2521         const facet** _M_facets.
2522         (locale::_Impl::_Impl(const char*, size_t)): Likewise.
2523         (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
2524         (locale::_Impl::_M_install_facet): Adjust definition to take
2525         const facet* and for const facet** _M_facets.
2526         * testsuite/22_locale/locale/cons/8.cc: Add.
2527
2528 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
2529
2530         * include/std/std_limits.h (numeric_limits<float>::has_infinity):
2531         Use __FLT_HAS_INIFINITY__ to initialize.
2532         (numeric_limits<float>::has_quiet_NaN): Likewise.
2533         (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
2534         to initialize.
2535         (numeric_limits<double>::has_quiet_NaN): Likewise.
2536         (numeric_limits<long double>::has_infinity): Use
2537         __LDBL_HAS_INIFINITY__ to initialize.
2538         (numeric_limits<long_double>::has_quiet_NaN): Likewise.
2539
2540 2003-01-28  Nathan Sidwell  <nathan@codesourcery.com>
2541
2542         PR c++/9433
2543         * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
2544         with bases which are very ambiguous.
2545
2546 2003-01-28  Danny Smith  <dannysmith@users.sourceforge.net>
2547
2548         * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
2549         @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
2550         * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
2551         * src/Makefile.in: Regenerate.
2552         * libsupc++/Makefile.in: Regenerate.
2553
2554 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
2555
2556         * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
2557         $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2558         version_specific_libs is enabled.
2559         * aclocal.m4, configure: Rebuilt.
2560
2561 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
2562
2563         * include/bits/valarray_meta.h: Remove, split into ...
2564         * include/bits/valarray_before.h: ... this, and ...
2565         * include/bits/valarray_after.h: ... this.
2566         * include/std/std_valarray.h: Adjust.
2567         * include/Makefile.am (bits_headers): Adjust.
2568         * include/Makefile.in: Regenerate.
2569
2570 2003-01-24  Andreas Schwab  <schwab@suse.de>
2571
2572         * config/linker-map.gnu: Fix for size_t variance.
2573
2574 2003-01-23  Petur Runolfsson  <peturr02@ru.is>
2575
2576         PR libstdc++/9322
2577         * include/std/std_streambuf.h
2578         (basic_streambuf::basic_streambuf,
2579         basic_streambuf::~basic_streambuf,
2580         basic_streambuf::getloc, basic_streambuf::imbue):
2581         Remove _M_buf_locale_init
2582         * include/bits/fstream.tcc (basic_filebuf::imbue):  Likewise
2583         * testsuite/27_io/filebuf_virtuals.cc (test08):  Add.
2584         * testsuite/27_io/streambuf_members.cc (test08):  Add.
2585         * testsuite/27_io/stringbuf_virtuals.cc (test08):  Add.
2586
2587 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
2588
2589         Revert include ordering.
2590         * config/locale/generic/c_locale.h: Add include guards.
2591         * config/locale/gnu/c_locale.h: Same.
2592         * include/bits/locale_classes.h: Remove cctype include.
2593         * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
2594         * include/std/std_fstream.h: Remove streambuf include.
2595         * include/std/std_sstream.h: Remove streambuf include.
2596
2597 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
2598
2599         * configure.in (libtool_VERSION): To 6:0:0.
2600         * configure: Regenerated.
2601         * config/linker-map.gnu: Clean.
2602
2603         * src/misc-inst.cc: Remove instantiations.
2604
2605         * include/bits/stl_alloc.h (__malloc_alloc_template):
2606         To __malloc_alloc.
2607         (__default_alloc_template): To __pool_alloc.
2608         * src/stl-inst.cc: Same.
2609         * include/backward/alloc.h: Update.
2610         * testsuite/ext/allocators.cc: Update.
2611
2612         * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
2613         really try to remove these if possible.
2614         * src/locale.cc (std): Same.
2615
2616         * testsuite/abi_check.cc (check_version): Add.
2617
2618 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
2619             Sysoltsev Slawa  <Vyatcheslav.Sysoltsev@intel.com>
2620             Mark Mitchell  <mark@codesourcery.com>
2621
2622         PR libstdc++/9269
2623         * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
2624         (basic_filebuf::underflow): Declare.
2625         Move definitions.
2626
2627 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
2628
2629         * include/bits/locale_facets.h: Move non-facet classes requiring
2630         <string> to...
2631         * include/bits/locale_classes.h: New.
2632         * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
2633         * include/bits/Makefile.in: Regenerate.
2634
2635         * include/bits/locale_facets.tcc (__convert_from_v): Move to...
2636         * config/locale/gnu/c_locale.h: ...here.
2637         * config/locale/generic/c_locale.h: Same.
2638
2639         * include/bits/locale_facets.tcc: Move declarations to...
2640         * include/bits/locale_facets.h: ...here.
2641         * include/bits/basic_ios.h: Tweak includes accordingly.
2642         * include/std/std_sstream.h: Add streambuf include.
2643         * include/std/std_fstream.h: Ditto.
2644         * include/std/std_locale.h: Add locale_classes.h include.
2645         * include/std/std_iosfwd.h: Tweak.
2646         * src/concept-inst.cc: Add iterator include.
2647
2648         * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
2649         bits as unexported in the future.
2650
2651 2003-01-21  Benjamin Kosnik  <bkoz@redhat.com>
2652
2653         Reshuffle 22_locale testsuite.
2654         * 22_locale/(codecvt.cc money_get.cc
2655         codecvt_members_char_char.cc money_get_members_char.cc
2656         codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
2657         codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
2658         codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
2659         moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
2660         collate_members_char.cc money_put.cc collate_members_wchar_t.cc
2661         money_put_members_char.cc ctor_copy_dtor.cc
2662         money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
2663         num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
2664         ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
2665         numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
2666         ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
2667         num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
2668         ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
2669         operators.cc ctype_widen_char.cc static_members.cc
2670         ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
2671         global_templates.cc time_get_members_wchar_t.cc, members.cc,
2672         time_put.cc, messages_byname.cc, time_put_members_char.cc,
2673         messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
2674         Split up into individual test cases...
2675         * 22_locale/codecvt/1.cc: New.
2676         * 22_locale/codecvt/2.cc: New.
2677         * 22_locale/codecvt/always_noconv/char/1.cc: New.
2678         * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
2679         * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
2680         * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
2681         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
2682         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
2683         * 22_locale/codecvt/encoding/char/1.cc: New.
2684         * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
2685         * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
2686         * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
2687         * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
2688         * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
2689         * 22_locale/codecvt/in/char/1.cc: New.
2690         * 22_locale/codecvt/in/char/wrapped_env.cc: New.
2691         * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
2692         * 22_locale/codecvt/in/wchar_t/1.cc: New.
2693         * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
2694         * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
2695         * 22_locale/codecvt/length/char/1.cc: New.
2696         * 22_locale/codecvt/length/char/wrapped_env.cc: New.
2697         * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
2698         * 22_locale/codecvt/length/wchar_t/1.cc: New.
2699         * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
2700         * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
2701         * 22_locale/codecvt/max_length/char/1.cc: New.
2702         * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
2703         * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
2704         * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
2705         * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
2706         * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
2707         * 22_locale/codecvt/out/char/1.cc: New.
2708         * 22_locale/codecvt/out/char/wrapped_env.cc: New.
2709         * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
2710         * 22_locale/codecvt/out/wchar_t/1.cc: New.
2711         * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
2712         * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
2713         * 22_locale/codecvt/unicode/char.cc: New.
2714         * 22_locale/codecvt/unicode/wchar_t.cc: New.
2715         * 22_locale/codecvt/unshift/char/1.cc: New.
2716         * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
2717         * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
2718         * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
2719         * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
2720         * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
2721         * 22_locale/collate/1.cc: New.
2722         * 22_locale/collate/2.cc: New.
2723         * 22_locale/collate/compare/char/1.cc: New.
2724         * 22_locale/collate/compare/char/2.cc: New.
2725         * 22_locale/collate/compare/char/wrapped_env.cc: New.
2726         * 22_locale/collate/compare/char/wrapped_locale.cc: New.
2727         * 22_locale/collate/compare/wchar_t/1.cc: New.
2728         * 22_locale/collate/compare/wchar_t/2.cc: New.
2729         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
2730         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
2731         * 22_locale/collate/hash/char/1.cc: New.
2732         * 22_locale/collate/hash/char/2.cc: New.
2733         * 22_locale/collate/hash/char/wrapped_env.cc: New.
2734         * 22_locale/collate/hash/char/wrapped_locale.cc: New.
2735         * 22_locale/collate/hash/wchar_t/1.cc: New.
2736         * 22_locale/collate/hash/wchar_t/2.cc: New.
2737         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
2738         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
2739         * 22_locale/collate/transform/char/2.cc: New.
2740         * 22_locale/collate/transform/char/wrapped_env.cc: New.
2741         * 22_locale/collate/transform/char/wrapped_locale.cc: New.
2742         * 22_locale/collate/transform/wchar_t/2.cc: New.
2743         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
2744         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
2745         * 22_locale/collate_byname/1.cc: New.
2746         * 22_locale/ctype/1.cc: New.
2747         * 22_locale/ctype/2.cc: New.
2748         * 22_locale/ctype/cons/char/1.cc: New.
2749         * 22_locale/ctype/cons/char/wrapped_env.cc: New.
2750         * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
2751         * 22_locale/ctype/is/char/1.cc: New.
2752         * 22_locale/ctype/is/char/2.cc: New.
2753         * 22_locale/ctype/is/char/3.cc: New.
2754         * 22_locale/ctype/is/char/wrapped_env.cc: New.
2755         * 22_locale/ctype/is/char/wrapped_locale.cc: New.
2756         * 22_locale/ctype/is/wchar_t/1.cc: New.
2757         * 22_locale/ctype/is/wchar_t/2.cc: New.
2758         * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
2759         * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
2760         * 22_locale/ctype/narrow/char/1.cc: New.
2761         * 22_locale/ctype/narrow/char/2.cc: New.
2762         * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
2763         * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
2764         * 22_locale/ctype/narrow/wchar_t/1.cc: New.
2765         * 22_locale/ctype/narrow/wchar_t/2.cc: New.
2766         * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
2767         * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
2768         * 22_locale/ctype/scan/char/1.cc: New.
2769         * 22_locale/ctype/scan/char/wrapped_env.cc: New.
2770         * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
2771         * 22_locale/ctype/scan/wchar_t/1.cc: New.
2772         * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
2773         * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
2774         * 22_locale/ctype/to/char/1.cc: New.
2775         * 22_locale/ctype/to/char/wrapped_env.cc: New.
2776         * 22_locale/ctype/to/char/wrapped_locale.cc: New.
2777         * 22_locale/ctype/to/wchar_t/1.cc: New.
2778         * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
2779         * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
2780         * 22_locale/ctype/widen/char/1.cc: New.
2781         * 22_locale/ctype/widen/char/wrapped_env.cc: New.
2782         * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
2783         * 22_locale/ctype/widen/wchar_t/1.cc: New.
2784         * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
2785         * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
2786         * 22_locale/facet/1.cc: New.
2787         * 22_locale/facet/2.cc: New.
2788         * 22_locale/global_templates/1.cc: New.
2789         * 22_locale/locale/cons/1.cc: New.
2790         * 22_locale/locale/cons/2.cc: New.
2791         * 22_locale/locale/cons/3.cc: New.
2792         * 22_locale/locale/cons/4.cc: New.
2793         * 22_locale/locale/cons/5.cc: New.
2794         * 22_locale/locale/cons/6.cc: New.
2795         * 22_locale/locale/cons/7.cc: New.
2796         * 22_locale/locale/global_locale_objects/1.cc: New.
2797         * 22_locale/locale/global_locale_objects/2.cc: New.
2798         * 22_locale/locale/global_locale_objects/3.cc: New.
2799         * 22_locale/locale/operations/1.cc: New.
2800         * 22_locale/locale/operations/2.cc: New.
2801         * 22_locale/messages/1.cc: New.
2802         * 22_locale/messages/2.cc: New.
2803         * 22_locale/messages/members/char/1.cc: New.
2804         * 22_locale/messages/members/char/2.cc: New.
2805         * 22_locale/messages/members/char/3.cc: New.
2806         * 22_locale/messages/members/char/wrapped_env.cc: New.
2807         * 22_locale/messages/members/char/wrapped_locale.cc: New.
2808         * 22_locale/messages_byname/1.cc: New.
2809         * 22_locale/money_get/1.cc: New.
2810         * 22_locale/money_get/2.cc: New.
2811         * 22_locale/money_get/get/char/1.cc: New.
2812         * 22_locale/money_get/get/char/2.cc: New.
2813         * 22_locale/money_get/get/char/3.cc: New.
2814         * 22_locale/money_get/get/char/4.cc: New.
2815         * 22_locale/money_get/get/char/5.cc: New.
2816         * 22_locale/money_get/get/char/6.cc: New.
2817         * 22_locale/money_get/get/char/7.cc: New.
2818         * 22_locale/money_get/get/char/8.cc: New.
2819         * 22_locale/money_get/get/char/wrapped_env.cc: New.
2820         * 22_locale/money_get/get/char/wrapped_locale.cc: New.
2821         * 22_locale/money_get/get/wchar_t/1.cc: New.
2822         * 22_locale/money_get/get/wchar_t/2.cc: New.
2823         * 22_locale/money_get/get/wchar_t/3.cc: New.
2824         * 22_locale/money_get/get/wchar_t/4.cc: New.
2825         * 22_locale/money_get/get/wchar_t/5.cc: New.
2826         * 22_locale/money_get/get/wchar_t/6.cc: New.
2827         * 22_locale/money_get/get/wchar_t/7.cc: New.
2828         * 22_locale/money_get/get/wchar_t/8.cc: New.
2829         * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
2830         * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
2831         * 22_locale/money_put/1.cc: New.
2832         * 22_locale/money_put/2.cc: New.
2833         * 22_locale/money_put/put/char/1.cc: New.
2834         * 22_locale/money_put/put/char/2.cc: New.
2835         * 22_locale/money_put/put/char/3.cc: New.
2836         * 22_locale/money_put/put/char/4.cc: New.
2837         * 22_locale/money_put/put/char/5.cc: New.
2838         * 22_locale/money_put/put/char/6.cc: New.
2839         * 22_locale/money_put/put/char/wrapped_env.cc: New.
2840         * 22_locale/money_put/put/char/wrapped_locale.cc: New.
2841         * 22_locale/money_put/put/wchar_t/1.cc: New.
2842         * 22_locale/money_put/put/wchar_t/2.cc: New.
2843         * 22_locale/money_put/put/wchar_t/3.cc: New.
2844         * 22_locale/money_put/put/wchar_t/4.cc: New.
2845         * 22_locale/money_put/put/wchar_t/5.cc: New.
2846         * 22_locale/money_put/put/wchar_t/6.cc: New.
2847         * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
2848         * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
2849         * 22_locale/moneypunct/1.cc: New.
2850         * 22_locale/moneypunct/2.cc: New.
2851         * 22_locale/moneypunct/3.cc: New.
2852         * 22_locale/moneypunct/members/char/1.cc: New.
2853         * 22_locale/moneypunct/members/char/2.cc: New.
2854         * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
2855         * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
2856         * 22_locale/moneypunct/members/wchar_t/1.cc: New.
2857         * 22_locale/moneypunct/members/wchar_t/2.cc: New.
2858         * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
2859         * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
2860         * 22_locale/moneypunct_byname/1.cc: New.
2861         * 22_locale/num_get/1.cc: New.
2862         * 22_locale/num_get/2.cc: New.
2863         * 22_locale/num_get/get/char/1.cc: New.
2864         * 22_locale/num_get/get/char/2.cc: New.
2865         * 22_locale/num_get/get/char/3.cc: New.
2866         * 22_locale/num_get/get/char/4.cc: New.
2867         * 22_locale/num_get/get/char/5.cc: New.
2868         * 22_locale/num_get/get/char/6.cc: New.
2869         * 22_locale/num_get/get/char/wrapped_env.cc: New.
2870         * 22_locale/num_get/get/char/wrapped_locale.cc: New.
2871         * 22_locale/num_get/get/wchar_t/1.cc: New.
2872         * 22_locale/num_get/get/wchar_t/2.cc: New.
2873         * 22_locale/num_get/get/wchar_t/3.cc: New.
2874         * 22_locale/num_get/get/wchar_t/4.cc: New.
2875         * 22_locale/num_get/get/wchar_t/5.cc: New.
2876         * 22_locale/num_get/get/wchar_t/6.cc: New.
2877         * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
2878         * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
2879         * 22_locale/num_put/1.cc: New.
2880         * 22_locale/num_put/2.cc: New.
2881         * 22_locale/num_put/put/char/1.cc: New.
2882         * 22_locale/num_put/put/char/2.cc: New.
2883         * 22_locale/num_put/put/char/3.cc: New.
2884         * 22_locale/num_put/put/char/4.cc: New.
2885         * 22_locale/num_put/put/char/5.cc: New.
2886         * 22_locale/num_put/put/char/wrapped_env.cc: New.
2887         * 22_locale/num_put/put/char/wrapped_locale.cc: New.
2888         * 22_locale/num_put/put/wchar_t/1.cc: New.
2889         * 22_locale/num_put/put/wchar_t/2.cc: New.
2890         * 22_locale/num_put/put/wchar_t/3.cc: New.
2891         * 22_locale/num_put/put/wchar_t/4.cc: New.
2892         * 22_locale/num_put/put/wchar_t/5.cc: New.
2893         * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
2894         * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
2895         * 22_locale/numpunct/1.cc: New.
2896         * 22_locale/numpunct/2.cc: New.
2897         * 22_locale/numpunct/members/char/1.cc: New.
2898         * 22_locale/numpunct/members/char/2.cc: New.
2899         * 22_locale/numpunct/members/char/wrapped_env.cc: New.
2900         * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
2901         * 22_locale/numpunct/members/wchar_t/1.cc: New.
2902         * 22_locale/numpunct/members/wchar_t/2.cc: New.
2903         * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
2904         * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
2905         * 22_locale/numpunct_byname/1.cc: New.
2906         * 22_locale/numpunct_byname/2.cc: New.
2907         * 22_locale/time_get/1.cc: New.
2908         * 22_locale/time_get/2.cc: New.
2909         * 22_locale/time_get/date_order/char/1.cc: New.
2910         * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
2911         * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
2912         * 22_locale/time_get/date_order/wchar_t/1.cc: New.
2913         * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
2914         * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
2915         * 22_locale/time_get/get_date/char/1.cc: New.
2916         * 22_locale/time_get/get_date/char/2.cc: New.
2917         * 22_locale/time_get/get_date/char/3.cc: New.
2918         * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
2919         * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
2920         * 22_locale/time_get/get_date/wchar_t/1.cc: New.
2921         * 22_locale/time_get/get_date/wchar_t/2.cc: New.
2922         * 22_locale/time_get/get_date/wchar_t/3.cc: New.
2923         * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
2924         * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
2925         * 22_locale/time_get/get_monthname/char/1.cc: New.
2926         * 22_locale/time_get/get_monthname/char/2.cc: New.
2927         * 22_locale/time_get/get_monthname/char/3.cc: New.
2928         * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
2929         * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
2930         * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
2931         * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
2932         * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
2933         * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
2934         * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
2935         * 22_locale/time_get/get_time/char/1.cc: New.
2936         * 22_locale/time_get/get_time/char/2.cc: New.
2937         * 22_locale/time_get/get_time/char/3.cc: New.
2938         * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
2939         * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
2940         * 22_locale/time_get/get_time/wchar_t/1.cc: New.
2941         * 22_locale/time_get/get_time/wchar_t/2.cc: New.
2942         * 22_locale/time_get/get_time/wchar_t/3.cc: New.
2943         * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
2944         * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
2945         * 22_locale/time_get/get_weekday/char/1.cc: New.
2946         * 22_locale/time_get/get_weekday/char/2.cc: New.
2947         * 22_locale/time_get/get_weekday/char/3.cc: New.
2948         * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
2949         * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
2950         * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
2951         * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
2952         * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
2953         * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
2954         * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
2955         * 22_locale/time_get/get_year/char/1.cc: New.
2956         * 22_locale/time_get/get_year/char/3.cc: New.
2957         * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
2958         * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
2959         * 22_locale/time_get/get_year/wchar_t/1.cc: New.
2960         * 22_locale/time_get/get_year/wchar_t/3.cc: New.
2961         * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
2962         * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
2963         * 22_locale/time_put/1.cc: New.
2964         * 22_locale/time_put/2.cc: New.
2965         * 22_locale/time_put/put/char/1.cc: New.
2966         * 22_locale/time_put/put/char/10.cc: New.
2967         * 22_locale/time_put/put/char/2.cc: New.
2968         * 22_locale/time_put/put/char/3.cc: New.
2969         * 22_locale/time_put/put/char/4.cc: New.
2970         * 22_locale/time_put/put/char/5.cc: New.
2971         * 22_locale/time_put/put/char/6.cc: New.
2972         * 22_locale/time_put/put/char/7.cc: New.
2973         * 22_locale/time_put/put/char/8.cc: New.
2974         * 22_locale/time_put/put/char/9.cc: New.
2975         * 22_locale/time_put/put/char/wrapped_env.cc: New.
2976         * 22_locale/time_put/put/char/wrapped_locale.cc: New.
2977         * 22_locale/time_put/put/wchar_t/1.cc: New.
2978         * 22_locale/time_put/put/wchar_t/10.cc: New.
2979         * 22_locale/time_put/put/wchar_t/2.cc: New.
2980         * 22_locale/time_put/put/wchar_t/3.cc: New.
2981         * 22_locale/time_put/put/wchar_t/4.cc: New.
2982         * 22_locale/time_put/put/wchar_t/5.cc: New.
2983         * 22_locale/time_put/put/wchar_t/6.cc: New.
2984         * 22_locale/time_put/put/wchar_t/7.cc: New.
2985         * 22_locale/time_put/put/wchar_t/8.cc: New.
2986         * 22_locale/time_put/put/wchar_t/9.cc: New.
2987         * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
2988         * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
2989
2990 2003-01-16  Jeffrey D. Oldham  <oldham@codesourcery.com>
2991
2992         * config/locale/generic/messages_members.h
2993         (messages_byname<_CharT>::messages_byname): Use this-> to refer to
2994         unqualified members of base clasess.
2995
2996 2003-01-16  Mark Mitchell  <mark@codesourcery.com>
2997             Jeffrey Oldham <oldham@codesourcery.com>
2998
2999         * config/locale/gnu/messages_members.h: Use this-> to refer to
3000         unqualified members of base clasess.
3001         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
3002         * include/bits/codecvt.h: Likewise.
3003         * include/bits/deque.tcc: Likewise.
3004         * include/bits/fstream.tcc: Likewise.
3005         * include/bits/istream.tcc: Likewise.
3006         * include/bits/list.tcc: Likewise.
3007         * include/bits/locale_facets.h: Likewise.
3008         * include/bits/ostream.tcc: Likewise.
3009         * include/bits/sstream.tcc: Likewise.
3010         * include/bits/stl_bvector.h: Likewise.
3011         * include/bits/stl_deque.h: Likewise.
3012         * include/bits/stl_list.h: Likewise.
3013         * include/bits/stl_tree.h: Likewise.
3014         * include/bits/stl_vector.h: Likewise.
3015         * include/bits/vector.tcc: Likewise.
3016         * include/ext/ropeimpl.h: Likewise.
3017         * include/ext/stdio_filebuf.h: Likewise.
3018         * include/ext/stl_rope.h: Likewise.
3019         * include/std/std_fstream.h: Likewise.
3020         * include/std/std_sstream.h: Likewise.
3021
3022 2003-01-15  Phil Edwards  <pme@gcc.gnu.org>
3023
3024         * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
3025
3026 2003-01-15  Benjamin Kosnik  <bkoz@redhat.com>
3027
3028         * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
3029         GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
3030         * aclocal.m4: Regenerate.
3031         * configure: Regenerate.
3032         * testsuite/Makefile.am (all-local): Add conditional rule to
3033         generate testsuite_wchar_t.
3034         * testsuite/Makefile.in: Regenerate.
3035         * testsuite/lib/libstdc++-v3-dg.exp
3036         (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
3037         testsuite_wchar_t is not present in the build directory.
3038         * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
3039         Remove setulimit bits.
3040         * testsuite/26_numerics/complex_value.cc: Set to noopts.
3041         * testsuite/Makefile.am (CLEANFILES): Add.
3042         * testsuite/Makefile.in: Regenerate.
3043
3044 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3045
3046         * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
3047         __hppa__.
3048
3049 2003-01-14  Jeffrey D. Oldham  <oldham@codesourcery.com>
3050
3051         Further conform g++'s __vmi_class_type_info to the C++ ABI
3052         specification.
3053         * libsupc++/cxxabi.h
3054         (__vmi_class_type_info::__flags_masks): Remove enumerations not
3055         required by the specification.
3056
3057 2003-01-12  Benjamin Kosnik  <bkoz@redhat.com>
3058
3059         Renames, namespaces for testsuite utilities.
3060         * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
3061         (gnu_allocator_tracker): Rename to allocation_tracker.
3062         (gnu_new_allocator): Rename to tracker_alloc.
3063         (__set_testsuite_memlimit): Rename to set_memory_limits.
3064         (gnu_assignment_operator): Rename to assignment_operator.
3065         (gnu_destructor): Rename to destructor.
3066         (gnu_copy_tracker): Rename to copy_tracker.
3067         (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
3068         (run_tests_wrapped_locale): New.
3069         (run_tests_wrapped_env): New.
3070         * testsuite/testsuite_hooks.cc: Same.
3071         (class locale_data): Add.
3072         (class enviornment_variable): Add.
3073         (class not_found): Add.
3074         * testsuite/testsuite_allocator.h: Same.
3075         * testsuite/testsuite_allocator.cc: Same.
3076         * testsuite/23_containers/deque_ctor.cc
3077         (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
3078         allocation_tracker.
3079         Change gnu_new_allocator to tracker_alloc.
3080         Change gnu_counting_struct to counter.
3081         Change gnu_copy_tracker to copy_tracker.
3082         Change gnu_copy_constructor to copy_constructor.
3083         Change gnu_assignment_operator to assignment_operator.
3084         Inject.
3085         * testsuite/23_containers/vector_capacity.cc: Same.
3086         * testsuite/23_containers/vector_ctor.cc (test01): Same.
3087         * testsuite/23_containers/list_modifiers.cc: Change
3088         gnu_copy_tracker to copy_tracker.
3089         * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
3090         __set_testsuite_memlimit to set_memory_limits.
3091         * testsuite/21_strings/insert.cc (main): Same.
3092         * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
3093         * testsuite/27_io/stringstream.cc: Same.
3094         * testsuite/27_io/stringbuf.cc: Same.
3095         * testsuite/27_io/streambuf.cc: Same.
3096         * testsuite/27_io/ostream.cc: Same.
3097         * testsuite/27_io/istream.cc: Same.
3098         * testsuite/27_io/fstream.cc: Same.
3099         * testsuite/lib/libstdc++-v3-dg.exp
3100         (libstdc++-v3-list-sourcefiles): Additionally handle files two and
3101         three levels deeper in glob patterns.
3102
3103 2003-01-11  Phil Edwards  <pme@gcc.gnu.org>
3104
3105         * docs/doxygen/tables.html:  Finished now.
3106         * docs/doxygen/user.cfg.in:  Update to latest version of Doxygen.
3107         * include/bits/basic_ios.h (basic_ios::rdbuf):  Add example to
3108         comments.
3109
3110         * include/bits/deque.tcc, include/bits/stl_alloc.h,
3111         include/bits/stl_deque.h, include/bits/stl_list.h,
3112         include/bits/stl_vector.h:  Remove _GLIBCPP_DEPRECATED bits scheduled
3113         for 3.4 removal.
3114
3115 2003-01-09  Benjamin Kosnik  <bkoz@redhat.com>
3116
3117         * configure.in: Revert.
3118         * configure: Regenerate.
3119
3120 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
3121
3122         * include/Makefile.am (install-data-local): Prepend
3123         $(DESTDIR) to destination paths in all (un)installation
3124         commands.  Use ${c_base_builddir} and ${std_builddir}
3125         as destination subdirectories to achieve consistency with
3126         preceding mkinstalldirs commands.  No effect because both
3127         variables contain "." only.
3128         * include/Makefile.in: Regenerate.
3129
3130 2003-01-08  Benjamin Kosnik  <bkoz@redhat.com>
3131
3132         * include/Makefile.am (stamp-*): Add checks for existing stamps.
3133         * include/Makefile.in: Regenerate.
3134
3135         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
3136         * aclocal.m4: Regenerate.
3137
3138         * configure.in: Don't add new multi-do rules every time the
3139         directory is reconfigured.
3140         * configure: Regenerate.
3141
3142 2003-01-08  Brad Spencer  <spencer@infointeractive.com>
3143             Nathan Myers  <ncm@cantrip.org>
3144
3145         * src/Makefile.am (stamp-debug): Clean.
3146         * src/Makefile.in: Regenerate.
3147
3148 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
3149
3150         PR libstdc++/8707
3151         * Makefile.am (distclean-multi): Fix.
3152         * Makefile.in: Regenerate.
3153
3154 2003-01-06  Benjamin Kosnik  <bkoz@redhat.com>
3155
3156         * include/bits/locale_facets.h (messages): Move ctor, dtor
3157         definitions to..
3158         (__timepunct): Same.
3159         * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
3160         definitions. Conditionalize for GNU systems.
3161         * config/locale/generic/messages_members.h (messages): Add dtor, ctor
3162         definitions.
3163         * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
3164         definitions. Conditionalize for GNU systems.
3165         * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
3166         definitions.
3167         * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
3168         * src/locale.cc: Define.
3169         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
3170         Use it.
3171         * config/locale/gnu/time_members.h: Use it.
3172         * config/locale/gnu/messages_members.h: Use it.
3173         * config/linker-map.gnu: Add locale::facets details.
3174         * include/Makefile.am (target_headers_extra): Add time_members.h.
3175         * include/Makefile.in: Regenerate.
3176         * acinclude.m4: Export CTIME_H.
3177         * aclocal.m4: Regenerate.
3178         * configure: Regnerate.
3179
3180 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
3181
3182         * src/codecvt.cc
3183         (codecvt<char, char, mbstate_t>::do_in, do_out):
3184         Tweak parameters to avoid unused parameter warnings.
3185
3186 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
3187
3188         PR libstdc++/9151
3189         * include/bits/locale_facets.cc (num_put::_M_convert_float):
3190         Limit __prec to digits10 + 2, not digits10 + 1, taking into
3191         account the possibility of %{g,G} conversion specifiers
3192         inside _S_format_float.
3193         * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
3194
3195 2003-01-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3196
3197         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
3198         libstdc++-v3-list-sourcefiles): Additionally handle files one
3199         level deeper in glob patterns.
3200
3201         * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
3202         * testsuite/27_io/istream_extractor_arith/01.cc,
3203         testsuite/27_io/istream_extractor_arith/02.cc,
3204         testsuite/27_io/istream_extractor_arith/03.cc,
3205         testsuite/27_io/istream_extractor_arith/06.cc,
3206         testsuite/27_io/istream_extractor_arith/07.cc,
3207         testsuite/27_io/istream_extractor_arith/08.cc,
3208         testsuite/27_io/istream_extractor_arith/09.cc,
3209         testsuite/27_io/istream_extractor_arith/10.cc,
3210         testsuite/27_io/istream_extractor_arith/11.cc,
3211         testsuite/27_io/istream_extractor_arith/12.cc,
3212         testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
3213         * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
3214         sparc*-*-solaris2*.
3215
3216 2003-01-05  Paolo Carlini <pcarlini@unitus.it>
3217
3218         PR libstdc++/9168
3219         * src/codecvt.cc
3220         (codecvt<char, char, mbstate_t>::do_in, do_out):
3221         Implement the resolution of DR19 (TC).
3222         * testsuite/22_locale/codecvt_members_char_char.cc
3223         (test01): Tweak.
3224
3225 2003-01-02  Jason Merrill  <jason@redhat.com>
3226
3227         * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
3228         *__mem is also an output.
3229         * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.