OSDN Git Service

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