OSDN Git Service

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