OSDN Git Service

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