OSDN Git Service

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