OSDN Git Service

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