* function.c (update_epilogue_consts): Don't use PARAMS.
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob4ee7fd7967be986ca0e5b15063391cc253cdf94b
1 2003-11-30  Paolo Carlini  <pcarlini@suse.de>
3         * config/locale/gnu/codecvt_members.cc (codecvt::do_in,
4         codecvt::do_length): More minor tweaks.
6 2003-11-30  Paolo Carlini  <pcarlini@suse.de>
8         * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
9         Minor stylistic tweak.
11 2003-11-30  Paolo Carlini  <pcarlini@suse.de>
13         * include/bits/locale_facets.tcc (num_put::do_put(..., bool)):
14         Minor tweaks, consistent with the style used in other facets.
16 2003-11-29  Paolo Carlini  <pcarlini@suse.de>
18         * include/bits/fstream.tcc (underflow): Minor tweaks in
19         preparation for libstdc++/13217.
21 2003-11-29  Paolo Carlini  <pcarlini@suse.de>
23         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc:
24         Tweak for a few small problems (fix timings, use VERIFY..)
26 2003-11-28  Paolo Carlini  <pcarlini@suse.de>
28         * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: Remove.
29         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13171-3.cc: New,
30         the original third testcase for libstdc++/13171 belong here.
32 2003-11-28  Paolo Carlini  <pcarlini@suse.de>
34         * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc:
35         Remove extraneous wchar_t lines.
36         
37 2003-11-27  Paolo Carlini  <pcarlini@suse.de>
39         PR libstdc++/11544
40         PR libstdc++/11603
41         * include/bits/fstream.tcc (underflow): Throw ios_base:failure
42         upon incomplete or invalid byte sequences in the file.
43         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-1.cc: New.
44         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-2.cc: New.
45         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: New.
47 2003-11-27  Paolo Carlini  <pcarlini@suse.de>
49         * include/std/std_streambuf.h (__copy_streambufs): Remove
50         the first, unused, basic_ios<> parameter.
51         * src/streambuf-inst.cc: Likewise.
52         * include/bits/streambuf.tcc: Likewise.
53         * include/bits/istream.tcc (operator>>(__streambuf_type*)):
54         Tweak accordingly the call.
55         * include/bits/ostream.tcc (operator<<(__streambuf_type*)):
56         Likewise.
58         * include/bits/streambuf.tcc (__copy_streambufs): Remove
59         redundant try/catch.
61 2003-11-26  Benjamin Kosnik  <bkoz@redhat.com>
63         PR libstdc++/9371
64         PR libstdc++/9546
65         PR libstdc++/10093
66         PR libstdc++/10095
67         * include/bits/basic_ios.h (basic_ios::setstate): Elide if goodbit.
68         (basic_ios::_M_setstate): Consolidate common error handling code.
69         * include/bits/basic_ios.tcc: Tweak.
70         * include/bits/fstream.tcc: Tweak.
71         * include/bits/istream.tcc: Use _M_setstate for common exception
72         handling. Move setstate calls after catch. 
73         (basic_istream::tellg): Check for exceptions thrown by streambuf
74         virtual functions.
75         (basic_istream::seekg): Same.
76         * include/bits/ostream.tcc: Same, but for ostream.
77         (basic_ostream::flush): Check for exceptions thrown by streambuf
78         virtual functions.
79         (basic_istream::tellp): Same.   
80         (basic_istream::seekp): Same.
81         * include/bits/locale_facets.tcc: Tweak.
82         * include/bits/streambuf.tcc: Tweak.
83         (__copy_streambufs): Propagate exceptions.
84         * testsuite/testsuite_io.h (fail_streambuf): New.
85         (fail_num_get): New.
86         (fail_num_put): New.
87         (facet_error): New.
88         (underflow_error): New.
89         (overflow_error): New.  
90         (positioning_error): New.       
91         * testsuite/27_io/basic_istream/exceptions/char/9561.cc: Tweak.
92         * testsuite/27_io/basic_istream/extractors_arithmetic/char/
93         exceptions_badbit_throw.cc, exceptions_failbit.cc,
94         exceptions_failbit_throw.cc: New.
95         * testsuite/27_io/basic_istream/extractors_other/char/
96         error_failbit.cc, exceptions_badbit_throw.cc,
97         exceptions_failbit_throw.cc, exceptions_null.cc: New.
98         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc: 
99         New.
100         * testsuite/27_io/basic_istream/tellg/char/exceptions_badbit_throw.cc:
101         New.
102         * testsuite/27_io/basic_ostream/flush/char/exceptions_badbit_throw.cc:
103         New.
104         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
105         exceptions_badbit_throw.cc, exceptions_failbit_throw.cc: New.
106         * testsuite/27_io/basic_ostream/inserters_other/char/
107         error_failbit.cc, exceptions_badbit_throw.cc,
108         exceptions_failbit_throw.cc, exceptions_null.cc: New.
109         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc: 
110         New.
111         * testsuite/27_io/basic_ostream/tellp/char/exceptions_badbit_throw.cc: 
112         New.
114 2003-11-26  Benjamin Kosnik  <bkoz@redhat.com>
116         PR libstdc++/12297
117         * include/bits/istream.tcc
118         (basic_istream::sentry::sentry): Set failbit and eofbit when eof.
119         * testsuite/27_io/basic_istream/sentry/char/12297.cc: New.
120         
121 2003-11-26  Paolo Carlini  <pcarlini@suse.de>
122             Petur Runolfsson  <peturr02@ru.is>
124         PR libstdc++/13171
125         * include/bits/fstream.tcc (imbue): Relax the conditions under
126         which the function succeeds: allow for two consecutive calls with
127         the same name; state dependent encodings are ok even after open
128         if at the beginning of the file; don't check seekoff return value
129         (pipes, cin, cout, etc...)
130         * testsuite/27_io/basic_filebuf/imbue/char/13171-1.cc: New.
131         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: New.
132         * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: New.
133         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: New.
134         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak comment.
135         * testsuite/27_io/basic_filebuf/imbue/char/3.cc: Likewise.
136         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Tweak comment.
137         * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: Likewise.
139         * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: More
140         correctly use the UTF-8 locale appearing in the PR.
142 2003-11-26  Paolo Carlini  <pcarlini@suse.de>
144         * include/bits/locale_facets.h
145         (__numpunct_cache<>::_M_cache): Avoid zeroing _M_grouping,
146         _M_truename and _M_falsename: the constructor always does
147         it immediately before the _M_cache call.
149 2003-11-25  Paolo Carlini  <pcarlini@suse.de>
151         * config/locale/gnu/codecvt_members.cc (codecvt::do_length):
152         Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
153         former is very fast, but stops if encounters a NUL.
154         (codecvt::do_out): Tweaks.
155         (codecvt::do_in): Tweaks, improve the code dealing with errors.
156         * testsuite/performance/wchar_t_length.cc: New.
158 2003-11-24  Paolo Carlini  <pcarlini@suse.de>
160         * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
161         Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
162         former is very fast, but stops if encounters a NUL.
163         (codecvt::do_out): Tweak.
164         * testsuite/performance/wchar_t_in.cc: New.
166 2003-11-24  Paolo Carlini  <pcarlini@suse.de>
168         * include/bits/locale_facets.h
169         (__numpunct_cache<>::_M_cache): Set _M_allocated at the beginning
170         in order to avoid memory leaks; simplify a bit.
172 2003-11-24  Benjamin Kosnik  <bkoz@redhat.com>
173         
174         * include/bits/streambuf_iterator.h (ostreambuf_iterator): Remove
175         non-standard throw specs.
176         * testsuite/24_iterators/istreambuf_iterator.cc: Split into...
177         * testsuite/24_iterators/istreambuf_iterator/1.cc
178         * testsuite/24_iterators/istreambuf_iterator/2.cc
179         * testsuite/24_iterators/istreambuf_iterator/2627.cc
180         * testsuite/24_iterators/ostreambuf_iterator.cc: Split into...
181         * testsuite/24_iterators/ostreambuf_iterator/1.cc
182         * testsuite/24_iterators/ostreambuf_iterator/2.cc
184         * testsuite/24_iterators/reverse_iterator/1.cc: Just compile,
185         don't link.
186         
187         * include/bits/allocator.h: Formatting tweak.
188         
189 2003-11-24  Paolo Carlini  <pcarlini@suse.de>
191         * src/locale_init.cc: Cosmetic reformatting.
193 2003-11-23  Paolo Carlini  <pcarlini@suse.de>
195         * include/bits/locale_facets.tcc (__add_grouping):
196         Cosmetic reformatting.
198 2003-11-23  Paolo Carlini  <pcarlini@suse.de>
200         * include/bits/locale_facets.tcc (_M_extract_float,
201         _M_extract_int): Remove a wrong comment and simplify
202         the corresponding code using char_traits::find().
204 2003-11-22  Paolo Carlini  <pcarlini@suse.de>
206         * config/locale/gnu/monetary_members.cc
207         (money_base::_S_construct_pattern): Factor out two assignments.
209 2003-11-22  Paolo Carlini  <pcarlini@suse.de>
211         * include/bits/istream.tcc (getline(basic_string<>&)):
212         Fix error in comment of the previous commit.
214 2003-11-22  Paolo Carlini  <pcarlini@suse.de>
216         PR libstdc++/12593
217         * include/bits/istream.tcc (operator>>(basic_string<>&),
218         getline(basic_string<>&)): Implement resolution of DR 91 [WP];
219         fix some minor issues with the exit conditions.
220         * docs/html/ext/howto.html: Add an entry for DR 91.
222 2003-11-21  Paolo Carlini  <pcarlini@suse.de>
224         * config/locale/gnu/monetary_members.cc
225         (money_base::_S_construct_pattern): Factor out an assignment.
227 2003-11-21  Paolo Carlini  <pcarlini@suse.de>
229         PR libstdc++/12882 (partial)
230         * acinclude.m4 (GLIBCXX_CHECK_LFS): Check fseeko64
231         and ftello64 too.
232         * include/ext/stdio_sync_filebuf.h (seekoff): Use fseeko64
233         and ftello64 if available.
234         * aclocal.m4: Regenerate.
235         * configure: Ditto.
237 2003-11-20  Benjamin Kosnik  <bkoz@redhat.com>
239         * include/debug/formatter.h: Use _Tp as template argument.
240         * src/debug.cc: Same, instantiate std::size_t.
241         
242 2003-11-20  Benjamin Kosnik  <bkoz@redhat.com>
244         PR libstdc++/13109
245         * include/debug/formatter.h (_Error_formatter::_M_format_word): New.
246         * src/debug.cc (__gnu_debug): Format. 
247         (_Error_formatter::_M_format_word): Define, use, instantiate.
249 2003-11-20  Paolo Carlini  <pcarlini@suse.de>
251         PR libstdc++/11602
252         * config/locale/gnu/codecvt_members.cc (codecvt::do_out):
253         Rewrite, using both wcsnrtombs and wcrtomb in a loop: the
254         former is very fast, but stops if encounters a NUL.
255         * testsuite/performance/wchar_t_out.cc: New, from the PR.
257 2003-11-19  Paolo Carlini  <pcarlini@suse.de>
259         * config/locale/gnu/codecvt_members.cc (do_out): If
260         we can upper bound the total number of external chars
261         to something smaller than __to_end - __to, avoid the
262         temporary buffer, the memcopy and simplify the loop.
263         * config/locale/generic/codecvt_members.cc (do_out):
264         Likewise.
266 2003-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
268         * testsuite/lib/libstdc++.exp: Add DYLD_LIBRARY_PATH for darwin.
269         * testsuite/libstdc++-dg/normal.exp: Add -multiply_defined suppress
270         flag.
272 2003-11-18  Jonathan Wakely  <redi@gcc.gnu.org>
274         * docs/html/configopts.html, docs/html/debug.html,
275         docs/html/documentation.html, docs/html/explanations.html,
276         docs/html/install.html, docs/html/17_intro/contribute.html,
277         docs/html/17_intro/howto.html, docs/html/17_intro/license.html,
278         docs/html/18_support/howto.html, docs/html/19_diagnostics/howto.html,
279         docs/html/20_util/howto.html, docs/html/21_strings/howto.html,
280         docs/html/22_locale/codecvt.html, docs/html/22_locale/ctype.html,
281         docs/html/22_locale/howto.html, docs/html/22_locale/locale.html,
282         docs/html/22_locale/messages.html, docs/html/23_containers/howto.html,
283         docs/html/24_iterators/howto.html, docs/html/25_algorithms/howto.html,
284         docs/html/26_numerics/howto.html, docs/html/27_io/howto.html,
285         docs/html/ext/howto.html, docs/html/ext/sgiexts.html: Add <link> tags.
287 2003-11-18  Paolo Carlini  <pcarlini@suse.de>
289         PR libstdc++/12868
290         * include/bits/fstream.tcc (imbue): For encodings != -1 it's
291         always ok to imbue a new locale, provided seekoff(0, cur, ...)
292         doesn't fail, of course.
293         (underflow): In order for the above to work, deal gracefully
294         with _M_codecvt->in returning codecvt_base::error while 
295         (__ilen = __iend - this->eback()) > 0: it just means __ilen
296         correctly converted internal characters before an error.        
297         * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: New.
299 2003-11-17  Paolo Carlini  <pcarlini@suse.de>
301         * include/bits/locale_facets.tcc: Fix typo in comment.
303 2003-11-17  Paolo Carlini  <pcarlini@suse.de>
305         * testsuite/22_locale/num_put/put/char/8.cc: New test,
306         summarizing the discussion ensuing libstdc++/12988.
307         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Ditto.
309 2003-11-15  Paolo Carlini  <pcarlini@suse.de>
311         * include/std/std_fstream.h: Tweak a comment.
313 2003-11-15  Roger Sayle  <roger@eyesopen.com>
315         * include/c_std/std_cmath.h: Don't import C99's float transcendentals
316         into the __gnu_cxx::__c99_binding namespace.
317         (acos, asin, atan, atan2, ceil, cosh, exp, floor, fmod, frexp,
318         ldexp, log, log10, modf, pow, sinh, tan, tanh): Implement using
319         GCC's math builtins, i.e. __builtin_foo.
320         * libmath/stubs.c (acosf, acosl, asinf, asinl, atanf, atanl,
321         ceilf, ceill, floorf, floorl, fmodf, fmodl, frexpf, frexpl,
322         ldexpf, ldexpl, modff, modfl): Provide stub implementations.
324 2003-11-14  Paolo Carlini  <pcarlini@suse.de>
326         * testsuite/22_locale/locale/cons/12352.cc: Use
327         __gnu_test::try_named_locale.
329 2003-11-14  Paolo Carlini  <pcarlini@suse.de>
331         * docs/html/ext/howto.html: Add entries for DR 63, 75
332         and 305; tweak entries for DR 60 and 328.
334 2003-11-13  Douglas Gregor  <gregod@cs.rpi.edu>
336         * docs/html/debug.html: Users are allowed to specialize in
337         namespace __gnu_debug, unlike in the Apple version of the debug
338         mode. Clear up a confusing double-negative. Note that
339         std::basic_string does provide extra debugging capabilities, but
340         not safe iterators.
341         * include/bits/basic_string.tcc: Make sure there's never an
342         ambiguity when calling __is_null_pointer. 
343         * include/debug/deque: (deque::erase) Properly handle invalidation
344         when erasing at the end of the deque.
345         * include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity. 
346         (vector::clear): Set the guaranteed capacity to 0.
347         * testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
348         iterator invalidation when erasing at the end of the deque.
350 2003-11-13  Paolo Carlini  <pcarlini@suse.de>
351             Petur Runolfsson  <peturr02@ru.is>
353         PR libstdc++/13007
354         * include/bits/fstream.tcc (imbue): Don't touch the stored
355         locale.
356         * include/std/std_streambuf.h (imbue): According to the
357         standard, base class version does nothing.
358         (pubimbue): Store the locale.
359         * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New.
360         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New.
361         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak.
362         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
363         * testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New.
364         * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New.
365         * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New.
366         * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New.
368 2003-11-13  Petur Runolfsson  <peturr02@ru.is>
370         PR libstdc++/12594
371         * include/bits/ostream.tcc
372         (basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
373         basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
374         basic_ostream::operator<<(ios_base& (*)(ios_base&))):
375         Implement the resolution of DR 60 (TC): These are not formatted
376         output functions so don't construct sentry objects and don't
377         catch exceptions.
378         (basic_ostream::put, basic_ostream::write): Implement the
379         resolution of DR 63 (TC) by catching exceptions and setting
380         badbit.
381         (basic_ostream::flush): Implement the resolution of DR 60 (TC):
382         This is not an unformatted output function so don't construct
383         a sentry object.
384         * testsuite/testsuite_io.h (sync_streambuf): Define.
385         * testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
386         * testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
387         * testsuite/27_io/basic_ostream/put/char/1.cc: New test.
388         * testsuite/27_io/basic_ostream/write/char/1.cc: New test.
389         
390 2003-11-13  Paolo Carlini  <pcarlini@suse.de>
392         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
393         Fix, closely following the testcase included in the PR.
394         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
395         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
396         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.
398 2003-11-13  Jonathan Wakely <redi@gcc.gnu.org>
400         * docs/html/17_intro/configury.html: XHTML tweak.
402 2003-11-13  Jonathan Wakely <redi@gcc.gnu.org>
404         * docs/html/debug_mode.html: XHTML fixes.
406 2003-11-12  Benjamin Kosnik  <bkoz@redhat.com>
408         * docs/html/debug_mode.html: Update.
409         * docs/html/17_intro/TODO: Update.
411 2003-11-12  Benjamin Kosnik  <bkoz@redhat.com>
413         * include/bits/c++config: Move using directive...
414         * include/debug/formatter.h: ...here.
416 2003-11-12  Carlo Wood  <carlo@alinoe.com>
418         PR libstdc++/12947
419         * bits/demangle.h
420         (_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS): Added.
421         (_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Added.
422         (session<Allocator>::next_peek() const): Added.
423         (decode_non_negative_decimal_integer(string_type&)):
424         Renamed from decode_decimal_integer(string_type&).
425         (session<Allocator>::decode_nested_name):
426         Decode <template_param> as well.
427         (session<Allocator>::add_substitution):
428         Handle <template-param> for <nested-name>'s.
429         (enum xary_nt): Added.
430         (struct entry_st): Added member `xary_nt type' instead of `bool unary'.
431         (symbol_name_table_c): Updated for `entry_st::type' and additional
432         operators (unary `operator+' and `sizeof(type)').
433         (offset_table_c): Updated for new operators (causing a new hash map).
434         (decode_operator_name): Match the updated hash map.
435         (session<Allocator>::decode_expression):
436         Support for `sizeof ([typename] type)' (st),
437         dependent names (sr) and casting operator (cv).  Handle
438         `entry_st::type'.  Handle _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
439         and _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME.
440         (session<Allocator>::decode_type_with_postfix):
441         Support `extern "C"' function types (FY).
442         * testsuite/demangle/regression/cw-16.cc: Added tests for the
443         added functionality.
444         * testsuite/demangle/regression/3111-2.cc: sizeof now has a space
445         appended.
447 2003-11-11  Paolo Carlini  <pcarlini@suse.de>
449         PR libstdc++/12875
450         * include/bits/fstream.tcc (setbuf): Don't do anything
451         after open(), in particular don't discard data.
452         (_M_allocate_internal_buffer): Tweak to not allocate memory
453         in case the buffer is provided by the user via setbuf.
454         * include/ext/stdio_filebuf.h: Tweak comment.
455         * testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
456         * testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
457         * testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
458         setbuf does nothing after open().
459         * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
461 2003-11-11  Doug Gregor  <gregod@cs.rpi.edu>
463         * docs/html/debug.html: Document libstdc++ debug mode.
464         * docs/html/debug_mode.html: Document libstdc++ debug mode design.
465         * docs/html/test.html: Document how to test under debug mode.
466         * docs/html/17_intro/howto.html: Document debug-mode macros.
467         * include/Makefile.am: Install debug-mode headers.
468         * src/Makefile.am: Include debug.cc.
469         * include/bits/basic_string.tcc: 
470           (basic_string::_S_construct): Fix NULL pointer check.
471           (__is_null_pointer): New.
472           Add precondition annotations.
473         * include/bits/stream_iterator.h (istream_iterator,
474         ostream_iterator): Added precondition annotations.
475         * include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto.
476         * include/bits/stl_queue.h (queue, priority_queue): Ditto.
477         * include/bits/stl_stack.h (stack): Ditto.
478         * include/bits/basic_string.h (basic_string): Ditto.
479         * include/bits/basic_string.tcc (basic_string): Ditto.
480         * include/std/std_memory.h (auto_ptr): Ditto.
481         * include/std/std_valarray.h (valarray): Ditto.
482         * include/bits/stl_algo.h: Added algorithm precondition
483         annotations.
484         * include/bits/stl_algobase.h: Added algorithm precondition
485         annotations.
486         * include/bits/stl_numeric.h: Ditto.
487         * include/ext/algorithm: Added algorithm precondition
488         annotations. 
489         (__is_heap): Moved away from here.
490         * include/bits/stl_heap.h: Added algorithm precondition
491         annotations. 
492         (__is_heap): Moved to the top of this file.
493         (__is_heap): Added iterator range overloads.
494         * testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up
495         with changes in std_memory.h.
496         * testsuite/23_containers/list/operators/4.cc: Don't verify
497         performance guarantees when in debug mode.
498         * testsuite/23_containers/bitset/invalidation/1.cc: New.
499         * testsuite/23_containers/deque/invalidation/1.cc: New.
500         * testsuite/23_containers/deque/invalidation/2.cc: New.
501         * testsuite/23_containers/deque/invalidation/3.cc: New.
502         * testsuite/23_containers/deque/invalidation/4.cc: New.
503         * testsuite/23_containers/list/invalidation/1.cc: New.
504         * testsuite/23_containers/list/invalidation/2.cc: New.
505         * testsuite/23_containers/list/invalidation/3.cc: New.
506         * testsuite/23_containers/list/invalidation/4.cc: New.
507         * testsuite/23_containers/map/invalidation/1.cc: New.
508         * testsuite/23_containers/map/invalidation/2.cc: New.
509         * testsuite/23_containers/multimap/invalidation/1.cc: New.
510         * testsuite/23_containers/multimap/invalidation/2.cc: New.
511         * testsuite/23_containers/multiset/invalidation/1.cc: New.
512         * testsuite/23_containers/multiset/invalidation/2.cc: New.
513         * testsuite/23_containers/set/invalidation/1.cc: New.
514         * testsuite/23_containers/set/invalidation/2.cc: New.
515         * testsuite/23_containers/vector/invalidation/1.cc: New.
516         * testsuite/23_containers/vector/invalidation/2.cc: New.
517         * testsuite/23_containers/vector/invalidation/3.cc: New.
518         * testsuite/23_containers/vector/invalidation/4.cc: New.
519         * testsuite/25_algorithms/heap.cc: Don't verify
520         performance guarantees when in debug mode.
521         * include/debug/bitset: New.
522         * include/debug/debug.h: New.
523         * include/debug/deque: New.
524         * include/debug/formatter.h: New.
525         * include/debug/hash_map: New.
526         * include/debug/hash_map.h: New.        
527         * include/debug/hash_multimap.h: New.
528         * include/debug/hash_set: New.
529         * include/debug/hash_set.h: New.
530         * include/debug/hash_multiset.h: New.   
531         * include/debug/list: New.
532         * include/debug/map: New.
533         * include/debug/map.h: New.
534         * include/debug/multimap.h: New.
535         * include/debug/multiset.h: New.        
536         * include/debug/safe_base.h: New.
537         * include/debug/safe_iterator.h: New.
538         * include/debug/safe_iterator.tcc: New.
539         * include/debug/safe_sequence.h: New.
540         * include/debug/set: New.
541         * include/debug/set.h: New.     
542         * include/debug/string: New.
543         * include/debug/vector: New.
544         * src/debug.cc: New.
545         * config/linker-map.gnu: Add debug mode symbols.
546         
547 2003-11-11  Benjamin Kosnik  <bkoz@redhat.com>
549         * src/string-inst.cc: Tweak namespaces.
550         * src/misc-inst.cc: Same.
551         * docs/html/debug.html: Edits.
552         * config/link-map.gnu: Remove cruft.
554         * include/bits/c++config: Add in namespace associations.
555         * include/std/std_bitset.h: Adjust namespace to __gnu_norm,
556         comment tweaks.
557         * include/bits/deque.tcc: Same.
558         * include/bits/list.tcc: Same.
559         * include/bits/stl_bvector.h: Same.
560         * include/bits/stl_deque.h: Same.
561         * include/bits/stl_list.h: Same.
562         * include/bits/stl_map.h: Same.
563         * include/bits/stl_multimap.h: Same.
564         * include/bits/stl_multiset.h: Same.
565         * include/bits/stl_set.h: Same.
566         * include/bits/stl_vector.h: Same.
567         * include/bits/vector.tcc: Same.
569         * include/std/std_algorithm.h: Remove markup comments.
570         * include/std/std_functional.h: Same.
571         * include/std/std_iterator.h: Same.
572         * include/std/std_numeric.h: Same.
573         * include/std/std_utility.h: Same.
574         * include/bits/stl_queue.h: Formatting tweaks.
575         * include/bits/stl_stack.h: Same.
576         * include/std/std_deque.h: Include debugging version in debug mode.
577         * include/std/std_list.h: Same.
578         * include/std/std_map.h: Same.
579         * include/std/std_set.h: Same.
580         * include/std/std_vector.h: Same.       
581         * include/std/std_queue.h: Use deque, vector.
582         * include/std/std_stack.h: Same.
584 2003-11-09  Paolo Carlini  <pcarlini@suse.de>
586         * include/bits/locale_facets.tcc (_M_insert_int,
587         _M_insert_float): Move a couple of vars inside an if block.
589 2003-11-09  Paolo Carlini  <pcarlini@suse.de>
591         PR libstdc++/12971
592         * include/bits/locale_facets.tcc
593         (money_put::do_put(..., long double)): Fix conversion
594         specification as per DR 328 [WP].
595         * testsuite/22_locale/money_put/put/char/12971.cc: Add.
596         * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto.
597         * docs/html/ext/howto.html: Add entry for DR 328.
599 2003-11-08  Paolo Carlini  <pcarlini@suse.de>
601         PR libstdc++/12967
602         * include/bits/list.tcc (merge): Implement resolution of
603         DR 300 [WP].
604         * docs/html/ext/howto.html: Add entry for DR 300; tweak entry
605         for DR 231.
607         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
608         Import R27.
610 2003-11-07  Jonathan Wakely  <redi@gcc.gnu.org>
612         * libsupc++/vec.cc: Conform to C++STYLE.
614 2003-11-07  Carlo Wood  <carlo@alinoe.com>
616         PR libstdc++/12736
617         * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
618         (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
619         K, V, r and A qualifiers before processing them as a group.
620         * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
621         * testsuite/demangle/regression/cw-16.cc: New.
623 2003-11-07  Robert Millan  <robertmh@gnu.org>
625         * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
626         * crossconfig.m4: Likewise.
627         * configure: Regenerate.
629 2003-11-07  Carlo Wood  <carlo@alinoe.com>
631         * include/bits/demangle.h
632         (qualifier_list<Allocator>::decode_qualifiers(string_type&,
633         string_type&, bool member_function_pointer_qualifiers):
634         Always separate the '[' of an array type with a space from
635         what is left of it, except when that is the closing bracket
636         of another array dimension.
638 2003-11-07  Carlo Wood  <carlo@alinoe.com>
640         * include/bits/demangle.h
641         (qualifier_list<Allocator>::decode_qualifiers(string_type&,
642         string_type&, bool) const): Made const.
643         (qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
644         (_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
645         std::ostream& operator<<(std::ostream&, qualifier const&),
646         std::ostream& operator<<(std::ostream&, qualifier_list const&),
647         qualifier_list<Allocator>::decode_qualifiers(string_type&,
648         string_type&, bool) const,
649         session<Allocator>::decode_type_with_postfix(string_type&,
650         string_type&, qualifier_list<Allocator>*))
651         Added and/or changed debug-only hooks and code.
653 2003-11-04  Jeffrey D. Oldham  <oldham@codesourcery.com>
655         * libsupc++/vec.cc (__cxa_vec_delete2): If given a NULL pointer,
656         immediately return.  This reflects a C++ ABI change 2003 Nov 03.
657         (__cxa_vec_delete3): Likewise.
658         
659 2003-11-03  Petur Runolfsson  <peturr02@ru.is>
661         PR libstdc++/12790
662         * include/bits/fstream.tcc: Delete _M_last_overflowed.
663         (basic_filebuf::basic_filebuf): Initialize _M_state_last.
664         (basic_filebuf::open, basic_filebuf::close): Assign
665         _M_state_beg to _M_state_cur and _M_state_last.
666         (basic_filebuf::close): Call _M_terminate_output to handle
667         unshift and flushing.
668         (basic_filebuf::underflow): Assign _M_state_last, throw
669         exception instead of calling abort when codecvt::max_length()
670         is bad.
671         (basic_filebuf::seekoff): Use _M_state_last when calling
672         codecvt::length(), pass correct state to _M_seek.
673         (basic_filebuf::seekpos): Pass __pos.state() to _M_seek.
674         (basic_filebuf::_M_seek): Add __state_type parameter,
675         set _M_state_cur correctly, store the resulting state in
676         the return value and use _M_terminate_output to handle
677         flushing and unshift.
678         (basic_filebuf::_M_terminate_output): Flush contents of
679         output buffer, if any, then call codecvt::unshift as
680         needed and output the result.
681         (basic_filebuf::sync): Move here, don't modify _M_writing
682         or _M_reading.
683         
684         * include/std/std_fstream.h
685         (basic_filebuf::_M_state_last): Declare it.
686         (basic_filebuf::_M_last_overflowed): Delete.
687         (basic_filebuf::_M_seek): Add __state_type parameter.
688         (basic_filebuf::sync): Declare only.
689         (basic_filebuf::_M_output_unshift): Delete.
690         (basic_filebuf::_M_terminate_output): Declare it.
691         
692         * testsuite/testsuite_character.h:
693         Define character class and state class plus char_traits and
694         codecvt specializations for same for testing support for
695         stateful encodings.
696         
697         * testsuite/27_io/basic_filebuf/close/12790-1.cc,
698         * testsuite/27_io/basic_filebuf/close/char/12790-1.cc,
699         * testsuite/27_io/basic_filebuf/close/char/12790-2.cc,
700         * testsuite/27_io/basic_filebuf/close/char/12790-3.cc,
701         * testsuite/27_io/basic_filebuf/close/char/12790-4.cc,
702         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc,
703         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc,
704         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc,
705         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc,
706         * testsuite/27_io/basic_filebuf/open/12790-1.cc,
707         * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc,
708         * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc,
709         * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc,
710         * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc,
711         * testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc,
712         * testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc,
713         * testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc,
714         * testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc,
715         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc,
716         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc,
717         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc,
718         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc,
719         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc,
720         * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc,
721         * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc,
722         * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc,
723         * testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc,
724         * testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc,
725         * testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc,
726         * testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc,
727         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc,
728         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc,
729         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc,
730         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc,
731         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc,
732         * testsuite/27_io/basic_filebuf/sync/char/1.cc,
733         * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc:
734         New tests.
736         * testsuite/27_io/basic_filebuf/3.cc,
737         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc,
738         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc,
739         * testsuite/27_io/basic_fstream/3.cc,
740         * testsuite/27_io/basic_ifstream/3.cc,
741         * testsuite/27_io/basic_ofstream/3.cc:
742         Use streamoff as off_type and fpos<state_type> as pos_type.
744         * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc,
745         * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc:
746         Check that sync does *not* set _M_writing to false.
748 2003-11-03  Anthony Green  <green@redhat.com>
750         * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
751         they're used.
753 2003-11-03  Benjamin Kosnik  <bkoz@redhat.com>
755         * include/bits/locale_facets.h (time_get::_M_extract_name): Add
756         ctype argument. 
757         * include/bits/locale_facets.tcc: Same, use it to allow
758         capitalized names.
759         
760         * include/bits/fstream.tcc: Spacing tweak.
761         * include/bits/istream.tcc: Same.
762         * include/bits/ostream.tcc: Same.
764 2003-10-30  Paolo Carlini  <pcarlini@suse.de>
766         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
767         __mod is only assigned, never used its value, remove it.
769 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
771         * include/bits/locale_facets.tcc (time_get::do_get_year):
772         Absolutely avoid dereferencing end iterators.
773         (time_put::put): Minor clean up.
775         * include/bits/locale_facets.tcc: Cosmetic reformattings.
777 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
779         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
780         Revert the last commit, is not correct, sorry.
781         
782 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
784         * config/locale/generic/c_locale.cc: Add back <cmath> and
785         <cstdlib>.
787         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
788         Clean up.
790 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
792         * include/bits/locale_facets.tcc (time_put::put): Absolutely
793         avoid dereferencing end iterators; clean up.
795         * include/bits/locale_facets.tcc (num_get::_M_extract_float,
796         num_get::_M_extract_int): Minor tweak.
798 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
800         * include/bits/locale_facets.tcc: Remove some unnecessary
801         includes.
802         * config/locale/generic/c_locale.cc: Include <cerrno> here.
803         * config/locale/gnu/c_locale.cc: Likewise.
805 2003-10-28  Paolo Carlini  <pcarlini@suse.de>
807         * include/bits/locale_facets.tcc
808         (money_get<>::do_get(..., string_type&)): Absolutely avoid
809         dereferencing end iterators; general clean up.
811 2003-10-28  Paolo Carlini  <pcarlini@suse.de>
813         * include/bits/locale_facets.tcc (time_get::_M_extract_num):
814         Absolutely avoid dereferencing end iterators.
815         (time_get::_M_extract_name): Likewise.
817         * include/bits/locale_facets.tcc
818         (time_get::_M_extract_via_format, case 'e'): Don't try to
819         be smart wrt returning the right __beg in case of parse
820         error, time_get::_M_extract_num must be fixed instead.
822 2003-10-27  Paolo Carlini  <pcarlini@suse.de>
824         PR libstdc++/12778
825         * acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
826         * aclocal.m4: Regenerate.
827         * configure: Regenerate.
829 2003-10-27  Benjamin Kosnik  <bkoz@redhat.com>
830         
831         * docs/html/17_intro/TODO: Add links.
832         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
833         Uncomment.
834         
835 2003-10-27  Paolo Carlini  <pcarlini@suse.de>
837         PR libstdc++/12750
838         * include/bits/locale_facets.tcc
839         (time_get::_M_extract_via_format): Deal with code 'e'.
840         * testsuite/22_locale/time_get/get_date/char/12750.cc: New.
841         * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.
843         * include/bits/locale_facets.tcc
844         (time_get::_M_extract_via_format): Tweak to absolutely avoid
845         dereferencing end iterators.
847         * include/bits/locale_facets.h (__verify_grouping):
848         Const-ify second parameter.
849         * include/bits/locale_facets.tcc (__verify_grouping): Ditto.
850         * src/locale-inst.cc (__verify_grouping): Ditto.
852 2003-10-27  Paolo Carlini  <pcarlini@suse.de>
854         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
855         Various things: 1- Avoid absolutely end iterator dereferences;
856         2- Improve performance-wise the code skipping leading zeros;
857         3- Fix two bugs wrt early bail out in case of parsing errors
858         (see testcases); 4- General clean up.
859         (num_get::_M_extract_int): Likewise, except 3-. Additionally,
860         use __builtin_expect to favor base 10 inputs.
861         * testsuite/22_locale/num_get/get/char/7.cc: New.
862         * testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.
864 2003-10-26  Paolo Carlini  <pcarlini@suse.de>
866         * testsuite/22_locale/money_put/put/char/1.cc: Clean up.
867         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.
869 2003-10-25  Paolo Carlini  <pcarlini@suse.de>
871         * include/bits/locale_facets.tcc (num_get::_M_extract_int):
872         __pos in only incremented, never used its value, remove it.
874 2003-10-24  Robert Millan  <robertmh@gnu.org>
876         * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
877         and knetbsd*-gnu.
878         * aclocal.m4:  Regenerated.
879         * configure:  Regenerated.
881 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
883         * include/bits/locale_facets.tcc (money_get::do_get(...,
884         long double&): Properly size the temporary buffer.
885         * testsuite/22_locale/money_get/get/char/11.cc: New.
886         * testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.
888         * include/bits/locale_facets.tcc (num_put::_M_group_int,
889         num_put::_M_group_float, money_put::do_put(..., const
890         string_type&), collate::do_compare, collate::do_transform):
891         Prefer basic_string::data() to c_str() when the '\0'
892         terminator is not really needed.
894 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
896         * include/bits/locale_facets.tcc (__verify_grouping):
897         Prefer '=' to an unnecessary '&='.
899 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
901         * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
902         Tweak my fix for libstdc++/12657.
904 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
906         * include/bits/locale_facets.tcc (money_get::do_get(...,
907         string_type&): Minor tweak to the previous commit.
909 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
911         * include/bits/locale_facets.tcc (money_get::do_get(...,
912         string_type&): Disregard the previous commit: doesn't hurt but
913         doesn't accomplish anything useful either. This is the right
914         one, speeding up greatly the function in case of early fail.
916 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
918         * include/bits/locale_facets.tcc (money_get::do_get(...,
919         string_type&): Move an if block, thus minimizing the amount
920         of code processed anyway when __tmp_units.size() == 0.
922 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
924         * include/bits/locale_facets.tcc
925         (time_get<>::_M_extract_via_format): Deal with case 'C' too,
926         equivalent to 'y'.
928 2003-10-23  Benjamin Kosnik  <bkoz@redhat.com>
930         * docs/html/documentation.html: Add a pointer to the doxygen style
931         guide.
932         * docs/html/17_intro/TODO: Update.
933         * docs/html/test.html: Add instructions for running a subset of
934         tests, update.
936 2003-10-23  Paolo Carlini  <pcarlini@suse.de>
938         * include/bits/locale_facets.tcc (money_get<>::do_get(...,
939         string_type&)): Use find_first_not_of to strip leading
940         zeros; if __tmp_units == "0" never prefix it with '-';
941         always fail if __tmp_units is empty.
942         * testsuite/22_locale/money_get/get/char/10.cc: New.
943         * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
945 2003-10-23  Phil Edwards  <phil@codesourcery.com>
947         * config/os/vxworks/ctype_noninline.h:  Adjust ctor to match
948         2003-10-21 change.
950 2003-10-22  Paolo Carlini  <pcarlini@suse.de>
952         * include/bits/locale_facets.tcc (__int_to_char): Remove
953         the const int parameter.
954         (_M_insert_int): Update caller.
955         * src/locale-inst.cc (__int_to_char): Update instantiations.    
957 2003-10-22  Benjamin Kosnik  <bkoz@redhat.com>
959         * include/bits/locale_facets.h: Correct byname facets for "C"
960         locale.
961         * config/locale/generic/ctype_members.cc: Same.
962         * config/locale/generic/messages_members.h: Same.
963         * config/locale/gnu/ctype_members.cc: Same.
964         * config/locale/gnu/messages_members.h: Same.
965         * include/bits/codecvt.h: Same.
966         * src/ctype.cc: Same.
967         * testsuite/22_locale/codecvt_byname/1.cc: New.
968         * testsuite/22_locale/collate/1.cc: Edit.
969         * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
970         * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
971         * testsuite/22_locale/ctype/1.cc: Derivation tests.
972         * testsuite/22_locale/ctype/11844.cc: Move...
973         * testsuite/22_locale/ctype_base/11844.cc: ...here.
974         * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
975         * testsuite/22_locale/ctype_byname/1.cc: Name.
976         * testsuite/22_locale/messages_byname/1.cc: New.
977         * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
978         * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
979         * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
980         * testsuite/22_locale/numpunct/1.cc: Edit.
981         * testsuite/22_locale/numpunct_byname/2.cc: Move...
982         * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
983         * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
984         * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
986 2003-10-22  Paolo Carlini  <pcarlini@suse.de>
988         PR libstdc++/8610
989         * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
990         checking for the availability of int64_t.
991         (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
992         * configure.ac: Call here.
993         * acconfig.h: Add undef for the corresponding symbols.
994         * config/io/basic_file_stdio.cc (__basic_file<char>::open):
995         Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
996         (__basic_file<char>::seekoff): Likewise, call lseek64 when
997         available, otherwise lseek, checking the __off parameter.
998         * include/bits/postypes.h: Typedef __streamoff_base_type
999         to int64_t if available, otherwise long long.
1000         * aclocal.m4: Regenerate.
1001         * config.h.in: Likewise.
1002         * configure: Likewise.
1004         * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
1005         Use AC_TRY_LINK instead of AC_TRY_COMPILE.
1006         
1007 2003-10-22  Paolo Carlini  <pcarlini@suse.de>
1009         PR libstdc++/12657
1010         * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1011         Implement resolution of DR 292 (WP).
1012         * docs/html/ext/howto.html: Add entry for DR 292.
1014 2003-10-21  Benjamin Kosnik  <bkoz@redhat.com>
1016         * include/ext/mt_allocator.h: Change include to gthr.h.
1017         * include/ext/rope: Same. Add _Refcount_base definitions.
1018         * include/ext/pool_allocator.h: Adjust namespaces.
1019         * include/bits/stl_threads.h (_Refcount_base): Move.
1020         Put remaining into namespace __gnu_cxx.
1021         
1022 2003-10-21  Benjamin Kosnik  <bkoz@redhat.com>
1024         PR libstdc++/9858
1025         * include/bits/locale_facets.h (ctype<char>): Remove
1026         __ctype_abstract_base.
1027         (ctype<char>::do_is): Remove.
1028         (ctype<char>::do_scan_is): Remove.
1029         * src/ctype.cc: Same. Inline the rest.
1030         * testsuite/22_locale/ctype/is/char/9858.cc: New.
1031         * config/os/aix/ctype_noninline.h: Adjust ctor.
1032         * config/os/bsd/freebsd/ctype_noninline.h: Same.
1033         * config/os/bsd/netbsd/ctype_noninline.h: Same.
1034         * config/os/djgpp/ctype_noninline.h: Same.
1035         * config/os/generic/ctype_noninline.h: Same.
1036         * config/os/gnu-linux/ctype_noninline.h: Same.
1037         * config/os/hpux/ctype_noninline.h: Same.
1038         * config/os/irix/irix5.2/ctype_noninline.h: Same.
1039         * config/os/irix/irix6.5/ctype_noninline.h: Same.
1040         * config/os/mingw32/ctype_noninline.h: Same.
1041         * config/os/newlib/ctype_noninline.h: Same.
1042         * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
1043         * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
1044         * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
1045         * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
1046         * config/os/windiss/ctype_noninline.h: Same.
1048 2003-10-21  Paolo Carlini  <pcarlini@suse.de>
1050         * src/locale.cc: Tweak a comment.
1051         * src/localename.cc: Move a comment.
1053 2003-10-20  Benjamin Kosnik  <bkoz@redhat.com>
1055         PR libstdc++/10081
1056         * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
1057         * testsuite_hooks.cc: Same.
1058         * 22_locale/numpunct/members/pod/1.cc: Edit.
1059         * 22_locale/numpunct/members/pod/2.cc: Same.
1060         * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
1061         * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
1062         * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
1063         * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
1064         * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
1065         * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
1066         * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
1067         * 27_io/basic_istream/sentry/pod/1.cc: New.
1068         * 27_io/basic_ostream/sentry/pod/1.cc: New.
1069         * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
1070         * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
1072 2003-10-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1074         * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
1075         of external _MIPS_SIM_ABI32.
1077 2003-10-20  Phil Edwards  <phil@codesourcery.com>
1079         * configure.ac:  Fix comment typo.
1080         * configure.host:  Add vxworks to host_os switch.
1081         * crossconfig.m4:  Remove old commented os_include_dir variables
1082         left over from autotools transition.
1083         (*-vxworks):  New stanza.
1084         (*-windiss):  Add missing symbols.
1085         * configure:  Regenerate.
1086         * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
1087         config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
1088         New files.
1089         * config/os/windiss/os_defines.h:  Define __C9X__.
1091 2003-10-19  David Edelsohn  <edelsohn@gnu.org>
1093         PR other/12506
1094         * configure.host (aix4,aix*): Define os_include_dir to os/generic.
1096 2003-10-18  Andreas Tobler  <a.tobler@schweiz.ch>
1098         * src/locale.cc (locale::_S_initialize): Re-apply workaround a
1099         confusion of the use of the gthr API when __gthread_active_p()
1100         returns true.
1102 2003-10-17  Benjamin Kosnik  <bkoz@redhat.com>
1104         * src/Makefile.am: Add new files.
1105         * src/Makefile.in: Regenerate.
1106         * src/globals.cc: Split into..
1107         * src/globals_io.cc: New.
1108         * src/globals_locale.cc: New.
1109         * src/ios.cc: Split into...
1110         * src/ios_init.cc: New.
1111         * src/ios_locale.cc: New.
1112         * src/locale-inst.cc: Split into..
1113         * src/wlocale-inst.cc: New.
1114         * src/locale-misc-inst.cc: New.
1115         * src/locale.cc, src/localename: Split into...
1116         * src/locale_facets.cc: New.
1117         * src/locale_init.cc: New.
1118         * src/wstring-inst.cc: Add copyright info.
1120 2003-10-16  Petur Runolfsson  <peturr02@ru.is>
1122         PR libstdc++/11450
1123         PR libstdc++/11543
1124         PR libstdc++/12065
1125         * config/io/basic_file_stdio.cc (__basic_file::seekoff):
1126         Change return value from streampos to streamoff.
1127         (__basic_file::seekpos): Delete.
1128         * config/io/basic_file_stdio.h: Same.
1129         * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
1130         * include/Makefile.am (bits_headers): Add bits/postypes.h.
1131         * include/bits/char_traits.h: Include bits/postypes.h instead of
1132         bits/fpos.h.
1133         * include/bits/fstream.tcc (basic_filebuf::open,
1134         basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
1135         values, use == and != instead.
1136         (basic_filebuf::_M_seek): Use explicit conversion from streamoff
1137         to pos_type.
1138         (basic_filebuf::imbue):  Don't use ! on pos_type values, use
1139         == instead. Don't use __check_facet(_M_codecvt) unless is_open().
1140         * include/bits/postypes.h: New file.
1141         Add __streamoff_base_type typedef, streamsize.
1142         (streamoff, streampos, wstreampos): Define typedefs, with
1143         streamoff defined as...
1144         (streamoff): New class. Document implementation defined
1145         aspects.
1146         (fpos): New implementation. Document implementation defined
1147         aspects.
1148         * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
1149         explicit conversion from pos_type to off_type.
1150         * include/std/std_iosfwd.h: Include bits/postypes.h instead
1151         of bits/fpos.h.
1152         * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
1153         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
1154         * testsuite/27_io/fpos/11450.cc: New test.
1155         * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
1156         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
1157         * testsuite/27_io/types/3.cc: New test.
1159 2003-10-16  Benjamin Kosnik  <bkoz@redhat.com>
1161         * configure.host: Remove fpos_include_dir.
1162         * configure.ac: Remove FPOS_INC_SRCDIR.
1163         * configure: Regenerate.
1164         * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
1165         * aclocal.m4: Regenerate.
1166         * include/Makefile.am (host_headers): Remove fpos.h.
1167         (bits_headers): Add postypes.h.
1168         * include/Makefile.in: Regenerate.
1169         * config/os/gnu-linux/fposh: Remove.
1170         * config/os/generic/fpos.h: Remove.
1172         * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
1173         * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
1174         * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
1175         * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
1176         * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
1177         * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
1178         * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
1179         * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
1180         * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
1181         * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
1182         * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
1183         * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
1184         * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
1185         * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
1186         * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
1187         * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1188         * testsuite/27_io/objects/char/10.cc: Same.
1190 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
1192         * src/locale.cc (locale::locale(const char*)): ... one
1193         more comparison missed in the previous commit.
1195 2003-10-16  Benjamin Kosnik  <bkoz@redhat.com>
1197         * acconfig.h: Add HAVE_DRAND48.
1198         * crossconfig.m4: Remove ISATTY.
1199         * aclocal.m4: Regenerated.
1200         * config.h.in: Regenerated.
1201         * configure: Regenerated.
1202         
1203 2003-10-16  Bernardo Innocenti  <bernie@develer.com>
1205         * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
1206         __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
1207         Document SMP safeness of asm macros.
1209 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
1211         * src/locale.cc (locale::locale(const char*)): Tweak
1212         a couple of comparisons to use basic_string operators.
1214 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
1216         PR libstdc++/12540
1217         * config/locale/gnu/monetary_members.cc
1218         (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
1219         Don't leak memory if new throws.
1220         * src/locale.cc (locale::locale(const char*)): In order not
1221         to leak memory in case new throws, use a basic_string type
1222         for __res too and avoid strdup.
1224 2003-10-14  Jeff Bailey  <jbailey@nisa.net>
1225         
1226         PR libstdc++/12562
1227         * crossconfig.m4: Share the config between *-linux* and *-gnu*.
1228         * configure: Regenerate.
1230 2003-10-14  Carlo Wood  <carlo@alinoe.com>
1232         PR libstdc++/12600
1233         * include/bits/demangle.h (session<Allocator>::
1234           decode_unqualified_name(string_type& output)): Fail on a
1235           <operator-name> when decoding <template-argument>.
1236         * testsuite/demangle/regression/cw-15.cc: New.
1238 2003-10-14  Paolo Carlini  <pcarlini@unitus.it>
1240         PR libstdc++/11480
1241         * include/bits/stl_algo.h (unique): Fix.
1242         * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
1243         * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
1244         * testsuite/25_algorithms/unique/2.cc: New.
1246 2003-10-14  Paolo Carlini  <pcarlini@unitus.it>
1248         * src/localename.cc (_M_replace_categories, M_replace_facet):
1249         Const-ify a couple of variables.
1251 2003-10-14  Petur Runolfsson  <peturr02@ru.is>
1252             Andreas Tobler  <a.tobler@schweiz.ch>
1254         * src/locale.cc (locale::_S_initialize): Workaround a confusion
1255         of the use of the gthr API when __gthread_active_p() returns true.
1257 2003-10-12  Petur Runolfsson  <peturr02@ru.is>
1258             Paolo Carlini  <pcarlini@unitus.it>
1260         PR libstdc++/11460
1261         * src/strstream.cc (pbackfail): Fix to use to_int_type.
1262         * testsuite/backward/11460.cc: New, from the PR.
1264 2003-10-12  Paolo Carlini  <pcarlini@unitus.it>
1266         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
1267         Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
1268         * include/bits/basic_string.tcc: Likewise.
1269         * include/bits/ios_base.h: Likewise.
1270         * include/bits/istream.tcc: Likewise.
1271         * include/bits/locale_facets.tcc: Likewise.
1272         * include/bits/ostream.tcc: Likewise.
1273         * include/bits/stl_function.h: Likewise.
1274         * include/bits/stl_multiset.h: Likewise.
1275         * include/bits/stl_pair.h: Likewise.
1276         * include/bits/stl_set.h: Likewise.
1277         * include/bits/streambuf_iterator.h
1278         * include/std/std_iosfwd.h: Likewise.
1279         * include/std/std_istream.h: Likewise.
1280         * include/std/std_sstream.h: Likewise.
1281         * include/std/std_streambuf.h: Likewise.
1282         * src/ios.cc: Likewise.
1283         * include/bits/c++config:
1284         Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
1285         * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
1286         dg-error directive due to removal of a blank line.
1287         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1289 2003-10-12  Andreas Tobler  <a.tobler@schweiz.ch>
1290             Paolo Carlini  <pcarlini@unitus.it>
1292         PR libstdc++/11844/11740 (cont)
1293         * config/os/generic/ctype_inline.h (ctype<char>::is):
1294         Generically, use a bitmasksize of 15 (instead of 10);
1295         Fix the logic to actually return (M & m) != 0 as per
1296         22.2.1.1.2.
1298 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
1300         * crossconfig.m4 (*-uclinux*): New target.
1301         * configure: Regenerate.
1303 2003-10-10  Paolo Carlini  <pcarlini@unitus.it>
1305         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
1306         Avoid unnecessarily calling __builtin_alloca and dealing
1307         explicitly with width() smaller than zero.
1308         (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
1309         const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
1310         const char*), operator<<(basic_ostream<char, _Traits>&,
1311         const char*), operator<<(basic_ostream, const basic_string&)):
1312         Likewise.
1314 2003-10-09  Benjamin Kosnik  <bkoz@redhat.com>
1316         * config/linker-map.gnu: Make more *_type_info bits visible.
1317         Move new/delete bits back into GLIBCXX space.
1319         * include/bits/locale_classes.h: Move _M_id out of line, so that
1320         locale::id::_S_highwater can be removed from the export list.
1321         * src/locale.cc (locale::id::_M_id): Define.
1322         
1323 2003-10-09  Andreas Tobler  <a.tobler@schweiz.ch>
1325         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
1326         SPARC64.
1328 2003-10-09  Paolo Carlini  <pcarlini@unitus.it>
1330         PR libstdc++/11844
1331         * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
1332         to conform to the requirements of 22.2.1.
1333         * config/os/bsd/freebsd/ctype_base.h: Likewise.
1334         * config/os/djgpp/ctype_base.h: Likewise.
1335         * config/os/generic/ctype_base.h: Likewise.
1336         * config/os/gnu-linux/ctype_base.h: Likewise.
1337         * config/os/hpux/ctype_base.h: Likewise.
1338         * config/os/irix/irix6.5/ctype_base.h: Likewise.
1339         * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
1340         * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
1341         * testsuite/22_locale/ctype/11844.cc: New.
1343         * config/locale/generic/ctype_members.cc (do_is):
1344         Generically, use a bitmasksize of 15 (instead of 10), since
1345         we don't know the numerical encoding of the various categories
1346         in the underlying /usr/include/ctype.h.
1348 2003-10-09  Benjamin Kosnik  <bkoz@redhat.com>
1350         * src/string-inst.cc: Prune.
1351         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
1352         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1353         
1354 2003-10-09  Petur Runolfsson  <peturr02@ru.is>
1356         * src/io-inst.cc: Don't include iostream.
1357         * include/bits/ios_base.h (ios_base::failure): Use string.
1358         * src/Makefile.am: Add ios_failure.cc.
1359         * src/Makefile.in: Regenerate.
1360         * src/ios.cc: Move ios_base::failure definitions to...
1361         * src/ios_failure.cc: ...here. New.
1363 2003-10-09  Petur Runolfsson  <peturr02@ru.is>
1365         PR libstdc++/9874
1366         * include/bits/fstream.tcc (basic_filebuf::seekoff):
1367         Move code needed for both seekoff and seekpos...
1368         (basic_filebuf::_M_seek): ...here. New function.
1369         (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
1370         * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
1371         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
1373         * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
1375 2003-10-08  Paolo Carlini  <pcarlini@unitus.it>
1377         * include/bits/locale_facets.tcc: More minor cosmetic
1378         changes and const-ifications of some variables.
1380 2003-10-07  Paolo Carlini  <pcarlini@unitus.it>
1382         * include/bits/locale_facets.tcc: Minor cosmetic changes
1383         and const-ifications of some variables.
1385         * include/bits/locale_facets.tcc
1386         (money_get::do_get(..., string_type&)): Simplify an if-else.
1388 2003-10-06  Paolo Carlini  <pcarlini@unitus.it>
1390         PR libstdc++/11740
1391         * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
1392         Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
1393         * config/locale/generic/ctype_members.cc: Same.
1394         * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
1396 2003-10-06  Paolo Carlini  <pcarlini@unitus.it>
1398         * include/bits/locale_facets.tcc (__pad<>::_S_pad):
1399         Improve performance-wise: avoid one traits::copy, avoid
1400         the __builtin_alloca, streamline.
1402 2003-10-05  Paolo Carlini  <pcarlini@unitus.it>
1404         * include/bits/locale_facets.tcc
1405         (num_put::do_put(..., bool)): Prefer ?: to if-else.
1406         (time_get::_M_extract_name): Qualify min with std::.
1407         (__pad<>::_S_pad): Constify two variables; simplify an
1408         if-else statement factoring out some code.
1410         * include/bits/locale_facets.tcc: Minor cosmetic changes.
1412 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
1414         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1415         Constify a couple of variables.
1416         (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
1417         ++__beg to *__beg++.
1419 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
1420             Petur Runolfsson  <peturr02@ru.is>
1422         * include/ext/stdio_sync_filebuf.h: Don't include the whole
1423         <fstream>, only <streambuf> and <cstdio>.
1425 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
1427         PR libstdc++/12206
1428         * include/bits/fstream.tcc (imbue): In case a codecvt facet
1429         is not available, set _M_codecvt = 0.
1430         * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
1432 2003-10-02  Harald Boehme  <boehme@informatik.hu-berlin.de>
1434         PR libstdc++/12451
1435         * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
1436         
1437 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
1439         * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
1440         * src/locale.cc: Define.
1441         * src/localename.cc: Use it.
1442         * config/locale/generic/time_members.h: Same.
1443         * config/locale/gnu/messages_members.h: Same.
1444         * config/locale/gnu/time_members.h: Same.
1446 2003-10-02  Paolo Carlini  <pcarlini@unitus.it>
1448         PR libstdc++/12232
1449         * include/bits/fstream.tcc (seekoff): Ignore the openmode
1450         argument; simplify.
1451         * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
1452         seekpos): Remove the openmode argument.
1453         * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
1454         seekpos): Remove redundant placeholder for the openmode argument.
1455         * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
1456         * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
1457         * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
1458         * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
1459         * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
1461 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
1463         * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
1464         (locale::facet::_S_get_c_locale): Same.
1465         
1466 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
1468         * config/linker-map.gnu: Export _S_get_c_locale instead of
1469         _S_c_locale object.
1471 2003-10-02  Petur Runolfsson  <peturr02@ru.is>
1473         * config/locale/generic/c_locale.cc
1474         (category_names, locale::_S_categories): Const qualify.
1475         * config/locale/gnu/c_locale.cc: Same.
1476         * config/locale/generic/time_members.h (__timepunct::__timepunct):
1477         Copy string contents before assigning to _M_name_timepunct,
1478         qualify strcpy and strlen with std::.
1479         * config/locale/gnu/time_members.h: Same.
1480         * config/locale/gnu/messages_members.h (messages::messages):
1481         Copy string contents before assigning to _M_name_messages,
1482         qualify strcpy and strlen with std::.
1483         * config/os/gnu-linux/ctype_noninline.h
1484         (ctype<char>::classic_table()): Don't call locale::classic().
1485         * include/bits/locale_classes.h
1486         (locale::_S_categories): Const qualify. 
1487         (locale::_S_once, locale::_S_initialize_once,
1488         locale::facet::_S_once, locale::facet::_S_initialize_once,
1489         locale::facet::_S_get_c_locale): Declare.
1490         (locale::_S_initialize): Don't define.
1491         (locale::facet::_S_c_locale): Make private.
1492         (locale::facet::_S_c_name): Same, const qualify.
1493         (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
1494         parameters, add throw() specifier.
1495         * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
1496         messages::_M_name_messages): Const qualify.
1497         * src/locale.cc
1498         (locale::_S_once, locale::facet::_S_once): Define.
1499         (locale::classic): Move initialization code...
1500         (locale::_S_initialize_once): ...here.  
1501         (locale::_S_initialize): Call _S_initialize_once through
1502         __gthread_once.
1503         (locale::facet::_S_initialize_once): Initialize _S_c_locale.
1504         (locale::facet::_S_get_c_locale): Call _S_initialize_once through
1505         __gthread_once before returning _S_c_locale.
1506         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
1507         Drop unused parameters, add throw() specifier, don't initialize
1508         locale::facet::_S_c_locale and _S_c_name.
1509         
1510         * config/locale/generic/messages_members.h:
1511         Replace _S_c_locale with _S_get_c_locale().
1512         * config/locale/gnu/c_locale.cc: Same.
1513         * config/locale/gnu/messages_members.h: Same.
1514         * config/locale/gnu/numeric_members.cc: Same.
1515         * config/locale/gnu/time_members.cc: Same.
1516         * config/os/gnu-linux/ctype_noninline.h: Same.
1517         * include/bits/locale_facets.h: Same.
1518         * include/bits/locale_facets.tcc: Same.
1519         * src/codecvt.cc: Same.
1520         * src/ctype.cc: Same.
1522 2003-10-02  Carlo Wood  <carlo@alinoe.com>
1524         * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
1525         Decode symbols that start with _GLOBAL_[ID]_ differently: the
1526         trailing part ends with a terminating zero and is not necessarily an
1527         encoding.
1528         * src/demangle.cc (): Same.
1529         * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
1531 2003-10-02  Paolo Carlini  <pcarlini@unitus.it>
1533         * testsuite/22_locale/locale/cons/12438.cc: Use
1534         __gnu_test::try_named_locale("").
1536 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1538         * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
1539         (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
1540         instead of drand48.
1541         * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
1542         * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
1543         HAVE_DRAND48.
1544         * config.h.in, configure: Regenerate.
1545         * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
1546         lrand48 use.
1548 2003-10-01  Nathan Myers  <ncm@cantrip.org>
1550         * include/bits/locale_facets.tcc (time_put::put): Avoid
1551         expensive *__s++, in favor of *__s, ++__s.
1553 2003-10-01  Paolo Carlini  <pcarlini@unitus.it>
1555         * include/bits/locale_facets.tcc (time_put::put): Minor
1556         tweak to the previous commit.
1558 2003-10-01  Paolo Carlini  <pcarlini@unitus.it>
1560         PR libstdc++/12439
1561         * include/bits/locale_facets.tcc (time_put::put): Deal
1562         with the three issues pointed out by the PR.
1563         * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
1564         * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
1565         * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
1566         * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
1567         * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
1569 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
1571         * include/bits/stl_algo.h: Minor cosmetic reformattings.
1573 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
1575         * include/bits/stl_algo.h (search_n): Tweak, to spare the
1576         first --__n.
1578 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
1580         * testsuite/22_locale/locale/cons/12352.cc: Explicitly
1581         qualify exception name.
1583 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
1585         PR libstdc++/12438
1586         * include/bits/locale_facets.tcc (locale::combine): Don't
1587         leak memory if _M_replace_facet throws.
1588         * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
1590         * include/bits/locale_classes.h (locale::locale(const locale&,
1591         _Facet*)): Tweak, use consistently _M_remove_reference.
1593 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
1595         PR libstdc++/12352 (cont)
1596         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
1597         Don't leak __cloc; don't leak if any of the _M_init_facet(...)
1598         calls fail.
1599         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
1600         (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
1601         !_M_caches, !_M_names.
1603 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1605         * configure.host: Handle Solaris 2.5 micro releases explicitly.
1606         Remove wildcards from Solaris 2.6, 7-9: there were no
1607         micro releases.
1608         Treat Solaris 10 and up like 7-9.
1610 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
1612         * include/bits/stl_algo.h (search_n): Improve the previous
1613         fix as suggested by Martin.
1615 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
1617         PR libstdc++/12296
1618         * include/bits/istream.tcc (peek): Set eofbit if sgetc
1619         returns eof.
1620         * testsuite/27_io/basic_istream/peek/char/12296.cc:
1621         New, from the PR.
1623 2003-09-29  Nathan Myers  <ncm@cantrip.org>
1624             Paolo Carlini  <pcarlini@unitus.it>
1626         PR libstdc++/11400
1627         * include/bits/stl_algo.h (search_n):
1628         Use iterator_traits<>::difference_type for __n.
1629         * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
1631 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
1633         * testsuite/22_locale/locale/cons/12352.cc:
1634         Use __attribute__((unused)) for test.
1636 2003-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
1638         * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either 
1639         "Son" or "So" as abbreviated name for Sunday in de_DE locale.
1640         * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
1642 2003-09-26  Brad Spencer  <spencer@infointeractive.com>
1644         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
1645         Explicitly qualify exceptions.
1646         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
1647         * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
1648         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
1649         * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
1650         
1651 2003-09-25  Paolo Carlini  <pcarlini@unitus.it>
1653         PR libstdc++/12352
1654         * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
1655         size_t)): Don't leak if memory allocations for _M_facets,
1656         _M_caches, and _M_names fail.
1657         (locale::_Impl::_Impl(const char*, size_t)): Ditto.
1658         (locale::_Impl::_M_replace_categories(const _Impl*,
1659         category)): Ditto.
1660         (locale::_Impl::_M_install_facet(const locale::id*,
1661         const facet*)): Ditto.
1662         * include/bits/locale_classes.h (locale::locale(const locale&,
1663         _Facet*)): Don't leak memory.
1664         * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
1666         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
1667         bool)): Qualify with std:: strcpy, tweak.
1668         * include/bits/locale_classes.h
1669         (locale::_Impl::_M_check_same_name): Qualify strcmp.
1671 2003-09-25  Brad Spencer  <spencer@infointeractive.com>
1673         PR libstdc++/6072
1674         * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
1675         wcstof, iswblank.       
1676         * aclocal.m4: Regenerate.
1677         * config.h.in: Regenerate.
1678         * configure: Regenerate.
1679         * crossconfig.m4: Add in wchar_t bits for solaris crosses.
1680         * config/io/basic_file_stdio.cc: Guard unistd.h.
1681         * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
1682         * include/c_std/std_cwchar.h: Same.
1683         * include/c_std/std_cwctype.h: Same.
1684         
1685 2003-09-25  Benjamin Kosnik  <bkoz@redhat.com>
1687         PR libstdc++/11065
1688         * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
1689         * config/locale/generic/ctype_members.cc: Same.
1690         * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
1691         * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
1693         * config/os/generic/ctype_inline.h: Update.
1694         
1695 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
1697         * src/Makefile.am (version_dep): New variable.
1698         (libstdc___la_DEPENDENCIES): Use it to add dependency on
1699         libstdc++-symbol.ver only when using symbol versioning.
1700         * src/Makefile.in: Regenerate.
1702 2003-09-23  Benjamin Kosnik  <bkoz@redhat.com>
1704         * include/bits/locale_facets.tcc: Tweak to avoid warnings.
1705         * testsuite/testsuite_hooks.h: Same.
1706         * testsuite/*/*.cc: Same.
1708 2003-09-22  Petur Runolfsson  <peturr02@ru.is>
1710         * include/bits/istream.tcc (basic_istream::read,
1711         basic_istream::readsome, basic_istream::putback,
1712         basic_istream::unget, operator>>(basic_istream, CharT)):
1713         Avoid redundant setstate(failbit) calls when sentry::operator bool()
1714         returns false.
1716 2003-09-22  Carlo Wood  <carlo@alinoe.com>
1718         PR libstdc++/12365
1719         * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
1720         char const*, int, int)):  Remove unused identifier
1721         cv_qualifier for overloaded constructor.
1723 2003-09-18  Benjamin Kosnik  <bkoz@redhat.com>
1725         PR libstdc++/11504
1726         * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
1727         WARN_FLAGS, remove -Wno-format.
1728         * aclocal.m4: Regenerate.
1729         * configure: Regenerate.
1731 2003-09-18  Petur Runolfsson  <peturr02@ru.is>
1733         * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
1734         * config/io/basic_file_stdio.h: Same.
1735         * include/std/std_fstream.h (__ctype_type): Delete.
1736         * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
1737         
1738 2003-09-17  Benjamin Kosnik  <bkoz@redhat.com>
1740         PR libstdc++/12239
1741         * configure.host (abi_baseline_pair): Error out on solaris2
1742         configurations without a minor version number.
1744 2003-09-13  Phil Edwards  <phil@codesourcery.com>
1746         * docs/doxygen/run_doxygen:  Clear GENERATE_TAGFILE entirely
1747         if man pages are on.
1748         * docs/doxygen/user.cfg.in:  And here.
1750 2003-09-10  Daniel Jacobowitz  <drow@mvista.com>
1751             Andreas Jaeger <aj@suse.de>
1753         PR libstdc++/12189
1754         * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
1755         abi_check if cross compiling.
1756         * aclocal.m4: Regenerated.
1757         * configure: Regenerated.
1759 2003-09-10  Jeffrey D. Oldham  <oldham@codesourcery.com>
1761         * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
1762         NULL, return NULL.  This reflects a C++ ABI change 2003 Sep 05.
1763         (__cxa_vec_new3): Likewise.
1765 2003-09-10  Petur Runolfsson  <peturr02@ru.is>
1767         * include/bits/fstream.tcc (basic_filebuf::seekoff):
1768         Use codecvt::length to handle variable-width stateless encodings
1769         correctly.
1770         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
1771         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
1773 2003-09-10  Alan Modra  <amodra@bigpond.net.au>
1775         * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
1776         rather than or'ing.
1778 2003-09-09  Alan Modra  <amodra@bigpond.net.au>
1780         * configure: Regenerate.
1782 2003-09-09  David Edelsohn  <edelsohn@gnu.org>
1784         * src/ios.cc (ios_base::Init::Init): Remove unnecessary
1785         qualifier from _S_synced_with_stdio.
1787 2003-09-09  Bernardo Innocenti  <bernie@develer.com>
1789         * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
1791 2003-09-04  Petur Runolfsson  <peturr02@ru.is>
1793         PR libstdc++/9028
1794         * include/bits/fstream.tcc
1795         (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
1796         (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
1797         _M_ext_buf_size, _M_ext_next and _M_ext_end.
1798         (basic_filebuf::underflow): Handle variable-width stateless
1799         encodings (codecvt::encoding() == 0), including UTF-8.
1800         * include/std/std_fstream.h (basic_filebuf):
1801         Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
1802         * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
1803         * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
1804         * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
1805         * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
1806         * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
1807         * testsuite/27_io/objects/wchar_t/12.cc: New test.
1808         * testsuite/27_io/objects/wchar_t/13.cc: New test.
1810 2003-09-04  Jonathan Wakely  <redi@gcc.gnu.org>
1812         * docs/html/faq/index.html: Note that a namespace alias can't be
1813         used when specialising templates in extension namespace.
1814         * docs/html/faq/index.txt: Regenerate.
1816 2003-09-03  Petur Runolfsson  <peturr02@ru.is>
1818         PR libstdc++/12048
1819         * include/ext/stdio_sync_filebuf.h
1820         (stdio_sync_filebuf::_M_unget_buf): Declare it.
1821         (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
1822         (stdio_sync_filebuf::uflow): Store the returned character in
1823         _M_unget_buf.
1824         (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
1825         _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
1826         (stdio_sync_filebuf<char>::xsgetn): Store last read character in
1827         _M_unget_buf, if any, else eof().
1828         (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
1829         _M_unget_buf, if any, else eof().
1830         * testsuite/27_io/objects/char/12048.cc: Rename to...
1831         * testsuite/27_io/objects/char/12048-1.cc: ...this.
1832         * testsuite/27_io/objects/char/12048-2.cc: New test.
1833         * testsuite/27_io/objects/char/12048-3.cc: New test.
1834         * testsuite/27_io/objects/char/12048-4.cc: New test.
1835         * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
1836         * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
1837         * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
1838         * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
1839         * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
1840         * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
1841         * testsuite/ext/stdio_sync_filebuf_char.cc
1842         (test02, test03, test04, test05): New tests.
1843         * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
1844         (test02, test03, test04, test05): New tests.
1846 2003-09-03  Petur Runolfsson  <peturr02@ru.is>
1848         * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
1849         stringbuf or strstreambuf. Fix typos.
1851 2003-09-02  Phil Edwards  <phil@codesourcery.com>
1853         * acinclude.m4 (GLIBCXX_ENABLE_HOSTED):  #define _GLIBCXX_HOSTED
1854         appropriately.
1855         * config.h.in:  Add _GLIBCXX_HOSTED.
1856         * libsupc++/eh_term_handler.cc:  Test it here; initialize
1857         __terminate_handler to std::abort if freestanding.
1858         * aclocal.m4, configure:  Regenerated.
1859         * docs/html/configopts.html:  Document --disable-hosted-libstdcxx.
1861 2003-08-29  Nathan Myers  <ncm@cantrip.org>
1862         
1863         PR libstdc++/11990      
1864         * include/bits/locale_facets.tcc (__pad): delete dead code.
1866 2003-08-28  Alan Modra  <amodra@bigpond.net.au>
1868         * configure.ac: Test $with_cross_host against $build_alias, not $build.
1869         * configure: Regenerate.
1871 2003-08-27  Petur Runolfsson  <peturr02@ru.is>
1873         * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
1874         * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
1876 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
1878         * Makefile.am:  Remove trailing whitespace.  Remove needless
1879         "foo = @foo@" assignments.  Replace direct uses of @foo@ with $(foo).
1880         * include/Makefile.am:  Likewise.
1881         * libmath/Makefile.am:  Likewise.
1882         * libsupc++/Makefile.am:  Likewise.
1883         * po/Makefile.am:  Likewise.
1884         * src/Makefile.am:  Likewise.
1885         * testsuite/Makefile.am:  Likewise.
1887         * Makefile.in, include/Makefile.in, libmath/Makefile.in,
1888         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1889         testsuite/Makefile.in:  Regenerated.
1891 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
1893         * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES):  Change quoting of
1894         includedir.
1895         * aclocal.m4, configure:  Regenerate.
1897 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
1899         * acinclude.m4: Include no-executables.m4.
1900         * configure.ac: Uncomment GCC_NO_EXECUTABLES.
1901         * aclocal.m4: Regenerated.
1902         * configure: Regenerated.
1904 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
1906         * acinclude.m4: Don't call AC_ISC_POSIX.
1907         * aclocal.m4: Regenerated.
1908         * configure: Regenerated.
1910 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
1912         * acinclude.m4 (GLIBCXX_CONDITIONAL):  New macro.  Wrap
1913         AM_CONDITIONAL.  Replace all calls to AM_CONDITIONAL with this one.
1914         (GLIBCXX_ENABLE_HOSTED):  New macro, sets new variable is_hosted,
1915         used elsewhere in this file.
1916         (GLIBCXX_EVALUATE_CONDITIONALS):  New macro...
1917         * configure.ac:  ...called here to expand all conditionals.
1918         * Makefile.am:  Conditionalize SUBDIRS on GLIBCXX_HOSTED.
1919         * include/Makefile.am:  Remove redundant gxx_include_dir assignment.
1920         (install-freestanding-headers):  New target, a subset of
1921         install-headers.  Conditionalize install-data-local on GLIBCXX_HOSTED.
1923         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1924         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1925         src/Makefile.in, testsuite/Makefile.in:  Regenerated.
1927 2003-08-26  Phil Edwards  <pme@gcc.gnu.org>
1929         * docs/doxygen/run_doxygen:  Shell fixes.  Remove hardcoded local
1930         pathnames from generated tag file.
1932 2003-08-26  Phil Edwards  <pme@gcc.gnu.org>
1934         * Makefile.am:  Add comment.
1935         * acinclude.m4 (GLIBCXX_CONFIGURE):  Set new glibcxx_SUBDIRS and
1936         SUBDIRS variables.
1937         * configure.ac:  Use them both here, instead of hardcoded lists.
1939         * fragment.am:  Add STAMP varaible.
1940         * include/Makefile.am:  Cosmetic whitespace cleanup.  Use $(LN_S)
1941         instead of @LN_S@.
1942         (stamp-*):  Move file creation rule outside of 'if' branches to
1943         ensure the stamp-* files are actually updated.  Use $(STAMP).
1944         * src/Makefile.am:  Remove now-nonexistant variable.
1945         * libsupc++/Makefile.am:  Likewise.  Snap the assignment chain
1946         for -prefer-pic.
1947         * po/Makefile.am:  Include same fragment as all the others.
1949         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1950         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in:  Regenerated.
1952 2003-08-26  Loren J. Rittle  <ljrittle@acm.org>
1954         * testsuite/data/cin_unget-1.txt: New.
1955         * testsuite/27_io/objects/char/12048.cc: New.
1957 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
1959         * config/os/hpux/os_defines.h: Unconditionally define
1960         _GLIBCXX_GTHREAD_USE_WEAK to 0.
1962 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
1964         * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
1965         crosses to Darwin targets.
1966         * configure: Regenerate.
1968 2003-08-19  Petur Runolfsson  <peturr02@ru.is>
1970         * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
1972 2003-08-17  Phil Edwards  <pme@gcc.gnu.org>
1974         * configure.ac:  GCC_NO_EXECUTABLES was supposed to be commented
1975         in the patch from 3 minutes ago.  Boy, is my face red.
1976         * configure:  At least I remembered to regenerate this.
1978 2003-08-17  Phil Edwards  <pme@gcc.gnu.org>
1980         * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES):  Remove LIBMATH_INCLUDES
1981         and LIBSUPCXX_INCLUDES.  Re-purpose TOPLEVEL_INCLUDES to refer to
1982         things from the top level.
1983         * configure.ac (GLIBCXX_IS_NATIVE):  Determine earlier and re-order.
1984         Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
1985         (currently unused).  Strip the fake-VPATH shell fragment from
1986         automake-generated rules, if present.
1987         * linkage.m4:  Add comment.
1989         * fragment.am:  New file, containing factored-out common settings.
1990         (AM_CPPFLAGS):  Absorb the deprecated INCLUDES variable contents.
1991         * Makefile.am:  Include fragment.am.  Remove common variables.
1992         * include/Makefile.am:  Likewise.
1993         * libmath/Makefile.am:  Likewise.
1994         * libsupc++/Makefile.am:  Likewise.
1995         * po/Makefile.am:  Likewise.  Print rules during check.
1996         * src/Makefile.am:  Likewise.
1997         * testsuite/Makefile.am:  Likewise.
1999         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2000         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2001         src/Makefile.in, testsuite/Makefile.in:  Regenerate.
2003 2003-08-11  John Levon  <levon@movementarian.org>
2005         * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
2006         remaining places for the name change from GLIBCPP_FORCE_NEW
2007         to GLIBCXX_FORCE_NEW
2009 2003-08-11  Benjamin Kosnik  <bkoz@redhat.com>
2011         * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
2012         typedefs to num_*.
2013         * include/bits/basic_ios.tcc: Same.
2014         * include/bits/istream.tcc: Same.
2015         * include/bits/locale_facets.h: Same.
2016         * include/bits/ostream.tcc: Same.
2017         * include/std/std_istream.h: Same.
2018         * include/std/std_ostream.h: Same.
2019         * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
2021         * include/ext/rope: Remove build warning.
2023 2003-08-11  Andreas Jaeger  <aj@suse.de>
2025         * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
2026         to make SMP-safe.
2027         * include/Makefile.in: Regenerated.
2029 2003-08-11  Phil Edwards  <pme@gcc.gnu.org>
2031         * acinclude.m4 (GLIBCXX_CONFIGURE):  Unprecious CC and CFLAGS
2032         when calling AC_PROG_CC.
2033         * aclocal.m4, configure:  Regenerate.
2035 2003-08-11  Phil Edwards  <pme@gcc.gnu.org>
2037         * acinclude.m4:  Properly quote variable which will be expanded
2038         inside makefiles.  Use CXX instead of CC to extract compiler info.
2039         * configure.ac (AC_INIT):  Use the new 4-arg form to finally get the
2040         correct form in PACKAGE.
2041         * aclocal.m4, configure:  Regenerate.
2043 2003-08-08  Benjamin Kosnik  <bkoz@redhat.com>
2045         * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
2046         (check-abi-verbose): Same.
2047         * testsuite/testsuite_performance.h (report_performance): Same.
2049 2003-08-08  Loren J. Rittle  <ljrittle@acm.org>
2051         * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
2053 2003-08-07  Doug Gregor  <dgregor@apple.com>
2055         * include/bits/char_traits.h (char_traits::not_eof): Match operand
2056         types in ? :.
2058 2003-08-07  Bernardo Innocenti  <bernie@develer.com>
2060         PR libstdc++/11784
2061         * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
2062         Replace variants with new BSET-based version.
2064 2003-08-07  Carlo Wood  <carlo@alinoe.com>
2066         * include/bits/demangle.h: Do not use cctype functions that depend
2067         on locale.
2069 2003-08-05  Phil Edwards  <pme@gcc.gnu.org>
2071         * configure.in:  Rename...
2072         * configure.ac:  ...to this.
2073         * docs/html/17_intro/porting.texi:  Update name.
2075         * docs/html/17_intro/porting.html:  Regenerate.
2076         * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2077         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2078         testsuite/Makefile.in:  Regenerate (picks up new dependancy).
2080 2003-08-05  Phil Edwards  <pme@gcc.gnu.org>
2082         * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS):  Put down the crack
2083         pipe, open the window to let out the fumes, redo the option-handling
2084         logic to properly execute the detection test.
2085         * aclocal.m4, configure:  Regenerate.
2087 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
2089         Convert to new autotools.
2090         * acconfig.h:  Update with correct names.
2091         * configure.host (ATOMICITYH):  Rename to atomicity_include_dir.
2092         (qnx6.[12]*):  'q' comes before 's', not after 'w'.
2093         * configure.in:  Update.  Split hardcoded cross-configury settings
2094         out to...
2095         * crossconfig.m4:  ...here.  New file.  Contents untouched.
2096         * acinclude.m4:  Reorganize and rewrite as needed.  Split large
2097         chunks out to...
2098         * linkage.m4:  ...here.  New file.  Math and stdlib linkage tests.
2099         Contents untouched.
2100         * scripts/testsuite_flags.in:  Update.
2102         * Makefile.am:  Remove unneeded AUTOMAKE_OPTIONS settings and other
2103         variables (already generated by automake).
2104         * include/Makefile.am:  Ditto.
2105         * libmath/Makefile.am:  Ditto.
2106         * libsupc++/Makefile.am:  Ditto.
2107         * po/Makefile.am:  Ditto.
2108         * src/Makefile.am:  Ditto.
2110         * aclocal.m4:  Regenerate using new versions.
2111         * config.h.in:  Ditto.
2112         * configure:  Ditto.
2113         * Makefile.in:  Ditto.
2114         * include/Makefile.in:  Ditto.
2115         * libmath/Makefile.in:  Ditto.
2116         * libsupc++/Makefile.in:  Ditto.
2117         * po/Makefile.in:  Ditto.
2118         * src/Makefile.in:  Ditto.
2119         * testsuite/Makefile.in:  Ditto.
2121 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
2123         * po/libstdc++.pot:  Re-extract/regenerate.
2125 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
2127         * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
2128         Remove unneeded variable assignments.  Leave them for automake.
2129         * testsuite/lib/libstdc++-v3.exp:  Rename...
2130         * testsuite/lib/libstdc++.exp:  ...to this.  Adjust function names
2131         accordingly.
2132         * testsuite/libstdc++-v3.dg/dg.exp:  Rename...
2133         * testsuite/libstdc++-dg/normal.exp:  ...to this.  Adjust function
2134         names accordingly.
2136 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
2138         * docs/doxygen/guide.html:  run_doxygen uses bash.
2139         * docs/doxygen/mainpage.html:  We'll be shipping tag files.
2140         * docs/doxygen/run_doxygen:  Tweaks and improvements.
2141         * docs/doxygen/user.cfg.in:  Set GENERATE_TAGFILE.
2142         * docs/html/install.html:  Update autoconf/automake requirements.
2143         * docs/html/test.html:  Add section describing DejaGNU support.
2144         * docs/html/17_intro/confdeps.dot:  New file, generates...
2145         * docs/html/17_intro/confdeps.png:  ...this new file.
2146         * docs/html/Makefile:  Generated here.
2147         * docs/html/17_intro/configury.html:  New file.
2149 2003-07-31  Phil Edwards  <pme@gcc.gnu.org>
2151         * testsuite/lib/libstdc++-v3-dg.exp:  Rename...
2152         * testsuite/lib/libstdc++-v3.exp:  ...to this.
2153         * testsuite/libstdc++-v3.dg/dg.exp:  No special case needed now.
2155 2003-07-31  Doug Gregor  <dgregor@apple.com>
2157         Add user specialization tests.
2158         * testsuite/23_containers/deque/1.cc: New.
2159         * testsuite/23_containers/list/1.cc: New.
2160         * testsuite/23_containers/map/1.cc: New.
2161         * testsuite/23_containers/multimap/1.cc: New.
2162         * testsuite/23_containers/multiset/1.cc: New.
2163         * testsuite/23_containers/set/1.cc: New.
2164         * testsuite/23_containers/vector/1.cc: New.
2166 2003-07-31  Benjamin Kosnik  <bkoz@redhat.com>
2168         Reshuffle 23_containers testsuite.
2169         * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
2170         bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
2171         list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
2172         map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
2173         set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
2174         vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
2175         vector_resize.cc: Split into...
2176         * 23_containers/bitset/cons/1.cc: New.
2177         * 23_containers/bitset/cons/6282.cc: New.
2178         * 23_containers/bitset/count/6124.cc: New.
2179         * 23_containers/bitset/operations/1.cc: New.
2180         * 23_containers/bitset/operations/2.cc: New.
2181         * 23_containers/bitset/test/1.cc: New.
2182         * 23_containers/bitset/to_ulong/1.cc: New.
2183         * 23_containers/deque/cons/1.cc: New.
2184         * 23_containers/deque/cons/2.cc: New.
2185         * 23_containers/deque/operators/1.cc: New.
2186         * 23_containers/list/capacity/1.cc: New.
2187         * 23_containers/list/cons/1.cc: New.
2188         * 23_containers/list/cons/2.cc: New.
2189         * 23_containers/list/cons/3.cc: New.
2190         * 23_containers/list/cons/4.cc: New.
2191         * 23_containers/list/cons/5.cc: New.
2192         * 23_containers/list/cons/6.cc: New.
2193         * 23_containers/list/cons/7.cc: New.
2194         * 23_containers/list/cons/8.cc: New.
2195         * 23_containers/list/cons/9.cc: New.
2196         * 23_containers/list/modifiers/1.cc: New.
2197         * 23_containers/list/modifiers/2.cc: New.
2198         * 23_containers/list/modifiers/3.cc: New.
2199         * 23_containers/list/operators/1.cc: New.
2200         * 23_containers/list/operators/2.cc: New.
2201         * 23_containers/list/operators/3.cc: New.
2202         * 23_containers/list/operators/4.cc: New.
2203         * 23_containers/map/insert/1.cc: New.
2204         * 23_containers/map/operators/1.cc: New.
2205         * 23_containers/map/operators/1_neg.cc: New.
2206         * 23_containers/multiset/insert/1.cc: New.
2207         * 23_containers/priority_queue/members/7161.cc: New.
2208         * 23_containers/queue/members/7157.cc: New.
2209         * 23_containers/set/operators/1_neg.cc: New.
2210         * 23_containers/stack/members/7158.cc: New.
2211         * 23_containers/vector/bool/1.cc: New.
2212         * 23_containers/vector/bool/6886.cc: New.
2213         * 23_containers/vector/capacity/1.cc: New.
2214         * 23_containers/vector/capacity/2.cc: New.
2215         * 23_containers/vector/capacity/8230.cc: New.
2216         * 23_containers/vector/cons/1.cc: New.
2217         * 23_containers/vector/cons/2.cc: New.
2218         * 23_containers/vector/cons/3.cc: New.
2219         * 23_containers/vector/cons/4.cc: New.
2220         * 23_containers/vector/cons/6513.cc: New.
2221         * 23_containers/vector/element_access/1.cc: New.
2222         * 23_containers/vector/modifiers/1.cc: New.
2223         * 23_containers/vector/modifiers/2.cc: New.
2224         * 23_containers/vector/resize/1.cc: New.
2226 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2228         * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
2229         dg-options.
2230         * testsuite/thread/pthread2.cc: Likewise.
2231         * testsuite/thread/pthread3.cc: Likewise.
2232         * testsuite/thread/pthread4.cc: Likewise.
2233         * testsuite/thread/pthread5.cc: Likewise.
2234         * testsuite/thread/pthread6.cc: Likewise.
2235         * testsuite/thread/pthread7-rope.cc: Likewise.
2237 2003-07-30  Phil Edwards  <pme@gcc.gnu.org>
2239         * include/bits/c++config:  Partial reversion (comment placement) of
2240         previous patch.
2242 2003-07-30  Benjamin Kosnik  <bkoz@redhat.com>
2244         * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
2245         (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
2246         (_GLIBCXX_AT_AT): Remove.
2247         (__USE_MALLOC): Remove.
2248         * include/std/std_fstream.h: Modify.
2249         * include/bits/basic_ios.h: Same.
2250         * include/bits/valarray_array.h: Same.
2251         * include/c_std/std_cmath.h: Same.
2252         * include/c_std/cmath.tcc: Same.
2253         * include/std/std_vector.h: Same.
2254         * include/std/std_string.h: Same.
2255         * include/std/std_stack.h: Same.
2256         * include/std/std_queue.h: Same.
2257         * include/std/std_list.h: Same.
2258         * include/std/std_deque.h: Same.
2259         * include/std/std_streambuf.h: Same.
2260         * include/std/std_sstream.h: Same.
2261         * include/std/std_ostream.h: Same.
2262         * include/std/std_istream.h: Same.
2263         * include/bits/valarray_array.tcc: Same, format.
2265         * include/c/std_cctype.h: Fix include guards.
2266         * include/c/std_cerrno.h: Same.
2267         * include/c/std_cfloat.h: Same.
2268         * include/c/std_climits.h: Same.
2269         * include/c/std_clocale.h: Same.
2270         * include/c/std_cmath.h: Same.
2271         * include/c/std_csetjmp.h: Same.
2272         * include/c/std_csignal.h: Same.
2273         * include/c/std_cstdarg.h: Same.
2274         * include/c/std_cstddef.h: Same.
2275         * include/c/std_cstdio.h: Same.
2276         * include/c/std_cstdlib.h: Same.
2277         * include/c/std_cstring.h: Same.
2278         * include/c/std_ctime.h: Same.
2279         * include/c/std_cwchar.h: Same.
2280         * include/c/std_cwctype.h: Same.
2281         * include/c_std/cmath.tcc: Same.
2282         * include/c_std/std_cmath.h: Same.
2284 2003-07-30  Gawain Bolton  <gp.bolton@computer.org>
2286         PR libstdc++/11504.
2287         * include/bits/stl_tree.h: Replace C-style casts with C++-style
2288         casts.  Changes to avoid casting away constness.  Eliminate
2289         _Rb_tree_base_iterator class.  Change _Rb_tree_iterator to use
2290         initialization lists.  Move out implementation of __black_count()
2291         to...
2292         * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
2293         Rename_Rb_tree_base_iterator::_M_increment() to
2294         _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
2295         _Rb_tree_decrement.
2296         * config/linker-map.gnu: Add and change symbols here.
2298 2003-07-30  Jonathan Wakely  <redi@gcc.gnu.org>
2300         * docs/html/22_locale/howto.html: Use locale::classic() instead
2301         of locale("C").
2303 2003-07-28  Benjamin Kosnik  <bkoz@redhat.com>
2305         * testsuite/testsuite_hooks.h: Remove list include.
2306         (func_callback): Define as unique type, not std::list.
2307         Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
2308         * testsuite/libstdc++-v3.dg/dg.exp: Same.
2309         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
2310         * testsuite/23_containers/bitset_ctor.cc:
2311         * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
2312         * testsuite/18_support/numeric_limits.cc: Same.
2313         * testsuite/21_strings/basic_string/append/char/1.cc: Same.
2314         * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
2315         * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
2316         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
2317         * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
2318         * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
2319         * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
2320         * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
2321         * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
2322         * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
2323         * testsuite/21_strings/basic_string/find/char/1.cc: Same.
2324         * testsuite/21_strings/basic_string/find/char/2.cc: Same.
2325         * testsuite/21_strings/basic_string/find/char/3.cc: Same.
2326         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
2327         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
2328         * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
2329         * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
2330         * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
2331         * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
2332         * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
2333         * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
2334         * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
2335         * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
2336         * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
2337         * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
2338         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
2339         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
2340         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
2341         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
2342         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
2343         * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
2344         * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
2345         * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
2346         * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
2347         * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
2348         * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
2349         * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
2350         * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
2351         * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
2352         * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
2353         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
2354         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
2355         * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
2356         * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
2357         * testsuite/23_containers/bitset_ctor.cc: Same.
2358         * testsuite/23_containers/bitset_shift.cc: Same.
2359         * testsuite/23_containers/vector_ctor.cc: Same.
2360         * testsuite/23_containers/vector_element_access.cc: Same.
2361         * testsuite/24_iterators/istreambuf_iterator.cc: Same.
2362         * testsuite/24_iterators/iterator.cc: Same.
2363         * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
2364         * testsuite/25_algorithms/lower_bound.cc: Same.
2365         * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
2366         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
2367         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
2368         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
2369         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
2370         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
2371         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
2372         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
2373         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
2374         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
2375         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
2376         Same.
2378 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
2380         * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
2381         docs/html/test.html, docs/html/17_intro/headers_cc.txt,
2382         docs/html/17_intro/howto.html, docs/html/ext/howto.html:  Change
2383         GLIBCPP to GLIBCXX (and explain as needed).
2385 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
2387         * README:  Update.
2389 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
2391         * testsuite/22_locale/messages/members/char/1.cc,
2392         testsuite/22_locale/messages/members/char/2.cc,
2393         testsuite/22_locale/messages/members/char/3.cc,
2394         testsuite/22_locale/messages_byname/1.cc:  Update comment regarding
2395         the origin of LOCALEDIR.
2396         * testsuite/lib/libstdc++-v3.exp:  New file.
2398 2003-07-25  Benjamin Kosnik  <bkoz@redhat.com>
2400         * include/bits/char_traits.h: Update copyright, tweak.
2401         * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
2402         std types.
2404 2003-07-24  Matt Austern  <austern@apple.com>
2406         * /include/bits/char_traits.h (class char_traits): Put all the
2407         real work into the new class template __gnu_cxx::char_traits.
2408         Gave generic definitions for member functions.  Types are taken
2409         from the new class template __gnu_cxx::_Char_types.
2410         * testsuite/21_strings/char_traits/requirements/short/1.cc: New
2411         file.  Test of std::char_traits<short>, which serves as a test of
2412         the char_traits primary template.
2414 2003-07-24  Benjamin Kosnik  <bkoz@redhat.com>
2416         * testsuite/*: Change __gnu_cxx_test to __gnu_test.
2418 2003-07-24  Nathan Myers  <ncm-nospam@cantrip.org>
2420         * testsuite/23_containers/map_operators.cc: Conform to
2421         container requirement as value must be Assignable.
2423 2003-07-23  Alexandre Oliva  <aoliva@redhat.com>
2425         * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
2426         tests not only generation of pch files, but also their use.
2427         * aclocal.m4, configure: Rebuilt.
2429 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
2431         * config/cpu/hppa/atomicity.h: Change
2432         _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
2433         to match misc-inst.cc
2435 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
2437         * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
2438         * include/c_std/std_cctype.h: Ditto.
2439         * include/c_std/std_cerrno.h: Ditto.
2440         * include/c_std/std_cfloat.h: Ditto.
2441         * include/c_std/std_climits.h: Ditto.
2442         * include/c_std/std_clocale.h: Ditto.
2443         * include/c_std/std_cmath.h: Ditto.
2444         * include/c_std/std_csetjmp.h: Ditto.
2445         * include/c_std/std_csignal.h: Ditto.
2446         * include/c_std/std_cstdarg.h: Ditto.
2447         * include/c_std/std_cstddef.h: Ditto.
2448         * include/c_std/std_cstdio.h: Ditto.
2449         * include/c_std/std_cstdlib.h: Ditto.
2450         * include/c_std/std_cstring.h: Ditto.
2451         * include/c_std/std_ctime.h: Ditto.
2452         * include/c_std/std_cwchar.h: Ditto.
2453         * include/c_std/std_cwctype.h: Ditto.
2454         * include/std/std_algorithm.h: Ditto.
2455         * include/std/std_bitset.h: Ditto.
2456         * include/std/std_complex.h: Ditto.
2457         * include/std/std_deque.h: Ditto.
2458         * include/std/std_fstream.h: Ditto.
2459         * include/std/std_functional.h: Ditto.
2460         * include/std/std_iomanip.h: Ditto.
2461         * include/std/std_ios.h: Ditto.
2462         * include/std/std_iosfwd.h: Ditto.
2463         * include/std/std_iostream.h: Ditto.
2464         * include/std/std_istream.h: Ditto.
2465         * include/std/std_iterator.h: Ditto.
2466         * include/std/std_limits.h: Ditto.
2467         * include/std/std_list.h: Ditto.
2468         * include/std/std_locale.h: Ditto.
2469         * include/std/std_map.h: Ditto.
2470         * include/std/std_memory.h: Ditto.
2471         * include/std/std_numeric.h: Ditto.
2472         * include/std/std_ostream.h: Ditto.
2473         * include/std/std_queue.h: Ditto.
2474         * include/std/std_set.h: Ditto.
2475         * include/std/std_sstream.h: Ditto.
2476         * include/std/std_stack.h: Ditto.
2477         * include/std/std_stdexcept.h: Ditto.
2478         * include/std/std_streambuf.h: Ditto.
2479         * include/std/std_string.h: Ditto.
2480         * include/std/std_utility.h: Ditto.
2481         * include/std/std_valarray.h: Ditto.
2482         * include/std/std_vector.h: Ditto.
2484 2003-07-22  Doug Gregor  <dgregor@apple.com>
2486         * include/bits/basic_string.h (basic_string::insert): Deprecate
2487         GNU extension.
2489 2003-07-21  Benjamin Kosnik  <bkoz@redhat.com>
2491         * scripts/testsuite_flags.in (--build-includes): Remove extraneous
2492         paths for libio.
2493         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
2494         (test03): Include typeinfo for bad_cast.
2495         * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
2496         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2497         * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
2499 2003-07-21  Doug Gregor  <dgregor@apple.com>
2501         * include/bits/boost_concept_check.h:
2502         (_EqualityComparableConcept::__constraints): Remove != from the
2503         list of constraints; it is not listed in Table 28 of the C++98
2504         standard.
2506 2003-07-18  Andreas Jaeger  <aj@suse.de>
2508         * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
2509         * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
2510         * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
2511         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
2513 2003-07-17  Benjamin Kosnik  <bkoz@redhat.com>
2515         * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
2516         * config/locale/generic/messages_members.h: Tweaks.
2517         * config/locale/generic/monetary_members.cc
2518         (moneypunct::_M_initialize_moneypunct): Use cache.
2519         (moneypunct::~moneypunct): Delete cache.
2520         * config/locale/generic/time_members.cc:
2521         (__timepunct::_M_initialize_timepunct): Use cache.
2522         * config/locale/generic/time_members.h:
2523         (__timepunct::~__timepunct): Delete cache.
2524         (__timepunct::__timepunct): Set cache.
2525         * config/locale/gnu/messages_members.h: Tweaks.
2526         * config/locale/gnu/monetary_members.cc:
2527         (moneypunct::_M_initialize_moneypunct): Use cache.
2528         (moneypunct::~moneypunct): Delete cache.
2529         * config/locale/gnu/time_members.cc:
2530         (__timepunct::_M_initialize_timepunct): Use cache.
2531         * config/locale/gnu/time_members.h:
2532         (__timepunct::~__timepunct): Delete cache.
2533         (__timepunct::__timepunct): Set cache.
2534         * include/bits/locale_facets.h (__timepunct_cache): New.
2535         (__moneypunct_cache): New.
2536         * include/bits/locale_facets.tcc: Tweak.
2537         * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
2538         * src/locale-inst.cc: Instantiate caches.
2539         * src/globals.cc: Add "C" caches.
2540         * src/localename.cc: Use external "C" caches.
2542 2003-07-17  Phil Edwards  <pme@gcc.gnu.org>
2544         * docs/doxygen/guide.html:  Fix typo.
2546 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
2548         * include/ext/pod_char_traits.h: Add state template argument.
2550 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
2552         * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
2553         (num_get::_M_convert_int): To _M_insert_int.
2554         (num_get::_M_convert_float): To _M_insert_float.
2555         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
2556         Use caches for ctype, num_get.
2557         (num_get::_M_extract_int): Same.
2558         (num_get::get(bool)): Same.
2559         (__verify_grouping): Use size_t.
2560         * src/locale-inst.cc: Update.
2561         * src/locale.cc: Adjust _S_atoms_in.
2563 2003-07-16  Phil Edwards  <pme@gcc.gnu.org>
2565         * docs/doxygen/mainpage.html:  Move building/writing instructions...
2566         * docs/doxygen/guide.html:  ...to here.  New file.
2568 2003-07-16  Jonathan Wakely  <redi@gcc.gnu.org>
2570         * docs/html/ext/howto.html: Update URL for SGI STL docs.
2571         * docs/html/faq/index.html: Same.
2572         * docs/html/faq/index.txt: Regenerate.
2574 2003-07-16  Paolo Carlini  <pcarlini@unitus.it>
2576         PR libstdc++/11528
2577         * include/bits/locale_facets.tcc (money_get::do_get):
2578         Strip only _leading_ zeros.
2579         * testsuite/22_locale/money_get/get/char/11528.cc: Add.
2580         * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
2582 2003-07-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2584         * include/ext/hash_map (class hash_multimap): Remove extra
2585         semicolons from __glibcxx_class_requires3 entries.
2586         * include/ext/hash_set (class hash_set): Ditto.
2587         (class hash_multiset): Ditto.
2589 2003-07-15  Petur Runolfsson  <peturr02@ru.is>
2591         * include/bits/char_traits.h (char_traits<wchar_t>::move):
2592         Change last parameter from int_type to size_t.
2594 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
2596         * include/bits/stl_algo.h (includes, set_union, set_intersection,
2597         set_difference, set_symmetric_difference, max_element, min_element,
2598         next_permutation, prev_permutation, find_first_of, find_end):
2599         Document.
2600         * include/bits/stl_algobase.h (copy,copy_backward):  Clarify overlap
2601         restrictions in docs.
2602         * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
2603         Document.
2604         * docs/doxygen/doxygroups.cc (setoperations):  New group.
2606 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
2608         * include/bits/basic_string.h:  Document public functions.
2609         * docs/doxygen/TODO:  Update c21 todo.
2611 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
2613         * include/bits/stl_list.h:  Document more functions.
2614         * docs/doxygen/TODO:  Update c23 todo.
2616 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
2618         * config/locale/gnu/c_locale.h (__convert_from_v): One more
2619         qualification.
2621 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
2623         * include/bits/stl_tempbuf.h: Qualify free with std::.
2624         * src/locale.cc: Include <cstdlib>, qualify getenv.
2626 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
2628         * config/locale/gnu/c_locale.h (__convert_from_v): Include
2629         <cstdio>. Qualify names.
2630         * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
2632 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
2633             Nathan C. Myers  <ncm-nospam@cantrip.org>
2635         PR libstdc++/11378
2636         * include/std/std_fstream.h (xsputn): Declare only.
2637         * include/bits/fstream.tcc (xsputn): Define, optimize for the
2638         always_noconv() case: when __n is sufficiently large flush
2639         the buffer and issue a direct write, if possible combining the
2640         two with writev in __basic_file<>::xsputn_2.
2641         * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
2642         New, declare.
2643         * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
2644         Define.
2645         * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
2646         the availability of writev in <sys/uio.h>.
2647         * configure.in: Call here.
2648         * acconfig.h: Add undef for the corresponding symbol.
2649         * aclocal.m4: Regenerate.
2650         * configure: Regenerate.
2651         * config.h.in: Regenerate.
2652         * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
2654         * include/std/std_fstream.h (sync): Constify a variable.
2656 2003-07-14  Benjamin Kosnik  <bkoz@redhat.com>
2658         * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
2659         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2661 2003-07-14  Gabriel Dos Reis  <gcc@integrable-solutions.net>
2663         * config/locale/gnu/c_locale.h (__convert_from_v): Include
2664         <cstring> and <cstdlib>. Qualify names.
2666 2003-07-13  Mark Mitchell  <mark@codesourcery.com>
2668         * config/locale/generic/c_locale.h: Include <cstdlib> and
2669         <cstring>.
2670         * include/bits/boost_concept_check.h: Add this-> to unqualified
2671         method calls.
2672         * include/bits/deque.tcc: Likewise.
2673         * include/bits/locale_facets.h : Likewise.
2674         * include/bits/ostream.tcc: Likewise.
2675         * include/bits/stl_algo.h: Likewise.
2676         * include/bits/stl_bvector.h: Likewise.
2677         * include/bits/stl_deque.h: Likewise.
2678         * include/bits/stl_list.h: Likewise.
2679         * include/bits/stl_tree.h: Likewise.
2680         * include/bits/stl_vector.h: Likewise.
2681         * include/bits/vector.tcc: Likewise.
2682         * include/ext/rope: Likewise.
2683         * include/ext/ropeimpl.h: Likewise.
2684         * include/ext/stdio_filebuf.h: Likewise.
2686 2003-07-11  Jerry Quinn  <jlquinn@optonline.net>
2688         * include/bits/basic_ios.h (copyfmt): Document.
2689         * include/bits/ios_base.h (event, event_callback, register_callback,
2690         xalloc, iword, pword):  Document.
2691         (imbue, ~ios_base): Update docs on callbacks.
2693 2003-07-11  Phil Edwards  <pme@gcc.gnu.org>
2695         * acinclude.m4 (GLIBCC_ENABLE_SYMVERS):  Tweak comments.  Add
2696         warning messages if the environment cannot support symbol versioning.
2697         (port_specific_symbol_file):  It's plural, add an 's' on the end.
2698         * configure.host:  Likewise.
2699         * src/Makefile.am:  Likewise.
2700         * config/linker-map.gnu:  Remove one semicolon, heh.
2701         * scripts/extract_symvers:  Don't assume useful 'export' syntax.
2702         Set LANG as well as LC_ALL for possibly-broken sort(1)s.
2703         * aclocal.m4, configure, src/Makefile.in:  Regenerated.
2705 2003-07-09  Benjamin Kosnik  <bkoz@redhat.com>
2707         * include/bits/locale_facets.tcc: Use function object for
2708         __use_cache instead of template function. Partially specialize for
2709         __numpunct<_CharT>.
2710         * include/bits/locale_classes.h: Update friend declaration for
2711         __use_cache.
2712         (_M_install_cache): No throw exception specs.
2713         * src/locale.cc: Remove __use_cache specializations.
2714         * include/ext/pod_char_traits.h (length): Tweak.
2715         * include/bits/locale_facets.h (__numpunct_cache): Remove
2716         char_type typedef.
2717         * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
2718         (pod_long): Remove.
2719         * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
2720         * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
2721         * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
2722         * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
2723         * testsuite/22_locale/numpunct/members/pod/1.cc: New.
2724         * testsuite/22_locale/numpunct/members/pod/2.cc: New.
2726 2003-07-09  Jerry Quinn  <jlquinn@optonline.net>
2728         * src/ios.cc (_M_grow_words):  Fix spelling.
2730 2003-07-09  Gawain Bolton  <gp.bolton@computer.org>
2732         * include/bits/stl_tree.h: Move larger member functions in
2733         _Rb_tree_base_iterator and _Rb_tree_node to...
2734         * src/stl_tree.cc: Here.
2735         * src/Makefile.in: Add stl_tree.cc.
2736         * src/Makefile.in: Regenerated.
2737         * config/linker-map.gnu: Add symbols here.
2739 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
2741         * testsuite/ext/pod_char_traits.cc: New.
2742         * include/ext/pod_char_traits.h: New.
2743         * include/Makefile.am (ext_headers): Add pod_char_traits.h.
2744         * include/Makefile.in: Regenerate.
2745         * docs/html/21_strings/howto.html: Update.
2747 2003-07-08  Gawain Bolton  <gp.bolton@computer.org>
2749         * testsuite/performance/list_create_fill_sort.cc: New.
2751 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
2753         * config/locale/generic/numeric_members.cc: Correct type info.
2754         * config/locale/gnu/numeric_members.cc: Same.
2755         * include/bits/locale_facets.h: Same.
2757         * include/bits/char_traits.h: Correct spacing.
2759         * src/locale.cc: Wrap to 80 col.
2761 2003-07-07  Paolo Carlini  <pcarlini@unitus.it>
2763         * include/std/std_complex.h: Partially revert last
2764         changes: cmath functions must not be qualified.
2766 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
2768         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Do not test for binutils
2769         2.11 with globbing backport fix.
2770         * aclocal.m4, configure:  Regenerated.
2772 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
2774         * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
2775         if output is at all possible (!_M_reading), cannot be active.
2777         * include/std/std_fstream.h: Tweak comments to doxygen style.
2779 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
2781         * include/bits/locale_classes.h: Fully qualify standard
2782         functions with std::, thus avoiding Koenig lookup.
2783         * include/bits/locale_facets.tcc: Likewise.
2784         * src/locale.cc: Likewise.
2785         * src/localename.cc: Likewise.
2787 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
2789         * include/bits/allocator_traits.h:  Fix doxygen markup.
2790         * include/ext/mt_allocator.h:  Likewise.
2792 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
2794         * testsuite/testsuite_hooks.h:  Guard against a missing unlink().
2796 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
2798         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Bump minimal version
2799         requirement.  Add port_specific_symbol_file variable.
2800         * configure.host:  Add docs for port_specific_symbol_file.
2801         Clean up try_cpu block for x86.
2802         * config/linker-map.gnu:  No more "last symbol can't have a
2803         semicolon" kaka.  Add hook for port-specific symbols.
2804         * src/Makefile.am:  Remove trailing whitespace.
2805         (libstdc++-symbol.ver):  Detect the presence of port-specific
2806         symbols, and add them accordingly.
2808         * docs/html/17_intro/porting.texi:  Bring up to date.
2810         * src/Makefile.in, aclocal.m4, configure,
2811         docs/html/17_intro/porting.html:  Regenerated.
2813 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
2815         * scripts/create_testsuite_files:  New file.
2816         * testsuite/Makefile.am (all-local, check-performance):  Use it.
2817         * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests):  Remove.
2818         * testsuite/Makefile.in:  Regenerated.
2820         * testsuite/performance/filebuf_sputc.cc:  Remove the temporary
2821         files at the end.
2822         * testsuite/performance/fstream_seek_write.cc:  Likewise.
2823         * testsuite/performance/ofstream_insert_float.cc:  Likewise.
2824         * testsuite/performance/ofstream_insert_int.cc:  Likewise.
2825         * testsuite/abi_check.cc (main):  Nicer spacing in usage output.
2827 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
2829         * include/bits/stl_list.h: Performance and memory usage
2830         improvements. In particular, the behaviour of the constructor and
2831         destructor as the list header node is no longer dynamically
2832         allocated/de-allocated.
2833         * include/bits/list.tcc: Likewise.
2835 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
2837         * include/std/std_complex.h: Fully qualify standard
2838         functions with std::, thus avoiding Koenig lookup.
2839         * include/std/std_memory.h: Likewise.
2840         * include/std/std_valarray.h: Likewise.
2842 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
2844         * include/bits/stl_tree.h: _Rb_tree_rebalance():  Add local
2845           variable for grandparent and use const
2847 2003-07-05  David Billinghurst <David.Billinghurst@riotinto.com>
2849         * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
2850         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
2851         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
2852         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
2853         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
2854         * testsuite/27_io/objects/char/7.cc: Ditto
2855         * testsuite/27_io/objects/char/9661-1.cc: Ditto
2857 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
2859         * include/std/std_bitset.h: Fully qualify standard
2860         functions with std::, thus avoiding Koenig lookup.
2862         * include/std/std_fstream.h: Change comment to doxygen style.
2864 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
2866         * include/std/std_limits.h:  More CPP->CXX changes.
2867         * scripts/check_survey.in:  Likewise.
2869 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
2871         Move from CPP to CXX.
2872         * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
2873         * testsuite/Makefile.am: Same.
2874         * testsuite/Makefile.in: Regenerate.
2875         * po/Makefile.am: Same.
2876         * po/Makefile.in: Regenerate.
2877         * libsupc++/Makefile.am: Same.
2878         * libsupc++/Makefile.in: Regenerate.
2879         * libmath/Makefile.am: Same.
2880         * libmath/Makefile.in: Regenerate.
2881         * include/Makefile.am: Same.
2882         * include/Makefile.in: Regenerate.
2883         * src/Makefile.am: Same.
2884         * src/Makefile.in: Regenerate.
2885         * acconfig.h: Same.
2886         * configure.host: Same.
2887         * configure.in: Same.
2888         * configure: Regenerate.
2889         * acinclude.m4: Same.
2890         * aclocal.m4: Same.
2891         * src: Change all files in this directory.
2892         * testsuite: Same.
2893         * include: Same, standardize include guards.
2894         * config: Same.
2895         * libsupc++: Same.
2897 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
2899         * testsuite/22_locale/collate/compare/wchar_t/2.cc
2900         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
2901         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
2902         * testsuite/22_locale/collate/hash/wchar_t/2.cc
2903         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
2904         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
2905         * testsuite/22_locale/collate/transform/wchar_t/2.cc
2906         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
2907         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2908         XFAIL on all targets.
2910 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
2912         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
2913         * aclocal.m4: Regenerate.
2914         * configure: Regenerate.
2916 2003-07-04  Jerry Quinn  <jlquinn@optonline.net>
2918         * include/bits/locale_facets.tcc (__int_to_char): Move common case
2919         to the top.
2921 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
2922             Petur Runolfsson  <peturr02@ru.is>
2924         * config/io/basic_file_stdio.cc: Revert.
2926 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
2928         * include/bits/deque.tcc: Fully qualify standard
2929         functions with std::, thus avoiding Koenig lookup.
2930         * include/bits/gslice_array.h: Likewise.
2931         * include/bits/indirect_array.h: Likewise.
2932         * include/bits/list.tcc: Likewise.
2933         * include/bits/mask_array.h: Likewise.
2934         * include/bits/slice_array.h: Likewise.
2936 2003-07-04  Gawain Bolton  <gbolton@free.fr>
2938         * include/bits/stl_tree.h: Performance and memory usage
2939         improvements.
2941 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
2943         * Makefile.am: Replace PWD with PWD_COMMAND.
2944         * Makefile.in: Regenerated.
2945         * docs/html/Makefile: Likewise.
2947 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
2949         * include/bits/valarray_array.h: Fully qualify standard
2950         functions with std::, thus avoiding Koenig lookup.
2951         * include/bits/vector.tcc: Likewise.
2953 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
2955         * include/Makefile.am: Update target_ to host_.
2956         * include/Makefile.in: Regenerate.
2957         * src/Makefile.am: Same.
2958         * src/Makefile.in: Regenerate.
2960         * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
2962 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
2964         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
2965         --enable-libstdcxx-debug-flags.
2966         (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
2967         (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
2968         * aclocal.m4: Regenerate.
2969         * configure: Same.
2970         * docs/html/configopts.html: Update.
2972 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
2974         Revert the fix for libstdc++/11378.
2976 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
2978         PR libstdc++/11378
2979         * include/std/std_fstream.h (xsputn): In the unbuffered case,
2980         provided always_noconv(), issue directly _M_file.xsputn.
2981         * testsuite/performance/filebuf_unbuf_sputn.cc: New.
2983 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
2985         * include/bits/stl_list.h: Fully qualify standard
2986         functions with std::, thus avoiding Koenig lookup.
2987         * include/bits/stl_queue.h: Likewise.
2988         * include/bits/stl_raw_storage_iter.h: Likewise.
2989         * include/bits/stl_tempbuf.h: Likewise.
2990         * include/bits/stl_tree.h: Likewise.
2991         * include/bits/stl_uninitialized.h: Likewise.
2992         * include/bits/stl_vector.h: Likewise.
2993         * include/ext/rope: Change includes order.
2995 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
2997         * configure.host (fpos_include_dir): Fix.
2999 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
3001         * include/bits/stl_heap.h: Fully qualify standard
3002         functions with std::, thus avoiding Koenig lookup.
3003         * include/bits/stl_iterator_base_funcs.h: Likewise.
3005         * include/bits/stl_algo.h: Qualify __iterator_category too.
3006         * include/bits/stl_algobase.h: Likewise.
3007         * include/bits/stl_bvector.h: Likewise.
3009         * include/bits/stl_algo.h: Don't qualify the pair type.
3011 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
3013         * include/Makefile.am (target_headers): Add fpos.h
3014         (bits_headers): Remove.
3015         * include/Makefile.in: Regenerate.
3016         * configure.in: Add FPOS_INC_SRCDIR, substitute it.
3017         * configure: Regenerate.
3018         * configure.host: Add fpos_include_dir.
3019         * config/os/gnu-linux/fpos.h: New.
3020         * config/os/generic/fpos.h: Add.
3021         * include/bits/fpos.h: Remove.
3023         * config/io/c_io_stdio.h: Remove fpos_t typedef.
3025         * include/bits/fstream.tcc: Tweaks.
3026         * include/std/std_fstream.h: Same.
3028         * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
3029         * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
3030         * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
3031         * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
3032         * testsuite/27_io/fpos/1.cc: New.
3034 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
3035             Petur Runolfsson  <peturr02@ru.is>
3037         * include/std/std_streambuf.h: Remove _M_pos.
3038         * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
3039         * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
3040         use fread/fwrite instead of read/write.
3041         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
3042         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
3043         before reading again.
3044         * testsuite/27_io/objects/char/6.cc: Tweak.
3046 2003-07-03  David Edelsohn  <edelsohn@gnu.org>
3048         * testsuite/22_locale/num_put/put/char/7.cc: Guard with
3049         _GLIBCPP_USE_WCHAR_T.
3051 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
3053         * include/bits/basic_string.tcc (_M_replace_aux): Constify
3054         __n1 and __off1.
3056 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
3058         * include/bits/stl_bvector.h: Fully qualify standard
3059         functions with std::, thus avoiding Koenig lookup.
3060         * include/bits/stl_construct.h: Likewise.
3061         * include/bits/stl_deque.h: Likewise.
3063 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
3065         * testsuite/22_locale/num_put/put/char/7.cc: Include
3066         <testsuite_hooks.h>, tweak.
3067         * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
3069 2003-07-01  Phil Edwards  <pme@gcc.gnu.org>
3071         * testsuite/Makefile.am (AM_MAKEFLAGS):  Set to -j1 (affects
3072         check* targets, but not libs/programs).
3073         * testsuite/Makefile.in:  Regenerate.
3075 2003-07-01  Roger Sayle  <roger@eyesopen.com>
3077         * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
3078         (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
3079         * aclocal.m4: Regenerate.
3080         * configure: Regenerate.
3082 2003-07-01  Benjamin Kosnik  <bkoz@redhat.com>
3084         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
3085         * aclocal.m4: Regenerated.
3086         * configure: Regenerated.
3088 2003-07-01  Paolo Carlini  <pcarlini@unitus.it>
3090         PR libstdc++/11389
3091         * include/bits/fstream.tcc (underflow): For encoding() == 0
3092         don't read more than __buflen chars.
3093         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
3094         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
3095         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
3096         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
3098 2003-07-01  Jerry Quinn  <jlquinn@optonline.net>
3100         * 22_locale/num_put/put/char/7.cc: New.
3101         * 22_locale/num_put/put/wchar_t/7.cc: New.
3103 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
3105         * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
3106         * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
3108 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
3110         * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
3111         * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
3112         * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
3113         * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
3114         * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
3115         * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
3116         * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
3117         * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
3118         * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
3119         * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
3120         * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
3121         * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
3122         * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
3123         * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
3124         * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
3125         * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
3126         * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
3127         * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
3128         * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
3129         * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
3130         * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
3131         * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
3132         * data/seekoff-1.tst: Remove.
3133         * data/seekoff-1io.tst: New.
3134         * data/seekoff-1out.tst: New.
3135         * data/seekoff-2.tst: Remove.
3136         * data/seekoff-2io.tst: New.
3137         * data/seekoff-2out.tst: New.
3138         * data/seekoff.txt
3139         * data/seekpos-1.tst: Remove.
3140         * data/seekpos-1io.tst: New.
3141         * data/seekpos-1out.tst: New.
3142         * data/seekpos-2.tst: Remove.
3143         * data/seekpos-2io.tst: New.
3144         * data/seekpos-2out.tst: New.
3145         * data/seekpos.txt: New.
3147 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
3149         * src/locale.cc (__use_cache<numpunct>): Move from here ...
3150         * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
3151         here.
3153 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
3155         * include/bits/stl_algobase.h: Fully qualify standard
3156         functions with std::, thus avoiding Koenig lookup.
3158 2003-06-30  Doug Gregor <dgregor@apple.com>
3160         * include/bits/locale_facets.tcc (money_get::do_get): Avoid
3161         subscripting empty string.
3163 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
3165         * testsuite/Makefile.am (check-am):  Do not override.
3166         (baseline_symbols):  Declare as PHONY, so no need to 'touch' it.
3167         * testsuite/Makefile.in:  Regenerate.
3169 2003-06-30  Doug Gregor <dgregor@apple.com>
3171         * testsuite/24_iterators/insert_iterator.cc (test01, test02):
3172         Don't initialize an insert_iterator with a singular iterator.
3174 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
3176         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
3177         * aclocal.m4: Regenerate.
3178         * configure.in (GLIBCPP_CHECK_PCH): Move, change to
3179         GLIBCPP_ENABLE_PCH, default to yes.
3180         * configure: Regenerate.
3181         * docs/html/configopts.html: Add --enable-pch.
3183 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
3185         * testsuite/lib/libstdc++-v3-dg.exp:  Add comments.
3186         (libstdc++-v3-init):  Also set LD_RUN_PATH.
3188 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
3190         * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
3191         from here to filebuf and stringbuf.
3192         (~basic_streambuf()): Don't set _M_mode.
3193         (basic_streambuf()): Don't set _M_mode.
3194         * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
3195         (~basic_filebuf()): Clean up.
3196         * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
3197         * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
3198         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
3199         * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
3200         * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
3201         * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
3202         * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
3204 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
3206         * include/std/std_fstream.h (_M_underflow): Remove.
3207         (uflow): Remove, inherited from streambuf.
3208         (underflow): Only declare.
3209         * include/bits/fstream.tcc (_M_underflow): Rename to
3210         underflow, to which is equivalent for __bump == false,
3211         simplify.
3212         * include/std/std_sstream.h (_M_underflow): Remove.
3213         (uflow): Remove, inherited from streambuf.
3214         (underflow): Only declare.
3215         * include/bits/sstream.tcc (_M_underflow): Rename to
3216         underflow, to which is equivalent for __bump == false,
3217         simplify.
3219 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
3221         * include/bits/stl_algo.h: Fully qualify standard functions
3222         with std::, thus avoiding Koenig lookup.
3224 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
3226         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
3227         Improve type correctness-wise.
3228         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
3229         Likewise.
3230         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
3231         Likewise.
3232         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
3233         Likewise.
3235 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
3237         * include/std/std_streambuf.h (uflow): According to
3238         27.5.2.4.3,p16, don't check gptr() < egptr().
3240 2003-06-28  Paolo Carlini  <pcarlini@unitus.it>
3242         PR libstdc++/9875
3243         * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
3244         (seekpos): Likewise.
3245         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
3246         New test.
3247         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
3248         New test.
3250 2003-06-27  Benjamin Kosnik  <bkoz@redhat.com>
3252         * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
3253         output name to libstdc++-v3-performance.sum.
3254         * testsuite/Makefile.am (CLEANFILES): Remove .performance.
3255         * testsuite/Makefile.in: Regenerate.
3257 2003-06-27  Matthias Klose  <doko@debian.org>
3259         * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
3260         output of abi-check in libstdc++-v3-abi.sum.
3261         * testsuite/Makefile.in: Regenerate.
3263 2003-06-27  Krister Walfridsson  <cato@df.lth.se>
3265         * config/os/bsd/netbsd/ctype_noninline.h
3266         (_C_ctype_): Declare.
3267         (ctype<char>::classic_table): Return _C_ctype_ + 1.
3268         (ctype<char>::ctype): Use classic_table.
3270 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
3271             Nathan C. Myers  <ncm-nospam@cantrip.org>
3273         PR libstdc++/9178
3274         * include/bits/fstream.tcc (_M_underflow): Properly estimate
3275         the worst-case number of external bytes for a given get area.
3276         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
3278 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
3279             Petur Runolfsson  <peturr02@ru.is>
3281         PR libstdc++/11305
3282         * include/bits/fstream.tcc (overflow): Properly estimate the
3283         worst-case number of external bytes for a given put area
3284         (by using codecvt::max_length()).
3285         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
3286         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
3287         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
3288         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
3290 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
3292         * config/linker-map.gnu: Remove ; after __numpunct_cache.
3294 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
3296         * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
3297         to the imbued locale.
3298         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
3299         _M_getloc.
3300         (num_put::_M_convert_float): Use.
3302 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
3303             Jerry Quinn  <jlquinn@optonline.net>
3305         * config/linker-map.gnu: Add __numpunct_cache.
3306         * config/locale/gnu/numeric_members.cc
3307         (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
3308         all elements for "C" locale.
3309         (numpunct::~numpunct): Delete _M_data.
3310         * config/locale/generic/numeric_members.cc: Same.
3311         * include/bits/basic_ios.tcc
3312         (basic_ios::init): Remove __locale_cache bits.
3313         (basic_ios::_M_cache_locale): Same.
3314         * include/bits/ios_base.h: Same. Tweaks.
3315         * include/bits/locale_classes.h: Tweaks. Reorder classes.
3316         (__use_cache): Make friends with _Impl, locale.
3317         (_Impl::_M_caches): Add.
3318         (_Impl::_M_install_cache): Add.
3319         * include/bits/locale_facets.h (__numpunct_cache): New.
3320         (numpunct): Encapsulate data members in __numpunct_cache member,
3321         _M_data. Adjust virtuals.
3322         (numpunct::numpunct): New ctor for the same.
3323         (__locale_cache_base): Remove.
3324         (__locale_cache): Remove.
3325         * include/bits/locale_facets.tcc (__use_cache): New function,
3326         specializations.
3327         (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
3328         * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
3329         * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
3330         * src/locale-inst.cc: Same. Add __numpunct_cache.
3331         * src/locale.cc: Tweak inlines.
3332         (__use_cache): Define specializations.
3333         * src/localename.cc: Use global bits.
3334         (_Impl::~Impl): Deal with __numpunct_cache destruction.
3335         (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
3336         (_Impl::_M_init_facet): Take into account __numpunct_cache.
3337         * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
3338         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3340 2003-06-26  Nathan C. Myers  <ncm-nospam@cantrip.org>
3341             Paolo Carlini  <pcarlini@unitus.it>
3343         * testsuite/performance/filebuf_copy.cc: New, testing char
3344         by char file copy.
3346 2003-06-26  Paolo Carlini  <pcarlini@unitus.it>
3347             Nathan C. Myers  <ncm-nospam@cantrip.org>
3349         * include/bits/fstream.tcc (_M_underflow): When the actual
3350         end of file is reached, set 'uncommitted' mode to allow a
3351         next write without an intervening seek (see C++98 27.8.1.1,2
3352         and C89 7.9.5.3).
3353         * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
3355 2003-06-25  Nathan C. Myers  <ncm-nospam@cantrip.org>
3357         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
3358         sputc): Move inline, from here...
3359         * include/std/std_streambuf.h: ... to here.
3361         * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
3362         sputbackc, sungetc, sputc): Use __builtin_expect.
3364 2003-06-24  Phil Edwards  <pme@gcc.gnu.org>
3366         * docs/doxygen/mainpage.html:  Use a useful title.
3368 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
3370         * docs/html/documentation.html: Remove assignment info.
3371         * docs/html/17_intro/contribute.html: Edits.
3372         * docs/html/17_intro/libstdc++-assign.tx: Remove.
3374         * docs/html/test.html: Update.
3376         * README: Update.
3378 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
3379             Ulrich Drepper  <drepper@redhat.com>
3381         * testsuite/testsuite_performance.h: Tweak mallinfo.
3383 2003-06-24  Paolo Carlini  <pcarlini@unitus.it>
3384             Nathan C. Myers  <ncm-nospam@cantrip.org>
3386         * include/std/std_fstream.h (_M_filepos): Remove.
3387         (_M_reading, _M_writing): New, encode the various I/O modes:
3388         'read', 'write' and 'uncommitted'.
3389         (sync): If there is something to flush, do it, then go to
3390         'uncommitted' mode.
3391         * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
3392         with three different cases: __off > 0 (upon underflow),
3393         __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
3394         seekoff/pos).
3395         (_M_underflow): Don't call overflow, set _M_reading to true
3396         on success, tweak.
3397         (pbackfail): Set _M_reading to true on pback creation, tweak.
3398         (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
3399         set _M_writing to true on success, tweak.
3400         (seekoff): Simplify, set _M_reading, _M_writing to false, call
3401         _M_set_buffer(-1) ('uncommitted').
3402         (open, close, setbuf): Set _M_reading, _M_writing to false and
3403         call _M_set_buffer(-1), tweak.
3404         (basic_filebuf): Don't set _M_buf_unified.
3405         (_M_destroy_internal_buffer): Don't call setg and setp.
3406         * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
3407         _M_writing and _M_set_buffer(-1).
3408         * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
3409         _M_out_lim, _M_buf_unified): Remove.
3410         (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
3411         (setp): Don't set _M_out_lim.
3412         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
3413         the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
3414         upon open the mode is 'uncommitted' and therefore the put area
3415         pointers are null.
3416         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
3417         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
3418         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
3419         * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
3420         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
3421         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
3422         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3423         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
3424         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
3425         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
3426         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
3427         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
3428         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
3429         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
3430         * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
3431         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
3432         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
3433         * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
3434         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
3435         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
3437         * include/bits/fstream.tcc (showmanyc): Use only the
3438         documented derivation interface to basic_streambuf (gptr(),
3439         setg(), etc.) to work right with user specializations.
3440         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
3441         sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
3442         * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
3443         Likewise.
3444         * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
3445         xsgetn): Likewise.
3447 2003-06-23  Loren J. Rittle  <ljrittle@acm.org>
3449         * configure.host (freebsd*): Set abi_baseline_pair.
3450         * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
3451         (at or near first release) to 3.3.
3452         * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
3453         * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
3454         * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
3456         * include/ext/mt_allocator.h: Portability.
3457         * testsuite/testsuite_performance.h: Likewise.
3459 2003-06-23  Benjamin Kosnik  <bkoz@redhat.com>
3461         * docs/html/17_intro/libstdc++-assign.txt: Update address.
3463         * testsuite/performance/ifstream_getline.cc: Fix.
3465 2003-06-23  Doug Gregor <dgregor@apple.com>
3467         * include/bits/boost_concept_check.h: Don't use _D or _R for type
3468         names.
3470 2003-06-22  Paolo Carlini  <pcarlini@unitus.it>
3471             Nathan C. Myers  <ncm-nospam@cantrip.org>
3473         * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
3474         is now used only for filebuf, when _M_buf_unified is true.
3475         epgtr() plays the role of _M_out_lim but it's only updated
3476         upon overflow, underflow, uflow, seekoff/pos.
3477         * include/bits/sstream.tcc (_M_underflow): New, implements
3478         stringbuf::underflow and uflow.
3479         (seekoff, seekpos): Tweak, use  _M_update_egptr.
3480         * include/std/std_sstream.h (str): Rewrote, deal correctly
3481         with the new logic, in particular, when pptr() > egptr().
3482         (_M_sync): When __testout && !__testin set all the get area
3483         pointers to the current string end.
3484         (_M_update_egptr): New, internal function updating egptr()
3485         to the actual string end.
3486         (_M_underflow): New, declare.
3487         (underflow): Dispatch to _M_underflow(false).
3488         (uflow): Dispatch to _M_underflow(true).
3490         * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
3491         seekpos): Use only the documented derivation interface to
3492         basic_streambuf (gptr(), setg(), etc.) to work right with
3493         user specializations.
3494         * include/std/std_sstream.h (str, _M_sync): Likewise.
3496 2003-06-20  Doug Gregor <dgregor@apple.com>
3498         * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
3499         * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
3500         dereference end iterator.
3501         * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
3502         * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
3503         index equal to the length of a string.
3504         * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
3505         * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
3506         * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
3507         * testsuite/22_locale/ctype/widen/char/1.cc: Same.
3508         * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
3509         * testsuite/23_containers/list_modifiers.cc: Don't dereference
3510         singular reverse iterator.
3511         * testsuite/23_containers/vector_bool.cc: Don't increment singular
3512         iterator.
3513         * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
3515 2003-06-20  Doug Gregor <dgregor@apple.com>
3517         * include/bits/basic_string.h (basic_string::replace): Dispatch
3518         _InputIterator version based on _Is_integer.
3519         * include/bits/basic_string.tcc (basic_string::replace):
3520         Renamed replace(iterator, iterator, size_type, _CharT) to
3521         _M_replace_aux.
3522         * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
3523         Test basic_string::assign(_InputIterator, _InputIterator),
3524         which calls basic_string::replace(iterator, iterator,
3525         _Input_iterator, _InputIterator).
3527 2003-06-20  Benjamin Kosnik  <bkoz@redhat.com>
3529         * testsuite/testsuite_performance.h (resource_counter): Don't use
3530         mallinfo at the moment.
3532 2003-06-20  Matthias Klose  <doko@debian.org>
3534         * configure.host: Set try_cpu to target_cpu for existing
3535         baseline files.
3537 2003-06-19  Andreas Jaeger  <aj@suse.de>
3539         * testsuite/Makefile.am (extract_symvers): Revert accidental
3540         change.
3541         * testsuite/Makefile.in: Regenerate.
3543         * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
3544         * configure: Regenerated.
3546 2003-06-19  Paolo Carlini  <pcarlini@unitus.it>
3548         * include/std/std_sstream.h (_M_sync): Make non virtual.
3550 2003-06-18  Benjamin Kosnik  <bkoz@redhat.com>
3552         * testsuite/testsuite_performance.h (time_counter): New.
3553         (resource_counter): New.
3554         (report_performance): New.
3555         (start_counters): New.
3556         (stop_counters): New.
3557         (clear_counters): New.
3558         * testsuite/performance/allocator.cc: Instrument.
3559         * testsuite/performance/cout_insert_int.cc: Same.
3560         * testsuite/performance/complex_norm.cc: Same.
3561         * testsuite/performance/filebuf_sputc.cc: New.
3562         * testsuite/performance/fstream_seek_write.cc: Same.
3563         * testsuite/performance/ifstream_getline.cc: Same.
3564         * testsuite/performance/map_create_fill.cc: Same.
3565         * testsuite/performance/ofstream_insert_float.cc: Same.
3566         * testsuite/performance/ofstream_insert_int.cc: Same.
3567         * testsuite/performance/string_append.cc: Convert.
3568         * scripts/check_performance: New.
3569         * testsuite/Makefile.am (check-performance): New.
3570         (CLEANFILES): Add.
3572 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
3573             Benjamin Kosnik  <bkoz@redhat.com>
3575         * include/std/std_sstream.h (setbuf): Check __n >= 0.
3576         * include/bits/fstream.tcc (setbuf): Tweak.
3578 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
3580         * include/bits/sstream.tcc (seekoff): We can't seek beyond
3581         _M_out_lim, therefore _M_move_out_cur boils down to simply
3582         updating _M_out_cur.
3583         (seekpos): Likewise, clean up.
3585 2003-06-18  Nathan C. Myers  <ncm-nospam@cantrip.org>
3586             Paolo Carlini  <pcarlini@unitus.it>
3588         * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
3589         simply equivalent to the unbuffered case (0, 0) as far as
3590         _M_buf_size is concerned.
3592 2003-06-18  Andreas Jaeger  <aj@suse.de>
3594         * testsuite/Makefile.am (new-abi-baseline): Create baseline
3595         directory.
3596         (baseline_file): Use baseline_dir.
3597         (baseline_dir): New.
3598         (mkinstalldirs): New.
3600         * acinclude.m4: Rename baseline_file to baseline_dir, strip
3601         filename from baseline_dir.
3603         * testsuite/Makefile.in: Regenerated.
3604         * Makefile.in: Regenerated.
3605         * aclocal.m4: Regenerated.
3606         * configure: Regenerated.
3608 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
3610         * configure.in: Missed check_survey bit.
3611         * configure: Regenerated.
3613 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
3615         * scripts: New.
3616         * config/abi/extract_symvers: Move to...
3617         * scripts/extract_symvers: ...here.
3618         * mkcheck.in: Move to..
3619         * scripts/check_survey.in: ...here.
3620         * testsuite_flags.in: Move to..
3621         * scripts/testsuite_flags.in: ...here.
3622         * configure.in: Change check and testsuite_flags locations.
3623         * configure: Regenerate.
3624         * testsuite/Makefile.am (current_symbols.txt): Change location.
3625         * testsuite/Makefile.in: Regenerate.
3626         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
3627         location of testsuite_flags.
3628         * Makefile.am (check-script): Move..
3629         (check-script-install): Move...
3630         * testsuite/Makefile.am: ... here.
3631         * testsuite/Makefile.in: Regenerate.
3632         * Makefile.in: Regenerate.
3634 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
3636         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
3638 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
3640         * Makefile.am (check-abi): Move...
3641         (new-abi-baseline): Move...
3642         * testsuite/Makefile.am: ...here.
3643         (new-abi-baseline): Conditionalize.
3644         (check-abi): Conditionalize.
3645         (check-abi-verbose): New.
3646         * Makefile.in: Regenerate.
3647         * testsuite/Makefile.in: Regenerate.
3648         * configure.in: Consolidate testsuite configure bits.
3649         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
3650         * configure: Regenerate.
3651         * aclocal.m4: Regenerate.
3652         * testsuite/abi_check.cc: Add --check-verbose.
3653         Only output detailed information if --check-verbose.
3655 2003-06-16  Andreas Jaeger  <aj@suse.de>
3657         * testsuite/abi_check.cc: Create summary report.
3659 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
3661         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
3662         for systems with BUFSIZ != 8192.
3663         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3664         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
3665         Minor tweaks.
3667 2003-06-16  Andreas Jaeger  <aj@suse.de>
3669         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
3670         check-abi multilib aware.
3671         * aclocal.m4: Regenerate.
3672         * configure: Regenerate.
3674 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
3675             Andreas Jaeger  <aj@suse.de>
3677         * configure.host: Set x86_64 abi_baseline pair correctly.
3679 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
3681         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
3682         fix for missing seeks between gets and puts into...
3683         * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
3684         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
3685         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
3686         * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
3687         * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
3688         * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
3690 2003-06-15  Richard Henderson  <rth@redhat.com>
3692         * config/linker-map.gnu: Export virtual function thunks for
3693         64-bit systems too.
3695 2003-06-13  Benjamin Kosnik  <bkoz@redhat.com>
3697         * config/abi/i686-pc-linux-gnu: To..
3698         * config/abi/i486-linux-gnu: ...this.
3699         * config/abi/alphaev67-unknown-linux-gnu: To..
3700         * config/abi/alpha-linux-gnu: ...this.
3701         * config/abi/ia64-unknown-linux-gnu: To...
3702         * config/abi/ia64-linux-gnu: ...this.
3703         * config/abi/x86_64-unknown-linux-gnu: To...
3704         * config/abi/x86_64-linux-gnu: ...this.
3705         * config/abi/i386-unknown-freebsd4: To...
3706         * config/abi/i386-freebsd4: ...this.
3707         * config/linker-map.gnu: Cleanups, move libsupc++ bits into
3708         CXXABI.
3709         * configure.host: abi_baseline_triplet to abi_baseline_pair.
3710         Simplify cpu bits so that abi_baseline_pair can use the same
3711         cpu configuration.
3712         * acinclude.m4: Same.
3713         * aclocal.m4: Regenerate.
3714         * configure.in: Can't get enable_abi_check to yes unless native.
3715         * configure: Regenerate.
3717 2003-06-13  Paolo Carlini  <pcarlini@unitus.it>
3719         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
3720         fix for missing seeks between gets and puts into...
3721         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
3722         * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
3723         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
3724         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
3725         * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
3726         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
3727         for missing seeks between gets and puts.
3728         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
3729         * testsuite/data/seekoff-1.tst: New.
3730         * testsuite/data/seekoff-2.tst: New.
3731         * testsuite/data/seekpos-1.tst: New.
3732         * testsuite/data/seekpos-2.tst: New.
3734 2003-06-13  Nathan C. Myers <ncm-nospam@cantrip.org>
3736         Avoid multi-processor bus contention on increment/decrement-and-
3737         test of the reference count in the empty-string object, by comparing
3738         addresses first, and never touching the reference count of the empty-
3739         string object.
3740         * include/bits/basic_string.h:
3741         (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
3742         members.
3743         (_Rep::_S_empty_rep()): New accessor.
3744         (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
3745         a base class _Rep_base.
3746         (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
3747         (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
3748         since no longer must increment its refcount.
3749         * include/bits/basic_string.tcc:
3750         (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
3751         return immediately.  The former might be unnecessary.  The latter
3752         prevents begin() and end() from cloning it unnecessarily.
3753         (_S_construct(_InIterator, _InIterator, const _Alloc&,
3754         input_iterator_tag), _S_construct(_InIterator, _InIterator,
3755         const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
3756         const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
3757         (_M_mutate): Check for the empty string and treat it as shared.
3758         This is necessary here because _M_mutate is sometimes called with
3759         all-zero arguments; in all other uses of _M_is_shared, the test comes
3760         out right anyhow.
3762 2003-06-12  Benjamin Kosnik  <bkoz@redhat.com>
3764         * src/allocator-inst.cc: Explicitly instantiate.
3765         * include/ext/pool_allocator.h: Inhibit implicit instantiations.
3766         Tweaks.
3767         * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
3769 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
3771         * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
3772         * aclocal.m4: Regenerate.
3773         * Makefile.am (SUBDIRS): Remove libio.
3774         * Makefile.in: Regenerate.
3775         * configure.in: Same.
3776         * configure: Regenerate.
3777         * config/io/basic_file_libio.cc: Remove.
3778         * config/io/basic_file_libio.h: Remove.
3779         * config/io/c_io_libio_codecvt.c: Remove.
3780         * config/io/c_io_libio.h: Remove.
3781         * libio/*: Remove.
3782         * src/Makefile.am: Same.
3783         * src/Makefile.in: Regenerate.
3784         * docs/html/configopts.html: Edits.
3785         * docs/html/explanations.html: Edits.
3787 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
3789         * include/bits/stl_alloc.h (__debug_alloc): Move out.
3790         (__malloc_alloc): Same.
3791         (__pool_alloc): Same.
3792         (__new_alloc): Same.
3793         Rename to..
3794         * include/bits/allocator.h: ...this.
3795         * include/bits/stl_deque.h: Modify comment.
3796         * include/bits/stl_tree.h: Modify include.
3797         * include/std/std_memory.h: Same.
3798         * include/ext/rope: Same.
3799         * include/ext/slist: Same.
3800         * include/std/std_vector.h: Same.
3801         * include/std/std_stack.h: Same.
3802         * include/std/std_queue.h: Same.
3803         * include/std/std_list.h: Same.
3804         * include/std/std_deque.h: Same.
3805         * include/backward/alloc.h: Same.
3806         * include/ext/debug_allocator.h: New.
3807         * include/ext/malloc_allocator.h: New.
3808         * include/ext/pool_allocator.h: New.
3809         * include/ext/new_allocator.h: New.
3810         * include/bits/pthread_allocimpl.h: Remove.
3811         * include/bits/stl_pthread_alloc.h: Remove.
3812         * include/Makefile.am (ext_headers): Add.
3813         * include/Makefile.in: Regenerate.
3814         * src/stl-inst.cc: Use __gnu_cxx namespace.
3815         * src/stl-inst.cc: Move to...
3816         * src/allocator-inst.cc: Here.
3817         * src/Makefile.am (sources): Update.
3818         * src/Makefile.in: Regenerate.
3819         * config/linker-map.gnu: Remove __pool_alloc bits.
3820         * testsuite/ext/headers.cc: Add.
3821         * testsuite/ext/allocators.cc: Fixup.
3823 2003-06-11  Stefan Olsson  <stefan@snon.net>
3824             Ola Rönnerup  <fnolis@home.se>
3826         * include/Makefile.am (ext_headers): Add.
3827         * include/Makefile.in: Regenerate.
3828         * include/ext/mt_allocator.h: New file.
3830 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
3832         * include/bits/fstream.tcc (close): Clean up a bit.
3834         * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
3836         * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
3837         - the saved _M_in_cur, that is - cannot be null.
3838         (sync): Constify a variable.
3840         * include/std/std_streambuf.h: Tweak a comment.
3841         (in_avail): Constify a variable.
3843 2003-06-10  Phil Edwards  <pme@gcc.gnu.org>
3845         * docs/html/17_intro/BUGS:  Update from 2.90.8 snapshot.
3846         * docs/html/17_intro/CHECKLIST:  Bring up to date with respect to
3847         correctness of container::iterator typedefs.  Fix whitespace.
3848         * docs/html/20_util/howto.html, docs/html/ext/howto.html:  Add links
3849         to allocator docs.
3850         * docs/html/documentation.html:  Regenerate.
3852         * include/bits/basic_string.h, include/bits/basic_string.tcc,
3853         include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
3854         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3855         include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
3856         include/bits/stl_list.h, include/bits/stl_uninitialized.h,
3857         include/bits/stl_vector.h, include/bits/vector.tcc,
3858         include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
3859         Change _Iter names to _Iterator, and __pos to __position.
3861         * include/bits/stl_relops.h, include/bits/stl_numeric.h,
3862         include/bits/stl_multiset.h, include/bits/stl_set.h:
3863         Remove emacs markers.
3865         * include/bits/stl_threads.h (_STL_auto_lock):  Add __unused__.
3867 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
3869         * include/bits/fstream.tcc (overflow): According to
3870         27.5.2.4.5, overflow() returns not_eof(eof()).
3871         * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
3872         * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
3874 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
3876         * include/bits/fstream.tcc (_M_underflow): Check overflow return
3877         value; tweak slightly.
3879 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
3881         * include/bits/fstream.tcc (_M_underflow): Do not special
3882         case the unbuffered case, which really means simply a one char
3883         get area.
3884         (basic_filebuf): Initialize _M_buf_size.
3885         (setbuf): Unbuffered means _M_buf_size == 1, since only
3886         _M_buf_size - 1 == 0 chars are going to be used for the
3887         put area and 1 for the get area.
3888         * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
3889         (~basic_streambuf): Tweak.
3890         (basic_streambuf): Do not initialize _M_buf_size.
3891         * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
3892         (~basic_filebuf): Tweak.
3893         (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
3894         unbuffered situation (i.e., put area pointers NULL).
3895         * include/bits/streambuf.tcc (sbumpc): Clean up.
3896         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
3897         * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
3898         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
3899         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
3900         * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
3901         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
3902         * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
3904 2003-06-09  Phil Edwards  <pme@gcc.gnu.org>
3906         * acinclude.m4:  Move all AM_CONDITIONAL calls out.
3907         (GLIBCPP_CONFIGURE):  Set defaults for variables used in AM_CONDITIONAL
3908         statements.
3909         * configure.in:  Centralize AM_CONDITIONALs so that they are always
3910         run.  Make use of GLIBCPP_IS_CROSS_COMPILING.
3911         * aclocal.m4, configure:  Regenerated.
3913 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
3915         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 235.
3917 2003-06-06  Nathan Myers  <ncm-nospam@cantrip.org>
3919         * include/bits/stl_iterator.h
3920         (reverse_iterator::reverse_iterator()): Apply DR235: default
3921         constructor default-initializes data member.  Instantiated on a
3922         pointer type, the member has to end up equal to zero.
3924 2003-06-06  Benjamin Kosnik  <bkoz@redhat.com>
3926         * include/bits/stl_alloc.h: Cleanups.
3927         * include/ext/functional: Same.
3928         * include/ext/hash_map: Same.
3929         * include/ext/hash_set: Same.
3930         * include/ext/iterator: Same.
3931         * include/ext/memory: Same.
3932         * include/ext/numeric: Same.
3933         * include/ext/rb_tree: Same.
3934         * include/ext/ropeimpl.h: Same.
3935         * include/ext/slist: Same.
3936         * include/ext/stdio_filebuf.h: Same.
3937         * include/ext/stdio_sync_filebuf.h: Same.
3938         * include/ext/stl_rope.h: Move to...
3939         * include/ext/rope: ...here.
3940         * include/ext/stl_hash_fun.h: Move to...
3941         * include/ext/hash_fun.h: ...here.
3942         * include/ext/stl_hashtable.h: Move to...
3943         * include/ext/hashtable.h: ...here.
3944         * include/backward/hashtable.h: Reflect new names.
3945         * include/Makefile.am: Same.
3946         * include/Makefile.in: Regenerated.
3948 2003-06-05  Benjamin Kosnik  <bkoz@redhat.com>
3950         PR libstdc++/9024
3951         * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
3952         * include/bits/stl_algobase.h: Tweak.
3953         * include/std/std_fstream.h: Move _M_buf_size to...
3954         * include/std/std_streambuf.h: ...here. Modify.
3955         * include/bits/streambuf.tcc: Same.
3956         * testsuite/testsuite_hooks.h: Tweak.
3957         * testsuite/testsuite_io.h (constraint_filebuf): New.
3958         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
3959         * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
3960         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
3961         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
3962         * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
3963         * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
3964         * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
3965         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
3966         * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
3967         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
3968         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
3969         * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
3970         * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
3971         * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
3972         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
3973         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
3974         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
3975         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
3976         * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
3977         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
3978         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
3979         * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
3980         * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
3981         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
3982         * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
3983         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
3984         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
3985         * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
3986         * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
3987         * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
3988         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
3989         * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
3990         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
3991         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
3992         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
3993         * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
3994         * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
3995         * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
3996         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
3997         * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
3998         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
3999         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
4000         * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
4001         * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
4002         * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
4003         * testsuite/data/sgetc.txt: New.
4004         * testsuite/data/sgetn.txt: New.
4006 2003-06-05  Paolo Carlini  <pcarlini@unitus.it>
4008         PR libstdc++/11095
4009         * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
4010         Deal with width() smaller than zero.
4011         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
4012         operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
4013         _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
4014         char*), operator<<(basic_ostream<char, _Traits>&, const char*),
4015         operator<<(basic_ostream, const basic_string&)): Likewise.
4017         * testsuite/27_io/basic_istream/extractors_character/char/
4018         (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
4019         * testsuite/27_io/basic_ostream/inserters_character/char/
4020         (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
4021         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
4022         (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
4024 2003-06-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4026         * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
4027         .gch compilation works.
4028         * aclocal.m4, configure: Regenerate.
4029         * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
4030         initialize PCHFLAGS.
4032 2003-06-04  Paolo Carlini  <pcarlini@unitus.it>
4034         * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
4035         erase(iterator), erase(iterator, iterator), c_str,
4036         compare(const basic_string&)): Constify various variables.
4037         * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
4038         const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
4039         _S_create, resize, _M_replace, _M_replace_safe,
4040         append(const basic_string&), append(const basic_string&, size_type,
4041         size_type), append(const _CharT*, size_type), append(size_type,
4042         _CharT), operator+(const _CharT*, const basic_string&),
4043         operator+(_CharT, const basic_string&), replace(iterator, iterator,
4044         size_type, _CharT), find(const _CharT*, size_type, size_type),
4045         find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
4046         rfind(_CharT, size_type), compare(size_type, size_type,
4047         const basic_string&), compare(size_type, size_type,
4048         const basic_string&, size_type, size_type), compare(const _CharT*),
4049         compare(size_type, size_type, const _CharT*), compare(size_type,
4050         size_type, const _CharT*, size_type)): Likewise.
4052 2003-06-03  Benjamin Kosnik  <bkoz@redhat.com>
4054         * include/bits/fstream.tcc (pbackfail): Make a rarely taken
4055         'if' branch less obscure.
4057 2003-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
4059         PR libstdc++/9815
4060         * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
4061         asm case to asm.
4062         * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
4063         (__atomic_add): likewise.
4065 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
4067         * include/bits/sstream.tcc (pbackfail): Minor clean up and
4068         reformatting, consistent with basic_filebuf::pbackfail.
4070 2003-06-02  Richard Kreckel  <Richard.Kreckel@GiNaC.DE>
4072         PR libstdc++/11062
4073         * config/cpu/mips/atomicity.h:  Change __attribute__ ((unused)) to
4074         __attribute__ ((__unused__)).
4075         * config/os/aix/atomicity.h:  Likewise.
4077 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
4079         PR libstdc++/9761
4080         * include/bits/fstream.tcc (pbackfail): If the pback buffer
4081         is already active don't try to store in it a second char.
4082         * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
4084         * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
4086 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
4088         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
4089         line spacing.
4091 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
4093         * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
4094         instead of unnecessarily taking the address of _M_pback.
4095         (xsgetn): Simplify slightly for a single char pback buffer.
4097 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
4099         * include/bits/sstream.tcc (seekoff): Remove four unnecessary
4100         variables and two 'if', clean up.
4102 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
4104         * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
4105         not _M_out_end, since the former actually points to the string
4106         end (vs buffer end).
4107         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
4109 2003-05-30  Phil Edwards  <pme@gcc.gnu.org>
4111         * docs/doxygen/filter:  New file.
4112         * docs/doxygen/filter.sed:  New file.
4113         * docs/doxygen/run_doxygen:  Add g flag to sed substitutions.  Duh.
4114         * docs/doxygen/user.cfg.in (INPUT_FILTER):  Point to new filter.
4115         * docs/html/documentation.html:  Fix links to doxygen pages.
4117 2003-05-30  Paolo Carlini  <pcarlini@unitus.it>
4119         * include/bits/fstream.tcc (_M_convert_to_external): Don't
4120         check for __ilen > 0.
4122 2003-05-29  Sylvain Pion  <Sylvain.Pion@mpi-sb.mpg.de>
4124         PR libstdc++/10783
4125         * include/bits/stl_iterator.h (class __normal_iterator):
4126         Don't inherit from iterator, add missing typedefs.
4128 2003-05-29  Paolo Carlini <pcarlini@unitus.it>
4130         * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
4131         * testsuite/24_iterators/reverse_iterator/1.cc: New.
4132         * testsuite/24_iterators/reverse_iterator/2.cc: New.
4133         * testsuite/24_iterators/reverse_iterator/3.cc: New, from
4134         PR libstdc++/10783.
4136 2003-05-27  Steve Ellcey  <sje@cup.hp.com>
4138         * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
4139         on IA64 HP-UX.
4140         * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
4141         _LIBUNWIND_STD_ABI is set.
4143 2003-05-26  Brendan Kehoe  <brendan@zen.org>
4145         * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
4146         make sure the number of digits required after the decimal-point
4147         (if any) is exactly the value returned by frac_digits().
4148         * testsuite/22_locale/money_get/get/char/9.cc: New.
4149         * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
4151 2003-05-27  Jonathan Wakely  <redi@gcc.gnu.org>
4153         * include/std/std_istream.h, include/std/std_ostream.h: Typo in
4154         comment.
4156 2003-05-26  Benjamin Kosnik  <bkoz@redhat.com>
4158         PR libstdc++/9339
4159         * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
4160         (_M_pback): No array necessary.
4161         * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
4162         unbuffered case, coalesec into ...
4163         (basic_filebuf::overflow): ...this.
4164         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
4165         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
4167 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
4169         * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
4170         libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
4171         libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
4172         libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
4173         libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
4174         libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
4175         libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
4176         libsupc++/eh_unex_handler.cc, libsupc++/exception,
4177         libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
4178         libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
4179         libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
4180         libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
4181         Replace "GNU CC" with "GCC".
4183         * include/backward/new.h: Replace "GNU CC" with "GCC".
4185 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
4187         PR libstdc++/3066.
4188         * configure.in: Switch target to host, don't assume newlib.
4189         (target_alias): Remove.
4190         * configure: Regenerate.
4191         * acinclude.m4: Same.
4192         * aclocal.m4: Regenerate.
4193         * configure.target: Same. Rename to...
4194         * configure.host: This.
4196 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
4198         * include/std/std_fstream.h (_S_pback_size): Remove definition.
4199         (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
4200         pback buffer.
4201         * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
4202         * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
4203         of _S_pback_size for systems with no COMDAT or weak support.
4204         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
4205         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
4206         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
4207         * testsuite/27_io/basic_fstream/3.cc: Likewise.
4208         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
4209         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
4210         * testsuite/27_io/basic_ofstream/3.cc: Likewise.
4211         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
4212         * testsuite/27_io/basic_streambuf/3.cc: Likewise.
4214 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
4216         * include/bits/fstream.tcc (_M_underflow): Simplify:
4217         !__testout implies _M_filepos == _M_in_end, therefore
4218         the first _M_file.seekoff call is never issued.
4220 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
4222         * configure.in: Sort cross table.
4223         * configure: Regenerate.
4225 2003-05-22  Brad Spencer  <spencer@infointeractive.com>
4227         PR libstdc++/10106
4228         * configure.in: Add Solaris cross bits.
4230 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
4232         * libstdc++-v3/config/os/mingw32/os_defines.h
4233         (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
4234         (NOMINMAX): Define.  Update copyright year.
4236 2003-05-21  Paolo Carlini  <pcarlini@unitus.it>
4238         * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
4240 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
4242         * docs/html/faq/index.html: Fix typo.
4243         * docs/html/faq/index.txt: Regenerate.
4245 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
4247         * docs/html/test.html: Fix markup.
4249 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
4251         * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
4252         zero.
4253         Update copyright year.
4255 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
4257         * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
4259 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
4261         * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
4262         further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
4264 2003-05-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4266         * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
4267         Cast via void* to avoid -Wcast-align warnings.
4268         (__default_alloc_template::_S_refill): Likewise.
4270 2003-05-20  Benjamin Kosnik  <bkoz@redhat.com>
4272         * testsuite/README: Move to...
4273         * docs/html/test.html: ...here. Add documentation.
4274         * docs/html/install.html: Move testing bits out..
4275         * docs/html/documentation.html: Add separate testing link.
4276         * testsuite/performance: Add.
4277         * testsuite/performance/allocator.cc: New.
4278         * testsuite/performance/complex_norm.cc: New.
4279         * testsuite/performance/cout_insert_int.cc: New.
4280         * testsuite/performance/fstream_seek_write.cc: New.
4281         * testsuite/performance/ifstream_getline.cc: New.
4282         * testsuite/performance/map_create_fill.cc: New.
4283         * testsuite/performance/ofstream_insert_float.cc: New.
4284         * testsuite/performance/ofstream_insert_int.cc: New.
4285         * testsuite/performance/string_append.cc: New.
4286         * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
4287         performance tests.
4289 2003-05-20  Gabriel Dos Reis <gdr@integrable-solutions.net>
4291         PR libstdc++/10689
4292         * include/std/std_complex.h (pow): Tidy.
4294 2003-05-19  Paolo Carlini  <pcarlini@unitus.it>
4296         * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
4297         that upon filebuf::close() 27.8.1.1,3 is enforced.
4299 2003-05-15  Loren J. Rittle  <ljrittle@acm.org>
4301         * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
4303 2003-05-15  Paolo Carlini  <pcarlini@unitus.it>
4304             Nathan Myers  <ncm@cantrip.org>
4306         * include/bits/fstream.tcc (_M_overflow): Rewrote to call
4307         _M_convert_to_external only once (_M_buf_size is now the size of
4308         the put area + 1 for the overflow char of a full area); call
4309         _M_set_buffer instead of _M_set_indeterminate.
4310         (setbuf): Don't accept a buffer smaller than 2 chars.
4311         (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
4312         instead of _M_set_determinate.
4313         (open): Call _M_set_buffer, instead of _M_set_indeterminate.
4314         (seekoff): Likewise.
4315         * include/ext/stdio_filebuf.h (stdio_filebuf(int,
4316         std::ios_base::openmode, bool, size_t),
4317         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
4318         Likewise.
4319         * include/std/std_fstream.h (_M_set_indeterminate): Remove.
4320         (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
4321         _M_buf_size - 1.
4322         * include/std/std_streambuf.h: Tweak _M_out_lim comment.
4323         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
4324         into account that, for _M_buf_size == BUFSIZ == 8192, the size of
4325         the put area is now BUFSIZ - 1.
4326         * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
4327         that now the smallest _M_buf_size is 2 (still fails, for the same
4328         reason, with 3.2.3)
4330 2003-05-14  Loren J. Rittle  <ljrittle@acm.org>
4332         * testsuite/thread/pthread4.cc: Tweak test.
4334 2003-05-13  Benjamin Kosnik  <bkoz@redhat.com>
4336         * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
4337         excess errors dg marker, use dg-errors instead.
4338         * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
4339         * testsuite/20_util/auto_ptr_neg.cc: Same.
4341 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
4343         * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
4344         cached member.
4345         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
4346         Initialize _M_codecvt.
4347         (basic_filebuf::imbue): Same.
4348         (basic_filebuf::showmanyc): Use it.
4349         (basic_filebuf::underflow): Use it.
4350         (basic_filebuf::_M_convert_to_external): Use it.
4351         (basic_filebuf::seekoff): Use it.
4352         (basic_filebuf::imbue): Use it, tweaks.
4353         * include/bits/localefwd.h (__check_facet): New.
4354         * include/bits/locale_classes.h: Tweaks.
4355         * include/bits/locale_facets.tcc: Tweaks.
4356         * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
4357         _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
4358         _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
4359         * include/bits/basic_ios.tcc: Same.
4360         * include/bits/istream.tcc: Same.
4361         * include/bits/ostream.tcc: Same.
4362         * include/std/std_streambuf.h: Same.
4363         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
4364         * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
4365         * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
4366         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
4367         * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
4368         * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
4370 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
4372         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
4373         unnecessary includes and unused string literals.
4374         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
4375         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
4376         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
4377         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
4379 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
4381         * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
4383 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
4385         * include/std/std_fstream.h (_M_convert_to_external): Change
4386         to return bool, take two less streamsize parameters.
4387         * include/bits/fstream.tcc (_M_convert_to_external): Tweak
4388         consistently definition.
4389         (_M_overflow): Adjust call points.
4391 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
4393         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
4395 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
4397         * testsuite/Makefile.am:  Properly quote /both/ LD_RUN_PATHs.
4398         * testsuite/Makefile.in:  Regenerate.
4400 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
4402         * testsuite/Makefile.am:  Properly quote LD_RUN_PATH.
4403         * testsuite/Makefile.in:  Regenerate.
4405 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
4407         PR libstdc++/3181
4408         * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
4409         (acos): Handle integer argument.
4410         (asin): Likewise.
4411         (atan): Likewise.
4412         (atan2): Likewise.
4413         (ceil): Likewise.
4414         (cos): Likewise.
4415         (cosh): Likewise.
4416         (exp): Likewise.
4417         (fabs): Likewise.
4418         (floor): Likewise.
4419         (frexp): Likewise.
4420         (ldexp): Likewise.
4421         (log): Likewise.
4422         (log10): Likewise.
4423         (sin): Likewise.
4424         (sinh): Likewise.
4425         (sqrt): Likewise.
4426         (tan): Likewise.
4427         (tanh): Likewise.
4428         * include/bits/cpp_type_traits.h (__are_same<>): New traits.
4429         (__enable_if): Likewise.
4430         * testsuite/26_numerics/cmath/overloads.C: New test.
4432 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
4434         PR libstdc++/9027
4435         PR libstdc++/9520
4436         PR libstdc++/10096
4437         * include/bits/fstream.tcc (basic_file::_M_underflow):  Add generic
4438         implementation, based on old wchar_t specialization, add support
4439         for codecvt::in() return value of codecvt_base::noconv, remove
4440         _M_file.sys_ungetc() call.
4441         * include/std/std_fstream.h (basic_file::underflow,
4442         basic_file::uflow, basic_file::_M_underflow):  Remove
4443         specialization declarations, call _M_underflow from generic versions
4444         of underflow and uflow.
4445         * src/fstream.cc (basic_file::underflow, basic_file::uflow,
4446         basic_file::_M_underflow):  Remove specializations.
4447         * src/Makefile.am (sources):  Remove fstream.cc.
4448         * src/Makefile.in:  Regenerated.
4449         * testsuite/27_io/basic_filebuf/underflow/10096.cc:  New test.
4450         * testsuite/27_io/basic_filebuf/underflow/char/1.cc:  New test.
4451         * testsuite/27_io/basic_filebuf/underflow/char/9027.cc:  New test.
4452         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc:  New test.
4454 2003-05-10  Benjamin Kosnik  <bkoz@redhat.com>
4456         * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
4457         buffer.
4458         * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
4459         unbuffered bits.
4460         (__basic_file::xsputn): Same.
4461         (__basic_file::seekoff): Same.
4462         (__basic_file::seekpos): Same.
4463         (__basic_file::showmanyc): Same.
4464         * config/io/basic_file_stdio.cc: Same.
4465         * include/std/std_fstream.h: Same.
4466         * include/bits/fstream.tcc: Same.
4467         * src/fstream.cc: Same.
4468         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
4470 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
4472         PR libstdc++/9520
4473         PR libstdc++/9661
4474         PR libstdc++/9662
4475         * include/ext/stdio_sync_filebuf.h:  New file.
4476         (basic_stdiobuf):  New.
4477         * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
4478         * include/Makefile.in: Regenerate.
4479         * include/bits/ios_base.h (Init::_S_create_buffers,
4480         Init::_S_destroy_buffers):  Remove declarations.
4481         * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
4482         buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync):  Define.
4483         * src/ios.cc (Init::_S_create_buffers,
4484         Init::_S_destroy_buffers):  Remove.
4485         (Init::Init):  Create and use syncronized buffers.
4486         (ios_base::sync_with_stdio):  Destroy syncronized buffers,
4487         create and install unsyncronized buffers.
4488         * testsuite/27_io/objects/char/10.cc:  New test.
4489         * testsuite/27_io/objects/char/9.cc:  New test.
4490         * testsuite/27_io/objects/char/9661-1.cc:  New test.
4491         * testsuite/27_io/objects/char/9661-2_xin.cc:  New test.
4492         * testsuite/27_io/objects/char/9661-2_xin.in:  New.
4493         * testsuite/27_io/objects/wchar_t/1.cc:  New test.
4494         * testsuite/27_io/objects/wchar_t/10.cc:  New test.
4495         * testsuite/27_io/objects/wchar_t/2.cc:  New test.
4496         * testsuite/27_io/objects/wchar_t/2523-1_xin.cc:  New test.
4497         * testsuite/27_io/objects/wchar_t/2523-1_xin.in:  New.
4498         * testsuite/27_io/objects/wchar_t/2523-2_xin.cc:  New test.
4499         * testsuite/27_io/objects/wchar_t/2523-2_xin.in:  New.
4500         * testsuite/27_io/objects/wchar_t/3045.cc:  New test.
4501         * testsuite/27_io/objects/wchar_t/3647.cc:  New test.
4502         * testsuite/27_io/objects/wchar_t/3_xin.cc:  New test.
4503         * testsuite/27_io/objects/wchar_t/3_xin.in:  New.
4504         * testsuite/27_io/objects/wchar_t/4_xin.cc:  New test.
4505         * testsuite/27_io/objects/wchar_t/4_xin.in:  New.
4506         * testsuite/27_io/objects/wchar_t/5.cc:  New test.
4507         * testsuite/27_io/objects/wchar_t/5268.cc:  New test.
4508         * testsuite/27_io/objects/wchar_t/5280_xin.cc:  New test.
4509         * testsuite/27_io/objects/wchar_t/5280_xin.in:  New.
4510         * testsuite/27_io/objects/wchar_t/6.cc:  New test.
4511         * testsuite/27_io/objects/wchar_t/6548_xin.cc:  New test.
4512         * testsuite/27_io/objects/wchar_t/6548_xin.in:  New.
4513         * testsuite/27_io/objects/wchar_t/6648-1_xin.cc:  New test.
4514         * testsuite/27_io/objects/wchar_t/6648-1_xin.in:  New.
4515         * testsuite/27_io/objects/wchar_t/6648-2_xin.cc:  New test.
4516         * testsuite/27_io/objects/wchar_t/6648-2_xin.in:  New.
4517         * testsuite/27_io/objects/wchar_t/7.cc:  New test.
4518         * testsuite/27_io/objects/wchar_t/7744_xin.cc:  New test.
4519         * testsuite/27_io/objects/wchar_t/7744_xin.in:  New.
4520         * testsuite/27_io/objects/wchar_t/8.cc:  New test.
4521         * testsuite/27_io/objects/wchar_t/9_xin.cc:  New test.
4522         * testsuite/27_io/objects/wchar_t/9_xin.in:  New.
4523         * testsuite/27_io/objects/wchar_t/9520.cc:  New test.
4524         * testsuite/27_io/objects/wchar_t/9661-1.cc:  New test.
4525         * testsuite/27_io/objects/wchar_t/9661-2_xin.cc:  New test.
4526         * testsuite/27_io/objects/wchar_t/9661-2_xin.in:  New.
4527         * testsuite/27_io/objects/wchar_t/9662.cc:  New test.
4528         * testsuite/ext/stdiobuf_char.cc:  New test.
4529         * testsuite/ext/stdiobuf_wchar_t.cc:  New test.
4531 2003-05-10  Paolo Carlini  <pcarlini@unitus.it>
4533         * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
4534         unnecessary includes and unused string literals.
4535         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
4537 2003-05-08  Paolo Carlini  <pcarlini@unitus.it>
4539         * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
4541 2003-05-07  Richard Henderson  <rth@redhat.com>
4543         PR c++/10570
4544         * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
4545         (__cxa_end_catch): Likewise.
4546         * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise.  Use
4547         _Unwind_Resume_or_Rethrow.
4548         * libsupc++/eh_personality.cc (empty_exception_spec): New.
4549         (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
4550         for _UA_FORCE_UNWIND.  Honor empty filter spec for foreign
4551         exceptions.  Don't push terminate/unexpected to cxa functions.
4552         (__cxa_call_unexpected): Remove foreign exception fixmes.
4554 2003-05-07  Benjamin Kosnik  <bkoz@redhat.com>
4556         * testsuite/27_io/ios_base/cons: New.
4557         * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
4558         * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
4560 2003-05-07  Paolo Carlini  <pcarlini@unitus.it>
4562         * include/std/std_fstream.h (_M_is_indeterminate): Remove.
4563         * src/fstream.cc
4564         (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
4565         there is no buffer or __testget == !__testinit.
4567         * src/fstream.cc
4568         (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
4569         automatically sets, if appropriate, _M_out_cur == _M_in_cur.
4571         * include/std/std_fstream.h (_M_destroy_pback): Don't set
4572         unnecessarily _M_pback_cur_save and _M_pback_end_save.
4574         * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
4576         * include/std/std_sstream.h (_M_sync): Minor tweak.
4578         * include/bits/fstream.tcc (close): No need to call
4579         _M_destroy_pback, setting _M_pback_init to false suffices
4580         to clean up.
4582 2003-05-06  Benjamin Kosnik  <bkoz@redhat.com>
4584         * include/bits/stl_algo.h: Enums as _S_.
4585         * include/bits/stl_tree.h: Same.
4586         * include/bits/stl_bvector.h: Same.
4587         * include/bits/ios_base.h: Same.
4588         * include/bits/stl_alloc.h: Same.
4589         * include/ext/stl_hashtable.h: Same.
4590         * src/ios.cc: And here.
4592         * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
4593         * include/bits/sstream.tcc: Same.
4595         * include/bits/basic_ios.h: Correct spacing for '< ctype'.
4597         * include/bits/locale_facets.tcc: Replace __temp to __tmp.
4599         * include/bits/locale_facets.h (__num_base): Remove protected.
4600         Use _S_[io]* names for enumerations.
4601         (_S_format_int): Remove.
4602         * include/bits/locale_facets.tcc: Same.
4603         * src/locale.cc: Same.
4605         * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
4607 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
4609         * docs/html/faq/index.html (3.10):  Add note about mips atomicity.h.
4610         * docs/html/faq/index.txt:  Regenerated.
4612 2003-05-06  Michael Ritzert <Ritzert@t-online.de>
4613             Matt Kraai <kraai@alumni.cmu.edu>
4615         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
4616         And retweak.
4618 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
4620         * configure.target (mips*): Use the generic atomicity.h by default.
4622 2003-05-05  Loren J. Rittle  <ljrittle@acm.org>
4623             (Inspired by an alternate patch from Danny Smith.)
4625         * include/bits/stl_threads.h (_Atomic_swap): Kill it...
4626         (_Swap_lock_struct<>): ...and the horse it rode in on.
4627         * src/globals.cc (_Swap_lock_struct<>): Likewise.
4628         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
4629         member to support...
4630         * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
4631         visibility rules related to POSIX threads.
4632         * testsuite/thread/pthread7-rope.cc: New test.
4634 2003-05-04  Paolo Carlini  <pcarlini@unitus.it>
4636         * testsuite/21_strings/basic_string/find/char/3.cc: New
4637         file, testing basic_string<char>::find_first_not_of.
4638         * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
4639         Likewise for basic_string<wchar_t>.
4641 2003-05-03  Loren J. Rittle  <ljrittle@acm.org>
4643         * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
4645 2003-05-02  Benjamin Kosnik  <bkoz@redhat.com>
4647         * include/Makefile.am (CLEANFILES): Remove PCH files in target
4648         directory.
4649         * include/Makefile.in: Regenerate.
4651 2003-05-02  Paolo Carlini  <pcarlini@unitus.it>
4653         * include/std/std_sstream.h (str()): Tidy.
4655 2003-05-02  Nathan Myers  <ncm@cantrip.org>
4656             Paolo Carlini  <pcarlini@unitus.it>
4658         * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
4660 2003-05-02  Jonathan Wakely  <redi@gcc.gnu.org>
4662         * include/bits/basic_string.h (swap): Remove redundant template
4663         parameters from declaration of non-template member function.
4665 2003-05-01  Phil Edwards  <pme@gcc.gnu.org>
4667         * acconfig.h (_GLIBCPP_USE_NLS):  New symbol.
4668         * configure.in:  Move libintl.h header test...
4669         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  ...to here.  Gather all
4670         the NLS-related test results into one symbol.
4671         * src/functexcept.cc:  Use it here.
4672         * aclocal.m4, config.h.in, configure:  Regenerated.
4674 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
4676         * include/bits/sstream.tcc (overflow): Instead of calling
4677         str(), then _M_string.reserve, thus copying the contents
4678         of the current buffer two times, just copy the latter in
4679         a temporary, then use the 'swap trick'.
4681 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
4683         * include/std/std_sstream.h (str()): Revert the best of the
4684         previous 'improvement', incorrect due to the COW nature of
4685         v3 basic_string; simplify.
4687 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
4689         * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
4690         type of __avail to ptrdiff_t to avoid signed-unsigned warning.
4692 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
4694         * testsuite/abi_check.cc (check_version): Update known versions.
4695         Check added symbols for version_name != base version. Add missing
4696         symbols to incompatible list.
4698 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
4700         * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
4701         * aclocal.m4: Regenerated.
4702         * configure: Regenerated.
4704 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
4706         * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
4707         Const-ify some variables.
4708         (basic_streambuf::xsputn): Likewise; change the type of some
4709         variables to size_t.
4710         (__copy_streambufs): Change some variables to size_t.
4712 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
4714         * include/std/std_sstream.h (str()): Avoid constructing
4715         a basic_string temporary not only when it would turn out
4716         to be zero-sized but also when identical to the current
4717         _M_string buffer.
4719 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
4721         * include/ext/stdio_filebuf.h
4722         (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
4723         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
4724         Shorten a bit (-10 lines) by factoring out some code.
4726 2003-04-30  Phil Edwards  <pme@gcc.gnu.org>
4728         * acinclude.m4:  Add bit missing from previous patch.
4729         * aclocal.m4, configure:  Regenerated.
4731 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
4733         * docs/doxygen/mainpage.html:  Bring up to date.
4734         * docs/doxygen/run_doxygen:  Cosmetic tweaks.  Work around a bug
4735         in Doxygen.
4736         * docs/doxygen/user.cfg.in:  Scanning the precompiled headers
4737         breaks everything.  Don't scan them.
4738         * docs/html/documentation.html:  Point to "Write after approval"
4739         notes.
4741 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
4743         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  Search for gettext outside
4744         of libc if message translations are being used.  Fix info text in
4745         xieee_1003.1-2001 case.
4746         * aclocal.m4, configure:  Regenerate.
4748 2003-04-29 Joel Sherrill  <joel.sherrill@OARcorp.com>
4749            Loren J. Rittle <ljrittle@acm.org>
4750            Martin v. Loewis  <martin@v.loewis.de>
4752         * config/cpu/i386/atomicity.h: New file.
4754 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
4756         * include/bits/fstream.tcc (open): Change to single return.
4758 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
4760         * include/std/std_sstream.h (underflow): Change to single return.
4762 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
4764         * include/std/std_streambuf.h (_M_buf): is currently
4765         used only for basic_filebuf, therefore move it there.
4766         (basic_streambuf(), ~basic_streambuf()): Adjust.
4767         * include/std/std_fstream.h (_M_buf): Moved here.
4768         * include/std/std_sstream.h (setbuf): Don't set _M_buf,
4769         is actually redundant for basic_stringbuf.
4770         (_M_really_sync): Likewise.
4771         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
4772         * include/bits/sstream.tcc (seekoff): Adjust.
4774 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
4776         * src/localename.cc: Standardize exception strings.
4777         * src/locale.cc: Same.
4778         * src/ios.cc: Same.
4779         * include/bits/basic_string.tcc: Same.
4780         * include/bits/basic_ios.tcc: Same.
4781         * include/std/std_bitset.h: Same.
4782         * include/ext/ropeimpl.h: Same.
4783         * include/bits/stl_vector.h: Same.
4784         * include/bits/stl_deque.h: Same.
4785         * include/bits/stl_bvector.h: Same.
4786         * config/locale/generic/c_locale.cc: Same.
4787         * config/locale/gnu/c_locale.cc: Same.
4788         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
4790         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
4792 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
4794         * include/std/std_streambuf.h (_M_buf_size): is currently
4795         used only for basic_filebuf, therefore move it there.
4796         (basic_streambuf(), ~basic_streambuf()): Adjust.
4797         * include/std/std_fstream.h (_M_buf_size): Moved here.
4798         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
4800 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
4802         * include/bits/streambuf.tcc (__copy_streambufs): Don't use
4803         _M_buf_size (synced input is now correctly dealt with
4804         elsewhere); when the output buffer is full don't fall back
4805         to a snextc-sputc loop, call overflow instead.
4807 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
4809         * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
4810         the innermost 'if' by factoring out some code.
4812 2003-04-28  Phil Edwards  <pme@gcc.gnu.org>
4814         * configure.in:  Test for libintl.h.
4815         * include/bits/c++config:  Define __N for everybody.
4816         * include/bits/basic_string.h, include/bits/stl_bvector.h,
4817         include/bits/stl_deque.h, include/bits/stl_vector.h,
4818         include/std/std_bitset.h:  Wrap all __throw* text with __N.
4819         * po/Makefile.am (pot):  New rule, mostly working.
4820         * src/functexcept.cc:  Call gettext on all __throw* arguments when
4821         -fexceptions is in effect.
4822         * po/Makefile.in, config.h.in, configure:  Regenerate.
4824 2003-04-28  Petur Runolfsson  <peturr02@ru.is>
4826         PR libstdc++/9523
4827         * include/bits/ios_base.h (Init::_S_ios_create,
4828         Init::_S_ios_destroy):  Remove declarations.
4829         (Init::_S_create_buffers,
4830         Init::_S_destroy_buffers):  Declare
4831         * src/ios.cc (Init::_S_ios_create):  Remove
4832         (Init::_S_create_buffers):  Create buffers and add to streams.
4833         (Init::_S_ios_destroy):  Rename to...
4834         (Init::_S_destroy_buffers):  this.
4835         (Init::Init):  Only construct streams once.
4836         (Init::~Init):  Flush streams, don't destroy them.
4837         (ios_base::sync_with_stdio):  Don't destroy streams, only buffers.
4838         * testsuite/27_io/ios_base/sync_with_stdio/9523.cc:  New test.
4839         * testsuite/27_io/objects/char/5.cc:  New test.
4840         * testsuite/27_io/objects/char/5268.cc:  Avoid undefined behavior.
4841         * testsuite/27_io/objects/char/6.cc:  New test.
4842         * testsuite/27_io/objects/char/7.cc:  New test.
4844 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
4846         * testsuite/27_io/objects/char/8.cc:  New test.
4848 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
4850         * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
4851         * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
4853 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
4855         * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
4856         _M_destroy_pback. _M_pback_create to
4857         _M_create_pback. _M_underflow_common to
4858         _M_underflow. _M_really_overflow to _M_overflow.
4859         * include/bits/fstream.tcc: Same.
4860         * src/fstream.cc: Same.
4861         * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
4862         _M_move_in_cur.  _M_out_cur_move to _M_move_out_cur.
4863         * include/bits/streambuf.tcc: Same.
4864         * include/bits/fstream.tcc: Same.
4865         * include/bits/sstream.tcc: Same.
4867 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
4869         * include/bits/locale_classes.h (locale::_Impl): Change _M_names
4870         from fixed size array.
4871         (locale): Change _S_categories as well.
4872         Formatting tweaks.
4873         * include/bits/locale_facets.tcc: Tweak.
4874         * config/locale/gnu/c_locale.cc: Assign _S_categories.
4875         * config/locale/generic/c_locale.cc: Same.
4876         * src/locale.cc: Tweak.
4877         * src/globals.cc: Change facet_name to name_vec, add names_c.
4878         * src/localename.cc: Use them.
4879         (locale::_Impl::~_Impl): Destroy _M_names.
4880         (locale::_Impl::_Impl): Create _M_names.
4882 2003-04-27  Andreas Schwab  <schwab@suse.de>
4884         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
4885         (__enc_traits): Use __ibom and __ebom instead of ignoring them.
4887 2003-04-27  Nathan Myers  <ncm@cantrip.org>
4889         Move some basic_string members out of line because
4890         they are too big to reasonably be inline.
4891         * include/bits/basic_string.h
4892         (assign(const basic_string&, size_type, size_type),
4893         assign(const _CharT*, size_type),
4894         insert(size_type, const basic_string&, size_type, size_type),
4895         insert(size_type, const _CharT*, size_type),
4896         replace(size_type, size_type, const _CharT*, size_type)):
4897         Move from here to...
4898         * include/bits/basic_string.tcc: ...here.
4900 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
4902         * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
4903         the innermost 'if' by factoring out some code.
4905 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
4907         * include/bits/streambuf.tcc (__copy_streambufs): Don't
4908         use in_avail(), simplify.
4910 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
4912         * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
4913         in basic_stringbuf it's unused.
4915         * include/std/std_sstream.h (underflow): consistently use
4916         _M_in_cur, not gptr().
4918 2003-04-25  Ranjit Mathew  <rmathew@hotmail.com>
4919             Phil Edwards  <pme@gcc.gnu.org>
4921         * testsuite_flags.in: Guard against the possibility
4922         of having "xgcc" as a part of a folder name in the
4923         path to the GCC build folder.
4924         * testsuite/Makefile.am: Likewise.
4925         * testsuite/Makefile.in: Regenerated.
4927 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
4929         PR libstdc++/10132
4930         * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
4931         exception specifications.
4932         (basic_filebuf::close): Same.
4933         (basic_filebuf::_M_pback_destroy): Same.
4934         (basic_filebuf::_M_destroy_internal_buffer): Same.
4935         (basic_filebuf): Remove __res_type typedef.
4936         * src/fstream.cc: Same.
4937         * include/bits/fstream.tcc
4938         (basic_filebuf::_M_convert_to_external): Simplify.
4939         (basic_filebuf::seekoff): Use has_facet before use_facet.
4940         (basic_filebuf::close): Add exception specification of throw().
4941         * testsuite/27_io/basic_filebuf/cons: New.
4942         * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
4943         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
4944         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
4945         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
4947 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
4949         * include/bits/locale_classes.h
4950         (locale::_S_extra_categories_size): Remove.
4951         * src/locale.cc: Remove _S_extra_categories_size.
4952         * src/localename.cc: Same.
4953         * config/locale/gnu/c_locale.cc: Same.
4954         * config/locale/generic/c_locale.cc: Same.
4956 2003-04-24  Richard Sandiford  <rsandifo@redhat.com>
4958         * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
4960 2003-04-24  Phil Edwards  <pme@gcc.gnu.org>
4962         * docs/html/17_intro/howto.html:  Update some links.
4963         * docs/html/18_support/howto.html:  Link doxygen numeric_limits notes.
4964         * docs/html/27_io/howto.html:  Link doxygen stdio_filebuf notes.
4965         * docs/html/ext/howto.html:  Link to demangler notes and API.
4966         * docs/html/faq/index.html:  Remove trailing whitespace.
4967         (1.4, 2.4, 3.8, 4.1):  Bring up to date.
4968         (5.6):  Change to a bulleted list.
4970         * docs/html/faq/index.txt, docs/html/documentation.html,
4971         docs/html/17_intro/porting.html:  Regenerate.
4973 2003-04-23  Paolo Carlini  <pcarlini@unitus.it>
4975         * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
4976         belongs to basic_filebuf.
4977         * testsuite/27_io/basic_fstream/3.cc: Likewise.
4978         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
4979         * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
4980         instantiation (now belongs to basic_filebuf).
4981         * testsuite/27_io/basic_iostream/3.cc: Likewise.
4982         * testsuite/27_io/basic_istream/3.cc: Likewise.
4983         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
4984         _S_pback_size now belongs to basic_filebuf.
4985         * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
4986         instantiation (now belongs to basic_filebuf).
4987         * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
4988         belongs to basic_filebuf.
4989         * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
4990         instantiation (now belongs to basic_filebuf).
4991         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
4992         _S_pback_size now belongs to basic_filebuf.
4993         * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
4994         instantiation (now belongs to basic_filebuf).
4995         * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
4996         to basic_filebuf.
4997         * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
4998         instantiation (now belongs to basic_filebuf).
4999         * testsuite/27_io/basic_stringstream/3.cc: Likewise.
5001 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
5003         * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
5004         * configure: Regenerated.
5006 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
5008         * config/locale/generic/c_locale.h (__convert_from_v): Use
5009         attribute unused.
5011 2003-04-23  Phil Edwards  <pme@gcc.gnu.org>
5013         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 60, partial
5014         implementation only.
5015         * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
5016         Comment and change to comply with DR 60 and the effect on gcount().
5017         * include/std/std_istream.h:  Update comments.
5018         * testsuite/27_io/basic_istream/putback/char/1.cc (test01):  Add
5019         comments about reasons for tests.  Test sync() against gcount().
5020         * testsuite/27_io/basic_istream/seekg/char/2.cc:  New file, test
5021         for effect on gcount().
5022         * testsuite/27_io/basic_istream/tellg/char/2.cc:  New file, test
5023         for effect on gcount().
5025 2003-04-22  Loren J. Rittle  <ljrittle@acm.org>
5027         * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
5028         Adjust timing.
5030 2003-04-22  Paolo Carlini  <pcarlini@unitus.it>
5032         * include/std/std_streambuf.h (_S_pback_size, _M_pback,
5033         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
5034         _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
5035         (basic_streambuf::basic_streambuf()): Adjust.
5036         * include/std/std_fstream.h (_S_pback_size, _M_pback,
5037         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
5038         _M_pback_create(), _M_pback_destroy()): Moved here
5039         from basic_streambuf.
5040         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
5041         Adjust.
5042         (basic_filebuf::_S_pback_size): Add declaration.
5043         * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
5044         Remove declaration.
5046 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
5048         Consistently use _M_in_beg instead of eback(), _M_in_cur
5049         instead of gptr(), and so on.
5050         * include/bits/fstream.tcc (pbackfail, imbue): Here.
5051         * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
5052         * include/bits/streambuf.tcc (sbumpc, sputbackc,
5053         __copy_streambufs): Ditto.
5054         * include/std/std_streambuf.h (sgetc): Ditto.
5056 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
5058         * include/bits/sstream.tcc (pbackfail, overflow):
5059         Formatting fixes.
5061 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
5063         * include/std/std_streambuf.h (uflow()): It's used only by
5064         basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
5065         therefore do not consider the _M_buf_unified == true case.
5067         * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
5069 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
5071         * docs/html/ext/howto.html ('LWG Issues'):
5072         Add issues 19, 90, 171, 231, 271.
5074 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
5076         * include/bits/sstream.tcc (pbackfail): Remove redundant
5077         NULL pointer check from test involving _M_in_*.
5078         (overflow, seekoff, seekpos): Const qualify bool variables.
5079         * include/std/std_sstream.h (underflow): Remove redundant
5080         NULL pointer check from test involving _M_in_*.
5081         (_M_really_sync): Const qualify bool variables.
5082         * src/fstream.cc (_M_underflow_common): Remove redundant
5083         NULL pointer check from test involving _M_in_*, const qualify
5084         bool variables.
5086         * include/std/std_streambuf.h (sgetc): Remove redundant
5087         variable.
5089 2003-04-18  Paolo Carlini  <pcarlini@unitus.it>
5091         According to 5.9 para 2 (second bullet) for pointers p, q
5092         pointing to the same type, with  p == 0 and q == 0, (p < q)
5093         is false.
5094         * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
5095         seekoff): Remove redundant NULL pointer checks from tests
5096         involving _M_out_* and _M_in_*, const qualify bool variables.
5097         (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
5098         qualify bool variables.
5099         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
5100         Remove redundant NULL pointer checks from tests involving
5101         _M_out_* and _M_in_*, const qualify bool variables.
5102         * include/std/std_fstream.h (sync): Likewise.
5103         (_M_is_indeterminate): Const qualify bool variables.
5104         * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
5105         NULL pointer checks from tests involving _M_out_* and _M_in_*,
5106         const qualify bool variables.
5107         (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
5108         variables.
5110 2003-04-18  Loren J. Rittle  <ljrittle@acm.org>
5112         * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
5113         C99 FP macros, if actually captured.
5115         * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
5116         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
5117         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
5118         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
5119         * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
5120         New macro.
5121         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
5122         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
5123         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
5124         * include/c_std/std_cstdlib.h: Use new macros.
5125         * include/c_std/std_cstdio.h: Use new macros.
5126         * include/c_std/std_cwchar.h: Use new macros.
5128 2003-04-17  Benjamin Kosnik  <bkoz@redhat.com>
5130         PR libstdc++/9555
5131         * include/bits/ostream.tcc: Catch all exceptions for formatted
5132         output, instead of std::exception and derivatives.
5133         * include/bits/istream.tcc: Same.
5134         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
5135         * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
5136         * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
5137         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
5138         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
5139         * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
5140         New.
5142 2003-04-17  Phil Edwards  <pme@gcc.gnu.org>
5144         * include/bits/c++config:  Minor cosmetic tweaks.
5146 2003-04-17  Loren J. Rittle  <ljrittle@acm.org>
5148         * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
5149         * include/Makefile.am (pch_input): Find in ${target_builddir}.
5150         (pch_output): Rename to...
5151         (pch_output_builddir): ..this.  Find in ${target_builddir}.
5152         (pch_source): Tweak.
5153         (pch_build): Key off a built file.
5154         (pch_output rule): Rename to...
5155         (pch_input rule): ...this.  Produce ${pch_output_builddir}
5156         instead of ${pch_output}.
5157         (install-pch rule): Install ${pch_output_builddir}.
5158         * include/Makefile.in: Regenerated.
5160 2003-04-17  Paolo Carlini  <pcarlini@unitus.it>
5162         * include/std/std_streambuf.h (setp): _M_out_lim, being
5163         the end limit of used put area, is set equal to _M_out_beg.
5165 2003-04-16  Benjamin Kosnik  <bkoz@redhat.com>
5167         * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
5168         * aclocal.m4: Regenerated.
5169         * configure.in: Remove old demangler bits.
5170         Call pch checks.
5171         * configure: Regenerate.
5172         * config.h.in: Regenerate.
5173         * include/Makefile.am (allstamps): Now allstamped.
5174         (allcreated): Define this.
5175         (all-local): Use 'em.
5176         Conditionally define pch_build, pch_install based on
5177         GLIBCPP_BUILD_PCH.
5178         (${pch_output}): New rule.
5179         (install-pch): New rule.
5180         (install-headers): New rule.
5181         (install-data-local): Install headers and conditionally pch.
5182         * include/Makefile.in: Regenerate.
5183         * testsuite_flags.in (--build-cxx): Use pch file.
5185 2003-04-16  Jonathan Wakely  <redi@gcc.gnu.org>
5187         * docs/html/ext/sgiexts.html: Fix path to stylesheet.
5189 2003-04-15  Benjamin Kosnik  <bkoz at redhat dot com>
5190             Paolo Carlini  <pcarlini at unitus dot it>
5192         PR libstdc++/9423
5193         * docs/html/27_io/howto.html
5194         ('The buffering is screwing up my program!'): Explain that
5195         opening counts as an I/O operation.
5197 2003-04-15  Andreas Tobler  <a.tobler@schweiz.ch>
5199         * testsuite/thread/pthread1.cc: Enable for darwin test.
5200         * testsuite/thread/pthread2.cc: Same.
5201         * testsuite/thread/pthread3.cc: Same.
5202         * testsuite/thread/pthread4.cc: Same.
5203         * testsuite/thread/pthread5.cc: Same.
5204         * testsuite/thread/pthread6.cc: Same.
5206 2003-04-15  Loren J. Rittle  <ljrittle@acm.org>
5208         libstdc++/7680
5209         * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
5210         Populate it with multiple legal ways to obtain the C99 float
5211         transcendentals.  Use them instead of direct global reference.
5212         (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
5213         * docs/html/17_intro/porting.texi
5214         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
5215         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
5216         (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
5217         * config/os/bsd/freebsd/os_defines.h
5218         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
5219         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
5220         * testsuite/26_numerics/c_math_dynamic.cc: New file.
5222 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
5223             Benjamin Kosnik  <bkoz@redhat.com>
5225         * config/os/generic/ctype_inline.h: Fix.
5227 2003-04-14  Benjamin Kosnik  <bkoz@redhat.com>
5229         * testsuite/testsuite_hooks.h
5230         (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
5231         Change to try_named_locale.
5232         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
5234         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
5235         try_named_locale.
5236         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
5237         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
5238         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
5239         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
5240         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
5241         * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
5242         * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
5243         * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
5244         * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
5245         * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
5246         * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
5247         * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
5248         * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
5249         * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
5250         * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
5251         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
5252         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
5253         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
5254         * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
5255         * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
5256         * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
5257         * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
5258         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
5259         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
5260         * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
5261         * testsuite/22_locale/collate/compare/char/1.cc: Same.
5262         * testsuite/22_locale/collate/compare/char/2.cc: Same.
5263         * testsuite/22_locale/collate/compare/char/3.cc: Same.
5264         * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
5265         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
5266         * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
5267         * testsuite/22_locale/collate/hash/char/2.cc: Same.
5268         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
5269         * testsuite/22_locale/collate/transform/char/2.cc: Same.
5270         * testsuite/22_locale/collate/transform/char/3.cc: Same.
5271         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
5272         * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
5273         * testsuite/22_locale/collate_byname/1.cc: Same.
5274         * testsuite/22_locale/ctype/is/char/2.cc: Same.
5275         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
5276         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
5277         * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
5278         * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
5279         * testsuite/22_locale/facet/2.cc: Same.
5280         * testsuite/22_locale/locale/cons/2.cc: Same.
5281         * testsuite/22_locale/locale/cons/4.cc: Same.
5282         * testsuite/22_locale/locale/cons/5.cc: Same.
5283         * testsuite/22_locale/locale/cons/7.cc: Same.
5284         * testsuite/22_locale/locale/cons/7222-c.cc: Same.
5285         * testsuite/22_locale/locale/cons/7222-env.cc: Same.
5286         * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
5287         * testsuite/22_locale/messages/members/char/1.cc: Same.
5288         * testsuite/22_locale/messages/members/char/2.cc: Same.
5289         * testsuite/22_locale/messages/members/char/3.cc: Same.
5290         * testsuite/22_locale/messages_byname/1.cc: Same.
5291         * testsuite/22_locale/money_get/get/char/1.cc: Same.
5292         * testsuite/22_locale/money_get/get/char/2.cc: Same.
5293         * testsuite/22_locale/money_get/get/char/3.cc: Same.
5294         * testsuite/22_locale/money_get/get/char/4.cc: Same.
5295         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
5296         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
5297         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
5298         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
5299         * testsuite/22_locale/money_put/put/char/1.cc: Same.
5300         * testsuite/22_locale/money_put/put/char/2.cc: Same.
5301         * testsuite/22_locale/money_put/put/char/3.cc: Same.
5302         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
5303         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
5304         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
5305         * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
5306         * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
5307         * testsuite/22_locale/moneypunct_byname/1.cc: Same.
5308         * testsuite/22_locale/num_get/get/char/1.cc: Same.
5309         * testsuite/22_locale/num_get/get/char/2.cc: Same.
5310         * testsuite/22_locale/num_get/get/char/3.cc: Same.
5311         * testsuite/22_locale/num_get/get/char/5.cc: Same.
5312         * testsuite/22_locale/num_get/get/char/6.cc: Same.
5313         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
5314         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
5315         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
5316         * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
5317         * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
5318         * testsuite/22_locale/num_put/put/char/1.cc: Same.
5319         * testsuite/22_locale/num_put/put/char/2.cc: Same.
5320         * testsuite/22_locale/num_put/put/char/3.cc: Same.
5321         * testsuite/22_locale/num_put/put/char/5.cc: Same.
5322         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
5323         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
5324         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
5325         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
5326         * testsuite/22_locale/numpunct/members/char/1.cc: Same.
5327         * testsuite/22_locale/numpunct/members/char/2.cc: Same.
5328         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
5329         * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
5330         * testsuite/22_locale/numpunct_byname/1.cc: Same.
5331         * testsuite/22_locale/numpunct_byname/2.cc: Same.
5332         * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
5333         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
5334         * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
5335         * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
5336         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
5337         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
5338         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
5339         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
5340         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
5341         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
5342         * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
5343         * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
5344         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
5345         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
5346         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
5347         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
5348         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
5349         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
5350         * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
5351         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
5352         * testsuite/22_locale/time_put/put/char/1.cc: Same.
5353         * testsuite/22_locale/time_put/put/char/2.cc: Same.
5354         * testsuite/22_locale/time_put/put/char/3.cc: Same.
5355         * testsuite/22_locale/time_put/put/char/4.cc: Same.
5356         * testsuite/22_locale/time_put/put/char/5.cc: Same.
5357         * testsuite/22_locale/time_put/put/char/6.cc: Same.
5358         * testsuite/22_locale/time_put/put/char/7.cc: Same.
5359         * testsuite/22_locale/time_put/put/char/8.cc: Same.
5360         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
5361         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
5362         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
5363         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
5364         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
5365         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
5366         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
5367         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
5368         * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
5369         * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
5370         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
5371         * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
5372         * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
5374 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
5376         * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
5377         solaris includes, not generic.
5379 2003-04-14  Loren J. Rittle  <ljrittle@acm.org>
5381         * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
5383         * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
5384         * include/bits/concept_check.h: Fix multi-line comment.
5385         * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
5386         when target is *-*-freebsd*.
5388 2003-04-14  Nathan Myers  <ncm@cantrip.org>
5389             Paolo Carlini  <pcarlini@unitus.it>
5391         PR libstdc++/9701 (in_avail())
5392         * include/std/std_streambuf.h (in_avail): Simplify, in_avail
5393         doesn't care if there is anything in some putback cell.
5394         * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
5396         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
5397         unused string literals.
5399 2003-04-14  Paolo Carlini  <pcarlini@unitus.it>
5401         * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
5402         _M_out_end, _M_set_indeterminate() does it.
5404 2003-04-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5406         * os/hpux/ctype_inline.h: Replace with gnu-linux version.
5408 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
5410         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
5411         Change basic_streambuf instantiation to "unsigned char".
5412         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
5414 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
5416         Remove _M_buf_size_opt, use directly _M_buf_size instead.
5417         * include/bits/fstream.tcc
5418         (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
5419         references to _M_buf_size_opt.
5420         * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
5421         * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
5422         __bufsize to __in_avail and __size_opt to __buf_size.
5423         * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
5424         * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
5425         * include/std/std_streambuf.h (~basic_streambuf(),
5426         basic_streambuf()): Likewise, remove _M_buf_size_opt member.
5427         * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
5428         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
5429         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
5430         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
5431         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
5432         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
5433         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
5434         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
5435         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
5436         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
5437         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
5438         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
5440 2003-04-12  Paolo Carlini  <pcarlini at unitus dot it>
5442         * include/ext/stdio_filebuf.h
5443         (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
5444         stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
5445         _M_buf_size_opt == 0 only means "not to use an allocated buffer"
5446         since a stack-based buffer is used for small values of the size_t
5447         parameter.
5448         * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
5449         If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
5450         * testsuite/ext/stdio_filebuf_2.cc: New testfile.
5452 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
5454         PR libstdc++/9533
5455         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
5456         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
5458 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
5460         * testsuite/22_locale/locale/cons/3.cc: Split.
5461         * testsuite/22_locale/locale/cons/7222-c.cc: New.
5462         * testsuite/22_locale/locale/cons/7222-env.cc: New.
5463         Check before trying to create a locale from the environment.
5464         * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
5465         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
5466         Adjust includes.
5468 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
5470         * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
5471         locale to construct this hybrid locale, not the global locale.
5473 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
5475         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
5476         instantiation for AIX.
5477         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
5478         * testsuite/25_algorithms/min_max.cc: Same.
5480 2003-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5482         * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
5483         twice.  Always set _M_cfile to 0 when stream was open.
5485 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
5487         Reshuffle 27_io testsuite.  * testsuite/27_io/filebuf.cc,
5488         filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
5489         filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
5490         filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
5491         filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
5492         ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
5493         ifstream_members.cc, instantiations.cc, ios.cc,
5494         ios_base_callbacks.cc, ios_base_members_static-1.tst,
5495         ios_base_members_static.cc, ios_base_storage.cc,
5496         ios_base_types.cc, ios_ctor.cc, ios_init.cc,
5497         ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
5498         iostream.cc, iostream_members.cc, istream.cc,
5499         istream_exception.cc, istream_extractor_char.cc,
5500         istream_extractor_other-1.tst, istream_extractor_other-1.txt,
5501         istream_extractor_other-2.tst, istream_extractor_other.cc,
5502         istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
5503         istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
5504         istream_sentry.cc, istream_unformatted-1.tst,
5505         istream_unformatted-1.txt, istream_unformatted.cc,
5506         istringstream.cc, istringstream_members.cc,
5507         narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
5508         ofstream_members.cc, ostream.cc, ostream_exception.cc,
5509         ostream_fail.cc, ostream_inserter_arith.cc,
5510         ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
5511         ostream_inserter_char.cc, ostream_inserter_other-1.tst,
5512         ostream_inserter_other-2.tst, ostream_inserter_other.cc,
5513         ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
5514         ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
5515         ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
5516         streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
5517         stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
5518         wide_stream_objects.cc, istream_extractor_arith/01.cc,
5519         istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
5520         istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
5521         istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
5522         istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
5523         istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
5524         Split into...
5525         * 27_io/basic_filebuf/1.cc: New.
5526         * 27_io/basic_filebuf/2.cc: New.
5527         * 27_io/basic_filebuf/3.cc: New.
5528         * 27_io/basic_filebuf/4.cc: New.
5529         * 27_io/basic_filebuf/close/char/1.cc: New.
5530         * 27_io/basic_filebuf/close/char/2.cc: New.
5531         * 27_io/basic_filebuf/close/char/3.cc: New.
5532         * 27_io/basic_filebuf/close/char/4879.cc: New.
5533         * 27_io/basic_filebuf/close/char/9964.cc: New.
5534         * 27_io/basic_filebuf/imbue/char/1.cc: New.
5535         * 27_io/basic_filebuf/imbue/char/9322.cc: New.
5536         * 27_io/basic_filebuf/in_avail/char/1.cc: New.
5537         * 27_io/basic_filebuf/is_open/char/1.cc: New.
5538         * 27_io/basic_filebuf/open/char/1.cc: New.
5539         * 27_io/basic_filebuf/open/char/2.cc: New.
5540         * 27_io/basic_filebuf/open/char/3.cc: New.
5541         * 27_io/basic_filebuf/open/char/9507.cc: New.
5542         * 27_io/basic_filebuf/overflow/char/1.cc: New.
5543         * 27_io/basic_filebuf/overflow/char/3599.cc: New.
5544         * 27_io/basic_filebuf/overflow/char/9169.cc: New.
5545         * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
5546         * 27_io/basic_filebuf/overflow/char/9988.cc: New.
5547         * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
5548         * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
5549         * 27_io/basic_filebuf/seekoff/char/1.cc: New.
5550         * 27_io/basic_filebuf/seekoff/char/2.cc: New.
5551         * 27_io/basic_filebuf/seekpos/char/1.cc: New.
5552         * 27_io/basic_filebuf/seekpos/char/2.cc: New.
5553         * 27_io/basic_filebuf/setbuf/char/1.cc: New.
5554         * 27_io/basic_filebuf/setbuf/char/2.cc: New.
5555         * 27_io/basic_filebuf/setbuf/char/3.cc: New.
5556         * 27_io/basic_filebuf/sgetc/char/1.cc: New.
5557         * 27_io/basic_filebuf/sgetn/char/1.cc: New.
5558         * 27_io/basic_filebuf/sgetn/char/2.cc: New.
5559         * 27_io/basic_filebuf/snextc/char/1.cc: New.
5560         * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
5561         * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
5562         * 27_io/basic_filebuf/sputc/char/1.cc: New.
5563         * 27_io/basic_filebuf/sputc/char/1057.cc: New.
5564         * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
5565         * 27_io/basic_filebuf/sputn/char/1.cc: New.
5566         * 27_io/basic_filebuf/sputn/char/1057.cc: New.
5567         * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
5568         * 27_io/basic_filebuf/sungetc/char/1.cc: New.
5569         * 27_io/basic_filebuf/sync/char/1057.cc: New.
5570         * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
5571         * 27_io/basic_filebuf/underflow/char/10097.cc: New.
5572         * 27_io/basic_fstream/1.cc: New.
5573         * 27_io/basic_fstream/2.cc: New.
5574         * 27_io/basic_fstream/3.cc: New.
5575         * 27_io/basic_fstream/4.cc: New.
5576         * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
5577         * 27_io/basic_ifstream/1.cc: New.
5578         * 27_io/basic_ifstream/2.cc: New.
5579         * 27_io/basic_ifstream/3.cc: New.
5580         * 27_io/basic_ifstream/4.cc: New.
5581         * 27_io/basic_ifstream/cons/char/1.cc: New.
5582         * 27_io/basic_ifstream/open/char/1.cc: New.
5583         * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
5584         * 27_io/basic_ios/1.cc: New.
5585         * 27_io/basic_ios/2.cc: New.
5586         * 27_io/basic_ios/3.cc: New.
5587         * 27_io/basic_ios/4.cc: New.
5588         * 27_io/basic_ios/clear/char/1.cc: New.
5589         * 27_io/basic_ios/cons/char/1.cc: New.
5590         * 27_io/basic_ios/cons/char/2.cc: New.
5591         * 27_io/basic_ios/cons/char/3.cc: New.
5592         * 27_io/basic_ios/copyfmt/char/1.cc: New.
5593         * 27_io/basic_ios/copyfmt/char/2.cc: New.
5594         * 27_io/basic_ios/exceptions/char/1.cc: New.
5595         * 27_io/basic_ios/locales/char/1.cc: New.
5596         * 27_io/basic_iostream/1.cc: New.
5597         * 27_io/basic_iostream/2.cc: New.
5598         * 27_io/basic_iostream/3.cc: New.
5599         * 27_io/basic_iostream/4.cc: New.
5600         * 27_io/basic_istream/1.cc: New.
5601         * 27_io/basic_istream/2.cc: New.
5602         * 27_io/basic_istream/3.cc: New.
5603         * 27_io/basic_istream/4.cc: New.
5604         * 27_io/basic_istream/exceptions/char/9561.cc: New.
5605         * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
5606         * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
5607         * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
5608         * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
5609         * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
5610         * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
5611         * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
5612         * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
5613         * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
5614         * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
5615         * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
5616         * 27_io/basic_istream/extractors_character/char/1.cc: New.
5617         * 27_io/basic_istream/extractors_character/char/2.cc: New.
5618         * 27_io/basic_istream/extractors_character/char/3.cc: New.
5619         * 27_io/basic_istream/extractors_character/char/9826.cc: New.
5620         * 27_io/basic_istream/extractors_other/char/1.cc: New.
5621         * 27_io/basic_istream/extractors_other/char/2.cc: New.
5622         * 27_io/basic_istream/extractors_other/char/3.cc: New.
5623         * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
5624         * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
5625         * 27_io/basic_istream/get/char/1.cc: New.
5626         * 27_io/basic_istream/get/char/2.cc: New.
5627         * 27_io/basic_istream/getline/char/1.cc: New.
5628         * 27_io/basic_istream/getline/char/2.cc: New.
5629         * 27_io/basic_istream/getline/char/3.cc: New.
5630         * 27_io/basic_istream/ignore/char/1.cc: New.
5631         * 27_io/basic_istream/ignore/char/6360.cc: New.
5632         * 27_io/basic_istream/ignore/char/7220.cc: New.
5633         * 27_io/basic_istream/peek/char/1.cc: New.
5634         * 27_io/basic_istream/peek/char/6414.cc: New.
5635         * 27_io/basic_istream/putback/char/1.cc: New.
5636         * 27_io/basic_istream/read/char/1.cc: New.
5637         * 27_io/basic_istream/read/char/2.cc: New.
5638         * 27_io/basic_istream/read/char/3.cc: New.
5639         * 27_io/basic_istream/readsome/char/6746-1.cc: New.
5640         * 27_io/basic_istream/readsome/char/6746-2.cc: New.
5641         * 27_io/basic_istream/readsome/char/8258.cc: New.
5642         * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
5643         * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
5644         * 27_io/basic_istream/seekg/char/8348-1.cc: New.
5645         * 27_io/basic_istream/seekg/char/8348-2.cc: New.
5646         * 27_io/basic_istream/seekg/char/fstream.cc: New.
5647         * 27_io/basic_istream/seekg/char/sstream.cc: New.
5648         * 27_io/basic_istream/sentry/char/1.cc: New.
5649         * 27_io/basic_istream/sentry/char/2.cc: New.
5650         * 27_io/basic_istream/sentry/char/3.cc: New.
5651         * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
5652         * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
5653         * 27_io/basic_istream/tellg/char/1.cc: New.
5654         * 27_io/basic_istream/tellg/char/8348.cc: New.
5655         * 27_io/basic_istream/tellg/char/fstream.cc: New.
5656         * 27_io/basic_istream/tellg/char/sstream.cc: New.
5657         * 27_io/basic_istream/ws/char/1.cc: New.
5658         * 27_io/basic_istringstream/1.cc: New.
5659         * 27_io/basic_istringstream/2.cc: New.
5660         * 27_io/basic_istringstream/3.cc: New.
5661         * 27_io/basic_istringstream/4.cc: New.
5662         * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
5663         * 27_io/basic_istringstream/str/char/1.cc: New.
5664         * 27_io/basic_ofstream/1.cc: New.
5665         * 27_io/basic_ofstream/2.cc: New.
5666         * 27_io/basic_ofstream/3.cc: New.
5667         * 27_io/basic_ofstream/4.cc: New.
5668         * 27_io/basic_ofstream/cons/char/2.cc: New.
5669         * 27_io/basic_ofstream/open/char/1.cc: New.
5670         * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
5671         * 27_io/basic_ostream/1.cc: New.
5672         * 27_io/basic_ostream/2.cc: New.
5673         * 27_io/basic_ostream/3.cc: New.
5674         * 27_io/basic_ostream/4.cc: New.
5675         * 27_io/basic_ostream/cons/char/9827.cc: New.
5676         * 27_io/basic_ostream/endl/char/1.cc: New.
5677         * 27_io/basic_ostream/ends/char/1.cc: New.
5678         * 27_io/basic_ostream/ends/char/2.cc: New.
5679         * 27_io/basic_ostream/exceptions/char/9561.cc: New.
5680         * 27_io/basic_ostream/flush/char/1.cc: New.
5681         * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
5682         * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
5683         * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
5684         * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
5685         * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
5686         * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
5687         * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
5688         * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
5689         * 27_io/basic_ostream/inserters_character/char/1.cc: New.
5690         * 27_io/basic_ostream/inserters_character/char/2.cc: New.
5691         * 27_io/basic_ostream/inserters_character/char/3.cc: New.
5692         * 27_io/basic_ostream/inserters_character/char/4.cc: New.
5693         * 27_io/basic_ostream/inserters_character/char/5.cc: New.
5694         * 27_io/basic_ostream/inserters_character/char/6.cc: New.
5695         * 27_io/basic_ostream/inserters_character/char/8.cc: New.
5696         * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
5697         * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
5698         * 27_io/basic_ostream/inserters_other/char/1.cc: New.
5699         * 27_io/basic_ostream/inserters_other/char/2.cc: New.
5700         * 27_io/basic_ostream/inserters_other/char/3.cc: New.
5701         * 27_io/basic_ostream/inserters_other/char/4.cc: New.
5702         * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
5703         * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
5704         * 27_io/basic_ostream/sentry/char/1.cc: New.
5705         * 27_io/basic_ostream/sentry/char/2.cc: New.
5706         * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
5707         * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
5708         * 27_io/basic_ostream/tellp/char/1.cc: New.
5709         * 27_io/basic_ostream/tellp/char/2.cc: New.
5710         * 27_io/basic_ostringstream/1.cc: New.
5711         * 27_io/basic_ostringstream/2.cc: New.
5712         * 27_io/basic_ostringstream/3.cc: New.
5713         * 27_io/basic_ostringstream/4.cc: New.
5714         * 27_io/basic_ostringstream/cons/char/3.cc: New.
5715         * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
5716         * 27_io/basic_ostringstream/str/char/1.cc: New.
5717         * 27_io/basic_ostringstream/str/char/2.cc: New.
5718         * 27_io/basic_streambuf/1.cc: New.
5719         * 27_io/basic_streambuf/2.cc: New.
5720         * 27_io/basic_streambuf/3.cc: New.
5721         * 27_io/basic_streambuf/cons/char/1.cc: New.
5722         * 27_io/basic_streambuf/imbue/char/1.cc: New.
5723         * 27_io/basic_streambuf/imbue/char/9322.cc: New.
5724         * 27_io/basic_streambuf/overflow/char/1.cc: New.
5725         * 27_io/basic_streambuf/overflow/char/2.cc: New.
5726         * 27_io/basic_streambuf/overflow/char/3599.cc: New.
5727         * 27_io/basic_streambuf/sgetc/char/1.cc: New.
5728         * 27_io/basic_streambuf/sgetn/char/1.cc: New.
5729         * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
5730         * 27_io/basic_streambuf/sputc/char/1057.cc: New.
5731         * 27_io/basic_streambuf/sputn/char/1.cc: New.
5732         * 27_io/basic_streambuf/sputn/char/1057.cc: New.
5733         * 27_io/basic_streambuf/sync/char/1057.cc: New.
5734         * 27_io/basic_stringbuf/1.cc: New.
5735         * 27_io/basic_stringbuf/2.cc: New.
5736         * 27_io/basic_stringbuf/3.cc: New.
5737         * 27_io/basic_stringbuf/4.cc: New.
5738         * 27_io/basic_stringbuf/5.cc: New.
5739         * 27_io/basic_stringbuf/imbue/char/1.cc: New.
5740         * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
5741         * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
5742         * 27_io/basic_stringbuf/overflow/char/2.cc: New.
5743         * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
5744         * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
5745         * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
5746         * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
5747         * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
5748         * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
5749         * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
5750         * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
5751         * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
5752         * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
5753         * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
5754         * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
5755         * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
5756         * 27_io/basic_stringbuf/snextc/char/1.cc: New.
5757         * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
5758         * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
5759         * 27_io/basic_stringbuf/sputc/char/1.cc: New.
5760         * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
5761         * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
5762         * 27_io/basic_stringbuf/sputn/char/1.cc: New.
5763         * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
5764         * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
5765         * 27_io/basic_stringbuf/str/char/1.cc: New.
5766         * 27_io/basic_stringbuf/str/char/2.cc: New.
5767         * 27_io/basic_stringbuf/str/char/3.cc: New.
5768         * 27_io/basic_stringbuf/str/char/3955.cc: New.
5769         * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
5770         * 27_io/basic_stringbuf/sync/char/1057.cc: New.
5771         * 27_io/basic_stringstream/1.cc: New.
5772         * 27_io/basic_stringstream/2.cc: New.
5773         * 27_io/basic_stringstream/3.cc: New.
5774         * 27_io/basic_stringstream/4.cc: New.
5775         * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
5776         * 27_io/basic_stringstream/str/char/1.cc: New.
5777         * 27_io/basic_stringstream/str/char/2.cc: New.
5778         * 27_io/basic_stringstream/str/char/3.cc: New.
5779         * 27_io/basic_stringstream/str/char/4.cc: New.
5780         * 27_io/fpos/1.cc: New.
5781         * 27_io/fpos/2.cc: New.
5782         * 27_io/fpos/3.cc: New.
5783         * 27_io/ios_base/callbacks/1.cc: New.
5784         * 27_io/ios_base/state/1.cc: New.
5785         * 27_io/ios_base/storage/1.cc: New.
5786         * 27_io/ios_base/storage/2.cc: New.
5787         * 27_io/ios_base/storage/3.cc: New.
5788         * 27_io/ios_base/sync_with_stdio/1.cc: New.
5789         * 27_io/ios_base/sync_with_stdio/2.cc: New.
5790         * 27_io/manipulators/adjustfield/char/1.cc: New.
5791         * 27_io/manipulators/adjustfield/char/2.cc: New.
5792         * 27_io/manipulators/basefield/char/1.cc: New.
5793         * 27_io/manipulators/standard/char/1.cc: New.
5794         * 27_io/manipulators/standard/char/2.cc: New.
5795         * 27_io/objects/char/1.cc: New.
5796         * 27_io/objects/char/2.cc: New.
5797         * 27_io/objects/char/2523-1_xin.cc: New.
5798         * 27_io/objects/char/2523-1_xin.in: New.
5799         * 27_io/objects/char/2523-2_xin.cc: New.
5800         * 27_io/objects/char/2523-2_xin.in: New.
5801         * 27_io/objects/char/3045.cc: New.
5802         * 27_io/objects/char/3647.cc: New.
5803         * 27_io/objects/char/3_xin.cc: New.
5804         * 27_io/objects/char/3_xin.in: New.
5805         * 27_io/objects/char/4_xin.cc: New.
5806         * 27_io/objects/char/4_xin.in: New.
5807         * 27_io/objects/char/5268.cc: New.
5808         * 27_io/objects/char/5280_xin.cc: New.
5809         * 27_io/objects/char/5280_xin.in: New.
5810         * 27_io/objects/char/6548_xin.cc: New.
5811         * 27_io/objects/char/6548_xin.in: New.
5812         * 27_io/objects/char/6648-1_xin.cc: New.
5813         * 27_io/objects/char/6648-1_xin.in: New.
5814         * 27_io/objects/char/6648-2_xin.cc: New.
5815         * 27_io/objects/char/6648-2_xin.in: New.
5816         * 27_io/objects/char/7744_xin.cc: New.
5817         * 27_io/objects/char/7744_xin.in: New.
5818         * 27_io/objects/wchar_t/1.cc: New.
5819         * 27_io/types/1.cc: New.
5820         * 27_io/types/2.cc: New.
5821         * data/filebuf_members-1.tst: New.
5822         * data/filebuf_members-1.txt: New.
5823         * data/filebuf_virtuals-1.tst: New.
5824         * data/filebuf_virtuals-1.txt: New.
5825         * data/filebuf_virtuals-2.tst: New.
5826         * data/filebuf_virtuals-3.tst: New.
5827         * data/ifstream_members-1.tst: New.
5828         * data/ifstream_members-1.txt: New.
5829         * data/ios_base_members_static-1.tst: New.
5830         * data/istream_extractor_other-1.tst: New.
5831         * data/istream_extractor_other-1.txt: New.
5832         * data/istream_extractor_other-2.tst: New.
5833         * data/istream_seeks-1.tst: New.
5834         * data/istream_seeks-1.txt: New.
5835         * data/istream_seeks-2.tst: New.
5836         * data/istream_seeks-3.tst: New.
5837         * data/istream_unformatted-1.tst: New.
5838         * data/istream_unformatted-1.txt: New.
5839         * data/ofstream_members-1.tst: New.
5840         * data/ostream_inserter_char-1.tst: New.
5841         * data/ostream_inserter_char-1.txt: New.
5842         * data/ostream_inserter_other-1.tst: New.
5843         * data/ostream_inserter_other-2.tst: New.
5844         * data/ostream_seeks-1.tst: New.
5846 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
5848         * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
5849         requirement that __mode must be strict input or output.
5851         * include/std/std_streambuf.h (basic_streambuf::setp): Set
5852         _M_out_lim.
5854         * include/std/std_sstream.h (basic_strinbuf::str): Zero length
5855         output string shouldn't core.
5856         (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
5857         type.
5858         * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
5860         * include/bits/istream.tcc (basic_istream::putback): Set gcount to
5861         zero.
5863 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
5865         * testsuite/data: New directory.
5866         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
5867         to copy files from the testsuite data directory.
5868         (libstdc++-v3-list-sourcefiles): Add another test list filter, for
5869         testfiles containing _xin, which now means this is an interactive
5870         test and should be run with the interactive dejagnu hooks.
5871         * testsuite/Makefile.am: Remove testsuite_* files.
5872         * testsuite/Makefile.in: Regenerate.
5874 2003-04-09  Zack Weinberg  <zack@codesourcery.com>
5876         * docs/html/install.html: Document complete list of locales
5877         required by test suite.  Document procedure for installing
5878         said locales under Debian.  Solicit instructions for other
5879         operating systems.
5881 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
5883         * include/bits/sstream.tcc (overflow): Make sure operands of min
5884         and max have the same type.
5886 2003-04-04  Jerry Quinn  <jlquinn@optonline.net>
5888         PR libstdc++/10276
5889         * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
5890         initialization.
5892 2003-03-31  Paolo Carlini  <pcarlini@unitus.it>
5894         * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
5895         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
5896         Don't set _M_out_end.
5897         (basic_filebuf::overflow): Replace _M_out_buf_size() with
5898         this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
5899         * include/bits/sstream.tcc (basic_stringbuf::overflow):
5900         Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
5901         * include/bits/streambuf.tcc (basic_streambuf::sputc):
5902         Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
5903         (basic_streambuf::xsputn): Replace _M_out_buf_size() with
5904         _M_out_end - _M_out_cur.
5905         (__copy_streambufs): Likewise.
5906         * include/std/std_fstream.h (_M_set_determinate): Set
5907         _M_out_end here.
5909 2003-03-30  Paolo Carlini  <pcarlini@unitus.it>
5911         * include/bits/fstream.tcc (basic_filebuf::showmanyc,
5912         _M_convert_to_external, _M_really_overflow, seekoff): Fix
5913         test for synced buffer.
5914         * include/std/std_fstream.h (sync): Likewise.
5915         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
5916         basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
5918 2003-03-28  Benjamin Kosnik  <bkoz@redhat.com>
5920         * include/std/std_sstream.h (basic_istringstream): Adjust
5921         initialization.
5922         (basic_ostringstream): Same.
5923         (basic_stringstream): Same.
5924         * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
5925         (basic_ofstream): Same.
5926         (basic_fstream): Same.
5927         * include/std/std_ostream.h (basic_ostrem): Add protected ctor
5928         that does not call init.
5929         * include/std/std_istream.h (basic_istream): Same.
5930         (basic_iostream): Construct istream, ostream uninitialized, use
5931         init to initialize just once. Add protected ctor that does not
5932         call init.
5934 2003-03-28  Paolo Carlini  <pcarlini@unitus.it>
5935             Nathan Myers  <ncm@cantrip.org>
5937         PR libstdc++/9533
5938         * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
5939         call underflow().
5940         (basic_filebuf<>::showmanyc): Use the information provided
5941         by codecvt and __basic_file<>::showmanyc_helper to implement
5942         a non-trivial showmanyc.
5943         * config/io/basic_file_stdio.h
5944         (__basic_file<>::showmanyc_helper): New, declare.
5945         * config/io/basic_file_stdio.cc
5946         (__basic_file<>::showmanyc_helper): Define.
5947         (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
5948         (__basic_file<char>::open): Don't call fcntl().
5949         * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
5950         GLIBCPP_CHECK_POLL): New macros.
5951         * configure.in: Call here.
5952         * acconfig.h: Add #undefs for the corresponding symbols.
5953         * aclocal.m4: Regenerate.
5954         * configure: Regenerate.
5955         * config.h.in: Regenerate.
5957 2003-03-24  Benjamin Kosnik  <bkoz@redhat.com>
5959         * config/linker-map.gnu: Remove string export restrictions.
5961 2003-03-24  Paolo Carlini  <pcarlini@unitus.it>
5963         * testsuite/21_strings/basic_string/find/char/1.cc: Remove
5964         find_first_of, find_last_of and find_last_not_of tests.
5965         * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
5966         tests here, new file.
5967         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
5968         remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
5969         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
5970         wchar_t find_first_of tests here, new file.
5971         * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
5972         tests here.
5973         * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
5974         tests here.
5975         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
5976         wchar_t find_last_of tests here.
5977         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
5978         wchar_t find_last_not_of tests here.
5980 2003-03-22  Loren J. Rittle  <ljrittle@acm.org>
5982         * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
5983         Correct return value.
5985 2003-03-21  Jerry Quinn  <jlquinn@optonline.net>
5987         PR libstdc++/5730
5988         * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
5989         * include/std/std_complex.h (norm):  Use faster,
5990         less accurate computation for builtin float types under --fast-math.
5992 2003-03-21  Magnus Fromreide  <gnats@magfr.user.lysator.liu.se>
5994         * testsuite/testsuite_hooks.h: Fix warning nits.
5996 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
5998         * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
5999         Only .set mips2 for the o32 ABI.
6001 2003-03-19  Paolo Carlini  <pcarlini@unitus.it>
6003         * testsuite/21_strings/char_traits/requirements/char/1.cc:
6004         Test char not wchar_t.
6006 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
6008         * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
6009         Correct size, taking into account sizeof(wchar_t).
6011 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
6013         Reshuffle 21_strings testsuite.
6014         * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
6015         assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
6016         element_access.cc, operations.cc, char_traits_requirements.cc,
6017         find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
6018         compare.cc, inserters_extractors.cc, substr.cc: Split up, add
6019         wchar_t tests as follows.
6020         * 21_strings/basic_string/append/char/1.cc: New.
6021         * 21_strings/basic_string/append/wchar_t/1.cc: New.
6022         * 21_strings/basic_string/assign/char/1.cc: New.
6023         * 21_strings/basic_string/assign/char/2.cc: New.
6024         * 21_strings/basic_string/assign/char/3.cc: New.
6025         * 21_strings/basic_string/assign/wchar_t/1.cc: New.
6026         * 21_strings/basic_string/assign/wchar_t/2.cc: New.
6027         * 21_strings/basic_string/assign/wchar_t/3.cc: New.
6028         * 21_strings/basic_string/capacity/1.cc: New.
6029         * 21_strings/basic_string/capacity/char/1.cc: New.
6030         * 21_strings/basic_string/capacity/char/2.cc: New.
6031         * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
6032         * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
6033         * 21_strings/basic_string/compare/char/1.cc: New.
6034         * 21_strings/basic_string/compare/wchar_t/1.cc: New.
6035         * 21_strings/basic_string/cons/char/1.cc: New.
6036         * 21_strings/basic_string/cons/char/2.cc: New.
6037         * 21_strings/basic_string/cons/char/3.cc: New.
6038         * 21_strings/basic_string/cons/char/4.cc: New.
6039         * 21_strings/basic_string/cons/char/5.cc: New.
6040         * 21_strings/basic_string/cons/wchar_t/1.cc: New.
6041         * 21_strings/basic_string/cons/wchar_t/2.cc: New.
6042         * 21_strings/basic_string/cons/wchar_t/3.cc: New.
6043         * 21_strings/basic_string/cons/wchar_t/4.cc: New.
6044         * 21_strings/basic_string/cons/wchar_t/5.cc: New.
6045         * 21_strings/basic_string/element_access/char/1.cc: New.
6046         * 21_strings/basic_string/element_access/char/2.cc: New.
6047         * 21_strings/basic_string/element_access/char/3.cc: New.
6048         * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
6049         * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
6050         * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
6051         * 21_strings/basic_string/find/char/1.cc: New.
6052         * 21_strings/basic_string/find/wchar_t/1.cc: New.
6053         * 21_strings/basic_string/insert/char/1.cc: New.
6054         * 21_strings/basic_string/insert/char/2.cc: New.
6055         * 21_strings/basic_string/insert/wchar_t/1.cc: New.
6056         * 21_strings/basic_string/insert/wchar_t/2.cc: New.
6057         * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
6058         * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
6059         * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
6060         * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
6061         * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
6062         * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
6063         * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
6064         * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
6065         * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
6066         * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
6067         * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
6068         * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
6069         * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
6070         * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
6071         * 21_strings/basic_string/operators/char/1.cc: New.
6072         * 21_strings/basic_string/operators/char/2.cc: New.
6073         * 21_strings/basic_string/operators/wchar_t/1.cc: New.
6074         * 21_strings/basic_string/operators/wchar_t/2.cc: New.
6075         * 21_strings/basic_string/replace/char/1.cc: New.
6076         * 21_strings/basic_string/replace/char/2.cc: New.
6077         * 21_strings/basic_string/replace/char/3.cc: New.
6078         * 21_strings/basic_string/replace/char/4.cc: New.
6079         * 21_strings/basic_string/replace/char/5.cc: New.
6080         * 21_strings/basic_string/replace/wchar_t/1.cc: New.
6081         * 21_strings/basic_string/replace/wchar_t/2.cc: New.
6082         * 21_strings/basic_string/replace/wchar_t/3.cc: New.
6083         * 21_strings/basic_string/replace/wchar_t/4.cc: New.
6084         * 21_strings/basic_string/replace/wchar_t/5.cc: New.
6085         * 21_strings/basic_string/rfind/char/1.cc: New.
6086         * 21_strings/basic_string/rfind/char/2.cc: New.
6087         * 21_strings/basic_string/rfind/char/3.cc: New.
6088         * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
6089         * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
6090         * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
6091         * 21_strings/basic_string/substr/char/1.cc: New.
6092         * 21_strings/basic_string/substr/wchar_t/1.cc: New.
6093         * 21_strings/c_strings/char/1.cc: New.
6094         * 21_strings/c_strings/char/2.cc: New.
6095         * 21_strings/c_strings/wchar_t/1.cc: New.
6096         * 21_strings/c_strings/wchar_t/2.cc: New.
6097         * 21_strings/char_traits/requirements/char/1.cc: New.
6098         * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
6099         * 21_strings/char_traits/typedefs/char/1.cc: New.
6101 2003-03-17  Paolo Carlini  <pcarlini@unitus.it>
6102             Petur Runolfsson  <peturr02@ru.is>
6104         PR libstdc++/10097
6105         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
6106         basic_filebuf<wchar_t>::_M_underflow_common):
6107         if (gptr() < egptr()) return *gptr().
6108         * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
6110         * testsuite/27_io/filebuf_members.cc (test_04): Minor
6111         changes: unlink fifo before making it, fix spelling error.
6113 2003-03-17  Benjamin Kosnik  <bkoz@redhat.com>
6115         * testsuite/Makefile.am (CLEANFILES): Add tmp*.
6116         * testsuite/Makefile.in: Regenerate.
6117         * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
6118         Cleanups.
6120 2003-03-17  Petur Runolfsson  <peturr02@ru.is>
6122         PR libstdc++/9964
6123         * include/bits/fstream.tcc (basic_filebuf::close):
6124         Always close file, even when write fails.
6125         * testsuite/27_io/filebuf_members.cc (test_07):  New test.
6127 2003-03-17  Danny Smith  <dannysmith@users.sourceforge.net>
6129         * libsupc++/Makefile.am (C_COMPILE): Remove.
6130         (LTCOMPILE): Likewise.
6131         * libsupc++/Makefile.in: Regenerate.
6133 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
6135         * testsuite/23_containers/bitset_members.cc: Add test variable.
6136         * testsuite/23_containers/map_insert.cc: Same.
6137         * testsuite/22_locale/ctype/cons/char/1.cc: Same.
6138         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
6139         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
6140         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
6141         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
6142         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
6143         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
6144         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
6145         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
6146         * testsuite/27_io/istream_exception.cc: Same.
6147         * testsuite/27_io/filebuf_virtuals.cc: Same.
6148         * testsuite/27_io/stringbuf_virtuals.cc: Same.
6149         * testsuite/27_io/ostream_inserter_arith.cc: Same.
6150         * testsuite/26_numerics/valarray_operators.cc: Same.
6151         * testsuite/26_numerics/slice.cc: Same.
6152         * testsuite/26_numerics/slice_array_assignment.cc: Same.
6153         * testsuite/24_iterators/istream_iterator.cc: Same.
6154         * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
6156 2003-03-14  Petur Runolfsson  <peturr02@ru.is>
6158         PR libstdc++/9581
6159         PR libstdc++/9870
6160         * config/locale/generic/ctype_members.cc,
6161         * config/locale/gnu/ctype_members.cc
6162         (ctype<wchar_t>::do_widen(char)):  Cast argument to
6163         unsigned char before passing to btowc.
6164         (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
6165         Convert characters with btowc instead of mbsrtowcs.
6166         (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
6167         char, char*):
6168         Convert characters with wctob instead of wcsrtombs.
6169         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc:  New test.
6170         * testsuite/22_locale/ctype/widen/wchar_t/2.cc:  New test.
6171         * testsuite/22_locale/ctype/widen/wchar_t/3.cc:  New test.
6173 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
6175         * include/stdc++.h: New.
6176         * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
6177         * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
6178         * include/Makefile.in: Regenerate.
6179         * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
6180         (--cxxflags): Put -g -O2 here.
6181         * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
6183 2003-03-14  Loren J. Rittle  <ljrittle@acm.org>
6185         * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
6186         missing named locale.
6188 2003-03-14  Andreas Schwab  <schwab@suse.de>
6190         * configure.in: Only append to makefiles that are newly created to
6191         avoid multiple multi-do/multi-clean rules.
6192         * configure: Rebuilt.
6194 2003-03-13  Jonathan Wakely  <redi@gcc.gnu.org>
6196         * docs/html/configopts.html, docs/html/documentation.html,
6197         docs/html/explanations.html, docs/html/install.html,
6198         docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
6199         invalid XHTML and make page header style consistent.
6201 2003-03-12  Jonathan Wakely  <redi@gcc.gnu.org>
6203         * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
6204         * docs/html/faq/index.txt: Regenerate.
6205         * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
6207 2003-03-12  Andreas Schwab  <schwab@suse.de>
6209         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
6210         glibcpp_toolexeclibdir.
6211         * aclocal.m4, configure: Rebuilt.
6213 2003-03-11  Jonathan Wakely  <redi@gcc.gnu.org>
6215         * docs/html/faq/index.html: Update text about location of headers.
6216         * docs/html/faq/index.txt: Regenerate.
6218 2003-03-11  Carlo Wood  <carlo@alinoe.com>
6220         * include/bits/demangle.h: Prepend accessors of
6221         class qualifier with 'get_' in order to fix warnings
6222         when compiling with -Wshadow.
6224 2003-03-11  Loren J. Rittle  <ljrittle@acm.org>
6226         * config/os/bsd/freebsd/ctype_inline.h:  Support _M_table
6227         when so installed.
6228         * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
6230         * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
6231         report lack of setenv().
6233 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
6235         * config/io/basic_file_stdio.cc: include <unistd.h>.
6237 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
6238             Nathan Myers  <ncm@cantrip.org>
6240         PR libstdc++/7744
6241         * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
6242         seekoff, seekpos): Add a boolean parameter __stdio.
6243         * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
6244         seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
6245         fseek/ftell, respectively), otherwise read (write, lseek, lseek,
6246         respectively).
6247         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
6248         _M_really_overflow, seekoff): Use the boolean parameter in the calls.
6249         * include/std/std_fstream.h (sync): Likewise.
6250         * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
6251         * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
6252         libstdc++/8399 commit involving isatty(0).
6253         * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
6254         (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
6255         * configure.in: Remove call.
6256         * aclocal.m4: Regenerate.
6257         * config.h.in: Regenerate.
6258         * configure: Regenerate.
6259         * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
6261 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
6263         PR libstdc++/9988
6264         * include/bits/fstream.tcc (overflow): don't write EOF to file.
6265         * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
6267 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
6269         PR libstdc++/9561
6270         * include/bits/basic_ios.h (_M_setstate): New.
6271         * include/bits/ostream.tcc (operator<<): Use it.
6272         * include/bits/istream.tcc (operator>>): Use it.
6273         * include/std/std_ostream.h (operator<<): Make friends.
6274         * include/std/std_istream.h (operator>>): Make friends.
6275         * testsuite/27_io/ostream_exception.cc,
6276         testsuite/27_io/istream_exception.cc: New tests.
6278 2003-03-08  Benjamin Kosnik  <bkoz@redhat.com>
6280         * include/bits/locale_facets.tcc: Fix typo.
6282 2003-03-08  Loren J. Rittle  <ljrittle@acm.org>
6284         * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
6286         * config/locale/generic/c_locale.cc
6287         (locale::facet::_S_create_c_locale): Throw runtime exception when
6288         unsupported language is specified.
6289         * testsuite/testsuite_hooks.h
6290         (run_test_wrapped_generic_locale_exception_catcher): New function.
6291         * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
6292         Suppress runtime exception thrown by generic implementation.
6293         (run_tests_wrapped_env): Likewise.
6294         (run_test_wrapped_generic_locale_exception_catcher): New function.
6295         * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
6296         * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
6297         * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
6298         * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
6299         * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
6300         * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
6301         * testsuite/22_locale/collate_byname/1.cc: New test wrap.
6302         * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
6303         * testsuite/22_locale/facet/2.cc: New test wrap.
6304         * testsuite/22_locale/locale/cons/4.cc: New test wrap.
6305         * testsuite/22_locale/locale/cons/5.cc: New test wrap.
6306         * testsuite/22_locale/locale/cons/7.cc: New test wrap.
6307         * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
6308         * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
6309         * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
6310         * testsuite/22_locale/messages_byname/1.cc: New test wrap.
6311         * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
6312         * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
6313         * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
6314         * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
6315         * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
6316         * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
6317         * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
6318         * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
6319         * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
6320         * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
6321         * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
6322         * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
6323         * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
6324         * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
6325         * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
6326         * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
6327         * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
6328         * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
6329         * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
6330         * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
6331         * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
6332         * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
6333         * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
6334         * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
6335         * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
6336         * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
6337         * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
6338         * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
6339         * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
6340         * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
6341         * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
6342         * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
6343         * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
6344         * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
6345         * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
6346         * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
6347         * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
6348         * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
6349         * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
6350         * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
6351         * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
6352         * testsuite/27_io/ios_members.cc: New test wrap.
6353         * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
6354         New test wrap.
6355         * testsuite/27_io/streambuf_members.cc: New test wrap.
6356         * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
6358 2003-03-08  Paolo Carlini <pcarlini@unitus.it>
6359             Petur Runolfsson  <peturr02@ru.is>
6361         PR libstdc++/9424
6362         * include/bits/streambuf.tcc (__copy_streambufs): Use
6363         sgetn-sputn only when sputn cannot fail, otherwise fall back
6364         to safe snextc-sputc.
6365         * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
6367 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
6369         * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
6370         locale cache for truename and falsename.
6372 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
6374         * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
6375         _M_word_size initialization.
6377 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
6379         * include/bits/fstream.tcc (_M_convert_to_external):
6380         Set __elen to zero if codecvt::out eventually fails.
6382 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
6384         PR libstdc++/9182
6385         * include/bits/fstream.tcc (_M_really_overflow): Check
6386         for _M_convert_to_external possible failures.
6387         * include/std/std_fstream.h (sync): Check _M_really_overflow
6388         return value and return -1 in case of failure.
6389         * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
6391 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
6393         PR libstdc++/9826
6394         * include/bits/istream.tcc (operator>>(_CharT*),
6395         operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
6396         * testsuite/27_io/stringstream.cc (test02): Add.
6398         * include/bits/istream.tcc (operator>>(_CharT*)):
6399         Assign a char_type to *__s.
6401 2003-03-07  Petur Runolfsson  <peturr02@ru.is>
6403         PR libstdc++/9817
6404         * include/bits/locale_facets.tcc
6405         (collate::do_compare, collate::do_transform):
6406         Handle nul characters in input.
6407         * testsuite/22_locale/collate/compare/char/3.cc:  New test.
6408         * testsuite/22_locale/collate/compare/wchar_t/3.cc:  New test.
6409         * testsuite/22_locale/collate/transform/char/3.cc:  New test.
6410         * testsuite/22_locale/collate/transform/wchar_t/3.cc:  New test.
6412 2003-03-07  Jerry Quinn  <jlquinn@optonline.net>
6414         * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
6415         sputn fails.
6416         * testsuite/27_io/ostream_fail.cc: New test.
6418 2003-03-07  Matthias Klose  <doko@debian.org>
6420         * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
6421         FLAGS_TO_PASS: Set to AM_MAKEFLAGS
6422         * Makefile.in: Regenerate.
6423         * libsupc++/Makefile.am: Express glibcppinstalldir in terms
6424         of gxx_include_dir.
6425         AM_MAKEFLAGS: Pass gxx_include_dir.
6426         * libsupc++/Makefile.in: Regenerate.
6428 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
6430         * testsuite/27_io/ios_base_storage.cc (test02): Set exception
6431         mask.  Test setting small-numbered pword and iword slots.  Test
6432         behavior at limit of numeric_limits::max.  Check that values are
6433         still good after failures.
6435 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
6437         * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
6438         (ios_base::ios_base): Set _M_word, _M_word_size.
6439         (ios_base::~ios_base): Remove redundant test.
6440         * testsuite/27_io/ios_base_storage.cc (test03): New.
6442 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
6444         * src/strstream.cc, include/bits/basic_string.tcc: Remove
6445         incorrect whitespace added in my previous change.
6447 2003-03-05  Carlo Wood  <carlo@alinoe.com>
6449         * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
6450         _S_initialized() in order to allow debugging libraries to detect
6451         when the std streams are initialized from an overloaded operator
6452         new.
6454 2003-03-05  Benjamin Kosnik  <bkoz@redhat.com>
6456         * libsupc++/demangle.h: Move to..
6457         * include/bits/demangle.h: ...here.
6458         * src/demangle.cc: Adjust include.
6459         * include/Makefile.am (bits_headers): Add.
6460         * include/Makefile.in: Regenerate.
6462 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
6464         * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
6466         * config/linker-map.gnu: Filter typeinfo and vtable info.
6468 2003-03-04  Jerry Quinn  <jlquinn@optonline.net>
6470         * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
6471         new failure.  Throw exception if badbit and exception mask when ix
6472         >= numeric_limits<int>::max().
6474 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
6476         * src/strstream.cc (strstreambuf::overflow): Make sure operands of
6477         min and max have the same type.
6478         * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
6480 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
6482         * include/Makefile.am (allstamps): Remove stamp-std-precompile.
6483         * include/Makefile.in: Regenerate.
6485 2003-03-03  Benjamin Kosnik  <bkoz@redhat.com>
6487         * testsuite/abi_check.cc (report_symbol_info): Add version info.
6489         * config/linker-map.gnu: Hide more stuff.
6490         * include/Makefile.am: Cleanups.
6491         * include/Makefile.in: Regenerate.
6493 2003-02-27  Jerry Quinn  <jlquinn@optonline.net>
6495         * config/locale/generic/messages_members.h (messages::messages):
6496         Remove name from unused parameter.
6498 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
6500         * src/Makefile.am (sources): Add demangle.cc.
6501         (demangle.o): Add.
6502         (demangle.lo): Add.
6503         * src/Makefile.in: Regenerate.
6504         * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
6505         * libsupc++/Makefile.in: Regenerate.
6507         * testsuite/testsuite_hooks.h
6508         (__gnu_cxx_test::verify_demangle): New.
6509         * testsuite/testsuite_hooks.cc: Define.
6511 2003-02-27  Carlo Wood  <carlo@alinoe.com>
6513         * src/demangle.cc: New.
6514         * libsupc++/demangle.h: New.
6516 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
6517             Carlo Wood  <carlo@alinoe.com>
6519         * testsuite/demangle/abi_examples/01.cc: New.
6520         * testsuite/demangle/abi_examples/02.cc: New.
6521         * testsuite/demangle/abi_examples/03.cc: New.
6522         * testsuite/demangle/abi_examples/04.cc: New.
6523         * testsuite/demangle/abi_examples/05.cc: New.
6524         * testsuite/demangle/abi_examples/06.cc: New.
6525         * testsuite/demangle/abi_examples/07.cc: New.
6526         * testsuite/demangle/abi_examples/08.cc: New.
6527         * testsuite/demangle/abi_examples/09.cc: New.
6528         * testsuite/demangle/abi_examples/10.cc: New.
6529         * testsuite/demangle/abi_examples/11.cc: New.
6530         * testsuite/demangle/abi_examples/12.cc: New.
6531         * testsuite/demangle/abi_examples/13.cc: New.
6532         * testsuite/demangle/abi_examples/14.cc: New.
6533         * testsuite/demangle/abi_examples/15.cc: New.
6534         * testsuite/demangle/abi_examples/16.cc: New.
6535         * testsuite/demangle/abi_examples/17.cc: New.
6536         * testsuite/demangle/abi_examples/18.cc: New.
6537         * testsuite/demangle/abi_examples/19.cc: New.
6538         * testsuite/demangle/abi_examples/20.cc: New.
6539         * testsuite/demangle/abi_examples/21.cc: New.
6540         * testsuite/demangle/abi_examples/22.cc: New.
6541         * testsuite/demangle/abi_examples/23.cc: New.
6542         * testsuite/demangle/abi_examples/24.cc: New.
6543         * testsuite/demangle/abi_examples/25.cc: New.
6544         * testsuite/demangle/abi_examples/26.cc: New.
6545         * testsuite/demangle/abi_text/01.cc: New.
6546         * testsuite/demangle/abi_text/02.cc: New.
6547         * testsuite/demangle/abi_text/03.cc: New.
6548         * testsuite/demangle/abi_text/04.cc: New.
6549         * testsuite/demangle/abi_text/05.cc: New.
6550         * testsuite/demangle/abi_text/06.cc: New.
6551         * testsuite/demangle/abi_text/07.cc: New.
6552         * testsuite/demangle/abi_text/08.cc: New.
6553         * testsuite/demangle/abi_text/09.cc: New.
6554         * testsuite/demangle/abi_text/10.cc: New.
6555         * testsuite/demangle/abi_text/11.cc: New.
6556         * testsuite/demangle/abi_text/12.cc: New.
6557         * testsuite/demangle/abi_text/13.cc: New.
6558         * testsuite/demangle/abi_text/14.cc: New.
6559         * testsuite/demangle/regression/3111-1.cc: New.
6560         * testsuite/demangle/regression/3111-2.cc: New.
6561         * testsuite/demangle/regression/7986-01.cc: New.
6562         * testsuite/demangle/regression/7986-02.cc: New.
6563         * testsuite/demangle/regression/7986-03.cc: New.
6564         * testsuite/demangle/regression/7986-04.cc: New.
6565         * testsuite/demangle/regression/7986-05.cc: New.
6566         * testsuite/demangle/regression/7986-06.cc: New.
6567         * testsuite/demangle/regression/7986-07.cc: New.
6568         * testsuite/demangle/regression/7986-08.cc: New.
6569         * testsuite/demangle/regression/7986-09.cc: New.
6570         * testsuite/demangle/regression/7986-10.cc: New.
6571         * testsuite/demangle/regression/7986-11.cc: New.
6572         * testsuite/demangle/regression/7986-12.cc: New.
6573         * testsuite/demangle/regression/7986.cc: New.
6574         * testsuite/demangle/regression/8897.cc: New.
6575         * testsuite/demangle/regression/cw-01.cc: New.
6576         * testsuite/demangle/regression/cw-02.cc: New.
6577         * testsuite/demangle/regression/cw-03.cc: New.
6578         * testsuite/demangle/regression/cw-04.cc: New.
6579         * testsuite/demangle/regression/cw-05.cc: New.
6580         * testsuite/demangle/regression/cw-06.cc: New.
6581         * testsuite/demangle/regression/cw-07.cc: New.
6582         * testsuite/demangle/regression/cw-08.cc: New.
6583         * testsuite/demangle/regression/cw-09.cc: New.
6584         * testsuite/demangle/regression/cw-10.cc: New.
6585         * testsuite/demangle/regression/cw-11.cc: New.
6586         * testsuite/demangle/regression/cw-12.cc: New.
6587         * testsuite/demangle/regression/cw-13.cc: New.
6588         * testsuite/demangle/regression/cw-14.cc: New.
6589         * testsuite/demangle/regression/old.cc: New.
6591 2003-02-25  Phil Edwards  <pme@gcc.gnu.org>
6593         * docs/doxygen/Intro.3:  Update with new (proper) names.
6594         * docs/doxygen/TODO:  Update.
6595         * docs/doxygen/run_doxygen:  More comments, fix up man pages.
6596         Fake entries for standard typedefs.
6597         * docs/doxygen/user.cfg.in:  Turn INLINE_INHERITED_MEMB back on.
6598         * docs/html/documentation.html:  Top-level man page is now called
6599         C++Intro.
6600         * include/std/std_limits.h:  Doxygenate.
6602 2003-02-25  Scott Snyder  <snyder@fnal.gov>
6604         PR libstdc++/9811
6605         * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
6606         Correct documentation.
6607         * include/bits/stl_multimap.h (lower_bound, upper_bound,
6608         equal_range): Likewise.
6610 2003-02-24  Paolo Carlini  <pcarlini@unitus.it>
6612         PR libstdc++/9825
6613         * src/fstream.cc
6614         (basic_filebuf<char/wchar_t>::_M_underflow_common): When
6615         __bump is true (uflow), always increment the read pointer
6616         (_M_in_cur) before returning successfully.
6617         * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
6619 2003-02-24  Paolo Carlini <pcarlini@unitus.it>
6620             Nathan Myers <ncm@cantrip.org>
6622         PR libstdc++/9404, PR libstdc++/9701 (partial)
6623         (aka pptr == epptr implies overflow)
6624         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
6625         Consistently, _M_out_end points to the end of the buffer just
6626         created.
6627         (overflow): Tweak to use _M_out_buf_size().
6628         (_M_convert_to_external): The role of the old _M_out_end is
6629         now played by _M_out_lim.
6630         (_M_really_overflow): Likewise.
6631         (seekoff): Likewise.
6632         (setbuf): _M_out_end points to the end of the external buffer.
6633         * include/bits/sstream.tcc (overflow): Rewrote, taking into
6634         account the resolution of DR 169 (TC).
6635         (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
6636         (seekpos): Use _M_string.capacity(); tweak.
6637         * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
6638         * include/std/std_fstream.h (sync): The role of the old
6639         _M_out_end is now played by _M_out_lim.
6640         (_M_set_indeterminate): Use _M_set_determinate.
6641         (_M_set_determinate): _M_out_end is now _M_out_lim.
6642         (_M_is_indeterminate): Likewise.
6643         * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
6644         (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
6645         which have the information readily available as _M_string.capacity();
6646         for ate and app modes, pass the string size to _M_really_sync.
6647         (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
6648         point to the end of the buffer (i.e., epptr) and to the string end,
6649         respectively.
6650         * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
6651         which points to the right limit of the used put area.
6652         (_M_out_cur_move): The role of the old _M_out_end is now played
6653         by _M_out_lim.
6654         (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
6655         _M_out_end  - _M_out_cur (i.e., pptr), _very_ close to the letter
6656         of the standard.
6657         (basic_streambuf()): Initialize _M_out_lim too.
6658         * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
6659         * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
6660         * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
6662 2003-02-24  Benjamin Kosnik  <bkoz@redhat.com>
6664         * testsuite/27_io/ios_base_storage.cc (main): Call
6665         set_memory_limits.
6667 2003-02-21  Jerry Quinn  <jlquinn@optonline.net>
6669         * include/bits/locale_facets.tcc (_M_convert_float): Replace
6670         numpunct facet accesses with data from __locale_cache.
6672 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
6674         * docs/html/faq/index.html (3.9):  New note, wchar_t on FreeBSD.
6675         * docs/html/faq/index.txt:  Regenerate.
6677 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
6679         * config/linker-map.gnu:  Also export locking symbols needed for the
6680         generic atomicity.h case.
6682 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
6684         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
6685         config.status.
6686         * configure: Rebuilt.
6688 2003-02-19  Paolo Carlini  <pcarlini@unitus.it>
6690         * include/bits/sstream.tcc (overflow): According to
6691         27.7.1.3, p5, actual output is performed by sputc(c).
6693 2003-02-19  Phil Edwards  <pme@gcc.gnu.org>
6695         PR libstdc++/9582
6696         * include/bits/stl_alloc.h:  Remove all traces of assert().
6698 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
6700         * include/std/std_sstream.h (str()): the size of the
6701         current string may be different from the initial one
6702         whenever _M_out_end > _M_out_beg.
6703         * testsuite/27_io/stringbuf_members.cc (test07): Add.
6705 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
6707         PR libstdc++/9582
6708         * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
6710 2003-02-17  Benjamin Kosnik  <bkoz@redhat.com>
6712         * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
6713         * testsuite/27_io/ios_members.cc (test03): New.
6715 2003-02-17  Jerry Quinn  <jlquinn@optonline.net>
6717         * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
6718         (basic_ios::_M_cache_facets): Move into above.
6719         * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
6720         cache.
6721         (basic_ios::imbue): Force locale cache to be built.
6722         (basic_ios::_M_init): Create and initialize locale cache.
6723         * include/bits/ios_base.h (__locale_cache_base): Declare.
6724         (ios_base::_M_locale_cache): New.
6725         (ios_base::_M_cache): Define.
6726         * include/bits/locale_facets.h: (__num_base): Fix comment.  Add
6727         _S_end.
6728         (__locale_cache_base,__locale_cache<_CharT>):  New classes.
6729         (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
6730         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
6731         cache literal string, grouping flag, thousands separator.
6732         (__locale_cache<_CharT>::__locale_cache): New.
6733         (__locale_cache<_CharT>::_M_init): New.
6734         * src/ios.cc: Clear _M_locale_cache in constructor.
6735         * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
6736         New.
6738 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
6740         * src/locale-inst.cc: Do not include <cassert>.
6741         * src/locale.cc: Likewise.
6743 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
6745         PR libstdc++/9580
6746         * include/std/std_fstream.h: Declare underflow and uflow
6747         specializations, change generic definitions to do nothing.
6748         * src/fstream.cc: Add underflow and uflow specializations.
6750 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
6752         PR libstdc++/9169
6753         * include/bits/fstream.tcc (_M_convert_to_external):
6754         Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
6755         * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
6757 2003-02-13  Benjamin Kosnik  <bkoz@redhat.com>
6759         * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
6760         * include/bits/basic_ios.tcc: Guard use of extern template.
6761         * include/std/std_iomanip.h: Same.
6762         * include/bits/streambuf.tcc: Same.
6763         * include/bits/stl_alloc.h: Same.
6764         * include/bits/locale_facets.tcc: Same.
6765         * include/bits/ostream.tcc: Same.
6766         * include/bits/istream.tcc: Same.
6767         * include/bits/fstream.tcc: Same.
6768         * include/bits/basic_string.tcc: Same.
6770 2003-02-13  Paolo Carlini  <pcarlini@unitus.it>
6772         * include/bits/ostream.tcc (sentry::sentry): Improve
6773         performance-wise the fix for libstdc++/9563.
6775 2003-02-12  Phil Edwards  <pme@gcc.gnu.org>
6777         * config/cpu/generic/atomicity.h (_Atomic_add_mutex):  Fix declaration.
6778         (_GLIBCPP_NEED_GENERIC_MUTEX):  Define for this file.
6779         (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once):  Declare
6780         when we don't have static mutex initialization.
6781         (__exchange_and_add):  Use _Atomic_add_mutex_once.
6782         * src/misc-inst.cc:  Definitions of all the above.
6784 2003-02-12  Paolo Carlini  <pcarlini@unitus.it>
6786         PR libstdc++/9563
6787         * include/bits/ostream.tcc (sentry::sentry): Check
6788         the state of the stream after the preparation.
6789         * testsuite/27_io/ostream_sentry.cc (test02): Add.
6791 2003-02-11  Benjamin Kosnik  <bkoz@redhat.com>
6793         * include/Makefile.am (stamp-std-precompile): Add rule.
6794         * include/Makefile.in: Regenerated.
6796 2003-02-11 Jerry Quinn  <jlquinn@optonline.net>
6797            Benjamin Kosnik  <benjamin@redhat.com>
6799         * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
6800         Add indexes into this array.
6801         (__num_base::_S_atoms): To _S_atoms_in.
6802         (num_put::_M_insert): Rename to _M_pad.
6803         (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
6804         (num_put::_M_widen_int): Rename to _M_group_int.
6805         (num_put::_M_widen_float): Rename to _M_group_float.
6806         * include/bits/locale_facets.tcc (__int_to_char): New inline
6807         function and adapter functions.
6808         (num_put::_M_group_int): Streamline.
6809         (num_put::_M_group_float): Streamline.
6810         (num_put::_M_convert_int): Remove unused parameter names. Choose
6811         large enough buffer for text.  Use __int_to_char instead of
6812         __convert_from_v.  Formatted text is now at the end of the buffer.
6813         (num_put::_M_convert_float): Preliminary fixups.
6814         * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
6815         (__int_to_char<unsigned long long>): Same.
6816         (__int_to_char<char, unsigned long>): New.
6817         (__int_to_char<char, unsigned long long>): New.
6818         (__int_to_char<wchar_t, unsigned long>): New.
6819         (__int_to_char<wchar_t, unsigned long long>): New.
6821 2003-02-11  Scott Snyder  <snyder@fnal.gov>
6823         PR libstdc++/9659
6824         * include/bits/fstream.tcc (seekoff): Avoid operator+
6825         for pos_type.
6827 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
6829         PR libstdc++/9320
6830         * include/ext/stdio_filebuf.h
6831         (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
6832         stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
6833         Change to take a __size parameter of type size_t, not
6834         of type (template parameter dependent) int_type.
6835         * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
6836         size vars to size_t.
6837         * testsuite/ext/stdio_filebuf.cc: Add.
6839 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
6840             Petur Runolfsson  <peturr02@ru.is>
6842         PR libstdc++/9318
6843         * include/bits/streambuf.tcc (__copy_streambufs):
6844         Don't conditionalize the copy to __testput.
6845         * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
6847 2002-02-11  DJ Delorie  <dj@redhat.com>
6849         * acinclude.m4: Check for native targets that can't link at
6850         this point in the build.
6851         * aclocal.m4: Regenerate.
6852         * configure: Regenerate.
6854 2003-02-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6856         * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
6857         Correct alignment.
6858         (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
6859         lock.
6861 2003-02-07  Paolo Carlini  <pcarlini@unitus.it>
6863         * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
6864         unsigned char platforms.
6866 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
6868         PR libstdc++/9562
6869         * include/std/std_istream.h
6870         (basic_istream::sentry::operator bool()): Make const.
6871         * include/std/std_ostream.h
6872         (basic_ostream::sentry::operator bool()): Likewise.
6873         * testsuite/27_io/istream_sentry.cc (test03): Add.
6874         * testsuite/27_io/ostream_sentry.cc: Add.
6876 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
6878         PR libstdc++/9548
6879         Implement resolution of DR 231 (Ready)
6880         * include/bits/locale_facets.h (__num_base::_S_format_float):
6881         Change declaration: return void, remove __prec parameter.
6882         * src/locale.cc (__num_base::_S_format_float): Implement
6883         resolution of DR 231.
6884         * include/bits/locale_facets.tcc (num_put::_M_convert_float):
6885         Tweak uses. Check for negative precision.
6886         * testsuite/22_locale/num_put/put/char/6.cc: Add
6887         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
6889 2003-02-06  Peter Soetens  <peter.soetens@mech.kuleuven.ac.be>
6891         * config/io/basic_file_libio.h: Fixups.
6892         * config/io/c_io_libio.h: Same.
6893         * libio/Makefile.am: Same.
6894         * libio/Makefile.in: Regenerated.
6896 2003-02-06  Benjamin Kosnik  <bkoz@redhat.com>
6898         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
6899         Explicitly use the "C" locale.
6900         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
6902 2003-02-06  Petur Runolfsson  <peturr02@ru.is>
6904         DR 75
6905         DR 305
6906         PR libstdc++/9028 (partial)
6907         PR libstdc++/9224
6908         PR libstdc++/9246
6909         PR libstdc++/9247
6911         * src/codecvt.cc
6912         (codecvt<wchar_t, char, mbstate_t>::do_encoding,
6913         codecvt<wchar_t, char, mbstate_t>::do_length,
6914         codecvt<wchar_t, char, mbstate_t>::do_max_length):
6915         Move...
6916         * config/locale/generic/codecvt_members.cc:  ...here.
6917         * config/locale/gnu/codecvt_members.cc:  ...and here.
6919         * config/locale/generic/codecvt_members.cc,
6920         * config/locale/gnu/codecvt_members.cc
6921         (codecvt<wchar_t, char, mbstate_t>::do_encoding
6922         codecvt<wchar_t, char, mbstate_t>::do_in,
6923         codecvt<wchar_t, char, mbstate_t>::do_length,
6924         codecvt<wchar_t, char, mbstate_t>::do_max_length,
6925         codecvt<wchar_t, char, mbstate_t>::do_out):
6926         New implementation that handles stateless encodings,
6927         including UTF-8.
6929         * config/locale/generic/codecvt_members.cc,
6930         * config/locale/gnu/codecvt_members.cc,
6931         * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
6932         * include/bits/codecvt.h,
6933         * src/codecvt.cc
6934         (codecvt::length, codecvt::do_length):
6935         Change type of first argument of length and do_length from
6936         'const state_type&' to 'state_type&' according to DR 75.
6938         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc:  Cleanup.
6939         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc:  New test.
6940         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc:  New test.
6941         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc:  New test.
6942         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
6943         Cleanup and check for correct return value from encoding
6944         for "C" locale.
6945         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc:  New test.
6946         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc:  New test.
6947         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc:  New test.
6948         * testsuite/22_locale/codecvt/in/wchar_t/1.cc:  Cleanup.
6949         * testsuite/22_locale/codecvt/in/wchar_t/2.cc:  New test.
6950         * testsuite/22_locale/codecvt/in/wchar_t/3.cc:  New test.
6951         * testsuite/22_locale/codecvt/in/wchar_t/4.cc:  New test.
6952         * testsuite/22_locale/codecvt/in/wchar_t/5.cc:  New test.
6953         * testsuite/22_locale/codecvt/in/wchar_t/6.cc:  New test.
6954         * testsuite/22_locale/codecvt/in/wchar_t/7.cc:  New test.
6955         * testsuite/22_locale/codecvt/in/wchar_t/8.cc:  New test.
6956         * testsuite/22_locale/codecvt/in/wchar_t/9.cc:  New test.
6957         * testsuite/22_locale/codecvt/length/char/1.cc:  Cleanup.
6958         * testsuite/22_locale/codecvt/length/char/2.cc:  New test.
6959         * testsuite/22_locale/codecvt/length/wchar_t/1.cc:  Cleanup.
6960         * testsuite/22_locale/codecvt/length/wchar_t/2.cc:  New test.
6961         * testsuite/22_locale/codecvt/length/wchar_t/3.cc:  New test.
6962         * testsuite/22_locale/codecvt/length/wchar_t/4.cc:  New test.
6963         * testsuite/22_locale/codecvt/length/wchar_t/5.cc:  New test.
6964         * testsuite/22_locale/codecvt/length/wchar_t/6.cc:  New test.
6965         * testsuite/22_locale/codecvt/length/wchar_t/7.cc:  New test.
6966         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc:  Cleanup.
6967         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc:  New test.
6968         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc:  New test.
6969         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc:  New test.
6970         * testsuite/22_locale/codecvt/out/wchar_t/1.cc:  Cleanup.
6971         * testsuite/22_locale/codecvt/out/wchar_t/2.cc:  New test.
6972         * testsuite/22_locale/codecvt/out/wchar_t/3.cc:  New test.
6973         * testsuite/22_locale/codecvt/out/wchar_t/4.cc:  New test.
6974         * testsuite/22_locale/codecvt/out/wchar_t/5.cc:  New test.
6975         * testsuite/22_locale/codecvt/out/wchar_t/6.cc:  New test.
6976         * testsuite/22_locale/codecvt/out/wchar_t/7.cc:  New test.
6977         * testsuite/22_locale/codecvt/unicode/1.cc:  New test.
6978         * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc:  Cleanup.
6979         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc:  New test.
6980         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc:  New test.
6981         * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc:  New test.
6983 2003-02-05  Benjamin Kosnik  <bkoz@redhat.com>
6985         * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
6986         (money_put::do_put): Same.
6988 2003-02-05  Jerry Quinn  <jlquinn@optonline.net>
6990         * include/bits/ios_base.h (ios_base): Document reserved storage.
6992         * include/bits/locale_facets.h: (struct __pad): Comment on
6993         implementation.
6994         (__verify_grouping): Same.
6995         (__add_grouping): Same.
6996         * include/bits/locale_facets.tcc (__verify_grouping): Move
6997         comments to declaration.
6998         (__add_grouping): Same.
7000         * include/bits/locale_facets.tcc:
7001         (__write<_CharT, _OutIter>): New function.
7002         (__write<_CharT>): New function specialization.
7003         (num_put::_M_insert): Remove explicit loop over iterator.  Use
7004         __write.
7005         (num_put::_M_widen_float): Remove __basefield.
7006         (num_put::_M_widen_int): Move __basefield to within grouping block.
7008         * include/bits/streambuf_iterator.h: Include <streambuf>.
7009         (ostreambuf_iterator::_M_put): Add.
7011 2003-02-05  Paolo Carlini  <pcarlini@unitus.it>
7013         * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
7015 2003-02-04  Nathan Myers  <ncm@cantrip.org>
7017         * testsuite/25_algorithms/min_max.cc (test02): Add.
7019 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
7021         PR libstdc++/9439, PR libstdc++/9425
7022         * config/io/basic_file_stdio.cc
7023         (__basic_file<char>::seekoff, seekpos): Return -1L if
7024         fseek fails.
7025         * include/bits/fstream.tcc (basic_filebuf::seekoff):
7026         Check _M_file.seekoff return value; always return
7027         pos_type(off_type(-1)) in case of failure.
7028         (basic_filebuf::pbackfail): Check this->seekoff return
7029         value and return traits_type::eof() in case of failure.
7030         * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
7032 2003-02-04  Jerry Quinn  <jlquinn@optonline.net>
7034         * include/std/std_ostream.h (ostream::_M_write): Declare.
7035         * ostream.tcc (ostream::_M_write): Define.
7036         (basic_ostream::write): Use it.
7037         (operator<<(basic_ostream, _CharT)): Ditto.
7038         (operator<<(basic_ostream, char)): Ditto.
7039         (operator<<(basic_ostream, _CharT*)): Ditto.
7040         (operator<<(basic_ostream, char*)): Ditto.
7041         (operator<<(basic_ostream, basic_string)): Ditto.
7043 2003-02-04  Benjamin Kosnik  <bkoz@redhat.com>
7045         * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
7047 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
7049         * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
7050         add HTML comment about updating links if numbering changes.
7052 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
7054         PR libstdc++/9538
7055         * include/bits/streambuf.tcc (sputbackc): Access
7056         this->gptr()[-1] only if _M_in_beg < _M_in_cur.
7057         * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
7059 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
7061         PR libstdc++/9507
7062         * include/bits/fstream.tcc (open): If the 'ate' repositioning
7063         operation fails, calls close _and_ returns a null pointer
7064         to indicate failure (27.8.1.3,4).
7065         * testsuite/27_io/filebuf_members.cc (test_06): Add.
7067 2003-02-04  Petur Runolfsson  <peturr02@ru.is>
7069         * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
7071 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
7073         * docs/html/27_io/howto.html: New section on stdio_filebuf.
7074         * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
7075         * docs/html/documentation.html: Regenerate.
7077 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
7079         * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
7080         * docs/html/17_intro/porting.html: Regenerate.
7082 2003-02-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
7083             Phil Edwards  <pme@gcc.gnu.org>
7085         * include/std/std_bitset.h:  Replace CHAR_BIT with __CHAR_BIT__, use
7086         numeric_limits for bits-per-word values.
7087         (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
7088         Use __builtin_popcountl instead.
7089         (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
7090         _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
7091         Use __builtin_ctzl instead.
7092         (_S_bit_count, _S_first_one):  Remove.
7093         * config/linker-map.gnu (GLIBCPP_3.4):  Remove std::_S_bit_count.
7094         * src/Makefile.am (sources):  Remove bitset.cc.
7095         * src/bitset.cc:  Delete file.
7096         * src/Makefile.in:  Regenerate.
7098 2003-02-03  Phil Edwards  <pme@gcc.gnu.org>
7100         PR libstdc++/9527, PR libstdc++/8713
7101         * docs/html/install.html:  Mention glibc version requirement.
7102         * docs/html/faq/index.html (3.8):  New note, glibc 2.2.5+ is needed
7103         with 3.2.1+ (formatting bugfixes).
7104         * docs/html/faq/index.txt:  Regenerate.
7106 2003-02-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7108         PR libstdc++/9234
7109         * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
7110         operator.
7112         * include/bits/valarray_before.h (__not_equal_to): Use != instead
7113         of ==.
7115         * testsuite/26_numerics/valarray_operators.cc: New test.
7117 2003-02-01  Phil Edwards  <pme@gcc.gnu.org>
7119         * docs/html/faq/index.html:  Correct link to libg++ information.
7120         * docs/html/faq/index.txt:  Regenerated.
7122 2003-02-01  Paolo Carlini  <pcarlini@unitus.it>
7123             Benjamin Kosnik  <bkoz@redhat.com>
7125         Const correctness issue:
7126         http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
7127         * include/bits/locale_classes.h
7128         (locale::_Impl::_M_facets): Change type to const facet**.
7129         (locale::_Impl::_M_install_facet): Change declaration to
7130         take const facet*.
7131         (locale::facet::_M_references): Make mutable.
7132         (locale::facet::_M_add_reference): Declare const.
7133         (locale::facet::_M_remove_reference): Likewise.
7134         * include/bits/locale_facets.tcc
7135         (use_facet(const locale&)): Tweak for const facet** _M_facets.
7136         (has_facet(const locale&)): Likewise.
7137         * src/locale.cc
7138         (locale::facet::_M_add_reference): Adjust definition.
7139         (locale::facet::_M_remove_reference): Likewise.
7140         * src/localename.cc
7141         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
7142         const facet** _M_facets.
7143         (locale::_Impl::_Impl(const char*, size_t)): Likewise.
7144         (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
7145         (locale::_Impl::_M_install_facet): Adjust definition to take
7146         const facet* and for const facet** _M_facets.
7147         * testsuite/22_locale/locale/cons/8.cc: Add.
7149 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
7151         * include/std/std_limits.h (numeric_limits<float>::has_infinity):
7152         Use __FLT_HAS_INIFINITY__ to initialize.
7153         (numeric_limits<float>::has_quiet_NaN): Likewise.
7154         (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
7155         to initialize.
7156         (numeric_limits<double>::has_quiet_NaN): Likewise.
7157         (numeric_limits<long double>::has_infinity): Use
7158         __LDBL_HAS_INIFINITY__ to initialize.
7159         (numeric_limits<long_double>::has_quiet_NaN): Likewise.
7161 2003-01-28  Nathan Sidwell  <nathan@codesourcery.com>
7163         PR c++/9433
7164         * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
7165         with bases which are very ambiguous.
7167 2003-01-28  Danny Smith  <dannysmith@users.sourceforge.net>
7169         * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
7170         @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
7171         * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
7172         * src/Makefile.in: Regenerate.
7173         * libsupc++/Makefile.in: Regenerate.
7175 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
7177         * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
7178         $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
7179         version_specific_libs is enabled.
7180         * aclocal.m4, configure: Rebuilt.
7182 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
7184         * include/bits/valarray_meta.h: Remove, split into ...
7185         * include/bits/valarray_before.h: ... this, and ...
7186         * include/bits/valarray_after.h: ... this.
7187         * include/std/std_valarray.h: Adjust.
7188         * include/Makefile.am (bits_headers): Adjust.
7189         * include/Makefile.in: Regenerate.
7191 2003-01-24  Andreas Schwab  <schwab@suse.de>
7193         * config/linker-map.gnu: Fix for size_t variance.
7195 2003-01-23  Petur Runolfsson  <peturr02@ru.is>
7197         PR libstdc++/9322
7198         * include/std/std_streambuf.h
7199         (basic_streambuf::basic_streambuf,
7200         basic_streambuf::~basic_streambuf,
7201         basic_streambuf::getloc, basic_streambuf::imbue):
7202         Remove _M_buf_locale_init
7203         * include/bits/fstream.tcc (basic_filebuf::imbue):  Likewise
7204         * testsuite/27_io/filebuf_virtuals.cc (test08):  Add.
7205         * testsuite/27_io/streambuf_members.cc (test08):  Add.
7206         * testsuite/27_io/stringbuf_virtuals.cc (test08):  Add.
7208 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
7210         Revert include ordering.
7211         * config/locale/generic/c_locale.h: Add include guards.
7212         * config/locale/gnu/c_locale.h: Same.
7213         * include/bits/locale_classes.h: Remove cctype include.
7214         * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
7215         * include/std/std_fstream.h: Remove streambuf include.
7216         * include/std/std_sstream.h: Remove streambuf include.
7218 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
7220         * configure.in (libtool_VERSION): To 6:0:0.
7221         * configure: Regenerated.
7222         * config/linker-map.gnu: Clean.
7224         * src/misc-inst.cc: Remove instantiations.
7226         * include/bits/stl_alloc.h (__malloc_alloc_template):
7227         To __malloc_alloc.
7228         (__default_alloc_template): To __pool_alloc.
7229         * src/stl-inst.cc: Same.
7230         * include/backward/alloc.h: Update.
7231         * testsuite/ext/allocators.cc: Update.
7233         * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
7234         really try to remove these if possible.
7235         * src/locale.cc (std): Same.
7237         * testsuite/abi_check.cc (check_version): Add.
7239 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
7240             Sysoltsev Slawa  <Vyatcheslav.Sysoltsev@intel.com>
7241             Mark Mitchell  <mark@codesourcery.com>
7243         PR libstdc++/9269
7244         * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
7245         (basic_filebuf::underflow): Declare.
7246         Move definitions.
7248 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
7250         * include/bits/locale_facets.h: Move non-facet classes requiring
7251         <string> to...
7252         * include/bits/locale_classes.h: New.
7253         * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
7254         * include/bits/Makefile.in: Regenerate.
7256         * include/bits/locale_facets.tcc (__convert_from_v): Move to...
7257         * config/locale/gnu/c_locale.h: ...here.
7258         * config/locale/generic/c_locale.h: Same.
7260         * include/bits/locale_facets.tcc: Move declarations to...
7261         * include/bits/locale_facets.h: ...here.
7262         * include/bits/basic_ios.h: Tweak includes accordingly.
7263         * include/std/std_sstream.h: Add streambuf include.
7264         * include/std/std_fstream.h: Ditto.
7265         * include/std/std_locale.h: Add locale_classes.h include.
7266         * include/std/std_iosfwd.h: Tweak.
7267         * src/concept-inst.cc: Add iterator include.
7269         * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
7270         bits as unexported in the future.
7272 2003-01-21  Benjamin Kosnik  <bkoz@redhat.com>
7274         Reshuffle 22_locale testsuite.
7275         * 22_locale/(codecvt.cc money_get.cc
7276         codecvt_members_char_char.cc money_get_members_char.cc
7277         codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
7278         codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
7279         codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
7280         moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
7281         collate_members_char.cc money_put.cc collate_members_wchar_t.cc
7282         money_put_members_char.cc ctor_copy_dtor.cc
7283         money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
7284         num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
7285         ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
7286         numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
7287         ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
7288         num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
7289         ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
7290         operators.cc ctype_widen_char.cc static_members.cc
7291         ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
7292         global_templates.cc time_get_members_wchar_t.cc, members.cc,
7293         time_put.cc, messages_byname.cc, time_put_members_char.cc,
7294         messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
7295         Split up into individual test cases...
7296         * 22_locale/codecvt/1.cc: New.
7297         * 22_locale/codecvt/2.cc: New.
7298         * 22_locale/codecvt/always_noconv/char/1.cc: New.
7299         * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
7300         * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
7301         * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
7302         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
7303         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
7304         * 22_locale/codecvt/encoding/char/1.cc: New.
7305         * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
7306         * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
7307         * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
7308         * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
7309         * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
7310         * 22_locale/codecvt/in/char/1.cc: New.
7311         * 22_locale/codecvt/in/char/wrapped_env.cc: New.
7312         * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
7313         * 22_locale/codecvt/in/wchar_t/1.cc: New.
7314         * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
7315         * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
7316         * 22_locale/codecvt/length/char/1.cc: New.
7317         * 22_locale/codecvt/length/char/wrapped_env.cc: New.
7318         * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
7319         * 22_locale/codecvt/length/wchar_t/1.cc: New.
7320         * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
7321         * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
7322         * 22_locale/codecvt/max_length/char/1.cc: New.
7323         * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
7324         * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
7325         * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
7326         * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
7327         * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
7328         * 22_locale/codecvt/out/char/1.cc: New.
7329         * 22_locale/codecvt/out/char/wrapped_env.cc: New.
7330         * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
7331         * 22_locale/codecvt/out/wchar_t/1.cc: New.
7332         * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
7333         * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
7334         * 22_locale/codecvt/unicode/char.cc: New.
7335         * 22_locale/codecvt/unicode/wchar_t.cc: New.
7336         * 22_locale/codecvt/unshift/char/1.cc: New.
7337         * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
7338         * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
7339         * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
7340         * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
7341         * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
7342         * 22_locale/collate/1.cc: New.
7343         * 22_locale/collate/2.cc: New.
7344         * 22_locale/collate/compare/char/1.cc: New.
7345         * 22_locale/collate/compare/char/2.cc: New.
7346         * 22_locale/collate/compare/char/wrapped_env.cc: New.
7347         * 22_locale/collate/compare/char/wrapped_locale.cc: New.
7348         * 22_locale/collate/compare/wchar_t/1.cc: New.
7349         * 22_locale/collate/compare/wchar_t/2.cc: New.
7350         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
7351         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
7352         * 22_locale/collate/hash/char/1.cc: New.
7353         * 22_locale/collate/hash/char/2.cc: New.
7354         * 22_locale/collate/hash/char/wrapped_env.cc: New.
7355         * 22_locale/collate/hash/char/wrapped_locale.cc: New.
7356         * 22_locale/collate/hash/wchar_t/1.cc: New.
7357         * 22_locale/collate/hash/wchar_t/2.cc: New.
7358         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
7359         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
7360         * 22_locale/collate/transform/char/2.cc: New.
7361         * 22_locale/collate/transform/char/wrapped_env.cc: New.
7362         * 22_locale/collate/transform/char/wrapped_locale.cc: New.
7363         * 22_locale/collate/transform/wchar_t/2.cc: New.
7364         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
7365         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
7366         * 22_locale/collate_byname/1.cc: New.
7367         * 22_locale/ctype/1.cc: New.
7368         * 22_locale/ctype/2.cc: New.
7369         * 22_locale/ctype/cons/char/1.cc: New.
7370         * 22_locale/ctype/cons/char/wrapped_env.cc: New.
7371         * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
7372         * 22_locale/ctype/is/char/1.cc: New.
7373         * 22_locale/ctype/is/char/2.cc: New.
7374         * 22_locale/ctype/is/char/3.cc: New.
7375         * 22_locale/ctype/is/char/wrapped_env.cc: New.
7376         * 22_locale/ctype/is/char/wrapped_locale.cc: New.
7377         * 22_locale/ctype/is/wchar_t/1.cc: New.
7378         * 22_locale/ctype/is/wchar_t/2.cc: New.
7379         * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
7380         * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
7381         * 22_locale/ctype/narrow/char/1.cc: New.
7382         * 22_locale/ctype/narrow/char/2.cc: New.
7383         * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
7384         * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
7385         * 22_locale/ctype/narrow/wchar_t/1.cc: New.
7386         * 22_locale/ctype/narrow/wchar_t/2.cc: New.
7387         * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
7388         * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
7389         * 22_locale/ctype/scan/char/1.cc: New.
7390         * 22_locale/ctype/scan/char/wrapped_env.cc: New.
7391         * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
7392         * 22_locale/ctype/scan/wchar_t/1.cc: New.
7393         * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
7394         * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
7395         * 22_locale/ctype/to/char/1.cc: New.
7396         * 22_locale/ctype/to/char/wrapped_env.cc: New.
7397         * 22_locale/ctype/to/char/wrapped_locale.cc: New.
7398         * 22_locale/ctype/to/wchar_t/1.cc: New.
7399         * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
7400         * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
7401         * 22_locale/ctype/widen/char/1.cc: New.
7402         * 22_locale/ctype/widen/char/wrapped_env.cc: New.
7403         * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
7404         * 22_locale/ctype/widen/wchar_t/1.cc: New.
7405         * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
7406         * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
7407         * 22_locale/facet/1.cc: New.
7408         * 22_locale/facet/2.cc: New.
7409         * 22_locale/global_templates/1.cc: New.
7410         * 22_locale/locale/cons/1.cc: New.
7411         * 22_locale/locale/cons/2.cc: New.
7412         * 22_locale/locale/cons/3.cc: New.
7413         * 22_locale/locale/cons/4.cc: New.
7414         * 22_locale/locale/cons/5.cc: New.
7415         * 22_locale/locale/cons/6.cc: New.
7416         * 22_locale/locale/cons/7.cc: New.
7417         * 22_locale/locale/global_locale_objects/1.cc: New.
7418         * 22_locale/locale/global_locale_objects/2.cc: New.
7419         * 22_locale/locale/global_locale_objects/3.cc: New.
7420         * 22_locale/locale/operations/1.cc: New.
7421         * 22_locale/locale/operations/2.cc: New.
7422         * 22_locale/messages/1.cc: New.
7423         * 22_locale/messages/2.cc: New.
7424         * 22_locale/messages/members/char/1.cc: New.
7425         * 22_locale/messages/members/char/2.cc: New.
7426         * 22_locale/messages/members/char/3.cc: New.
7427         * 22_locale/messages/members/char/wrapped_env.cc: New.
7428         * 22_locale/messages/members/char/wrapped_locale.cc: New.
7429         * 22_locale/messages_byname/1.cc: New.
7430         * 22_locale/money_get/1.cc: New.
7431         * 22_locale/money_get/2.cc: New.
7432         * 22_locale/money_get/get/char/1.cc: New.
7433         * 22_locale/money_get/get/char/2.cc: New.
7434         * 22_locale/money_get/get/char/3.cc: New.
7435         * 22_locale/money_get/get/char/4.cc: New.
7436         * 22_locale/money_get/get/char/5.cc: New.
7437         * 22_locale/money_get/get/char/6.cc: New.
7438         * 22_locale/money_get/get/char/7.cc: New.
7439         * 22_locale/money_get/get/char/8.cc: New.
7440         * 22_locale/money_get/get/char/wrapped_env.cc: New.
7441         * 22_locale/money_get/get/char/wrapped_locale.cc: New.
7442         * 22_locale/money_get/get/wchar_t/1.cc: New.
7443         * 22_locale/money_get/get/wchar_t/2.cc: New.
7444         * 22_locale/money_get/get/wchar_t/3.cc: New.
7445         * 22_locale/money_get/get/wchar_t/4.cc: New.
7446         * 22_locale/money_get/get/wchar_t/5.cc: New.
7447         * 22_locale/money_get/get/wchar_t/6.cc: New.
7448         * 22_locale/money_get/get/wchar_t/7.cc: New.
7449         * 22_locale/money_get/get/wchar_t/8.cc: New.
7450         * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
7451         * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
7452         * 22_locale/money_put/1.cc: New.
7453         * 22_locale/money_put/2.cc: New.
7454         * 22_locale/money_put/put/char/1.cc: New.
7455         * 22_locale/money_put/put/char/2.cc: New.
7456         * 22_locale/money_put/put/char/3.cc: New.
7457         * 22_locale/money_put/put/char/4.cc: New.
7458         * 22_locale/money_put/put/char/5.cc: New.
7459         * 22_locale/money_put/put/char/6.cc: New.
7460         * 22_locale/money_put/put/char/wrapped_env.cc: New.
7461         * 22_locale/money_put/put/char/wrapped_locale.cc: New.
7462         * 22_locale/money_put/put/wchar_t/1.cc: New.
7463         * 22_locale/money_put/put/wchar_t/2.cc: New.
7464         * 22_locale/money_put/put/wchar_t/3.cc: New.
7465         * 22_locale/money_put/put/wchar_t/4.cc: New.
7466         * 22_locale/money_put/put/wchar_t/5.cc: New.
7467         * 22_locale/money_put/put/wchar_t/6.cc: New.
7468         * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
7469         * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
7470         * 22_locale/moneypunct/1.cc: New.
7471         * 22_locale/moneypunct/2.cc: New.
7472         * 22_locale/moneypunct/3.cc: New.
7473         * 22_locale/moneypunct/members/char/1.cc: New.
7474         * 22_locale/moneypunct/members/char/2.cc: New.
7475         * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
7476         * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
7477         * 22_locale/moneypunct/members/wchar_t/1.cc: New.
7478         * 22_locale/moneypunct/members/wchar_t/2.cc: New.
7479         * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
7480         * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
7481         * 22_locale/moneypunct_byname/1.cc: New.
7482         * 22_locale/num_get/1.cc: New.
7483         * 22_locale/num_get/2.cc: New.
7484         * 22_locale/num_get/get/char/1.cc: New.
7485         * 22_locale/num_get/get/char/2.cc: New.
7486         * 22_locale/num_get/get/char/3.cc: New.
7487         * 22_locale/num_get/get/char/4.cc: New.
7488         * 22_locale/num_get/get/char/5.cc: New.
7489         * 22_locale/num_get/get/char/6.cc: New.
7490         * 22_locale/num_get/get/char/wrapped_env.cc: New.
7491         * 22_locale/num_get/get/char/wrapped_locale.cc: New.
7492         * 22_locale/num_get/get/wchar_t/1.cc: New.
7493         * 22_locale/num_get/get/wchar_t/2.cc: New.
7494         * 22_locale/num_get/get/wchar_t/3.cc: New.
7495         * 22_locale/num_get/get/wchar_t/4.cc: New.
7496         * 22_locale/num_get/get/wchar_t/5.cc: New.
7497         * 22_locale/num_get/get/wchar_t/6.cc: New.
7498         * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
7499         * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
7500         * 22_locale/num_put/1.cc: New.
7501         * 22_locale/num_put/2.cc: New.
7502         * 22_locale/num_put/put/char/1.cc: New.
7503         * 22_locale/num_put/put/char/2.cc: New.
7504         * 22_locale/num_put/put/char/3.cc: New.
7505         * 22_locale/num_put/put/char/4.cc: New.
7506         * 22_locale/num_put/put/char/5.cc: New.
7507         * 22_locale/num_put/put/char/wrapped_env.cc: New.
7508         * 22_locale/num_put/put/char/wrapped_locale.cc: New.
7509         * 22_locale/num_put/put/wchar_t/1.cc: New.
7510         * 22_locale/num_put/put/wchar_t/2.cc: New.
7511         * 22_locale/num_put/put/wchar_t/3.cc: New.
7512         * 22_locale/num_put/put/wchar_t/4.cc: New.
7513         * 22_locale/num_put/put/wchar_t/5.cc: New.
7514         * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
7515         * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
7516         * 22_locale/numpunct/1.cc: New.
7517         * 22_locale/numpunct/2.cc: New.
7518         * 22_locale/numpunct/members/char/1.cc: New.
7519         * 22_locale/numpunct/members/char/2.cc: New.
7520         * 22_locale/numpunct/members/char/wrapped_env.cc: New.
7521         * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
7522         * 22_locale/numpunct/members/wchar_t/1.cc: New.
7523         * 22_locale/numpunct/members/wchar_t/2.cc: New.
7524         * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
7525         * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
7526         * 22_locale/numpunct_byname/1.cc: New.
7527         * 22_locale/numpunct_byname/2.cc: New.
7528         * 22_locale/time_get/1.cc: New.
7529         * 22_locale/time_get/2.cc: New.
7530         * 22_locale/time_get/date_order/char/1.cc: New.
7531         * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
7532         * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
7533         * 22_locale/time_get/date_order/wchar_t/1.cc: New.
7534         * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
7535         * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
7536         * 22_locale/time_get/get_date/char/1.cc: New.
7537         * 22_locale/time_get/get_date/char/2.cc: New.
7538         * 22_locale/time_get/get_date/char/3.cc: New.
7539         * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
7540         * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
7541         * 22_locale/time_get/get_date/wchar_t/1.cc: New.
7542         * 22_locale/time_get/get_date/wchar_t/2.cc: New.
7543         * 22_locale/time_get/get_date/wchar_t/3.cc: New.
7544         * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
7545         * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
7546         * 22_locale/time_get/get_monthname/char/1.cc: New.
7547         * 22_locale/time_get/get_monthname/char/2.cc: New.
7548         * 22_locale/time_get/get_monthname/char/3.cc: New.
7549         * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
7550         * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
7551         * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
7552         * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
7553         * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
7554         * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
7555         * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
7556         * 22_locale/time_get/get_time/char/1.cc: New.
7557         * 22_locale/time_get/get_time/char/2.cc: New.
7558         * 22_locale/time_get/get_time/char/3.cc: New.
7559         * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
7560         * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
7561         * 22_locale/time_get/get_time/wchar_t/1.cc: New.
7562         * 22_locale/time_get/get_time/wchar_t/2.cc: New.
7563         * 22_locale/time_get/get_time/wchar_t/3.cc: New.
7564         * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
7565         * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
7566         * 22_locale/time_get/get_weekday/char/1.cc: New.
7567         * 22_locale/time_get/get_weekday/char/2.cc: New.
7568         * 22_locale/time_get/get_weekday/char/3.cc: New.
7569         * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
7570         * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
7571         * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
7572         * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
7573         * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
7574         * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
7575         * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
7576         * 22_locale/time_get/get_year/char/1.cc: New.
7577         * 22_locale/time_get/get_year/char/3.cc: New.
7578         * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
7579         * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
7580         * 22_locale/time_get/get_year/wchar_t/1.cc: New.
7581         * 22_locale/time_get/get_year/wchar_t/3.cc: New.
7582         * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
7583         * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
7584         * 22_locale/time_put/1.cc: New.
7585         * 22_locale/time_put/2.cc: New.
7586         * 22_locale/time_put/put/char/1.cc: New.
7587         * 22_locale/time_put/put/char/10.cc: New.
7588         * 22_locale/time_put/put/char/2.cc: New.
7589         * 22_locale/time_put/put/char/3.cc: New.
7590         * 22_locale/time_put/put/char/4.cc: New.
7591         * 22_locale/time_put/put/char/5.cc: New.
7592         * 22_locale/time_put/put/char/6.cc: New.
7593         * 22_locale/time_put/put/char/7.cc: New.
7594         * 22_locale/time_put/put/char/8.cc: New.
7595         * 22_locale/time_put/put/char/9.cc: New.
7596         * 22_locale/time_put/put/char/wrapped_env.cc: New.
7597         * 22_locale/time_put/put/char/wrapped_locale.cc: New.
7598         * 22_locale/time_put/put/wchar_t/1.cc: New.
7599         * 22_locale/time_put/put/wchar_t/10.cc: New.
7600         * 22_locale/time_put/put/wchar_t/2.cc: New.
7601         * 22_locale/time_put/put/wchar_t/3.cc: New.
7602         * 22_locale/time_put/put/wchar_t/4.cc: New.
7603         * 22_locale/time_put/put/wchar_t/5.cc: New.
7604         * 22_locale/time_put/put/wchar_t/6.cc: New.
7605         * 22_locale/time_put/put/wchar_t/7.cc: New.
7606         * 22_locale/time_put/put/wchar_t/8.cc: New.
7607         * 22_locale/time_put/put/wchar_t/9.cc: New.
7608         * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
7609         * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
7611 2003-01-16  Jeffrey D. Oldham  <oldham@codesourcery.com>
7613         * config/locale/generic/messages_members.h
7614         (messages_byname<_CharT>::messages_byname): Use this-> to refer to
7615         unqualified members of base clasess.
7617 2003-01-16  Mark Mitchell  <mark@codesourcery.com>
7618             Jeffrey Oldham <oldham@codesourcery.com>
7620         * config/locale/gnu/messages_members.h: Use this-> to refer to
7621         unqualified members of base clasess.
7622         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
7623         * include/bits/codecvt.h: Likewise.
7624         * include/bits/deque.tcc: Likewise.
7625         * include/bits/fstream.tcc: Likewise.
7626         * include/bits/istream.tcc: Likewise.
7627         * include/bits/list.tcc: Likewise.
7628         * include/bits/locale_facets.h: Likewise.
7629         * include/bits/ostream.tcc: Likewise.
7630         * include/bits/sstream.tcc: Likewise.
7631         * include/bits/stl_bvector.h: Likewise.
7632         * include/bits/stl_deque.h: Likewise.
7633         * include/bits/stl_list.h: Likewise.
7634         * include/bits/stl_tree.h: Likewise.
7635         * include/bits/stl_vector.h: Likewise.
7636         * include/bits/vector.tcc: Likewise.
7637         * include/ext/ropeimpl.h: Likewise.
7638         * include/ext/stdio_filebuf.h: Likewise.
7639         * include/ext/stl_rope.h: Likewise.
7640         * include/std/std_fstream.h: Likewise.
7641         * include/std/std_sstream.h: Likewise.
7643 2003-01-15  Phil Edwards  <pme@gcc.gnu.org>
7645         * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
7647 2003-01-15  Benjamin Kosnik  <bkoz@redhat.com>
7649         * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
7650         GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
7651         * aclocal.m4: Regenerate.
7652         * configure: Regenerate.
7653         * testsuite/Makefile.am (all-local): Add conditional rule to
7654         generate testsuite_wchar_t.
7655         * testsuite/Makefile.in: Regenerate.
7656         * testsuite/lib/libstdc++-v3-dg.exp
7657         (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
7658         testsuite_wchar_t is not present in the build directory.
7659         * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
7660         Remove setulimit bits.
7661         * testsuite/26_numerics/complex_value.cc: Set to noopts.
7662         * testsuite/Makefile.am (CLEANFILES): Add.
7663         * testsuite/Makefile.in: Regenerate.
7665 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7667         * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
7668         __hppa__.
7670 2003-01-14  Jeffrey D. Oldham  <oldham@codesourcery.com>
7672         Further conform g++'s __vmi_class_type_info to the C++ ABI
7673         specification.
7674         * libsupc++/cxxabi.h
7675         (__vmi_class_type_info::__flags_masks): Remove enumerations not
7676         required by the specification.
7678 2003-01-12  Benjamin Kosnik  <bkoz@redhat.com>
7680         Renames, namespaces for testsuite utilities.
7681         * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
7682         (gnu_allocator_tracker): Rename to allocation_tracker.
7683         (gnu_new_allocator): Rename to tracker_alloc.
7684         (__set_testsuite_memlimit): Rename to set_memory_limits.
7685         (gnu_assignment_operator): Rename to assignment_operator.
7686         (gnu_destructor): Rename to destructor.
7687         (gnu_copy_tracker): Rename to copy_tracker.
7688         (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
7689         (run_tests_wrapped_locale): New.
7690         (run_tests_wrapped_env): New.
7691         * testsuite/testsuite_hooks.cc: Same.
7692         (class locale_data): Add.
7693         (class enviornment_variable): Add.
7694         (class not_found): Add.
7695         * testsuite/testsuite_allocator.h: Same.
7696         * testsuite/testsuite_allocator.cc: Same.
7697         * testsuite/23_containers/deque_ctor.cc
7698         (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
7699         allocation_tracker.
7700         Change gnu_new_allocator to tracker_alloc.
7701         Change gnu_counting_struct to counter.
7702         Change gnu_copy_tracker to copy_tracker.
7703         Change gnu_copy_constructor to copy_constructor.
7704         Change gnu_assignment_operator to assignment_operator.
7705         Inject.
7706         * testsuite/23_containers/vector_capacity.cc: Same.
7707         * testsuite/23_containers/vector_ctor.cc (test01): Same.
7708         * testsuite/23_containers/list_modifiers.cc: Change
7709         gnu_copy_tracker to copy_tracker.
7710         * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
7711         __set_testsuite_memlimit to set_memory_limits.
7712         * testsuite/21_strings/insert.cc (main): Same.
7713         * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
7714         * testsuite/27_io/stringstream.cc: Same.
7715         * testsuite/27_io/stringbuf.cc: Same.
7716         * testsuite/27_io/streambuf.cc: Same.
7717         * testsuite/27_io/ostream.cc: Same.
7718         * testsuite/27_io/istream.cc: Same.
7719         * testsuite/27_io/fstream.cc: Same.
7720         * testsuite/lib/libstdc++-v3-dg.exp
7721         (libstdc++-v3-list-sourcefiles): Additionally handle files two and
7722         three levels deeper in glob patterns.
7724 2003-01-11  Phil Edwards  <pme@gcc.gnu.org>
7726         * docs/doxygen/tables.html:  Finished now.
7727         * docs/doxygen/user.cfg.in:  Update to latest version of Doxygen.
7728         * include/bits/basic_ios.h (basic_ios::rdbuf):  Add example to
7729         comments.
7731         * include/bits/deque.tcc, include/bits/stl_alloc.h,
7732         include/bits/stl_deque.h, include/bits/stl_list.h,
7733         include/bits/stl_vector.h:  Remove _GLIBCPP_DEPRECATED bits scheduled
7734         for 3.4 removal.
7736 2003-01-09  Benjamin Kosnik  <bkoz@redhat.com>
7738         * configure.in: Revert.
7739         * configure: Regenerate.
7741 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
7743         * include/Makefile.am (install-data-local): Prepend
7744         $(DESTDIR) to destination paths in all (un)installation
7745         commands.  Use ${c_base_builddir} and ${std_builddir}
7746         as destination subdirectories to achieve consistency with
7747         preceding mkinstalldirs commands.  No effect because both
7748         variables contain "." only.
7749         * include/Makefile.in: Regenerate.
7751 2003-01-08  Benjamin Kosnik  <bkoz@redhat.com>
7753         * include/Makefile.am (stamp-*): Add checks for existing stamps.
7754         * include/Makefile.in: Regenerate.
7756         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
7757         * aclocal.m4: Regenerate.
7759         * configure.in: Don't add new multi-do rules every time the
7760         directory is reconfigured.
7761         * configure: Regenerate.
7763 2003-01-08  Brad Spencer  <spencer@infointeractive.com>
7764             Nathan Myers  <ncm@cantrip.org>
7766         * src/Makefile.am (stamp-debug): Clean.
7767         * src/Makefile.in: Regenerate.
7769 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
7771         PR libstdc++/8707
7772         * Makefile.am (distclean-multi): Fix.
7773         * Makefile.in: Regenerate.
7775 2003-01-06  Benjamin Kosnik  <bkoz@redhat.com>
7777         * include/bits/locale_facets.h (messages): Move ctor, dtor
7778         definitions to..
7779         (__timepunct): Same.
7780         * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
7781         definitions. Conditionalize for GNU systems.
7782         * config/locale/generic/messages_members.h (messages): Add dtor, ctor
7783         definitions.
7784         * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
7785         definitions. Conditionalize for GNU systems.
7786         * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
7787         definitions.
7788         * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
7789         * src/locale.cc: Define.
7790         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
7791         Use it.
7792         * config/locale/gnu/time_members.h: Use it.
7793         * config/locale/gnu/messages_members.h: Use it.
7794         * config/linker-map.gnu: Add locale::facets details.
7795         * include/Makefile.am (target_headers_extra): Add time_members.h.
7796         * include/Makefile.in: Regenerate.
7797         * acinclude.m4: Export CTIME_H.
7798         * aclocal.m4: Regenerate.
7799         * configure: Regnerate.
7801 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
7803         * src/codecvt.cc
7804         (codecvt<char, char, mbstate_t>::do_in, do_out):
7805         Tweak parameters to avoid unused parameter warnings.
7807 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
7809         PR libstdc++/9151
7810         * include/bits/locale_facets.cc (num_put::_M_convert_float):
7811         Limit __prec to digits10 + 2, not digits10 + 1, taking into
7812         account the possibility of %{g,G} conversion specifiers
7813         inside _S_format_float.
7814         * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
7816 2003-01-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7818         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
7819         libstdc++-v3-list-sourcefiles): Additionally handle files one
7820         level deeper in glob patterns.
7822         * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
7823         * testsuite/27_io/istream_extractor_arith/01.cc,
7824         testsuite/27_io/istream_extractor_arith/02.cc,
7825         testsuite/27_io/istream_extractor_arith/03.cc,
7826         testsuite/27_io/istream_extractor_arith/06.cc,
7827         testsuite/27_io/istream_extractor_arith/07.cc,
7828         testsuite/27_io/istream_extractor_arith/08.cc,
7829         testsuite/27_io/istream_extractor_arith/09.cc,
7830         testsuite/27_io/istream_extractor_arith/10.cc,
7831         testsuite/27_io/istream_extractor_arith/11.cc,
7832         testsuite/27_io/istream_extractor_arith/12.cc,
7833         testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
7834         * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
7835         sparc*-*-solaris2*.
7837 2003-01-05  Paolo Carlini <pcarlini@unitus.it>
7839         PR libstdc++/9168
7840         * src/codecvt.cc
7841         (codecvt<char, char, mbstate_t>::do_in, do_out):
7842         Implement the resolution of DR19 (TC).
7843         * testsuite/22_locale/codecvt_members_char_char.cc
7844         (test01): Tweak.
7846 2003-01-02  Jason Merrill  <jason@redhat.com>
7848         * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
7849         *__mem is also an output.
7850         * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.