OSDN Git Service

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