OSDN Git Service

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