OSDN Git Service

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