OSDN Git Service

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