OSDN Git Service

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