OSDN Git Service

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