OSDN Git Service

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