OSDN Git Service

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