OSDN Git Service

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