OSDN Git Service

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