OSDN Git Service

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