OSDN Git Service

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