OSDN Git Service

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