OSDN Git Service

2003-11-07 Jonathan Wakely <redi@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2003-11-07  Jonathan Wakely  <redi@gcc.gnu.org>
2
3         * libsupc++/vec.cc: Conform to C++STYLE.
4
5 2003-11-07  Carlo Wood  <carlo@alinoe.com>
6
7         PR libstdc++/12736
8         * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
9         (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
10         K, V, r and A qualifiers before processing them as a group.
11         * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
12         * testsuite/demangle/regression/cw-16.cc: New.
13
14 2003-11-07  Robert Millan  <robertmh@gnu.org>
15
16         * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
17         * crossconfig.m4: Likewise.
18         * configure: Regenerate.
19
20 2003-11-07  Carlo Wood  <carlo@alinoe.com>
21
22         * include/bits/demangle.h
23         (qualifier_list<Allocator>::decode_qualifiers(string_type&,
24         string_type&, bool member_function_pointer_qualifiers):
25         Always seperate the '[' of an array type with a space from
26         what is left of it, except when that is the closing bracket
27         of another array dimension.
28
29 2003-11-07  Carlo Wood  <carlo@alinoe.com>
30
31         * include/bits/demangle.h
32         (qualifier_list<Allocator>::decode_qualifiers(string_type&,
33         string_type&, bool) const): Made const.
34         (qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
35         (_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
36         std::ostream& operator<<(std::ostream&, qualifier const&),
37         std::ostream& operator<<(std::ostream&, qualifier_list const&),
38         qualifier_list<Allocator>::decode_qualifiers(string_type&,
39         string_type&, bool) const,
40         session<Allocator>::decode_type_with_postfix(string_type&,
41         string_type&, qualifier_list<Allocator>*))
42         Added and/or changed debug-only hooks and code.
43
44 2003-11-04  Jeffrey D. Oldham  <oldham@codesourcery.com>
45
46         * libsupc++/vec.cc (__cxa_vec_delete2): If given a NULL pointer,
47         immediately return.  This reflects a C++ ABI change 2003 Nov 03.
48         (__cxa_vec_delete3): Likewise.
49         
50 2003-11-03  Petur Runolfsson  <peturr02@ru.is>
51
52         PR libstdc++/12790
53         * include/bits/fstream.tcc: Delete _M_last_overflowed.
54         (basic_filebuf::basic_filebuf): Initialize _M_state_last.
55         (basic_filebuf::open, basic_filebuf::close): Assign
56         _M_state_beg to _M_state_cur and _M_state_last.
57         (basic_filebuf::close): Call _M_terminate_output to handle
58         unshift and flushing.
59         (basic_filebuf::underflow): Assign _M_state_last, throw
60         exception instead of calling abort when codecvt::max_length()
61         is bad.
62         (basic_filebuf::seekoff): Use _M_state_last when calling
63         codecvt::length(), pass correct state to _M_seek.
64         (basic_filebuf::seekpos): Pass __pos.state() to _M_seek.
65         (basic_filebuf::_M_seek): Add __state_type parameter,
66         set _M_state_cur correctly, store the resulting state in
67         the return value and use _M_terminate_output to handle
68         flushing and unshift.
69         (basic_filebuf::_M_terminate_output): Flush contents of
70         output buffer, if any, then call codecvt::unshift as
71         needed and output the result.
72         (basic_filebuf::sync): Move here, don't modify _M_writing
73         or _M_reading.
74         
75         * include/std/std_fstream.h
76         (basic_filebuf::_M_state_last): Declare it.
77         (basic_filebuf::_M_last_overflowed): Delete.
78         (basic_filebuf::_M_seek): Add __state_type parameter.
79         (basic_filebuf::sync): Declare only.
80         (basic_filebuf::_M_output_unshift): Delete.
81         (basic_filebuf::_M_terminate_output): Declare it.
82         
83         * testsuite/testsuite_character.h:
84         Define character class and state class plus char_traits and
85         codecvt specializations for same for testing support for
86         stateful encodings.
87         
88         * testsuite/27_io/basic_filebuf/close/12790-1.cc,
89         * testsuite/27_io/basic_filebuf/close/char/12790-1.cc,
90         * testsuite/27_io/basic_filebuf/close/char/12790-2.cc,
91         * testsuite/27_io/basic_filebuf/close/char/12790-3.cc,
92         * testsuite/27_io/basic_filebuf/close/char/12790-4.cc,
93         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc,
94         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc,
95         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc,
96         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc,
97         * testsuite/27_io/basic_filebuf/open/12790-1.cc,
98         * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc,
99         * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc,
100         * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc,
101         * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc,
102         * testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc,
103         * testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc,
104         * testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc,
105         * testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc,
106         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc,
107         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc,
108         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc,
109         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc,
110         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc,
111         * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc,
112         * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc,
113         * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc,
114         * testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc,
115         * testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc,
116         * testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc,
117         * testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc,
118         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc,
119         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc,
120         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc,
121         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc,
122         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc,
123         * testsuite/27_io/basic_filebuf/sync/char/1.cc,
124         * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc:
125         New tests.
126
127         * testsuite/27_io/basic_filebuf/3.cc,
128         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc,
129         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc,
130         * testsuite/27_io/basic_fstream/3.cc,
131         * testsuite/27_io/basic_ifstream/3.cc,
132         * testsuite/27_io/basic_ofstream/3.cc:
133         Use streamoff as off_type and fpos<state_type> as pos_type.
134
135         * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc,
136         * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc:
137         Check that sync does *not* set _M_writing to false.
138
139 2003-11-03  Anthony Green  <green@redhat.com>
140
141         * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
142         they're used.
143
144 2003-11-03  Benjamin Kosnik  <bkoz@redhat.com>
145
146         * include/bits/locale_facets.h (time_get::_M_extract_name): Add
147         ctype argument. 
148         * include/bits/locale_facets.tcc: Same, use it to allow
149         capitalized names.
150         
151         * include/bits/fstream.tcc: Spacing tweak.
152         * include/bits/istream.tcc: Same.
153         * include/bits/ostream.tcc: Same.
154
155 2003-10-30  Paolo Carlini  <pcarlini@suse.de>
156
157         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
158         __mod is only assigned, never used its value, remove it.
159
160 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
161
162         * include/bits/locale_facets.tcc (time_get::do_get_year):
163         Absolutely avoid dereferencing end iterators.
164         (time_put::put): Minor clean up.
165
166         * include/bits/locale_facets.tcc: Cosmetic reformattings.
167
168 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
169
170         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
171         Revert the last commit, is not correct, sorry.
172         
173 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
174
175         * config/locale/generic/c_locale.cc: Add back <cmath> and
176         <cstdlib>.
177
178         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
179         Clean up.
180
181 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
182
183         * include/bits/locale_facets.tcc (time_put::put): Absolutely
184         avoid dereferencing end iterators; clean up.
185
186         * include/bits/locale_facets.tcc (num_get::_M_extract_float,
187         num_get::_M_extract_int): Minor tweak.
188
189 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
190
191         * include/bits/locale_facets.tcc: Remove some unnecessary
192         includes.
193         * config/locale/generic/c_locale.cc: Include <cerrno> here.
194         * config/locale/gnu/c_locale.cc: Likewise.
195
196 2003-10-28  Paolo Carlini  <pcarlini@suse.de>
197
198         * include/bits/locale_facets.tcc
199         (money_get<>::do_get(..., string_type&)): Absolutely avoid
200         dereferencing end iterators; general clean up.
201
202 2003-10-28  Paolo Carlini  <pcarlini@suse.de>
203
204         * include/bits/locale_facets.tcc (time_get::_M_extract_num):
205         Absolutely avoid dereferencing end iterators.
206         (time_get::_M_extract_name): Likewise.
207
208         * include/bits/locale_facets.tcc
209         (time_get::_M_extract_via_format, case 'e'): Don't try to
210         be smart wrt returning the right __beg in case of parse
211         error, time_get::_M_extract_num must be fixed instead.
212
213 2003-10-27  Paolo Carlini  <pcarlini@suse.de>
214
215         PR libstdc++/12778
216         * acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
217         * aclocal.m4: Regenerate.
218         * configure: Regenerate.
219
220 2003-10-27  Benjamin Kosnik  <bkoz@redhat.com>
221         
222         * docs/html/17_intro/TODO: Add links.
223         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
224         Uncomment.
225         
226 2003-10-27  Paolo Carlini  <pcarlini@suse.de>
227
228         PR libstdc++/12750
229         * include/bits/locale_facets.tcc
230         (time_get::_M_extract_via_format): Deal with code 'e'.
231         * testsuite/22_locale/time_get/get_date/char/12750.cc: New.
232         * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.
233
234         * include/bits/locale_facets.tcc
235         (time_get::_M_extract_via_format): Tweak to absolutely avoid
236         dereferencing end iterators.
237
238         * include/bits/locale_facets.h (__verify_grouping):
239         Const-ify second parameter.
240         * include/bits/locale_facets.tcc (__verify_grouping): Ditto.
241         * src/locale-inst.cc (__verify_grouping): Ditto.
242
243 2003-10-27  Paolo Carlini  <pcarlini@suse.de>
244
245         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
246         Various things: 1- Avoid absolutely end iterator dereferences;
247         2- Improve performance-wise the code skipping leading zeros;
248         3- Fix two bugs wrt early bail out in case of parsing errors
249         (see testcases); 4- General clean up.
250         (num_get::_M_extract_int): Likewise, except 3-. Additionally,
251         use __builtin_expect to favor base 10 inputs.
252         * testsuite/22_locale/num_get/get/char/7.cc: New.
253         * testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.
254
255 2003-10-26  Paolo Carlini  <pcarlini@suse.de>
256
257         * testsuite/22_locale/money_put/put/char/1.cc: Clean up.
258         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.
259
260 2003-10-25  Paolo Carlini  <pcarlini@suse.de>
261
262         * include/bits/locale_facets.tcc (num_get::_M_extract_int):
263         __pos in only incremented, never used its value, remove it.
264
265 2003-10-24  Robert Millan  <robertmh@gnu.org>
266
267         * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
268         and knetbsd*-gnu.
269         * aclocal.m4:  Regenerated.
270         * configure:  Regenerated.
271
272 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
273
274         * include/bits/locale_facets.tcc (money_get::do_get(...,
275         long double&): Properly size the temporary buffer.
276         * testsuite/22_locale/money_get/get/char/11.cc: New.
277         * testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.
278
279         * include/bits/locale_facets.tcc (num_put::_M_group_int,
280         num_put::_M_group_float, money_put::do_put(..., const
281         string_type&), collate::do_compare, collate::do_transform):
282         Prefer basic_string::data() to c_str() when the '\0'
283         terminator is not really needed.
284
285 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
286
287         * include/bits/locale_facets.tcc (__verify_grouping):
288         Prefer '=' to an unnecessary '&='.
289
290 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
291
292         * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
293         Tweak my fix for libstdc++/12657.
294
295 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
296
297         * include/bits/locale_facets.tcc (money_get::do_get(...,
298         string_type&): Minor tweak to the previous commit.
299
300 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
301
302         * include/bits/locale_facets.tcc (money_get::do_get(...,
303         string_type&): Disregard the previous commit: doesn't hurt but
304         doesn't accomplish anything useful either. This is the right
305         one, speeding up greatly the function in case of early fail.
306
307 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
308
309         * include/bits/locale_facets.tcc (money_get::do_get(...,
310         string_type&): Move an if block, thus minimizing the amount
311         of code processed anyway when __tmp_units.size() == 0.
312
313 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
314
315         * include/bits/locale_facets.tcc
316         (time_get<>::_M_extract_via_format): Deal with case 'C' too,
317         equivalent to 'y'.
318
319 2003-10-23  Benjamin Kosnik  <bkoz@redhat.com>
320
321         * docs/html/documentation.html: Add a pointer to the doxygen style
322         guide.
323         * docs/html/17_intro/TODO: Update.
324         * docs/html/test.html: Add instructions for running a subset of
325         tests, update.
326
327 2003-10-23  Paolo Carlini  <pcarlini@suse.de>
328
329         * include/bits/locale_facets.tcc (money_get<>::do_get(...,
330         string_type&)): Use find_first_not_of to strip leading
331         zeros; if __tmp_units == "0" never prefix it with '-';
332         always fail if __tmp_units is empty.
333         * testsuite/22_locale/money_get/get/char/10.cc: New.
334         * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
335
336 2003-10-23  Phil Edwards  <phil@codesourcery.com>
337
338         * config/os/vxworks/ctype_noninline.h:  Adjust ctor to match
339         2003-10-21 change.
340
341 2003-10-22  Paolo Carlini  <pcarlini@suse.de>
342
343         * include/bits/locale_facets.tcc (__int_to_char): Remove
344         the const int parameter.
345         (_M_insert_int): Update caller.
346         * src/locale-inst.cc (__int_to_char): Update instantiations.    
347
348 2003-10-22  Benjamin Kosnik  <bkoz@redhat.com>
349
350         * include/bits/locale_facets.h: Correct byname facets for "C"
351         locale.
352         * config/locale/generic/ctype_members.cc: Same.
353         * config/locale/generic/messages_members.h: Same.
354         * config/locale/gnu/ctype_members.cc: Same.
355         * config/locale/gnu/messages_members.h: Same.
356         * include/bits/codecvt.h: Same.
357         * src/ctype.cc: Same.
358         * testsuite/22_locale/codecvt_byname/1.cc: New.
359         * testsuite/22_locale/collate/1.cc: Edit.
360         * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
361         * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
362         * testsuite/22_locale/ctype/1.cc: Derivation tests.
363         * testsuite/22_locale/ctype/11844.cc: Move...
364         * testsuite/22_locale/ctype_base/11844.cc: ...here.
365         * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
366         * testsuite/22_locale/ctype_byname/1.cc: Name.
367         * testsuite/22_locale/messages_byname/1.cc: New.
368         * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
369         * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
370         * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
371         * testsuite/22_locale/numpunct/1.cc: Edit.
372         * testsuite/22_locale/numpunct_byname/2.cc: Move...
373         * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
374         * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
375         * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
376
377 2003-10-22  Paolo Carlini  <pcarlini@suse.de>
378
379         PR libstdc++/8610
380         * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
381         checking for the availability of int64_t.
382         (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
383         * configure.ac: Call here.
384         * acconfig.h: Add undef for the corresponding symbols.
385         * config/io/basic_file_stdio.cc (__basic_file<char>::open):
386         Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
387         (__basic_file<char>::seekoff): Likewise, call lseek64 when
388         available, otherwise lseek, checking the __off parameter.
389         * include/bits/postypes.h: Typedef __streamoff_base_type
390         to int64_t if available, otherwise long long.
391         * aclocal.m4: Regenerate.
392         * config.h.in: Likewise.
393         * configure: Likewise.
394
395         * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
396         Use AC_TRY_LINK instead of AC_TRY_COMPILE.
397         
398 2003-10-22  Paolo Carlini  <pcarlini@suse.de>
399
400         PR libstdc++/12657
401         * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
402         Implement resolution of DR 292 (WP).
403         * docs/html/ext/howto.html: Add entry for DR 292.
404
405 2003-10-21  Benjamin Kosnik  <bkoz@redhat.com>
406
407         * include/ext/mt_allocator.h: Change include to gthr.h.
408         * include/ext/rope: Same. Add _Refcount_base definitions.
409         * include/ext/pool_allocator.h: Adjust namespaces.
410         * include/bits/stl_threads.h (_Refcount_base): Move.
411         Put remaining into namespace __gnu_cxx.
412         
413 2003-10-21  Benjamin Kosnik  <bkoz@redhat.com>
414  
415         PR libstdc++/9858
416         * include/bits/locale_facets.h (ctype<char>): Remove
417         __ctype_abstract_base.
418         (ctype<char>::do_is): Remove.
419         (ctype<char>::do_scan_is): Remove.
420         * src/ctype.cc: Same. Inline the rest.
421         * testsuite/22_locale/ctype/is/char/9858.cc: New.
422         * config/os/aix/ctype_noninline.h: Adjust ctor.
423         * config/os/bsd/freebsd/ctype_noninline.h: Same.
424         * config/os/bsd/netbsd/ctype_noninline.h: Same.
425         * config/os/djgpp/ctype_noninline.h: Same.
426         * config/os/generic/ctype_noninline.h: Same.
427         * config/os/gnu-linux/ctype_noninline.h: Same.
428         * config/os/hpux/ctype_noninline.h: Same.
429         * config/os/irix/irix5.2/ctype_noninline.h: Same.
430         * config/os/irix/irix6.5/ctype_noninline.h: Same.
431         * config/os/mingw32/ctype_noninline.h: Same.
432         * config/os/newlib/ctype_noninline.h: Same.
433         * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
434         * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
435         * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
436         * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
437         * config/os/windiss/ctype_noninline.h: Same.
438
439 2003-10-21  Paolo Carlini  <pcarlini@suse.de>
440
441         * src/locale.cc: Tweak a comment.
442         * src/localename.cc: Move a comment.
443
444 2003-10-20  Benjamin Kosnik  <bkoz@redhat.com>
445  
446         PR libstdc++/10081
447         * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
448         * testsuite_hooks.cc: Same.
449         * 22_locale/numpunct/members/pod/1.cc: Edit.
450         * 22_locale/numpunct/members/pod/2.cc: Same.
451         * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
452         * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
453         * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
454         * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
455         * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
456         * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
457         * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
458         * 27_io/basic_istream/sentry/pod/1.cc: New.
459         * 27_io/basic_ostream/sentry/pod/1.cc: New.
460         * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
461         * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
462
463 2003-10-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
464
465         * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
466         of external _MIPS_SIM_ABI32.
467
468 2003-10-20  Phil Edwards  <phil@codesourcery.com>
469
470         * configure.ac:  Fix comment typo.
471         * configure.host:  Add vxworks to host_os switch.
472         * crossconfig.m4:  Remove old commented os_include_dir variables
473         left over from autotools transition.
474         (*-vxworks):  New stanza.
475         (*-windiss):  Add missing symbols.
476         * configure:  Regenerate.
477         * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
478         config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
479         New files.
480         * config/os/windiss/os_defines.h:  Define __C9X__.
481
482 2003-10-19  David Edelsohn  <edelsohn@gnu.org>
483
484         PR other/12506
485         * configure.host (aix4,aix*): Define os_include_dir to os/generic.
486
487 2003-10-18  Andreas Tobler  <a.tobler@schweiz.ch>
488
489         * src/locale.cc (locale::_S_initialize): Re-apply workaround a
490         confusion of the use of the gthr API when __gthread_active_p()
491         returns true.
492
493 2003-10-17  Benjamin Kosnik  <bkoz@redhat.com>
494  
495         * src/Makefile.am: Add new files.
496         * src/Makefile.in: Regenerate.
497         * src/globals.cc: Split into..
498         * src/globals_io.cc: New.
499         * src/globals_locale.cc: New.
500         * src/ios.cc: Split into...
501         * src/ios_init.cc: New.
502         * src/ios_locale.cc: New.
503         * src/locale-inst.cc: Split into..
504         * src/wlocale-inst.cc: New.
505         * src/locale-misc-inst.cc: New.
506         * src/locale.cc, src/localename: Split into...
507         * src/locale_facets.cc: New.
508         * src/locale_init.cc: New.
509         * src/wstring-inst.cc: Add copyright info.
510
511 2003-10-16  Petur Runolfsson  <peturr02@ru.is>
512
513         PR libstdc++/11450
514         PR libstdc++/11543
515         PR libstdc++/12065
516         * config/io/basic_file_stdio.cc (__basic_file::seekoff):
517         Change return value from streampos to streamoff.
518         (__basic_file::seekpos): Delete.
519         * config/io/basic_file_stdio.h: Same.
520         * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
521         * include/Makefile.am (bits_headers): Add bits/postypes.h.
522         * include/bits/char_traits.h: Include bits/postypes.h instead of
523         bits/fpos.h.
524         * include/bits/fstream.tcc (basic_filebuf::open,
525         basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
526         values, use == and != instead.
527         (basic_filebuf::_M_seek): Use explicit conversion from streamoff
528         to pos_type.
529         (basic_filebuf::imbue):  Don't use ! on pos_type values, use
530         == instead. Don't use __check_facet(_M_codecvt) unless is_open().
531         * include/bits/postypes.h: New file.
532         Add __streamoff_base_type typedef, streamsize.
533         (streamoff, streampos, wstreampos): Define typedefs, with
534         streamoff defined as...
535         (streamoff): New class. Document implementation defined
536         aspects.
537         (fpos): New implementation. Document implementation defined
538         aspects.
539         * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
540         explicit conversion from pos_type to off_type.
541         * include/std/std_iosfwd.h: Include bits/postypes.h instead
542         of bits/fpos.h.
543         * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
544         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
545         * testsuite/27_io/fpos/11450.cc: New test.
546         * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
547         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
548         * testsuite/27_io/types/3.cc: New test.
549
550 2003-10-16  Benjamin Kosnik  <bkoz@redhat.com>
551
552         * configure.host: Remove fpos_include_dir.
553         * configure.ac: Remove FPOS_INC_SRCDIR.
554         * configure: Regenerate.
555         * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
556         * aclocal.m4: Regenerate.
557         * include/Makefile.am (host_headers): Remove fpos.h.
558         (bits_headers): Add postypes.h.
559         * include/Makefile.in: Regenerate.
560         * config/os/gnu-linux/fposh: Remove.
561         * config/os/generic/fpos.h: Remove.
562
563         * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
564         * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
565         * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
566         * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
567         * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
568         * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
569         * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
570         * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
571         * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
572         * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
573         * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
574         * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
575         * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
576         * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
577         * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
578         * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
579         * testsuite/27_io/objects/char/10.cc: Same.
580
581 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
582
583         * src/locale.cc (locale::locale(const char*)): ... one
584         more comparison missed in the previous commit.
585
586 2003-10-16  Benjamin Kosnik  <bkoz@redhat.com>
587
588         * acconfig.h: Add HAVE_DRAND48.
589         * crossconfig.m4: Remove ISATTY.
590         * aclocal.m4: Regenerated.
591         * config.h.in: Regenerated.
592         * configure: Regenerated.
593         
594 2003-10-16  Bernardo Innocenti  <bernie@develer.com>
595
596         * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
597         __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
598         Document SMP safeness of asm macros.
599
600 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
601
602         * src/locale.cc (locale::locale(const char*)): Tweak
603         a couple of comparisons to use basic_string operators.
604
605 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
606
607         PR libstdc++/12540
608         * config/locale/gnu/monetary_members.cc
609         (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
610         Don't leak memory if new throws.
611         * src/locale.cc (locale::locale(const char*)): In order not
612         to leak memory in case new throws, use a basic_string type
613         for __res too and avoid strdup.
614
615 2003-10-14  Jeff Bailey  <jbailey@nisa.net>
616         
617         PR libstdc++/12562
618         * crossconfig.m4: Share the config between *-linux* and *-gnu*.
619         * configure: Regenerate.
620
621 2003-10-14  Carlo Wood  <carlo@alinoe.com>
622
623         PR libstdc++/12600
624         * include/bits/demangle.h (session<Allocator>::
625           decode_unqualified_name(string_type& output)): Fail on a
626           <operator-name> when decoding <template-argument>.
627         * testsuite/demangle/regression/cw-15.cc: New.
628
629 2003-10-14  Paolo Carlini  <pcarlini@unitus.it>
630
631         PR libstdc++/11480
632         * include/bits/stl_algo.h (unique): Fix.
633         * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
634         * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
635         * testsuite/25_algorithms/unique/2.cc: New.
636
637 2003-10-14  Paolo Carlini  <pcarlini@unitus.it>
638
639         * src/localename.cc (_M_replace_categories, M_replace_facet):
640         Const-ify a couple of variables.
641
642 2003-10-14  Petur Runolfsson  <peturr02@ru.is>
643             Andreas Tobler  <a.tobler@schweiz.ch>
644
645         * src/locale.cc (locale::_S_initialize): Workaround a confusion
646         of the use of the gthr API when __gthread_active_p() returns true.
647
648 2003-10-12  Petur Runolfsson  <peturr02@ru.is>
649             Paolo Carlini  <pcarlini@unitus.it>
650
651         PR libstdc++/11460
652         * src/strstream.cc (pbackfail): Fix to use to_int_type.
653         * testsuite/backward/11460.cc: New, from the PR.
654
655 2003-10-12  Paolo Carlini  <pcarlini@unitus.it>
656
657         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
658         Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
659         * include/bits/basic_string.tcc: Likewise.
660         * include/bits/ios_base.h: Likewise.
661         * include/bits/istream.tcc: Likewise.
662         * include/bits/locale_facets.tcc: Likewise.
663         * include/bits/ostream.tcc: Likewise.
664         * include/bits/stl_function.h: Likewise.
665         * include/bits/stl_multiset.h: Likewise.
666         * include/bits/stl_pair.h: Likewise.
667         * include/bits/stl_set.h: Likewise.
668         * include/bits/streambuf_iterator.h
669         * include/std/std_iosfwd.h: Likewise.
670         * include/std/std_istream.h: Likewise.
671         * include/std/std_sstream.h: Likewise.
672         * include/std/std_streambuf.h: Likewise.
673         * src/ios.cc: Likewise.
674         * include/bits/c++config:
675         Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
676         * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
677         dg-error directive due to removal of a blank line.
678         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
679
680 2003-10-12  Andreas Tobler  <a.tobler@schweiz.ch>
681             Paolo Carlini  <pcarlini@unitus.it>
682
683         PR libstdc++/11844/11740 (cont)
684         * config/os/generic/ctype_inline.h (ctype<char>::is):
685         Generically, use a bitmasksize of 15 (instead of 10);
686         Fix the logic to actually return (M & m) != 0 as per
687         22.2.1.1.2.
688
689 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
690
691         * crossconfig.m4 (*-uclinux*): New target.
692         * configure: Regenerate.
693
694 2003-10-10  Paolo Carlini  <pcarlini@unitus.it>
695
696         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
697         Avoid unnecessarily calling __builtin_alloca and dealing
698         explicitly with width() smaller than zero.
699         (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
700         const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
701         const char*), operator<<(basic_ostream<char, _Traits>&,
702         const char*), operator<<(basic_ostream, const basic_string&)):
703         Likewise.
704
705 2003-10-09  Benjamin Kosnik  <bkoz@redhat.com>
706
707         * config/linker-map.gnu: Make more *_type_info bits visible.
708         Move new/delete bits back into GLIBCXX space.
709
710         * include/bits/locale_classes.h: Move _M_id out of line, so that
711         locale::id::_S_highwater can be removed from the export list.
712         * src/locale.cc (locale::id::_M_id): Define.
713         
714 2003-10-09  Andreas Tobler  <a.tobler@schweiz.ch>
715
716         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
717         SPARC64.
718
719 2003-10-09  Paolo Carlini  <pcarlini@unitus.it>
720
721         PR libstdc++/11844
722         * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
723         to conform to the requirements of 22.2.1.
724         * config/os/bsd/freebsd/ctype_base.h: Likewise.
725         * config/os/djgpp/ctype_base.h: Likewise.
726         * config/os/generic/ctype_base.h: Likewise.
727         * config/os/gnu-linux/ctype_base.h: Likewise.
728         * config/os/hpux/ctype_base.h: Likewise.
729         * config/os/irix/irix6.5/ctype_base.h: Likewise.
730         * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
731         * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
732         * testsuite/22_locale/ctype/11844.cc: New.
733
734         * config/locale/generic/ctype_members.cc (do_is):
735         Generically, use a bitmasksize of 15 (instead of 10), since
736         we don't know the numerical encoding of the various categories
737         in the underlying /usr/include/ctype.h.
738
739 2003-10-09  Benjamin Kosnik  <bkoz@redhat.com>
740
741         * src/string-inst.cc: Prune.
742         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
743         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
744         
745 2003-10-09  Petur Runolfsson  <peturr02@ru.is>
746
747         * src/io-inst.cc: Don't include iostream.
748         * include/bits/ios_base.h (ios_base::failure): Use string.
749         * src/Makefile.am: Add ios_failure.cc.
750         * src/Makefile.in: Regenerate.
751         * src/ios.cc: Move ios_base::failure definitions to...
752         * src/ios_failure.cc: ...here. New.
753
754 2003-10-09  Petur Runolfsson  <peturr02@ru.is>
755
756         PR libstdc++/9874
757         * include/bits/fstream.tcc (basic_filebuf::seekoff):
758         Move code needed for both seekoff and seekpos...
759         (basic_filebuf::_M_seek): ...here. New function.
760         (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
761         * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
762         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
763
764         * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
765
766 2003-10-08  Paolo Carlini  <pcarlini@unitus.it>
767
768         * include/bits/locale_facets.tcc: More minor cosmetic
769         changes and const-ifications of some variables.
770
771 2003-10-07  Paolo Carlini  <pcarlini@unitus.it>
772
773         * include/bits/locale_facets.tcc: Minor cosmetic changes
774         and const-ifications of some variables.
775
776         * include/bits/locale_facets.tcc
777         (money_get::do_get(..., string_type&)): Simplify an if-else.
778
779 2003-10-06  Paolo Carlini  <pcarlini@unitus.it>
780
781         PR libstdc++/11740
782         * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
783         Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
784         * config/locale/generic/ctype_members.cc: Same.
785         * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
786
787 2003-10-06  Paolo Carlini  <pcarlini@unitus.it>
788
789         * include/bits/locale_facets.tcc (__pad<>::_S_pad):
790         Improve performance-wise: avoid one traits::copy, avoid
791         the __builtin_alloca, streamline.
792
793 2003-10-05  Paolo Carlini  <pcarlini@unitus.it>
794
795         * include/bits/locale_facets.tcc
796         (num_put::do_put(..., bool)): Prefer ?: to if-else.
797         (time_get::_M_extract_name): Qualify min with std::.
798         (__pad<>::_S_pad): Constify two variables; simplify an
799         if-else statement factoring out some code.
800
801         * include/bits/locale_facets.tcc: Minor cosmetic changes.
802
803 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
804
805         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
806         Constify a couple of variables.
807         (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
808         ++__beg to *__beg++.
809
810 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
811             Petur Runolfsson  <peturr02@ru.is>
812
813         * include/ext/stdio_sync_filebuf.h: Don't include the whole
814         <fstream>, only <streambuf> and <cstdio>.
815
816 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
817
818         PR libstdc++/12206
819         * include/bits/fstream.tcc (imbue): In case a codecvt facet
820         is not available, set _M_codecvt = 0.
821         * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
822
823 2003-10-02  Harald Boehme  <boehme@informatik.hu-berlin.de>
824
825         PR libstdc++/12451
826         * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
827         
828 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
829
830         * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
831         * src/locale.cc: Define.
832         * src/localename.cc: Use it.
833         * config/locale/generic/time_members.h: Same.
834         * config/locale/gnu/messages_members.h: Same.
835         * config/locale/gnu/time_members.h: Same.
836
837 2003-10-02  Paolo Carlini  <pcarlini@unitus.it>
838
839         PR libstdc++/12232
840         * include/bits/fstream.tcc (seekoff): Ignore the openmode
841         argument; simplify.
842         * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
843         seekpos): Remove the openmode argument.
844         * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
845         seekpos): Remove redundant placeholder for the openmode argument.
846         * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
847         * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
848         * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
849         * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
850         * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
851
852 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
853
854         * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
855         (locale::facet::_S_get_c_locale): Same.
856         
857 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
858
859         * config/linker-map.gnu: Export _S_get_c_locale instead of
860         _S_c_locale object.
861
862 2003-10-02  Petur Runolfsson  <peturr02@ru.is>
863
864         * config/locale/generic/c_locale.cc
865         (category_names, locale::_S_categories): Const qualify.
866         * config/locale/gnu/c_locale.cc: Same.
867         * config/locale/generic/time_members.h (__timepunct::__timepunct):
868         Copy string contents before assigning to _M_name_timepunct,
869         qualify strcpy and strlen with std::.
870         * config/locale/gnu/time_members.h: Same.
871         * config/locale/gnu/messages_members.h (messages::messages):
872         Copy string contents before assigning to _M_name_messages,
873         qualify strcpy and strlen with std::.
874         * config/os/gnu-linux/ctype_noninline.h
875         (ctype<char>::classic_table()): Don't call locale::classic().
876         * include/bits/locale_classes.h
877         (locale::_S_categories): Const qualify. 
878         (locale::_S_once, locale::_S_initialize_once,
879         locale::facet::_S_once, locale::facet::_S_initialize_once,
880         locale::facet::_S_get_c_locale): Declare.
881         (locale::_S_initialize): Don't define.
882         (locale::facet::_S_c_locale): Make private.
883         (locale::facet::_S_c_name): Same, const qualify.
884         (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
885         parameters, add throw() specifier.
886         * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
887         messages::_M_name_messages): Const qualify.
888         * src/locale.cc
889         (locale::_S_once, locale::facet::_S_once): Define.
890         (locale::classic): Move initialization code...
891         (locale::_S_initialize_once): ...here.  
892         (locale::_S_initialize): Call _S_initialize_once through
893         __gthread_once.
894         (locale::facet::_S_initialize_once): Initialize _S_c_locale.
895         (locale::facet::_S_get_c_locale): Call _S_initialize_once through
896         __gthread_once before returning _S_c_locale.
897         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
898         Drop unused parameters, add throw() specifier, don't initialize
899         locale::facet::_S_c_locale and _S_c_name.
900         
901         * config/locale/generic/messages_members.h:
902         Replace _S_c_locale with _S_get_c_locale().
903         * config/locale/gnu/c_locale.cc: Same.
904         * config/locale/gnu/messages_members.h: Same.
905         * config/locale/gnu/numeric_members.cc: Same.
906         * config/locale/gnu/time_members.cc: Same.
907         * config/os/gnu-linux/ctype_noninline.h: Same.
908         * include/bits/locale_facets.h: Same.
909         * include/bits/locale_facets.tcc: Same.
910         * src/codecvt.cc: Same.
911         * src/ctype.cc: Same.
912
913 2003-10-02  Carlo Wood  <carlo@alinoe.com>
914
915         * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
916         Decode symbols that start with _GLOBAL_[ID]_ differently: the
917         trailing part ends with a terminating zero and is not necessarily an
918         encoding.
919         * src/demangle.cc (): Same.
920         * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
921
922 2003-10-02  Paolo Carlini  <pcarlini@unitus.it>
923
924         * testsuite/22_locale/locale/cons/12438.cc: Use
925         __gnu_test::try_named_locale("").
926
927 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
928
929         * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
930         (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
931         instead of drand48.
932         * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
933         * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
934         HAVE_DRAND48.
935         * config.h.in, configure: Regenerate.
936         * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
937         lrand48 use.
938
939 2003-10-01  Nathan Myers  <ncm@cantrip.org>
940
941         * include/bits/locale_facets.tcc (time_put::put): Avoid
942         expensive *__s++, in favor of *__s, ++__s.
943
944 2003-10-01  Paolo Carlini  <pcarlini@unitus.it>
945
946         * include/bits/locale_facets.tcc (time_put::put): Minor
947         tweak to the previous commit.
948
949 2003-10-01  Paolo Carlini  <pcarlini@unitus.it>
950
951         PR libstdc++/12439
952         * include/bits/locale_facets.tcc (time_put::put): Deal
953         with the three issues pointed out by the PR.
954         * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
955         * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
956         * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
957         * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
958         * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
959
960 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
961
962         * include/bits/stl_algo.h: Minor cosmetic reformattings.
963
964 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
965
966         * include/bits/stl_algo.h (search_n): Tweak, to spare the
967         first --__n.
968
969 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
970
971         * testsuite/22_locale/locale/cons/12352.cc: Explicitly
972         qualify exception name.
973
974 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
975
976         PR libstdc++/12438
977         * include/bits/locale_facets.tcc (locale::combine): Don't
978         leak memory if _M_replace_facet throws.
979         * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
980
981         * include/bits/locale_classes.h (locale::locale(const locale&,
982         _Facet*)): Tweak, use consistently _M_remove_reference.
983
984 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
985
986         PR libstdc++/12352 (cont)
987         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
988         Don't leak __cloc; don't leak if any of the _M_init_facet(...)
989         calls fail.
990         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
991         (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
992         !_M_caches, !_M_names.
993
994 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
995
996         * configure.host: Handle Solaris 2.5 micro releases explicitly.
997         Remove wildcards from Solaris 2.6, 7-9: there were no
998         micro releases.
999         Treat Solaris 10 and up like 7-9.
1000
1001 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
1002
1003         * include/bits/stl_algo.h (search_n): Improve the previous
1004         fix as suggested by Martin.
1005
1006 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
1007
1008         PR libstdc++/12296
1009         * include/bits/istream.tcc (peek): Set eofbit if sgetc
1010         returns eof.
1011         * testsuite/27_io/basic_istream/peek/char/12296.cc:
1012         New, from the PR.
1013
1014 2003-09-29  Nathan Myers  <ncm@cantrip.org>
1015             Paolo Carlini  <pcarlini@unitus.it>
1016
1017         PR libstdc++/11400
1018         * include/bits/stl_algo.h (search_n):
1019         Use iterator_traits<>::difference_type for __n.
1020         * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
1021
1022 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
1023
1024         * testsuite/22_locale/locale/cons/12352.cc:
1025         Use __attribute__((unused)) for test.
1026
1027 2003-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
1028
1029         * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either 
1030         "Son" or "So" as abbreviated name for Sunday in de_DE locale.
1031         * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
1032
1033 2003-09-26  Brad Spencer  <spencer@infointeractive.com>
1034
1035         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
1036         Explicitly qualify exceptions.
1037         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
1038         * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
1039         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
1040         * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
1041         
1042 2003-09-25  Paolo Carlini  <pcarlini@unitus.it>
1043
1044         PR libstdc++/12352
1045         * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
1046         size_t)): Don't leak if memory allocations for _M_facets,
1047         _M_caches, and _M_names fail.
1048         (locale::_Impl::_Impl(const char*, size_t)): Ditto.
1049         (locale::_Impl::_M_replace_categories(const _Impl*,
1050         category)): Ditto.
1051         (locale::_Impl::_M_install_facet(const locale::id*,
1052         const facet*)): Ditto.
1053         * include/bits/locale_classes.h (locale::locale(const locale&,
1054         _Facet*)): Don't leak memory.
1055         * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
1056
1057         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
1058         bool)): Qualify with std:: strcpy, tweak.
1059         * include/bits/locale_classes.h
1060         (locale::_Impl::_M_check_same_name): Qualify strcmp.
1061
1062 2003-09-25  Brad Spencer  <spencer@infointeractive.com>
1063
1064         PR libstdc++/6072
1065         * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
1066         wcstof, iswblank.       
1067         * aclocal.m4: Regenerate.
1068         * config.h.in: Regenerate.
1069         * configure: Regenerate.
1070         * crossconfig.m4: Add in wchar_t bits for solaris crosses.
1071         * config/io/basic_file_stdio.cc: Guard unistd.h.
1072         * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
1073         * include/c_std/std_cwchar.h: Same.
1074         * include/c_std/std_cwctype.h: Same.
1075         
1076 2003-09-25  Benjamin Kosnik  <bkoz@redhat.com>
1077
1078         PR libstdc++/11065
1079         * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
1080         * config/locale/generic/ctype_members.cc: Same.
1081         * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
1082         * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
1083
1084         * config/os/generic/ctype_inline.h: Update.
1085         
1086 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
1087
1088         * src/Makefile.am (version_dep): New variable.
1089         (libstdc___la_DEPENDENCIES): Use it to add dependency on
1090         libstdc++-symbol.ver only when using symbol versioning.
1091         * src/Makefile.in: Regenerate.
1092
1093 2003-09-23  Benjamin Kosnik  <bkoz@redhat.com>
1094
1095         * include/bits/locale_facets.tcc: Tweak to avoid warnings.
1096         * testsuite/testsuite_hooks.h: Same.
1097         * testsuite/*/*.cc: Same.
1098
1099 2003-09-22  Petur Runolfsson  <peturr02@ru.is>
1100
1101         * include/bits/istream.tcc (basic_istream::read,
1102         basic_istream::readsome, basic_istream::putback,
1103         basic_istream::unget, operator>>(basic_istream, CharT)):
1104         Avoid redundant setstate(failbit) calls when sentry::operator bool()
1105         returns false.
1106
1107 2003-09-22  Carlo Wood  <carlo@alinoe.com>
1108
1109         PR libstdc++/12365
1110         * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
1111         char const*, int, int)):  Remove unused identifier
1112         cv_qualifier for overloaded constructor.
1113
1114 2003-09-18  Benjamin Kosnik  <bkoz@redhat.com>
1115
1116         PR libstdc++/11504
1117         * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
1118         WARN_FLAGS, remove -Wno-format.
1119         * aclocal.m4: Regenerate.
1120         * configure: Regenerate.
1121
1122 2003-09-18  Petur Runolfsson  <peturr02@ru.is>
1123
1124         * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
1125         * config/io/basic_file_stdio.h: Same.
1126         * include/std/std_fstream.h (__ctype_type): Delete.
1127         * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
1128         
1129 2003-09-17  Benjamin Kosnik  <bkoz@redhat.com>
1130
1131         PR libstdc++/12239
1132         * configure.host (abi_baseline_pair): Error out on solaris2
1133         configurations without a minor version number.
1134
1135 2003-09-13  Phil Edwards  <phil@codesourcery.com>
1136
1137         * docs/doxygen/run_doxygen:  Clear GENERATE_TAGFILE entirely
1138         if man pages are on.
1139         * docs/doxygen/user.cfg.in:  And here.
1140
1141 2003-09-10  Daniel Jacobowitz  <drow@mvista.com>
1142             Andreas Jaeger <aj@suse.de>
1143
1144         PR libstdc++/12189
1145         * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
1146         abi_check if cross compiling.
1147         * aclocal.m4: Regenerated.
1148         * configure: Regenerated.
1149
1150 2003-09-10  Jeffrey D. Oldham  <oldham@codesourcery.com>
1151
1152         * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
1153         NULL, return NULL.  This reflects a C++ ABI change 2003 Sep 05.
1154         (__cxa_vec_new3): Likewise.
1155
1156 2003-09-10  Petur Runolfsson  <peturr02@ru.is>
1157
1158         * include/bits/fstream.tcc (basic_filebuf::seekoff):
1159         Use codecvt::length to handle variable-width stateless encodings
1160         correctly.
1161         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
1162         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
1163
1164 2003-09-10  Alan Modra  <amodra@bigpond.net.au>
1165
1166         * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
1167         rather than or'ing.
1168
1169 2003-09-09  Alan Modra  <amodra@bigpond.net.au>
1170
1171         * configure: Regenerate.
1172
1173 2003-09-09  David Edelsohn  <edelsohn@gnu.org>
1174
1175         * src/ios.cc (ios_base::Init::Init): Remove unnecessary
1176         qualifier from _S_synced_with_stdio.
1177
1178 2003-09-09  Bernardo Innocenti  <bernie@develer.com>
1179
1180         * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
1181
1182 2003-09-04  Petur Runolfsson  <peturr02@ru.is>
1183
1184         PR libstdc++/9028
1185         * include/bits/fstream.tcc
1186         (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
1187         (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
1188         _M_ext_buf_size, _M_ext_next and _M_ext_end.
1189         (basic_filebuf::underflow): Handle variable-width stateless
1190         encodings (codecvt::encoding() == 0), including UTF-8.
1191         * include/std/std_fstream.h (basic_filebuf):
1192         Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
1193         * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
1194         * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
1195         * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
1196         * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
1197         * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
1198         * testsuite/27_io/objects/wchar_t/12.cc: New test.
1199         * testsuite/27_io/objects/wchar_t/13.cc: New test.
1200
1201 2003-09-04  Jonathan Wakely  <redi@gcc.gnu.org>
1202
1203         * docs/html/faq/index.html: Note that a namespace alias can't be
1204         used when specialising templates in extension namespace.
1205         * docs/html/faq/index.txt: Regenerate.
1206
1207 2003-09-03  Petur Runolfsson  <peturr02@ru.is>
1208
1209         PR libstdc++/12048
1210         * include/ext/stdio_sync_filebuf.h
1211         (stdio_sync_filebuf::_M_unget_buf): Declare it.
1212         (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
1213         (stdio_sync_filebuf::uflow): Store the returned character in
1214         _M_unget_buf.
1215         (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
1216         _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
1217         (stdio_sync_filebuf<char>::xsgetn): Store last read character in
1218         _M_unget_buf, if any, else eof().
1219         (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
1220         _M_unget_buf, if any, else eof().
1221         * testsuite/27_io/objects/char/12048.cc: Rename to...
1222         * testsuite/27_io/objects/char/12048-1.cc: ...this.
1223         * testsuite/27_io/objects/char/12048-2.cc: New test.
1224         * testsuite/27_io/objects/char/12048-3.cc: New test.
1225         * testsuite/27_io/objects/char/12048-4.cc: New test.
1226         * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
1227         * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
1228         * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
1229         * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
1230         * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
1231         * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
1232         * testsuite/ext/stdio_sync_filebuf_char.cc
1233         (test02, test03, test04, test05): New tests.
1234         * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
1235         (test02, test03, test04, test05): New tests.
1236
1237 2003-09-03  Petur Runolfsson  <peturr02@ru.is>
1238
1239         * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
1240         stringbuf or strstreambuf. Fix typos.
1241
1242 2003-09-02  Phil Edwards  <phil@codesourcery.com>
1243
1244         * acinclude.m4 (GLIBCXX_ENABLE_HOSTED):  #define _GLIBCXX_HOSTED
1245         appropriately.
1246         * config.h.in:  Add _GLIBCXX_HOSTED.
1247         * libsupc++/eh_term_handler.cc:  Test it here; initialize
1248         __terminate_handler to std::abort if freestanding.
1249         * aclocal.m4, configure:  Regenerated.
1250         * docs/html/configopts.html:  Document --disable-hosted-libstdcxx.
1251
1252 2003-08-29  Nathan Myers  <ncm@cantrip.org>
1253         
1254         PR libstdc++/11990      
1255         * include/bits/locale_facets.tcc (__pad): delete dead code.
1256
1257 2003-08-28  Alan Modra  <amodra@bigpond.net.au>
1258
1259         * configure.ac: Test $with_cross_host against $build_alias, not $build.
1260         * configure: Regenerate.
1261
1262 2003-08-27  Petur Runolfsson  <peturr02@ru.is>
1263
1264         * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
1265         * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
1266
1267 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
1268
1269         * Makefile.am:  Remove trailing whitespace.  Remove needless
1270         "foo = @foo@" assignments.  Replace direct uses of @foo@ with $(foo).
1271         * include/Makefile.am:  Likewise.
1272         * libmath/Makefile.am:  Likewise.
1273         * libsupc++/Makefile.am:  Likewise.
1274         * po/Makefile.am:  Likewise.
1275         * src/Makefile.am:  Likewise.
1276         * testsuite/Makefile.am:  Likewise.
1277
1278         * Makefile.in, include/Makefile.in, libmath/Makefile.in,
1279         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1280         testsuite/Makefile.in:  Regenerated.
1281
1282 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
1283
1284         * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES):  Change quoting of
1285         includedir.
1286         * aclocal.m4, configure:  Regenerate.
1287
1288 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
1289
1290         * acinclude.m4: Include no-executables.m4.
1291         * configure.ac: Uncomment GCC_NO_EXECUTABLES.
1292         * aclocal.m4: Regenerated.
1293         * configure: Regenerated.
1294
1295 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
1296
1297         * acinclude.m4: Don't call AC_ISC_POSIX.
1298         * aclocal.m4: Regenerated.
1299         * configure: Regenerated.
1300
1301 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
1302
1303         * acinclude.m4 (GLIBCXX_CONDITIONAL):  New macro.  Wrap
1304         AM_CONDITIONAL.  Replace all calls to AM_CONDITIONAL with this one.
1305         (GLIBCXX_ENABLE_HOSTED):  New macro, sets new variable is_hosted,
1306         used elsewhere in this file.
1307         (GLIBCXX_EVALUATE_CONDITIONALS):  New macro...
1308         * configure.ac:  ...called here to expand all conditionals.
1309         * Makefile.am:  Conditionalize SUBDIRS on GLIBCXX_HOSTED.
1310         * include/Makefile.am:  Remove redundant gxx_include_dir assignment.
1311         (install-freestanding-headers):  New target, a subset of
1312         install-headers.  Conditionalize install-data-local on GLIBCXX_HOSTED.
1313
1314         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1315         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1316         src/Makefile.in, testsuite/Makefile.in:  Regenerated.
1317
1318 2003-08-26  Phil Edwards  <pme@gcc.gnu.org>
1319
1320         * docs/doxygen/run_doxygen:  Shell fixes.  Remove hardcoded local
1321         pathnames from generated tag file.
1322
1323 2003-08-26  Phil Edwards  <pme@gcc.gnu.org>
1324
1325         * Makefile.am:  Add comment.
1326         * acinclude.m4 (GLIBCXX_CONFIGURE):  Set new glibcxx_SUBDIRS and
1327         SUBDIRS variables.
1328         * configure.ac:  Use them both here, instead of hardcoded lists.
1329
1330         * fragment.am:  Add STAMP varaible.
1331         * include/Makefile.am:  Cosmetic whitespace cleanup.  Use $(LN_S)
1332         instead of @LN_S@.
1333         (stamp-*):  Move file creation rule outside of 'if' branches to
1334         ensure the stamp-* files are actually updated.  Use $(STAMP).
1335         * src/Makefile.am:  Remove now-nonexistant variable.
1336         * libsupc++/Makefile.am:  Likewise.  Snap the assignment chain
1337         for -prefer-pic.
1338         * po/Makefile.am:  Include same fragment as all the others.
1339
1340         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1341         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in:  Regenerated.
1342
1343 2003-08-26  Loren J. Rittle  <ljrittle@acm.org>
1344
1345         * testsuite/data/cin_unget-1.txt: New.
1346         * testsuite/27_io/objects/char/12048.cc: New.
1347
1348 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
1349
1350         * config/os/hpux/os_defines.h: Unconditionally define
1351         _GLIBCXX_GTHREAD_USE_WEAK to 0.
1352
1353 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
1354
1355         * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
1356         crosses to Darwin targets.
1357         * configure: Regenerate.
1358
1359 2003-08-19  Petur Runolfsson  <peturr02@ru.is>
1360
1361         * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
1362
1363 2003-08-17  Phil Edwards  <pme@gcc.gnu.org>
1364
1365         * configure.ac:  GCC_NO_EXECUTABLES was supposed to be commented
1366         in the patch from 3 minutes ago.  Boy, is my face red.
1367         * configure:  At least I remembered to regenerate this.
1368
1369 2003-08-17  Phil Edwards  <pme@gcc.gnu.org>
1370
1371         * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES):  Remove LIBMATH_INCLUDES
1372         and LIBSUPCXX_INCLUDES.  Re-purpose TOPLEVEL_INCLUDES to refer to
1373         things from the top level.
1374         * configure.ac (GLIBCXX_IS_NATIVE):  Determine earlier and re-order.
1375         Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
1376         (currently unused).  Strip the fake-VPATH shell fragment from
1377         automake-generated rules, if present.
1378         * linkage.m4:  Add comment.
1379
1380         * fragment.am:  New file, containing factored-out common settings.
1381         (AM_CPPFLAGS):  Absorb the deprecated INCLUDES variable contents.
1382         * Makefile.am:  Include fragment.am.  Remove common variables.
1383         * include/Makefile.am:  Likewise.
1384         * libmath/Makefile.am:  Likewise.
1385         * libsupc++/Makefile.am:  Likewise.
1386         * po/Makefile.am:  Likewise.  Print rules during check.
1387         * src/Makefile.am:  Likewise.
1388         * testsuite/Makefile.am:  Likewise.
1389
1390         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1391         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1392         src/Makefile.in, testsuite/Makefile.in:  Regenerate.
1393
1394 2003-08-11  John Levon  <levon@movementarian.org>
1395
1396         * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
1397         remaining places for the name change from GLIBCPP_FORCE_NEW
1398         to GLIBCXX_FORCE_NEW
1399
1400 2003-08-11  Benjamin Kosnik  <bkoz@redhat.com>
1401
1402         * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
1403         typedefs to num_*.
1404         * include/bits/basic_ios.tcc: Same.
1405         * include/bits/istream.tcc: Same.
1406         * include/bits/locale_facets.h: Same.
1407         * include/bits/ostream.tcc: Same.
1408         * include/std/std_istream.h: Same.
1409         * include/std/std_ostream.h: Same.
1410         * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
1411
1412         * include/ext/rope: Remove build warning.
1413
1414 2003-08-11  Andreas Jaeger  <aj@suse.de>
1415
1416         * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
1417         to make SMP-safe.
1418         * include/Makefile.in: Regenerated.
1419
1420 2003-08-11  Phil Edwards  <pme@gcc.gnu.org>
1421
1422         * acinclude.m4 (GLIBCXX_CONFIGURE):  Unprecious CC and CFLAGS
1423         when calling AC_PROG_CC.
1424         * aclocal.m4, configure:  Regenerate.
1425
1426 2003-08-11  Phil Edwards  <pme@gcc.gnu.org>
1427
1428         * acinclude.m4:  Properly quote variable which will be expanded
1429         inside makefiles.  Use CXX instead of CC to extract compiler info.
1430         * configure.ac (AC_INIT):  Use the new 4-arg form to finally get the
1431         correct form in PACKAGE.
1432         * aclocal.m4, configure:  Regenerate.
1433
1434 2003-08-08  Benjamin Kosnik  <bkoz@redhat.com>
1435
1436         * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
1437         (check-abi-verbose): Same.
1438         * testsuite/testsuite_performance.h (report_performance): Same.
1439
1440 2003-08-08  Loren J. Rittle  <ljrittle@acm.org>
1441
1442         * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
1443
1444 2003-08-07  Doug Gregor  <dgregor@apple.com>
1445
1446         * include/bits/char_traits.h (char_traits::not_eof): Match operand
1447         types in ? :.
1448
1449 2003-08-07  Bernardo Innocenti  <bernie@develer.com>
1450
1451         PR libstdc++/11784
1452         * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
1453         Replace variants with new BSET-based version.
1454
1455 2003-08-07  Carlo Wood  <carlo@alinoe.com>
1456
1457         * include/bits/demangle.h: Do not use cctype functions that depend
1458         on locale.
1459
1460 2003-08-05  Phil Edwards  <pme@gcc.gnu.org>
1461
1462         * configure.in:  Rename...
1463         * configure.ac:  ...to this.
1464         * docs/html/17_intro/porting.texi:  Update name.
1465
1466         * docs/html/17_intro/porting.html:  Regenerate.
1467         * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1468         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1469         testsuite/Makefile.in:  Regenerate (picks up new dependancy).
1470
1471 2003-08-05  Phil Edwards  <pme@gcc.gnu.org>
1472
1473         * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS):  Put down the crack
1474         pipe, open the window to let out the fumes, redo the option-handling
1475         logic to properly execute the detection test.
1476         * aclocal.m4, configure:  Regenerate.
1477
1478 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
1479
1480         Convert to new autotools.
1481         * acconfig.h:  Update with correct names.
1482         * configure.host (ATOMICITYH):  Rename to atomicity_include_dir.
1483         (qnx6.[12]*):  'q' comes before 's', not after 'w'.
1484         * configure.in:  Update.  Split hardcoded cross-configury settings
1485         out to...
1486         * crossconfig.m4:  ...here.  New file.  Contents untouched.
1487         * acinclude.m4:  Reorganize and rewrite as needed.  Split large
1488         chunks out to...
1489         * linkage.m4:  ...here.  New file.  Math and stdlib linkage tests.
1490         Contents untouched.
1491         * scripts/testsuite_flags.in:  Update.
1492
1493         * Makefile.am:  Remove unneeded AUTOMAKE_OPTIONS settings and other
1494         variables (already generated by automake).
1495         * include/Makefile.am:  Ditto.
1496         * libmath/Makefile.am:  Ditto.
1497         * libsupc++/Makefile.am:  Ditto.
1498         * po/Makefile.am:  Ditto.
1499         * src/Makefile.am:  Ditto.
1500
1501         * aclocal.m4:  Regenerate using new versions.
1502         * config.h.in:  Ditto.
1503         * configure:  Ditto.
1504         * Makefile.in:  Ditto.
1505         * include/Makefile.in:  Ditto.
1506         * libmath/Makefile.in:  Ditto.
1507         * libsupc++/Makefile.in:  Ditto.
1508         * po/Makefile.in:  Ditto.
1509         * src/Makefile.in:  Ditto.
1510         * testsuite/Makefile.in:  Ditto.
1511
1512 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
1513
1514         * po/libstdc++.pot:  Re-extract/regenerate.
1515
1516 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
1517
1518         * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
1519         Remove unneeded variable assignments.  Leave them for automake.
1520         * testsuite/lib/libstdc++-v3.exp:  Rename...
1521         * testsuite/lib/libstdc++.exp:  ...to this.  Adjust function names
1522         accordingly.
1523         * testsuite/libstdc++-v3.dg/dg.exp:  Rename...
1524         * testsuite/libstdc++-dg/normal.exp:  ...to this.  Adjust function
1525         names accordingly.
1526
1527 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
1528
1529         * docs/doxygen/guide.html:  run_doxygen uses bash.
1530         * docs/doxygen/mainpage.html:  We'll be shipping tag files.
1531         * docs/doxygen/run_doxygen:  Tweaks and improvements.
1532         * docs/doxygen/user.cfg.in:  Set GENERATE_TAGFILE.
1533         * docs/html/install.html:  Update autoconf/automake requirements.
1534         * docs/html/test.html:  Add section describing DejaGNU support.
1535         * docs/html/17_intro/confdeps.dot:  New file, generates...
1536         * docs/html/17_intro/confdeps.png:  ...this new file.
1537         * docs/html/Makefile:  Generated here.
1538         * docs/html/17_intro/configury.html:  New file.
1539
1540 2003-07-31  Phil Edwards  <pme@gcc.gnu.org>
1541
1542         * testsuite/lib/libstdc++-v3-dg.exp:  Rename...
1543         * testsuite/lib/libstdc++-v3.exp:  ...to this.
1544         * testsuite/libstdc++-v3.dg/dg.exp:  No special case needed now.
1545
1546 2003-07-31  Doug Gregor  <dgregor@apple.com>
1547
1548         Add user specialization tests.
1549         * testsuite/23_containers/deque/1.cc: New.
1550         * testsuite/23_containers/list/1.cc: New.
1551         * testsuite/23_containers/map/1.cc: New.
1552         * testsuite/23_containers/multimap/1.cc: New.
1553         * testsuite/23_containers/multiset/1.cc: New.
1554         * testsuite/23_containers/set/1.cc: New.
1555         * testsuite/23_containers/vector/1.cc: New.
1556
1557 2003-07-31  Benjamin Kosnik  <bkoz@redhat.com>
1558
1559         Reshuffle 23_containers testsuite.
1560         * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
1561         bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
1562         list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
1563         map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
1564         set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
1565         vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
1566         vector_resize.cc: Split into...
1567         * 23_containers/bitset/cons/1.cc: New.
1568         * 23_containers/bitset/cons/6282.cc: New.
1569         * 23_containers/bitset/count/6124.cc: New.
1570         * 23_containers/bitset/operations/1.cc: New.
1571         * 23_containers/bitset/operations/2.cc: New.
1572         * 23_containers/bitset/test/1.cc: New.
1573         * 23_containers/bitset/to_ulong/1.cc: New.
1574         * 23_containers/deque/cons/1.cc: New.
1575         * 23_containers/deque/cons/2.cc: New.
1576         * 23_containers/deque/operators/1.cc: New.
1577         * 23_containers/list/capacity/1.cc: New.
1578         * 23_containers/list/cons/1.cc: New.
1579         * 23_containers/list/cons/2.cc: New.
1580         * 23_containers/list/cons/3.cc: New.
1581         * 23_containers/list/cons/4.cc: New.
1582         * 23_containers/list/cons/5.cc: New.
1583         * 23_containers/list/cons/6.cc: New.
1584         * 23_containers/list/cons/7.cc: New.
1585         * 23_containers/list/cons/8.cc: New.
1586         * 23_containers/list/cons/9.cc: New.
1587         * 23_containers/list/modifiers/1.cc: New.
1588         * 23_containers/list/modifiers/2.cc: New.
1589         * 23_containers/list/modifiers/3.cc: New.
1590         * 23_containers/list/operators/1.cc: New.
1591         * 23_containers/list/operators/2.cc: New.
1592         * 23_containers/list/operators/3.cc: New.
1593         * 23_containers/list/operators/4.cc: New.
1594         * 23_containers/map/insert/1.cc: New.
1595         * 23_containers/map/operators/1.cc: New.
1596         * 23_containers/map/operators/1_neg.cc: New.
1597         * 23_containers/multiset/insert/1.cc: New.
1598         * 23_containers/priority_queue/members/7161.cc: New.
1599         * 23_containers/queue/members/7157.cc: New.
1600         * 23_containers/set/operators/1_neg.cc: New.
1601         * 23_containers/stack/members/7158.cc: New.
1602         * 23_containers/vector/bool/1.cc: New.
1603         * 23_containers/vector/bool/6886.cc: New.
1604         * 23_containers/vector/capacity/1.cc: New.
1605         * 23_containers/vector/capacity/2.cc: New.
1606         * 23_containers/vector/capacity/8230.cc: New.
1607         * 23_containers/vector/cons/1.cc: New.
1608         * 23_containers/vector/cons/2.cc: New.
1609         * 23_containers/vector/cons/3.cc: New.
1610         * 23_containers/vector/cons/4.cc: New.
1611         * 23_containers/vector/cons/6513.cc: New.
1612         * 23_containers/vector/element_access/1.cc: New.
1613         * 23_containers/vector/modifiers/1.cc: New.
1614         * 23_containers/vector/modifiers/2.cc: New.
1615         * 23_containers/vector/resize/1.cc: New.
1616
1617 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1618
1619         * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
1620         dg-options.
1621         * testsuite/thread/pthread2.cc: Likewise.
1622         * testsuite/thread/pthread3.cc: Likewise.
1623         * testsuite/thread/pthread4.cc: Likewise.
1624         * testsuite/thread/pthread5.cc: Likewise.
1625         * testsuite/thread/pthread6.cc: Likewise.
1626         * testsuite/thread/pthread7-rope.cc: Likewise.
1627
1628 2003-07-30  Phil Edwards  <pme@gcc.gnu.org>
1629
1630         * include/bits/c++config:  Partial reversion (comment placement) of
1631         previous patch.
1632
1633 2003-07-30  Benjamin Kosnik  <bkoz@redhat.com>
1634
1635         * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
1636         (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
1637         (_GLIBCXX_AT_AT): Remove.
1638         (__USE_MALLOC): Remove.
1639         * include/std/std_fstream.h: Modify.
1640         * include/bits/basic_ios.h: Same.
1641         * include/bits/valarray_array.h: Same.
1642         * include/c_std/std_cmath.h: Same.
1643         * include/c_std/cmath.tcc: Same.
1644         * include/std/std_vector.h: Same.
1645         * include/std/std_string.h: Same.
1646         * include/std/std_stack.h: Same.
1647         * include/std/std_queue.h: Same.
1648         * include/std/std_list.h: Same.
1649         * include/std/std_deque.h: Same.
1650         * include/std/std_streambuf.h: Same.
1651         * include/std/std_sstream.h: Same.
1652         * include/std/std_ostream.h: Same.
1653         * include/std/std_istream.h: Same.
1654         * include/bits/valarray_array.tcc: Same, format.
1655
1656         * include/c/std_cctype.h: Fix include guards.
1657         * include/c/std_cerrno.h: Same.
1658         * include/c/std_cfloat.h: Same.
1659         * include/c/std_climits.h: Same.
1660         * include/c/std_clocale.h: Same.
1661         * include/c/std_cmath.h: Same.
1662         * include/c/std_csetjmp.h: Same.
1663         * include/c/std_csignal.h: Same.
1664         * include/c/std_cstdarg.h: Same.
1665         * include/c/std_cstddef.h: Same.
1666         * include/c/std_cstdio.h: Same.
1667         * include/c/std_cstdlib.h: Same.
1668         * include/c/std_cstring.h: Same.
1669         * include/c/std_ctime.h: Same.
1670         * include/c/std_cwchar.h: Same.
1671         * include/c/std_cwctype.h: Same.
1672         * include/c_std/cmath.tcc: Same.
1673         * include/c_std/std_cmath.h: Same.
1674
1675 2003-07-30  Gawain Bolton  <gp.bolton@computer.org>
1676
1677         PR libstdc++/11504.
1678         * include/bits/stl_tree.h: Replace C-style casts with C++-style
1679         casts.  Changes to avoid casting away constness.  Eliminate
1680         _Rb_tree_base_iterator class.  Change _Rb_tree_iterator to use
1681         initialization lists.  Move out implementation of __black_count()
1682         to...
1683         * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
1684         Rename_Rb_tree_base_iterator::_M_increment() to
1685         _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
1686         _Rb_tree_decrement.
1687         * config/linker-map.gnu: Add and change symbols here.
1688
1689 2003-07-30  Jonathan Wakely  <redi@gcc.gnu.org>
1690
1691         * docs/html/22_locale/howto.html: Use locale::classic() instead
1692         of locale("C").
1693
1694 2003-07-28  Benjamin Kosnik  <bkoz@redhat.com>
1695
1696         * testsuite/testsuite_hooks.h: Remove list include.
1697         (func_callback): Define as unique type, not std::list.
1698         Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
1699         * testsuite/libstdc++-v3.dg/dg.exp: Same.
1700         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
1701         * testsuite/23_containers/bitset_ctor.cc:
1702         * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
1703         * testsuite/18_support/numeric_limits.cc: Same.
1704         * testsuite/21_strings/basic_string/append/char/1.cc: Same.
1705         * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
1706         * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
1707         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
1708         * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
1709         * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
1710         * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
1711         * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
1712         * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
1713         * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
1714         * testsuite/21_strings/basic_string/find/char/1.cc: Same.
1715         * testsuite/21_strings/basic_string/find/char/2.cc: Same.
1716         * testsuite/21_strings/basic_string/find/char/3.cc: Same.
1717         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
1718         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
1719         * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
1720         * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
1721         * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
1722         * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
1723         * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
1724         * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
1725         * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
1726         * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
1727         * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
1728         * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
1729         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
1730         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
1731         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
1732         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
1733         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
1734         * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
1735         * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
1736         * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
1737         * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
1738         * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
1739         * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
1740         * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
1741         * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
1742         * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
1743         * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
1744         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
1745         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
1746         * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
1747         * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
1748         * testsuite/23_containers/bitset_ctor.cc: Same.
1749         * testsuite/23_containers/bitset_shift.cc: Same.
1750         * testsuite/23_containers/vector_ctor.cc: Same.
1751         * testsuite/23_containers/vector_element_access.cc: Same.
1752         * testsuite/24_iterators/istreambuf_iterator.cc: Same.
1753         * testsuite/24_iterators/iterator.cc: Same.
1754         * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
1755         * testsuite/25_algorithms/lower_bound.cc: Same.
1756         * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
1757         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
1758         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
1759         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
1760         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
1761         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
1762         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
1763         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
1764         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
1765         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
1766         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
1767         Same.
1768
1769 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
1770
1771         * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
1772         docs/html/test.html, docs/html/17_intro/headers_cc.txt,
1773         docs/html/17_intro/howto.html, docs/html/ext/howto.html:  Change
1774         GLIBCPP to GLIBCXX (and explain as needed).
1775
1776 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
1777
1778         * README:  Update.
1779
1780 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
1781
1782         * testsuite/22_locale/messages/members/char/1.cc,
1783         testsuite/22_locale/messages/members/char/2.cc,
1784         testsuite/22_locale/messages/members/char/3.cc,
1785         testsuite/22_locale/messages_byname/1.cc:  Update comment regarding
1786         the origin of LOCALEDIR.
1787         * testsuite/lib/libstdc++-v3.exp:  New file.
1788
1789 2003-07-25  Benjamin Kosnik  <bkoz@redhat.com>
1790
1791         * include/bits/char_traits.h: Update copyright, tweak.
1792         * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
1793         std types.
1794
1795 2003-07-24  Matt Austern  <austern@apple.com>
1796
1797         * /include/bits/char_traits.h (class char_traits): Put all the
1798         real work into the new class template __gnu_cxx::char_traits.
1799         Gave generic definitions for member functions.  Types are taken
1800         from the new class template __gnu_cxx::_Char_types.
1801         * testsuite/21_strings/char_traits/requirements/short/1.cc: New
1802         file.  Test of std::char_traits<short>, which serves as a test of
1803         the char_traits primary template.
1804
1805 2003-07-24  Benjamin Kosnik  <bkoz@redhat.com>
1806
1807         * testsuite/*: Change __gnu_cxx_test to __gnu_test.
1808
1809 2003-07-24  Nathan Myers  <ncm-nospam@cantrip.org>
1810
1811         * testsuite/23_containers/map_operators.cc: Conform to
1812         container requirement as value must be Assignable.
1813
1814 2003-07-23  Alexandre Oliva  <aoliva@redhat.com>
1815
1816         * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
1817         tests not only generation of pch files, but also their use.
1818         * aclocal.m4, configure: Rebuilt.
1819
1820 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
1821
1822         * config/cpu/hppa/atomicity.h: Change
1823         _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
1824         to match misc-inst.cc
1825
1826 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
1827
1828         * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
1829         * include/c_std/std_cctype.h: Ditto.
1830         * include/c_std/std_cerrno.h: Ditto.
1831         * include/c_std/std_cfloat.h: Ditto.
1832         * include/c_std/std_climits.h: Ditto.
1833         * include/c_std/std_clocale.h: Ditto.
1834         * include/c_std/std_cmath.h: Ditto.
1835         * include/c_std/std_csetjmp.h: Ditto.
1836         * include/c_std/std_csignal.h: Ditto.
1837         * include/c_std/std_cstdarg.h: Ditto.
1838         * include/c_std/std_cstddef.h: Ditto.
1839         * include/c_std/std_cstdio.h: Ditto.
1840         * include/c_std/std_cstdlib.h: Ditto.
1841         * include/c_std/std_cstring.h: Ditto.
1842         * include/c_std/std_ctime.h: Ditto.
1843         * include/c_std/std_cwchar.h: Ditto.
1844         * include/c_std/std_cwctype.h: Ditto.
1845         * include/std/std_algorithm.h: Ditto.
1846         * include/std/std_bitset.h: Ditto.
1847         * include/std/std_complex.h: Ditto.
1848         * include/std/std_deque.h: Ditto.
1849         * include/std/std_fstream.h: Ditto.
1850         * include/std/std_functional.h: Ditto.
1851         * include/std/std_iomanip.h: Ditto.
1852         * include/std/std_ios.h: Ditto.
1853         * include/std/std_iosfwd.h: Ditto.
1854         * include/std/std_iostream.h: Ditto.
1855         * include/std/std_istream.h: Ditto.
1856         * include/std/std_iterator.h: Ditto.
1857         * include/std/std_limits.h: Ditto.
1858         * include/std/std_list.h: Ditto.
1859         * include/std/std_locale.h: Ditto.
1860         * include/std/std_map.h: Ditto.
1861         * include/std/std_memory.h: Ditto.
1862         * include/std/std_numeric.h: Ditto.
1863         * include/std/std_ostream.h: Ditto.
1864         * include/std/std_queue.h: Ditto.
1865         * include/std/std_set.h: Ditto.
1866         * include/std/std_sstream.h: Ditto.
1867         * include/std/std_stack.h: Ditto.
1868         * include/std/std_stdexcept.h: Ditto.
1869         * include/std/std_streambuf.h: Ditto.
1870         * include/std/std_string.h: Ditto.
1871         * include/std/std_utility.h: Ditto.
1872         * include/std/std_valarray.h: Ditto.
1873         * include/std/std_vector.h: Ditto.
1874
1875 2003-07-22  Doug Gregor  <dgregor@apple.com>
1876
1877         * include/bits/basic_string.h (basic_string::insert): Deprecate
1878         GNU extension.
1879
1880 2003-07-21  Benjamin Kosnik  <bkoz@redhat.com>
1881
1882         * scripts/testsuite_flags.in (--build-includes): Remove extraneous
1883         paths for libio.
1884         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
1885         (test03): Include typeinfo for bad_cast.
1886         * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
1887         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
1888         * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
1889
1890 2003-07-21  Doug Gregor  <dgregor@apple.com>
1891
1892         * include/bits/boost_concept_check.h:
1893         (_EqualityComparableConcept::__constraints): Remove != from the
1894         list of constraints; it is not listed in Table 28 of the C++98
1895         standard.
1896
1897 2003-07-18  Andreas Jaeger  <aj@suse.de>
1898
1899         * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
1900         * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
1901         * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
1902         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
1903
1904 2003-07-17  Benjamin Kosnik  <bkoz@redhat.com>
1905
1906         * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
1907         * config/locale/generic/messages_members.h: Tweaks.
1908         * config/locale/generic/monetary_members.cc
1909         (moneypunct::_M_initialize_moneypunct): Use cache.
1910         (moneypunct::~moneypunct): Delete cache.
1911         * config/locale/generic/time_members.cc:
1912         (__timepunct::_M_initialize_timepunct): Use cache.
1913         * config/locale/generic/time_members.h:
1914         (__timepunct::~__timepunct): Delete cache.
1915         (__timepunct::__timepunct): Set cache.
1916         * config/locale/gnu/messages_members.h: Tweaks.
1917         * config/locale/gnu/monetary_members.cc:
1918         (moneypunct::_M_initialize_moneypunct): Use cache.
1919         (moneypunct::~moneypunct): Delete cache.
1920         * config/locale/gnu/time_members.cc:
1921         (__timepunct::_M_initialize_timepunct): Use cache.
1922         * config/locale/gnu/time_members.h:
1923         (__timepunct::~__timepunct): Delete cache.
1924         (__timepunct::__timepunct): Set cache.
1925         * include/bits/locale_facets.h (__timepunct_cache): New.
1926         (__moneypunct_cache): New.
1927         * include/bits/locale_facets.tcc: Tweak.
1928         * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
1929         * src/locale-inst.cc: Instantiate caches.
1930         * src/globals.cc: Add "C" caches.
1931         * src/localename.cc: Use external "C" caches.
1932
1933 2003-07-17  Phil Edwards  <pme@gcc.gnu.org>
1934
1935         * docs/doxygen/guide.html:  Fix typo.
1936
1937 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
1938
1939         * include/ext/pod_char_traits.h: Add state template argument.
1940
1941 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
1942
1943         * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
1944         (num_get::_M_convert_int): To _M_insert_int.
1945         (num_get::_M_convert_float): To _M_insert_float.
1946         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1947         Use caches for ctype, num_get.
1948         (num_get::_M_extract_int): Same.
1949         (num_get::get(bool)): Same.
1950         (__verify_grouping): Use size_t.
1951         * src/locale-inst.cc: Update.
1952         * src/locale.cc: Adjust _S_atoms_in.
1953
1954 2003-07-16  Phil Edwards  <pme@gcc.gnu.org>
1955
1956         * docs/doxygen/mainpage.html:  Move building/writing instructions...
1957         * docs/doxygen/guide.html:  ...to here.  New file.
1958
1959 2003-07-16  Jonathan Wakely  <redi@gcc.gnu.org>
1960
1961         * docs/html/ext/howto.html: Update URL for SGI STL docs.
1962         * docs/html/faq/index.html: Same.
1963         * docs/html/faq/index.txt: Regenerate.
1964
1965 2003-07-16  Paolo Carlini  <pcarlini@unitus.it>
1966
1967         PR libstdc++/11528
1968         * include/bits/locale_facets.tcc (money_get::do_get):
1969         Strip only _leading_ zeros.
1970         * testsuite/22_locale/money_get/get/char/11528.cc: Add.
1971         * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
1972
1973 2003-07-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1974
1975         * include/ext/hash_map (class hash_multimap): Remove extra
1976         semicolons from __glibcxx_class_requires3 entries.
1977         * include/ext/hash_set (class hash_set): Ditto.
1978         (class hash_multiset): Ditto.
1979
1980 2003-07-15  Petur Runolfsson  <peturr02@ru.is>
1981
1982         * include/bits/char_traits.h (char_traits<wchar_t>::move):
1983         Change last parameter from int_type to size_t.
1984
1985 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
1986
1987         * include/bits/stl_algo.h (includes, set_union, set_intersection,
1988         set_difference, set_symmetric_difference, max_element, min_element,
1989         next_permutation, prev_permutation, find_first_of, find_end):
1990         Document.
1991         * include/bits/stl_algobase.h (copy,copy_backward):  Clarify overlap
1992         restrictions in docs.
1993         * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
1994         Document.
1995         * docs/doxygen/doxygroups.cc (setoperations):  New group.
1996
1997 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
1998
1999         * include/bits/basic_string.h:  Document public functions.
2000         * docs/doxygen/TODO:  Update c21 todo.
2001
2002 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
2003
2004         * include/bits/stl_list.h:  Document more functions.
2005         * docs/doxygen/TODO:  Update c23 todo.
2006
2007 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
2008
2009         * config/locale/gnu/c_locale.h (__convert_from_v): One more
2010         qualification.
2011
2012 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
2013
2014         * include/bits/stl_tempbuf.h: Qualify free with std::.
2015         * src/locale.cc: Include <cstdlib>, qualify getenv.
2016
2017 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
2018
2019         * config/locale/gnu/c_locale.h (__convert_from_v): Include
2020         <cstdio>. Qualify names.
2021         * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
2022
2023 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
2024             Nathan C. Myers  <ncm-nospam@cantrip.org>
2025
2026         PR libstdc++/11378
2027         * include/std/std_fstream.h (xsputn): Declare only.
2028         * include/bits/fstream.tcc (xsputn): Define, optimize for the
2029         always_noconv() case: when __n is sufficiently large flush
2030         the buffer and issue a direct write, if possible combining the
2031         two with writev in __basic_file<>::xsputn_2.
2032         * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
2033         New, declare.
2034         * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
2035         Define.
2036         * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
2037         the availability of writev in <sys/uio.h>.
2038         * configure.in: Call here.
2039         * acconfig.h: Add undef for the corresponding symbol.
2040         * aclocal.m4: Regenerate.
2041         * configure: Regenerate.
2042         * config.h.in: Regenerate.
2043         * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
2044
2045         * include/std/std_fstream.h (sync): Constify a variable.
2046
2047 2003-07-14  Benjamin Kosnik  <bkoz@redhat.com>
2048
2049         * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
2050         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2051
2052 2003-07-14  Gabriel Dos Reis  <gcc@integrable-solutions.net>
2053
2054         * config/locale/gnu/c_locale.h (__convert_from_v): Include
2055         <cstring> and <cstdlib>. Qualify names.
2056
2057 2003-07-13  Mark Mitchell  <mark@codesourcery.com>
2058
2059         * config/locale/generic/c_locale.h: Include <cstdlib> and
2060         <cstring>.
2061         * include/bits/boost_concept_check.h: Add this-> to unqualified
2062         method calls.
2063         * include/bits/deque.tcc: Likewise.
2064         * include/bits/locale_facets.h : Likewise.
2065         * include/bits/ostream.tcc: Likewise.
2066         * include/bits/stl_algo.h: Likewise.
2067         * include/bits/stl_bvector.h: Likewise.
2068         * include/bits/stl_deque.h: Likewise.
2069         * include/bits/stl_list.h: Likewise.
2070         * include/bits/stl_tree.h: Likewise.
2071         * include/bits/stl_vector.h: Likewise.
2072         * include/bits/vector.tcc: Likewise.
2073         * include/ext/rope: Likewise.
2074         * include/ext/ropeimpl.h: Likewise.
2075         * include/ext/stdio_filebuf.h: Likewise.
2076
2077 2003-07-11  Jerry Quinn  <jlquinn@optonline.net>
2078
2079         * include/bits/basic_ios.h (copyfmt): Document.
2080         * include/bits/ios_base.h (event, event_callback, register_callback,
2081         xalloc, iword, pword):  Document.
2082         (imbue, ~ios_base): Update docs on callbacks.
2083
2084 2003-07-11  Phil Edwards  <pme@gcc.gnu.org>
2085
2086         * acinclude.m4 (GLIBCC_ENABLE_SYMVERS):  Tweak comments.  Add
2087         warning messages if the environment cannot support symbol versioning.
2088         (port_specific_symbol_file):  It's plural, add an 's' on the end.
2089         * configure.host:  Likewise.
2090         * src/Makefile.am:  Likewise.
2091         * config/linker-map.gnu:  Remove one semicolon, heh.
2092         * scripts/extract_symvers:  Don't assume useful 'export' syntax.
2093         Set LANG as well as LC_ALL for possibly-broken sort(1)s.
2094         * aclocal.m4, configure, src/Makefile.in:  Regenerated.
2095
2096 2003-07-09  Benjamin Kosnik  <bkoz@redhat.com>
2097
2098         * include/bits/locale_facets.tcc: Use function object for
2099         __use_cache instead of template function. Partially specialize for
2100         __numpunct<_CharT>.
2101         * include/bits/locale_classes.h: Update friend declaration for
2102         __use_cache.
2103         (_M_install_cache): No throw exception specs.
2104         * src/locale.cc: Remove __use_cache specializations.
2105         * include/ext/pod_char_traits.h (length): Tweak.
2106         * include/bits/locale_facets.h (__numpunct_cache): Remove
2107         char_type typedef.
2108         * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
2109         (pod_long): Remove.
2110         * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
2111         * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
2112         * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
2113         * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
2114         * testsuite/22_locale/numpunct/members/pod/1.cc: New.
2115         * testsuite/22_locale/numpunct/members/pod/2.cc: New.
2116
2117 2003-07-09  Jerry Quinn  <jlquinn@optonline.net>
2118
2119         * src/ios.cc (_M_grow_words):  Fix spelling.
2120
2121 2003-07-09  Gawain Bolton  <gp.bolton@computer.org>
2122
2123         * include/bits/stl_tree.h: Move larger member functions in
2124         _Rb_tree_base_iterator and _Rb_tree_node to...
2125         * src/stl_tree.cc: Here.
2126         * src/Makefile.in: Add stl_tree.cc.
2127         * src/Makefile.in: Regenerated.
2128         * config/linker-map.gnu: Add symbols here.
2129
2130 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
2131
2132         * testsuite/ext/pod_char_traits.cc: New.
2133         * include/ext/pod_char_traits.h: New.
2134         * include/Makefile.am (ext_headers): Add pod_char_traits.h.
2135         * include/Makefile.in: Regenerate.
2136         * docs/html/21_strings/howto.html: Update.
2137
2138 2003-07-08  Gawain Bolton  <gp.bolton@computer.org>
2139
2140         * testsuite/performance/list_create_fill_sort.cc: New.
2141
2142 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
2143
2144         * config/locale/generic/numeric_members.cc: Correct type info.
2145         * config/locale/gnu/numeric_members.cc: Same.
2146         * include/bits/locale_facets.h: Same.
2147
2148         * include/bits/char_traits.h: Correct spacing.
2149
2150         * src/locale.cc: Wrap to 80 col.
2151
2152 2003-07-07  Paolo Carlini  <pcarlini@unitus.it>
2153
2154         * include/std/std_complex.h: Partially revert last
2155         changes: cmath functions must not be qualified.
2156
2157 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
2158
2159         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Do not test for binutils
2160         2.11 with globbing backport fix.
2161         * aclocal.m4, configure:  Regenerated.
2162
2163 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
2164
2165         * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
2166         if output is at all possible (!_M_reading), cannot be active.
2167
2168         * include/std/std_fstream.h: Tweak comments to doxygen style.
2169
2170 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
2171
2172         * include/bits/locale_classes.h: Fully qualify standard
2173         functions with std::, thus avoiding Koenig lookup.
2174         * include/bits/locale_facets.tcc: Likewise.
2175         * src/locale.cc: Likewise.
2176         * src/localename.cc: Likewise.
2177
2178 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
2179
2180         * include/bits/allocator_traits.h:  Fix doxygen markup.
2181         * include/ext/mt_allocator.h:  Likewise.
2182
2183 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
2184
2185         * testsuite/testsuite_hooks.h:  Guard against a missing unlink().
2186
2187 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
2188
2189         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Bump minimal version
2190         requirement.  Add port_specific_symbol_file variable.
2191         * configure.host:  Add docs for port_specific_symbol_file.
2192         Clean up try_cpu block for x86.
2193         * config/linker-map.gnu:  No more "last symbol can't have a
2194         semicolon" kaka.  Add hook for port-specific symbols.
2195         * src/Makefile.am:  Remove trailing whitespace.
2196         (libstdc++-symbol.ver):  Detect the presence of port-specific
2197         symbols, and add them accordingly.
2198
2199         * docs/html/17_intro/porting.texi:  Bring up to date.
2200
2201         * src/Makefile.in, aclocal.m4, configure,
2202         docs/html/17_intro/porting.html:  Regenerated.
2203
2204 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
2205
2206         * scripts/create_testsuite_files:  New file.
2207         * testsuite/Makefile.am (all-local, check-performance):  Use it.
2208         * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests):  Remove.
2209         * testsuite/Makefile.in:  Regenerated.
2210
2211         * testsuite/performance/filebuf_sputc.cc:  Remove the temporary
2212         files at the end.
2213         * testsuite/performance/fstream_seek_write.cc:  Likewise.
2214         * testsuite/performance/ofstream_insert_float.cc:  Likewise.
2215         * testsuite/performance/ofstream_insert_int.cc:  Likewise.
2216         * testsuite/abi_check.cc (main):  Nicer spacing in usage output.
2217
2218 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
2219
2220         * include/bits/stl_list.h: Performance and memory usage
2221         improvements. In particular, the behaviour of the constructor and
2222         destructor as the list header node is no longer dynamically
2223         allocated/de-allocated.
2224         * include/bits/list.tcc: Likewise.
2225
2226 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
2227
2228         * include/std/std_complex.h: Fully qualify standard
2229         functions with std::, thus avoiding Koenig lookup.
2230         * include/std/std_memory.h: Likewise.
2231         * include/std/std_valarray.h: Likewise.
2232
2233 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
2234
2235         * include/bits/stl_tree.h: _Rb_tree_rebalance():  Add local
2236           variable for grandparent and use const
2237
2238 2003-07-05  David Billinghurst <David.Billinghurst@riotinto.com>
2239
2240         * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
2241         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
2242         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
2243         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
2244         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
2245         * testsuite/27_io/objects/char/7.cc: Ditto
2246         * testsuite/27_io/objects/char/9661-1.cc: Ditto
2247
2248 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
2249
2250         * include/std/std_bitset.h: Fully qualify standard
2251         functions with std::, thus avoiding Koenig lookup.
2252
2253         * include/std/std_fstream.h: Change comment to doxygen style.
2254
2255 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
2256
2257         * include/std/std_limits.h:  More CPP->CXX changes.
2258         * scripts/check_survey.in:  Likewise.
2259
2260 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
2261
2262         Move from CPP to CXX.
2263         * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
2264         * testsuite/Makefile.am: Same.
2265         * testsuite/Makefile.in: Regenerate.
2266         * po/Makefile.am: Same.
2267         * po/Makefile.in: Regenerate.
2268         * libsupc++/Makefile.am: Same.
2269         * libsupc++/Makefile.in: Regenerate.
2270         * libmath/Makefile.am: Same.
2271         * libmath/Makefile.in: Regenerate.
2272         * include/Makefile.am: Same.
2273         * include/Makefile.in: Regenerate.
2274         * src/Makefile.am: Same.
2275         * src/Makefile.in: Regenerate.
2276         * acconfig.h: Same.
2277         * configure.host: Same.
2278         * configure.in: Same.
2279         * configure: Regenerate.
2280         * acinclude.m4: Same.
2281         * aclocal.m4: Same.
2282         * src: Change all files in this directory.
2283         * testsuite: Same.
2284         * include: Same, standardize include guards.
2285         * config: Same.
2286         * libsupc++: Same.
2287
2288 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
2289
2290         * testsuite/22_locale/collate/compare/wchar_t/2.cc
2291         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
2292         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
2293         * testsuite/22_locale/collate/hash/wchar_t/2.cc
2294         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
2295         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
2296         * testsuite/22_locale/collate/transform/wchar_t/2.cc
2297         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
2298         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2299         XFAIL on all targets.
2300
2301 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
2302
2303         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
2304         * aclocal.m4: Regenerate.
2305         * configure: Regenerate.
2306
2307 2003-07-04  Jerry Quinn  <jlquinn@optonline.net>
2308
2309         * include/bits/locale_facets.tcc (__int_to_char): Move common case
2310         to the top.
2311
2312 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
2313             Petur Runolfsson  <peturr02@ru.is>
2314
2315         * config/io/basic_file_stdio.cc: Revert.
2316
2317 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
2318
2319         * include/bits/deque.tcc: Fully qualify standard
2320         functions with std::, thus avoiding Koenig lookup.
2321         * include/bits/gslice_array.h: Likewise.
2322         * include/bits/indirect_array.h: Likewise.
2323         * include/bits/list.tcc: Likewise.
2324         * include/bits/mask_array.h: Likewise.
2325         * include/bits/slice_array.h: Likewise.
2326
2327 2003-07-04  Gawain Bolton  <gbolton@free.fr>
2328
2329         * include/bits/stl_tree.h: Performance and memory usage
2330         improvements.
2331
2332 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
2333
2334         * Makefile.am: Replace PWD with PWD_COMMAND.
2335         * Makefile.in: Regenerated.
2336         * docs/html/Makefile: Likewise.
2337
2338 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
2339
2340         * include/bits/valarray_array.h: Fully qualify standard
2341         functions with std::, thus avoiding Koenig lookup.
2342         * include/bits/vector.tcc: Likewise.
2343
2344 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
2345
2346         * include/Makefile.am: Update target_ to host_.
2347         * include/Makefile.in: Regenerate.
2348         * src/Makefile.am: Same.
2349         * src/Makefile.in: Regenerate.
2350
2351         * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
2352
2353 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
2354
2355         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
2356         --enable-libstdcxx-debug-flags.
2357         (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
2358         (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
2359         * aclocal.m4: Regenerate.
2360         * configure: Same.
2361         * docs/html/configopts.html: Update.
2362
2363 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
2364
2365         Revert the fix for libstdc++/11378.
2366
2367 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
2368
2369         PR libstdc++/11378
2370         * include/std/std_fstream.h (xsputn): In the unbuffered case,
2371         provided always_noconv(), issue directly _M_file.xsputn.
2372         * testsuite/performance/filebuf_unbuf_sputn.cc: New.
2373
2374 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
2375
2376         * include/bits/stl_list.h: Fully qualify standard
2377         functions with std::, thus avoiding Koenig lookup.
2378         * include/bits/stl_queue.h: Likewise.
2379         * include/bits/stl_raw_storage_iter.h: Likewise.
2380         * include/bits/stl_tempbuf.h: Likewise.
2381         * include/bits/stl_tree.h: Likewise.
2382         * include/bits/stl_uninitialized.h: Likewise.
2383         * include/bits/stl_vector.h: Likewise.
2384         * include/ext/rope: Change includes order.
2385
2386 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
2387
2388         * configure.host (fpos_include_dir): Fix.
2389
2390 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
2391
2392         * include/bits/stl_heap.h: Fully qualify standard
2393         functions with std::, thus avoiding Koenig lookup.
2394         * include/bits/stl_iterator_base_funcs.h: Likewise.
2395
2396         * include/bits/stl_algo.h: Qualify __iterator_category too.
2397         * include/bits/stl_algobase.h: Likewise.
2398         * include/bits/stl_bvector.h: Likewise.
2399
2400         * include/bits/stl_algo.h: Don't qualify the pair type.
2401
2402 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
2403
2404         * include/Makefile.am (target_headers): Add fpos.h
2405         (bits_headers): Remove.
2406         * include/Makefile.in: Regenerate.
2407         * configure.in: Add FPOS_INC_SRCDIR, substitute it.
2408         * configure: Regenerate.
2409         * configure.host: Add fpos_include_dir.
2410         * config/os/gnu-linux/fpos.h: New.
2411         * config/os/generic/fpos.h: Add.
2412         * include/bits/fpos.h: Remove.
2413
2414         * config/io/c_io_stdio.h: Remove fpos_t typedef.
2415
2416         * include/bits/fstream.tcc: Tweaks.
2417         * include/std/std_fstream.h: Same.
2418
2419         * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
2420         * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
2421         * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
2422         * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
2423         * testsuite/27_io/fpos/1.cc: New.
2424
2425 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
2426             Petur Runolfsson  <peturr02@ru.is>
2427
2428         * include/std/std_streambuf.h: Remove _M_pos.
2429         * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
2430         * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
2431         use fread/fwrite instead of read/write.
2432         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
2433         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
2434         before reading again.
2435         * testsuite/27_io/objects/char/6.cc: Tweak.
2436
2437 2003-07-03  David Edelsohn  <edelsohn@gnu.org>
2438
2439         * testsuite/22_locale/num_put/put/char/7.cc: Guard with
2440         _GLIBCPP_USE_WCHAR_T.
2441
2442 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
2443
2444         * include/bits/basic_string.tcc (_M_replace_aux): Constify
2445         __n1 and __off1.
2446
2447 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
2448
2449         * include/bits/stl_bvector.h: Fully qualify standard
2450         functions with std::, thus avoiding Koenig lookup.
2451         * include/bits/stl_construct.h: Likewise.
2452         * include/bits/stl_deque.h: Likewise.
2453
2454 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
2455
2456         * testsuite/22_locale/num_put/put/char/7.cc: Include
2457         <testsuite_hooks.h>, tweak.
2458         * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
2459
2460 2003-07-01  Phil Edwards  <pme@gcc.gnu.org>
2461
2462         * testsuite/Makefile.am (AM_MAKEFLAGS):  Set to -j1 (affects
2463         check* targets, but not libs/programs).
2464         * testsuite/Makefile.in:  Regenerate.
2465
2466 2003-07-01  Roger Sayle  <roger@eyesopen.com>
2467
2468         * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
2469         (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
2470         * aclocal.m4: Regenerate.
2471         * configure: Regenerate.
2472
2473 2003-07-01  Benjamin Kosnik  <bkoz@redhat.com>
2474
2475         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
2476         * aclocal.m4: Regenerated.
2477         * configure: Regenerated.
2478
2479 2003-07-01  Paolo Carlini  <pcarlini@unitus.it>
2480
2481         PR libstdc++/11389
2482         * include/bits/fstream.tcc (underflow): For encoding() == 0
2483         don't read more than __buflen chars.
2484         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
2485         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
2486         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
2487         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
2488
2489 2003-07-01  Jerry Quinn  <jlquinn@optonline.net>
2490
2491         * 22_locale/num_put/put/char/7.cc: New.
2492         * 22_locale/num_put/put/wchar_t/7.cc: New.
2493
2494 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
2495
2496         * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
2497         * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
2498
2499 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
2500
2501         * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
2502         * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
2503         * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
2504         * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
2505         * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
2506         * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
2507         * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
2508         * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
2509         * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
2510         * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
2511         * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
2512         * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
2513         * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
2514         * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
2515         * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
2516         * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
2517         * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
2518         * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
2519         * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
2520         * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
2521         * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
2522         * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
2523         * data/seekoff-1.tst: Remove.
2524         * data/seekoff-1io.tst: New.
2525         * data/seekoff-1out.tst: New.
2526         * data/seekoff-2.tst: Remove.
2527         * data/seekoff-2io.tst: New.
2528         * data/seekoff-2out.tst: New.
2529         * data/seekoff.txt
2530         * data/seekpos-1.tst: Remove.
2531         * data/seekpos-1io.tst: New.
2532         * data/seekpos-1out.tst: New.
2533         * data/seekpos-2.tst: Remove.
2534         * data/seekpos-2io.tst: New.
2535         * data/seekpos-2out.tst: New.
2536         * data/seekpos.txt: New.
2537
2538 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
2539
2540         * src/locale.cc (__use_cache<numpunct>): Move from here ...
2541         * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
2542         here.
2543
2544 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
2545
2546         * include/bits/stl_algobase.h: Fully qualify standard
2547         functions with std::, thus avoiding Koenig lookup.
2548
2549 2003-06-30  Doug Gregor <dgregor@apple.com>
2550
2551         * include/bits/locale_facets.tcc (money_get::do_get): Avoid
2552         subscripting empty string.
2553
2554 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
2555
2556         * testsuite/Makefile.am (check-am):  Do not override.
2557         (baseline_symbols):  Declare as PHONY, so no need to 'touch' it.
2558         * testsuite/Makefile.in:  Regenerate.
2559
2560 2003-06-30  Doug Gregor <dgregor@apple.com>
2561
2562         * testsuite/24_iterators/insert_iterator.cc (test01, test02):
2563         Don't initialize an insert_iterator with a singular iterator.
2564
2565 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
2566
2567         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
2568         * aclocal.m4: Regenerate.
2569         * configure.in (GLIBCPP_CHECK_PCH): Move, change to
2570         GLIBCPP_ENABLE_PCH, default to yes.
2571         * configure: Regenerate.
2572         * docs/html/configopts.html: Add --enable-pch.
2573
2574 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
2575
2576         * testsuite/lib/libstdc++-v3-dg.exp:  Add comments.
2577         (libstdc++-v3-init):  Also set LD_RUN_PATH.
2578
2579 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
2580
2581         * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
2582         from here to filebuf and stringbuf.
2583         (~basic_streambuf()): Don't set _M_mode.
2584         (basic_streambuf()): Don't set _M_mode.
2585         * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
2586         (~basic_filebuf()): Clean up.
2587         * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
2588         * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
2589         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
2590         * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
2591         * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
2592         * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
2593         * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
2594
2595 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
2596
2597         * include/std/std_fstream.h (_M_underflow): Remove.
2598         (uflow): Remove, inherited from streambuf.
2599         (underflow): Only declare.
2600         * include/bits/fstream.tcc (_M_underflow): Rename to
2601         underflow, to which is equivalent for __bump == false,
2602         simplify.
2603         * include/std/std_sstream.h (_M_underflow): Remove.
2604         (uflow): Remove, inherited from streambuf.
2605         (underflow): Only declare.
2606         * include/bits/sstream.tcc (_M_underflow): Rename to
2607         underflow, to which is equivalent for __bump == false,
2608         simplify.
2609
2610 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
2611
2612         * include/bits/stl_algo.h: Fully qualify standard functions
2613         with std::, thus avoiding Koenig lookup.
2614
2615 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
2616
2617         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
2618         Improve type correctness-wise.
2619         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
2620         Likewise.
2621         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
2622         Likewise.
2623         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
2624         Likewise.
2625
2626 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
2627
2628         * include/std/std_streambuf.h (uflow): According to
2629         27.5.2.4.3,p16, don't check gptr() < egptr().
2630
2631 2003-06-28  Paolo Carlini  <pcarlini@unitus.it>
2632
2633         PR libstdc++/9875
2634         * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
2635         (seekpos): Likewise.
2636         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
2637         New test.
2638         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
2639         New test.
2640
2641 2003-06-27  Benjamin Kosnik  <bkoz@redhat.com>
2642
2643         * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
2644         output name to libstdc++-v3-performance.sum.
2645         * testsuite/Makefile.am (CLEANFILES): Remove .performance.
2646         * testsuite/Makefile.in: Regenerate.
2647
2648 2003-06-27  Matthias Klose  <doko@debian.org>
2649
2650         * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
2651         output of abi-check in libstdc++-v3-abi.sum.
2652         * testsuite/Makefile.in: Regenerate.
2653
2654 2003-06-27  Krister Walfridsson  <cato@df.lth.se>
2655
2656         * config/os/bsd/netbsd/ctype_noninline.h
2657         (_C_ctype_): Declare.
2658         (ctype<char>::classic_table): Return _C_ctype_ + 1.
2659         (ctype<char>::ctype): Use classic_table.
2660
2661 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
2662             Nathan C. Myers  <ncm-nospam@cantrip.org>
2663
2664         PR libstdc++/9178
2665         * include/bits/fstream.tcc (_M_underflow): Properly estimate
2666         the worst-case number of external bytes for a given get area.
2667         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
2668
2669 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
2670             Petur Runolfsson  <peturr02@ru.is>
2671
2672         PR libstdc++/11305
2673         * include/bits/fstream.tcc (overflow): Properly estimate the
2674         worst-case number of external bytes for a given put area
2675         (by using codecvt::max_length()).
2676         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
2677         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
2678         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
2679         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
2680
2681 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
2682
2683         * config/linker-map.gnu: Remove ; after __numpunct_cache.
2684
2685 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
2686
2687         * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
2688         to the imbued locale.
2689         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
2690         _M_getloc.
2691         (num_put::_M_convert_float): Use.
2692
2693 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
2694             Jerry Quinn  <jlquinn@optonline.net>
2695
2696         * config/linker-map.gnu: Add __numpunct_cache.
2697         * config/locale/gnu/numeric_members.cc
2698         (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
2699         all elements for "C" locale.
2700         (numpunct::~numpunct): Delete _M_data.
2701         * config/locale/generic/numeric_members.cc: Same.
2702         * include/bits/basic_ios.tcc
2703         (basic_ios::init): Remove __locale_cache bits.
2704         (basic_ios::_M_cache_locale): Same.
2705         * include/bits/ios_base.h: Same. Tweaks.
2706         * include/bits/locale_classes.h: Tweaks. Reorder classes.
2707         (__use_cache): Make friends with _Impl, locale.
2708         (_Impl::_M_caches): Add.
2709         (_Impl::_M_install_cache): Add.
2710         * include/bits/locale_facets.h (__numpunct_cache): New.
2711         (numpunct): Encapsulate data members in __numpunct_cache member,
2712         _M_data. Adjust virtuals.
2713         (numpunct::numpunct): New ctor for the same.
2714         (__locale_cache_base): Remove.
2715         (__locale_cache): Remove.
2716         * include/bits/locale_facets.tcc (__use_cache): New function,
2717         specializations.
2718         (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
2719         * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
2720         * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
2721         * src/locale-inst.cc: Same. Add __numpunct_cache.
2722         * src/locale.cc: Tweak inlines.
2723         (__use_cache): Define specializations.
2724         * src/localename.cc: Use global bits.
2725         (_Impl::~Impl): Deal with __numpunct_cache destruction.
2726         (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
2727         (_Impl::_M_init_facet): Take into account __numpunct_cache.
2728         * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
2729         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2730
2731 2003-06-26  Nathan C. Myers  <ncm-nospam@cantrip.org>
2732             Paolo Carlini  <pcarlini@unitus.it>
2733
2734         * testsuite/performance/filebuf_copy.cc: New, testing char
2735         by char file copy.
2736
2737 2003-06-26  Paolo Carlini  <pcarlini@unitus.it>
2738             Nathan C. Myers  <ncm-nospam@cantrip.org>
2739
2740         * include/bits/fstream.tcc (_M_underflow): When the actual
2741         end of file is reached, set 'uncommitted' mode to allow a
2742         next write without an intervening seek (see C++98 27.8.1.1,2
2743         and C89 7.9.5.3).
2744         * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
2745
2746 2003-06-25  Nathan C. Myers  <ncm-nospam@cantrip.org>
2747
2748         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
2749         sputc): Move inline, from here...
2750         * include/std/std_streambuf.h: ... to here.
2751
2752         * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
2753         sputbackc, sungetc, sputc): Use __builtin_expect.
2754
2755 2003-06-24  Phil Edwards  <pme@gcc.gnu.org>
2756
2757         * docs/doxygen/mainpage.html:  Use a useful title.
2758
2759 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
2760
2761         * docs/html/documentation.html: Remove assignment info.
2762         * docs/html/17_intro/contribute.html: Edits.
2763         * docs/html/17_intro/libstdc++-assign.tx: Remove.
2764
2765         * docs/html/test.html: Update.
2766
2767         * README: Update.
2768
2769 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
2770             Ulrich Drepper  <drepper@redhat.com>
2771
2772         * testsuite/testsuite_performance.h: Tweak mallinfo.
2773
2774 2003-06-24  Paolo Carlini  <pcarlini@unitus.it>
2775             Nathan C. Myers  <ncm-nospam@cantrip.org>
2776
2777         * include/std/std_fstream.h (_M_filepos): Remove.
2778         (_M_reading, _M_writing): New, encode the various I/O modes:
2779         'read', 'write' and 'uncommitted'.
2780         (sync): If there is something to flush, do it, then go to
2781         'uncommitted' mode.
2782         * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
2783         with three different cases: __off > 0 (upon underflow),
2784         __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
2785         seekoff/pos).
2786         (_M_underflow): Don't call overflow, set _M_reading to true
2787         on success, tweak.
2788         (pbackfail): Set _M_reading to true on pback creation, tweak.
2789         (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
2790         set _M_writing to true on success, tweak.
2791         (seekoff): Simplify, set _M_reading, _M_writing to false, call
2792         _M_set_buffer(-1) ('uncommitted').
2793         (open, close, setbuf): Set _M_reading, _M_writing to false and
2794         call _M_set_buffer(-1), tweak.
2795         (basic_filebuf): Don't set _M_buf_unified.
2796         (_M_destroy_internal_buffer): Don't call setg and setp.
2797         * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
2798         _M_writing and _M_set_buffer(-1).
2799         * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
2800         _M_out_lim, _M_buf_unified): Remove.
2801         (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
2802         (setp): Don't set _M_out_lim.
2803         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
2804         the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
2805         upon open the mode is 'uncommitted' and therefore the put area
2806         pointers are null.
2807         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
2808         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
2809         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
2810         * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
2811         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
2812         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
2813         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
2814         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
2815         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
2816         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
2817         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
2818         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
2819         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
2820         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
2821         * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
2822         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
2823         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
2824         * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
2825         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
2826         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
2827
2828         * include/bits/fstream.tcc (showmanyc): Use only the
2829         documented derivation interface to basic_streambuf (gptr(),
2830         setg(), etc.) to work right with user specializations.
2831         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
2832         sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
2833         * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
2834         Likewise.
2835         * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
2836         xsgetn): Likewise.
2837
2838 2003-06-23  Loren J. Rittle  <ljrittle@acm.org>
2839
2840         * configure.host (freebsd*): Set abi_baseline_pair.
2841         * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
2842         (at or near first release) to 3.3.
2843         * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
2844         * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
2845         * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
2846
2847         * include/ext/mt_allocator.h: Portability.
2848         * testsuite/testsuite_performance.h: Likewise.
2849
2850 2003-06-23  Benjamin Kosnik  <bkoz@redhat.com>
2851
2852         * docs/html/17_intro/libstdc++-assign.txt: Update address.
2853
2854         * testsuite/performance/ifstream_getline.cc: Fix.
2855
2856 2003-06-23  Doug Gregor <dgregor@apple.com>
2857
2858         * include/bits/boost_concept_check.h: Don't use _D or _R for type
2859         names.
2860
2861 2003-06-22  Paolo Carlini  <pcarlini@unitus.it>
2862             Nathan C. Myers  <ncm-nospam@cantrip.org>
2863
2864         * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
2865         is now used only for filebuf, when _M_buf_unified is true.
2866         epgtr() plays the role of _M_out_lim but it's only updated
2867         upon overflow, underflow, uflow, seekoff/pos.
2868         * include/bits/sstream.tcc (_M_underflow): New, implements
2869         stringbuf::underflow and uflow.
2870         (seekoff, seekpos): Tweak, use  _M_update_egptr.
2871         * include/std/std_sstream.h (str): Rewrote, deal correctly
2872         with the new logic, in particular, when pptr() > egptr().
2873         (_M_sync): When __testout && !__testin set all the get area
2874         pointers to the current string end.
2875         (_M_update_egptr): New, internal function updating egptr()
2876         to the actual string end.
2877         (_M_underflow): New, declare.
2878         (underflow): Dispatch to _M_underflow(false).
2879         (uflow): Dispatch to _M_underflow(true).
2880
2881         * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
2882         seekpos): Use only the documented derivation interface to
2883         basic_streambuf (gptr(), setg(), etc.) to work right with
2884         user specializations.
2885         * include/std/std_sstream.h (str, _M_sync): Likewise.
2886
2887 2003-06-20  Doug Gregor <dgregor@apple.com>
2888
2889         * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
2890         * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
2891         dereference end iterator.
2892         * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
2893         * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
2894         index equal to the length of a string.
2895         * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
2896         * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
2897         * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
2898         * testsuite/22_locale/ctype/widen/char/1.cc: Same.
2899         * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
2900         * testsuite/23_containers/list_modifiers.cc: Don't dereference
2901         singular reverse iterator.
2902         * testsuite/23_containers/vector_bool.cc: Don't increment singular
2903         iterator.
2904         * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
2905
2906 2003-06-20  Doug Gregor <dgregor@apple.com>
2907
2908         * include/bits/basic_string.h (basic_string::replace): Dispatch
2909         _InputIterator version based on _Is_integer.
2910         * include/bits/basic_string.tcc (basic_string::replace):
2911         Renamed replace(iterator, iterator, size_type, _CharT) to
2912         _M_replace_aux.
2913         * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
2914         Test basic_string::assign(_InputIterator, _InputIterator),
2915         which calls basic_string::replace(iterator, iterator,
2916         _Input_iterator, _InputIterator).
2917
2918 2003-06-20  Benjamin Kosnik  <bkoz@redhat.com>
2919
2920         * testsuite/testsuite_performance.h (resource_counter): Don't use
2921         mallinfo at the moment.
2922
2923 2003-06-20  Matthias Klose  <doko@debian.org>
2924
2925         * configure.host: Set try_cpu to target_cpu for existing
2926         baseline files.
2927
2928 2003-06-19  Andreas Jaeger  <aj@suse.de>
2929
2930         * testsuite/Makefile.am (extract_symvers): Revert accidental
2931         change.
2932         * testsuite/Makefile.in: Regenerate.
2933
2934         * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
2935         * configure: Regenerated.
2936
2937 2003-06-19  Paolo Carlini  <pcarlini@unitus.it>
2938
2939         * include/std/std_sstream.h (_M_sync): Make non virtual.
2940
2941 2003-06-18  Benjamin Kosnik  <bkoz@redhat.com>
2942
2943         * testsuite/testsuite_performance.h (time_counter): New.
2944         (resource_counter): New.
2945         (report_performance): New.
2946         (start_counters): New.
2947         (stop_counters): New.
2948         (clear_counters): New.
2949         * testsuite/performance/allocator.cc: Instrument.
2950         * testsuite/performance/cout_insert_int.cc: Same.
2951         * testsuite/performance/complex_norm.cc: Same.
2952         * testsuite/performance/filebuf_sputc.cc: New.
2953         * testsuite/performance/fstream_seek_write.cc: Same.
2954         * testsuite/performance/ifstream_getline.cc: Same.
2955         * testsuite/performance/map_create_fill.cc: Same.
2956         * testsuite/performance/ofstream_insert_float.cc: Same.
2957         * testsuite/performance/ofstream_insert_int.cc: Same.
2958         * testsuite/performance/string_append.cc: Convert.
2959         * scripts/check_performance: New.
2960         * testsuite/Makefile.am (check-performance): New.
2961         (CLEANFILES): Add.
2962
2963 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
2964             Benjamin Kosnik  <bkoz@redhat.com>
2965
2966         * include/std/std_sstream.h (setbuf): Check __n >= 0.
2967         * include/bits/fstream.tcc (setbuf): Tweak.
2968
2969 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
2970
2971         * include/bits/sstream.tcc (seekoff): We can't seek beyond
2972         _M_out_lim, therefore _M_move_out_cur boils down to simply
2973         updating _M_out_cur.
2974         (seekpos): Likewise, clean up.
2975
2976 2003-06-18  Nathan C. Myers  <ncm-nospam@cantrip.org>
2977             Paolo Carlini  <pcarlini@unitus.it>
2978
2979         * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
2980         simply equivalent to the unbuffered case (0, 0) as far as
2981         _M_buf_size is concerned.
2982
2983 2003-06-18  Andreas Jaeger  <aj@suse.de>
2984
2985         * testsuite/Makefile.am (new-abi-baseline): Create baseline
2986         directory.
2987         (baseline_file): Use baseline_dir.
2988         (baseline_dir): New.
2989         (mkinstalldirs): New.
2990
2991         * acinclude.m4: Rename baseline_file to baseline_dir, strip
2992         filename from baseline_dir.
2993
2994         * testsuite/Makefile.in: Regenerated.
2995         * Makefile.in: Regenerated.
2996         * aclocal.m4: Regenerated.
2997         * configure: Regenerated.
2998
2999 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
3000
3001         * configure.in: Missed check_survey bit.
3002         * configure: Regenerated.
3003
3004 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
3005
3006         * scripts: New.
3007         * config/abi/extract_symvers: Move to...
3008         * scripts/extract_symvers: ...here.
3009         * mkcheck.in: Move to..
3010         * scripts/check_survey.in: ...here.
3011         * testsuite_flags.in: Move to..
3012         * scripts/testsuite_flags.in: ...here.
3013         * configure.in: Change check and testsuite_flags locations.
3014         * configure: Regenerate.
3015         * testsuite/Makefile.am (current_symbols.txt): Change location.
3016         * testsuite/Makefile.in: Regenerate.
3017         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
3018         location of testsuite_flags.
3019         * Makefile.am (check-script): Move..
3020         (check-script-install): Move...
3021         * testsuite/Makefile.am: ... here.
3022         * testsuite/Makefile.in: Regenerate.
3023         * Makefile.in: Regenerate.
3024
3025 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
3026
3027         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
3028
3029 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
3030
3031         * Makefile.am (check-abi): Move...
3032         (new-abi-baseline): Move...
3033         * testsuite/Makefile.am: ...here.
3034         (new-abi-baseline): Conditionalize.
3035         (check-abi): Conditionalize.
3036         (check-abi-verbose): New.
3037         * Makefile.in: Regenerate.
3038         * testsuite/Makefile.in: Regenerate.
3039         * configure.in: Consolidate testsuite configure bits.
3040         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
3041         * configure: Regenerate.
3042         * aclocal.m4: Regenerate.
3043         * testsuite/abi_check.cc: Add --check-verbose.
3044         Only output detailed information if --check-verbose.
3045
3046 2003-06-16  Andreas Jaeger  <aj@suse.de>
3047
3048         * testsuite/abi_check.cc: Create summary report.
3049
3050 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
3051
3052         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
3053         for systems with BUFSIZ != 8192.
3054         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3055         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
3056         Minor tweaks.
3057
3058 2003-06-16  Andreas Jaeger  <aj@suse.de>
3059
3060         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
3061         check-abi multilib aware.
3062         * aclocal.m4: Regenerate.
3063         * configure: Regenerate.
3064
3065 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
3066             Andreas Jaeger  <aj@suse.de>
3067
3068         * configure.host: Set x86_64 abi_baseline pair correctly.
3069
3070 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
3071
3072         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
3073         fix for missing seeks between gets and puts into...
3074         * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
3075         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
3076         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
3077         * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
3078         * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
3079         * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
3080
3081 2003-06-15  Richard Henderson  <rth@redhat.com>
3082
3083         * config/linker-map.gnu: Export virtual function thunks for
3084         64-bit systems too.
3085
3086 2003-06-13  Benjamin Kosnik  <bkoz@redhat.com>
3087
3088         * config/abi/i686-pc-linux-gnu: To..
3089         * config/abi/i486-linux-gnu: ...this.
3090         * config/abi/alphaev67-unknown-linux-gnu: To..
3091         * config/abi/alpha-linux-gnu: ...this.
3092         * config/abi/ia64-unknown-linux-gnu: To...
3093         * config/abi/ia64-linux-gnu: ...this.
3094         * config/abi/x86_64-unknown-linux-gnu: To...
3095         * config/abi/x86_64-linux-gnu: ...this.
3096         * config/abi/i386-unknown-freebsd4: To...
3097         * config/abi/i386-freebsd4: ...this.
3098         * config/linker-map.gnu: Cleanups, move libsupc++ bits into
3099         CXXABI.
3100         * configure.host: abi_baseline_triplet to abi_baseline_pair.
3101         Simplify cpu bits so that abi_baseline_pair can use the same
3102         cpu configuration.
3103         * acinclude.m4: Same.
3104         * aclocal.m4: Regenerate.
3105         * configure.in: Can't get enable_abi_check to yes unless native.
3106         * configure: Regenerate.
3107
3108 2003-06-13  Paolo Carlini  <pcarlini@unitus.it>
3109
3110         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
3111         fix for missing seeks between gets and puts into...
3112         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
3113         * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
3114         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
3115         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
3116         * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
3117         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
3118         for missing seeks between gets and puts.
3119         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
3120         * testsuite/data/seekoff-1.tst: New.
3121         * testsuite/data/seekoff-2.tst: New.
3122         * testsuite/data/seekpos-1.tst: New.
3123         * testsuite/data/seekpos-2.tst: New.
3124
3125 2003-06-13  Nathan C. Myers <ncm-nospam@cantrip.org>
3126
3127         Avoid multi-processor bus contention on increment/decrement-and-
3128         test of the reference count in the empty-string object, by comparing
3129         addresses first, and never touching the reference count of the empty-
3130         string object.
3131         * include/bits/basic_string.h:
3132         (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
3133         members.
3134         (_Rep::_S_empty_rep()): New accessor.
3135         (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
3136         a base class _Rep_base.
3137         (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
3138         (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
3139         since no longer must increment its refcount.
3140         * include/bits/basic_string.tcc:
3141         (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
3142         return immediately.  The former might be unnecessary.  The latter
3143         prevents begin() and end() from cloning it unnecessarily.
3144         (_S_construct(_InIterator, _InIterator, const _Alloc&,
3145         input_iterator_tag), _S_construct(_InIterator, _InIterator,
3146         const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
3147         const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
3148         (_M_mutate): Check for the empty string and treat it as shared.
3149         This is necessary here because _M_mutate is sometimes called with
3150         all-zero arguments; in all other uses of _M_is_shared, the test comes
3151         out right anyhow.
3152
3153 2003-06-12  Benjamin Kosnik  <bkoz@redhat.com>
3154
3155         * src/allocator-inst.cc: Explicitly instantiate.
3156         * include/ext/pool_allocator.h: Inhibit implicit instantiations.
3157         Tweaks.
3158         * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
3159
3160 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
3161
3162         * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
3163         * aclocal.m4: Regenerate.
3164         * Makefile.am (SUBDIRS): Remove libio.
3165         * Makefile.in: Regenerate.
3166         * configure.in: Same.
3167         * configure: Regenerate.
3168         * config/io/basic_file_libio.cc: Remove.
3169         * config/io/basic_file_libio.h: Remove.
3170         * config/io/c_io_libio_codecvt.c: Remove.
3171         * config/io/c_io_libio.h: Remove.
3172         * libio/*: Remove.
3173         * src/Makefile.am: Same.
3174         * src/Makefile.in: Regenerate.
3175         * docs/html/configopts.html: Edits.
3176         * docs/html/explanations.html: Edits.
3177
3178 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
3179
3180         * include/bits/stl_alloc.h (__debug_alloc): Move out.
3181         (__malloc_alloc): Same.
3182         (__pool_alloc): Same.
3183         (__new_alloc): Same.
3184         Rename to..
3185         * include/bits/allocator.h: ...this.
3186         * include/bits/stl_deque.h: Modify comment.
3187         * include/bits/stl_tree.h: Modify include.
3188         * include/std/std_memory.h: Same.
3189         * include/ext/rope: Same.
3190         * include/ext/slist: Same.
3191         * include/std/std_vector.h: Same.
3192         * include/std/std_stack.h: Same.
3193         * include/std/std_queue.h: Same.
3194         * include/std/std_list.h: Same.
3195         * include/std/std_deque.h: Same.
3196         * include/backward/alloc.h: Same.
3197         * include/ext/debug_allocator.h: New.
3198         * include/ext/malloc_allocator.h: New.
3199         * include/ext/pool_allocator.h: New.
3200         * include/ext/new_allocator.h: New.
3201         * include/bits/pthread_allocimpl.h: Remove.
3202         * include/bits/stl_pthread_alloc.h: Remove.
3203         * include/Makefile.am (ext_headers): Add.
3204         * include/Makefile.in: Regenerate.
3205         * src/stl-inst.cc: Use __gnu_cxx namespace.
3206         * src/stl-inst.cc: Move to...
3207         * src/allocator-inst.cc: Here.
3208         * src/Makefile.am (sources): Update.
3209         * src/Makefile.in: Regenerate.
3210         * config/linker-map.gnu: Remove __pool_alloc bits.
3211         * testsuite/ext/headers.cc: Add.
3212         * testsuite/ext/allocators.cc: Fixup.
3213
3214 2003-06-11  Stefan Olsson  <stefan@snon.net>
3215             Ola Rönnerup  <fnolis@home.se>
3216
3217         * include/Makefile.am (ext_headers): Add.
3218         * include/Makefile.in: Regenerate.
3219         * include/ext/mt_allocator.h: New file.
3220
3221 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
3222
3223         * include/bits/fstream.tcc (close): Clean up a bit.
3224
3225         * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
3226
3227         * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
3228         - the saved _M_in_cur, that is - cannot be null.
3229         (sync): Constify a variable.
3230
3231         * include/std/std_streambuf.h: Tweak a comment.
3232         (in_avail): Constify a variable.
3233
3234 2003-06-10  Phil Edwards  <pme@gcc.gnu.org>
3235
3236         * docs/html/17_intro/BUGS:  Update from 2.90.8 snapshot.
3237         * docs/html/17_intro/CHECKLIST:  Bring up to date with respect to
3238         correctness of container::iterator typedefs.  Fix whitespace.
3239         * docs/html/20_util/howto.html, docs/html/ext/howto.html:  Add links
3240         to allocator docs.
3241         * docs/html/documentation.html:  Regenerate.
3242
3243         * include/bits/basic_string.h, include/bits/basic_string.tcc,
3244         include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
3245         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3246         include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
3247         include/bits/stl_list.h, include/bits/stl_uninitialized.h,
3248         include/bits/stl_vector.h, include/bits/vector.tcc,
3249         include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
3250         Change _Iter names to _Iterator, and __pos to __position.
3251
3252         * include/bits/stl_relops.h, include/bits/stl_numeric.h,
3253         include/bits/stl_multiset.h, include/bits/stl_set.h:
3254         Remove emacs markers.
3255
3256         * include/bits/stl_threads.h (_STL_auto_lock):  Add __unused__.
3257
3258 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
3259
3260         * include/bits/fstream.tcc (overflow): According to
3261         27.5.2.4.5, overflow() returns not_eof(eof()).
3262         * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
3263         * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
3264
3265 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
3266
3267         * include/bits/fstream.tcc (_M_underflow): Check overflow return
3268         value; tweak slightly.
3269
3270 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
3271
3272         * include/bits/fstream.tcc (_M_underflow): Do not special
3273         case the unbuffered case, which really means simply a one char
3274         get area.
3275         (basic_filebuf): Initialize _M_buf_size.
3276         (setbuf): Unbuffered means _M_buf_size == 1, since only
3277         _M_buf_size - 1 == 0 chars are going to be used for the
3278         put area and 1 for the get area.
3279         * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
3280         (~basic_streambuf): Tweak.
3281         (basic_streambuf): Do not initialize _M_buf_size.
3282         * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
3283         (~basic_filebuf): Tweak.
3284         (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
3285         unbuffered situation (i.e., put area pointers NULL).
3286         * include/bits/streambuf.tcc (sbumpc): Clean up.
3287         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
3288         * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
3289         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
3290         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
3291         * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
3292         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
3293         * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
3294
3295 2003-06-09  Phil Edwards  <pme@gcc.gnu.org>
3296
3297         * acinclude.m4:  Move all AM_CONDITIONAL calls out.
3298         (GLIBCPP_CONFIGURE):  Set defaults for variables used in AM_CONDITIONAL
3299         statements.
3300         * configure.in:  Centralize AM_CONDITIONALs so that they are always
3301         run.  Make use of GLIBCPP_IS_CROSS_COMPILING.
3302         * aclocal.m4, configure:  Regenerated.
3303
3304 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
3305
3306         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 235.
3307
3308 2003-06-06  Nathan Myers  <ncm-nospam@cantrip.org>
3309
3310         * include/bits/stl_iterator.h
3311         (reverse_iterator::reverse_iterator()): Apply DR235: default
3312         constructor default-initializes data member.  Instantiated on a
3313         pointer type, the member has to end up equal to zero.
3314
3315 2003-06-06  Benjamin Kosnik  <bkoz@redhat.com>
3316
3317         * include/bits/stl_alloc.h: Cleanups.
3318         * include/ext/functional: Same.
3319         * include/ext/hash_map: Same.
3320         * include/ext/hash_set: Same.
3321         * include/ext/iterator: Same.
3322         * include/ext/memory: Same.
3323         * include/ext/numeric: Same.
3324         * include/ext/rb_tree: Same.
3325         * include/ext/ropeimpl.h: Same.
3326         * include/ext/slist: Same.
3327         * include/ext/stdio_filebuf.h: Same.
3328         * include/ext/stdio_sync_filebuf.h: Same.
3329         * include/ext/stl_rope.h: Move to...
3330         * include/ext/rope: ...here.
3331         * include/ext/stl_hash_fun.h: Move to...
3332         * include/ext/hash_fun.h: ...here.
3333         * include/ext/stl_hashtable.h: Move to...
3334         * include/ext/hashtable.h: ...here.
3335         * include/backward/hashtable.h: Reflect new names.
3336         * include/Makefile.am: Same.
3337         * include/Makefile.in: Regenerated.
3338
3339 2003-06-05  Benjamin Kosnik  <bkoz@redhat.com>
3340
3341         PR libstdc++/9024
3342         * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
3343         * include/bits/stl_algobase.h: Tweak.
3344         * include/std/std_fstream.h: Move _M_buf_size to...
3345         * include/std/std_streambuf.h: ...here. Modify.
3346         * include/bits/streambuf.tcc: Same.
3347         * testsuite/testsuite_hooks.h: Tweak.
3348         * testsuite/testsuite_io.h (constraint_filebuf): New.
3349         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
3350         * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
3351         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
3352         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
3353         * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
3354         * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
3355         * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
3356         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
3357         * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
3358         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
3359         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
3360         * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
3361         * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
3362         * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
3363         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
3364         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
3365         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
3366         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
3367         * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
3368         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
3369         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
3370         * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
3371         * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
3372         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
3373         * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
3374         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
3375         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
3376         * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
3377         * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
3378         * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
3379         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
3380         * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
3381         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
3382         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
3383         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
3384         * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
3385         * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
3386         * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
3387         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
3388         * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
3389         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
3390         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
3391         * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
3392         * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
3393         * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
3394         * testsuite/data/sgetc.txt: New.
3395         * testsuite/data/sgetn.txt: New.
3396
3397 2003-06-05  Paolo Carlini  <pcarlini@unitus.it>
3398
3399         PR libstdc++/11095
3400         * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
3401         Deal with width() smaller than zero.
3402         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
3403         operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
3404         _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
3405         char*), operator<<(basic_ostream<char, _Traits>&, const char*),
3406         operator<<(basic_ostream, const basic_string&)): Likewise.
3407
3408         * testsuite/27_io/basic_istream/extractors_character/char/
3409         (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
3410         * testsuite/27_io/basic_ostream/inserters_character/char/
3411         (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
3412         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
3413         (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
3414
3415 2003-06-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3416
3417         * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
3418         .gch compilation works.
3419         * aclocal.m4, configure: Regenerate.
3420         * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
3421         initialize PCHFLAGS.
3422
3423 2003-06-04  Paolo Carlini  <pcarlini@unitus.it>
3424
3425         * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
3426         erase(iterator), erase(iterator, iterator), c_str,
3427         compare(const basic_string&)): Constify various variables.
3428         * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
3429         const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
3430         _S_create, resize, _M_replace, _M_replace_safe,
3431         append(const basic_string&), append(const basic_string&, size_type,
3432         size_type), append(const _CharT*, size_type), append(size_type,
3433         _CharT), operator+(const _CharT*, const basic_string&),
3434         operator+(_CharT, const basic_string&), replace(iterator, iterator,
3435         size_type, _CharT), find(const _CharT*, size_type, size_type),
3436         find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
3437         rfind(_CharT, size_type), compare(size_type, size_type,
3438         const basic_string&), compare(size_type, size_type,
3439         const basic_string&, size_type, size_type), compare(const _CharT*),
3440         compare(size_type, size_type, const _CharT*), compare(size_type,
3441         size_type, const _CharT*, size_type)): Likewise.
3442
3443 2003-06-03  Benjamin Kosnik  <bkoz@redhat.com>
3444
3445         * include/bits/fstream.tcc (pbackfail): Make a rarely taken
3446         'if' branch less obscure.
3447
3448 2003-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
3449
3450         PR libstdc++/9815
3451         * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
3452         asm case to asm.
3453         * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
3454         (__atomic_add): likewise.
3455
3456 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
3457
3458         * include/bits/sstream.tcc (pbackfail): Minor clean up and
3459         reformatting, consistent with basic_filebuf::pbackfail.
3460
3461 2003-06-02  Richard Kreckel  <Richard.Kreckel@GiNaC.DE>
3462
3463         PR libstdc++/11062
3464         * config/cpu/mips/atomicity.h:  Change __attribute__ ((unused)) to
3465         __attribute__ ((__unused__)).
3466         * config/os/aix/atomicity.h:  Likewise.
3467
3468 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
3469
3470         PR libstdc++/9761
3471         * include/bits/fstream.tcc (pbackfail): If the pback buffer
3472         is already active don't try to store in it a second char.
3473         * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
3474
3475         * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
3476
3477 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
3478
3479         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
3480         line spacing.
3481
3482 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
3483
3484         * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
3485         instead of unnecessarily taking the address of _M_pback.
3486         (xsgetn): Simplify slightly for a single char pback buffer.
3487
3488 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
3489
3490         * include/bits/sstream.tcc (seekoff): Remove four unnecessary
3491         variables and two 'if', clean up.
3492
3493 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
3494
3495         * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
3496         not _M_out_end, since the former actually points to the string
3497         end (vs buffer end).
3498         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
3499
3500 2003-05-30  Phil Edwards  <pme@gcc.gnu.org>
3501
3502         * docs/doxygen/filter:  New file.
3503         * docs/doxygen/filter.sed:  New file.
3504         * docs/doxygen/run_doxygen:  Add g flag to sed substitutions.  Duh.
3505         * docs/doxygen/user.cfg.in (INPUT_FILTER):  Point to new filter.
3506         * docs/html/documentation.html:  Fix links to doxygen pages.
3507
3508 2003-05-30  Paolo Carlini  <pcarlini@unitus.it>
3509
3510         * include/bits/fstream.tcc (_M_convert_to_external): Don't
3511         check for __ilen > 0.
3512
3513 2003-05-29  Sylvain Pion  <Sylvain.Pion@mpi-sb.mpg.de>
3514
3515         PR libstdc++/10783
3516         * include/bits/stl_iterator.h (class __normal_iterator):
3517         Don't inherit from iterator, add missing typedefs.
3518
3519 2003-05-29  Paolo Carlini <pcarlini@unitus.it>
3520
3521         * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
3522         * testsuite/24_iterators/reverse_iterator/1.cc: New.
3523         * testsuite/24_iterators/reverse_iterator/2.cc: New.
3524         * testsuite/24_iterators/reverse_iterator/3.cc: New, from
3525         PR libstdc++/10783.
3526
3527 2003-05-27  Steve Ellcey  <sje@cup.hp.com>
3528
3529         * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
3530         on IA64 HP-UX.
3531         * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
3532         _LIBUNWIND_STD_ABI is set.
3533
3534 2003-05-26  Brendan Kehoe  <brendan@zen.org>
3535
3536         * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
3537         make sure the number of digits required after the decimal-point
3538         (if any) is exactly the value returned by frac_digits().
3539         * testsuite/22_locale/money_get/get/char/9.cc: New.
3540         * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
3541
3542 2003-05-27  Jonathan Wakely  <redi@gcc.gnu.org>
3543
3544         * include/std/std_istream.h, include/std/std_ostream.h: Typo in
3545         comment.
3546
3547 2003-05-26  Benjamin Kosnik  <bkoz@redhat.com>
3548
3549         PR libstdc++/9339
3550         * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
3551         (_M_pback): No array necessary.
3552         * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
3553         unbuffered case, coalesec into ...
3554         (basic_filebuf::overflow): ...this.
3555         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
3556         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
3557
3558 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
3559
3560         * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
3561         libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
3562         libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
3563         libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
3564         libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
3565         libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
3566         libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
3567         libsupc++/eh_unex_handler.cc, libsupc++/exception,
3568         libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
3569         libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
3570         libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
3571         libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
3572         Replace "GNU CC" with "GCC".
3573
3574         * include/backward/new.h: Replace "GNU CC" with "GCC".
3575
3576 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
3577
3578         PR libstdc++/3066.
3579         * configure.in: Switch target to host, don't assume newlib.
3580         (target_alias): Remove.
3581         * configure: Regenerate.
3582         * acinclude.m4: Same.
3583         * aclocal.m4: Regenerate.
3584         * configure.target: Same. Rename to...
3585         * configure.host: This.
3586
3587 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
3588
3589         * include/std/std_fstream.h (_S_pback_size): Remove definition.
3590         (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
3591         pback buffer.
3592         * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
3593         * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
3594         of _S_pback_size for systems with no COMDAT or weak support.
3595         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
3596         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
3597         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
3598         * testsuite/27_io/basic_fstream/3.cc: Likewise.
3599         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
3600         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
3601         * testsuite/27_io/basic_ofstream/3.cc: Likewise.
3602         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
3603         * testsuite/27_io/basic_streambuf/3.cc: Likewise.
3604
3605 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
3606
3607         * include/bits/fstream.tcc (_M_underflow): Simplify:
3608         !__testout implies _M_filepos == _M_in_end, therefore
3609         the first _M_file.seekoff call is never issued.
3610
3611 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
3612
3613         * configure.in: Sort cross table.
3614         * configure: Regenerate.
3615
3616 2003-05-22  Brad Spencer  <spencer@infointeractive.com>
3617
3618         PR libstdc++/10106
3619         * configure.in: Add Solaris cross bits.
3620
3621 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
3622
3623         * libstdc++-v3/config/os/mingw32/os_defines.h
3624         (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
3625         (NOMINMAX): Define.  Update copyright year.
3626
3627 2003-05-21  Paolo Carlini  <pcarlini@unitus.it>
3628
3629         * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
3630
3631 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
3632
3633         * docs/html/faq/index.html: Fix typo.
3634         * docs/html/faq/index.txt: Regenerate.
3635
3636 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
3637
3638         * docs/html/test.html: Fix markup.
3639
3640 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
3641
3642         * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
3643         zero.
3644         Update copyright year.
3645
3646 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
3647
3648         * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
3649
3650 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
3651
3652         * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
3653         further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
3654
3655 2003-05-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3656
3657         * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
3658         Cast via void* to avoid -Wcast-align warnings.
3659         (__default_alloc_template::_S_refill): Likewise.
3660
3661 2003-05-20  Benjamin Kosnik  <bkoz@redhat.com>
3662
3663         * testsuite/README: Move to...
3664         * docs/html/test.html: ...here. Add documentation.
3665         * docs/html/install.html: Move testing bits out..
3666         * docs/html/documentation.html: Add separate testing link.
3667         * testsuite/performance: Add.
3668         * testsuite/performance/allocator.cc: New.
3669         * testsuite/performance/complex_norm.cc: New.
3670         * testsuite/performance/cout_insert_int.cc: New.
3671         * testsuite/performance/fstream_seek_write.cc: New.
3672         * testsuite/performance/ifstream_getline.cc: New.
3673         * testsuite/performance/map_create_fill.cc: New.
3674         * testsuite/performance/ofstream_insert_float.cc: New.
3675         * testsuite/performance/ofstream_insert_int.cc: New.
3676         * testsuite/performance/string_append.cc: New.
3677         * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
3678         performance tests.
3679
3680 2003-05-20  Gabriel Dos Reis <gdr@integrable-solutions.net>
3681
3682         PR libstdc++/10689
3683         * include/std/std_complex.h (pow): Tidy.
3684
3685 2003-05-19  Paolo Carlini  <pcarlini@unitus.it>
3686
3687         * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
3688         that upon filebuf::close() 27.8.1.1,3 is enforced.
3689
3690 2003-05-15  Loren J. Rittle  <ljrittle@acm.org>
3691
3692         * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
3693
3694 2003-05-15  Paolo Carlini  <pcarlini@unitus.it>
3695             Nathan Myers  <ncm@cantrip.org>
3696
3697         * include/bits/fstream.tcc (_M_overflow): Rewrote to call
3698         _M_convert_to_external only once (_M_buf_size is now the size of
3699         the put area + 1 for the overflow char of a full area); call
3700         _M_set_buffer instead of _M_set_indeterminate.
3701         (setbuf): Don't accept a buffer smaller than 2 chars.
3702         (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
3703         instead of _M_set_determinate.
3704         (open): Call _M_set_buffer, instead of _M_set_indeterminate.
3705         (seekoff): Likewise.
3706         * include/ext/stdio_filebuf.h (stdio_filebuf(int,
3707         std::ios_base::openmode, bool, size_t),
3708         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
3709         Likewise.
3710         * include/std/std_fstream.h (_M_set_indeterminate): Remove.
3711         (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
3712         _M_buf_size - 1.
3713         * include/std/std_streambuf.h: Tweak _M_out_lim comment.
3714         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
3715         into account that, for _M_buf_size == BUFSIZ == 8192, the size of
3716         the put area is now BUFSIZ - 1.
3717         * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
3718         that now the smallest _M_buf_size is 2 (still fails, for the same
3719         reason, with 3.2.3)
3720
3721 2003-05-14  Loren J. Rittle  <ljrittle@acm.org>
3722
3723         * testsuite/thread/pthread4.cc: Tweak test.
3724
3725 2003-05-13  Benjamin Kosnik  <bkoz@redhat.com>
3726
3727         * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
3728         excess errors dg marker, use dg-errors instead.
3729         * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
3730         * testsuite/20_util/auto_ptr_neg.cc: Same.
3731
3732 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
3733
3734         * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
3735         cached member.
3736         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
3737         Initialize _M_codecvt.
3738         (basic_filebuf::imbue): Same.
3739         (basic_filebuf::showmanyc): Use it.
3740         (basic_filebuf::underflow): Use it.
3741         (basic_filebuf::_M_convert_to_external): Use it.
3742         (basic_filebuf::seekoff): Use it.
3743         (basic_filebuf::imbue): Use it, tweaks.
3744         * include/bits/localefwd.h (__check_facet): New.
3745         * include/bits/locale_classes.h: Tweaks.
3746         * include/bits/locale_facets.tcc: Tweaks.
3747         * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
3748         _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
3749         _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
3750         * include/bits/basic_ios.tcc: Same.
3751         * include/bits/istream.tcc: Same.
3752         * include/bits/ostream.tcc: Same.
3753         * include/std/std_streambuf.h: Same.
3754         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
3755         * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
3756         * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
3757         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
3758         * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
3759         * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
3760
3761 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
3762
3763         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
3764         unnecessary includes and unused string literals.
3765         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
3766         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
3767         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
3768         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
3769
3770 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
3771
3772         * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
3773
3774 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
3775
3776         * include/std/std_fstream.h (_M_convert_to_external): Change
3777         to return bool, take two less streamsize parameters.
3778         * include/bits/fstream.tcc (_M_convert_to_external): Tweak
3779         consistently definition.
3780         (_M_overflow): Adjust call points.
3781
3782 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
3783
3784         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
3785
3786 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
3787
3788         * testsuite/Makefile.am:  Properly quote /both/ LD_RUN_PATHs.
3789         * testsuite/Makefile.in:  Regenerate.
3790
3791 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
3792
3793         * testsuite/Makefile.am:  Properly quote LD_RUN_PATH.
3794         * testsuite/Makefile.in:  Regenerate.
3795
3796 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
3797
3798         PR libstdc++/3181
3799         * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
3800         (acos): Handle integer argument.
3801         (asin): Likewise.
3802         (atan): Likewise.
3803         (atan2): Likewise.
3804         (ceil): Likewise.
3805         (cos): Likewise.
3806         (cosh): Likewise.
3807         (exp): Likewise.
3808         (fabs): Likewise.
3809         (floor): Likewise.
3810         (frexp): Likewise.
3811         (ldexp): Likewise.
3812         (log): Likewise.
3813         (log10): Likewise.
3814         (sin): Likewise.
3815         (sinh): Likewise.
3816         (sqrt): Likewise.
3817         (tan): Likewise.
3818         (tanh): Likewise.
3819         * include/bits/cpp_type_traits.h (__are_same<>): New traits.
3820         (__enable_if): Likewise.
3821         * testsuite/26_numerics/cmath/overloads.C: New test.
3822
3823 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
3824
3825         PR libstdc++/9027
3826         PR libstdc++/9520
3827         PR libstdc++/10096
3828         * include/bits/fstream.tcc (basic_file::_M_underflow):  Add generic
3829         implementation, based on old wchar_t specialization, add support
3830         for codecvt::in() return value of codecvt_base::noconv, remove
3831         _M_file.sys_ungetc() call.
3832         * include/std/std_fstream.h (basic_file::underflow,
3833         basic_file::uflow, basic_file::_M_underflow):  Remove
3834         specialization declarations, call _M_underflow from generic versions
3835         of underflow and uflow.
3836         * src/fstream.cc (basic_file::underflow, basic_file::uflow,
3837         basic_file::_M_underflow):  Remove specializations.
3838         * src/Makefile.am (sources):  Remove fstream.cc.
3839         * src/Makefile.in:  Regenerated.
3840         * testsuite/27_io/basic_filebuf/underflow/10096.cc:  New test.
3841         * testsuite/27_io/basic_filebuf/underflow/char/1.cc:  New test.
3842         * testsuite/27_io/basic_filebuf/underflow/char/9027.cc:  New test.
3843         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc:  New test.
3844
3845 2003-05-10  Benjamin Kosnik  <bkoz@redhat.com>
3846
3847         * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
3848         buffer.
3849         * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
3850         unbuffered bits.
3851         (__basic_file::xsputn): Same.
3852         (__basic_file::seekoff): Same.
3853         (__basic_file::seekpos): Same.
3854         (__basic_file::showmanyc): Same.
3855         * config/io/basic_file_stdio.cc: Same.
3856         * include/std/std_fstream.h: Same.
3857         * include/bits/fstream.tcc: Same.
3858         * src/fstream.cc: Same.
3859         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
3860
3861 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
3862
3863         PR libstdc++/9520
3864         PR libstdc++/9661
3865         PR libstdc++/9662
3866         * include/ext/stdio_sync_filebuf.h:  New file.
3867         (basic_stdiobuf):  New.
3868         * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
3869         * include/Makefile.in: Regenerate.
3870         * include/bits/ios_base.h (Init::_S_create_buffers,
3871         Init::_S_destroy_buffers):  Remove declarations.
3872         * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
3873         buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync):  Define.
3874         * src/ios.cc (Init::_S_create_buffers,
3875         Init::_S_destroy_buffers):  Remove.
3876         (Init::Init):  Create and use syncronized buffers.
3877         (ios_base::sync_with_stdio):  Destroy syncronized buffers,
3878         create and install unsyncronized buffers.
3879         * testsuite/27_io/objects/char/10.cc:  New test.
3880         * testsuite/27_io/objects/char/9.cc:  New test.
3881         * testsuite/27_io/objects/char/9661-1.cc:  New test.
3882         * testsuite/27_io/objects/char/9661-2_xin.cc:  New test.
3883         * testsuite/27_io/objects/char/9661-2_xin.in:  New.
3884         * testsuite/27_io/objects/wchar_t/1.cc:  New test.
3885         * testsuite/27_io/objects/wchar_t/10.cc:  New test.
3886         * testsuite/27_io/objects/wchar_t/2.cc:  New test.
3887         * testsuite/27_io/objects/wchar_t/2523-1_xin.cc:  New test.
3888         * testsuite/27_io/objects/wchar_t/2523-1_xin.in:  New.
3889         * testsuite/27_io/objects/wchar_t/2523-2_xin.cc:  New test.
3890         * testsuite/27_io/objects/wchar_t/2523-2_xin.in:  New.
3891         * testsuite/27_io/objects/wchar_t/3045.cc:  New test.
3892         * testsuite/27_io/objects/wchar_t/3647.cc:  New test.
3893         * testsuite/27_io/objects/wchar_t/3_xin.cc:  New test.
3894         * testsuite/27_io/objects/wchar_t/3_xin.in:  New.
3895         * testsuite/27_io/objects/wchar_t/4_xin.cc:  New test.
3896         * testsuite/27_io/objects/wchar_t/4_xin.in:  New.
3897         * testsuite/27_io/objects/wchar_t/5.cc:  New test.
3898         * testsuite/27_io/objects/wchar_t/5268.cc:  New test.
3899         * testsuite/27_io/objects/wchar_t/5280_xin.cc:  New test.
3900         * testsuite/27_io/objects/wchar_t/5280_xin.in:  New.
3901         * testsuite/27_io/objects/wchar_t/6.cc:  New test.
3902         * testsuite/27_io/objects/wchar_t/6548_xin.cc:  New test.
3903         * testsuite/27_io/objects/wchar_t/6548_xin.in:  New.
3904         * testsuite/27_io/objects/wchar_t/6648-1_xin.cc:  New test.
3905         * testsuite/27_io/objects/wchar_t/6648-1_xin.in:  New.
3906         * testsuite/27_io/objects/wchar_t/6648-2_xin.cc:  New test.
3907         * testsuite/27_io/objects/wchar_t/6648-2_xin.in:  New.
3908         * testsuite/27_io/objects/wchar_t/7.cc:  New test.
3909         * testsuite/27_io/objects/wchar_t/7744_xin.cc:  New test.
3910         * testsuite/27_io/objects/wchar_t/7744_xin.in:  New.
3911         * testsuite/27_io/objects/wchar_t/8.cc:  New test.
3912         * testsuite/27_io/objects/wchar_t/9_xin.cc:  New test.
3913         * testsuite/27_io/objects/wchar_t/9_xin.in:  New.
3914         * testsuite/27_io/objects/wchar_t/9520.cc:  New test.
3915         * testsuite/27_io/objects/wchar_t/9661-1.cc:  New test.
3916         * testsuite/27_io/objects/wchar_t/9661-2_xin.cc:  New test.
3917         * testsuite/27_io/objects/wchar_t/9661-2_xin.in:  New.
3918         * testsuite/27_io/objects/wchar_t/9662.cc:  New test.
3919         * testsuite/ext/stdiobuf_char.cc:  New test.
3920         * testsuite/ext/stdiobuf_wchar_t.cc:  New test.
3921
3922 2003-05-10  Paolo Carlini  <pcarlini@unitus.it>
3923
3924         * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
3925         unnecessary includes and unused string literals.
3926         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
3927
3928 2003-05-08  Paolo Carlini  <pcarlini@unitus.it>
3929
3930         * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
3931
3932 2003-05-07  Richard Henderson  <rth@redhat.com>
3933
3934         PR c++/10570
3935         * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
3936         (__cxa_end_catch): Likewise.
3937         * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise.  Use
3938         _Unwind_Resume_or_Rethrow.
3939         * libsupc++/eh_personality.cc (empty_exception_spec): New.
3940         (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
3941         for _UA_FORCE_UNWIND.  Honor empty filter spec for foreign
3942         exceptions.  Don't push terminate/unexpected to cxa functions.
3943         (__cxa_call_unexpected): Remove foreign exception fixmes.
3944
3945 2003-05-07  Benjamin Kosnik  <bkoz@redhat.com>
3946
3947         * testsuite/27_io/ios_base/cons: New.
3948         * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
3949         * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
3950
3951 2003-05-07  Paolo Carlini  <pcarlini@unitus.it>
3952
3953         * include/std/std_fstream.h (_M_is_indeterminate): Remove.
3954         * src/fstream.cc
3955         (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
3956         there is no buffer or __testget == !__testinit.
3957
3958         * src/fstream.cc
3959         (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
3960         automatically sets, if appropriate, _M_out_cur == _M_in_cur.
3961
3962         * include/std/std_fstream.h (_M_destroy_pback): Don't set
3963         unnecessarily _M_pback_cur_save and _M_pback_end_save.
3964
3965         * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
3966
3967         * include/std/std_sstream.h (_M_sync): Minor tweak.
3968
3969         * include/bits/fstream.tcc (close): No need to call
3970         _M_destroy_pback, setting _M_pback_init to false suffices
3971         to clean up.
3972
3973 2003-05-06  Benjamin Kosnik  <bkoz@redhat.com>
3974
3975         * include/bits/stl_algo.h: Enums as _S_.
3976         * include/bits/stl_tree.h: Same.
3977         * include/bits/stl_bvector.h: Same.
3978         * include/bits/ios_base.h: Same.
3979         * include/bits/stl_alloc.h: Same.
3980         * include/ext/stl_hashtable.h: Same.
3981         * src/ios.cc: And here.
3982
3983         * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
3984         * include/bits/sstream.tcc: Same.
3985
3986         * include/bits/basic_ios.h: Correct spacing for '< ctype'.
3987
3988         * include/bits/locale_facets.tcc: Replace __temp to __tmp.
3989
3990         * include/bits/locale_facets.h (__num_base): Remove protected.
3991         Use _S_[io]* names for enumerations.
3992         (_S_format_int): Remove.
3993         * include/bits/locale_facets.tcc: Same.
3994         * src/locale.cc: Same.
3995
3996         * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
3997
3998 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
3999
4000         * docs/html/faq/index.html (3.10):  Add note about mips atomicity.h.
4001         * docs/html/faq/index.txt:  Regenerated.
4002
4003 2003-05-06  Michael Ritzert <Ritzert@t-online.de>
4004             Matt Kraai <kraai@alumni.cmu.edu>
4005
4006         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
4007         And retweak.
4008
4009 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
4010
4011         * configure.target (mips*): Use the generic atomicity.h by default.
4012
4013 2003-05-05  Loren J. Rittle  <ljrittle@acm.org>
4014             (Inspired by an alternate patch from Danny Smith.)
4015
4016         * include/bits/stl_threads.h (_Atomic_swap): Kill it...
4017         (_Swap_lock_struct<>): ...and the horse it rode in on.
4018         * src/globals.cc (_Swap_lock_struct<>): Likewise.
4019         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
4020         member to support...
4021         * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
4022         visibility rules related to POSIX threads.
4023         * testsuite/thread/pthread7-rope.cc: New test.
4024
4025 2003-05-04  Paolo Carlini  <pcarlini@unitus.it>
4026
4027         * testsuite/21_strings/basic_string/find/char/3.cc: New
4028         file, testing basic_string<char>::find_first_not_of.
4029         * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
4030         Likewise for basic_string<wchar_t>.
4031
4032 2003-05-03  Loren J. Rittle  <ljrittle@acm.org>
4033
4034         * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
4035
4036 2003-05-02  Benjamin Kosnik  <bkoz@redhat.com>
4037
4038         * include/Makefile.am (CLEANFILES): Remove PCH files in target
4039         directory.
4040         * include/Makefile.in: Regenerate.
4041
4042 2003-05-02  Paolo Carlini  <pcarlini@unitus.it>
4043
4044         * include/std/std_sstream.h (str()): Tidy.
4045
4046 2003-05-02  Nathan Myers  <ncm@cantrip.org>
4047             Paolo Carlini  <pcarlini@unitus.it>
4048
4049         * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
4050
4051 2003-05-02  Jonathan Wakely  <redi@gcc.gnu.org>
4052
4053         * include/bits/basic_string.h (swap): Remove redundant template
4054         parameters from declaration of non-template member function.
4055
4056 2003-05-01  Phil Edwards  <pme@gcc.gnu.org>
4057
4058         * acconfig.h (_GLIBCPP_USE_NLS):  New symbol.
4059         * configure.in:  Move libintl.h header test...
4060         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  ...to here.  Gather all
4061         the NLS-related test results into one symbol.
4062         * src/functexcept.cc:  Use it here.
4063         * aclocal.m4, config.h.in, configure:  Regenerated.
4064
4065 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
4066
4067         * include/bits/sstream.tcc (overflow): Instead of calling
4068         str(), then _M_string.reserve, thus copying the contents
4069         of the current buffer two times, just copy the latter in
4070         a temporary, then use the 'swap trick'.
4071
4072 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
4073
4074         * include/std/std_sstream.h (str()): Revert the best of the
4075         previous 'improvement', incorrect due to the COW nature of
4076         v3 basic_string; simplify.
4077
4078 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
4079
4080         * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
4081         type of __avail to ptrdiff_t to avoid signed-unsigned warning.
4082
4083 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
4084
4085         * testsuite/abi_check.cc (check_version): Update known versions.
4086         Check added symbols for version_name != base version. Add missing
4087         symbols to incompatible list.
4088
4089 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
4090
4091         * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
4092         * aclocal.m4: Regenerated.
4093         * configure: Regenerated.
4094
4095 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
4096
4097         * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
4098         Const-ify some variables.
4099         (basic_streambuf::xsputn): Likewise; change the type of some
4100         variables to size_t.
4101         (__copy_streambufs): Change some variables to size_t.
4102
4103 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
4104
4105         * include/std/std_sstream.h (str()): Avoid constructing
4106         a basic_string temporary not only when it would turn out
4107         to be zero-sized but also when identical to the current
4108         _M_string buffer.
4109
4110 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
4111
4112         * include/ext/stdio_filebuf.h
4113         (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
4114         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
4115         Shorten a bit (-10 lines) by factoring out some code.
4116
4117 2003-04-30  Phil Edwards  <pme@gcc.gnu.org>
4118
4119         * acinclude.m4:  Add bit missing from previous patch.
4120         * aclocal.m4, configure:  Regenerated.
4121
4122 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
4123
4124         * docs/doxygen/mainpage.html:  Bring up to date.
4125         * docs/doxygen/run_doxygen:  Cosmetic tweaks.  Work around a bug
4126         in Doxygen.
4127         * docs/doxygen/user.cfg.in:  Scanning the precompiled headers
4128         breaks everything.  Don't scan them.
4129         * docs/html/documentation.html:  Point to "Write after approval"
4130         notes.
4131
4132 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
4133
4134         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  Search for gettext outside
4135         of libc if message translations are being used.  Fix info text in
4136         xieee_1003.1-2001 case.
4137         * aclocal.m4, configure:  Regenerate.
4138
4139 2003-04-29 Joel Sherrill  <joel.sherrill@OARcorp.com>
4140            Loren J. Rittle <ljrittle@acm.org>
4141            Martin v. Loewis  <martin@v.loewis.de>
4142
4143         * config/cpu/i386/atomicity.h: New file.
4144
4145 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
4146
4147         * include/bits/fstream.tcc (open): Change to single return.
4148
4149 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
4150
4151         * include/std/std_sstream.h (underflow): Change to single return.
4152
4153 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
4154
4155         * include/std/std_streambuf.h (_M_buf): is currently
4156         used only for basic_filebuf, therefore move it there.
4157         (basic_streambuf(), ~basic_streambuf()): Adjust.
4158         * include/std/std_fstream.h (_M_buf): Moved here.
4159         * include/std/std_sstream.h (setbuf): Don't set _M_buf,
4160         is actually redundant for basic_stringbuf.
4161         (_M_really_sync): Likewise.
4162         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
4163         * include/bits/sstream.tcc (seekoff): Adjust.
4164
4165 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
4166
4167         * src/localename.cc: Standardize exception strings.
4168         * src/locale.cc: Same.
4169         * src/ios.cc: Same.
4170         * include/bits/basic_string.tcc: Same.
4171         * include/bits/basic_ios.tcc: Same.
4172         * include/std/std_bitset.h: Same.
4173         * include/ext/ropeimpl.h: Same.
4174         * include/bits/stl_vector.h: Same.
4175         * include/bits/stl_deque.h: Same.
4176         * include/bits/stl_bvector.h: Same.
4177         * config/locale/generic/c_locale.cc: Same.
4178         * config/locale/gnu/c_locale.cc: Same.
4179         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
4180
4181         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
4182
4183 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
4184
4185         * include/std/std_streambuf.h (_M_buf_size): is currently
4186         used only for basic_filebuf, therefore move it there.
4187         (basic_streambuf(), ~basic_streambuf()): Adjust.
4188         * include/std/std_fstream.h (_M_buf_size): Moved here.
4189         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
4190
4191 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
4192
4193         * include/bits/streambuf.tcc (__copy_streambufs): Don't use
4194         _M_buf_size (synced input is now correctly dealt with
4195         elsewhere); when the output buffer is full don't fall back
4196         to a snextc-sputc loop, call overflow instead.
4197
4198 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
4199
4200         * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
4201         the innermost 'if' by factoring out some code.
4202
4203 2003-04-28  Phil Edwards  <pme@gcc.gnu.org>
4204
4205         * configure.in:  Test for libintl.h.
4206         * include/bits/c++config:  Define __N for everybody.
4207         * include/bits/basic_string.h, include/bits/stl_bvector.h,
4208         include/bits/stl_deque.h, include/bits/stl_vector.h,
4209         include/std/std_bitset.h:  Wrap all __throw* text with __N.
4210         * po/Makefile.am (pot):  New rule, mostly working.
4211         * src/functexcept.cc:  Call gettext on all __throw* arguments when
4212         -fexceptions is in effect.
4213         * po/Makefile.in, config.h.in, configure:  Regenerate.
4214
4215 2003-04-28  Petur Runolfsson  <peturr02@ru.is>
4216
4217         PR libstdc++/9523
4218         * include/bits/ios_base.h (Init::_S_ios_create,
4219         Init::_S_ios_destroy):  Remove declarations.
4220         (Init::_S_create_buffers,
4221         Init::_S_destroy_buffers):  Declare
4222         * src/ios.cc (Init::_S_ios_create):  Remove
4223         (Init::_S_create_buffers):  Create buffers and add to streams.
4224         (Init::_S_ios_destroy):  Rename to...
4225         (Init::_S_destroy_buffers):  this.
4226         (Init::Init):  Only construct streams once.
4227         (Init::~Init):  Flush streams, don't destroy them.
4228         (ios_base::sync_with_stdio):  Don't destroy streams, only buffers.
4229         * testsuite/27_io/ios_base/sync_with_stdio/9523.cc:  New test.
4230         * testsuite/27_io/objects/char/5.cc:  New test.
4231         * testsuite/27_io/objects/char/5268.cc:  Avoid undefined behavior.
4232         * testsuite/27_io/objects/char/6.cc:  New test.
4233         * testsuite/27_io/objects/char/7.cc:  New test.
4234
4235 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
4236
4237         * testsuite/27_io/objects/char/8.cc:  New test.
4238
4239 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
4240
4241         * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
4242         * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
4243
4244 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
4245
4246         * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
4247         _M_destroy_pback. _M_pback_create to
4248         _M_create_pback. _M_underflow_common to
4249         _M_underflow. _M_really_overflow to _M_overflow.
4250         * include/bits/fstream.tcc: Same.
4251         * src/fstream.cc: Same.
4252         * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
4253         _M_move_in_cur.  _M_out_cur_move to _M_move_out_cur.
4254         * include/bits/streambuf.tcc: Same.
4255         * include/bits/fstream.tcc: Same.
4256         * include/bits/sstream.tcc: Same.
4257
4258 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
4259
4260         * include/bits/locale_classes.h (locale::_Impl): Change _M_names
4261         from fixed size array.
4262         (locale): Change _S_categories as well.
4263         Formatting tweaks.
4264         * include/bits/locale_facets.tcc: Tweak.
4265         * config/locale/gnu/c_locale.cc: Assign _S_categories.
4266         * config/locale/generic/c_locale.cc: Same.
4267         * src/locale.cc: Tweak.
4268         * src/globals.cc: Change facet_name to name_vec, add names_c.
4269         * src/localename.cc: Use them.
4270         (locale::_Impl::~_Impl): Destroy _M_names.
4271         (locale::_Impl::_Impl): Create _M_names.
4272
4273 2003-04-27  Andreas Schwab  <schwab@suse.de>
4274
4275         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
4276         (__enc_traits): Use __ibom and __ebom instead of ignoring them.
4277
4278 2003-04-27  Nathan Myers  <ncm@cantrip.org>
4279
4280         Move some basic_string members out of line because
4281         they are too big to reasonably be inline.
4282         * include/bits/basic_string.h
4283         (assign(const basic_string&, size_type, size_type),
4284         assign(const _CharT*, size_type),
4285         insert(size_type, const basic_string&, size_type, size_type),
4286         insert(size_type, const _CharT*, size_type),
4287         replace(size_type, size_type, const _CharT*, size_type)):
4288         Move from here to...
4289         * include/bits/basic_string.tcc: ...here.
4290
4291 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
4292
4293         * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
4294         the innermost 'if' by factoring out some code.
4295
4296 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
4297
4298         * include/bits/streambuf.tcc (__copy_streambufs): Don't
4299         use in_avail(), simplify.
4300
4301 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
4302
4303         * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
4304         in basic_stringbuf it's unused.
4305
4306         * include/std/std_sstream.h (underflow): consistently use
4307         _M_in_cur, not gptr().
4308
4309 2003-04-25  Ranjit Mathew  <rmathew@hotmail.com>
4310             Phil Edwards  <pme@gcc.gnu.org>
4311
4312         * testsuite_flags.in: Guard against the possibility
4313         of having "xgcc" as a part of a folder name in the
4314         path to the GCC build folder.
4315         * testsuite/Makefile.am: Likewise.
4316         * testsuite/Makefile.in: Regenerated.
4317
4318 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
4319
4320         PR libstdc++/10132
4321         * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
4322         exception specifications.
4323         (basic_filebuf::close): Same.
4324         (basic_filebuf::_M_pback_destroy): Same.
4325         (basic_filebuf::_M_destroy_internal_buffer): Same.
4326         (basic_filebuf): Remove __res_type typedef.
4327         * src/fstream.cc: Same.
4328         * include/bits/fstream.tcc
4329         (basic_filebuf::_M_convert_to_external): Simplify.
4330         (basic_filebuf::seekoff): Use has_facet before use_facet.
4331         (basic_filebuf::close): Add exception specification of throw().
4332         * testsuite/27_io/basic_filebuf/cons: New.
4333         * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
4334         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
4335         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
4336         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
4337
4338 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
4339
4340         * include/bits/locale_classes.h
4341         (locale::_S_extra_categories_size): Remove.
4342         * src/locale.cc: Remove _S_extra_categories_size.
4343         * src/localename.cc: Same.
4344         * config/locale/gnu/c_locale.cc: Same.
4345         * config/locale/generic/c_locale.cc: Same.
4346
4347 2003-04-24  Richard Sandiford  <rsandifo@redhat.com>
4348
4349         * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
4350
4351 2003-04-24  Phil Edwards  <pme@gcc.gnu.org>
4352
4353         * docs/html/17_intro/howto.html:  Update some links.
4354         * docs/html/18_support/howto.html:  Link doxygen numeric_limits notes.
4355         * docs/html/27_io/howto.html:  Link doxygen stdio_filebuf notes.
4356         * docs/html/ext/howto.html:  Link to demangler notes and API.
4357         * docs/html/faq/index.html:  Remove trailing whitespace.
4358         (1.4, 2.4, 3.8, 4.1):  Bring up to date.
4359         (5.6):  Change to a bulleted list.
4360
4361         * docs/html/faq/index.txt, docs/html/documentation.html,
4362         docs/html/17_intro/porting.html:  Regenerate.
4363
4364 2003-04-23  Paolo Carlini  <pcarlini@unitus.it>
4365
4366         * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
4367         belongs to basic_filebuf.
4368         * testsuite/27_io/basic_fstream/3.cc: Likewise.
4369         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
4370         * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
4371         instantiation (now belongs to basic_filebuf).
4372         * testsuite/27_io/basic_iostream/3.cc: Likewise.
4373         * testsuite/27_io/basic_istream/3.cc: Likewise.
4374         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
4375         _S_pback_size now belongs to basic_filebuf.
4376         * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
4377         instantiation (now belongs to basic_filebuf).
4378         * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
4379         belongs to basic_filebuf.
4380         * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
4381         instantiation (now belongs to basic_filebuf).
4382         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
4383         _S_pback_size now belongs to basic_filebuf.
4384         * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
4385         instantiation (now belongs to basic_filebuf).
4386         * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
4387         to basic_filebuf.
4388         * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
4389         instantiation (now belongs to basic_filebuf).
4390         * testsuite/27_io/basic_stringstream/3.cc: Likewise.
4391
4392 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
4393
4394         * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
4395         * configure: Regenerated.
4396
4397 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
4398
4399         * config/locale/generic/c_locale.h (__convert_from_v): Use
4400         attribute unused.
4401
4402 2003-04-23  Phil Edwards  <pme@gcc.gnu.org>
4403
4404         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 60, partial
4405         implementation only.
4406         * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
4407         Comment and change to comply with DR 60 and the effect on gcount().
4408         * include/std/std_istream.h:  Update comments.
4409         * testsuite/27_io/basic_istream/putback/char/1.cc (test01):  Add
4410         comments about reasons for tests.  Test sync() against gcount().
4411         * testsuite/27_io/basic_istream/seekg/char/2.cc:  New file, test
4412         for effect on gcount().
4413         * testsuite/27_io/basic_istream/tellg/char/2.cc:  New file, test
4414         for effect on gcount().
4415
4416 2003-04-22  Loren J. Rittle  <ljrittle@acm.org>
4417
4418         * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
4419         Adjust timing.
4420
4421 2003-04-22  Paolo Carlini  <pcarlini@unitus.it>
4422
4423         * include/std/std_streambuf.h (_S_pback_size, _M_pback,
4424         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
4425         _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
4426         (basic_streambuf::basic_streambuf()): Adjust.
4427         * include/std/std_fstream.h (_S_pback_size, _M_pback,
4428         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
4429         _M_pback_create(), _M_pback_destroy()): Moved here
4430         from basic_streambuf.
4431         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
4432         Adjust.
4433         (basic_filebuf::_S_pback_size): Add declaration.
4434         * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
4435         Remove declaration.
4436
4437 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
4438
4439         Consistently use _M_in_beg instead of eback(), _M_in_cur
4440         instead of gptr(), and so on.
4441         * include/bits/fstream.tcc (pbackfail, imbue): Here.
4442         * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
4443         * include/bits/streambuf.tcc (sbumpc, sputbackc,
4444         __copy_streambufs): Ditto.
4445         * include/std/std_streambuf.h (sgetc): Ditto.
4446
4447 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
4448
4449         * include/bits/sstream.tcc (pbackfail, overflow):
4450         Formatting fixes.
4451
4452 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
4453
4454         * include/std/std_streambuf.h (uflow()): It's used only by
4455         basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
4456         therefore do not consider the _M_buf_unified == true case.
4457
4458         * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
4459
4460 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
4461
4462         * docs/html/ext/howto.html ('LWG Issues'):
4463         Add issues 19, 90, 171, 231, 271.
4464
4465 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
4466
4467         * include/bits/sstream.tcc (pbackfail): Remove redundant
4468         NULL pointer check from test involving _M_in_*.
4469         (overflow, seekoff, seekpos): Const qualify bool variables.
4470         * include/std/std_sstream.h (underflow): Remove redundant
4471         NULL pointer check from test involving _M_in_*.
4472         (_M_really_sync): Const qualify bool variables.
4473         * src/fstream.cc (_M_underflow_common): Remove redundant
4474         NULL pointer check from test involving _M_in_*, const qualify
4475         bool variables.
4476
4477         * include/std/std_streambuf.h (sgetc): Remove redundant
4478         variable.
4479
4480 2003-04-18  Paolo Carlini  <pcarlini@unitus.it>
4481
4482         According to 5.9 para 2 (second bullet) for pointers p, q
4483         pointing to the same type, with  p == 0 and q == 0, (p < q)
4484         is false.
4485         * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
4486         seekoff): Remove redundant NULL pointer checks from tests
4487         involving _M_out_* and _M_in_*, const qualify bool variables.
4488         (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
4489         qualify bool variables.
4490         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
4491         Remove redundant NULL pointer checks from tests involving
4492         _M_out_* and _M_in_*, const qualify bool variables.
4493         * include/std/std_fstream.h (sync): Likewise.
4494         (_M_is_indeterminate): Const qualify bool variables.
4495         * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
4496         NULL pointer checks from tests involving _M_out_* and _M_in_*,
4497         const qualify bool variables.
4498         (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
4499         variables.
4500
4501 2003-04-18  Loren J. Rittle  <ljrittle@acm.org>
4502
4503         * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
4504         C99 FP macros, if actually captured.
4505
4506         * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
4507         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
4508         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
4509         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
4510         * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
4511         New macro.
4512         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
4513         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
4514         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
4515         * include/c_std/std_cstdlib.h: Use new macros.
4516         * include/c_std/std_cstdio.h: Use new macros.
4517         * include/c_std/std_cwchar.h: Use new macros.
4518
4519 2003-04-17  Benjamin Kosnik  <bkoz@redhat.com>
4520
4521         PR libstdc++/9555
4522         * include/bits/ostream.tcc: Catch all exceptions for formatted
4523         output, instead of std::exception and derivatives.
4524         * include/bits/istream.tcc: Same.
4525         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
4526         * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
4527         * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
4528         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
4529         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
4530         * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
4531         New.
4532
4533 2003-04-17  Phil Edwards  <pme@gcc.gnu.org>
4534
4535         * include/bits/c++config:  Minor cosmetic tweaks.
4536
4537 2003-04-17  Loren J. Rittle  <ljrittle@acm.org>
4538
4539         * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
4540         * include/Makefile.am (pch_input): Find in ${target_builddir}.
4541         (pch_output): Rename to...
4542         (pch_output_builddir): ..this.  Find in ${target_builddir}.
4543         (pch_source): Tweak.
4544         (pch_build): Key off a built file.
4545         (pch_output rule): Rename to...
4546         (pch_input rule): ...this.  Produce ${pch_output_builddir}
4547         instead of ${pch_output}.
4548         (install-pch rule): Install ${pch_output_builddir}.
4549         * include/Makefile.in: Regenerated.
4550
4551 2003-04-17  Paolo Carlini  <pcarlini@unitus.it>
4552
4553         * include/std/std_streambuf.h (setp): _M_out_lim, being
4554         the end limit of used put area, is set equal to _M_out_beg.
4555
4556 2003-04-16  Benjamin Kosnik  <bkoz@redhat.com>
4557
4558         * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
4559         * aclocal.m4: Regenerated.
4560         * configure.in: Remove old demangler bits.
4561         Call pch checks.
4562         * configure: Regenerate.
4563         * config.h.in: Regenerate.
4564         * include/Makefile.am (allstamps): Now allstamped.
4565         (allcreated): Define this.
4566         (all-local): Use 'em.
4567         Conditionally define pch_build, pch_install based on
4568         GLIBCPP_BUILD_PCH.
4569         (${pch_output}): New rule.
4570         (install-pch): New rule.
4571         (install-headers): New rule.
4572         (install-data-local): Install headers and conditionally pch.
4573         * include/Makefile.in: Regenerate.
4574         * testsuite_flags.in (--build-cxx): Use pch file.
4575
4576 2003-04-16  Jonathan Wakely  <redi@gcc.gnu.org>
4577
4578         * docs/html/ext/sgiexts.html: Fix path to stylesheet.
4579
4580 2003-04-15  Benjamin Kosnik  <bkoz at redhat dot com>
4581             Paolo Carlini  <pcarlini at unitus dot it>
4582
4583         PR libstdc++/9423
4584         * docs/html/27_io/howto.html
4585         ('The buffering is screwing up my program!'): Explain that
4586         opening counts as an I/O operation.
4587
4588 2003-04-15  Andreas Tobler  <a.tobler@schweiz.ch>
4589
4590         * testsuite/thread/pthread1.cc: Enable for darwin test.
4591         * testsuite/thread/pthread2.cc: Same.
4592         * testsuite/thread/pthread3.cc: Same.
4593         * testsuite/thread/pthread4.cc: Same.
4594         * testsuite/thread/pthread5.cc: Same.
4595         * testsuite/thread/pthread6.cc: Same.
4596
4597 2003-04-15  Loren J. Rittle  <ljrittle@acm.org>
4598
4599         libstdc++/7680
4600         * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
4601         Populate it with multiple legal ways to obtain the C99 float
4602         transcendentals.  Use them instead of direct global reference.
4603         (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
4604         * docs/html/17_intro/porting.texi
4605         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
4606         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
4607         (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
4608         * config/os/bsd/freebsd/os_defines.h
4609         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
4610         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
4611         * testsuite/26_numerics/c_math_dynamic.cc: New file.
4612
4613 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
4614             Benjamin Kosnik  <bkoz@redhat.com>
4615
4616         * config/os/generic/ctype_inline.h: Fix.
4617
4618 2003-04-14  Benjamin Kosnik  <bkoz@redhat.com>
4619
4620         * testsuite/testsuite_hooks.h
4621         (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
4622         Change to try_named_locale.
4623         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
4624
4625         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
4626         try_named_locale.
4627         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
4628         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
4629         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
4630         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
4631         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
4632         * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
4633         * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
4634         * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
4635         * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
4636         * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
4637         * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
4638         * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
4639         * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
4640         * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
4641         * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
4642         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
4643         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
4644         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
4645         * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
4646         * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
4647         * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
4648         * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
4649         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
4650         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
4651         * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
4652         * testsuite/22_locale/collate/compare/char/1.cc: Same.
4653         * testsuite/22_locale/collate/compare/char/2.cc: Same.
4654         * testsuite/22_locale/collate/compare/char/3.cc: Same.
4655         * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
4656         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
4657         * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
4658         * testsuite/22_locale/collate/hash/char/2.cc: Same.
4659         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
4660         * testsuite/22_locale/collate/transform/char/2.cc: Same.
4661         * testsuite/22_locale/collate/transform/char/3.cc: Same.
4662         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
4663         * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
4664         * testsuite/22_locale/collate_byname/1.cc: Same.
4665         * testsuite/22_locale/ctype/is/char/2.cc: Same.
4666         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
4667         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
4668         * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
4669         * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
4670         * testsuite/22_locale/facet/2.cc: Same.
4671         * testsuite/22_locale/locale/cons/2.cc: Same.
4672         * testsuite/22_locale/locale/cons/4.cc: Same.
4673         * testsuite/22_locale/locale/cons/5.cc: Same.
4674         * testsuite/22_locale/locale/cons/7.cc: Same.
4675         * testsuite/22_locale/locale/cons/7222-c.cc: Same.
4676         * testsuite/22_locale/locale/cons/7222-env.cc: Same.
4677         * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
4678         * testsuite/22_locale/messages/members/char/1.cc: Same.
4679         * testsuite/22_locale/messages/members/char/2.cc: Same.
4680         * testsuite/22_locale/messages/members/char/3.cc: Same.
4681         * testsuite/22_locale/messages_byname/1.cc: Same.
4682         * testsuite/22_locale/money_get/get/char/1.cc: Same.
4683         * testsuite/22_locale/money_get/get/char/2.cc: Same.
4684         * testsuite/22_locale/money_get/get/char/3.cc: Same.
4685         * testsuite/22_locale/money_get/get/char/4.cc: Same.
4686         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
4687         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
4688         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
4689         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
4690         * testsuite/22_locale/money_put/put/char/1.cc: Same.
4691         * testsuite/22_locale/money_put/put/char/2.cc: Same.
4692         * testsuite/22_locale/money_put/put/char/3.cc: Same.
4693         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
4694         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
4695         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
4696         * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
4697         * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
4698         * testsuite/22_locale/moneypunct_byname/1.cc: Same.
4699         * testsuite/22_locale/num_get/get/char/1.cc: Same.
4700         * testsuite/22_locale/num_get/get/char/2.cc: Same.
4701         * testsuite/22_locale/num_get/get/char/3.cc: Same.
4702         * testsuite/22_locale/num_get/get/char/5.cc: Same.
4703         * testsuite/22_locale/num_get/get/char/6.cc: Same.
4704         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
4705         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
4706         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
4707         * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
4708         * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
4709         * testsuite/22_locale/num_put/put/char/1.cc: Same.
4710         * testsuite/22_locale/num_put/put/char/2.cc: Same.
4711         * testsuite/22_locale/num_put/put/char/3.cc: Same.
4712         * testsuite/22_locale/num_put/put/char/5.cc: Same.
4713         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
4714         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
4715         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
4716         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
4717         * testsuite/22_locale/numpunct/members/char/1.cc: Same.
4718         * testsuite/22_locale/numpunct/members/char/2.cc: Same.
4719         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
4720         * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
4721         * testsuite/22_locale/numpunct_byname/1.cc: Same.
4722         * testsuite/22_locale/numpunct_byname/2.cc: Same.
4723         * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
4724         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
4725         * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
4726         * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
4727         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
4728         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
4729         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
4730         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
4731         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
4732         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
4733         * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
4734         * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
4735         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
4736         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
4737         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
4738         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
4739         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
4740         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
4741         * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
4742         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
4743         * testsuite/22_locale/time_put/put/char/1.cc: Same.
4744         * testsuite/22_locale/time_put/put/char/2.cc: Same.
4745         * testsuite/22_locale/time_put/put/char/3.cc: Same.
4746         * testsuite/22_locale/time_put/put/char/4.cc: Same.
4747         * testsuite/22_locale/time_put/put/char/5.cc: Same.
4748         * testsuite/22_locale/time_put/put/char/6.cc: Same.
4749         * testsuite/22_locale/time_put/put/char/7.cc: Same.
4750         * testsuite/22_locale/time_put/put/char/8.cc: Same.
4751         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
4752         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
4753         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
4754         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
4755         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
4756         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
4757         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
4758         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
4759         * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
4760         * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
4761         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
4762         * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
4763         * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
4764
4765 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
4766
4767         * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
4768         solaris includes, not generic.
4769
4770 2003-04-14  Loren J. Rittle  <ljrittle@acm.org>
4771
4772         * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
4773
4774         * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
4775         * include/bits/concept_check.h: Fix multi-line comment.
4776         * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
4777         when target is *-*-freebsd*.
4778
4779 2003-04-14  Nathan Myers  <ncm@cantrip.org>
4780             Paolo Carlini  <pcarlini@unitus.it>
4781
4782         PR libstdc++/9701 (in_avail())
4783         * include/std/std_streambuf.h (in_avail): Simplify, in_avail
4784         doesn't care if there is anything in some putback cell.
4785         * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
4786
4787         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
4788         unused string literals.
4789
4790 2003-04-14  Paolo Carlini  <pcarlini@unitus.it>
4791
4792         * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
4793         _M_out_end, _M_set_indeterminate() does it.
4794
4795 2003-04-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4796
4797         * os/hpux/ctype_inline.h: Replace with gnu-linux version.
4798
4799 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
4800
4801         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
4802         Change basic_streambuf instantiation to "unsigned char".
4803         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
4804
4805 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
4806
4807         Remove _M_buf_size_opt, use directly _M_buf_size instead.
4808         * include/bits/fstream.tcc
4809         (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
4810         references to _M_buf_size_opt.
4811         * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
4812         * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
4813         __bufsize to __in_avail and __size_opt to __buf_size.
4814         * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
4815         * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
4816         * include/std/std_streambuf.h (~basic_streambuf(),
4817         basic_streambuf()): Likewise, remove _M_buf_size_opt member.
4818         * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
4819         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
4820         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
4821         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
4822         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
4823         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
4824         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
4825         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
4826         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
4827         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
4828         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
4829         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
4830
4831 2003-04-12  Paolo Carlini  <pcarlini at unitus dot it>
4832
4833         * include/ext/stdio_filebuf.h
4834         (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
4835         stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
4836         _M_buf_size_opt == 0 only means "not to use an allocated buffer"
4837         since a stack-based buffer is used for small values of the size_t
4838         parameter.
4839         * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
4840         If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
4841         * testsuite/ext/stdio_filebuf_2.cc: New testfile.
4842
4843 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
4844
4845         PR libstdc++/9533
4846         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
4847         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
4848
4849 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
4850
4851         * testsuite/22_locale/locale/cons/3.cc: Split.
4852         * testsuite/22_locale/locale/cons/7222-c.cc: New.
4853         * testsuite/22_locale/locale/cons/7222-env.cc: New.
4854         Check before trying to create a locale from the environment.
4855         * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
4856         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
4857         Adjust includes.
4858
4859 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
4860
4861         * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
4862         locale to construct this hybrid locale, not the global locale.
4863
4864 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
4865
4866         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
4867         instantiation for AIX.
4868         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
4869         * testsuite/25_algorithms/min_max.cc: Same.
4870
4871 2003-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4872
4873         * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
4874         twice.  Always set _M_cfile to 0 when stream was open.
4875
4876 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
4877
4878         Reshuffle 27_io testsuite.  * testsuite/27_io/filebuf.cc,
4879         filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
4880         filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
4881         filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
4882         filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
4883         ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
4884         ifstream_members.cc, instantiations.cc, ios.cc,
4885         ios_base_callbacks.cc, ios_base_members_static-1.tst,
4886         ios_base_members_static.cc, ios_base_storage.cc,
4887         ios_base_types.cc, ios_ctor.cc, ios_init.cc,
4888         ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
4889         iostream.cc, iostream_members.cc, istream.cc,
4890         istream_exception.cc, istream_extractor_char.cc,
4891         istream_extractor_other-1.tst, istream_extractor_other-1.txt,
4892         istream_extractor_other-2.tst, istream_extractor_other.cc,
4893         istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
4894         istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
4895         istream_sentry.cc, istream_unformatted-1.tst,
4896         istream_unformatted-1.txt, istream_unformatted.cc,
4897         istringstream.cc, istringstream_members.cc,
4898         narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
4899         ofstream_members.cc, ostream.cc, ostream_exception.cc,
4900         ostream_fail.cc, ostream_inserter_arith.cc,
4901         ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
4902         ostream_inserter_char.cc, ostream_inserter_other-1.tst,
4903         ostream_inserter_other-2.tst, ostream_inserter_other.cc,
4904         ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
4905         ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
4906         ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
4907         streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
4908         stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
4909         wide_stream_objects.cc, istream_extractor_arith/01.cc,
4910         istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
4911         istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
4912         istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
4913         istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
4914         istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
4915         Split into...
4916         * 27_io/basic_filebuf/1.cc: New.
4917         * 27_io/basic_filebuf/2.cc: New.
4918         * 27_io/basic_filebuf/3.cc: New.
4919         * 27_io/basic_filebuf/4.cc: New.
4920         * 27_io/basic_filebuf/close/char/1.cc: New.
4921         * 27_io/basic_filebuf/close/char/2.cc: New.
4922         * 27_io/basic_filebuf/close/char/3.cc: New.
4923         * 27_io/basic_filebuf/close/char/4879.cc: New.
4924         * 27_io/basic_filebuf/close/char/9964.cc: New.
4925         * 27_io/basic_filebuf/imbue/char/1.cc: New.
4926         * 27_io/basic_filebuf/imbue/char/9322.cc: New.
4927         * 27_io/basic_filebuf/in_avail/char/1.cc: New.
4928         * 27_io/basic_filebuf/is_open/char/1.cc: New.
4929         * 27_io/basic_filebuf/open/char/1.cc: New.
4930         * 27_io/basic_filebuf/open/char/2.cc: New.
4931         * 27_io/basic_filebuf/open/char/3.cc: New.
4932         * 27_io/basic_filebuf/open/char/9507.cc: New.
4933         * 27_io/basic_filebuf/overflow/char/1.cc: New.
4934         * 27_io/basic_filebuf/overflow/char/3599.cc: New.
4935         * 27_io/basic_filebuf/overflow/char/9169.cc: New.
4936         * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
4937         * 27_io/basic_filebuf/overflow/char/9988.cc: New.
4938         * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
4939         * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
4940         * 27_io/basic_filebuf/seekoff/char/1.cc: New.
4941         * 27_io/basic_filebuf/seekoff/char/2.cc: New.
4942         * 27_io/basic_filebuf/seekpos/char/1.cc: New.
4943         * 27_io/basic_filebuf/seekpos/char/2.cc: New.
4944         * 27_io/basic_filebuf/setbuf/char/1.cc: New.
4945         * 27_io/basic_filebuf/setbuf/char/2.cc: New.
4946         * 27_io/basic_filebuf/setbuf/char/3.cc: New.
4947         * 27_io/basic_filebuf/sgetc/char/1.cc: New.
4948         * 27_io/basic_filebuf/sgetn/char/1.cc: New.
4949         * 27_io/basic_filebuf/sgetn/char/2.cc: New.
4950         * 27_io/basic_filebuf/snextc/char/1.cc: New.
4951         * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
4952         * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
4953         * 27_io/basic_filebuf/sputc/char/1.cc: New.
4954         * 27_io/basic_filebuf/sputc/char/1057.cc: New.
4955         * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
4956         * 27_io/basic_filebuf/sputn/char/1.cc: New.
4957         * 27_io/basic_filebuf/sputn/char/1057.cc: New.
4958         * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
4959         * 27_io/basic_filebuf/sungetc/char/1.cc: New.
4960         * 27_io/basic_filebuf/sync/char/1057.cc: New.
4961         * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
4962         * 27_io/basic_filebuf/underflow/char/10097.cc: New.
4963         * 27_io/basic_fstream/1.cc: New.
4964         * 27_io/basic_fstream/2.cc: New.
4965         * 27_io/basic_fstream/3.cc: New.
4966         * 27_io/basic_fstream/4.cc: New.
4967         * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
4968         * 27_io/basic_ifstream/1.cc: New.
4969         * 27_io/basic_ifstream/2.cc: New.
4970         * 27_io/basic_ifstream/3.cc: New.
4971         * 27_io/basic_ifstream/4.cc: New.
4972         * 27_io/basic_ifstream/cons/char/1.cc: New.
4973         * 27_io/basic_ifstream/open/char/1.cc: New.
4974         * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
4975         * 27_io/basic_ios/1.cc: New.
4976         * 27_io/basic_ios/2.cc: New.
4977         * 27_io/basic_ios/3.cc: New.
4978         * 27_io/basic_ios/4.cc: New.
4979         * 27_io/basic_ios/clear/char/1.cc: New.
4980         * 27_io/basic_ios/cons/char/1.cc: New.
4981         * 27_io/basic_ios/cons/char/2.cc: New.
4982         * 27_io/basic_ios/cons/char/3.cc: New.
4983         * 27_io/basic_ios/copyfmt/char/1.cc: New.
4984         * 27_io/basic_ios/copyfmt/char/2.cc: New.
4985         * 27_io/basic_ios/exceptions/char/1.cc: New.
4986         * 27_io/basic_ios/locales/char/1.cc: New.
4987         * 27_io/basic_iostream/1.cc: New.
4988         * 27_io/basic_iostream/2.cc: New.
4989         * 27_io/basic_iostream/3.cc: New.
4990         * 27_io/basic_iostream/4.cc: New.
4991         * 27_io/basic_istream/1.cc: New.
4992         * 27_io/basic_istream/2.cc: New.
4993         * 27_io/basic_istream/3.cc: New.
4994         * 27_io/basic_istream/4.cc: New.
4995         * 27_io/basic_istream/exceptions/char/9561.cc: New.
4996         * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
4997         * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
4998         * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
4999         * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
5000         * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
5001         * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
5002         * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
5003         * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
5004         * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
5005         * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
5006         * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
5007         * 27_io/basic_istream/extractors_character/char/1.cc: New.
5008         * 27_io/basic_istream/extractors_character/char/2.cc: New.
5009         * 27_io/basic_istream/extractors_character/char/3.cc: New.
5010         * 27_io/basic_istream/extractors_character/char/9826.cc: New.
5011         * 27_io/basic_istream/extractors_other/char/1.cc: New.
5012         * 27_io/basic_istream/extractors_other/char/2.cc: New.
5013         * 27_io/basic_istream/extractors_other/char/3.cc: New.
5014         * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
5015         * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
5016         * 27_io/basic_istream/get/char/1.cc: New.
5017         * 27_io/basic_istream/get/char/2.cc: New.
5018         * 27_io/basic_istream/getline/char/1.cc: New.
5019         * 27_io/basic_istream/getline/char/2.cc: New.
5020         * 27_io/basic_istream/getline/char/3.cc: New.
5021         * 27_io/basic_istream/ignore/char/1.cc: New.
5022         * 27_io/basic_istream/ignore/char/6360.cc: New.
5023         * 27_io/basic_istream/ignore/char/7220.cc: New.
5024         * 27_io/basic_istream/peek/char/1.cc: New.
5025         * 27_io/basic_istream/peek/char/6414.cc: New.
5026         * 27_io/basic_istream/putback/char/1.cc: New.
5027         * 27_io/basic_istream/read/char/1.cc: New.
5028         * 27_io/basic_istream/read/char/2.cc: New.
5029         * 27_io/basic_istream/read/char/3.cc: New.
5030         * 27_io/basic_istream/readsome/char/6746-1.cc: New.
5031         * 27_io/basic_istream/readsome/char/6746-2.cc: New.
5032         * 27_io/basic_istream/readsome/char/8258.cc: New.
5033         * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
5034         * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
5035         * 27_io/basic_istream/seekg/char/8348-1.cc: New.
5036         * 27_io/basic_istream/seekg/char/8348-2.cc: New.
5037         * 27_io/basic_istream/seekg/char/fstream.cc: New.
5038         * 27_io/basic_istream/seekg/char/sstream.cc: New.
5039         * 27_io/basic_istream/sentry/char/1.cc: New.
5040         * 27_io/basic_istream/sentry/char/2.cc: New.
5041         * 27_io/basic_istream/sentry/char/3.cc: New.
5042         * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
5043         * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
5044         * 27_io/basic_istream/tellg/char/1.cc: New.
5045         * 27_io/basic_istream/tellg/char/8348.cc: New.
5046         * 27_io/basic_istream/tellg/char/fstream.cc: New.
5047         * 27_io/basic_istream/tellg/char/sstream.cc: New.
5048         * 27_io/basic_istream/ws/char/1.cc: New.
5049         * 27_io/basic_istringstream/1.cc: New.
5050         * 27_io/basic_istringstream/2.cc: New.
5051         * 27_io/basic_istringstream/3.cc: New.
5052         * 27_io/basic_istringstream/4.cc: New.
5053         * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
5054         * 27_io/basic_istringstream/str/char/1.cc: New.
5055         * 27_io/basic_ofstream/1.cc: New.
5056         * 27_io/basic_ofstream/2.cc: New.
5057         * 27_io/basic_ofstream/3.cc: New.
5058         * 27_io/basic_ofstream/4.cc: New.
5059         * 27_io/basic_ofstream/cons/char/2.cc: New.
5060         * 27_io/basic_ofstream/open/char/1.cc: New.
5061         * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
5062         * 27_io/basic_ostream/1.cc: New.
5063         * 27_io/basic_ostream/2.cc: New.
5064         * 27_io/basic_ostream/3.cc: New.
5065         * 27_io/basic_ostream/4.cc: New.
5066         * 27_io/basic_ostream/cons/char/9827.cc: New.
5067         * 27_io/basic_ostream/endl/char/1.cc: New.
5068         * 27_io/basic_ostream/ends/char/1.cc: New.
5069         * 27_io/basic_ostream/ends/char/2.cc: New.
5070         * 27_io/basic_ostream/exceptions/char/9561.cc: New.
5071         * 27_io/basic_ostream/flush/char/1.cc: New.
5072         * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
5073         * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
5074         * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
5075         * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
5076         * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
5077         * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
5078         * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
5079         * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
5080         * 27_io/basic_ostream/inserters_character/char/1.cc: New.
5081         * 27_io/basic_ostream/inserters_character/char/2.cc: New.
5082         * 27_io/basic_ostream/inserters_character/char/3.cc: New.
5083         * 27_io/basic_ostream/inserters_character/char/4.cc: New.
5084         * 27_io/basic_ostream/inserters_character/char/5.cc: New.
5085         * 27_io/basic_ostream/inserters_character/char/6.cc: New.
5086         * 27_io/basic_ostream/inserters_character/char/8.cc: New.
5087         * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
5088         * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
5089         * 27_io/basic_ostream/inserters_other/char/1.cc: New.
5090         * 27_io/basic_ostream/inserters_other/char/2.cc: New.
5091         * 27_io/basic_ostream/inserters_other/char/3.cc: New.
5092         * 27_io/basic_ostream/inserters_other/char/4.cc: New.
5093         * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
5094         * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
5095         * 27_io/basic_ostream/sentry/char/1.cc: New.
5096         * 27_io/basic_ostream/sentry/char/2.cc: New.
5097         * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
5098         * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
5099         * 27_io/basic_ostream/tellp/char/1.cc: New.
5100         * 27_io/basic_ostream/tellp/char/2.cc: New.
5101         * 27_io/basic_ostringstream/1.cc: New.
5102         * 27_io/basic_ostringstream/2.cc: New.
5103         * 27_io/basic_ostringstream/3.cc: New.
5104         * 27_io/basic_ostringstream/4.cc: New.
5105         * 27_io/basic_ostringstream/cons/char/3.cc: New.
5106         * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
5107         * 27_io/basic_ostringstream/str/char/1.cc: New.
5108         * 27_io/basic_ostringstream/str/char/2.cc: New.
5109         * 27_io/basic_streambuf/1.cc: New.
5110         * 27_io/basic_streambuf/2.cc: New.
5111         * 27_io/basic_streambuf/3.cc: New.
5112         * 27_io/basic_streambuf/cons/char/1.cc: New.
5113         * 27_io/basic_streambuf/imbue/char/1.cc: New.
5114         * 27_io/basic_streambuf/imbue/char/9322.cc: New.
5115         * 27_io/basic_streambuf/overflow/char/1.cc: New.
5116         * 27_io/basic_streambuf/overflow/char/2.cc: New.
5117         * 27_io/basic_streambuf/overflow/char/3599.cc: New.
5118         * 27_io/basic_streambuf/sgetc/char/1.cc: New.
5119         * 27_io/basic_streambuf/sgetn/char/1.cc: New.
5120         * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
5121         * 27_io/basic_streambuf/sputc/char/1057.cc: New.
5122         * 27_io/basic_streambuf/sputn/char/1.cc: New.
5123         * 27_io/basic_streambuf/sputn/char/1057.cc: New.
5124         * 27_io/basic_streambuf/sync/char/1057.cc: New.
5125         * 27_io/basic_stringbuf/1.cc: New.
5126         * 27_io/basic_stringbuf/2.cc: New.
5127         * 27_io/basic_stringbuf/3.cc: New.
5128         * 27_io/basic_stringbuf/4.cc: New.
5129         * 27_io/basic_stringbuf/5.cc: New.
5130         * 27_io/basic_stringbuf/imbue/char/1.cc: New.
5131         * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
5132         * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
5133         * 27_io/basic_stringbuf/overflow/char/2.cc: New.
5134         * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
5135         * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
5136         * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
5137         * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
5138         * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
5139         * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
5140         * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
5141         * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
5142         * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
5143         * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
5144         * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
5145         * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
5146         * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
5147         * 27_io/basic_stringbuf/snextc/char/1.cc: New.
5148         * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
5149         * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
5150         * 27_io/basic_stringbuf/sputc/char/1.cc: New.
5151         * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
5152         * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
5153         * 27_io/basic_stringbuf/sputn/char/1.cc: New.
5154         * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
5155         * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
5156         * 27_io/basic_stringbuf/str/char/1.cc: New.
5157         * 27_io/basic_stringbuf/str/char/2.cc: New.
5158         * 27_io/basic_stringbuf/str/char/3.cc: New.
5159         * 27_io/basic_stringbuf/str/char/3955.cc: New.
5160         * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
5161         * 27_io/basic_stringbuf/sync/char/1057.cc: New.
5162         * 27_io/basic_stringstream/1.cc: New.
5163         * 27_io/basic_stringstream/2.cc: New.
5164         * 27_io/basic_stringstream/3.cc: New.
5165         * 27_io/basic_stringstream/4.cc: New.
5166         * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
5167         * 27_io/basic_stringstream/str/char/1.cc: New.
5168         * 27_io/basic_stringstream/str/char/2.cc: New.
5169         * 27_io/basic_stringstream/str/char/3.cc: New.
5170         * 27_io/basic_stringstream/str/char/4.cc: New.
5171         * 27_io/fpos/1.cc: New.
5172         * 27_io/fpos/2.cc: New.
5173         * 27_io/fpos/3.cc: New.
5174         * 27_io/ios_base/callbacks/1.cc: New.
5175         * 27_io/ios_base/state/1.cc: New.
5176         * 27_io/ios_base/storage/1.cc: New.
5177         * 27_io/ios_base/storage/2.cc: New.
5178         * 27_io/ios_base/storage/3.cc: New.
5179         * 27_io/ios_base/sync_with_stdio/1.cc: New.
5180         * 27_io/ios_base/sync_with_stdio/2.cc: New.
5181         * 27_io/manipulators/adjustfield/char/1.cc: New.
5182         * 27_io/manipulators/adjustfield/char/2.cc: New.
5183         * 27_io/manipulators/basefield/char/1.cc: New.
5184         * 27_io/manipulators/standard/char/1.cc: New.
5185         * 27_io/manipulators/standard/char/2.cc: New.
5186         * 27_io/objects/char/1.cc: New.
5187         * 27_io/objects/char/2.cc: New.
5188         * 27_io/objects/char/2523-1_xin.cc: New.
5189         * 27_io/objects/char/2523-1_xin.in: New.
5190         * 27_io/objects/char/2523-2_xin.cc: New.
5191         * 27_io/objects/char/2523-2_xin.in: New.
5192         * 27_io/objects/char/3045.cc: New.
5193         * 27_io/objects/char/3647.cc: New.
5194         * 27_io/objects/char/3_xin.cc: New.
5195         * 27_io/objects/char/3_xin.in: New.
5196         * 27_io/objects/char/4_xin.cc: New.
5197         * 27_io/objects/char/4_xin.in: New.
5198         * 27_io/objects/char/5268.cc: New.
5199         * 27_io/objects/char/5280_xin.cc: New.
5200         * 27_io/objects/char/5280_xin.in: New.
5201         * 27_io/objects/char/6548_xin.cc: New.
5202         * 27_io/objects/char/6548_xin.in: New.
5203         * 27_io/objects/char/6648-1_xin.cc: New.
5204         * 27_io/objects/char/6648-1_xin.in: New.
5205         * 27_io/objects/char/6648-2_xin.cc: New.
5206         * 27_io/objects/char/6648-2_xin.in: New.
5207         * 27_io/objects/char/7744_xin.cc: New.
5208         * 27_io/objects/char/7744_xin.in: New.
5209         * 27_io/objects/wchar_t/1.cc: New.
5210         * 27_io/types/1.cc: New.
5211         * 27_io/types/2.cc: New.
5212         * data/filebuf_members-1.tst: New.
5213         * data/filebuf_members-1.txt: New.
5214         * data/filebuf_virtuals-1.tst: New.
5215         * data/filebuf_virtuals-1.txt: New.
5216         * data/filebuf_virtuals-2.tst: New.
5217         * data/filebuf_virtuals-3.tst: New.
5218         * data/ifstream_members-1.tst: New.
5219         * data/ifstream_members-1.txt: New.
5220         * data/ios_base_members_static-1.tst: New.
5221         * data/istream_extractor_other-1.tst: New.
5222         * data/istream_extractor_other-1.txt: New.
5223         * data/istream_extractor_other-2.tst: New.
5224         * data/istream_seeks-1.tst: New.
5225         * data/istream_seeks-1.txt: New.
5226         * data/istream_seeks-2.tst: New.
5227         * data/istream_seeks-3.tst: New.
5228         * data/istream_unformatted-1.tst: New.
5229         * data/istream_unformatted-1.txt: New.
5230         * data/ofstream_members-1.tst: New.
5231         * data/ostream_inserter_char-1.tst: New.
5232         * data/ostream_inserter_char-1.txt: New.
5233         * data/ostream_inserter_other-1.tst: New.
5234         * data/ostream_inserter_other-2.tst: New.
5235         * data/ostream_seeks-1.tst: New.
5236
5237 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
5238
5239         * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
5240         requirement that __mode must be strict input or output.
5241
5242         * include/std/std_streambuf.h (basic_streambuf::setp): Set
5243         _M_out_lim.
5244
5245         * include/std/std_sstream.h (basic_strinbuf::str): Zero length
5246         output string shouldn't core.
5247         (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
5248         type.
5249         * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
5250
5251         * include/bits/istream.tcc (basic_istream::putback): Set gcount to
5252         zero.
5253
5254 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
5255
5256         * testsuite/data: New directory.
5257         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
5258         to copy files from the testsuite data directory.
5259         (libstdc++-v3-list-sourcefiles): Add another test list filter, for
5260         testfiles containing _xin, which now means this is an interactive
5261         test and should be run with the interactive dejagnu hooks.
5262         * testsuite/Makefile.am: Remove testsuite_* files.
5263         * testsuite/Makefile.in: Regenerate.
5264
5265 2003-04-09  Zack Weinberg  <zack@codesourcery.com>
5266
5267         * docs/html/install.html: Document complete list of locales
5268         required by test suite.  Document procedure for installing
5269         said locales under Debian.  Solicit instructions for other
5270         operating systems.
5271
5272 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
5273
5274         * include/bits/sstream.tcc (overflow): Make sure operands of min
5275         and max have the same type.
5276
5277 2003-04-04  Jerry Quinn  <jlquinn@optonline.net>
5278
5279         PR libstdc++/10276
5280         * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
5281         initialization.
5282
5283 2003-03-31  Paolo Carlini  <pcarlini@unitus.it>
5284
5285         * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
5286         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
5287         Don't set _M_out_end.
5288         (basic_filebuf::overflow): Replace _M_out_buf_size() with
5289         this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
5290         * include/bits/sstream.tcc (basic_stringbuf::overflow):
5291         Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
5292         * include/bits/streambuf.tcc (basic_streambuf::sputc):
5293         Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
5294         (basic_streambuf::xsputn): Replace _M_out_buf_size() with
5295         _M_out_end - _M_out_cur.
5296         (__copy_streambufs): Likewise.
5297         * include/std/std_fstream.h (_M_set_determinate): Set
5298         _M_out_end here.
5299
5300 2003-03-30  Paolo Carlini  <pcarlini@unitus.it>
5301
5302         * include/bits/fstream.tcc (basic_filebuf::showmanyc,
5303         _M_convert_to_external, _M_really_overflow, seekoff): Fix
5304         test for synced buffer.
5305         * include/std/std_fstream.h (sync): Likewise.
5306         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
5307         basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
5308
5309 2003-03-28  Benjamin Kosnik  <bkoz@redhat.com>
5310
5311         * include/std/std_sstream.h (basic_istringstream): Adjust
5312         initialization.
5313         (basic_ostringstream): Same.
5314         (basic_stringstream): Same.
5315         * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
5316         (basic_ofstream): Same.
5317         (basic_fstream): Same.
5318         * include/std/std_ostream.h (basic_ostrem): Add protected ctor
5319         that does not call init.
5320         * include/std/std_istream.h (basic_istream): Same.
5321         (basic_iostream): Construct istream, ostream uninitialized, use
5322         init to initialize just once. Add protected ctor that does not
5323         call init.
5324
5325 2003-03-28  Paolo Carlini  <pcarlini@unitus.it>
5326             Nathan Myers  <ncm@cantrip.org>
5327
5328         PR libstdc++/9533
5329         * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
5330         call underflow().
5331         (basic_filebuf<>::showmanyc): Use the information provided
5332         by codecvt and __basic_file<>::showmanyc_helper to implement
5333         a non-trivial showmanyc.
5334         * config/io/basic_file_stdio.h
5335         (__basic_file<>::showmanyc_helper): New, declare.
5336         * config/io/basic_file_stdio.cc
5337         (__basic_file<>::showmanyc_helper): Define.
5338         (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
5339         (__basic_file<char>::open): Don't call fcntl().
5340         * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
5341         GLIBCPP_CHECK_POLL): New macros.
5342         * configure.in: Call here.
5343         * acconfig.h: Add #undefs for the corresponding symbols.
5344         * aclocal.m4: Regenerate.
5345         * configure: Regenerate.
5346         * config.h.in: Regenerate.
5347
5348 2003-03-24  Benjamin Kosnik  <bkoz@redhat.com>
5349
5350         * config/linker-map.gnu: Remove string export restrictions.
5351
5352 2003-03-24  Paolo Carlini  <pcarlini@unitus.it>
5353
5354         * testsuite/21_strings/basic_string/find/char/1.cc: Remove
5355         find_first_of, find_last_of and find_last_not_of tests.
5356         * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
5357         tests here, new file.
5358         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
5359         remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
5360         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
5361         wchar_t find_first_of tests here, new file.
5362         * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
5363         tests here.
5364         * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
5365         tests here.
5366         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
5367         wchar_t find_last_of tests here.
5368         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
5369         wchar_t find_last_not_of tests here.
5370
5371 2003-03-22  Loren J. Rittle  <ljrittle@acm.org>
5372
5373         * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
5374         Correct return value.
5375
5376 2003-03-21  Jerry Quinn  <jlquinn@optonline.net>
5377
5378         PR libstdc++/5730
5379         * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
5380         * include/std/std_complex.h (norm):  Use faster,
5381         less accurate computation for builtin float types under --fast-math.
5382
5383 2003-03-21  Magnus Fromreide  <gnats@magfr.user.lysator.liu.se>
5384
5385         * testsuite/testsuite_hooks.h: Fix warning nits.
5386
5387 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
5388
5389         * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
5390         Only .set mips2 for the o32 ABI.
5391
5392 2003-03-19  Paolo Carlini  <pcarlini@unitus.it>
5393
5394         * testsuite/21_strings/char_traits/requirements/char/1.cc:
5395         Test char not wchar_t.
5396
5397 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
5398
5399         * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
5400         Correct size, taking into account sizeof(wchar_t).
5401
5402 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
5403
5404         Reshuffle 21_strings testsuite.
5405         * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
5406         assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
5407         element_access.cc, operations.cc, char_traits_requirements.cc,
5408         find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
5409         compare.cc, inserters_extractors.cc, substr.cc: Split up, add
5410         wchar_t tests as follows.
5411         * 21_strings/basic_string/append/char/1.cc: New.
5412         * 21_strings/basic_string/append/wchar_t/1.cc: New.
5413         * 21_strings/basic_string/assign/char/1.cc: New.
5414         * 21_strings/basic_string/assign/char/2.cc: New.
5415         * 21_strings/basic_string/assign/char/3.cc: New.
5416         * 21_strings/basic_string/assign/wchar_t/1.cc: New.
5417         * 21_strings/basic_string/assign/wchar_t/2.cc: New.
5418         * 21_strings/basic_string/assign/wchar_t/3.cc: New.
5419         * 21_strings/basic_string/capacity/1.cc: New.
5420         * 21_strings/basic_string/capacity/char/1.cc: New.
5421         * 21_strings/basic_string/capacity/char/2.cc: New.
5422         * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
5423         * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
5424         * 21_strings/basic_string/compare/char/1.cc: New.
5425         * 21_strings/basic_string/compare/wchar_t/1.cc: New.
5426         * 21_strings/basic_string/cons/char/1.cc: New.
5427         * 21_strings/basic_string/cons/char/2.cc: New.
5428         * 21_strings/basic_string/cons/char/3.cc: New.
5429         * 21_strings/basic_string/cons/char/4.cc: New.
5430         * 21_strings/basic_string/cons/char/5.cc: New.
5431         * 21_strings/basic_string/cons/wchar_t/1.cc: New.
5432         * 21_strings/basic_string/cons/wchar_t/2.cc: New.
5433         * 21_strings/basic_string/cons/wchar_t/3.cc: New.
5434         * 21_strings/basic_string/cons/wchar_t/4.cc: New.
5435         * 21_strings/basic_string/cons/wchar_t/5.cc: New.
5436         * 21_strings/basic_string/element_access/char/1.cc: New.
5437         * 21_strings/basic_string/element_access/char/2.cc: New.
5438         * 21_strings/basic_string/element_access/char/3.cc: New.
5439         * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
5440         * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
5441         * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
5442         * 21_strings/basic_string/find/char/1.cc: New.
5443         * 21_strings/basic_string/find/wchar_t/1.cc: New.
5444         * 21_strings/basic_string/insert/char/1.cc: New.
5445         * 21_strings/basic_string/insert/char/2.cc: New.
5446         * 21_strings/basic_string/insert/wchar_t/1.cc: New.
5447         * 21_strings/basic_string/insert/wchar_t/2.cc: New.
5448         * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
5449         * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
5450         * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
5451         * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
5452         * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
5453         * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
5454         * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
5455         * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
5456         * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
5457         * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
5458         * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
5459         * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
5460         * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
5461         * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
5462         * 21_strings/basic_string/operators/char/1.cc: New.
5463         * 21_strings/basic_string/operators/char/2.cc: New.
5464         * 21_strings/basic_string/operators/wchar_t/1.cc: New.
5465         * 21_strings/basic_string/operators/wchar_t/2.cc: New.
5466         * 21_strings/basic_string/replace/char/1.cc: New.
5467         * 21_strings/basic_string/replace/char/2.cc: New.
5468         * 21_strings/basic_string/replace/char/3.cc: New.
5469         * 21_strings/basic_string/replace/char/4.cc: New.
5470         * 21_strings/basic_string/replace/char/5.cc: New.
5471         * 21_strings/basic_string/replace/wchar_t/1.cc: New.
5472         * 21_strings/basic_string/replace/wchar_t/2.cc: New.
5473         * 21_strings/basic_string/replace/wchar_t/3.cc: New.
5474         * 21_strings/basic_string/replace/wchar_t/4.cc: New.
5475         * 21_strings/basic_string/replace/wchar_t/5.cc: New.
5476         * 21_strings/basic_string/rfind/char/1.cc: New.
5477         * 21_strings/basic_string/rfind/char/2.cc: New.
5478         * 21_strings/basic_string/rfind/char/3.cc: New.
5479         * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
5480         * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
5481         * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
5482         * 21_strings/basic_string/substr/char/1.cc: New.
5483         * 21_strings/basic_string/substr/wchar_t/1.cc: New.
5484         * 21_strings/c_strings/char/1.cc: New.
5485         * 21_strings/c_strings/char/2.cc: New.
5486         * 21_strings/c_strings/wchar_t/1.cc: New.
5487         * 21_strings/c_strings/wchar_t/2.cc: New.
5488         * 21_strings/char_traits/requirements/char/1.cc: New.
5489         * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
5490         * 21_strings/char_traits/typedefs/char/1.cc: New.
5491
5492 2003-03-17  Paolo Carlini  <pcarlini@unitus.it>
5493             Petur Runolfsson  <peturr02@ru.is>
5494
5495         PR libstdc++/10097
5496         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
5497         basic_filebuf<wchar_t>::_M_underflow_common):
5498         if (gptr() < egptr()) return *gptr().
5499         * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
5500
5501         * testsuite/27_io/filebuf_members.cc (test_04): Minor
5502         changes: unlink fifo before making it, fix spelling error.
5503
5504 2003-03-17  Benjamin Kosnik  <bkoz@redhat.com>
5505
5506         * testsuite/Makefile.am (CLEANFILES): Add tmp*.
5507         * testsuite/Makefile.in: Regenerate.
5508         * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
5509         Cleanups.
5510
5511 2003-03-17  Petur Runolfsson  <peturr02@ru.is>
5512
5513         PR libstdc++/9964
5514         * include/bits/fstream.tcc (basic_filebuf::close):
5515         Always close file, even when write fails.
5516         * testsuite/27_io/filebuf_members.cc (test_07):  New test.
5517
5518 2003-03-17  Danny Smith  <dannysmith@users.sourceforge.net>
5519
5520         * libsupc++/Makefile.am (C_COMPILE): Remove.
5521         (LTCOMPILE): Likewise.
5522         * libsupc++/Makefile.in: Regenerate.
5523
5524 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
5525
5526         * testsuite/23_containers/bitset_members.cc: Add test variable.
5527         * testsuite/23_containers/map_insert.cc: Same.
5528         * testsuite/22_locale/ctype/cons/char/1.cc: Same.
5529         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
5530         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
5531         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
5532         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
5533         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
5534         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
5535         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
5536         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
5537         * testsuite/27_io/istream_exception.cc: Same.
5538         * testsuite/27_io/filebuf_virtuals.cc: Same.
5539         * testsuite/27_io/stringbuf_virtuals.cc: Same.
5540         * testsuite/27_io/ostream_inserter_arith.cc: Same.
5541         * testsuite/26_numerics/valarray_operators.cc: Same.
5542         * testsuite/26_numerics/slice.cc: Same.
5543         * testsuite/26_numerics/slice_array_assignment.cc: Same.
5544         * testsuite/24_iterators/istream_iterator.cc: Same.
5545         * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
5546
5547 2003-03-14  Petur Runolfsson  <peturr02@ru.is>
5548
5549         PR libstdc++/9581
5550         PR libstdc++/9870
5551         * config/locale/generic/ctype_members.cc,
5552         * config/locale/gnu/ctype_members.cc
5553         (ctype<wchar_t>::do_widen(char)):  Cast argument to
5554         unsigned char before passing to btowc.
5555         (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
5556         Convert characters with btowc instead of mbsrtowcs.
5557         (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
5558         char, char*):
5559         Convert characters with wctob instead of wcsrtombs.
5560         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc:  New test.
5561         * testsuite/22_locale/ctype/widen/wchar_t/2.cc:  New test.
5562         * testsuite/22_locale/ctype/widen/wchar_t/3.cc:  New test.
5563
5564 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
5565
5566         * include/stdc++.h: New.
5567         * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
5568         * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
5569         * include/Makefile.in: Regenerate.
5570         * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
5571         (--cxxflags): Put -g -O2 here.
5572         * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
5573
5574 2003-03-14  Loren J. Rittle  <ljrittle@acm.org>
5575
5576         * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
5577         missing named locale.
5578
5579 2003-03-14  Andreas Schwab  <schwab@suse.de>
5580
5581         * configure.in: Only append to makefiles that are newly created to
5582         avoid multiple multi-do/multi-clean rules.
5583         * configure: Rebuilt.
5584
5585 2003-03-13  Jonathan Wakely  <redi@gcc.gnu.org>
5586
5587         * docs/html/configopts.html, docs/html/documentation.html,
5588         docs/html/explanations.html, docs/html/install.html,
5589         docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
5590         invalid XHTML and make page header style consistent.
5591
5592 2003-03-12  Jonathan Wakely  <redi@gcc.gnu.org>
5593
5594         * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
5595         * docs/html/faq/index.txt: Regenerate.
5596         * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
5597
5598 2003-03-12  Andreas Schwab  <schwab@suse.de>
5599
5600         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
5601         glibcpp_toolexeclibdir.
5602         * aclocal.m4, configure: Rebuilt.
5603
5604 2003-03-11  Jonathan Wakely  <redi@gcc.gnu.org>
5605
5606         * docs/html/faq/index.html: Update text about location of headers.
5607         * docs/html/faq/index.txt: Regenerate.
5608
5609 2003-03-11  Carlo Wood  <carlo@alinoe.com>
5610
5611         * include/bits/demangle.h: Prepend accessors of
5612         class qualifier with 'get_' in order to fix warnings
5613         when compiling with -Wshadow.
5614
5615 2003-03-11  Loren J. Rittle  <ljrittle@acm.org>
5616
5617         * config/os/bsd/freebsd/ctype_inline.h:  Support _M_table
5618         when so installed.
5619         * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
5620
5621         * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
5622         report lack of setenv().
5623
5624 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
5625
5626         * config/io/basic_file_stdio.cc: include <unistd.h>.
5627
5628 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
5629             Nathan Myers  <ncm@cantrip.org>
5630
5631         PR libstdc++/7744
5632         * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
5633         seekoff, seekpos): Add a boolean parameter __stdio.
5634         * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
5635         seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
5636         fseek/ftell, respectively), otherwise read (write, lseek, lseek,
5637         respectively).
5638         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
5639         _M_really_overflow, seekoff): Use the boolean parameter in the calls.
5640         * include/std/std_fstream.h (sync): Likewise.
5641         * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
5642         * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
5643         libstdc++/8399 commit involving isatty(0).
5644         * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
5645         (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
5646         * configure.in: Remove call.
5647         * aclocal.m4: Regenerate.
5648         * config.h.in: Regenerate.
5649         * configure: Regenerate.
5650         * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
5651
5652 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
5653
5654         PR libstdc++/9988
5655         * include/bits/fstream.tcc (overflow): don't write EOF to file.
5656         * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
5657
5658 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
5659
5660         PR libstdc++/9561
5661         * include/bits/basic_ios.h (_M_setstate): New.
5662         * include/bits/ostream.tcc (operator<<): Use it.
5663         * include/bits/istream.tcc (operator>>): Use it.
5664         * include/std/std_ostream.h (operator<<): Make friends.
5665         * include/std/std_istream.h (operator>>): Make friends.
5666         * testsuite/27_io/ostream_exception.cc,
5667         testsuite/27_io/istream_exception.cc: New tests.
5668
5669 2003-03-08  Benjamin Kosnik  <bkoz@redhat.com>
5670
5671         * include/bits/locale_facets.tcc: Fix typo.
5672
5673 2003-03-08  Loren J. Rittle  <ljrittle@acm.org>
5674
5675         * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
5676
5677         * config/locale/generic/c_locale.cc
5678         (locale::facet::_S_create_c_locale): Throw runtime exception when
5679         unsupported language is specified.
5680         * testsuite/testsuite_hooks.h
5681         (run_test_wrapped_generic_locale_exception_catcher): New function.
5682         * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
5683         Suppress runtime exception thrown by generic implementation.
5684         (run_tests_wrapped_env): Likewise.
5685         (run_test_wrapped_generic_locale_exception_catcher): New function.
5686         * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
5687         * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
5688         * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
5689         * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
5690         * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
5691         * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
5692         * testsuite/22_locale/collate_byname/1.cc: New test wrap.
5693         * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
5694         * testsuite/22_locale/facet/2.cc: New test wrap.
5695         * testsuite/22_locale/locale/cons/4.cc: New test wrap.
5696         * testsuite/22_locale/locale/cons/5.cc: New test wrap.
5697         * testsuite/22_locale/locale/cons/7.cc: New test wrap.
5698         * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
5699         * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
5700         * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
5701         * testsuite/22_locale/messages_byname/1.cc: New test wrap.
5702         * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
5703         * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
5704         * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
5705         * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
5706         * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
5707         * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
5708         * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
5709         * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
5710         * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
5711         * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
5712         * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
5713         * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
5714         * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
5715         * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
5716         * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
5717         * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
5718         * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
5719         * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
5720         * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
5721         * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
5722         * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
5723         * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
5724         * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
5725         * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
5726         * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
5727         * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
5728         * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
5729         * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
5730         * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
5731         * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
5732         * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
5733         * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
5734         * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
5735         * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
5736         * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
5737         * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
5738         * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
5739         * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
5740         * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
5741         * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
5742         * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
5743         * testsuite/27_io/ios_members.cc: New test wrap.
5744         * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
5745         New test wrap.
5746         * testsuite/27_io/streambuf_members.cc: New test wrap.
5747         * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
5748
5749 2003-03-08  Paolo Carlini <pcarlini@unitus.it>
5750             Petur Runolfsson  <peturr02@ru.is>
5751
5752         PR libstdc++/9424
5753         * include/bits/streambuf.tcc (__copy_streambufs): Use
5754         sgetn-sputn only when sputn cannot fail, otherwise fall back
5755         to safe snextc-sputc.
5756         * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
5757
5758 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
5759
5760         * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
5761         locale cache for truename and falsename.
5762
5763 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
5764
5765         * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
5766         _M_word_size initialization.
5767
5768 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
5769
5770         * include/bits/fstream.tcc (_M_convert_to_external):
5771         Set __elen to zero if codecvt::out eventually fails.
5772
5773 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
5774
5775         PR libstdc++/9182
5776         * include/bits/fstream.tcc (_M_really_overflow): Check
5777         for _M_convert_to_external possible failures.
5778         * include/std/std_fstream.h (sync): Check _M_really_overflow
5779         return value and return -1 in case of failure.
5780         * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
5781
5782 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
5783
5784         PR libstdc++/9826
5785         * include/bits/istream.tcc (operator>>(_CharT*),
5786         operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
5787         * testsuite/27_io/stringstream.cc (test02): Add.
5788
5789         * include/bits/istream.tcc (operator>>(_CharT*)):
5790         Assign a char_type to *__s.
5791
5792 2003-03-07  Petur Runolfsson  <peturr02@ru.is>
5793
5794         PR libstdc++/9817
5795         * include/bits/locale_facets.tcc
5796         (collate::do_compare, collate::do_transform):
5797         Handle nul characters in input.
5798         * testsuite/22_locale/collate/compare/char/3.cc:  New test.
5799         * testsuite/22_locale/collate/compare/wchar_t/3.cc:  New test.
5800         * testsuite/22_locale/collate/transform/char/3.cc:  New test.
5801         * testsuite/22_locale/collate/transform/wchar_t/3.cc:  New test.
5802
5803 2003-03-07  Jerry Quinn  <jlquinn@optonline.net>
5804
5805         * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
5806         sputn fails.
5807         * testsuite/27_io/ostream_fail.cc: New test.
5808
5809 2003-03-07  Matthias Klose  <doko@debian.org>
5810
5811         * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
5812         FLAGS_TO_PASS: Set to AM_MAKEFLAGS
5813         * Makefile.in: Regenerate.
5814         * libsupc++/Makefile.am: Express glibcppinstalldir in terms
5815         of gxx_include_dir.
5816         AM_MAKEFLAGS: Pass gxx_include_dir.
5817         * libsupc++/Makefile.in: Regenerate.
5818
5819 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
5820
5821         * testsuite/27_io/ios_base_storage.cc (test02): Set exception
5822         mask.  Test setting small-numbered pword and iword slots.  Test
5823         behavior at limit of numeric_limits::max.  Check that values are
5824         still good after failures.
5825
5826 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
5827
5828         * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
5829         (ios_base::ios_base): Set _M_word, _M_word_size.
5830         (ios_base::~ios_base): Remove redundant test.
5831         * testsuite/27_io/ios_base_storage.cc (test03): New.
5832
5833 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
5834
5835         * src/strstream.cc, include/bits/basic_string.tcc: Remove
5836         incorrect whitespace added in my previous change.
5837
5838 2003-03-05  Carlo Wood  <carlo@alinoe.com>
5839
5840         * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
5841         _S_initialized() in order to allow debugging libraries to detect
5842         when the std streams are initialized from an overloaded operator
5843         new.
5844
5845 2003-03-05  Benjamin Kosnik  <bkoz@redhat.com>
5846
5847         * libsupc++/demangle.h: Move to..
5848         * include/bits/demangle.h: ...here.
5849         * src/demangle.cc: Adjust include.
5850         * include/Makefile.am (bits_headers): Add.
5851         * include/Makefile.in: Regenerate.
5852
5853 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
5854
5855         * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
5856
5857         * config/linker-map.gnu: Filter typeinfo and vtable info.
5858
5859 2003-03-04  Jerry Quinn  <jlquinn@optonline.net>
5860
5861         * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
5862         new failure.  Throw exception if badbit and exception mask when ix
5863         >= numeric_limits<int>::max().
5864
5865 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
5866
5867         * src/strstream.cc (strstreambuf::overflow): Make sure operands of
5868         min and max have the same type.
5869         * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
5870
5871 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
5872
5873         * include/Makefile.am (allstamps): Remove stamp-std-precompile.
5874         * include/Makefile.in: Regenerate.
5875
5876 2003-03-03  Benjamin Kosnik  <bkoz@redhat.com>
5877
5878         * testsuite/abi_check.cc (report_symbol_info): Add version info.
5879
5880         * config/linker-map.gnu: Hide more stuff.
5881         * include/Makefile.am: Cleanups.
5882         * include/Makefile.in: Regenerate.
5883
5884 2003-02-27  Jerry Quinn  <jlquinn@optonline.net>
5885
5886         * config/locale/generic/messages_members.h (messages::messages):
5887         Remove name from unused parameter.
5888
5889 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
5890
5891         * src/Makefile.am (sources): Add demangle.cc.
5892         (demangle.o): Add.
5893         (demangle.lo): Add.
5894         * src/Makefile.in: Regenerate.
5895         * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
5896         * libsupc++/Makefile.in: Regenerate.
5897
5898         * testsuite/testsuite_hooks.h
5899         (__gnu_cxx_test::verify_demangle): New.
5900         * testsuite/testsuite_hooks.cc: Define.
5901
5902 2003-02-27  Carlo Wood  <carlo@alinoe.com>
5903
5904         * src/demangle.cc: New.
5905         * libsupc++/demangle.h: New.
5906
5907 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
5908             Carlo Wood  <carlo@alinoe.com>
5909
5910         * testsuite/demangle/abi_examples/01.cc: New.
5911         * testsuite/demangle/abi_examples/02.cc: New.
5912         * testsuite/demangle/abi_examples/03.cc: New.
5913         * testsuite/demangle/abi_examples/04.cc: New.
5914         * testsuite/demangle/abi_examples/05.cc: New.
5915         * testsuite/demangle/abi_examples/06.cc: New.
5916         * testsuite/demangle/abi_examples/07.cc: New.
5917         * testsuite/demangle/abi_examples/08.cc: New.
5918         * testsuite/demangle/abi_examples/09.cc: New.
5919         * testsuite/demangle/abi_examples/10.cc: New.
5920         * testsuite/demangle/abi_examples/11.cc: New.
5921         * testsuite/demangle/abi_examples/12.cc: New.
5922         * testsuite/demangle/abi_examples/13.cc: New.
5923         * testsuite/demangle/abi_examples/14.cc: New.
5924         * testsuite/demangle/abi_examples/15.cc: New.
5925         * testsuite/demangle/abi_examples/16.cc: New.
5926         * testsuite/demangle/abi_examples/17.cc: New.
5927         * testsuite/demangle/abi_examples/18.cc: New.
5928         * testsuite/demangle/abi_examples/19.cc: New.
5929         * testsuite/demangle/abi_examples/20.cc: New.
5930         * testsuite/demangle/abi_examples/21.cc: New.
5931         * testsuite/demangle/abi_examples/22.cc: New.
5932         * testsuite/demangle/abi_examples/23.cc: New.
5933         * testsuite/demangle/abi_examples/24.cc: New.
5934         * testsuite/demangle/abi_examples/25.cc: New.
5935         * testsuite/demangle/abi_examples/26.cc: New.
5936         * testsuite/demangle/abi_text/01.cc: New.
5937         * testsuite/demangle/abi_text/02.cc: New.
5938         * testsuite/demangle/abi_text/03.cc: New.
5939         * testsuite/demangle/abi_text/04.cc: New.
5940         * testsuite/demangle/abi_text/05.cc: New.
5941         * testsuite/demangle/abi_text/06.cc: New.
5942         * testsuite/demangle/abi_text/07.cc: New.
5943         * testsuite/demangle/abi_text/08.cc: New.
5944         * testsuite/demangle/abi_text/09.cc: New.
5945         * testsuite/demangle/abi_text/10.cc: New.
5946         * testsuite/demangle/abi_text/11.cc: New.
5947         * testsuite/demangle/abi_text/12.cc: New.
5948         * testsuite/demangle/abi_text/13.cc: New.
5949         * testsuite/demangle/abi_text/14.cc: New.
5950         * testsuite/demangle/regression/3111-1.cc: New.
5951         * testsuite/demangle/regression/3111-2.cc: New.
5952         * testsuite/demangle/regression/7986-01.cc: New.
5953         * testsuite/demangle/regression/7986-02.cc: New.
5954         * testsuite/demangle/regression/7986-03.cc: New.
5955         * testsuite/demangle/regression/7986-04.cc: New.
5956         * testsuite/demangle/regression/7986-05.cc: New.
5957         * testsuite/demangle/regression/7986-06.cc: New.
5958         * testsuite/demangle/regression/7986-07.cc: New.
5959         * testsuite/demangle/regression/7986-08.cc: New.
5960         * testsuite/demangle/regression/7986-09.cc: New.
5961         * testsuite/demangle/regression/7986-10.cc: New.
5962         * testsuite/demangle/regression/7986-11.cc: New.
5963         * testsuite/demangle/regression/7986-12.cc: New.
5964         * testsuite/demangle/regression/7986.cc: New.
5965         * testsuite/demangle/regression/8897.cc: New.
5966         * testsuite/demangle/regression/cw-01.cc: New.
5967         * testsuite/demangle/regression/cw-02.cc: New.
5968         * testsuite/demangle/regression/cw-03.cc: New.
5969         * testsuite/demangle/regression/cw-04.cc: New.
5970         * testsuite/demangle/regression/cw-05.cc: New.
5971         * testsuite/demangle/regression/cw-06.cc: New.
5972         * testsuite/demangle/regression/cw-07.cc: New.
5973         * testsuite/demangle/regression/cw-08.cc: New.
5974         * testsuite/demangle/regression/cw-09.cc: New.
5975         * testsuite/demangle/regression/cw-10.cc: New.
5976         * testsuite/demangle/regression/cw-11.cc: New.
5977         * testsuite/demangle/regression/cw-12.cc: New.
5978         * testsuite/demangle/regression/cw-13.cc: New.
5979         * testsuite/demangle/regression/cw-14.cc: New.
5980         * testsuite/demangle/regression/old.cc: New.
5981
5982 2003-02-25  Phil Edwards  <pme@gcc.gnu.org>
5983
5984         * docs/doxygen/Intro.3:  Update with new (proper) names.
5985         * docs/doxygen/TODO:  Update.
5986         * docs/doxygen/run_doxygen:  More comments, fix up man pages.
5987         Fake entries for standard typedefs.
5988         * docs/doxygen/user.cfg.in:  Turn INLINE_INHERITED_MEMB back on.
5989         * docs/html/documentation.html:  Top-level man page is now called
5990         C++Intro.
5991         * include/std/std_limits.h:  Doxygenate.
5992
5993 2003-02-25  Scott Snyder  <snyder@fnal.gov>
5994
5995         PR libstdc++/9811
5996         * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
5997         Correct documentation.
5998         * include/bits/stl_multimap.h (lower_bound, upper_bound,
5999         equal_range): Likewise.
6000
6001 2003-02-24  Paolo Carlini  <pcarlini@unitus.it>
6002
6003         PR libstdc++/9825
6004         * src/fstream.cc
6005         (basic_filebuf<char/wchar_t>::_M_underflow_common): When
6006         __bump is true (uflow), always increment the read pointer
6007         (_M_in_cur) before returning successfully.
6008         * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
6009
6010 2003-02-24  Paolo Carlini <pcarlini@unitus.it>
6011             Nathan Myers <ncm@cantrip.org>
6012
6013         PR libstdc++/9404, PR libstdc++/9701 (partial)
6014         (aka pptr == epptr implies overflow)
6015         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
6016         Consistently, _M_out_end points to the end of the buffer just
6017         created.
6018         (overflow): Tweak to use _M_out_buf_size().
6019         (_M_convert_to_external): The role of the old _M_out_end is
6020         now played by _M_out_lim.
6021         (_M_really_overflow): Likewise.
6022         (seekoff): Likewise.
6023         (setbuf): _M_out_end points to the end of the external buffer.
6024         * include/bits/sstream.tcc (overflow): Rewrote, taking into
6025         account the resolution of DR 169 (TC).
6026         (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
6027         (seekpos): Use _M_string.capacity(); tweak.
6028         * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
6029         * include/std/std_fstream.h (sync): The role of the old
6030         _M_out_end is now played by _M_out_lim.
6031         (_M_set_indeterminate): Use _M_set_determinate.
6032         (_M_set_determinate): _M_out_end is now _M_out_lim.
6033         (_M_is_indeterminate): Likewise.
6034         * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
6035         (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
6036         which have the information readily available as _M_string.capacity();
6037         for ate and app modes, pass the string size to _M_really_sync.
6038         (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
6039         point to the end of the buffer (i.e., epptr) and to the string end,
6040         respectively.
6041         * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
6042         which points to the right limit of the used put area.
6043         (_M_out_cur_move): The role of the old _M_out_end is now played
6044         by _M_out_lim.
6045         (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
6046         _M_out_end  - _M_out_cur (i.e., pptr), _very_ close to the letter
6047         of the standard.
6048         (basic_streambuf()): Initialize _M_out_lim too.
6049         * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
6050         * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
6051         * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
6052
6053 2003-02-24  Benjamin Kosnik  <bkoz@redhat.com>
6054
6055         * testsuite/27_io/ios_base_storage.cc (main): Call
6056         set_memory_limits.
6057
6058 2003-02-21  Jerry Quinn  <jlquinn@optonline.net>
6059
6060         * include/bits/locale_facets.tcc (_M_convert_float): Replace
6061         numpunct facet accesses with data from __locale_cache.
6062
6063 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
6064
6065         * docs/html/faq/index.html (3.9):  New note, wchar_t on FreeBSD.
6066         * docs/html/faq/index.txt:  Regenerate.
6067
6068 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
6069
6070         * config/linker-map.gnu:  Also export locking symbols needed for the
6071         generic atomicity.h case.
6072
6073 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
6074
6075         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
6076         config.status.
6077         * configure: Rebuilt.
6078
6079 2003-02-19  Paolo Carlini  <pcarlini@unitus.it>
6080
6081         * include/bits/sstream.tcc (overflow): According to
6082         27.7.1.3, p5, actual output is performed by sputc(c).
6083
6084 2003-02-19  Phil Edwards  <pme@gcc.gnu.org>
6085
6086         PR libstdc++/9582
6087         * include/bits/stl_alloc.h:  Remove all traces of assert().
6088
6089 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
6090
6091         * include/std/std_sstream.h (str()): the size of the
6092         current string may be different from the initial one
6093         whenever _M_out_end > _M_out_beg.
6094         * testsuite/27_io/stringbuf_members.cc (test07): Add.
6095
6096 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
6097
6098         PR libstdc++/9582
6099         * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
6100
6101 2003-02-17  Benjamin Kosnik  <bkoz@redhat.com>
6102
6103         * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
6104         * testsuite/27_io/ios_members.cc (test03): New.
6105
6106 2003-02-17  Jerry Quinn  <jlquinn@optonline.net>
6107
6108         * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
6109         (basic_ios::_M_cache_facets): Move into above.
6110         * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
6111         cache.
6112         (basic_ios::imbue): Force locale cache to be built.
6113         (basic_ios::_M_init): Create and initialize locale cache.
6114         * include/bits/ios_base.h (__locale_cache_base): Declare.
6115         (ios_base::_M_locale_cache): New.
6116         (ios_base::_M_cache): Define.
6117         * include/bits/locale_facets.h: (__num_base): Fix comment.  Add
6118         _S_end.
6119         (__locale_cache_base,__locale_cache<_CharT>):  New classes.
6120         (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
6121         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
6122         cache literal string, grouping flag, thousands separator.
6123         (__locale_cache<_CharT>::__locale_cache): New.
6124         (__locale_cache<_CharT>::_M_init): New.
6125         * src/ios.cc: Clear _M_locale_cache in constructor.
6126         * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
6127         New.
6128
6129 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
6130
6131         * src/locale-inst.cc: Do not include <cassert>.
6132         * src/locale.cc: Likewise.
6133
6134 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
6135
6136         PR libstdc++/9580
6137         * include/std/std_fstream.h: Declare underflow and uflow
6138         specializations, change generic definitions to do nothing.
6139         * src/fstream.cc: Add underflow and uflow specializations.
6140
6141 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
6142
6143         PR libstdc++/9169
6144         * include/bits/fstream.tcc (_M_convert_to_external):
6145         Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
6146         * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
6147
6148 2003-02-13  Benjamin Kosnik  <bkoz@redhat.com>
6149
6150         * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
6151         * include/bits/basic_ios.tcc: Guard use of extern template.
6152         * include/std/std_iomanip.h: Same.
6153         * include/bits/streambuf.tcc: Same.
6154         * include/bits/stl_alloc.h: Same.
6155         * include/bits/locale_facets.tcc: Same.
6156         * include/bits/ostream.tcc: Same.
6157         * include/bits/istream.tcc: Same.
6158         * include/bits/fstream.tcc: Same.
6159         * include/bits/basic_string.tcc: Same.
6160
6161 2003-02-13  Paolo Carlini  <pcarlini@unitus.it>
6162
6163         * include/bits/ostream.tcc (sentry::sentry): Improve
6164         performance-wise the fix for libstdc++/9563.
6165
6166 2003-02-12  Phil Edwards  <pme@gcc.gnu.org>
6167
6168         * config/cpu/generic/atomicity.h (_Atomic_add_mutex):  Fix declaration.
6169         (_GLIBCPP_NEED_GENERIC_MUTEX):  Define for this file.
6170         (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once):  Declare
6171         when we don't have static mutex initialization.
6172         (__exchange_and_add):  Use _Atomic_add_mutex_once.
6173         * src/misc-inst.cc:  Definitions of all the above.
6174
6175 2003-02-12  Paolo Carlini  <pcarlini@unitus.it>
6176
6177         PR libstdc++/9563
6178         * include/bits/ostream.tcc (sentry::sentry): Check
6179         the state of the stream after the preparation.
6180         * testsuite/27_io/ostream_sentry.cc (test02): Add.
6181
6182 2003-02-11  Benjamin Kosnik  <bkoz@redhat.com>
6183
6184         * include/Makefile.am (stamp-std-precompile): Add rule.
6185         * include/Makefile.in: Regenerated.
6186
6187 2003-02-11 Jerry Quinn  <jlquinn@optonline.net>
6188            Benjamin Kosnik  <benjamin@redhat.com>
6189
6190         * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
6191         Add indexes into this array.
6192         (__num_base::_S_atoms): To _S_atoms_in.
6193         (num_put::_M_insert): Rename to _M_pad.
6194         (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
6195         (num_put::_M_widen_int): Rename to _M_group_int.
6196         (num_put::_M_widen_float): Rename to _M_group_float.
6197         * include/bits/locale_facets.tcc (__int_to_char): New inline
6198         function and adapter functions.
6199         (num_put::_M_group_int): Streamline.
6200         (num_put::_M_group_float): Streamline.
6201         (num_put::_M_convert_int): Remove unused parameter names. Choose
6202         large enough buffer for text.  Use __int_to_char instead of
6203         __convert_from_v.  Formatted text is now at the end of the buffer.
6204         (num_put::_M_convert_float): Preliminary fixups.
6205         * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
6206         (__int_to_char<unsigned long long>): Same.
6207         (__int_to_char<char, unsigned long>): New.
6208         (__int_to_char<char, unsigned long long>): New.
6209         (__int_to_char<wchar_t, unsigned long>): New.
6210         (__int_to_char<wchar_t, unsigned long long>): New.
6211
6212 2003-02-11  Scott Snyder  <snyder@fnal.gov>
6213
6214         PR libstdc++/9659
6215         * include/bits/fstream.tcc (seekoff): Avoid operator+
6216         for pos_type.
6217
6218 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
6219
6220         PR libstdc++/9320
6221         * include/ext/stdio_filebuf.h
6222         (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
6223         stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
6224         Change to take a __size parameter of type size_t, not
6225         of type (template parameter dependent) int_type.
6226         * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
6227         size vars to size_t.
6228         * testsuite/ext/stdio_filebuf.cc: Add.
6229
6230 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
6231             Petur Runolfsson  <peturr02@ru.is>
6232
6233         PR libstdc++/9318
6234         * include/bits/streambuf.tcc (__copy_streambufs):
6235         Don't conditionalize the copy to __testput.
6236         * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
6237
6238 2002-02-11  DJ Delorie  <dj@redhat.com>
6239
6240         * acinclude.m4: Check for native targets that can't link at
6241         this point in the build.
6242         * aclocal.m4: Regenerate.
6243         * configure: Regenerate.
6244
6245 2003-02-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6246
6247         * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
6248         Correct alignment.
6249         (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
6250         lock.
6251
6252 2003-02-07  Paolo Carlini  <pcarlini@unitus.it>
6253
6254         * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
6255         unsigned char platforms.
6256
6257 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
6258
6259         PR libstdc++/9562
6260         * include/std/std_istream.h
6261         (basic_istream::sentry::operator bool()): Make const.
6262         * include/std/std_ostream.h
6263         (basic_ostream::sentry::operator bool()): Likewise.
6264         * testsuite/27_io/istream_sentry.cc (test03): Add.
6265         * testsuite/27_io/ostream_sentry.cc: Add.
6266
6267 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
6268
6269         PR libstdc++/9548
6270         Implement resolution of DR 231 (Ready)
6271         * include/bits/locale_facets.h (__num_base::_S_format_float):
6272         Change declaration: return void, remove __prec parameter.
6273         * src/locale.cc (__num_base::_S_format_float): Implement
6274         resolution of DR 231.
6275         * include/bits/locale_facets.tcc (num_put::_M_convert_float):
6276         Tweak uses. Check for negative precision.
6277         * testsuite/22_locale/num_put/put/char/6.cc: Add
6278         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
6279
6280 2003-02-06  Peter Soetens  <peter.soetens@mech.kuleuven.ac.be>
6281
6282         * config/io/basic_file_libio.h: Fixups.
6283         * config/io/c_io_libio.h: Same.
6284         * libio/Makefile.am: Same.
6285         * libio/Makefile.in: Regenerated.
6286
6287 2003-02-06  Benjamin Kosnik  <bkoz@redhat.com>
6288
6289         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
6290         Explicitly use the "C" locale.
6291         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
6292
6293 2003-02-06  Petur Runolfsson  <peturr02@ru.is>
6294
6295         DR 75
6296         DR 305
6297         PR libstdc++/9028 (partial)
6298         PR libstdc++/9224
6299         PR libstdc++/9246
6300         PR libstdc++/9247
6301
6302         * src/codecvt.cc
6303         (codecvt<wchar_t, char, mbstate_t>::do_encoding,
6304         codecvt<wchar_t, char, mbstate_t>::do_length,
6305         codecvt<wchar_t, char, mbstate_t>::do_max_length):
6306         Move...
6307         * config/locale/generic/codecvt_members.cc:  ...here.
6308         * config/locale/gnu/codecvt_members.cc:  ...and here.
6309
6310         * config/locale/generic/codecvt_members.cc,
6311         * config/locale/gnu/codecvt_members.cc
6312         (codecvt<wchar_t, char, mbstate_t>::do_encoding
6313         codecvt<wchar_t, char, mbstate_t>::do_in,
6314         codecvt<wchar_t, char, mbstate_t>::do_length,
6315         codecvt<wchar_t, char, mbstate_t>::do_max_length,
6316         codecvt<wchar_t, char, mbstate_t>::do_out):
6317         New implementation that handles stateless encodings,
6318         including UTF-8.
6319
6320         * config/locale/generic/codecvt_members.cc,
6321         * config/locale/gnu/codecvt_members.cc,
6322         * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
6323         * include/bits/codecvt.h,
6324         * src/codecvt.cc
6325         (codecvt::length, codecvt::do_length):
6326         Change type of first argument of length and do_length from
6327         'const state_type&' to 'state_type&' according to DR 75.
6328
6329         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc:  Cleanup.
6330         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc:  New test.
6331         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc:  New test.
6332         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc:  New test.
6333         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
6334         Cleanup and check for correct return value from encoding
6335         for "C" locale.
6336         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc:  New test.
6337         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc:  New test.
6338         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc:  New test.
6339         * testsuite/22_locale/codecvt/in/wchar_t/1.cc:  Cleanup.
6340         * testsuite/22_locale/codecvt/in/wchar_t/2.cc:  New test.
6341         * testsuite/22_locale/codecvt/in/wchar_t/3.cc:  New test.
6342         * testsuite/22_locale/codecvt/in/wchar_t/4.cc:  New test.
6343         * testsuite/22_locale/codecvt/in/wchar_t/5.cc:  New test.
6344         * testsuite/22_locale/codecvt/in/wchar_t/6.cc:  New test.
6345         * testsuite/22_locale/codecvt/in/wchar_t/7.cc:  New test.
6346         * testsuite/22_locale/codecvt/in/wchar_t/8.cc:  New test.
6347         * testsuite/22_locale/codecvt/in/wchar_t/9.cc:  New test.
6348         * testsuite/22_locale/codecvt/length/char/1.cc:  Cleanup.
6349         * testsuite/22_locale/codecvt/length/char/2.cc:  New test.
6350         * testsuite/22_locale/codecvt/length/wchar_t/1.cc:  Cleanup.
6351         * testsuite/22_locale/codecvt/length/wchar_t/2.cc:  New test.
6352         * testsuite/22_locale/codecvt/length/wchar_t/3.cc:  New test.
6353         * testsuite/22_locale/codecvt/length/wchar_t/4.cc:  New test.
6354         * testsuite/22_locale/codecvt/length/wchar_t/5.cc:  New test.
6355         * testsuite/22_locale/codecvt/length/wchar_t/6.cc:  New test.
6356         * testsuite/22_locale/codecvt/length/wchar_t/7.cc:  New test.
6357         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc:  Cleanup.
6358         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc:  New test.
6359         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc:  New test.
6360         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc:  New test.
6361         * testsuite/22_locale/codecvt/out/wchar_t/1.cc:  Cleanup.
6362         * testsuite/22_locale/codecvt/out/wchar_t/2.cc:  New test.
6363         * testsuite/22_locale/codecvt/out/wchar_t/3.cc:  New test.
6364         * testsuite/22_locale/codecvt/out/wchar_t/4.cc:  New test.
6365         * testsuite/22_locale/codecvt/out/wchar_t/5.cc:  New test.
6366         * testsuite/22_locale/codecvt/out/wchar_t/6.cc:  New test.
6367         * testsuite/22_locale/codecvt/out/wchar_t/7.cc:  New test.
6368         * testsuite/22_locale/codecvt/unicode/1.cc:  New test.
6369         * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc:  Cleanup.
6370         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc:  New test.
6371         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc:  New test.
6372         * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc:  New test.
6373
6374 2003-02-05  Benjamin Kosnik  <bkoz@redhat.com>
6375
6376         * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
6377         (money_put::do_put): Same.
6378
6379 2003-02-05  Jerry Quinn  <jlquinn@optonline.net>
6380
6381         * include/bits/ios_base.h (ios_base): Document reserved storage.
6382
6383         * include/bits/locale_facets.h: (struct __pad): Comment on
6384         implementation.
6385         (__verify_grouping): Same.
6386         (__add_grouping): Same.
6387         * include/bits/locale_facets.tcc (__verify_grouping): Move
6388         comments to declaration.
6389         (__add_grouping): Same.
6390
6391         * include/bits/locale_facets.tcc:
6392         (__write<_CharT, _OutIter>): New function.
6393         (__write<_CharT>): New function specialization.
6394         (num_put::_M_insert): Remove explicit loop over iterator.  Use
6395         __write.
6396         (num_put::_M_widen_float): Remove __basefield.
6397         (num_put::_M_widen_int): Move __basefield to within grouping block.
6398
6399         * include/bits/streambuf_iterator.h: Include <streambuf>.
6400         (ostreambuf_iterator::_M_put): Add.
6401
6402 2003-02-05  Paolo Carlini  <pcarlini@unitus.it>
6403
6404         * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
6405
6406 2003-02-04  Nathan Myers  <ncm@cantrip.org>
6407
6408         * testsuite/25_algorithms/min_max.cc (test02): Add.
6409
6410 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
6411
6412         PR libstdc++/9439, PR libstdc++/9425
6413         * config/io/basic_file_stdio.cc
6414         (__basic_file<char>::seekoff, seekpos): Return -1L if
6415         fseek fails.
6416         * include/bits/fstream.tcc (basic_filebuf::seekoff):
6417         Check _M_file.seekoff return value; always return
6418         pos_type(off_type(-1)) in case of failure.
6419         (basic_filebuf::pbackfail): Check this->seekoff return
6420         value and return traits_type::eof() in case of failure.
6421         * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
6422
6423 2003-02-04  Jerry Quinn  <jlquinn@optonline.net>
6424
6425         * include/std/std_ostream.h (ostream::_M_write): Declare.
6426         * ostream.tcc (ostream::_M_write): Define.
6427         (basic_ostream::write): Use it.
6428         (operator<<(basic_ostream, _CharT)): Ditto.
6429         (operator<<(basic_ostream, char)): Ditto.
6430         (operator<<(basic_ostream, _CharT*)): Ditto.
6431         (operator<<(basic_ostream, char*)): Ditto.
6432         (operator<<(basic_ostream, basic_string)): Ditto.
6433
6434 2003-02-04  Benjamin Kosnik  <bkoz@redhat.com>
6435
6436         * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
6437
6438 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
6439
6440         * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
6441         add HTML comment about updating links if numbering changes.
6442
6443 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
6444
6445         PR libstdc++/9538
6446         * include/bits/streambuf.tcc (sputbackc): Access
6447         this->gptr()[-1] only if _M_in_beg < _M_in_cur.
6448         * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
6449
6450 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
6451
6452         PR libstdc++/9507
6453         * include/bits/fstream.tcc (open): If the 'ate' repositioning
6454         operation fails, calls close _and_ returns a null pointer
6455         to indicate failure (27.8.1.3,4).
6456         * testsuite/27_io/filebuf_members.cc (test_06): Add.
6457
6458 2003-02-04  Petur Runolfsson  <peturr02@ru.is>
6459
6460         * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
6461
6462 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
6463
6464         * docs/html/27_io/howto.html: New section on stdio_filebuf.
6465         * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
6466         * docs/html/documentation.html: Regenerate.
6467
6468 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
6469
6470         * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
6471         * docs/html/17_intro/porting.html: Regenerate.
6472
6473 2003-02-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
6474             Phil Edwards  <pme@gcc.gnu.org>
6475
6476         * include/std/std_bitset.h:  Replace CHAR_BIT with __CHAR_BIT__, use
6477         numeric_limits for bits-per-word values.
6478         (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
6479         Use __builtin_popcountl instead.
6480         (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
6481         _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
6482         Use __builtin_ctzl instead.
6483         (_S_bit_count, _S_first_one):  Remove.
6484         * config/linker-map.gnu (GLIBCPP_3.4):  Remove std::_S_bit_count.
6485         * src/Makefile.am (sources):  Remove bitset.cc.
6486         * src/bitset.cc:  Delete file.
6487         * src/Makefile.in:  Regenerate.
6488
6489 2003-02-03  Phil Edwards  <pme@gcc.gnu.org>
6490
6491         PR libstdc++/9527, PR libstdc++/8713
6492         * docs/html/install.html:  Mention glibc version requirement.
6493         * docs/html/faq/index.html (3.8):  New note, glibc 2.2.5+ is needed
6494         with 3.2.1+ (formatting bugfixes).
6495         * docs/html/faq/index.txt:  Regenerate.
6496
6497 2003-02-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6498
6499         PR libstdc++/9234
6500         * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
6501         operator.
6502
6503         * include/bits/valarray_before.h (__not_equal_to): Use != instead
6504         of ==.
6505
6506         * testsuite/26_numerics/valarray_operators.cc: New test.
6507
6508 2003-02-01  Phil Edwards  <pme@gcc.gnu.org>
6509
6510         * docs/html/faq/index.html:  Correct link to libg++ information.
6511         * docs/html/faq/index.txt:  Regenerated.
6512
6513 2003-02-01  Paolo Carlini  <pcarlini@unitus.it>
6514             Benjamin Kosnik  <bkoz@redhat.com>
6515
6516         Const correctness issue:
6517         http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
6518         * include/bits/locale_classes.h
6519         (locale::_Impl::_M_facets): Change type to const facet**.
6520         (locale::_Impl::_M_install_facet): Change declaration to
6521         take const facet*.
6522         (locale::facet::_M_references): Make mutable.
6523         (locale::facet::_M_add_reference): Declare const.
6524         (locale::facet::_M_remove_reference): Likewise.
6525         * include/bits/locale_facets.tcc
6526         (use_facet(const locale&)): Tweak for const facet** _M_facets.
6527         (has_facet(const locale&)): Likewise.
6528         * src/locale.cc
6529         (locale::facet::_M_add_reference): Adjust definition.
6530         (locale::facet::_M_remove_reference): Likewise.
6531         * src/localename.cc
6532         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
6533         const facet** _M_facets.
6534         (locale::_Impl::_Impl(const char*, size_t)): Likewise.
6535         (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
6536         (locale::_Impl::_M_install_facet): Adjust definition to take
6537         const facet* and for const facet** _M_facets.
6538         * testsuite/22_locale/locale/cons/8.cc: Add.
6539
6540 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
6541
6542         * include/std/std_limits.h (numeric_limits<float>::has_infinity):
6543         Use __FLT_HAS_INIFINITY__ to initialize.
6544         (numeric_limits<float>::has_quiet_NaN): Likewise.
6545         (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
6546         to initialize.
6547         (numeric_limits<double>::has_quiet_NaN): Likewise.
6548         (numeric_limits<long double>::has_infinity): Use
6549         __LDBL_HAS_INIFINITY__ to initialize.
6550         (numeric_limits<long_double>::has_quiet_NaN): Likewise.
6551
6552 2003-01-28  Nathan Sidwell  <nathan@codesourcery.com>
6553
6554         PR c++/9433
6555         * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
6556         with bases which are very ambiguous.
6557
6558 2003-01-28  Danny Smith  <dannysmith@users.sourceforge.net>
6559
6560         * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
6561         @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
6562         * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
6563         * src/Makefile.in: Regenerate.
6564         * libsupc++/Makefile.in: Regenerate.
6565
6566 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
6567
6568         * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
6569         $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
6570         version_specific_libs is enabled.
6571         * aclocal.m4, configure: Rebuilt.
6572
6573 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
6574
6575         * include/bits/valarray_meta.h: Remove, split into ...
6576         * include/bits/valarray_before.h: ... this, and ...
6577         * include/bits/valarray_after.h: ... this.
6578         * include/std/std_valarray.h: Adjust.
6579         * include/Makefile.am (bits_headers): Adjust.
6580         * include/Makefile.in: Regenerate.
6581
6582 2003-01-24  Andreas Schwab  <schwab@suse.de>
6583
6584         * config/linker-map.gnu: Fix for size_t variance.
6585
6586 2003-01-23  Petur Runolfsson  <peturr02@ru.is>
6587
6588         PR libstdc++/9322
6589         * include/std/std_streambuf.h
6590         (basic_streambuf::basic_streambuf,
6591         basic_streambuf::~basic_streambuf,
6592         basic_streambuf::getloc, basic_streambuf::imbue):
6593         Remove _M_buf_locale_init
6594         * include/bits/fstream.tcc (basic_filebuf::imbue):  Likewise
6595         * testsuite/27_io/filebuf_virtuals.cc (test08):  Add.
6596         * testsuite/27_io/streambuf_members.cc (test08):  Add.
6597         * testsuite/27_io/stringbuf_virtuals.cc (test08):  Add.
6598
6599 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
6600
6601         Revert include ordering.
6602         * config/locale/generic/c_locale.h: Add include guards.
6603         * config/locale/gnu/c_locale.h: Same.
6604         * include/bits/locale_classes.h: Remove cctype include.
6605         * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
6606         * include/std/std_fstream.h: Remove streambuf include.
6607         * include/std/std_sstream.h: Remove streambuf include.
6608
6609 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
6610
6611         * configure.in (libtool_VERSION): To 6:0:0.
6612         * configure: Regenerated.
6613         * config/linker-map.gnu: Clean.
6614
6615         * src/misc-inst.cc: Remove instantiations.
6616
6617         * include/bits/stl_alloc.h (__malloc_alloc_template):
6618         To __malloc_alloc.
6619         (__default_alloc_template): To __pool_alloc.
6620         * src/stl-inst.cc: Same.
6621         * include/backward/alloc.h: Update.
6622         * testsuite/ext/allocators.cc: Update.
6623
6624         * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
6625         really try to remove these if possible.
6626         * src/locale.cc (std): Same.
6627
6628         * testsuite/abi_check.cc (check_version): Add.
6629
6630 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
6631             Sysoltsev Slawa  <Vyatcheslav.Sysoltsev@intel.com>
6632             Mark Mitchell  <mark@codesourcery.com>
6633
6634         PR libstdc++/9269
6635         * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
6636         (basic_filebuf::underflow): Declare.
6637         Move definitions.
6638
6639 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
6640
6641         * include/bits/locale_facets.h: Move non-facet classes requiring
6642         <string> to...
6643         * include/bits/locale_classes.h: New.
6644         * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
6645         * include/bits/Makefile.in: Regenerate.
6646
6647         * include/bits/locale_facets.tcc (__convert_from_v): Move to...
6648         * config/locale/gnu/c_locale.h: ...here.
6649         * config/locale/generic/c_locale.h: Same.
6650
6651         * include/bits/locale_facets.tcc: Move declarations to...
6652         * include/bits/locale_facets.h: ...here.
6653         * include/bits/basic_ios.h: Tweak includes accordingly.
6654         * include/std/std_sstream.h: Add streambuf include.
6655         * include/std/std_fstream.h: Ditto.
6656         * include/std/std_locale.h: Add locale_classes.h include.
6657         * include/std/std_iosfwd.h: Tweak.
6658         * src/concept-inst.cc: Add iterator include.
6659
6660         * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
6661         bits as unexported in the future.
6662
6663 2003-01-21  Benjamin Kosnik  <bkoz@redhat.com>
6664
6665         Reshuffle 22_locale testsuite.
6666         * 22_locale/(codecvt.cc money_get.cc
6667         codecvt_members_char_char.cc money_get_members_char.cc
6668         codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
6669         codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
6670         codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
6671         moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
6672         collate_members_char.cc money_put.cc collate_members_wchar_t.cc
6673         money_put_members_char.cc ctor_copy_dtor.cc
6674         money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
6675         num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
6676         ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
6677         numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
6678         ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
6679         num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
6680         ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
6681         operators.cc ctype_widen_char.cc static_members.cc
6682         ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
6683         global_templates.cc time_get_members_wchar_t.cc, members.cc,
6684         time_put.cc, messages_byname.cc, time_put_members_char.cc,
6685         messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
6686         Split up into individual test cases...
6687         * 22_locale/codecvt/1.cc: New.
6688         * 22_locale/codecvt/2.cc: New.
6689         * 22_locale/codecvt/always_noconv/char/1.cc: New.
6690         * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
6691         * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
6692         * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
6693         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
6694         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
6695         * 22_locale/codecvt/encoding/char/1.cc: New.
6696         * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
6697         * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
6698         * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
6699         * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
6700         * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
6701         * 22_locale/codecvt/in/char/1.cc: New.
6702         * 22_locale/codecvt/in/char/wrapped_env.cc: New.
6703         * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
6704         * 22_locale/codecvt/in/wchar_t/1.cc: New.
6705         * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
6706         * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
6707         * 22_locale/codecvt/length/char/1.cc: New.
6708         * 22_locale/codecvt/length/char/wrapped_env.cc: New.
6709         * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
6710         * 22_locale/codecvt/length/wchar_t/1.cc: New.
6711         * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
6712         * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
6713         * 22_locale/codecvt/max_length/char/1.cc: New.
6714         * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
6715         * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
6716         * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
6717         * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
6718         * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
6719         * 22_locale/codecvt/out/char/1.cc: New.
6720         * 22_locale/codecvt/out/char/wrapped_env.cc: New.
6721         * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
6722         * 22_locale/codecvt/out/wchar_t/1.cc: New.
6723         * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
6724         * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
6725         * 22_locale/codecvt/unicode/char.cc: New.
6726         * 22_locale/codecvt/unicode/wchar_t.cc: New.
6727         * 22_locale/codecvt/unshift/char/1.cc: New.
6728         * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
6729         * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
6730         * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
6731         * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
6732         * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
6733         * 22_locale/collate/1.cc: New.
6734         * 22_locale/collate/2.cc: New.
6735         * 22_locale/collate/compare/char/1.cc: New.
6736         * 22_locale/collate/compare/char/2.cc: New.
6737         * 22_locale/collate/compare/char/wrapped_env.cc: New.
6738         * 22_locale/collate/compare/char/wrapped_locale.cc: New.
6739         * 22_locale/collate/compare/wchar_t/1.cc: New.
6740         * 22_locale/collate/compare/wchar_t/2.cc: New.
6741         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
6742         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
6743         * 22_locale/collate/hash/char/1.cc: New.
6744         * 22_locale/collate/hash/char/2.cc: New.
6745         * 22_locale/collate/hash/char/wrapped_env.cc: New.
6746         * 22_locale/collate/hash/char/wrapped_locale.cc: New.
6747         * 22_locale/collate/hash/wchar_t/1.cc: New.
6748         * 22_locale/collate/hash/wchar_t/2.cc: New.
6749         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
6750         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
6751         * 22_locale/collate/transform/char/2.cc: New.
6752         * 22_locale/collate/transform/char/wrapped_env.cc: New.
6753         * 22_locale/collate/transform/char/wrapped_locale.cc: New.
6754         * 22_locale/collate/transform/wchar_t/2.cc: New.
6755         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
6756         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
6757         * 22_locale/collate_byname/1.cc: New.
6758         * 22_locale/ctype/1.cc: New.
6759         * 22_locale/ctype/2.cc: New.
6760         * 22_locale/ctype/cons/char/1.cc: New.
6761         * 22_locale/ctype/cons/char/wrapped_env.cc: New.
6762         * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
6763         * 22_locale/ctype/is/char/1.cc: New.
6764         * 22_locale/ctype/is/char/2.cc: New.
6765         * 22_locale/ctype/is/char/3.cc: New.
6766         * 22_locale/ctype/is/char/wrapped_env.cc: New.
6767         * 22_locale/ctype/is/char/wrapped_locale.cc: New.
6768         * 22_locale/ctype/is/wchar_t/1.cc: New.
6769         * 22_locale/ctype/is/wchar_t/2.cc: New.
6770         * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
6771         * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
6772         * 22_locale/ctype/narrow/char/1.cc: New.
6773         * 22_locale/ctype/narrow/char/2.cc: New.
6774         * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
6775         * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
6776         * 22_locale/ctype/narrow/wchar_t/1.cc: New.
6777         * 22_locale/ctype/narrow/wchar_t/2.cc: New.
6778         * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
6779         * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
6780         * 22_locale/ctype/scan/char/1.cc: New.
6781         * 22_locale/ctype/scan/char/wrapped_env.cc: New.
6782         * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
6783         * 22_locale/ctype/scan/wchar_t/1.cc: New.
6784         * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
6785         * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
6786         * 22_locale/ctype/to/char/1.cc: New.
6787         * 22_locale/ctype/to/char/wrapped_env.cc: New.
6788         * 22_locale/ctype/to/char/wrapped_locale.cc: New.
6789         * 22_locale/ctype/to/wchar_t/1.cc: New.
6790         * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
6791         * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
6792         * 22_locale/ctype/widen/char/1.cc: New.
6793         * 22_locale/ctype/widen/char/wrapped_env.cc: New.
6794         * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
6795         * 22_locale/ctype/widen/wchar_t/1.cc: New.
6796         * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
6797         * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
6798         * 22_locale/facet/1.cc: New.
6799         * 22_locale/facet/2.cc: New.
6800         * 22_locale/global_templates/1.cc: New.
6801         * 22_locale/locale/cons/1.cc: New.
6802         * 22_locale/locale/cons/2.cc: New.
6803         * 22_locale/locale/cons/3.cc: New.
6804         * 22_locale/locale/cons/4.cc: New.
6805         * 22_locale/locale/cons/5.cc: New.
6806         * 22_locale/locale/cons/6.cc: New.
6807         * 22_locale/locale/cons/7.cc: New.
6808         * 22_locale/locale/global_locale_objects/1.cc: New.
6809         * 22_locale/locale/global_locale_objects/2.cc: New.
6810         * 22_locale/locale/global_locale_objects/3.cc: New.
6811         * 22_locale/locale/operations/1.cc: New.
6812         * 22_locale/locale/operations/2.cc: New.
6813         * 22_locale/messages/1.cc: New.
6814         * 22_locale/messages/2.cc: New.
6815         * 22_locale/messages/members/char/1.cc: New.
6816         * 22_locale/messages/members/char/2.cc: New.
6817         * 22_locale/messages/members/char/3.cc: New.
6818         * 22_locale/messages/members/char/wrapped_env.cc: New.
6819         * 22_locale/messages/members/char/wrapped_locale.cc: New.
6820         * 22_locale/messages_byname/1.cc: New.
6821         * 22_locale/money_get/1.cc: New.
6822         * 22_locale/money_get/2.cc: New.
6823         * 22_locale/money_get/get/char/1.cc: New.
6824         * 22_locale/money_get/get/char/2.cc: New.
6825         * 22_locale/money_get/get/char/3.cc: New.
6826         * 22_locale/money_get/get/char/4.cc: New.
6827         * 22_locale/money_get/get/char/5.cc: New.
6828         * 22_locale/money_get/get/char/6.cc: New.
6829         * 22_locale/money_get/get/char/7.cc: New.
6830         * 22_locale/money_get/get/char/8.cc: New.
6831         * 22_locale/money_get/get/char/wrapped_env.cc: New.
6832         * 22_locale/money_get/get/char/wrapped_locale.cc: New.
6833         * 22_locale/money_get/get/wchar_t/1.cc: New.
6834         * 22_locale/money_get/get/wchar_t/2.cc: New.
6835         * 22_locale/money_get/get/wchar_t/3.cc: New.
6836         * 22_locale/money_get/get/wchar_t/4.cc: New.
6837         * 22_locale/money_get/get/wchar_t/5.cc: New.
6838         * 22_locale/money_get/get/wchar_t/6.cc: New.
6839         * 22_locale/money_get/get/wchar_t/7.cc: New.
6840         * 22_locale/money_get/get/wchar_t/8.cc: New.
6841         * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
6842         * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
6843         * 22_locale/money_put/1.cc: New.
6844         * 22_locale/money_put/2.cc: New.
6845         * 22_locale/money_put/put/char/1.cc: New.
6846         * 22_locale/money_put/put/char/2.cc: New.
6847         * 22_locale/money_put/put/char/3.cc: New.
6848         * 22_locale/money_put/put/char/4.cc: New.
6849         * 22_locale/money_put/put/char/5.cc: New.
6850         * 22_locale/money_put/put/char/6.cc: New.
6851         * 22_locale/money_put/put/char/wrapped_env.cc: New.
6852         * 22_locale/money_put/put/char/wrapped_locale.cc: New.
6853         * 22_locale/money_put/put/wchar_t/1.cc: New.
6854         * 22_locale/money_put/put/wchar_t/2.cc: New.
6855         * 22_locale/money_put/put/wchar_t/3.cc: New.
6856         * 22_locale/money_put/put/wchar_t/4.cc: New.
6857         * 22_locale/money_put/put/wchar_t/5.cc: New.
6858         * 22_locale/money_put/put/wchar_t/6.cc: New.
6859         * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
6860         * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
6861         * 22_locale/moneypunct/1.cc: New.
6862         * 22_locale/moneypunct/2.cc: New.
6863         * 22_locale/moneypunct/3.cc: New.
6864         * 22_locale/moneypunct/members/char/1.cc: New.
6865         * 22_locale/moneypunct/members/char/2.cc: New.
6866         * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
6867         * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
6868         * 22_locale/moneypunct/members/wchar_t/1.cc: New.
6869         * 22_locale/moneypunct/members/wchar_t/2.cc: New.
6870         * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
6871         * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
6872         * 22_locale/moneypunct_byname/1.cc: New.
6873         * 22_locale/num_get/1.cc: New.
6874         * 22_locale/num_get/2.cc: New.
6875         * 22_locale/num_get/get/char/1.cc: New.
6876         * 22_locale/num_get/get/char/2.cc: New.
6877         * 22_locale/num_get/get/char/3.cc: New.
6878         * 22_locale/num_get/get/char/4.cc: New.
6879         * 22_locale/num_get/get/char/5.cc: New.
6880         * 22_locale/num_get/get/char/6.cc: New.
6881         * 22_locale/num_get/get/char/wrapped_env.cc: New.
6882         * 22_locale/num_get/get/char/wrapped_locale.cc: New.
6883         * 22_locale/num_get/get/wchar_t/1.cc: New.
6884         * 22_locale/num_get/get/wchar_t/2.cc: New.
6885         * 22_locale/num_get/get/wchar_t/3.cc: New.
6886         * 22_locale/num_get/get/wchar_t/4.cc: New.
6887         * 22_locale/num_get/get/wchar_t/5.cc: New.
6888         * 22_locale/num_get/get/wchar_t/6.cc: New.
6889         * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
6890         * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
6891         * 22_locale/num_put/1.cc: New.
6892         * 22_locale/num_put/2.cc: New.
6893         * 22_locale/num_put/put/char/1.cc: New.
6894         * 22_locale/num_put/put/char/2.cc: New.
6895         * 22_locale/num_put/put/char/3.cc: New.
6896         * 22_locale/num_put/put/char/4.cc: New.
6897         * 22_locale/num_put/put/char/5.cc: New.
6898         * 22_locale/num_put/put/char/wrapped_env.cc: New.
6899         * 22_locale/num_put/put/char/wrapped_locale.cc: New.
6900         * 22_locale/num_put/put/wchar_t/1.cc: New.
6901         * 22_locale/num_put/put/wchar_t/2.cc: New.
6902         * 22_locale/num_put/put/wchar_t/3.cc: New.
6903         * 22_locale/num_put/put/wchar_t/4.cc: New.
6904         * 22_locale/num_put/put/wchar_t/5.cc: New.
6905         * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
6906         * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
6907         * 22_locale/numpunct/1.cc: New.
6908         * 22_locale/numpunct/2.cc: New.
6909         * 22_locale/numpunct/members/char/1.cc: New.
6910         * 22_locale/numpunct/members/char/2.cc: New.
6911         * 22_locale/numpunct/members/char/wrapped_env.cc: New.
6912         * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
6913         * 22_locale/numpunct/members/wchar_t/1.cc: New.
6914         * 22_locale/numpunct/members/wchar_t/2.cc: New.
6915         * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
6916         * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
6917         * 22_locale/numpunct_byname/1.cc: New.
6918         * 22_locale/numpunct_byname/2.cc: New.
6919         * 22_locale/time_get/1.cc: New.
6920         * 22_locale/time_get/2.cc: New.
6921         * 22_locale/time_get/date_order/char/1.cc: New.
6922         * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
6923         * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
6924         * 22_locale/time_get/date_order/wchar_t/1.cc: New.
6925         * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
6926         * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
6927         * 22_locale/time_get/get_date/char/1.cc: New.
6928         * 22_locale/time_get/get_date/char/2.cc: New.
6929         * 22_locale/time_get/get_date/char/3.cc: New.
6930         * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
6931         * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
6932         * 22_locale/time_get/get_date/wchar_t/1.cc: New.
6933         * 22_locale/time_get/get_date/wchar_t/2.cc: New.
6934         * 22_locale/time_get/get_date/wchar_t/3.cc: New.
6935         * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
6936         * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
6937         * 22_locale/time_get/get_monthname/char/1.cc: New.
6938         * 22_locale/time_get/get_monthname/char/2.cc: New.
6939         * 22_locale/time_get/get_monthname/char/3.cc: New.
6940         * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
6941         * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
6942         * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
6943         * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
6944         * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
6945         * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
6946         * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
6947         * 22_locale/time_get/get_time/char/1.cc: New.
6948         * 22_locale/time_get/get_time/char/2.cc: New.
6949         * 22_locale/time_get/get_time/char/3.cc: New.
6950         * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
6951         * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
6952         * 22_locale/time_get/get_time/wchar_t/1.cc: New.
6953         * 22_locale/time_get/get_time/wchar_t/2.cc: New.
6954         * 22_locale/time_get/get_time/wchar_t/3.cc: New.
6955         * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
6956         * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
6957         * 22_locale/time_get/get_weekday/char/1.cc: New.
6958         * 22_locale/time_get/get_weekday/char/2.cc: New.
6959         * 22_locale/time_get/get_weekday/char/3.cc: New.
6960         * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
6961         * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
6962         * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
6963         * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
6964         * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
6965         * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
6966         * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
6967         * 22_locale/time_get/get_year/char/1.cc: New.
6968         * 22_locale/time_get/get_year/char/3.cc: New.
6969         * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
6970         * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
6971         * 22_locale/time_get/get_year/wchar_t/1.cc: New.
6972         * 22_locale/time_get/get_year/wchar_t/3.cc: New.
6973         * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
6974         * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
6975         * 22_locale/time_put/1.cc: New.
6976         * 22_locale/time_put/2.cc: New.
6977         * 22_locale/time_put/put/char/1.cc: New.
6978         * 22_locale/time_put/put/char/10.cc: New.
6979         * 22_locale/time_put/put/char/2.cc: New.
6980         * 22_locale/time_put/put/char/3.cc: New.
6981         * 22_locale/time_put/put/char/4.cc: New.
6982         * 22_locale/time_put/put/char/5.cc: New.
6983         * 22_locale/time_put/put/char/6.cc: New.
6984         * 22_locale/time_put/put/char/7.cc: New.
6985         * 22_locale/time_put/put/char/8.cc: New.
6986         * 22_locale/time_put/put/char/9.cc: New.
6987         * 22_locale/time_put/put/char/wrapped_env.cc: New.
6988         * 22_locale/time_put/put/char/wrapped_locale.cc: New.
6989         * 22_locale/time_put/put/wchar_t/1.cc: New.
6990         * 22_locale/time_put/put/wchar_t/10.cc: New.
6991         * 22_locale/time_put/put/wchar_t/2.cc: New.
6992         * 22_locale/time_put/put/wchar_t/3.cc: New.
6993         * 22_locale/time_put/put/wchar_t/4.cc: New.
6994         * 22_locale/time_put/put/wchar_t/5.cc: New.
6995         * 22_locale/time_put/put/wchar_t/6.cc: New.
6996         * 22_locale/time_put/put/wchar_t/7.cc: New.
6997         * 22_locale/time_put/put/wchar_t/8.cc: New.
6998         * 22_locale/time_put/put/wchar_t/9.cc: New.
6999         * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
7000         * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
7001
7002 2003-01-16  Jeffrey D. Oldham  <oldham@codesourcery.com>
7003
7004         * config/locale/generic/messages_members.h
7005         (messages_byname<_CharT>::messages_byname): Use this-> to refer to
7006         unqualified members of base clasess.
7007
7008 2003-01-16  Mark Mitchell  <mark@codesourcery.com>
7009             Jeffrey Oldham <oldham@codesourcery.com>
7010
7011         * config/locale/gnu/messages_members.h: Use this-> to refer to
7012         unqualified members of base clasess.
7013         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
7014         * include/bits/codecvt.h: Likewise.
7015         * include/bits/deque.tcc: Likewise.
7016         * include/bits/fstream.tcc: Likewise.
7017         * include/bits/istream.tcc: Likewise.
7018         * include/bits/list.tcc: Likewise.
7019         * include/bits/locale_facets.h: Likewise.
7020         * include/bits/ostream.tcc: Likewise.
7021         * include/bits/sstream.tcc: Likewise.
7022         * include/bits/stl_bvector.h: Likewise.
7023         * include/bits/stl_deque.h: Likewise.
7024         * include/bits/stl_list.h: Likewise.
7025         * include/bits/stl_tree.h: Likewise.
7026         * include/bits/stl_vector.h: Likewise.
7027         * include/bits/vector.tcc: Likewise.
7028         * include/ext/ropeimpl.h: Likewise.
7029         * include/ext/stdio_filebuf.h: Likewise.
7030         * include/ext/stl_rope.h: Likewise.
7031         * include/std/std_fstream.h: Likewise.
7032         * include/std/std_sstream.h: Likewise.
7033
7034 2003-01-15  Phil Edwards  <pme@gcc.gnu.org>
7035
7036         * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
7037
7038 2003-01-15  Benjamin Kosnik  <bkoz@redhat.com>
7039
7040         * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
7041         GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
7042         * aclocal.m4: Regenerate.
7043         * configure: Regenerate.
7044         * testsuite/Makefile.am (all-local): Add conditional rule to
7045         generate testsuite_wchar_t.
7046         * testsuite/Makefile.in: Regenerate.
7047         * testsuite/lib/libstdc++-v3-dg.exp
7048         (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
7049         testsuite_wchar_t is not present in the build directory.
7050         * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
7051         Remove setulimit bits.
7052         * testsuite/26_numerics/complex_value.cc: Set to noopts.
7053         * testsuite/Makefile.am (CLEANFILES): Add.
7054         * testsuite/Makefile.in: Regenerate.
7055
7056 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7057
7058         * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
7059         __hppa__.
7060
7061 2003-01-14  Jeffrey D. Oldham  <oldham@codesourcery.com>
7062
7063         Further conform g++'s __vmi_class_type_info to the C++ ABI
7064         specification.
7065         * libsupc++/cxxabi.h
7066         (__vmi_class_type_info::__flags_masks): Remove enumerations not
7067         required by the specification.
7068
7069 2003-01-12  Benjamin Kosnik  <bkoz@redhat.com>
7070
7071         Renames, namespaces for testsuite utilities.
7072         * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
7073         (gnu_allocator_tracker): Rename to allocation_tracker.
7074         (gnu_new_allocator): Rename to tracker_alloc.
7075         (__set_testsuite_memlimit): Rename to set_memory_limits.
7076         (gnu_assignment_operator): Rename to assignment_operator.
7077         (gnu_destructor): Rename to destructor.
7078         (gnu_copy_tracker): Rename to copy_tracker.
7079         (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
7080         (run_tests_wrapped_locale): New.
7081         (run_tests_wrapped_env): New.
7082         * testsuite/testsuite_hooks.cc: Same.
7083         (class locale_data): Add.
7084         (class enviornment_variable): Add.
7085         (class not_found): Add.
7086         * testsuite/testsuite_allocator.h: Same.
7087         * testsuite/testsuite_allocator.cc: Same.
7088         * testsuite/23_containers/deque_ctor.cc
7089         (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
7090         allocation_tracker.
7091         Change gnu_new_allocator to tracker_alloc.
7092         Change gnu_counting_struct to counter.
7093         Change gnu_copy_tracker to copy_tracker.
7094         Change gnu_copy_constructor to copy_constructor.
7095         Change gnu_assignment_operator to assignment_operator.
7096         Inject.
7097         * testsuite/23_containers/vector_capacity.cc: Same.
7098         * testsuite/23_containers/vector_ctor.cc (test01): Same.
7099         * testsuite/23_containers/list_modifiers.cc: Change
7100         gnu_copy_tracker to copy_tracker.
7101         * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
7102         __set_testsuite_memlimit to set_memory_limits.
7103         * testsuite/21_strings/insert.cc (main): Same.
7104         * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
7105         * testsuite/27_io/stringstream.cc: Same.
7106         * testsuite/27_io/stringbuf.cc: Same.
7107         * testsuite/27_io/streambuf.cc: Same.
7108         * testsuite/27_io/ostream.cc: Same.
7109         * testsuite/27_io/istream.cc: Same.
7110         * testsuite/27_io/fstream.cc: Same.
7111         * testsuite/lib/libstdc++-v3-dg.exp
7112         (libstdc++-v3-list-sourcefiles): Additionally handle files two and
7113         three levels deeper in glob patterns.
7114
7115 2003-01-11  Phil Edwards  <pme@gcc.gnu.org>
7116
7117         * docs/doxygen/tables.html:  Finished now.
7118         * docs/doxygen/user.cfg.in:  Update to latest version of Doxygen.
7119         * include/bits/basic_ios.h (basic_ios::rdbuf):  Add example to
7120         comments.
7121
7122         * include/bits/deque.tcc, include/bits/stl_alloc.h,
7123         include/bits/stl_deque.h, include/bits/stl_list.h,
7124         include/bits/stl_vector.h:  Remove _GLIBCPP_DEPRECATED bits scheduled
7125         for 3.4 removal.
7126
7127 2003-01-09  Benjamin Kosnik  <bkoz@redhat.com>
7128
7129         * configure.in: Revert.
7130         * configure: Regenerate.
7131
7132 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
7133
7134         * include/Makefile.am (install-data-local): Prepend
7135         $(DESTDIR) to destination paths in all (un)installation
7136         commands.  Use ${c_base_builddir} and ${std_builddir}
7137         as destination subdirectories to achieve consistency with
7138         preceding mkinstalldirs commands.  No effect because both
7139         variables contain "." only.
7140         * include/Makefile.in: Regenerate.
7141
7142 2003-01-08  Benjamin Kosnik  <bkoz@redhat.com>
7143
7144         * include/Makefile.am (stamp-*): Add checks for existing stamps.
7145         * include/Makefile.in: Regenerate.
7146
7147         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
7148         * aclocal.m4: Regenerate.
7149
7150         * configure.in: Don't add new multi-do rules every time the
7151         directory is reconfigured.
7152         * configure: Regenerate.
7153
7154 2003-01-08  Brad Spencer  <spencer@infointeractive.com>
7155             Nathan Myers  <ncm@cantrip.org>
7156
7157         * src/Makefile.am (stamp-debug): Clean.
7158         * src/Makefile.in: Regenerate.
7159
7160 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
7161
7162         PR libstdc++/8707
7163         * Makefile.am (distclean-multi): Fix.
7164         * Makefile.in: Regenerate.
7165
7166 2003-01-06  Benjamin Kosnik  <bkoz@redhat.com>
7167
7168         * include/bits/locale_facets.h (messages): Move ctor, dtor
7169         definitions to..
7170         (__timepunct): Same.
7171         * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
7172         definitions. Conditionalize for GNU systems.
7173         * config/locale/generic/messages_members.h (messages): Add dtor, ctor
7174         definitions.
7175         * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
7176         definitions. Conditionalize for GNU systems.
7177         * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
7178         definitions.
7179         * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
7180         * src/locale.cc: Define.
7181         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
7182         Use it.
7183         * config/locale/gnu/time_members.h: Use it.
7184         * config/locale/gnu/messages_members.h: Use it.
7185         * config/linker-map.gnu: Add locale::facets details.
7186         * include/Makefile.am (target_headers_extra): Add time_members.h.
7187         * include/Makefile.in: Regenerate.
7188         * acinclude.m4: Export CTIME_H.
7189         * aclocal.m4: Regenerate.
7190         * configure: Regnerate.
7191
7192 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
7193
7194         * src/codecvt.cc
7195         (codecvt<char, char, mbstate_t>::do_in, do_out):
7196         Tweak parameters to avoid unused parameter warnings.
7197
7198 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
7199
7200         PR libstdc++/9151
7201         * include/bits/locale_facets.cc (num_put::_M_convert_float):
7202         Limit __prec to digits10 + 2, not digits10 + 1, taking into
7203         account the possibility of %{g,G} conversion specifiers
7204         inside _S_format_float.
7205         * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
7206
7207 2003-01-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7208
7209         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
7210         libstdc++-v3-list-sourcefiles): Additionally handle files one
7211         level deeper in glob patterns.
7212
7213         * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
7214         * testsuite/27_io/istream_extractor_arith/01.cc,
7215         testsuite/27_io/istream_extractor_arith/02.cc,
7216         testsuite/27_io/istream_extractor_arith/03.cc,
7217         testsuite/27_io/istream_extractor_arith/06.cc,
7218         testsuite/27_io/istream_extractor_arith/07.cc,
7219         testsuite/27_io/istream_extractor_arith/08.cc,
7220         testsuite/27_io/istream_extractor_arith/09.cc,
7221         testsuite/27_io/istream_extractor_arith/10.cc,
7222         testsuite/27_io/istream_extractor_arith/11.cc,
7223         testsuite/27_io/istream_extractor_arith/12.cc,
7224         testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
7225         * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
7226         sparc*-*-solaris2*.
7227
7228 2003-01-05  Paolo Carlini <pcarlini@unitus.it>
7229
7230         PR libstdc++/9168
7231         * src/codecvt.cc
7232         (codecvt<char, char, mbstate_t>::do_in, do_out):
7233         Implement the resolution of DR19 (TC).
7234         * testsuite/22_locale/codecvt_members_char_char.cc
7235         (test01): Tweak.
7236
7237 2003-01-02  Jason Merrill  <jason@redhat.com>
7238
7239         * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
7240         *__mem is also an output.
7241         * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.