OSDN Git Service

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