OSDN Git Service

494f5bf4e40fc62c77e0ec883464ed79f88181c9
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
2
3         * src/locale.cc (locale::locale(const char*)): ... one
4         more comparison missed in the previous commit.
5
6 2003-10-16  Benjamin Kosnik  <bkoz@redhat.com>
7
8         * acconfig.h: Add HAVE_DRAND48 and HAVE_ISATTY.
9         * aclocal.m4: Regenerated.
10         * config.h.in: Regenerated.
11         
12 2003-10-16  Bernardo Innocenti  <bernie@develer.com>
13
14         * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
15         __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
16         Document SMP safeness of asm macros.
17
18 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
19
20         * src/locale.cc (locale::locale(const char*)): Tweak
21         a couple of comparisons to use basic_string operators.
22
23 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
24
25         PR libstdc++/12540
26         * config/locale/gnu/monetary_members.cc
27         (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
28         Don't leak memory if new throws.
29         * src/locale.cc (locale::locale(const char*)): In order not
30         to leak memory in case new throws, use a basic_string type
31         for __res too and avoid strdup.
32
33 2003-10-14  Jeff Bailey  <jbailey@nisa.net>
34         
35         PR libstdc++/12562
36         * crossconfig.m4: Share the config between *-linux* and *-gnu*.
37         * configure: Regenerate.
38
39 2003-10-14  Carlo Wood  <carlo@alinoe.com>
40
41         PR libstdc++/12600
42         * include/bits/demangle.h (session<Allocator>::
43           decode_unqualified_name(string_type& output)): Fail on a
44           <operator-name> when decoding <template-argument>.
45         * testsuite/demangle/regression/cw-15.cc: New.
46
47 2003-10-14  Paolo Carlini  <pcarlini@unitus.it>
48
49         PR libstdc++/11480
50         * include/bits/stl_algo.h (unique): Fix.
51         * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
52         * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
53         * testsuite/25_algorithms/unique/2.cc: New.
54
55 2003-10-14  Paolo Carlini  <pcarlini@unitus.it>
56
57         * src/localename.cc (_M_replace_categories, M_replace_facet):
58         Const-ify a couple of variables.
59
60 2003-10-14  Petur Runolfsson  <peturr02@ru.is>
61             Andreas Tobler  <a.tobler@schweiz.ch>
62
63         * src/locale.cc (locale::_S_initialize): Workaround a confusion
64         of the use of the gthr API when __gthread_active_p() returns true.
65
66 2003-10-12  Petur Runolfsson  <peturr02@ru.is>
67             Paolo Carlini  <pcarlini@unitus.it>
68
69         PR libstdc++/11460
70         * src/strstream.cc (pbackfail): Fix to use to_int_type.
71         * testsuite/backward/11460.cc: New, from the PR.
72
73 2003-10-12  Paolo Carlini  <pcarlini@unitus.it>
74
75         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
76         Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
77         * include/bits/basic_string.tcc: Likewise.
78         * include/bits/ios_base.h: Likewise.
79         * include/bits/istream.tcc: Likewise.
80         * include/bits/locale_facets.tcc: Likewise.
81         * include/bits/ostream.tcc: Likewise.
82         * include/bits/stl_function.h: Likewise.
83         * include/bits/stl_multiset.h: Likewise.
84         * include/bits/stl_pair.h: Likewise.
85         * include/bits/stl_set.h: Likewise.
86         * include/bits/streambuf_iterator.h
87         * include/std/std_iosfwd.h: Likewise.
88         * include/std/std_istream.h: Likewise.
89         * include/std/std_sstream.h: Likewise.
90         * include/std/std_streambuf.h: Likewise.
91         * src/ios.cc: Likewise.
92         * include/bits/c++config:
93         Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
94         * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
95         dg-error directive due to removal of a blank line.
96         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
97
98 2003-10-12  Andreas Tobler  <a.tobler@schweiz.ch>
99             Paolo Carlini  <pcarlini@unitus.it>
100
101         PR libstdc++/11844/11740 (cont)
102         * config/os/generic/ctype_inline.h (ctype<char>::is):
103         Generically, use a bitmasksize of 15 (instead of 10);
104         Fix the logic to actually return (M & m) != 0 as per
105         22.2.1.1.2.
106
107 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
108
109         * crossconfig.m4 (*-uclinux*): New target.
110         * configure: Regenerate.
111
112 2003-10-10  Paolo Carlini  <pcarlini@unitus.it>
113
114         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
115         Avoid unnecessarily calling __builtin_alloca and dealing
116         explicitly with width() smaller than zero.
117         (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
118         const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
119         const char*), operator<<(basic_ostream<char, _Traits>&,
120         const char*), operator<<(basic_ostream, const basic_string&)):
121         Likewise.
122
123 2003-10-09  Benjamin Kosnik  <bkoz@redhat.com>
124
125         * config/linker-map.gnu: Make more *_type_info bits visible.
126         Move new/delete bits back into GLIBCXX space.
127
128         * include/bits/locale_classes.h: Move _M_id out of line, so that
129         locale::id::_S_highwater can be removed from the export list.
130         * src/locale.cc (locale::id::_M_id): Define.
131         
132 2003-10-09  Andreas Tobler  <a.tobler@schweiz.ch>
133
134         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
135         SPARC64.
136
137 2003-10-09  Paolo Carlini  <pcarlini@unitus.it>
138
139         PR libstdc++/11844
140         * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
141         to conform to the requirements of 22.2.1.
142         * config/os/bsd/freebsd/ctype_base.h: Likewise.
143         * config/os/djgpp/ctype_base.h: Likewise.
144         * config/os/generic/ctype_base.h: Likewise.
145         * config/os/gnu-linux/ctype_base.h: Likewise.
146         * config/os/hpux/ctype_base.h: Likewise.
147         * config/os/irix/irix6.5/ctype_base.h: Likewise.
148         * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
149         * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
150         * testsuite/22_locale/ctype/11844.cc: New.
151
152         * config/locale/generic/ctype_members.cc (do_is):
153         Generically, use a bitmasksize of 15 (instead of 10), since
154         we don't know the numerical encoding of the various categories
155         in the underlying /usr/include/ctype.h.
156
157 2003-10-09  Benjamin Kosnik  <bkoz@redhat.com>
158
159         * src/string-inst.cc: Prune.
160         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
161         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
162         
163 2003-10-09  Petur Runolfsson  <peturr02@ru.is>
164
165         * src/io-inst.cc: Don't include iostream.
166         * include/bits/ios_base.h (ios_base::failure): Use string.
167         * src/Makefile.am: Add ios_failure.cc.
168         * src/Makefile.in: Regenerate.
169         * src/ios.cc: Move ios_base::failure definitions to...
170         * src/ios_failure.cc: ...here. New.
171
172 2003-10-09  Petur Runolfsson  <peturr02@ru.is>
173
174         PR libstdc++/9874
175         * include/bits/fstream.tcc (basic_filebuf::seekoff):
176         Move code needed for both seekoff and seekpos...
177         (basic_filebuf::_M_seek): ...here. New function.
178         (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
179         * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
180         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
181
182         * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
183
184 2003-10-08  Paolo Carlini  <pcarlini@unitus.it>
185
186         * include/bits/locale_facets.tcc: More minor cosmetic
187         changes and const-ifications of some variables.
188
189 2003-10-07  Paolo Carlini  <pcarlini@unitus.it>
190
191         * include/bits/locale_facets.tcc: Minor cosmetic changes
192         and const-ifications of some variables.
193
194         * include/bits/locale_facets.tcc
195         (money_get::do_get(..., string_type&)): Simplify an if-else.
196
197 2003-10-06  Paolo Carlini  <pcarlini@unitus.it>
198
199         PR libstdc++/11740
200         * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
201         Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
202         * config/locale/generic/ctype_members.cc: Same.
203         * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
204
205 2003-10-06  Paolo Carlini  <pcarlini@unitus.it>
206
207         * include/bits/locale_facets.tcc (__pad<>::_S_pad):
208         Improve performance-wise: avoid one traits::copy, avoid
209         the __builtin_alloca, streamline.
210
211 2003-10-05  Paolo Carlini  <pcarlini@unitus.it>
212
213         * include/bits/locale_facets.tcc
214         (num_put::do_put(..., bool)): Prefer ?: to if-else.
215         (time_get::_M_extract_name): Qualify min with std::.
216         (__pad<>::_S_pad): Constify two variables; simplify an
217         if-else statement factoring out some code.
218
219         * include/bits/locale_facets.tcc: Minor cosmetic changes.
220
221 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
222
223         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
224         Constify a couple of variables.
225         (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
226         ++__beg to *__beg++.
227
228 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
229             Petur Runolfsson  <peturr02@ru.is>
230
231         * include/ext/stdio_sync_filebuf.h: Don't include the whole
232         <fstream>, only <streambuf> and <cstdio>.
233
234 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
235
236         PR libstdc++/12206
237         * include/bits/fstream.tcc (imbue): In case a codecvt facet
238         is not available, set _M_codecvt = 0.
239         * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
240
241 2003-10-02  Harald Boehme  <boehme@informatik.hu-berlin.de>
242
243         PR libstdc++/12451
244         * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
245         
246 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
247
248         * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
249         * src/locale.cc: Define.
250         * src/localename.cc: Use it.
251         * config/locale/generic/time_members.h: Same.
252         * config/locale/gnu/messages_members.h: Same.
253         * config/locale/gnu/time_members.h: Same.
254
255 2003-10-02  Paolo Carlini  <pcarlini@unitus.it>
256
257         PR libstdc++/12232
258         * include/bits/fstream.tcc (seekoff): Ignore the openmode
259         argument; simplify.
260         * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
261         seekpos): Remove the openmode argument.
262         * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
263         seekpos): Remove redundant placeholder for the openmode argument.
264         * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
265         * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
266         * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
267         * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
268         * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
269
270 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
271
272         * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
273         (locale::facet::_S_get_c_locale): Same.
274         
275 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
276
277         * config/linker-map.gnu: Export _S_get_c_locale instead of
278         _S_c_locale object.
279
280 2003-10-02  Petur Runolfsson  <peturr02@ru.is>
281
282         * config/locale/generic/c_locale.cc
283         (category_names, locale::_S_categories): Const qualify.
284         * config/locale/gnu/c_locale.cc: Same.
285         * config/locale/generic/time_members.h (__timepunct::__timepunct):
286         Copy string contents before assigning to _M_name_timepunct,
287         qualify strcpy and strlen with std::.
288         * config/locale/gnu/time_members.h: Same.
289         * config/locale/gnu/messages_members.h (messages::messages):
290         Copy string contents before assigning to _M_name_messages,
291         qualify strcpy and strlen with std::.
292         * config/os/gnu-linux/ctype_noninline.h
293         (ctype<char>::classic_table()): Don't call locale::classic().
294         * include/bits/locale_classes.h
295         (locale::_S_categories): Const qualify. 
296         (locale::_S_once, locale::_S_initialize_once,
297         locale::facet::_S_once, locale::facet::_S_initialize_once,
298         locale::facet::_S_get_c_locale): Declare.
299         (locale::_S_initialize): Don't define.
300         (locale::facet::_S_c_locale): Make private.
301         (locale::facet::_S_c_name): Same, const qualify.
302         (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
303         parameters, add throw() specifier.
304         * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
305         messages::_M_name_messages): Const qualify.
306         * src/locale.cc
307         (locale::_S_once, locale::facet::_S_once): Define.
308         (locale::classic): Move initialization code...
309         (locale::_S_initialize_once): ...here.  
310         (locale::_S_initialize): Call _S_initialize_once through
311         __gthread_once.
312         (locale::facet::_S_initialize_once): Initialize _S_c_locale.
313         (locale::facet::_S_get_c_locale): Call _S_initialize_once through
314         __gthread_once before returning _S_c_locale.
315         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
316         Drop unused parameters, add throw() specifier, don't initialize
317         locale::facet::_S_c_locale and _S_c_name.
318         
319         * config/locale/generic/messages_members.h:
320         Replace _S_c_locale with _S_get_c_locale().
321         * config/locale/gnu/c_locale.cc: Same.
322         * config/locale/gnu/messages_members.h: Same.
323         * config/locale/gnu/numeric_members.cc: Same.
324         * config/locale/gnu/time_members.cc: Same.
325         * config/os/gnu-linux/ctype_noninline.h: Same.
326         * include/bits/locale_facets.h: Same.
327         * include/bits/locale_facets.tcc: Same.
328         * src/codecvt.cc: Same.
329         * src/ctype.cc: Same.
330
331 2003-10-02  Carlo Wood  <carlo@alinoe.com>
332
333         * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
334         Decode symbols that start with _GLOBAL_[ID]_ differently: the
335         trailing part ends with a terminating zero and is not necessarily an
336         encoding.
337         * src/demangle.cc (): Same.
338         * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
339
340 2003-10-02  Paolo Carlini  <pcarlini@unitus.it>
341
342         * testsuite/22_locale/locale/cons/12438.cc: Use
343         __gnu_test::try_named_locale("").
344
345 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
346
347         * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
348         (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
349         instead of drand48.
350         * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
351         * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
352         HAVE_DRAND48.
353         * config.h.in, configure: Regenerate.
354         * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
355         lrand48 use.
356
357 2003-10-01  Nathan Myers  <ncm@cantrip.org>
358
359         * include/bits/locale_facets.tcc (time_put::put): Avoid
360         expensive *__s++, in favor of *__s, ++__s.
361
362 2003-10-01  Paolo Carlini  <pcarlini@unitus.it>
363
364         * include/bits/locale_facets.tcc (time_put::put): Minor
365         tweak to the previous commit.
366
367 2003-10-01  Paolo Carlini  <pcarlini@unitus.it>
368
369         PR libstdc++/12439
370         * include/bits/locale_facets.tcc (time_put::put): Deal
371         with the three issues pointed out by the PR.
372         * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
373         * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
374         * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
375         * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
376         * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
377
378 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
379
380         * include/bits/stl_algo.h: Minor cosmetic reformattings.
381
382 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
383
384         * include/bits/stl_algo.h (search_n): Tweak, to spare the
385         first --__n.
386
387 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
388
389         * testsuite/22_locale/locale/cons/12352.cc: Explicitly
390         qualify exception name.
391
392 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
393
394         PR libstdc++/12438
395         * include/bits/locale_facets.tcc (locale::combine): Don't
396         leak memory if _M_replace_facet throws.
397         * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
398
399         * include/bits/locale_classes.h (locale::locale(const locale&,
400         _Facet*)): Tweak, use consistently _M_remove_reference.
401
402 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
403
404         PR libstdc++/12352 (cont)
405         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
406         Don't leak __cloc; don't leak if any of the _M_init_facet(...)
407         calls fail.
408         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
409         (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
410         !_M_caches, !_M_names.
411
412 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
413
414         * configure.host: Handle Solaris 2.5 micro releases explicitly.
415         Remove wildcards from Solaris 2.6, 7-9: there were no
416         micro releases.
417         Treat Solaris 10 and up like 7-9.
418
419 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
420
421         * include/bits/stl_algo.h (search_n): Improve the previous
422         fix as suggested by Martin.
423
424 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
425
426         PR libstdc++/12296
427         * include/bits/istream.tcc (peek): Set eofbit if sgetc
428         returns eof.
429         * testsuite/27_io/basic_istream/peek/char/12296.cc:
430         New, from the PR.
431
432 2003-09-29  Nathan Myers  <ncm@cantrip.org>
433             Paolo Carlini  <pcarlini@unitus.it>
434
435         PR libstdc++/11400
436         * include/bits/stl_algo.h (search_n):
437         Use iterator_traits<>::difference_type for __n.
438         * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
439
440 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
441
442         * testsuite/22_locale/locale/cons/12352.cc:
443         Use __attribute__((unused)) for test.
444
445 2003-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
446
447         * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either 
448         "Son" or "So" as abbreviated name for Sunday in de_DE locale.
449         * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
450
451 2003-09-26  Brad Spencer  <spencer@infointeractive.com>
452
453         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
454         Explicitly qualify exceptions.
455         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
456         * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
457         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
458         * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
459         
460 2003-09-25  Paolo Carlini  <pcarlini@unitus.it>
461
462         PR libstdc++/12352
463         * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
464         size_t)): Don't leak if memory allocations for _M_facets,
465         _M_caches, and _M_names fail.
466         (locale::_Impl::_Impl(const char*, size_t)): Ditto.
467         (locale::_Impl::_M_replace_categories(const _Impl*,
468         category)): Ditto.
469         (locale::_Impl::_M_install_facet(const locale::id*,
470         const facet*)): Ditto.
471         * include/bits/locale_classes.h (locale::locale(const locale&,
472         _Facet*)): Don't leak memory.
473         * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
474
475         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
476         bool)): Qualify with std:: strcpy, tweak.
477         * include/bits/locale_classes.h
478         (locale::_Impl::_M_check_same_name): Qualify strcmp.
479
480 2003-09-25  Brad Spencer  <spencer@infointeractive.com>
481
482         PR libstdc++/6072
483         * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
484         wcstof, iswblank.       
485         * aclocal.m4: Regenerate.
486         * config.h.in: Regenerate.
487         * configure: Regenerate.
488         * crossconfig.m4: Add in wchar_t bits for solaris crosses.
489         * config/io/basic_file_stdio.cc: Guard unistd.h.
490         * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
491         * include/c_std/std_cwchar.h: Same.
492         * include/c_std/std_cwctype.h: Same.
493         
494 2003-09-25  Benjamin Kosnik  <bkoz@redhat.com>
495
496         PR libstdc++/11065
497         * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
498         * config/locale/generic/ctype_members.cc: Same.
499         * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
500         * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
501
502         * config/os/generic/ctype_inline.h: Update.
503         
504 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
505
506         * src/Makefile.am (version_dep): New variable.
507         (libstdc___la_DEPENDENCIES): Use it to add dependency on
508         libstdc++-symbol.ver only when using symbol versioning.
509         * src/Makefile.in: Regenerate.
510
511 2003-09-23  Benjamin Kosnik  <bkoz@redhat.com>
512
513         * include/bits/locale_facets.tcc: Tweak to avoid warnings.
514         * testsuite/testsuite_hooks.h: Same.
515         * testsuite/*/*.cc: Same.
516
517 2003-09-22  Petur Runolfsson  <peturr02@ru.is>
518
519         * include/bits/istream.tcc (basic_istream::read,
520         basic_istream::readsome, basic_istream::putback,
521         basic_istream::unget, operator>>(basic_istream, CharT)):
522         Avoid redundant setstate(failbit) calls when sentry::operator bool()
523         returns false.
524
525 2003-09-22  Carlo Wood  <carlo@alinoe.com>
526
527         PR libstdc++/12365
528         * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
529         char const*, int, int)):  Remove unused identifier
530         cv_qualifier for overloaded constructor.
531
532 2003-09-18  Benjamin Kosnik  <bkoz@redhat.com>
533
534         PR libstdc++/11504
535         * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
536         WARN_FLAGS, remove -Wno-format.
537         * aclocal.m4: Regenerate.
538         * configure: Regenerate.
539
540 2003-09-18  Petur Runolfsson  <peturr02@ru.is>
541
542         * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
543         * config/io/basic_file_stdio.h: Same.
544         * include/std/std_fstream.h (__ctype_type): Delete.
545         * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
546         
547 2003-09-17  Benjamin Kosnik  <bkoz@redhat.com>
548
549         PR libstdc++/12239
550         * configure.host (abi_baseline_pair): Error out on solaris2
551         configurations without a minor version number.
552
553 2003-09-13  Phil Edwards  <phil@codesourcery.com>
554
555         * docs/doxygen/run_doxygen:  Clear GENERATE_TAGFILE entirely
556         if man pages are on.
557         * docs/doxygen/user.cfg.in:  And here.
558
559 2003-09-10  Daniel Jacobowitz  <drow@mvista.com>
560             Andreas Jaeger <aj@suse.de>
561
562         PR libstdc++/12189
563         * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
564         abi_check if cross compiling.
565         * aclocal.m4: Regenerated.
566         * configure: Regenerated.
567
568 2003-09-10  Jeffrey D. Oldham  <oldham@codesourcery.com>
569
570         * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
571         NULL, return NULL.  This reflects a C++ ABI change 2003 Sep 05.
572         (__cxa_vec_new3): Likewise.
573
574 2003-09-10  Petur Runolfsson  <peturr02@ru.is>
575
576         * include/bits/fstream.tcc (basic_filebuf::seekoff):
577         Use codecvt::length to handle variable-width stateless encodings
578         correctly.
579         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
580         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
581
582 2003-09-10  Alan Modra  <amodra@bigpond.net.au>
583
584         * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
585         rather than or'ing.
586
587 2003-09-09  Alan Modra  <amodra@bigpond.net.au>
588
589         * configure: Regenerate.
590
591 2003-09-09  David Edelsohn  <edelsohn@gnu.org>
592
593         * src/ios.cc (ios_base::Init::Init): Remove unnecessary
594         qualifier from _S_synced_with_stdio.
595
596 2003-09-09  Bernardo Innocenti  <bernie@develer.com>
597
598         * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
599
600 2003-09-04  Petur Runolfsson  <peturr02@ru.is>
601
602         PR libstdc++/9028
603         * include/bits/fstream.tcc
604         (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
605         (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
606         _M_ext_buf_size, _M_ext_next and _M_ext_end.
607         (basic_filebuf::underflow): Handle variable-width stateless
608         encodings (codecvt::encoding() == 0), including UTF-8.
609         * include/std/std_fstream.h (basic_filebuf):
610         Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
611         * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
612         * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
613         * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
614         * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
615         * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
616         * testsuite/27_io/objects/wchar_t/12.cc: New test.
617         * testsuite/27_io/objects/wchar_t/13.cc: New test.
618
619 2003-09-04  Jonathan Wakely  <redi@gcc.gnu.org>
620
621         * docs/html/faq/index.html: Note that a namespace alias can't be
622         used when specialising templates in extension namespace.
623         * docs/html/faq/index.txt: Regenerate.
624
625 2003-09-03  Petur Runolfsson  <peturr02@ru.is>
626
627         PR libstdc++/12048
628         * include/ext/stdio_sync_filebuf.h
629         (stdio_sync_filebuf::_M_unget_buf): Declare it.
630         (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
631         (stdio_sync_filebuf::uflow): Store the returned character in
632         _M_unget_buf.
633         (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
634         _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
635         (stdio_sync_filebuf<char>::xsgetn): Store last read character in
636         _M_unget_buf, if any, else eof().
637         (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
638         _M_unget_buf, if any, else eof().
639         * testsuite/27_io/objects/char/12048.cc: Rename to...
640         * testsuite/27_io/objects/char/12048-1.cc: ...this.
641         * testsuite/27_io/objects/char/12048-2.cc: New test.
642         * testsuite/27_io/objects/char/12048-3.cc: New test.
643         * testsuite/27_io/objects/char/12048-4.cc: New test.
644         * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
645         * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
646         * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
647         * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
648         * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
649         * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
650         * testsuite/ext/stdio_sync_filebuf_char.cc
651         (test02, test03, test04, test05): New tests.
652         * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
653         (test02, test03, test04, test05): New tests.
654
655 2003-09-03  Petur Runolfsson  <peturr02@ru.is>
656
657         * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
658         stringbuf or strstreambuf. Fix typos.
659
660 2003-09-02  Phil Edwards  <phil@codesourcery.com>
661
662         * acinclude.m4 (GLIBCXX_ENABLE_HOSTED):  #define _GLIBCXX_HOSTED
663         appropriately.
664         * config.h.in:  Add _GLIBCXX_HOSTED.
665         * libsupc++/eh_term_handler.cc:  Test it here; initialize
666         __terminate_handler to std::abort if freestanding.
667         * aclocal.m4, configure:  Regenerated.
668         * docs/html/configopts.html:  Document --disable-hosted-libstdcxx.
669
670 2003-08-29  Nathan Myers  <ncm@cantrip.org>
671         
672         PR libstdc++/11990      
673         * include/bits/locale_facets.tcc (__pad): delete dead code.
674
675 2003-08-28  Alan Modra  <amodra@bigpond.net.au>
676
677         * configure.ac: Test $with_cross_host against $build_alias, not $build.
678         * configure: Regenerate.
679
680 2003-08-27  Petur Runolfsson  <peturr02@ru.is>
681
682         * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
683         * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
684
685 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
686
687         * Makefile.am:  Remove trailing whitespace.  Remove needless
688         "foo = @foo@" assignments.  Replace direct uses of @foo@ with $(foo).
689         * include/Makefile.am:  Likewise.
690         * libmath/Makefile.am:  Likewise.
691         * libsupc++/Makefile.am:  Likewise.
692         * po/Makefile.am:  Likewise.
693         * src/Makefile.am:  Likewise.
694         * testsuite/Makefile.am:  Likewise.
695
696         * Makefile.in, include/Makefile.in, libmath/Makefile.in,
697         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
698         testsuite/Makefile.in:  Regenerated.
699
700 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
701
702         * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES):  Change quoting of
703         includedir.
704         * aclocal.m4, configure:  Regenerate.
705
706 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
707
708         * acinclude.m4: Include no-executables.m4.
709         * configure.ac: Uncomment GCC_NO_EXECUTABLES.
710         * aclocal.m4: Regenerated.
711         * configure: Regenerated.
712
713 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
714
715         * acinclude.m4: Don't call AC_ISC_POSIX.
716         * aclocal.m4: Regenerated.
717         * configure: Regenerated.
718
719 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
720
721         * acinclude.m4 (GLIBCXX_CONDITIONAL):  New macro.  Wrap
722         AM_CONDITIONAL.  Replace all calls to AM_CONDITIONAL with this one.
723         (GLIBCXX_ENABLE_HOSTED):  New macro, sets new variable is_hosted,
724         used elsewhere in this file.
725         (GLIBCXX_EVALUATE_CONDITIONALS):  New macro...
726         * configure.ac:  ...called here to expand all conditionals.
727         * Makefile.am:  Conditionalize SUBDIRS on GLIBCXX_HOSTED.
728         * include/Makefile.am:  Remove redundant gxx_include_dir assignment.
729         (install-freestanding-headers):  New target, a subset of
730         install-headers.  Conditionalize install-data-local on GLIBCXX_HOSTED.
731
732         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
733         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
734         src/Makefile.in, testsuite/Makefile.in:  Regenerated.
735
736 2003-08-26  Phil Edwards  <pme@gcc.gnu.org>
737
738         * docs/doxygen/run_doxygen:  Shell fixes.  Remove hardcoded local
739         pathnames from generated tag file.
740
741 2003-08-26  Phil Edwards  <pme@gcc.gnu.org>
742
743         * Makefile.am:  Add comment.
744         * acinclude.m4 (GLIBCXX_CONFIGURE):  Set new glibcxx_SUBDIRS and
745         SUBDIRS variables.
746         * configure.ac:  Use them both here, instead of hardcoded lists.
747
748         * fragment.am:  Add STAMP varaible.
749         * include/Makefile.am:  Cosmetic whitespace cleanup.  Use $(LN_S)
750         instead of @LN_S@.
751         (stamp-*):  Move file creation rule outside of 'if' branches to
752         ensure the stamp-* files are actually updated.  Use $(STAMP).
753         * src/Makefile.am:  Remove now-nonexistant variable.
754         * libsupc++/Makefile.am:  Likewise.  Snap the assignment chain
755         for -prefer-pic.
756         * po/Makefile.am:  Include same fragment as all the others.
757
758         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
759         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in:  Regenerated.
760
761 2003-08-26  Loren J. Rittle  <ljrittle@acm.org>
762
763         * testsuite/data/cin_unget-1.txt: New.
764         * testsuite/27_io/objects/char/12048.cc: New.
765
766 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
767
768         * config/os/hpux/os_defines.h: Unconditionally define
769         _GLIBCXX_GTHREAD_USE_WEAK to 0.
770
771 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
772
773         * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
774         crosses to Darwin targets.
775         * configure: Regenerate.
776
777 2003-08-19  Petur Runolfsson  <peturr02@ru.is>
778
779         * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
780
781 2003-08-17  Phil Edwards  <pme@gcc.gnu.org>
782
783         * configure.ac:  GCC_NO_EXECUTABLES was supposed to be commented
784         in the patch from 3 minutes ago.  Boy, is my face red.
785         * configure:  At least I remembered to regenerate this.
786
787 2003-08-17  Phil Edwards  <pme@gcc.gnu.org>
788
789         * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES):  Remove LIBMATH_INCLUDES
790         and LIBSUPCXX_INCLUDES.  Re-purpose TOPLEVEL_INCLUDES to refer to
791         things from the top level.
792         * configure.ac (GLIBCXX_IS_NATIVE):  Determine earlier and re-order.
793         Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
794         (currently unused).  Strip the fake-VPATH shell fragment from
795         automake-generated rules, if present.
796         * linkage.m4:  Add comment.
797
798         * fragment.am:  New file, containing factored-out common settings.
799         (AM_CPPFLAGS):  Absorb the deprecated INCLUDES variable contents.
800         * Makefile.am:  Include fragment.am.  Remove common variables.
801         * include/Makefile.am:  Likewise.
802         * libmath/Makefile.am:  Likewise.
803         * libsupc++/Makefile.am:  Likewise.
804         * po/Makefile.am:  Likewise.  Print rules during check.
805         * src/Makefile.am:  Likewise.
806         * testsuite/Makefile.am:  Likewise.
807
808         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
809         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
810         src/Makefile.in, testsuite/Makefile.in:  Regenerate.
811
812 2003-08-11  John Levon  <levon@movementarian.org>
813
814         * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
815         remaining places for the name change from GLIBCPP_FORCE_NEW
816         to GLIBCXX_FORCE_NEW
817
818 2003-08-11  Benjamin Kosnik  <bkoz@redhat.com>
819
820         * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
821         typedefs to num_*.
822         * include/bits/basic_ios.tcc: Same.
823         * include/bits/istream.tcc: Same.
824         * include/bits/locale_facets.h: Same.
825         * include/bits/ostream.tcc: Same.
826         * include/std/std_istream.h: Same.
827         * include/std/std_ostream.h: Same.
828         * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
829
830         * include/ext/rope: Remove build warning.
831
832 2003-08-11  Andreas Jaeger  <aj@suse.de>
833
834         * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
835         to make SMP-safe.
836         * include/Makefile.in: Regenerated.
837
838 2003-08-11  Phil Edwards  <pme@gcc.gnu.org>
839
840         * acinclude.m4 (GLIBCXX_CONFIGURE):  Unprecious CC and CFLAGS
841         when calling AC_PROG_CC.
842         * aclocal.m4, configure:  Regenerate.
843
844 2003-08-11  Phil Edwards  <pme@gcc.gnu.org>
845
846         * acinclude.m4:  Properly quote variable which will be expanded
847         inside makefiles.  Use CXX instead of CC to extract compiler info.
848         * configure.ac (AC_INIT):  Use the new 4-arg form to finally get the
849         correct form in PACKAGE.
850         * aclocal.m4, configure:  Regenerate.
851
852 2003-08-08  Benjamin Kosnik  <bkoz@redhat.com>
853
854         * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
855         (check-abi-verbose): Same.
856         * testsuite/testsuite_performance.h (report_performance): Same.
857
858 2003-08-08  Loren J. Rittle  <ljrittle@acm.org>
859
860         * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
861
862 2003-08-07  Doug Gregor  <dgregor@apple.com>
863
864         * include/bits/char_traits.h (char_traits::not_eof): Match operand
865         types in ? :.
866
867 2003-08-07  Bernardo Innocenti  <bernie@develer.com>
868
869         PR libstdc++/11784
870         * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
871         Replace variants with new BSET-based version.
872
873 2003-08-07  Carlo Wood  <carlo@alinoe.com>
874
875         * include/bits/demangle.h: Do not use cctype functions that depend
876         on locale.
877
878 2003-08-05  Phil Edwards  <pme@gcc.gnu.org>
879
880         * configure.in:  Rename...
881         * configure.ac:  ...to this.
882         * docs/html/17_intro/porting.texi:  Update name.
883
884         * docs/html/17_intro/porting.html:  Regenerate.
885         * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
886         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
887         testsuite/Makefile.in:  Regenerate (picks up new dependancy).
888
889 2003-08-05  Phil Edwards  <pme@gcc.gnu.org>
890
891         * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS):  Put down the crack
892         pipe, open the window to let out the fumes, redo the option-handling
893         logic to properly execute the detection test.
894         * aclocal.m4, configure:  Regenerate.
895
896 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
897
898         Convert to new autotools.
899         * acconfig.h:  Update with correct names.
900         * configure.host (ATOMICITYH):  Rename to atomicity_include_dir.
901         (qnx6.[12]*):  'q' comes before 's', not after 'w'.
902         * configure.in:  Update.  Split hardcoded cross-configury settings
903         out to...
904         * crossconfig.m4:  ...here.  New file.  Contents untouched.
905         * acinclude.m4:  Reorganize and rewrite as needed.  Split large
906         chunks out to...
907         * linkage.m4:  ...here.  New file.  Math and stdlib linkage tests.
908         Contents untouched.
909         * scripts/testsuite_flags.in:  Update.
910
911         * Makefile.am:  Remove unneeded AUTOMAKE_OPTIONS settings and other
912         variables (already generated by automake).
913         * include/Makefile.am:  Ditto.
914         * libmath/Makefile.am:  Ditto.
915         * libsupc++/Makefile.am:  Ditto.
916         * po/Makefile.am:  Ditto.
917         * src/Makefile.am:  Ditto.
918
919         * aclocal.m4:  Regenerate using new versions.
920         * config.h.in:  Ditto.
921         * configure:  Ditto.
922         * Makefile.in:  Ditto.
923         * include/Makefile.in:  Ditto.
924         * libmath/Makefile.in:  Ditto.
925         * libsupc++/Makefile.in:  Ditto.
926         * po/Makefile.in:  Ditto.
927         * src/Makefile.in:  Ditto.
928         * testsuite/Makefile.in:  Ditto.
929
930 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
931
932         * po/libstdc++.pot:  Re-extract/regenerate.
933
934 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
935
936         * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
937         Remove unneeded variable assignments.  Leave them for automake.
938         * testsuite/lib/libstdc++-v3.exp:  Rename...
939         * testsuite/lib/libstdc++.exp:  ...to this.  Adjust function names
940         accordingly.
941         * testsuite/libstdc++-v3.dg/dg.exp:  Rename...
942         * testsuite/libstdc++-dg/normal.exp:  ...to this.  Adjust function
943         names accordingly.
944
945 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
946
947         * docs/doxygen/guide.html:  run_doxygen uses bash.
948         * docs/doxygen/mainpage.html:  We'll be shipping tag files.
949         * docs/doxygen/run_doxygen:  Tweaks and improvements.
950         * docs/doxygen/user.cfg.in:  Set GENERATE_TAGFILE.
951         * docs/html/install.html:  Update autoconf/automake requirements.
952         * docs/html/test.html:  Add section describing DejaGNU support.
953         * docs/html/17_intro/confdeps.dot:  New file, generates...
954         * docs/html/17_intro/confdeps.png:  ...this new file.
955         * docs/html/Makefile:  Generated here.
956         * docs/html/17_intro/configury.html:  New file.
957
958 2003-07-31  Phil Edwards  <pme@gcc.gnu.org>
959
960         * testsuite/lib/libstdc++-v3-dg.exp:  Rename...
961         * testsuite/lib/libstdc++-v3.exp:  ...to this.
962         * testsuite/libstdc++-v3.dg/dg.exp:  No special case needed now.
963
964 2003-07-31  Doug Gregor  <dgregor@apple.com>
965
966         Add user specialization tests.
967         * testsuite/23_containers/deque/1.cc: New.
968         * testsuite/23_containers/list/1.cc: New.
969         * testsuite/23_containers/map/1.cc: New.
970         * testsuite/23_containers/multimap/1.cc: New.
971         * testsuite/23_containers/multiset/1.cc: New.
972         * testsuite/23_containers/set/1.cc: New.
973         * testsuite/23_containers/vector/1.cc: New.
974
975 2003-07-31  Benjamin Kosnik  <bkoz@redhat.com>
976
977         Reshuffle 23_containers testsuite.
978         * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
979         bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
980         list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
981         map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
982         set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
983         vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
984         vector_resize.cc: Split into...
985         * 23_containers/bitset/cons/1.cc: New.
986         * 23_containers/bitset/cons/6282.cc: New.
987         * 23_containers/bitset/count/6124.cc: New.
988         * 23_containers/bitset/operations/1.cc: New.
989         * 23_containers/bitset/operations/2.cc: New.
990         * 23_containers/bitset/test/1.cc: New.
991         * 23_containers/bitset/to_ulong/1.cc: New.
992         * 23_containers/deque/cons/1.cc: New.
993         * 23_containers/deque/cons/2.cc: New.
994         * 23_containers/deque/operators/1.cc: New.
995         * 23_containers/list/capacity/1.cc: New.
996         * 23_containers/list/cons/1.cc: New.
997         * 23_containers/list/cons/2.cc: New.
998         * 23_containers/list/cons/3.cc: New.
999         * 23_containers/list/cons/4.cc: New.
1000         * 23_containers/list/cons/5.cc: New.
1001         * 23_containers/list/cons/6.cc: New.
1002         * 23_containers/list/cons/7.cc: New.
1003         * 23_containers/list/cons/8.cc: New.
1004         * 23_containers/list/cons/9.cc: New.
1005         * 23_containers/list/modifiers/1.cc: New.
1006         * 23_containers/list/modifiers/2.cc: New.
1007         * 23_containers/list/modifiers/3.cc: New.
1008         * 23_containers/list/operators/1.cc: New.
1009         * 23_containers/list/operators/2.cc: New.
1010         * 23_containers/list/operators/3.cc: New.
1011         * 23_containers/list/operators/4.cc: New.
1012         * 23_containers/map/insert/1.cc: New.
1013         * 23_containers/map/operators/1.cc: New.
1014         * 23_containers/map/operators/1_neg.cc: New.
1015         * 23_containers/multiset/insert/1.cc: New.
1016         * 23_containers/priority_queue/members/7161.cc: New.
1017         * 23_containers/queue/members/7157.cc: New.
1018         * 23_containers/set/operators/1_neg.cc: New.
1019         * 23_containers/stack/members/7158.cc: New.
1020         * 23_containers/vector/bool/1.cc: New.
1021         * 23_containers/vector/bool/6886.cc: New.
1022         * 23_containers/vector/capacity/1.cc: New.
1023         * 23_containers/vector/capacity/2.cc: New.
1024         * 23_containers/vector/capacity/8230.cc: New.
1025         * 23_containers/vector/cons/1.cc: New.
1026         * 23_containers/vector/cons/2.cc: New.
1027         * 23_containers/vector/cons/3.cc: New.
1028         * 23_containers/vector/cons/4.cc: New.
1029         * 23_containers/vector/cons/6513.cc: New.
1030         * 23_containers/vector/element_access/1.cc: New.
1031         * 23_containers/vector/modifiers/1.cc: New.
1032         * 23_containers/vector/modifiers/2.cc: New.
1033         * 23_containers/vector/resize/1.cc: New.
1034
1035 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1036
1037         * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
1038         dg-options.
1039         * testsuite/thread/pthread2.cc: Likewise.
1040         * testsuite/thread/pthread3.cc: Likewise.
1041         * testsuite/thread/pthread4.cc: Likewise.
1042         * testsuite/thread/pthread5.cc: Likewise.
1043         * testsuite/thread/pthread6.cc: Likewise.
1044         * testsuite/thread/pthread7-rope.cc: Likewise.
1045
1046 2003-07-30  Phil Edwards  <pme@gcc.gnu.org>
1047
1048         * include/bits/c++config:  Partial reversion (comment placement) of
1049         previous patch.
1050
1051 2003-07-30  Benjamin Kosnik  <bkoz@redhat.com>
1052
1053         * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
1054         (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
1055         (_GLIBCXX_AT_AT): Remove.
1056         (__USE_MALLOC): Remove.
1057         * include/std/std_fstream.h: Modify.
1058         * include/bits/basic_ios.h: Same.
1059         * include/bits/valarray_array.h: Same.
1060         * include/c_std/std_cmath.h: Same.
1061         * include/c_std/cmath.tcc: Same.
1062         * include/std/std_vector.h: Same.
1063         * include/std/std_string.h: Same.
1064         * include/std/std_stack.h: Same.
1065         * include/std/std_queue.h: Same.
1066         * include/std/std_list.h: Same.
1067         * include/std/std_deque.h: Same.
1068         * include/std/std_streambuf.h: Same.
1069         * include/std/std_sstream.h: Same.
1070         * include/std/std_ostream.h: Same.
1071         * include/std/std_istream.h: Same.
1072         * include/bits/valarray_array.tcc: Same, format.
1073
1074         * include/c/std_cctype.h: Fix include guards.
1075         * include/c/std_cerrno.h: Same.
1076         * include/c/std_cfloat.h: Same.
1077         * include/c/std_climits.h: Same.
1078         * include/c/std_clocale.h: Same.
1079         * include/c/std_cmath.h: Same.
1080         * include/c/std_csetjmp.h: Same.
1081         * include/c/std_csignal.h: Same.
1082         * include/c/std_cstdarg.h: Same.
1083         * include/c/std_cstddef.h: Same.
1084         * include/c/std_cstdio.h: Same.
1085         * include/c/std_cstdlib.h: Same.
1086         * include/c/std_cstring.h: Same.
1087         * include/c/std_ctime.h: Same.
1088         * include/c/std_cwchar.h: Same.
1089         * include/c/std_cwctype.h: Same.
1090         * include/c_std/cmath.tcc: Same.
1091         * include/c_std/std_cmath.h: Same.
1092
1093 2003-07-30  Gawain Bolton  <gp.bolton@computer.org>
1094
1095         PR libstdc++/11504.
1096         * include/bits/stl_tree.h: Replace C-style casts with C++-style
1097         casts.  Changes to avoid casting away constness.  Eliminate
1098         _Rb_tree_base_iterator class.  Change _Rb_tree_iterator to use
1099         initialization lists.  Move out implementation of __black_count()
1100         to...
1101         * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
1102         Rename_Rb_tree_base_iterator::_M_increment() to
1103         _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
1104         _Rb_tree_decrement.
1105         * config/linker-map.gnu: Add and change symbols here.
1106
1107 2003-07-30  Jonathan Wakely  <redi@gcc.gnu.org>
1108
1109         * docs/html/22_locale/howto.html: Use locale::classic() instead
1110         of locale("C").
1111
1112 2003-07-28  Benjamin Kosnik  <bkoz@redhat.com>
1113
1114         * testsuite/testsuite_hooks.h: Remove list include.
1115         (func_callback): Define as unique type, not std::list.
1116         Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
1117         * testsuite/libstdc++-v3.dg/dg.exp: Same.
1118         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
1119         * testsuite/23_containers/bitset_ctor.cc:
1120         * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
1121         * testsuite/18_support/numeric_limits.cc: Same.
1122         * testsuite/21_strings/basic_string/append/char/1.cc: Same.
1123         * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
1124         * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
1125         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
1126         * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
1127         * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
1128         * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
1129         * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
1130         * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
1131         * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
1132         * testsuite/21_strings/basic_string/find/char/1.cc: Same.
1133         * testsuite/21_strings/basic_string/find/char/2.cc: Same.
1134         * testsuite/21_strings/basic_string/find/char/3.cc: Same.
1135         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
1136         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
1137         * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
1138         * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
1139         * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
1140         * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
1141         * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
1142         * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
1143         * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
1144         * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
1145         * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
1146         * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
1147         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
1148         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
1149         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
1150         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
1151         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
1152         * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
1153         * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
1154         * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
1155         * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
1156         * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
1157         * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
1158         * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
1159         * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
1160         * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
1161         * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
1162         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
1163         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
1164         * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
1165         * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
1166         * testsuite/23_containers/bitset_ctor.cc: Same.
1167         * testsuite/23_containers/bitset_shift.cc: Same.
1168         * testsuite/23_containers/vector_ctor.cc: Same.
1169         * testsuite/23_containers/vector_element_access.cc: Same.
1170         * testsuite/24_iterators/istreambuf_iterator.cc: Same.
1171         * testsuite/24_iterators/iterator.cc: Same.
1172         * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
1173         * testsuite/25_algorithms/lower_bound.cc: Same.
1174         * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
1175         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
1176         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
1177         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
1178         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
1179         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
1180         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
1181         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
1182         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
1183         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
1184         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
1185         Same.
1186
1187 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
1188
1189         * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
1190         docs/html/test.html, docs/html/17_intro/headers_cc.txt,
1191         docs/html/17_intro/howto.html, docs/html/ext/howto.html:  Change
1192         GLIBCPP to GLIBCXX (and explain as needed).
1193
1194 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
1195
1196         * README:  Update.
1197
1198 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
1199
1200         * testsuite/22_locale/messages/members/char/1.cc,
1201         testsuite/22_locale/messages/members/char/2.cc,
1202         testsuite/22_locale/messages/members/char/3.cc,
1203         testsuite/22_locale/messages_byname/1.cc:  Update comment regarding
1204         the origin of LOCALEDIR.
1205         * testsuite/lib/libstdc++-v3.exp:  New file.
1206
1207 2003-07-25  Benjamin Kosnik  <bkoz@redhat.com>
1208
1209         * include/bits/char_traits.h: Update copyright, tweak.
1210         * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
1211         std types.
1212
1213 2003-07-24  Matt Austern  <austern@apple.com>
1214
1215         * /include/bits/char_traits.h (class char_traits): Put all the
1216         real work into the new class template __gnu_cxx::char_traits.
1217         Gave generic definitions for member functions.  Types are taken
1218         from the new class template __gnu_cxx::_Char_types.
1219         * testsuite/21_strings/char_traits/requirements/short/1.cc: New
1220         file.  Test of std::char_traits<short>, which serves as a test of
1221         the char_traits primary template.
1222
1223 2003-07-24  Benjamin Kosnik  <bkoz@redhat.com>
1224
1225         * testsuite/*: Change __gnu_cxx_test to __gnu_test.
1226
1227 2003-07-24  Nathan Myers  <ncm-nospam@cantrip.org>
1228
1229         * testsuite/23_containers/map_operators.cc: Conform to
1230         container requirement as value must be Assignable.
1231
1232 2003-07-23  Alexandre Oliva  <aoliva@redhat.com>
1233
1234         * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
1235         tests not only generation of pch files, but also their use.
1236         * aclocal.m4, configure: Rebuilt.
1237
1238 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
1239
1240         * config/cpu/hppa/atomicity.h: Change
1241         _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
1242         to match misc-inst.cc
1243
1244 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
1245
1246         * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
1247         * include/c_std/std_cctype.h: Ditto.
1248         * include/c_std/std_cerrno.h: Ditto.
1249         * include/c_std/std_cfloat.h: Ditto.
1250         * include/c_std/std_climits.h: Ditto.
1251         * include/c_std/std_clocale.h: Ditto.
1252         * include/c_std/std_cmath.h: Ditto.
1253         * include/c_std/std_csetjmp.h: Ditto.
1254         * include/c_std/std_csignal.h: Ditto.
1255         * include/c_std/std_cstdarg.h: Ditto.
1256         * include/c_std/std_cstddef.h: Ditto.
1257         * include/c_std/std_cstdio.h: Ditto.
1258         * include/c_std/std_cstdlib.h: Ditto.
1259         * include/c_std/std_cstring.h: Ditto.
1260         * include/c_std/std_ctime.h: Ditto.
1261         * include/c_std/std_cwchar.h: Ditto.
1262         * include/c_std/std_cwctype.h: Ditto.
1263         * include/std/std_algorithm.h: Ditto.
1264         * include/std/std_bitset.h: Ditto.
1265         * include/std/std_complex.h: Ditto.
1266         * include/std/std_deque.h: Ditto.
1267         * include/std/std_fstream.h: Ditto.
1268         * include/std/std_functional.h: Ditto.
1269         * include/std/std_iomanip.h: Ditto.
1270         * include/std/std_ios.h: Ditto.
1271         * include/std/std_iosfwd.h: Ditto.
1272         * include/std/std_iostream.h: Ditto.
1273         * include/std/std_istream.h: Ditto.
1274         * include/std/std_iterator.h: Ditto.
1275         * include/std/std_limits.h: Ditto.
1276         * include/std/std_list.h: Ditto.
1277         * include/std/std_locale.h: Ditto.
1278         * include/std/std_map.h: Ditto.
1279         * include/std/std_memory.h: Ditto.
1280         * include/std/std_numeric.h: Ditto.
1281         * include/std/std_ostream.h: Ditto.
1282         * include/std/std_queue.h: Ditto.
1283         * include/std/std_set.h: Ditto.
1284         * include/std/std_sstream.h: Ditto.
1285         * include/std/std_stack.h: Ditto.
1286         * include/std/std_stdexcept.h: Ditto.
1287         * include/std/std_streambuf.h: Ditto.
1288         * include/std/std_string.h: Ditto.
1289         * include/std/std_utility.h: Ditto.
1290         * include/std/std_valarray.h: Ditto.
1291         * include/std/std_vector.h: Ditto.
1292
1293 2003-07-22  Doug Gregor  <dgregor@apple.com>
1294
1295         * include/bits/basic_string.h (basic_string::insert): Deprecate
1296         GNU extension.
1297
1298 2003-07-21  Benjamin Kosnik  <bkoz@redhat.com>
1299
1300         * scripts/testsuite_flags.in (--build-includes): Remove extraneous
1301         paths for libio.
1302         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
1303         (test03): Include typeinfo for bad_cast.
1304         * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
1305         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
1306         * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
1307
1308 2003-07-21  Doug Gregor  <dgregor@apple.com>
1309
1310         * include/bits/boost_concept_check.h:
1311         (_EqualityComparableConcept::__constraints): Remove != from the
1312         list of constraints; it is not listed in Table 28 of the C++98
1313         standard.
1314
1315 2003-07-18  Andreas Jaeger  <aj@suse.de>
1316
1317         * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
1318         * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
1319         * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
1320         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
1321
1322 2003-07-17  Benjamin Kosnik  <bkoz@redhat.com>
1323
1324         * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
1325         * config/locale/generic/messages_members.h: Tweaks.
1326         * config/locale/generic/monetary_members.cc
1327         (moneypunct::_M_initialize_moneypunct): Use cache.
1328         (moneypunct::~moneypunct): Delete cache.
1329         * config/locale/generic/time_members.cc:
1330         (__timepunct::_M_initialize_timepunct): Use cache.
1331         * config/locale/generic/time_members.h:
1332         (__timepunct::~__timepunct): Delete cache.
1333         (__timepunct::__timepunct): Set cache.
1334         * config/locale/gnu/messages_members.h: Tweaks.
1335         * config/locale/gnu/monetary_members.cc:
1336         (moneypunct::_M_initialize_moneypunct): Use cache.
1337         (moneypunct::~moneypunct): Delete cache.
1338         * config/locale/gnu/time_members.cc:
1339         (__timepunct::_M_initialize_timepunct): Use cache.
1340         * config/locale/gnu/time_members.h:
1341         (__timepunct::~__timepunct): Delete cache.
1342         (__timepunct::__timepunct): Set cache.
1343         * include/bits/locale_facets.h (__timepunct_cache): New.
1344         (__moneypunct_cache): New.
1345         * include/bits/locale_facets.tcc: Tweak.
1346         * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
1347         * src/locale-inst.cc: Instantiate caches.
1348         * src/globals.cc: Add "C" caches.
1349         * src/localename.cc: Use external "C" caches.
1350
1351 2003-07-17  Phil Edwards  <pme@gcc.gnu.org>
1352
1353         * docs/doxygen/guide.html:  Fix typo.
1354
1355 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
1356
1357         * include/ext/pod_char_traits.h: Add state template argument.
1358
1359 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
1360
1361         * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
1362         (num_get::_M_convert_int): To _M_insert_int.
1363         (num_get::_M_convert_float): To _M_insert_float.
1364         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1365         Use caches for ctype, num_get.
1366         (num_get::_M_extract_int): Same.
1367         (num_get::get(bool)): Same.
1368         (__verify_grouping): Use size_t.
1369         * src/locale-inst.cc: Update.
1370         * src/locale.cc: Adjust _S_atoms_in.
1371
1372 2003-07-16  Phil Edwards  <pme@gcc.gnu.org>
1373
1374         * docs/doxygen/mainpage.html:  Move building/writing instructions...
1375         * docs/doxygen/guide.html:  ...to here.  New file.
1376
1377 2003-07-16  Jonathan Wakely  <redi@gcc.gnu.org>
1378
1379         * docs/html/ext/howto.html: Update URL for SGI STL docs.
1380         * docs/html/faq/index.html: Same.
1381         * docs/html/faq/index.txt: Regenerate.
1382
1383 2003-07-16  Paolo Carlini  <pcarlini@unitus.it>
1384
1385         PR libstdc++/11528
1386         * include/bits/locale_facets.tcc (money_get::do_get):
1387         Strip only _leading_ zeros.
1388         * testsuite/22_locale/money_get/get/char/11528.cc: Add.
1389         * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
1390
1391 2003-07-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1392
1393         * include/ext/hash_map (class hash_multimap): Remove extra
1394         semicolons from __glibcxx_class_requires3 entries.
1395         * include/ext/hash_set (class hash_set): Ditto.
1396         (class hash_multiset): Ditto.
1397
1398 2003-07-15  Petur Runolfsson  <peturr02@ru.is>
1399
1400         * include/bits/char_traits.h (char_traits<wchar_t>::move):
1401         Change last parameter from int_type to size_t.
1402
1403 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
1404
1405         * include/bits/stl_algo.h (includes, set_union, set_intersection,
1406         set_difference, set_symmetric_difference, max_element, min_element,
1407         next_permutation, prev_permutation, find_first_of, find_end):
1408         Document.
1409         * include/bits/stl_algobase.h (copy,copy_backward):  Clarify overlap
1410         restrictions in docs.
1411         * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
1412         Document.
1413         * docs/doxygen/doxygroups.cc (setoperations):  New group.
1414
1415 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
1416
1417         * include/bits/basic_string.h:  Document public functions.
1418         * docs/doxygen/TODO:  Update c21 todo.
1419
1420 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
1421
1422         * include/bits/stl_list.h:  Document more functions.
1423         * docs/doxygen/TODO:  Update c23 todo.
1424
1425 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
1426
1427         * config/locale/gnu/c_locale.h (__convert_from_v): One more
1428         qualification.
1429
1430 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
1431
1432         * include/bits/stl_tempbuf.h: Qualify free with std::.
1433         * src/locale.cc: Include <cstdlib>, qualify getenv.
1434
1435 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
1436
1437         * config/locale/gnu/c_locale.h (__convert_from_v): Include
1438         <cstdio>. Qualify names.
1439         * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
1440
1441 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
1442             Nathan C. Myers  <ncm-nospam@cantrip.org>
1443
1444         PR libstdc++/11378
1445         * include/std/std_fstream.h (xsputn): Declare only.
1446         * include/bits/fstream.tcc (xsputn): Define, optimize for the
1447         always_noconv() case: when __n is sufficiently large flush
1448         the buffer and issue a direct write, if possible combining the
1449         two with writev in __basic_file<>::xsputn_2.
1450         * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
1451         New, declare.
1452         * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
1453         Define.
1454         * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
1455         the availability of writev in <sys/uio.h>.
1456         * configure.in: Call here.
1457         * acconfig.h: Add undef for the corresponding symbol.
1458         * aclocal.m4: Regenerate.
1459         * configure: Regenerate.
1460         * config.h.in: Regenerate.
1461         * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
1462
1463         * include/std/std_fstream.h (sync): Constify a variable.
1464
1465 2003-07-14  Benjamin Kosnik  <bkoz@redhat.com>
1466
1467         * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
1468         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1469
1470 2003-07-14  Gabriel Dos Reis  <gcc@integrable-solutions.net>
1471
1472         * config/locale/gnu/c_locale.h (__convert_from_v): Include
1473         <cstring> and <cstdlib>. Qualify names.
1474
1475 2003-07-13  Mark Mitchell  <mark@codesourcery.com>
1476
1477         * config/locale/generic/c_locale.h: Include <cstdlib> and
1478         <cstring>.
1479         * include/bits/boost_concept_check.h: Add this-> to unqualified
1480         method calls.
1481         * include/bits/deque.tcc: Likewise.
1482         * include/bits/locale_facets.h : Likewise.
1483         * include/bits/ostream.tcc: Likewise.
1484         * include/bits/stl_algo.h: Likewise.
1485         * include/bits/stl_bvector.h: Likewise.
1486         * include/bits/stl_deque.h: Likewise.
1487         * include/bits/stl_list.h: Likewise.
1488         * include/bits/stl_tree.h: Likewise.
1489         * include/bits/stl_vector.h: Likewise.
1490         * include/bits/vector.tcc: Likewise.
1491         * include/ext/rope: Likewise.
1492         * include/ext/ropeimpl.h: Likewise.
1493         * include/ext/stdio_filebuf.h: Likewise.
1494
1495 2003-07-11  Jerry Quinn  <jlquinn@optonline.net>
1496
1497         * include/bits/basic_ios.h (copyfmt): Document.
1498         * include/bits/ios_base.h (event, event_callback, register_callback,
1499         xalloc, iword, pword):  Document.
1500         (imbue, ~ios_base): Update docs on callbacks.
1501
1502 2003-07-11  Phil Edwards  <pme@gcc.gnu.org>
1503
1504         * acinclude.m4 (GLIBCC_ENABLE_SYMVERS):  Tweak comments.  Add
1505         warning messages if the environment cannot support symbol versioning.
1506         (port_specific_symbol_file):  It's plural, add an 's' on the end.
1507         * configure.host:  Likewise.
1508         * src/Makefile.am:  Likewise.
1509         * config/linker-map.gnu:  Remove one semicolon, heh.
1510         * scripts/extract_symvers:  Don't assume useful 'export' syntax.
1511         Set LANG as well as LC_ALL for possibly-broken sort(1)s.
1512         * aclocal.m4, configure, src/Makefile.in:  Regenerated.
1513
1514 2003-07-09  Benjamin Kosnik  <bkoz@redhat.com>
1515
1516         * include/bits/locale_facets.tcc: Use function object for
1517         __use_cache instead of template function. Partially specialize for
1518         __numpunct<_CharT>.
1519         * include/bits/locale_classes.h: Update friend declaration for
1520         __use_cache.
1521         (_M_install_cache): No throw exception specs.
1522         * src/locale.cc: Remove __use_cache specializations.
1523         * include/ext/pod_char_traits.h (length): Tweak.
1524         * include/bits/locale_facets.h (__numpunct_cache): Remove
1525         char_type typedef.
1526         * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
1527         (pod_long): Remove.
1528         * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
1529         * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
1530         * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
1531         * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
1532         * testsuite/22_locale/numpunct/members/pod/1.cc: New.
1533         * testsuite/22_locale/numpunct/members/pod/2.cc: New.
1534
1535 2003-07-09  Jerry Quinn  <jlquinn@optonline.net>
1536
1537         * src/ios.cc (_M_grow_words):  Fix spelling.
1538
1539 2003-07-09  Gawain Bolton  <gp.bolton@computer.org>
1540
1541         * include/bits/stl_tree.h: Move larger member functions in
1542         _Rb_tree_base_iterator and _Rb_tree_node to...
1543         * src/stl_tree.cc: Here.
1544         * src/Makefile.in: Add stl_tree.cc.
1545         * src/Makefile.in: Regenerated.
1546         * config/linker-map.gnu: Add symbols here.
1547
1548 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
1549
1550         * testsuite/ext/pod_char_traits.cc: New.
1551         * include/ext/pod_char_traits.h: New.
1552         * include/Makefile.am (ext_headers): Add pod_char_traits.h.
1553         * include/Makefile.in: Regenerate.
1554         * docs/html/21_strings/howto.html: Update.
1555
1556 2003-07-08  Gawain Bolton  <gp.bolton@computer.org>
1557
1558         * testsuite/performance/list_create_fill_sort.cc: New.
1559
1560 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
1561
1562         * config/locale/generic/numeric_members.cc: Correct type info.
1563         * config/locale/gnu/numeric_members.cc: Same.
1564         * include/bits/locale_facets.h: Same.
1565
1566         * include/bits/char_traits.h: Correct spacing.
1567
1568         * src/locale.cc: Wrap to 80 col.
1569
1570 2003-07-07  Paolo Carlini  <pcarlini@unitus.it>
1571
1572         * include/std/std_complex.h: Partially revert last
1573         changes: cmath functions must not be qualified.
1574
1575 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
1576
1577         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Do not test for binutils
1578         2.11 with globbing backport fix.
1579         * aclocal.m4, configure:  Regenerated.
1580
1581 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
1582
1583         * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
1584         if output is at all possible (!_M_reading), cannot be active.
1585
1586         * include/std/std_fstream.h: Tweak comments to doxygen style.
1587
1588 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
1589
1590         * include/bits/locale_classes.h: Fully qualify standard
1591         functions with std::, thus avoiding Koenig lookup.
1592         * include/bits/locale_facets.tcc: Likewise.
1593         * src/locale.cc: Likewise.
1594         * src/localename.cc: Likewise.
1595
1596 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
1597
1598         * include/bits/allocator_traits.h:  Fix doxygen markup.
1599         * include/ext/mt_allocator.h:  Likewise.
1600
1601 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
1602
1603         * testsuite/testsuite_hooks.h:  Guard against a missing unlink().
1604
1605 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
1606
1607         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Bump minimal version
1608         requirement.  Add port_specific_symbol_file variable.
1609         * configure.host:  Add docs for port_specific_symbol_file.
1610         Clean up try_cpu block for x86.
1611         * config/linker-map.gnu:  No more "last symbol can't have a
1612         semicolon" kaka.  Add hook for port-specific symbols.
1613         * src/Makefile.am:  Remove trailing whitespace.
1614         (libstdc++-symbol.ver):  Detect the presence of port-specific
1615         symbols, and add them accordingly.
1616
1617         * docs/html/17_intro/porting.texi:  Bring up to date.
1618
1619         * src/Makefile.in, aclocal.m4, configure,
1620         docs/html/17_intro/porting.html:  Regenerated.
1621
1622 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
1623
1624         * scripts/create_testsuite_files:  New file.
1625         * testsuite/Makefile.am (all-local, check-performance):  Use it.
1626         * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests):  Remove.
1627         * testsuite/Makefile.in:  Regenerated.
1628
1629         * testsuite/performance/filebuf_sputc.cc:  Remove the temporary
1630         files at the end.
1631         * testsuite/performance/fstream_seek_write.cc:  Likewise.
1632         * testsuite/performance/ofstream_insert_float.cc:  Likewise.
1633         * testsuite/performance/ofstream_insert_int.cc:  Likewise.
1634         * testsuite/abi_check.cc (main):  Nicer spacing in usage output.
1635
1636 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
1637
1638         * include/bits/stl_list.h: Performance and memory usage
1639         improvements. In particular, the behaviour of the constructor and
1640         destructor as the list header node is no longer dynamically
1641         allocated/de-allocated.
1642         * include/bits/list.tcc: Likewise.
1643
1644 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
1645
1646         * include/std/std_complex.h: Fully qualify standard
1647         functions with std::, thus avoiding Koenig lookup.
1648         * include/std/std_memory.h: Likewise.
1649         * include/std/std_valarray.h: Likewise.
1650
1651 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
1652
1653         * include/bits/stl_tree.h: _Rb_tree_rebalance():  Add local
1654           variable for grandparent and use const
1655
1656 2003-07-05  David Billinghurst <David.Billinghurst@riotinto.com>
1657
1658         * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
1659         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
1660         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
1661         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
1662         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
1663         * testsuite/27_io/objects/char/7.cc: Ditto
1664         * testsuite/27_io/objects/char/9661-1.cc: Ditto
1665
1666 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
1667
1668         * include/std/std_bitset.h: Fully qualify standard
1669         functions with std::, thus avoiding Koenig lookup.
1670
1671         * include/std/std_fstream.h: Change comment to doxygen style.
1672
1673 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
1674
1675         * include/std/std_limits.h:  More CPP->CXX changes.
1676         * scripts/check_survey.in:  Likewise.
1677
1678 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
1679
1680         Move from CPP to CXX.
1681         * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
1682         * testsuite/Makefile.am: Same.
1683         * testsuite/Makefile.in: Regenerate.
1684         * po/Makefile.am: Same.
1685         * po/Makefile.in: Regenerate.
1686         * libsupc++/Makefile.am: Same.
1687         * libsupc++/Makefile.in: Regenerate.
1688         * libmath/Makefile.am: Same.
1689         * libmath/Makefile.in: Regenerate.
1690         * include/Makefile.am: Same.
1691         * include/Makefile.in: Regenerate.
1692         * src/Makefile.am: Same.
1693         * src/Makefile.in: Regenerate.
1694         * acconfig.h: Same.
1695         * configure.host: Same.
1696         * configure.in: Same.
1697         * configure: Regenerate.
1698         * acinclude.m4: Same.
1699         * aclocal.m4: Same.
1700         * src: Change all files in this directory.
1701         * testsuite: Same.
1702         * include: Same, standardize include guards.
1703         * config: Same.
1704         * libsupc++: Same.
1705
1706 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
1707
1708         * testsuite/22_locale/collate/compare/wchar_t/2.cc
1709         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
1710         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
1711         * testsuite/22_locale/collate/hash/wchar_t/2.cc
1712         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
1713         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
1714         * testsuite/22_locale/collate/transform/wchar_t/2.cc
1715         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
1716         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
1717         XFAIL on all targets.
1718
1719 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
1720
1721         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
1722         * aclocal.m4: Regenerate.
1723         * configure: Regenerate.
1724
1725 2003-07-04  Jerry Quinn  <jlquinn@optonline.net>
1726
1727         * include/bits/locale_facets.tcc (__int_to_char): Move common case
1728         to the top.
1729
1730 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
1731             Petur Runolfsson  <peturr02@ru.is>
1732
1733         * config/io/basic_file_stdio.cc: Revert.
1734
1735 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
1736
1737         * include/bits/deque.tcc: Fully qualify standard
1738         functions with std::, thus avoiding Koenig lookup.
1739         * include/bits/gslice_array.h: Likewise.
1740         * include/bits/indirect_array.h: Likewise.
1741         * include/bits/list.tcc: Likewise.
1742         * include/bits/mask_array.h: Likewise.
1743         * include/bits/slice_array.h: Likewise.
1744
1745 2003-07-04  Gawain Bolton  <gbolton@free.fr>
1746
1747         * include/bits/stl_tree.h: Performance and memory usage
1748         improvements.
1749
1750 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
1751
1752         * Makefile.am: Replace PWD with PWD_COMMAND.
1753         * Makefile.in: Regenerated.
1754         * docs/html/Makefile: Likewise.
1755
1756 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
1757
1758         * include/bits/valarray_array.h: Fully qualify standard
1759         functions with std::, thus avoiding Koenig lookup.
1760         * include/bits/vector.tcc: Likewise.
1761
1762 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
1763
1764         * include/Makefile.am: Update target_ to host_.
1765         * include/Makefile.in: Regenerate.
1766         * src/Makefile.am: Same.
1767         * src/Makefile.in: Regenerate.
1768
1769         * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
1770
1771 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
1772
1773         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
1774         --enable-libstdcxx-debug-flags.
1775         (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
1776         (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
1777         * aclocal.m4: Regenerate.
1778         * configure: Same.
1779         * docs/html/configopts.html: Update.
1780
1781 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
1782
1783         Revert the fix for libstdc++/11378.
1784
1785 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
1786
1787         PR libstdc++/11378
1788         * include/std/std_fstream.h (xsputn): In the unbuffered case,
1789         provided always_noconv(), issue directly _M_file.xsputn.
1790         * testsuite/performance/filebuf_unbuf_sputn.cc: New.
1791
1792 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
1793
1794         * include/bits/stl_list.h: Fully qualify standard
1795         functions with std::, thus avoiding Koenig lookup.
1796         * include/bits/stl_queue.h: Likewise.
1797         * include/bits/stl_raw_storage_iter.h: Likewise.
1798         * include/bits/stl_tempbuf.h: Likewise.
1799         * include/bits/stl_tree.h: Likewise.
1800         * include/bits/stl_uninitialized.h: Likewise.
1801         * include/bits/stl_vector.h: Likewise.
1802         * include/ext/rope: Change includes order.
1803
1804 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
1805
1806         * configure.host (fpos_include_dir): Fix.
1807
1808 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
1809
1810         * include/bits/stl_heap.h: Fully qualify standard
1811         functions with std::, thus avoiding Koenig lookup.
1812         * include/bits/stl_iterator_base_funcs.h: Likewise.
1813
1814         * include/bits/stl_algo.h: Qualify __iterator_category too.
1815         * include/bits/stl_algobase.h: Likewise.
1816         * include/bits/stl_bvector.h: Likewise.
1817
1818         * include/bits/stl_algo.h: Don't qualify the pair type.
1819
1820 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
1821
1822         * include/Makefile.am (target_headers): Add fpos.h
1823         (bits_headers): Remove.
1824         * include/Makefile.in: Regenerate.
1825         * configure.in: Add FPOS_INC_SRCDIR, substitute it.
1826         * configure: Regenerate.
1827         * configure.host: Add fpos_include_dir.
1828         * config/os/gnu-linux/fpos.h: New.
1829         * config/os/generic/fpos.h: Add.
1830         * include/bits/fpos.h: Remove.
1831
1832         * config/io/c_io_stdio.h: Remove fpos_t typedef.
1833
1834         * include/bits/fstream.tcc: Tweaks.
1835         * include/std/std_fstream.h: Same.
1836
1837         * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
1838         * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
1839         * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
1840         * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1841         * testsuite/27_io/fpos/1.cc: New.
1842
1843 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
1844             Petur Runolfsson  <peturr02@ru.is>
1845
1846         * include/std/std_streambuf.h: Remove _M_pos.
1847         * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
1848         * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
1849         use fread/fwrite instead of read/write.
1850         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
1851         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
1852         before reading again.
1853         * testsuite/27_io/objects/char/6.cc: Tweak.
1854
1855 2003-07-03  David Edelsohn  <edelsohn@gnu.org>
1856
1857         * testsuite/22_locale/num_put/put/char/7.cc: Guard with
1858         _GLIBCPP_USE_WCHAR_T.
1859
1860 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
1861
1862         * include/bits/basic_string.tcc (_M_replace_aux): Constify
1863         __n1 and __off1.
1864
1865 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
1866
1867         * include/bits/stl_bvector.h: Fully qualify standard
1868         functions with std::, thus avoiding Koenig lookup.
1869         * include/bits/stl_construct.h: Likewise.
1870         * include/bits/stl_deque.h: Likewise.
1871
1872 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
1873
1874         * testsuite/22_locale/num_put/put/char/7.cc: Include
1875         <testsuite_hooks.h>, tweak.
1876         * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
1877
1878 2003-07-01  Phil Edwards  <pme@gcc.gnu.org>
1879
1880         * testsuite/Makefile.am (AM_MAKEFLAGS):  Set to -j1 (affects
1881         check* targets, but not libs/programs).
1882         * testsuite/Makefile.in:  Regenerate.
1883
1884 2003-07-01  Roger Sayle  <roger@eyesopen.com>
1885
1886         * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
1887         (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
1888         * aclocal.m4: Regenerate.
1889         * configure: Regenerate.
1890
1891 2003-07-01  Benjamin Kosnik  <bkoz@redhat.com>
1892
1893         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
1894         * aclocal.m4: Regenerated.
1895         * configure: Regenerated.
1896
1897 2003-07-01  Paolo Carlini  <pcarlini@unitus.it>
1898
1899         PR libstdc++/11389
1900         * include/bits/fstream.tcc (underflow): For encoding() == 0
1901         don't read more than __buflen chars.
1902         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
1903         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
1904         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
1905         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
1906
1907 2003-07-01  Jerry Quinn  <jlquinn@optonline.net>
1908
1909         * 22_locale/num_put/put/char/7.cc: New.
1910         * 22_locale/num_put/put/wchar_t/7.cc: New.
1911
1912 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
1913
1914         * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
1915         * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
1916
1917 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
1918
1919         * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
1920         * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
1921         * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
1922         * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
1923         * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
1924         * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
1925         * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
1926         * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
1927         * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
1928         * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
1929         * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
1930         * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
1931         * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
1932         * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
1933         * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
1934         * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
1935         * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
1936         * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
1937         * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
1938         * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
1939         * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
1940         * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
1941         * data/seekoff-1.tst: Remove.
1942         * data/seekoff-1io.tst: New.
1943         * data/seekoff-1out.tst: New.
1944         * data/seekoff-2.tst: Remove.
1945         * data/seekoff-2io.tst: New.
1946         * data/seekoff-2out.tst: New.
1947         * data/seekoff.txt
1948         * data/seekpos-1.tst: Remove.
1949         * data/seekpos-1io.tst: New.
1950         * data/seekpos-1out.tst: New.
1951         * data/seekpos-2.tst: Remove.
1952         * data/seekpos-2io.tst: New.
1953         * data/seekpos-2out.tst: New.
1954         * data/seekpos.txt: New.
1955
1956 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
1957
1958         * src/locale.cc (__use_cache<numpunct>): Move from here ...
1959         * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
1960         here.
1961
1962 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
1963
1964         * include/bits/stl_algobase.h: Fully qualify standard
1965         functions with std::, thus avoiding Koenig lookup.
1966
1967 2003-06-30  Doug Gregor <dgregor@apple.com>
1968
1969         * include/bits/locale_facets.tcc (money_get::do_get): Avoid
1970         subscripting empty string.
1971
1972 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
1973
1974         * testsuite/Makefile.am (check-am):  Do not override.
1975         (baseline_symbols):  Declare as PHONY, so no need to 'touch' it.
1976         * testsuite/Makefile.in:  Regenerate.
1977
1978 2003-06-30  Doug Gregor <dgregor@apple.com>
1979
1980         * testsuite/24_iterators/insert_iterator.cc (test01, test02):
1981         Don't initialize an insert_iterator with a singular iterator.
1982
1983 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
1984
1985         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
1986         * aclocal.m4: Regenerate.
1987         * configure.in (GLIBCPP_CHECK_PCH): Move, change to
1988         GLIBCPP_ENABLE_PCH, default to yes.
1989         * configure: Regenerate.
1990         * docs/html/configopts.html: Add --enable-pch.
1991
1992 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
1993
1994         * testsuite/lib/libstdc++-v3-dg.exp:  Add comments.
1995         (libstdc++-v3-init):  Also set LD_RUN_PATH.
1996
1997 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
1998
1999         * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
2000         from here to filebuf and stringbuf.
2001         (~basic_streambuf()): Don't set _M_mode.
2002         (basic_streambuf()): Don't set _M_mode.
2003         * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
2004         (~basic_filebuf()): Clean up.
2005         * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
2006         * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
2007         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
2008         * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
2009         * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
2010         * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
2011         * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
2012
2013 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
2014
2015         * include/std/std_fstream.h (_M_underflow): Remove.
2016         (uflow): Remove, inherited from streambuf.
2017         (underflow): Only declare.
2018         * include/bits/fstream.tcc (_M_underflow): Rename to
2019         underflow, to which is equivalent for __bump == false,
2020         simplify.
2021         * include/std/std_sstream.h (_M_underflow): Remove.
2022         (uflow): Remove, inherited from streambuf.
2023         (underflow): Only declare.
2024         * include/bits/sstream.tcc (_M_underflow): Rename to
2025         underflow, to which is equivalent for __bump == false,
2026         simplify.
2027
2028 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
2029
2030         * include/bits/stl_algo.h: Fully qualify standard functions
2031         with std::, thus avoiding Koenig lookup.
2032
2033 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
2034
2035         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
2036         Improve type correctness-wise.
2037         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
2038         Likewise.
2039         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
2040         Likewise.
2041         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
2042         Likewise.
2043
2044 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
2045
2046         * include/std/std_streambuf.h (uflow): According to
2047         27.5.2.4.3,p16, don't check gptr() < egptr().
2048
2049 2003-06-28  Paolo Carlini  <pcarlini@unitus.it>
2050
2051         PR libstdc++/9875
2052         * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
2053         (seekpos): Likewise.
2054         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
2055         New test.
2056         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
2057         New test.
2058
2059 2003-06-27  Benjamin Kosnik  <bkoz@redhat.com>
2060
2061         * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
2062         output name to libstdc++-v3-performance.sum.
2063         * testsuite/Makefile.am (CLEANFILES): Remove .performance.
2064         * testsuite/Makefile.in: Regenerate.
2065
2066 2003-06-27  Matthias Klose  <doko@debian.org>
2067
2068         * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
2069         output of abi-check in libstdc++-v3-abi.sum.
2070         * testsuite/Makefile.in: Regenerate.
2071
2072 2003-06-27  Krister Walfridsson  <cato@df.lth.se>
2073
2074         * config/os/bsd/netbsd/ctype_noninline.h
2075         (_C_ctype_): Declare.
2076         (ctype<char>::classic_table): Return _C_ctype_ + 1.
2077         (ctype<char>::ctype): Use classic_table.
2078
2079 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
2080             Nathan C. Myers  <ncm-nospam@cantrip.org>
2081
2082         PR libstdc++/9178
2083         * include/bits/fstream.tcc (_M_underflow): Properly estimate
2084         the worst-case number of external bytes for a given get area.
2085         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
2086
2087 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
2088             Petur Runolfsson  <peturr02@ru.is>
2089
2090         PR libstdc++/11305
2091         * include/bits/fstream.tcc (overflow): Properly estimate the
2092         worst-case number of external bytes for a given put area
2093         (by using codecvt::max_length()).
2094         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
2095         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
2096         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
2097         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
2098
2099 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
2100
2101         * config/linker-map.gnu: Remove ; after __numpunct_cache.
2102
2103 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
2104
2105         * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
2106         to the imbued locale.
2107         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
2108         _M_getloc.
2109         (num_put::_M_convert_float): Use.
2110
2111 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
2112             Jerry Quinn  <jlquinn@optonline.net>
2113
2114         * config/linker-map.gnu: Add __numpunct_cache.
2115         * config/locale/gnu/numeric_members.cc
2116         (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
2117         all elements for "C" locale.
2118         (numpunct::~numpunct): Delete _M_data.
2119         * config/locale/generic/numeric_members.cc: Same.
2120         * include/bits/basic_ios.tcc
2121         (basic_ios::init): Remove __locale_cache bits.
2122         (basic_ios::_M_cache_locale): Same.
2123         * include/bits/ios_base.h: Same. Tweaks.
2124         * include/bits/locale_classes.h: Tweaks. Reorder classes.
2125         (__use_cache): Make friends with _Impl, locale.
2126         (_Impl::_M_caches): Add.
2127         (_Impl::_M_install_cache): Add.
2128         * include/bits/locale_facets.h (__numpunct_cache): New.
2129         (numpunct): Encapsulate data members in __numpunct_cache member,
2130         _M_data. Adjust virtuals.
2131         (numpunct::numpunct): New ctor for the same.
2132         (__locale_cache_base): Remove.
2133         (__locale_cache): Remove.
2134         * include/bits/locale_facets.tcc (__use_cache): New function,
2135         specializations.
2136         (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
2137         * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
2138         * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
2139         * src/locale-inst.cc: Same. Add __numpunct_cache.
2140         * src/locale.cc: Tweak inlines.
2141         (__use_cache): Define specializations.
2142         * src/localename.cc: Use global bits.
2143         (_Impl::~Impl): Deal with __numpunct_cache destruction.
2144         (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
2145         (_Impl::_M_init_facet): Take into account __numpunct_cache.
2146         * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
2147         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2148
2149 2003-06-26  Nathan C. Myers  <ncm-nospam@cantrip.org>
2150             Paolo Carlini  <pcarlini@unitus.it>
2151
2152         * testsuite/performance/filebuf_copy.cc: New, testing char
2153         by char file copy.
2154
2155 2003-06-26  Paolo Carlini  <pcarlini@unitus.it>
2156             Nathan C. Myers  <ncm-nospam@cantrip.org>
2157
2158         * include/bits/fstream.tcc (_M_underflow): When the actual
2159         end of file is reached, set 'uncommitted' mode to allow a
2160         next write without an intervening seek (see C++98 27.8.1.1,2
2161         and C89 7.9.5.3).
2162         * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
2163
2164 2003-06-25  Nathan C. Myers  <ncm-nospam@cantrip.org>
2165
2166         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
2167         sputc): Move inline, from here...
2168         * include/std/std_streambuf.h: ... to here.
2169
2170         * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
2171         sputbackc, sungetc, sputc): Use __builtin_expect.
2172
2173 2003-06-24  Phil Edwards  <pme@gcc.gnu.org>
2174
2175         * docs/doxygen/mainpage.html:  Use a useful title.
2176
2177 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
2178
2179         * docs/html/documentation.html: Remove assignment info.
2180         * docs/html/17_intro/contribute.html: Edits.
2181         * docs/html/17_intro/libstdc++-assign.tx: Remove.
2182
2183         * docs/html/test.html: Update.
2184
2185         * README: Update.
2186
2187 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
2188             Ulrich Drepper  <drepper@redhat.com>
2189
2190         * testsuite/testsuite_performance.h: Tweak mallinfo.
2191
2192 2003-06-24  Paolo Carlini  <pcarlini@unitus.it>
2193             Nathan C. Myers  <ncm-nospam@cantrip.org>
2194
2195         * include/std/std_fstream.h (_M_filepos): Remove.
2196         (_M_reading, _M_writing): New, encode the various I/O modes:
2197         'read', 'write' and 'uncommitted'.
2198         (sync): If there is something to flush, do it, then go to
2199         'uncommitted' mode.
2200         * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
2201         with three different cases: __off > 0 (upon underflow),
2202         __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
2203         seekoff/pos).
2204         (_M_underflow): Don't call overflow, set _M_reading to true
2205         on success, tweak.
2206         (pbackfail): Set _M_reading to true on pback creation, tweak.
2207         (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
2208         set _M_writing to true on success, tweak.
2209         (seekoff): Simplify, set _M_reading, _M_writing to false, call
2210         _M_set_buffer(-1) ('uncommitted').
2211         (open, close, setbuf): Set _M_reading, _M_writing to false and
2212         call _M_set_buffer(-1), tweak.
2213         (basic_filebuf): Don't set _M_buf_unified.
2214         (_M_destroy_internal_buffer): Don't call setg and setp.
2215         * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
2216         _M_writing and _M_set_buffer(-1).
2217         * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
2218         _M_out_lim, _M_buf_unified): Remove.
2219         (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
2220         (setp): Don't set _M_out_lim.
2221         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
2222         the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
2223         upon open the mode is 'uncommitted' and therefore the put area
2224         pointers are null.
2225         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
2226         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
2227         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
2228         * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
2229         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
2230         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
2231         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
2232         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
2233         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
2234         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
2235         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
2236         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
2237         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
2238         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
2239         * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
2240         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
2241         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
2242         * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
2243         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
2244         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
2245
2246         * include/bits/fstream.tcc (showmanyc): Use only the
2247         documented derivation interface to basic_streambuf (gptr(),
2248         setg(), etc.) to work right with user specializations.
2249         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
2250         sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
2251         * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
2252         Likewise.
2253         * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
2254         xsgetn): Likewise.
2255
2256 2003-06-23  Loren J. Rittle  <ljrittle@acm.org>
2257
2258         * configure.host (freebsd*): Set abi_baseline_pair.
2259         * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
2260         (at or near first release) to 3.3.
2261         * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
2262         * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
2263         * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
2264
2265         * include/ext/mt_allocator.h: Portability.
2266         * testsuite/testsuite_performance.h: Likewise.
2267
2268 2003-06-23  Benjamin Kosnik  <bkoz@redhat.com>
2269
2270         * docs/html/17_intro/libstdc++-assign.txt: Update address.
2271
2272         * testsuite/performance/ifstream_getline.cc: Fix.
2273
2274 2003-06-23  Doug Gregor <dgregor@apple.com>
2275
2276         * include/bits/boost_concept_check.h: Don't use _D or _R for type
2277         names.
2278
2279 2003-06-22  Paolo Carlini  <pcarlini@unitus.it>
2280             Nathan C. Myers  <ncm-nospam@cantrip.org>
2281
2282         * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
2283         is now used only for filebuf, when _M_buf_unified is true.
2284         epgtr() plays the role of _M_out_lim but it's only updated
2285         upon overflow, underflow, uflow, seekoff/pos.
2286         * include/bits/sstream.tcc (_M_underflow): New, implements
2287         stringbuf::underflow and uflow.
2288         (seekoff, seekpos): Tweak, use  _M_update_egptr.
2289         * include/std/std_sstream.h (str): Rewrote, deal correctly
2290         with the new logic, in particular, when pptr() > egptr().
2291         (_M_sync): When __testout && !__testin set all the get area
2292         pointers to the current string end.
2293         (_M_update_egptr): New, internal function updating egptr()
2294         to the actual string end.
2295         (_M_underflow): New, declare.
2296         (underflow): Dispatch to _M_underflow(false).
2297         (uflow): Dispatch to _M_underflow(true).
2298
2299         * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
2300         seekpos): Use only the documented derivation interface to
2301         basic_streambuf (gptr(), setg(), etc.) to work right with
2302         user specializations.
2303         * include/std/std_sstream.h (str, _M_sync): Likewise.
2304
2305 2003-06-20  Doug Gregor <dgregor@apple.com>
2306
2307         * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
2308         * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
2309         dereference end iterator.
2310         * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
2311         * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
2312         index equal to the length of a string.
2313         * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
2314         * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
2315         * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
2316         * testsuite/22_locale/ctype/widen/char/1.cc: Same.
2317         * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
2318         * testsuite/23_containers/list_modifiers.cc: Don't dereference
2319         singular reverse iterator.
2320         * testsuite/23_containers/vector_bool.cc: Don't increment singular
2321         iterator.
2322         * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
2323
2324 2003-06-20  Doug Gregor <dgregor@apple.com>
2325
2326         * include/bits/basic_string.h (basic_string::replace): Dispatch
2327         _InputIterator version based on _Is_integer.
2328         * include/bits/basic_string.tcc (basic_string::replace):
2329         Renamed replace(iterator, iterator, size_type, _CharT) to
2330         _M_replace_aux.
2331         * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
2332         Test basic_string::assign(_InputIterator, _InputIterator),
2333         which calls basic_string::replace(iterator, iterator,
2334         _Input_iterator, _InputIterator).
2335
2336 2003-06-20  Benjamin Kosnik  <bkoz@redhat.com>
2337
2338         * testsuite/testsuite_performance.h (resource_counter): Don't use
2339         mallinfo at the moment.
2340
2341 2003-06-20  Matthias Klose  <doko@debian.org>
2342
2343         * configure.host: Set try_cpu to target_cpu for existing
2344         baseline files.
2345
2346 2003-06-19  Andreas Jaeger  <aj@suse.de>
2347
2348         * testsuite/Makefile.am (extract_symvers): Revert accidental
2349         change.
2350         * testsuite/Makefile.in: Regenerate.
2351
2352         * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
2353         * configure: Regenerated.
2354
2355 2003-06-19  Paolo Carlini  <pcarlini@unitus.it>
2356
2357         * include/std/std_sstream.h (_M_sync): Make non virtual.
2358
2359 2003-06-18  Benjamin Kosnik  <bkoz@redhat.com>
2360
2361         * testsuite/testsuite_performance.h (time_counter): New.
2362         (resource_counter): New.
2363         (report_performance): New.
2364         (start_counters): New.
2365         (stop_counters): New.
2366         (clear_counters): New.
2367         * testsuite/performance/allocator.cc: Instrument.
2368         * testsuite/performance/cout_insert_int.cc: Same.
2369         * testsuite/performance/complex_norm.cc: Same.
2370         * testsuite/performance/filebuf_sputc.cc: New.
2371         * testsuite/performance/fstream_seek_write.cc: Same.
2372         * testsuite/performance/ifstream_getline.cc: Same.
2373         * testsuite/performance/map_create_fill.cc: Same.
2374         * testsuite/performance/ofstream_insert_float.cc: Same.
2375         * testsuite/performance/ofstream_insert_int.cc: Same.
2376         * testsuite/performance/string_append.cc: Convert.
2377         * scripts/check_performance: New.
2378         * testsuite/Makefile.am (check-performance): New.
2379         (CLEANFILES): Add.
2380
2381 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
2382             Benjamin Kosnik  <bkoz@redhat.com>
2383
2384         * include/std/std_sstream.h (setbuf): Check __n >= 0.
2385         * include/bits/fstream.tcc (setbuf): Tweak.
2386
2387 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
2388
2389         * include/bits/sstream.tcc (seekoff): We can't seek beyond
2390         _M_out_lim, therefore _M_move_out_cur boils down to simply
2391         updating _M_out_cur.
2392         (seekpos): Likewise, clean up.
2393
2394 2003-06-18  Nathan C. Myers  <ncm-nospam@cantrip.org>
2395             Paolo Carlini  <pcarlini@unitus.it>
2396
2397         * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
2398         simply equivalent to the unbuffered case (0, 0) as far as
2399         _M_buf_size is concerned.
2400
2401 2003-06-18  Andreas Jaeger  <aj@suse.de>
2402
2403         * testsuite/Makefile.am (new-abi-baseline): Create baseline
2404         directory.
2405         (baseline_file): Use baseline_dir.
2406         (baseline_dir): New.
2407         (mkinstalldirs): New.
2408
2409         * acinclude.m4: Rename baseline_file to baseline_dir, strip
2410         filename from baseline_dir.
2411
2412         * testsuite/Makefile.in: Regenerated.
2413         * Makefile.in: Regenerated.
2414         * aclocal.m4: Regenerated.
2415         * configure: Regenerated.
2416
2417 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
2418
2419         * configure.in: Missed check_survey bit.
2420         * configure: Regenerated.
2421
2422 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
2423
2424         * scripts: New.
2425         * config/abi/extract_symvers: Move to...
2426         * scripts/extract_symvers: ...here.
2427         * mkcheck.in: Move to..
2428         * scripts/check_survey.in: ...here.
2429         * testsuite_flags.in: Move to..
2430         * scripts/testsuite_flags.in: ...here.
2431         * configure.in: Change check and testsuite_flags locations.
2432         * configure: Regenerate.
2433         * testsuite/Makefile.am (current_symbols.txt): Change location.
2434         * testsuite/Makefile.in: Regenerate.
2435         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
2436         location of testsuite_flags.
2437         * Makefile.am (check-script): Move..
2438         (check-script-install): Move...
2439         * testsuite/Makefile.am: ... here.
2440         * testsuite/Makefile.in: Regenerate.
2441         * Makefile.in: Regenerate.
2442
2443 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
2444
2445         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
2446
2447 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
2448
2449         * Makefile.am (check-abi): Move...
2450         (new-abi-baseline): Move...
2451         * testsuite/Makefile.am: ...here.
2452         (new-abi-baseline): Conditionalize.
2453         (check-abi): Conditionalize.
2454         (check-abi-verbose): New.
2455         * Makefile.in: Regenerate.
2456         * testsuite/Makefile.in: Regenerate.
2457         * configure.in: Consolidate testsuite configure bits.
2458         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
2459         * configure: Regenerate.
2460         * aclocal.m4: Regenerate.
2461         * testsuite/abi_check.cc: Add --check-verbose.
2462         Only output detailed information if --check-verbose.
2463
2464 2003-06-16  Andreas Jaeger  <aj@suse.de>
2465
2466         * testsuite/abi_check.cc: Create summary report.
2467
2468 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
2469
2470         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
2471         for systems with BUFSIZ != 8192.
2472         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
2473         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
2474         Minor tweaks.
2475
2476 2003-06-16  Andreas Jaeger  <aj@suse.de>
2477
2478         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
2479         check-abi multilib aware.
2480         * aclocal.m4: Regenerate.
2481         * configure: Regenerate.
2482
2483 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
2484             Andreas Jaeger  <aj@suse.de>
2485
2486         * configure.host: Set x86_64 abi_baseline pair correctly.
2487
2488 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
2489
2490         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
2491         fix for missing seeks between gets and puts into...
2492         * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
2493         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
2494         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
2495         * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
2496         * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
2497         * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
2498
2499 2003-06-15  Richard Henderson  <rth@redhat.com>
2500
2501         * config/linker-map.gnu: Export virtual function thunks for
2502         64-bit systems too.
2503
2504 2003-06-13  Benjamin Kosnik  <bkoz@redhat.com>
2505
2506         * config/abi/i686-pc-linux-gnu: To..
2507         * config/abi/i486-linux-gnu: ...this.
2508         * config/abi/alphaev67-unknown-linux-gnu: To..
2509         * config/abi/alpha-linux-gnu: ...this.
2510         * config/abi/ia64-unknown-linux-gnu: To...
2511         * config/abi/ia64-linux-gnu: ...this.
2512         * config/abi/x86_64-unknown-linux-gnu: To...
2513         * config/abi/x86_64-linux-gnu: ...this.
2514         * config/abi/i386-unknown-freebsd4: To...
2515         * config/abi/i386-freebsd4: ...this.
2516         * config/linker-map.gnu: Cleanups, move libsupc++ bits into
2517         CXXABI.
2518         * configure.host: abi_baseline_triplet to abi_baseline_pair.
2519         Simplify cpu bits so that abi_baseline_pair can use the same
2520         cpu configuration.
2521         * acinclude.m4: Same.
2522         * aclocal.m4: Regenerate.
2523         * configure.in: Can't get enable_abi_check to yes unless native.
2524         * configure: Regenerate.
2525
2526 2003-06-13  Paolo Carlini  <pcarlini@unitus.it>
2527
2528         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
2529         fix for missing seeks between gets and puts into...
2530         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
2531         * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
2532         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
2533         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
2534         * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
2535         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
2536         for missing seeks between gets and puts.
2537         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
2538         * testsuite/data/seekoff-1.tst: New.
2539         * testsuite/data/seekoff-2.tst: New.
2540         * testsuite/data/seekpos-1.tst: New.
2541         * testsuite/data/seekpos-2.tst: New.
2542
2543 2003-06-13  Nathan C. Myers <ncm-nospam@cantrip.org>
2544
2545         Avoid multi-processor bus contention on increment/decrement-and-
2546         test of the reference count in the empty-string object, by comparing
2547         addresses first, and never touching the reference count of the empty-
2548         string object.
2549         * include/bits/basic_string.h:
2550         (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
2551         members.
2552         (_Rep::_S_empty_rep()): New accessor.
2553         (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
2554         a base class _Rep_base.
2555         (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
2556         (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
2557         since no longer must increment its refcount.
2558         * include/bits/basic_string.tcc:
2559         (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
2560         return immediately.  The former might be unnecessary.  The latter
2561         prevents begin() and end() from cloning it unnecessarily.
2562         (_S_construct(_InIterator, _InIterator, const _Alloc&,
2563         input_iterator_tag), _S_construct(_InIterator, _InIterator,
2564         const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
2565         const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
2566         (_M_mutate): Check for the empty string and treat it as shared.
2567         This is necessary here because _M_mutate is sometimes called with
2568         all-zero arguments; in all other uses of _M_is_shared, the test comes
2569         out right anyhow.
2570
2571 2003-06-12  Benjamin Kosnik  <bkoz@redhat.com>
2572
2573         * src/allocator-inst.cc: Explicitly instantiate.
2574         * include/ext/pool_allocator.h: Inhibit implicit instantiations.
2575         Tweaks.
2576         * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
2577
2578 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
2579
2580         * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
2581         * aclocal.m4: Regenerate.
2582         * Makefile.am (SUBDIRS): Remove libio.
2583         * Makefile.in: Regenerate.
2584         * configure.in: Same.
2585         * configure: Regenerate.
2586         * config/io/basic_file_libio.cc: Remove.
2587         * config/io/basic_file_libio.h: Remove.
2588         * config/io/c_io_libio_codecvt.c: Remove.
2589         * config/io/c_io_libio.h: Remove.
2590         * libio/*: Remove.
2591         * src/Makefile.am: Same.
2592         * src/Makefile.in: Regenerate.
2593         * docs/html/configopts.html: Edits.
2594         * docs/html/explanations.html: Edits.
2595
2596 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
2597
2598         * include/bits/stl_alloc.h (__debug_alloc): Move out.
2599         (__malloc_alloc): Same.
2600         (__pool_alloc): Same.
2601         (__new_alloc): Same.
2602         Rename to..
2603         * include/bits/allocator.h: ...this.
2604         * include/bits/stl_deque.h: Modify comment.
2605         * include/bits/stl_tree.h: Modify include.
2606         * include/std/std_memory.h: Same.
2607         * include/ext/rope: Same.
2608         * include/ext/slist: Same.
2609         * include/std/std_vector.h: Same.
2610         * include/std/std_stack.h: Same.
2611         * include/std/std_queue.h: Same.
2612         * include/std/std_list.h: Same.
2613         * include/std/std_deque.h: Same.
2614         * include/backward/alloc.h: Same.
2615         * include/ext/debug_allocator.h: New.
2616         * include/ext/malloc_allocator.h: New.
2617         * include/ext/pool_allocator.h: New.
2618         * include/ext/new_allocator.h: New.
2619         * include/bits/pthread_allocimpl.h: Remove.
2620         * include/bits/stl_pthread_alloc.h: Remove.
2621         * include/Makefile.am (ext_headers): Add.
2622         * include/Makefile.in: Regenerate.
2623         * src/stl-inst.cc: Use __gnu_cxx namespace.
2624         * src/stl-inst.cc: Move to...
2625         * src/allocator-inst.cc: Here.
2626         * src/Makefile.am (sources): Update.
2627         * src/Makefile.in: Regenerate.
2628         * config/linker-map.gnu: Remove __pool_alloc bits.
2629         * testsuite/ext/headers.cc: Add.
2630         * testsuite/ext/allocators.cc: Fixup.
2631
2632 2003-06-11  Stefan Olsson  <stefan@snon.net>
2633             Ola Rönnerup  <fnolis@home.se>
2634
2635         * include/Makefile.am (ext_headers): Add.
2636         * include/Makefile.in: Regenerate.
2637         * include/ext/mt_allocator.h: New file.
2638
2639 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
2640
2641         * include/bits/fstream.tcc (close): Clean up a bit.
2642
2643         * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
2644
2645         * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
2646         - the saved _M_in_cur, that is - cannot be null.
2647         (sync): Constify a variable.
2648
2649         * include/std/std_streambuf.h: Tweak a comment.
2650         (in_avail): Constify a variable.
2651
2652 2003-06-10  Phil Edwards  <pme@gcc.gnu.org>
2653
2654         * docs/html/17_intro/BUGS:  Update from 2.90.8 snapshot.
2655         * docs/html/17_intro/CHECKLIST:  Bring up to date with respect to
2656         correctness of container::iterator typedefs.  Fix whitespace.
2657         * docs/html/20_util/howto.html, docs/html/ext/howto.html:  Add links
2658         to allocator docs.
2659         * docs/html/documentation.html:  Regenerate.
2660
2661         * include/bits/basic_string.h, include/bits/basic_string.tcc,
2662         include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
2663         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
2664         include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
2665         include/bits/stl_list.h, include/bits/stl_uninitialized.h,
2666         include/bits/stl_vector.h, include/bits/vector.tcc,
2667         include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
2668         Change _Iter names to _Iterator, and __pos to __position.
2669
2670         * include/bits/stl_relops.h, include/bits/stl_numeric.h,
2671         include/bits/stl_multiset.h, include/bits/stl_set.h:
2672         Remove emacs markers.
2673
2674         * include/bits/stl_threads.h (_STL_auto_lock):  Add __unused__.
2675
2676 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
2677
2678         * include/bits/fstream.tcc (overflow): According to
2679         27.5.2.4.5, overflow() returns not_eof(eof()).
2680         * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
2681         * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
2682
2683 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
2684
2685         * include/bits/fstream.tcc (_M_underflow): Check overflow return
2686         value; tweak slightly.
2687
2688 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
2689
2690         * include/bits/fstream.tcc (_M_underflow): Do not special
2691         case the unbuffered case, which really means simply a one char
2692         get area.
2693         (basic_filebuf): Initialize _M_buf_size.
2694         (setbuf): Unbuffered means _M_buf_size == 1, since only
2695         _M_buf_size - 1 == 0 chars are going to be used for the
2696         put area and 1 for the get area.
2697         * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
2698         (~basic_streambuf): Tweak.
2699         (basic_streambuf): Do not initialize _M_buf_size.
2700         * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
2701         (~basic_filebuf): Tweak.
2702         (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
2703         unbuffered situation (i.e., put area pointers NULL).
2704         * include/bits/streambuf.tcc (sbumpc): Clean up.
2705         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
2706         * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
2707         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
2708         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
2709         * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
2710         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
2711         * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
2712
2713 2003-06-09  Phil Edwards  <pme@gcc.gnu.org>
2714
2715         * acinclude.m4:  Move all AM_CONDITIONAL calls out.
2716         (GLIBCPP_CONFIGURE):  Set defaults for variables used in AM_CONDITIONAL
2717         statements.
2718         * configure.in:  Centralize AM_CONDITIONALs so that they are always
2719         run.  Make use of GLIBCPP_IS_CROSS_COMPILING.
2720         * aclocal.m4, configure:  Regenerated.
2721
2722 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
2723
2724         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 235.
2725
2726 2003-06-06  Nathan Myers  <ncm-nospam@cantrip.org>
2727
2728         * include/bits/stl_iterator.h
2729         (reverse_iterator::reverse_iterator()): Apply DR235: default
2730         constructor default-initializes data member.  Instantiated on a
2731         pointer type, the member has to end up equal to zero.
2732
2733 2003-06-06  Benjamin Kosnik  <bkoz@redhat.com>
2734
2735         * include/bits/stl_alloc.h: Cleanups.
2736         * include/ext/functional: Same.
2737         * include/ext/hash_map: Same.
2738         * include/ext/hash_set: Same.
2739         * include/ext/iterator: Same.
2740         * include/ext/memory: Same.
2741         * include/ext/numeric: Same.
2742         * include/ext/rb_tree: Same.
2743         * include/ext/ropeimpl.h: Same.
2744         * include/ext/slist: Same.
2745         * include/ext/stdio_filebuf.h: Same.
2746         * include/ext/stdio_sync_filebuf.h: Same.
2747         * include/ext/stl_rope.h: Move to...
2748         * include/ext/rope: ...here.
2749         * include/ext/stl_hash_fun.h: Move to...
2750         * include/ext/hash_fun.h: ...here.
2751         * include/ext/stl_hashtable.h: Move to...
2752         * include/ext/hashtable.h: ...here.
2753         * include/backward/hashtable.h: Reflect new names.
2754         * include/Makefile.am: Same.
2755         * include/Makefile.in: Regenerated.
2756
2757 2003-06-05  Benjamin Kosnik  <bkoz@redhat.com>
2758
2759         PR libstdc++/9024
2760         * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
2761         * include/bits/stl_algobase.h: Tweak.
2762         * include/std/std_fstream.h: Move _M_buf_size to...
2763         * include/std/std_streambuf.h: ...here. Modify.
2764         * include/bits/streambuf.tcc: Same.
2765         * testsuite/testsuite_hooks.h: Tweak.
2766         * testsuite/testsuite_io.h (constraint_filebuf): New.
2767         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
2768         * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
2769         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
2770         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
2771         * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
2772         * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
2773         * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
2774         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
2775         * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
2776         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
2777         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
2778         * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
2779         * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
2780         * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
2781         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
2782         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
2783         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
2784         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
2785         * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
2786         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
2787         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
2788         * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
2789         * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
2790         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
2791         * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
2792         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
2793         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
2794         * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
2795         * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
2796         * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
2797         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
2798         * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
2799         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
2800         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
2801         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
2802         * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
2803         * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
2804         * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
2805         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
2806         * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
2807         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
2808         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
2809         * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
2810         * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
2811         * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
2812         * testsuite/data/sgetc.txt: New.
2813         * testsuite/data/sgetn.txt: New.
2814
2815 2003-06-05  Paolo Carlini  <pcarlini@unitus.it>
2816
2817         PR libstdc++/11095
2818         * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
2819         Deal with width() smaller than zero.
2820         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
2821         operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
2822         _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
2823         char*), operator<<(basic_ostream<char, _Traits>&, const char*),
2824         operator<<(basic_ostream, const basic_string&)): Likewise.
2825
2826         * testsuite/27_io/basic_istream/extractors_character/char/
2827         (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
2828         * testsuite/27_io/basic_ostream/inserters_character/char/
2829         (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
2830         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
2831         (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
2832
2833 2003-06-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2834
2835         * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
2836         .gch compilation works.
2837         * aclocal.m4, configure: Regenerate.
2838         * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
2839         initialize PCHFLAGS.
2840
2841 2003-06-04  Paolo Carlini  <pcarlini@unitus.it>
2842
2843         * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
2844         erase(iterator), erase(iterator, iterator), c_str,
2845         compare(const basic_string&)): Constify various variables.
2846         * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
2847         const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
2848         _S_create, resize, _M_replace, _M_replace_safe,
2849         append(const basic_string&), append(const basic_string&, size_type,
2850         size_type), append(const _CharT*, size_type), append(size_type,
2851         _CharT), operator+(const _CharT*, const basic_string&),
2852         operator+(_CharT, const basic_string&), replace(iterator, iterator,
2853         size_type, _CharT), find(const _CharT*, size_type, size_type),
2854         find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
2855         rfind(_CharT, size_type), compare(size_type, size_type,
2856         const basic_string&), compare(size_type, size_type,
2857         const basic_string&, size_type, size_type), compare(const _CharT*),
2858         compare(size_type, size_type, const _CharT*), compare(size_type,
2859         size_type, const _CharT*, size_type)): Likewise.
2860
2861 2003-06-03  Benjamin Kosnik  <bkoz@redhat.com>
2862
2863         * include/bits/fstream.tcc (pbackfail): Make a rarely taken
2864         'if' branch less obscure.
2865
2866 2003-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
2867
2868         PR libstdc++/9815
2869         * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
2870         asm case to asm.
2871         * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
2872         (__atomic_add): likewise.
2873
2874 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
2875
2876         * include/bits/sstream.tcc (pbackfail): Minor clean up and
2877         reformatting, consistent with basic_filebuf::pbackfail.
2878
2879 2003-06-02  Richard Kreckel  <Richard.Kreckel@GiNaC.DE>
2880
2881         PR libstdc++/11062
2882         * config/cpu/mips/atomicity.h:  Change __attribute__ ((unused)) to
2883         __attribute__ ((__unused__)).
2884         * config/os/aix/atomicity.h:  Likewise.
2885
2886 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
2887
2888         PR libstdc++/9761
2889         * include/bits/fstream.tcc (pbackfail): If the pback buffer
2890         is already active don't try to store in it a second char.
2891         * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
2892
2893         * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
2894
2895 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
2896
2897         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
2898         line spacing.
2899
2900 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
2901
2902         * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
2903         instead of unnecessarily taking the address of _M_pback.
2904         (xsgetn): Simplify slightly for a single char pback buffer.
2905
2906 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
2907
2908         * include/bits/sstream.tcc (seekoff): Remove four unnecessary
2909         variables and two 'if', clean up.
2910
2911 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
2912
2913         * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
2914         not _M_out_end, since the former actually points to the string
2915         end (vs buffer end).
2916         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
2917
2918 2003-05-30  Phil Edwards  <pme@gcc.gnu.org>
2919
2920         * docs/doxygen/filter:  New file.
2921         * docs/doxygen/filter.sed:  New file.
2922         * docs/doxygen/run_doxygen:  Add g flag to sed substitutions.  Duh.
2923         * docs/doxygen/user.cfg.in (INPUT_FILTER):  Point to new filter.
2924         * docs/html/documentation.html:  Fix links to doxygen pages.
2925
2926 2003-05-30  Paolo Carlini  <pcarlini@unitus.it>
2927
2928         * include/bits/fstream.tcc (_M_convert_to_external): Don't
2929         check for __ilen > 0.
2930
2931 2003-05-29  Sylvain Pion  <Sylvain.Pion@mpi-sb.mpg.de>
2932
2933         PR libstdc++/10783
2934         * include/bits/stl_iterator.h (class __normal_iterator):
2935         Don't inherit from iterator, add missing typedefs.
2936
2937 2003-05-29  Paolo Carlini <pcarlini@unitus.it>
2938
2939         * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
2940         * testsuite/24_iterators/reverse_iterator/1.cc: New.
2941         * testsuite/24_iterators/reverse_iterator/2.cc: New.
2942         * testsuite/24_iterators/reverse_iterator/3.cc: New, from
2943         PR libstdc++/10783.
2944
2945 2003-05-27  Steve Ellcey  <sje@cup.hp.com>
2946
2947         * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
2948         on IA64 HP-UX.
2949         * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
2950         _LIBUNWIND_STD_ABI is set.
2951
2952 2003-05-26  Brendan Kehoe  <brendan@zen.org>
2953
2954         * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
2955         make sure the number of digits required after the decimal-point
2956         (if any) is exactly the value returned by frac_digits().
2957         * testsuite/22_locale/money_get/get/char/9.cc: New.
2958         * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
2959
2960 2003-05-27  Jonathan Wakely  <redi@gcc.gnu.org>
2961
2962         * include/std/std_istream.h, include/std/std_ostream.h: Typo in
2963         comment.
2964
2965 2003-05-26  Benjamin Kosnik  <bkoz@redhat.com>
2966
2967         PR libstdc++/9339
2968         * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
2969         (_M_pback): No array necessary.
2970         * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
2971         unbuffered case, coalesec into ...
2972         (basic_filebuf::overflow): ...this.
2973         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
2974         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
2975
2976 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
2977
2978         * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
2979         libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
2980         libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
2981         libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
2982         libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
2983         libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
2984         libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
2985         libsupc++/eh_unex_handler.cc, libsupc++/exception,
2986         libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
2987         libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
2988         libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
2989         libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
2990         Replace "GNU CC" with "GCC".
2991
2992         * include/backward/new.h: Replace "GNU CC" with "GCC".
2993
2994 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2995
2996         PR libstdc++/3066.
2997         * configure.in: Switch target to host, don't assume newlib.
2998         (target_alias): Remove.
2999         * configure: Regenerate.
3000         * acinclude.m4: Same.
3001         * aclocal.m4: Regenerate.
3002         * configure.target: Same. Rename to...
3003         * configure.host: This.
3004
3005 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
3006
3007         * include/std/std_fstream.h (_S_pback_size): Remove definition.
3008         (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
3009         pback buffer.
3010         * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
3011         * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
3012         of _S_pback_size for systems with no COMDAT or weak support.
3013         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
3014         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
3015         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
3016         * testsuite/27_io/basic_fstream/3.cc: Likewise.
3017         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
3018         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
3019         * testsuite/27_io/basic_ofstream/3.cc: Likewise.
3020         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
3021         * testsuite/27_io/basic_streambuf/3.cc: Likewise.
3022
3023 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
3024
3025         * include/bits/fstream.tcc (_M_underflow): Simplify:
3026         !__testout implies _M_filepos == _M_in_end, therefore
3027         the first _M_file.seekoff call is never issued.
3028
3029 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
3030
3031         * configure.in: Sort cross table.
3032         * configure: Regenerate.
3033
3034 2003-05-22  Brad Spencer  <spencer@infointeractive.com>
3035
3036         PR libstdc++/10106
3037         * configure.in: Add Solaris cross bits.
3038
3039 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
3040
3041         * libstdc++-v3/config/os/mingw32/os_defines.h
3042         (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
3043         (NOMINMAX): Define.  Update copyright year.
3044
3045 2003-05-21  Paolo Carlini  <pcarlini@unitus.it>
3046
3047         * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
3048
3049 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
3050
3051         * docs/html/faq/index.html: Fix typo.
3052         * docs/html/faq/index.txt: Regenerate.
3053
3054 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
3055
3056         * docs/html/test.html: Fix markup.
3057
3058 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
3059
3060         * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
3061         zero.
3062         Update copyright year.
3063
3064 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
3065
3066         * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
3067
3068 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
3069
3070         * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
3071         further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
3072
3073 2003-05-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3074
3075         * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
3076         Cast via void* to avoid -Wcast-align warnings.
3077         (__default_alloc_template::_S_refill): Likewise.
3078
3079 2003-05-20  Benjamin Kosnik  <bkoz@redhat.com>
3080
3081         * testsuite/README: Move to...
3082         * docs/html/test.html: ...here. Add documentation.
3083         * docs/html/install.html: Move testing bits out..
3084         * docs/html/documentation.html: Add separate testing link.
3085         * testsuite/performance: Add.
3086         * testsuite/performance/allocator.cc: New.
3087         * testsuite/performance/complex_norm.cc: New.
3088         * testsuite/performance/cout_insert_int.cc: New.
3089         * testsuite/performance/fstream_seek_write.cc: New.
3090         * testsuite/performance/ifstream_getline.cc: New.
3091         * testsuite/performance/map_create_fill.cc: New.
3092         * testsuite/performance/ofstream_insert_float.cc: New.
3093         * testsuite/performance/ofstream_insert_int.cc: New.
3094         * testsuite/performance/string_append.cc: New.
3095         * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
3096         performance tests.
3097
3098 2003-05-20  Gabriel Dos Reis <gdr@integrable-solutions.net>
3099
3100         PR libstdc++/10689
3101         * include/std/std_complex.h (pow): Tidy.
3102
3103 2003-05-19  Paolo Carlini  <pcarlini@unitus.it>
3104
3105         * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
3106         that upon filebuf::close() 27.8.1.1,3 is enforced.
3107
3108 2003-05-15  Loren J. Rittle  <ljrittle@acm.org>
3109
3110         * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
3111
3112 2003-05-15  Paolo Carlini  <pcarlini@unitus.it>
3113             Nathan Myers  <ncm@cantrip.org>
3114
3115         * include/bits/fstream.tcc (_M_overflow): Rewrote to call
3116         _M_convert_to_external only once (_M_buf_size is now the size of
3117         the put area + 1 for the overflow char of a full area); call
3118         _M_set_buffer instead of _M_set_indeterminate.
3119         (setbuf): Don't accept a buffer smaller than 2 chars.
3120         (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
3121         instead of _M_set_determinate.
3122         (open): Call _M_set_buffer, instead of _M_set_indeterminate.
3123         (seekoff): Likewise.
3124         * include/ext/stdio_filebuf.h (stdio_filebuf(int,
3125         std::ios_base::openmode, bool, size_t),
3126         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
3127         Likewise.
3128         * include/std/std_fstream.h (_M_set_indeterminate): Remove.
3129         (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
3130         _M_buf_size - 1.
3131         * include/std/std_streambuf.h: Tweak _M_out_lim comment.
3132         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
3133         into account that, for _M_buf_size == BUFSIZ == 8192, the size of
3134         the put area is now BUFSIZ - 1.
3135         * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
3136         that now the smallest _M_buf_size is 2 (still fails, for the same
3137         reason, with 3.2.3)
3138
3139 2003-05-14  Loren J. Rittle  <ljrittle@acm.org>
3140
3141         * testsuite/thread/pthread4.cc: Tweak test.
3142
3143 2003-05-13  Benjamin Kosnik  <bkoz@redhat.com>
3144
3145         * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
3146         excess errors dg marker, use dg-errors instead.
3147         * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
3148         * testsuite/20_util/auto_ptr_neg.cc: Same.
3149
3150 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
3151
3152         * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
3153         cached member.
3154         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
3155         Initialize _M_codecvt.
3156         (basic_filebuf::imbue): Same.
3157         (basic_filebuf::showmanyc): Use it.
3158         (basic_filebuf::underflow): Use it.
3159         (basic_filebuf::_M_convert_to_external): Use it.
3160         (basic_filebuf::seekoff): Use it.
3161         (basic_filebuf::imbue): Use it, tweaks.
3162         * include/bits/localefwd.h (__check_facet): New.
3163         * include/bits/locale_classes.h: Tweaks.
3164         * include/bits/locale_facets.tcc: Tweaks.
3165         * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
3166         _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
3167         _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
3168         * include/bits/basic_ios.tcc: Same.
3169         * include/bits/istream.tcc: Same.
3170         * include/bits/ostream.tcc: Same.
3171         * include/std/std_streambuf.h: Same.
3172         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
3173         * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
3174         * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
3175         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
3176         * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
3177         * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
3178
3179 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
3180
3181         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
3182         unnecessary includes and unused string literals.
3183         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
3184         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
3185         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
3186         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
3187
3188 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
3189
3190         * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
3191
3192 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
3193
3194         * include/std/std_fstream.h (_M_convert_to_external): Change
3195         to return bool, take two less streamsize parameters.
3196         * include/bits/fstream.tcc (_M_convert_to_external): Tweak
3197         consistently definition.
3198         (_M_overflow): Adjust call points.
3199
3200 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
3201
3202         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
3203
3204 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
3205
3206         * testsuite/Makefile.am:  Properly quote /both/ LD_RUN_PATHs.
3207         * testsuite/Makefile.in:  Regenerate.
3208
3209 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
3210
3211         * testsuite/Makefile.am:  Properly quote LD_RUN_PATH.
3212         * testsuite/Makefile.in:  Regenerate.
3213
3214 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
3215
3216         PR libstdc++/3181
3217         * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
3218         (acos): Handle integer argument.
3219         (asin): Likewise.
3220         (atan): Likewise.
3221         (atan2): Likewise.
3222         (ceil): Likewise.
3223         (cos): Likewise.
3224         (cosh): Likewise.
3225         (exp): Likewise.
3226         (fabs): Likewise.
3227         (floor): Likewise.
3228         (frexp): Likewise.
3229         (ldexp): Likewise.
3230         (log): Likewise.
3231         (log10): Likewise.
3232         (sin): Likewise.
3233         (sinh): Likewise.
3234         (sqrt): Likewise.
3235         (tan): Likewise.
3236         (tanh): Likewise.
3237         * include/bits/cpp_type_traits.h (__are_same<>): New traits.
3238         (__enable_if): Likewise.
3239         * testsuite/26_numerics/cmath/overloads.C: New test.
3240
3241 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
3242
3243         PR libstdc++/9027
3244         PR libstdc++/9520
3245         PR libstdc++/10096
3246         * include/bits/fstream.tcc (basic_file::_M_underflow):  Add generic
3247         implementation, based on old wchar_t specialization, add support
3248         for codecvt::in() return value of codecvt_base::noconv, remove
3249         _M_file.sys_ungetc() call.
3250         * include/std/std_fstream.h (basic_file::underflow,
3251         basic_file::uflow, basic_file::_M_underflow):  Remove
3252         specialization declarations, call _M_underflow from generic versions
3253         of underflow and uflow.
3254         * src/fstream.cc (basic_file::underflow, basic_file::uflow,
3255         basic_file::_M_underflow):  Remove specializations.
3256         * src/Makefile.am (sources):  Remove fstream.cc.
3257         * src/Makefile.in:  Regenerated.
3258         * testsuite/27_io/basic_filebuf/underflow/10096.cc:  New test.
3259         * testsuite/27_io/basic_filebuf/underflow/char/1.cc:  New test.
3260         * testsuite/27_io/basic_filebuf/underflow/char/9027.cc:  New test.
3261         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc:  New test.
3262
3263 2003-05-10  Benjamin Kosnik  <bkoz@redhat.com>
3264
3265         * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
3266         buffer.
3267         * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
3268         unbuffered bits.
3269         (__basic_file::xsputn): Same.
3270         (__basic_file::seekoff): Same.
3271         (__basic_file::seekpos): Same.
3272         (__basic_file::showmanyc): Same.
3273         * config/io/basic_file_stdio.cc: Same.
3274         * include/std/std_fstream.h: Same.
3275         * include/bits/fstream.tcc: Same.
3276         * src/fstream.cc: Same.
3277         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
3278
3279 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
3280
3281         PR libstdc++/9520
3282         PR libstdc++/9661
3283         PR libstdc++/9662
3284         * include/ext/stdio_sync_filebuf.h:  New file.
3285         (basic_stdiobuf):  New.
3286         * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
3287         * include/Makefile.in: Regenerate.
3288         * include/bits/ios_base.h (Init::_S_create_buffers,
3289         Init::_S_destroy_buffers):  Remove declarations.
3290         * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
3291         buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync):  Define.
3292         * src/ios.cc (Init::_S_create_buffers,
3293         Init::_S_destroy_buffers):  Remove.
3294         (Init::Init):  Create and use syncronized buffers.
3295         (ios_base::sync_with_stdio):  Destroy syncronized buffers,
3296         create and install unsyncronized buffers.
3297         * testsuite/27_io/objects/char/10.cc:  New test.
3298         * testsuite/27_io/objects/char/9.cc:  New test.
3299         * testsuite/27_io/objects/char/9661-1.cc:  New test.
3300         * testsuite/27_io/objects/char/9661-2_xin.cc:  New test.
3301         * testsuite/27_io/objects/char/9661-2_xin.in:  New.
3302         * testsuite/27_io/objects/wchar_t/1.cc:  New test.
3303         * testsuite/27_io/objects/wchar_t/10.cc:  New test.
3304         * testsuite/27_io/objects/wchar_t/2.cc:  New test.
3305         * testsuite/27_io/objects/wchar_t/2523-1_xin.cc:  New test.
3306         * testsuite/27_io/objects/wchar_t/2523-1_xin.in:  New.
3307         * testsuite/27_io/objects/wchar_t/2523-2_xin.cc:  New test.
3308         * testsuite/27_io/objects/wchar_t/2523-2_xin.in:  New.
3309         * testsuite/27_io/objects/wchar_t/3045.cc:  New test.
3310         * testsuite/27_io/objects/wchar_t/3647.cc:  New test.
3311         * testsuite/27_io/objects/wchar_t/3_xin.cc:  New test.
3312         * testsuite/27_io/objects/wchar_t/3_xin.in:  New.
3313         * testsuite/27_io/objects/wchar_t/4_xin.cc:  New test.
3314         * testsuite/27_io/objects/wchar_t/4_xin.in:  New.
3315         * testsuite/27_io/objects/wchar_t/5.cc:  New test.
3316         * testsuite/27_io/objects/wchar_t/5268.cc:  New test.
3317         * testsuite/27_io/objects/wchar_t/5280_xin.cc:  New test.
3318         * testsuite/27_io/objects/wchar_t/5280_xin.in:  New.
3319         * testsuite/27_io/objects/wchar_t/6.cc:  New test.
3320         * testsuite/27_io/objects/wchar_t/6548_xin.cc:  New test.
3321         * testsuite/27_io/objects/wchar_t/6548_xin.in:  New.
3322         * testsuite/27_io/objects/wchar_t/6648-1_xin.cc:  New test.
3323         * testsuite/27_io/objects/wchar_t/6648-1_xin.in:  New.
3324         * testsuite/27_io/objects/wchar_t/6648-2_xin.cc:  New test.
3325         * testsuite/27_io/objects/wchar_t/6648-2_xin.in:  New.
3326         * testsuite/27_io/objects/wchar_t/7.cc:  New test.
3327         * testsuite/27_io/objects/wchar_t/7744_xin.cc:  New test.
3328         * testsuite/27_io/objects/wchar_t/7744_xin.in:  New.
3329         * testsuite/27_io/objects/wchar_t/8.cc:  New test.
3330         * testsuite/27_io/objects/wchar_t/9_xin.cc:  New test.
3331         * testsuite/27_io/objects/wchar_t/9_xin.in:  New.
3332         * testsuite/27_io/objects/wchar_t/9520.cc:  New test.
3333         * testsuite/27_io/objects/wchar_t/9661-1.cc:  New test.
3334         * testsuite/27_io/objects/wchar_t/9661-2_xin.cc:  New test.
3335         * testsuite/27_io/objects/wchar_t/9661-2_xin.in:  New.
3336         * testsuite/27_io/objects/wchar_t/9662.cc:  New test.
3337         * testsuite/ext/stdiobuf_char.cc:  New test.
3338         * testsuite/ext/stdiobuf_wchar_t.cc:  New test.
3339
3340 2003-05-10  Paolo Carlini  <pcarlini@unitus.it>
3341
3342         * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
3343         unnecessary includes and unused string literals.
3344         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
3345
3346 2003-05-08  Paolo Carlini  <pcarlini@unitus.it>
3347
3348         * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
3349
3350 2003-05-07  Richard Henderson  <rth@redhat.com>
3351
3352         PR c++/10570
3353         * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
3354         (__cxa_end_catch): Likewise.
3355         * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise.  Use
3356         _Unwind_Resume_or_Rethrow.
3357         * libsupc++/eh_personality.cc (empty_exception_spec): New.
3358         (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
3359         for _UA_FORCE_UNWIND.  Honor empty filter spec for foreign
3360         exceptions.  Don't push terminate/unexpected to cxa functions.
3361         (__cxa_call_unexpected): Remove foreign exception fixmes.
3362
3363 2003-05-07  Benjamin Kosnik  <bkoz@redhat.com>
3364
3365         * testsuite/27_io/ios_base/cons: New.
3366         * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
3367         * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
3368
3369 2003-05-07  Paolo Carlini  <pcarlini@unitus.it>
3370
3371         * include/std/std_fstream.h (_M_is_indeterminate): Remove.
3372         * src/fstream.cc
3373         (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
3374         there is no buffer or __testget == !__testinit.
3375
3376         * src/fstream.cc
3377         (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
3378         automatically sets, if appropriate, _M_out_cur == _M_in_cur.
3379
3380         * include/std/std_fstream.h (_M_destroy_pback): Don't set
3381         unnecessarily _M_pback_cur_save and _M_pback_end_save.
3382
3383         * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
3384
3385         * include/std/std_sstream.h (_M_sync): Minor tweak.
3386
3387         * include/bits/fstream.tcc (close): No need to call
3388         _M_destroy_pback, setting _M_pback_init to false suffices
3389         to clean up.
3390
3391 2003-05-06  Benjamin Kosnik  <bkoz@redhat.com>
3392
3393         * include/bits/stl_algo.h: Enums as _S_.
3394         * include/bits/stl_tree.h: Same.
3395         * include/bits/stl_bvector.h: Same.
3396         * include/bits/ios_base.h: Same.
3397         * include/bits/stl_alloc.h: Same.
3398         * include/ext/stl_hashtable.h: Same.
3399         * src/ios.cc: And here.
3400
3401         * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
3402         * include/bits/sstream.tcc: Same.
3403
3404         * include/bits/basic_ios.h: Correct spacing for '< ctype'.
3405
3406         * include/bits/locale_facets.tcc: Replace __temp to __tmp.
3407
3408         * include/bits/locale_facets.h (__num_base): Remove protected.
3409         Use _S_[io]* names for enumerations.
3410         (_S_format_int): Remove.
3411         * include/bits/locale_facets.tcc: Same.
3412         * src/locale.cc: Same.
3413
3414         * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
3415
3416 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
3417
3418         * docs/html/faq/index.html (3.10):  Add note about mips atomicity.h.
3419         * docs/html/faq/index.txt:  Regenerated.
3420
3421 2003-05-06  Michael Ritzert <Ritzert@t-online.de>
3422             Matt Kraai <kraai@alumni.cmu.edu>
3423
3424         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
3425         And retweak.
3426
3427 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
3428
3429         * configure.target (mips*): Use the generic atomicity.h by default.
3430
3431 2003-05-05  Loren J. Rittle  <ljrittle@acm.org>
3432             (Inspired by an alternate patch from Danny Smith.)
3433
3434         * include/bits/stl_threads.h (_Atomic_swap): Kill it...
3435         (_Swap_lock_struct<>): ...and the horse it rode in on.
3436         * src/globals.cc (_Swap_lock_struct<>): Likewise.
3437         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
3438         member to support...
3439         * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
3440         visibility rules related to POSIX threads.
3441         * testsuite/thread/pthread7-rope.cc: New test.
3442
3443 2003-05-04  Paolo Carlini  <pcarlini@unitus.it>
3444
3445         * testsuite/21_strings/basic_string/find/char/3.cc: New
3446         file, testing basic_string<char>::find_first_not_of.
3447         * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
3448         Likewise for basic_string<wchar_t>.
3449
3450 2003-05-03  Loren J. Rittle  <ljrittle@acm.org>
3451
3452         * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
3453
3454 2003-05-02  Benjamin Kosnik  <bkoz@redhat.com>
3455
3456         * include/Makefile.am (CLEANFILES): Remove PCH files in target
3457         directory.
3458         * include/Makefile.in: Regenerate.
3459
3460 2003-05-02  Paolo Carlini  <pcarlini@unitus.it>
3461
3462         * include/std/std_sstream.h (str()): Tidy.
3463
3464 2003-05-02  Nathan Myers  <ncm@cantrip.org>
3465             Paolo Carlini  <pcarlini@unitus.it>
3466
3467         * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
3468
3469 2003-05-02  Jonathan Wakely  <redi@gcc.gnu.org>
3470
3471         * include/bits/basic_string.h (swap): Remove redundant template
3472         parameters from declaration of non-template member function.
3473
3474 2003-05-01  Phil Edwards  <pme@gcc.gnu.org>
3475
3476         * acconfig.h (_GLIBCPP_USE_NLS):  New symbol.
3477         * configure.in:  Move libintl.h header test...
3478         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  ...to here.  Gather all
3479         the NLS-related test results into one symbol.
3480         * src/functexcept.cc:  Use it here.
3481         * aclocal.m4, config.h.in, configure:  Regenerated.
3482
3483 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
3484
3485         * include/bits/sstream.tcc (overflow): Instead of calling
3486         str(), then _M_string.reserve, thus copying the contents
3487         of the current buffer two times, just copy the latter in
3488         a temporary, then use the 'swap trick'.
3489
3490 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
3491
3492         * include/std/std_sstream.h (str()): Revert the best of the
3493         previous 'improvement', incorrect due to the COW nature of
3494         v3 basic_string; simplify.
3495
3496 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
3497
3498         * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
3499         type of __avail to ptrdiff_t to avoid signed-unsigned warning.
3500
3501 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
3502
3503         * testsuite/abi_check.cc (check_version): Update known versions.
3504         Check added symbols for version_name != base version. Add missing
3505         symbols to incompatible list.
3506
3507 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
3508
3509         * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
3510         * aclocal.m4: Regenerated.
3511         * configure: Regenerated.
3512
3513 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
3514
3515         * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
3516         Const-ify some variables.
3517         (basic_streambuf::xsputn): Likewise; change the type of some
3518         variables to size_t.
3519         (__copy_streambufs): Change some variables to size_t.
3520
3521 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
3522
3523         * include/std/std_sstream.h (str()): Avoid constructing
3524         a basic_string temporary not only when it would turn out
3525         to be zero-sized but also when identical to the current
3526         _M_string buffer.
3527
3528 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
3529
3530         * include/ext/stdio_filebuf.h
3531         (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
3532         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
3533         Shorten a bit (-10 lines) by factoring out some code.
3534
3535 2003-04-30  Phil Edwards  <pme@gcc.gnu.org>
3536
3537         * acinclude.m4:  Add bit missing from previous patch.
3538         * aclocal.m4, configure:  Regenerated.
3539
3540 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
3541
3542         * docs/doxygen/mainpage.html:  Bring up to date.
3543         * docs/doxygen/run_doxygen:  Cosmetic tweaks.  Work around a bug
3544         in Doxygen.
3545         * docs/doxygen/user.cfg.in:  Scanning the precompiled headers
3546         breaks everything.  Don't scan them.
3547         * docs/html/documentation.html:  Point to "Write after approval"
3548         notes.
3549
3550 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
3551
3552         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  Search for gettext outside
3553         of libc if message translations are being used.  Fix info text in
3554         xieee_1003.1-2001 case.
3555         * aclocal.m4, configure:  Regenerate.
3556
3557 2003-04-29 Joel Sherrill  <joel.sherrill@OARcorp.com>
3558            Loren J. Rittle <ljrittle@acm.org>
3559            Martin v. Loewis  <martin@v.loewis.de>
3560
3561         * config/cpu/i386/atomicity.h: New file.
3562
3563 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
3564
3565         * include/bits/fstream.tcc (open): Change to single return.
3566
3567 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
3568
3569         * include/std/std_sstream.h (underflow): Change to single return.
3570
3571 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
3572
3573         * include/std/std_streambuf.h (_M_buf): is currently
3574         used only for basic_filebuf, therefore move it there.
3575         (basic_streambuf(), ~basic_streambuf()): Adjust.
3576         * include/std/std_fstream.h (_M_buf): Moved here.
3577         * include/std/std_sstream.h (setbuf): Don't set _M_buf,
3578         is actually redundant for basic_stringbuf.
3579         (_M_really_sync): Likewise.
3580         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
3581         * include/bits/sstream.tcc (seekoff): Adjust.
3582
3583 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
3584
3585         * src/localename.cc: Standardize exception strings.
3586         * src/locale.cc: Same.
3587         * src/ios.cc: Same.
3588         * include/bits/basic_string.tcc: Same.
3589         * include/bits/basic_ios.tcc: Same.
3590         * include/std/std_bitset.h: Same.
3591         * include/ext/ropeimpl.h: Same.
3592         * include/bits/stl_vector.h: Same.
3593         * include/bits/stl_deque.h: Same.
3594         * include/bits/stl_bvector.h: Same.
3595         * config/locale/generic/c_locale.cc: Same.
3596         * config/locale/gnu/c_locale.cc: Same.
3597         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
3598
3599         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
3600
3601 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
3602
3603         * include/std/std_streambuf.h (_M_buf_size): is currently
3604         used only for basic_filebuf, therefore move it there.
3605         (basic_streambuf(), ~basic_streambuf()): Adjust.
3606         * include/std/std_fstream.h (_M_buf_size): Moved here.
3607         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
3608
3609 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
3610
3611         * include/bits/streambuf.tcc (__copy_streambufs): Don't use
3612         _M_buf_size (synced input is now correctly dealt with
3613         elsewhere); when the output buffer is full don't fall back
3614         to a snextc-sputc loop, call overflow instead.
3615
3616 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
3617
3618         * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
3619         the innermost 'if' by factoring out some code.
3620
3621 2003-04-28  Phil Edwards  <pme@gcc.gnu.org>
3622
3623         * configure.in:  Test for libintl.h.
3624         * include/bits/c++config:  Define __N for everybody.
3625         * include/bits/basic_string.h, include/bits/stl_bvector.h,
3626         include/bits/stl_deque.h, include/bits/stl_vector.h,
3627         include/std/std_bitset.h:  Wrap all __throw* text with __N.
3628         * po/Makefile.am (pot):  New rule, mostly working.
3629         * src/functexcept.cc:  Call gettext on all __throw* arguments when
3630         -fexceptions is in effect.
3631         * po/Makefile.in, config.h.in, configure:  Regenerate.
3632
3633 2003-04-28  Petur Runolfsson  <peturr02@ru.is>
3634
3635         PR libstdc++/9523
3636         * include/bits/ios_base.h (Init::_S_ios_create,
3637         Init::_S_ios_destroy):  Remove declarations.
3638         (Init::_S_create_buffers,
3639         Init::_S_destroy_buffers):  Declare
3640         * src/ios.cc (Init::_S_ios_create):  Remove
3641         (Init::_S_create_buffers):  Create buffers and add to streams.
3642         (Init::_S_ios_destroy):  Rename to...
3643         (Init::_S_destroy_buffers):  this.
3644         (Init::Init):  Only construct streams once.
3645         (Init::~Init):  Flush streams, don't destroy them.
3646         (ios_base::sync_with_stdio):  Don't destroy streams, only buffers.
3647         * testsuite/27_io/ios_base/sync_with_stdio/9523.cc:  New test.
3648         * testsuite/27_io/objects/char/5.cc:  New test.
3649         * testsuite/27_io/objects/char/5268.cc:  Avoid undefined behavior.
3650         * testsuite/27_io/objects/char/6.cc:  New test.
3651         * testsuite/27_io/objects/char/7.cc:  New test.
3652
3653 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
3654
3655         * testsuite/27_io/objects/char/8.cc:  New test.
3656
3657 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
3658
3659         * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
3660         * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
3661
3662 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
3663
3664         * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
3665         _M_destroy_pback. _M_pback_create to
3666         _M_create_pback. _M_underflow_common to
3667         _M_underflow. _M_really_overflow to _M_overflow.
3668         * include/bits/fstream.tcc: Same.
3669         * src/fstream.cc: Same.
3670         * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
3671         _M_move_in_cur.  _M_out_cur_move to _M_move_out_cur.
3672         * include/bits/streambuf.tcc: Same.
3673         * include/bits/fstream.tcc: Same.
3674         * include/bits/sstream.tcc: Same.
3675
3676 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
3677
3678         * include/bits/locale_classes.h (locale::_Impl): Change _M_names
3679         from fixed size array.
3680         (locale): Change _S_categories as well.
3681         Formatting tweaks.
3682         * include/bits/locale_facets.tcc: Tweak.
3683         * config/locale/gnu/c_locale.cc: Assign _S_categories.
3684         * config/locale/generic/c_locale.cc: Same.
3685         * src/locale.cc: Tweak.
3686         * src/globals.cc: Change facet_name to name_vec, add names_c.
3687         * src/localename.cc: Use them.
3688         (locale::_Impl::~_Impl): Destroy _M_names.
3689         (locale::_Impl::_Impl): Create _M_names.
3690
3691 2003-04-27  Andreas Schwab  <schwab@suse.de>
3692
3693         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3694         (__enc_traits): Use __ibom and __ebom instead of ignoring them.
3695
3696 2003-04-27  Nathan Myers  <ncm@cantrip.org>
3697
3698         Move some basic_string members out of line because
3699         they are too big to reasonably be inline.
3700         * include/bits/basic_string.h
3701         (assign(const basic_string&, size_type, size_type),
3702         assign(const _CharT*, size_type),
3703         insert(size_type, const basic_string&, size_type, size_type),
3704         insert(size_type, const _CharT*, size_type),
3705         replace(size_type, size_type, const _CharT*, size_type)):
3706         Move from here to...
3707         * include/bits/basic_string.tcc: ...here.
3708
3709 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
3710
3711         * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
3712         the innermost 'if' by factoring out some code.
3713
3714 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
3715
3716         * include/bits/streambuf.tcc (__copy_streambufs): Don't
3717         use in_avail(), simplify.
3718
3719 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
3720
3721         * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
3722         in basic_stringbuf it's unused.
3723
3724         * include/std/std_sstream.h (underflow): consistently use
3725         _M_in_cur, not gptr().
3726
3727 2003-04-25  Ranjit Mathew  <rmathew@hotmail.com>
3728             Phil Edwards  <pme@gcc.gnu.org>
3729
3730         * testsuite_flags.in: Guard against the possibility
3731         of having "xgcc" as a part of a folder name in the
3732         path to the GCC build folder.
3733         * testsuite/Makefile.am: Likewise.
3734         * testsuite/Makefile.in: Regenerated.
3735
3736 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
3737
3738         PR libstdc++/10132
3739         * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
3740         exception specifications.
3741         (basic_filebuf::close): Same.
3742         (basic_filebuf::_M_pback_destroy): Same.
3743         (basic_filebuf::_M_destroy_internal_buffer): Same.
3744         (basic_filebuf): Remove __res_type typedef.
3745         * src/fstream.cc: Same.
3746         * include/bits/fstream.tcc
3747         (basic_filebuf::_M_convert_to_external): Simplify.
3748         (basic_filebuf::seekoff): Use has_facet before use_facet.
3749         (basic_filebuf::close): Add exception specification of throw().
3750         * testsuite/27_io/basic_filebuf/cons: New.
3751         * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
3752         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
3753         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
3754         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
3755
3756 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
3757
3758         * include/bits/locale_classes.h
3759         (locale::_S_extra_categories_size): Remove.
3760         * src/locale.cc: Remove _S_extra_categories_size.
3761         * src/localename.cc: Same.
3762         * config/locale/gnu/c_locale.cc: Same.
3763         * config/locale/generic/c_locale.cc: Same.
3764
3765 2003-04-24  Richard Sandiford  <rsandifo@redhat.com>
3766
3767         * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
3768
3769 2003-04-24  Phil Edwards  <pme@gcc.gnu.org>
3770
3771         * docs/html/17_intro/howto.html:  Update some links.
3772         * docs/html/18_support/howto.html:  Link doxygen numeric_limits notes.
3773         * docs/html/27_io/howto.html:  Link doxygen stdio_filebuf notes.
3774         * docs/html/ext/howto.html:  Link to demangler notes and API.
3775         * docs/html/faq/index.html:  Remove trailing whitespace.
3776         (1.4, 2.4, 3.8, 4.1):  Bring up to date.
3777         (5.6):  Change to a bulleted list.
3778
3779         * docs/html/faq/index.txt, docs/html/documentation.html,
3780         docs/html/17_intro/porting.html:  Regenerate.
3781
3782 2003-04-23  Paolo Carlini  <pcarlini@unitus.it>
3783
3784         * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
3785         belongs to basic_filebuf.
3786         * testsuite/27_io/basic_fstream/3.cc: Likewise.
3787         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
3788         * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
3789         instantiation (now belongs to basic_filebuf).
3790         * testsuite/27_io/basic_iostream/3.cc: Likewise.
3791         * testsuite/27_io/basic_istream/3.cc: Likewise.
3792         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
3793         _S_pback_size now belongs to basic_filebuf.
3794         * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
3795         instantiation (now belongs to basic_filebuf).
3796         * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
3797         belongs to basic_filebuf.
3798         * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
3799         instantiation (now belongs to basic_filebuf).
3800         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
3801         _S_pback_size now belongs to basic_filebuf.
3802         * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
3803         instantiation (now belongs to basic_filebuf).
3804         * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
3805         to basic_filebuf.
3806         * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
3807         instantiation (now belongs to basic_filebuf).
3808         * testsuite/27_io/basic_stringstream/3.cc: Likewise.
3809
3810 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
3811
3812         * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
3813         * configure: Regenerated.
3814
3815 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
3816
3817         * config/locale/generic/c_locale.h (__convert_from_v): Use
3818         attribute unused.
3819
3820 2003-04-23  Phil Edwards  <pme@gcc.gnu.org>
3821
3822         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 60, partial
3823         implementation only.
3824         * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
3825         Comment and change to comply with DR 60 and the effect on gcount().
3826         * include/std/std_istream.h:  Update comments.
3827         * testsuite/27_io/basic_istream/putback/char/1.cc (test01):  Add
3828         comments about reasons for tests.  Test sync() against gcount().
3829         * testsuite/27_io/basic_istream/seekg/char/2.cc:  New file, test
3830         for effect on gcount().
3831         * testsuite/27_io/basic_istream/tellg/char/2.cc:  New file, test
3832         for effect on gcount().
3833
3834 2003-04-22  Loren J. Rittle  <ljrittle@acm.org>
3835
3836         * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
3837         Adjust timing.
3838
3839 2003-04-22  Paolo Carlini  <pcarlini@unitus.it>
3840
3841         * include/std/std_streambuf.h (_S_pback_size, _M_pback,
3842         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
3843         _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
3844         (basic_streambuf::basic_streambuf()): Adjust.
3845         * include/std/std_fstream.h (_S_pback_size, _M_pback,
3846         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
3847         _M_pback_create(), _M_pback_destroy()): Moved here
3848         from basic_streambuf.
3849         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
3850         Adjust.
3851         (basic_filebuf::_S_pback_size): Add declaration.
3852         * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
3853         Remove declaration.