OSDN Git Service

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