OSDN Git Service

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