* doc/invoke.texi (-O2): Doesn't enable -fweb.
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob5e600e6fbb366a58f3cd2df4b09c097bf9adb5a4
1 2003-11-20  Benjamin Kosnik  <bkoz@redhat.com>
3         * include/debug/formatter.h: Use _Tp as template argument.
4         * src/debug.cc: Same, instantiate std::size_t.
5         
6 2003-11-20  Benjamin Kosnik  <bkoz@redhat.com>
8         PR libstdc++/13109
9         * include/debug/formatter.h (_Error_formatter::_M_format_word): New.
10         * src/debug.cc (__gnu_debug): Format. 
11         (_Error_formatter::_M_format_word): Define, use, instantiate.
13 2003-11-20  Paolo Carlini  <pcarlini@suse.de>
15         PR libstdc++/11602
16         * config/locale/gnu/codecvt_members.cc (codecvt::do_out):
17         Rewrite, using both wcsnrtombs and wcrtomb in a loop: the
18         former is very fast, but stops if encounters a NUL.
19         * testsuite/performance/wchar_t_out.cc: New, from the PR.
21 2003-11-19  Paolo Carlini  <pcarlini@suse.de>
23         * config/locale/gnu/codecvt_members.cc (do_out): If
24         we can upper bound the total number of external chars
25         to something smaller than __to_end - __to, avoid the
26         temporary buffer, the memcopy and simplify the loop.
27         * config/locale/generic/codecvt_members.cc (do_out):
28         Likewise.
30 2003-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
32         * testsuite/lib/libstdc++.exp: Add DYLD_LIBRARY_PATH for darwin.
33         * testsuite/libstdc++-dg/normal.exp: Add -multiply_defined suppress
34         flag.
36 2003-11-18  Jonathan Wakely  <redi@gcc.gnu.org>
38         * docs/html/configopts.html, docs/html/debug.html,
39         docs/html/documentation.html, docs/html/explanations.html,
40         docs/html/install.html, docs/html/17_intro/contribute.html,
41         docs/html/17_intro/howto.html, docs/html/17_intro/license.html,
42         docs/html/18_support/howto.html, docs/html/19_diagnostics/howto.html,
43         docs/html/20_util/howto.html, docs/html/21_strings/howto.html,
44         docs/html/22_locale/codecvt.html, docs/html/22_locale/ctype.html,
45         docs/html/22_locale/howto.html, docs/html/22_locale/locale.html,
46         docs/html/22_locale/messages.html, docs/html/23_containers/howto.html,
47         docs/html/24_iterators/howto.html, docs/html/25_algorithms/howto.html,
48         docs/html/26_numerics/howto.html, docs/html/27_io/howto.html,
49         docs/html/ext/howto.html, docs/html/ext/sgiexts.html: Add <link> tags.
51 2003-11-18  Paolo Carlini  <pcarlini@suse.de>
53         PR libstdc++/12868
54         * include/bits/fstream.tcc (imbue): For encodings != -1 it's
55         always ok to imbue a new locale, provided seekoff(0, cur, ...)
56         doesn't fail, of course.
57         (underflow): In order for the above to work, deal gracefully
58         with _M_codecvt->in returning codecvt_base::error while 
59         (__ilen = __iend - this->eback()) > 0: it just means __ilen
60         correctly converted internal characters before an error.        
61         * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: New.
63 2003-11-17  Paolo Carlini  <pcarlini@suse.de>
65         * include/bits/locale_facets.tcc: Fix typo in comment.
67 2003-11-17  Paolo Carlini  <pcarlini@suse.de>
69         * testsuite/22_locale/num_put/put/char/8.cc: New test,
70         summarizing the discussion ensuing libstdc++/12988.
71         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Ditto.
73 2003-11-15  Paolo Carlini  <pcarlini@suse.de>
75         * include/std/std_fstream.h: Tweak a comment.
77 2003-11-15  Roger Sayle  <roger@eyesopen.com>
79         * include/c_std/std_cmath.h: Don't import C99's float transcendentals
80         into the __gnu_cxx::__c99_binding namespace.
81         (acos, asin, atan, atan2, ceil, cosh, exp, floor, fmod, frexp,
82         ldexp, log, log10, modf, pow, sinh, tan, tanh): Implement using
83         GCC's math builtins, i.e. __builtin_foo.
84         * libmath/stubs.c (acosf, acosl, asinf, asinl, atanf, atanl,
85         ceilf, ceill, floorf, floorl, fmodf, fmodl, frexpf, frexpl,
86         ldexpf, ldexpl, modff, modfl): Provide stub implementations.
88 2003-11-14  Paolo Carlini  <pcarlini@suse.de>
90         * testsuite/22_locale/locale/cons/12352.cc: Use
91         __gnu_test::try_named_locale.
93 2003-11-14  Paolo Carlini  <pcarlini@suse.de>
95         * docs/html/ext/howto.html: Add entries for DR 63, 75
96         and 305; tweak entries for DR 60 and 328.
98 2003-11-13  Douglas Gregor  <gregod@cs.rpi.edu>
100         * docs/html/debug.html: Users are allowed to specialize in
101         namespace __gnu_debug, unlike in the Apple version of the debug
102         mode. Clear up a confusing double-negative. Note that
103         std::basic_string does provide extra debugging capabilities, but
104         not safe iterators.
105         * include/bits/basic_string.tcc: Make sure there's never an
106         ambiguity when calling __is_null_pointer. 
107         * include/debug/deque: (deque::erase) Properly handle invalidation
108         when erasing at the end of the deque.
109         * include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity. 
110         (vector::clear): Set the guaranteed capacity to 0.
111         * testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
112         iterator invalidation when erasing at the end of the deque.
114 2003-11-13  Paolo Carlini  <pcarlini@suse.de>
115             Petur Runolfsson  <peturr02@ru.is>
117         PR libstdc++/13007
118         * include/bits/fstream.tcc (imbue): Don't touch the stored
119         locale.
120         * include/std/std_streambuf.h (imbue): According to the
121         standard, base class version does nothing.
122         (pubimbue): Store the locale.
123         * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New.
124         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New.
125         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak.
126         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
127         * testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New.
128         * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New.
129         * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New.
130         * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New.
132 2003-11-13  Petur Runolfsson  <peturr02@ru.is>
134         PR libstdc++/12594
135         * include/bits/ostream.tcc
136         (basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
137         basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
138         basic_ostream::operator<<(ios_base& (*)(ios_base&))):
139         Implement the resolution of DR 60 (TC): These are not formatted
140         output functions so don't construct sentry objects and don't
141         catch exceptions.
142         (basic_ostream::put, basic_ostream::write): Implement the
143         resolution of DR 63 (TC) by catching exceptions and setting
144         badbit.
145         (basic_ostream::flush): Implement the resolution of DR 60 (TC):
146         This is not an unformatted output function so don't construct
147         a sentry object.
148         * testsuite/testsuite_io.h (sync_streambuf): Define.
149         * testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
150         * testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
151         * testsuite/27_io/basic_ostream/put/char/1.cc: New test.
152         * testsuite/27_io/basic_ostream/write/char/1.cc: New test.
153         
154 2003-11-13  Paolo Carlini  <pcarlini@suse.de>
156         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
157         Fix, closely following the testcase included in the PR.
158         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
159         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
160         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.
162 2003-11-13  Jonathan Wakely <redi@gcc.gnu.org>
164         * docs/html/17_intro/configury.html: XHTML tweak.
166 2003-11-13  Jonathan Wakely <redi@gcc.gnu.org>
168         * docs/html/debug_mode.html: XHTML fixes.
170 2003-11-12  Benjamin Kosnik  <bkoz@redhat.com>
172         * docs/html/debug_mode.html: Update.
173         * docs/html/17_intro/TODO: Update.
175 2003-11-12  Benjamin Kosnik  <bkoz@redhat.com>
177         * include/bits/c++config: Move using directive...
178         * include/debug/formatter.h: ...here.
180 2003-11-12  Carlo Wood  <carlo@alinoe.com>
182         PR libstdc++/12947
183         * bits/demangle.h
184         (_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS): Added.
185         (_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Added.
186         (session<Allocator>::next_peek() const): Added.
187         (decode_non_negative_decimal_integer(string_type&)):
188         Renamed from decode_decimal_integer(string_type&).
189         (session<Allocator>::decode_nested_name):
190         Decode <template_param> as well.
191         (session<Allocator>::add_substitution):
192         Handle <template-param> for <nested-name>'s.
193         (enum xary_nt): Added.
194         (struct entry_st): Added member `xary_nt type' instead of `bool unary'.
195         (symbol_name_table_c): Updated for `entry_st::type' and additional
196         operators (unary `operator+' and `sizeof(type)').
197         (offset_table_c): Updated for new operators (causing a new hash map).
198         (decode_operator_name): Match the updated hash map.
199         (session<Allocator>::decode_expression):
200         Support for `sizeof ([typename] type)' (st),
201         dependent names (sr) and casting operator (cv).  Handle
202         `entry_st::type'.  Handle _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
203         and _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME.
204         (session<Allocator>::decode_type_with_postfix):
205         Support `extern "C"' function types (FY).
206         * testsuite/demangle/regression/cw-16.cc: Added tests for the
207         added functionality.
208         * testsuite/demangle/regression/3111-2.cc: sizeof now has a space
209         appended.
211 2003-11-11  Paolo Carlini  <pcarlini@suse.de>
213         PR libstdc++/12875
214         * include/bits/fstream.tcc (setbuf): Don't do anything
215         after open(), in particular don't discard data.
216         (_M_allocate_internal_buffer): Tweak to not allocate memory
217         in case the buffer is provided by the user via setbuf.
218         * include/ext/stdio_filebuf.h: Tweak comment.
219         * testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
220         * testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
221         * testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
222         setbuf does nothing after open().
223         * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
225 2003-11-11  Doug Gregor  <gregod@cs.rpi.edu>
227         * docs/html/debug.html: Document libstdc++ debug mode.
228         * docs/html/debug_mode.html: Document libstdc++ debug mode design.
229         * docs/html/test.html: Document how to test under debug mode.
230         * docs/html/17_intro/howto.html: Document debug-mode macros.
231         * include/Makefile.am: Install debug-mode headers.
232         * src/Makefile.am: Include debug.cc.
233         * include/bits/basic_string.tcc: 
234           (basic_string::_S_construct): Fix NULL pointer check.
235           (__is_null_pointer): New.
236           Add precondition annotations.
237         * include/bits/stream_iterator.h (istream_iterator,
238         ostream_iterator): Added precondition annotations.
239         * include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto.
240         * include/bits/stl_queue.h (queue, priority_queue): Ditto.
241         * include/bits/stl_stack.h (stack): Ditto.
242         * include/bits/basic_string.h (basic_string): Ditto.
243         * include/bits/basic_string.tcc (basic_string): Ditto.
244         * include/std/std_memory.h (auto_ptr): Ditto.
245         * include/std/std_valarray.h (valarray): Ditto.
246         * include/bits/stl_algo.h: Added algorithm precondition
247         annotations.
248         * include/bits/stl_algobase.h: Added algorithm precondition
249         annotations.
250         * include/bits/stl_numeric.h: Ditto.
251         * include/ext/algorithm: Added algorithm precondition
252         annotations. 
253         (__is_heap): Moved away from here.
254         * include/bits/stl_heap.h: Added algorithm precondition
255         annotations. 
256         (__is_heap): Moved to the top of this file.
257         (__is_heap): Added iterator range overloads.
258         * testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up
259         with changes in std_memory.h.
260         * testsuite/23_containers/list/operators/4.cc: Don't verify
261         performance guarantees when in debug mode.
262         * testsuite/23_containers/bitset/invalidation/1.cc: New.
263         * testsuite/23_containers/deque/invalidation/1.cc: New.
264         * testsuite/23_containers/deque/invalidation/2.cc: New.
265         * testsuite/23_containers/deque/invalidation/3.cc: New.
266         * testsuite/23_containers/deque/invalidation/4.cc: New.
267         * testsuite/23_containers/list/invalidation/1.cc: New.
268         * testsuite/23_containers/list/invalidation/2.cc: New.
269         * testsuite/23_containers/list/invalidation/3.cc: New.
270         * testsuite/23_containers/list/invalidation/4.cc: New.
271         * testsuite/23_containers/map/invalidation/1.cc: New.
272         * testsuite/23_containers/map/invalidation/2.cc: New.
273         * testsuite/23_containers/multimap/invalidation/1.cc: New.
274         * testsuite/23_containers/multimap/invalidation/2.cc: New.
275         * testsuite/23_containers/multiset/invalidation/1.cc: New.
276         * testsuite/23_containers/multiset/invalidation/2.cc: New.
277         * testsuite/23_containers/set/invalidation/1.cc: New.
278         * testsuite/23_containers/set/invalidation/2.cc: New.
279         * testsuite/23_containers/vector/invalidation/1.cc: New.
280         * testsuite/23_containers/vector/invalidation/2.cc: New.
281         * testsuite/23_containers/vector/invalidation/3.cc: New.
282         * testsuite/23_containers/vector/invalidation/4.cc: New.
283         * testsuite/25_algorithms/heap.cc: Don't verify
284         performance guarantees when in debug mode.
285         * include/debug/bitset: New.
286         * include/debug/debug.h: New.
287         * include/debug/deque: New.
288         * include/debug/formatter.h: New.
289         * include/debug/hash_map: New.
290         * include/debug/hash_map.h: New.        
291         * include/debug/hash_multimap.h: New.
292         * include/debug/hash_set: New.
293         * include/debug/hash_set.h: New.
294         * include/debug/hash_multiset.h: New.   
295         * include/debug/list: New.
296         * include/debug/map: New.
297         * include/debug/map.h: New.
298         * include/debug/multimap.h: New.
299         * include/debug/multiset.h: New.        
300         * include/debug/safe_base.h: New.
301         * include/debug/safe_iterator.h: New.
302         * include/debug/safe_iterator.tcc: New.
303         * include/debug/safe_sequence.h: New.
304         * include/debug/set: New.
305         * include/debug/set.h: New.     
306         * include/debug/string: New.
307         * include/debug/vector: New.
308         * src/debug.cc: New.
309         * config/linker-map.gnu: Add debug mode symbols.
310         
311 2003-11-11  Benjamin Kosnik  <bkoz@redhat.com>
313         * src/string-inst.cc: Tweak namespaces.
314         * src/misc-inst.cc: Same.
315         * docs/html/debug.html: Edits.
316         * config/link-map.gnu: Remove cruft.
318         * include/bits/c++config: Add in namespace associations.
319         * include/std/std_bitset.h: Adjust namespace to __gnu_norm,
320         comment tweaks.
321         * include/bits/deque.tcc: Same.
322         * include/bits/list.tcc: Same.
323         * include/bits/stl_bvector.h: Same.
324         * include/bits/stl_deque.h: Same.
325         * include/bits/stl_list.h: Same.
326         * include/bits/stl_map.h: Same.
327         * include/bits/stl_multimap.h: Same.
328         * include/bits/stl_multiset.h: Same.
329         * include/bits/stl_set.h: Same.
330         * include/bits/stl_vector.h: Same.
331         * include/bits/vector.tcc: Same.
333         * include/std/std_algorithm.h: Remove markup comments.
334         * include/std/std_functional.h: Same.
335         * include/std/std_iterator.h: Same.
336         * include/std/std_numeric.h: Same.
337         * include/std/std_utility.h: Same.
338         * include/bits/stl_queue.h: Formatting tweaks.
339         * include/bits/stl_stack.h: Same.
340         * include/std/std_deque.h: Include debugging version in debug mode.
341         * include/std/std_list.h: Same.
342         * include/std/std_map.h: Same.
343         * include/std/std_set.h: Same.
344         * include/std/std_vector.h: Same.       
345         * include/std/std_queue.h: Use deque, vector.
346         * include/std/std_stack.h: Same.
348 2003-11-09  Paolo Carlini  <pcarlini@suse.de>
350         * include/bits/locale_facets.tcc (_M_insert_int,
351         _M_insert_float): Move a couple of vars inside an if block.
353 2003-11-09  Paolo Carlini  <pcarlini@suse.de>
355         PR libstdc++/12971
356         * include/bits/locale_facets.tcc
357         (money_put::do_put(..., long double)): Fix conversion
358         specification as per DR 328 [WP].
359         * testsuite/22_locale/money_put/put/char/12971.cc: Add.
360         * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto.
361         * docs/html/ext/howto.html: Add entry for DR 328.
363 2003-11-08  Paolo Carlini  <pcarlini@suse.de>
365         PR libstdc++/12967
366         * include/bits/list.tcc (merge): Implement resolution of
367         DR 300 [WP].
368         * docs/html/ext/howto.html: Add entry for DR 300; tweak entry
369         for DR 231.
371         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
372         Import R27.
374 2003-11-07  Jonathan Wakely  <redi@gcc.gnu.org>
376         * libsupc++/vec.cc: Conform to C++STYLE.
378 2003-11-07  Carlo Wood  <carlo@alinoe.com>
380         PR libstdc++/12736
381         * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
382         (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
383         K, V, r and A qualifiers before processing them as a group.
384         * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
385         * testsuite/demangle/regression/cw-16.cc: New.
387 2003-11-07  Robert Millan  <robertmh@gnu.org>
389         * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
390         * crossconfig.m4: Likewise.
391         * configure: Regenerate.
393 2003-11-07  Carlo Wood  <carlo@alinoe.com>
395         * include/bits/demangle.h
396         (qualifier_list<Allocator>::decode_qualifiers(string_type&,
397         string_type&, bool member_function_pointer_qualifiers):
398         Always separate the '[' of an array type with a space from
399         what is left of it, except when that is the closing bracket
400         of another array dimension.
402 2003-11-07  Carlo Wood  <carlo@alinoe.com>
404         * include/bits/demangle.h
405         (qualifier_list<Allocator>::decode_qualifiers(string_type&,
406         string_type&, bool) const): Made const.
407         (qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
408         (_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
409         std::ostream& operator<<(std::ostream&, qualifier const&),
410         std::ostream& operator<<(std::ostream&, qualifier_list const&),
411         qualifier_list<Allocator>::decode_qualifiers(string_type&,
412         string_type&, bool) const,
413         session<Allocator>::decode_type_with_postfix(string_type&,
414         string_type&, qualifier_list<Allocator>*))
415         Added and/or changed debug-only hooks and code.
417 2003-11-04  Jeffrey D. Oldham  <oldham@codesourcery.com>
419         * libsupc++/vec.cc (__cxa_vec_delete2): If given a NULL pointer,
420         immediately return.  This reflects a C++ ABI change 2003 Nov 03.
421         (__cxa_vec_delete3): Likewise.
422         
423 2003-11-03  Petur Runolfsson  <peturr02@ru.is>
425         PR libstdc++/12790
426         * include/bits/fstream.tcc: Delete _M_last_overflowed.
427         (basic_filebuf::basic_filebuf): Initialize _M_state_last.
428         (basic_filebuf::open, basic_filebuf::close): Assign
429         _M_state_beg to _M_state_cur and _M_state_last.
430         (basic_filebuf::close): Call _M_terminate_output to handle
431         unshift and flushing.
432         (basic_filebuf::underflow): Assign _M_state_last, throw
433         exception instead of calling abort when codecvt::max_length()
434         is bad.
435         (basic_filebuf::seekoff): Use _M_state_last when calling
436         codecvt::length(), pass correct state to _M_seek.
437         (basic_filebuf::seekpos): Pass __pos.state() to _M_seek.
438         (basic_filebuf::_M_seek): Add __state_type parameter,
439         set _M_state_cur correctly, store the resulting state in
440         the return value and use _M_terminate_output to handle
441         flushing and unshift.
442         (basic_filebuf::_M_terminate_output): Flush contents of
443         output buffer, if any, then call codecvt::unshift as
444         needed and output the result.
445         (basic_filebuf::sync): Move here, don't modify _M_writing
446         or _M_reading.
447         
448         * include/std/std_fstream.h
449         (basic_filebuf::_M_state_last): Declare it.
450         (basic_filebuf::_M_last_overflowed): Delete.
451         (basic_filebuf::_M_seek): Add __state_type parameter.
452         (basic_filebuf::sync): Declare only.
453         (basic_filebuf::_M_output_unshift): Delete.
454         (basic_filebuf::_M_terminate_output): Declare it.
455         
456         * testsuite/testsuite_character.h:
457         Define character class and state class plus char_traits and
458         codecvt specializations for same for testing support for
459         stateful encodings.
460         
461         * testsuite/27_io/basic_filebuf/close/12790-1.cc,
462         * testsuite/27_io/basic_filebuf/close/char/12790-1.cc,
463         * testsuite/27_io/basic_filebuf/close/char/12790-2.cc,
464         * testsuite/27_io/basic_filebuf/close/char/12790-3.cc,
465         * testsuite/27_io/basic_filebuf/close/char/12790-4.cc,
466         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc,
467         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc,
468         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc,
469         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc,
470         * testsuite/27_io/basic_filebuf/open/12790-1.cc,
471         * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc,
472         * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc,
473         * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc,
474         * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc,
475         * testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc,
476         * testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc,
477         * testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc,
478         * testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc,
479         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc,
480         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc,
481         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc,
482         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc,
483         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc,
484         * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc,
485         * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc,
486         * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc,
487         * testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc,
488         * testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc,
489         * testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc,
490         * testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc,
491         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc,
492         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc,
493         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc,
494         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc,
495         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc,
496         * testsuite/27_io/basic_filebuf/sync/char/1.cc,
497         * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc:
498         New tests.
500         * testsuite/27_io/basic_filebuf/3.cc,
501         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc,
502         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc,
503         * testsuite/27_io/basic_fstream/3.cc,
504         * testsuite/27_io/basic_ifstream/3.cc,
505         * testsuite/27_io/basic_ofstream/3.cc:
506         Use streamoff as off_type and fpos<state_type> as pos_type.
508         * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc,
509         * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc:
510         Check that sync does *not* set _M_writing to false.
512 2003-11-03  Anthony Green  <green@redhat.com>
514         * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
515         they're used.
517 2003-11-03  Benjamin Kosnik  <bkoz@redhat.com>
519         * include/bits/locale_facets.h (time_get::_M_extract_name): Add
520         ctype argument. 
521         * include/bits/locale_facets.tcc: Same, use it to allow
522         capitalized names.
523         
524         * include/bits/fstream.tcc: Spacing tweak.
525         * include/bits/istream.tcc: Same.
526         * include/bits/ostream.tcc: Same.
528 2003-10-30  Paolo Carlini  <pcarlini@suse.de>
530         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
531         __mod is only assigned, never used its value, remove it.
533 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
535         * include/bits/locale_facets.tcc (time_get::do_get_year):
536         Absolutely avoid dereferencing end iterators.
537         (time_put::put): Minor clean up.
539         * include/bits/locale_facets.tcc: Cosmetic reformattings.
541 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
543         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
544         Revert the last commit, is not correct, sorry.
545         
546 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
548         * config/locale/generic/c_locale.cc: Add back <cmath> and
549         <cstdlib>.
551         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
552         Clean up.
554 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
556         * include/bits/locale_facets.tcc (time_put::put): Absolutely
557         avoid dereferencing end iterators; clean up.
559         * include/bits/locale_facets.tcc (num_get::_M_extract_float,
560         num_get::_M_extract_int): Minor tweak.
562 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
564         * include/bits/locale_facets.tcc: Remove some unnecessary
565         includes.
566         * config/locale/generic/c_locale.cc: Include <cerrno> here.
567         * config/locale/gnu/c_locale.cc: Likewise.
569 2003-10-28  Paolo Carlini  <pcarlini@suse.de>
571         * include/bits/locale_facets.tcc
572         (money_get<>::do_get(..., string_type&)): Absolutely avoid
573         dereferencing end iterators; general clean up.
575 2003-10-28  Paolo Carlini  <pcarlini@suse.de>
577         * include/bits/locale_facets.tcc (time_get::_M_extract_num):
578         Absolutely avoid dereferencing end iterators.
579         (time_get::_M_extract_name): Likewise.
581         * include/bits/locale_facets.tcc
582         (time_get::_M_extract_via_format, case 'e'): Don't try to
583         be smart wrt returning the right __beg in case of parse
584         error, time_get::_M_extract_num must be fixed instead.
586 2003-10-27  Paolo Carlini  <pcarlini@suse.de>
588         PR libstdc++/12778
589         * acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
590         * aclocal.m4: Regenerate.
591         * configure: Regenerate.
593 2003-10-27  Benjamin Kosnik  <bkoz@redhat.com>
594         
595         * docs/html/17_intro/TODO: Add links.
596         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
597         Uncomment.
598         
599 2003-10-27  Paolo Carlini  <pcarlini@suse.de>
601         PR libstdc++/12750
602         * include/bits/locale_facets.tcc
603         (time_get::_M_extract_via_format): Deal with code 'e'.
604         * testsuite/22_locale/time_get/get_date/char/12750.cc: New.
605         * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.
607         * include/bits/locale_facets.tcc
608         (time_get::_M_extract_via_format): Tweak to absolutely avoid
609         dereferencing end iterators.
611         * include/bits/locale_facets.h (__verify_grouping):
612         Const-ify second parameter.
613         * include/bits/locale_facets.tcc (__verify_grouping): Ditto.
614         * src/locale-inst.cc (__verify_grouping): Ditto.
616 2003-10-27  Paolo Carlini  <pcarlini@suse.de>
618         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
619         Various things: 1- Avoid absolutely end iterator dereferences;
620         2- Improve performance-wise the code skipping leading zeros;
621         3- Fix two bugs wrt early bail out in case of parsing errors
622         (see testcases); 4- General clean up.
623         (num_get::_M_extract_int): Likewise, except 3-. Additionally,
624         use __builtin_expect to favor base 10 inputs.
625         * testsuite/22_locale/num_get/get/char/7.cc: New.
626         * testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.
628 2003-10-26  Paolo Carlini  <pcarlini@suse.de>
630         * testsuite/22_locale/money_put/put/char/1.cc: Clean up.
631         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.
633 2003-10-25  Paolo Carlini  <pcarlini@suse.de>
635         * include/bits/locale_facets.tcc (num_get::_M_extract_int):
636         __pos in only incremented, never used its value, remove it.
638 2003-10-24  Robert Millan  <robertmh@gnu.org>
640         * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
641         and knetbsd*-gnu.
642         * aclocal.m4:  Regenerated.
643         * configure:  Regenerated.
645 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
647         * include/bits/locale_facets.tcc (money_get::do_get(...,
648         long double&): Properly size the temporary buffer.
649         * testsuite/22_locale/money_get/get/char/11.cc: New.
650         * testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.
652         * include/bits/locale_facets.tcc (num_put::_M_group_int,
653         num_put::_M_group_float, money_put::do_put(..., const
654         string_type&), collate::do_compare, collate::do_transform):
655         Prefer basic_string::data() to c_str() when the '\0'
656         terminator is not really needed.
658 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
660         * include/bits/locale_facets.tcc (__verify_grouping):
661         Prefer '=' to an unnecessary '&='.
663 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
665         * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
666         Tweak my fix for libstdc++/12657.
668 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
670         * include/bits/locale_facets.tcc (money_get::do_get(...,
671         string_type&): Minor tweak to the previous commit.
673 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
675         * include/bits/locale_facets.tcc (money_get::do_get(...,
676         string_type&): Disregard the previous commit: doesn't hurt but
677         doesn't accomplish anything useful either. This is the right
678         one, speeding up greatly the function in case of early fail.
680 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
682         * include/bits/locale_facets.tcc (money_get::do_get(...,
683         string_type&): Move an if block, thus minimizing the amount
684         of code processed anyway when __tmp_units.size() == 0.
686 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
688         * include/bits/locale_facets.tcc
689         (time_get<>::_M_extract_via_format): Deal with case 'C' too,
690         equivalent to 'y'.
692 2003-10-23  Benjamin Kosnik  <bkoz@redhat.com>
694         * docs/html/documentation.html: Add a pointer to the doxygen style
695         guide.
696         * docs/html/17_intro/TODO: Update.
697         * docs/html/test.html: Add instructions for running a subset of
698         tests, update.
700 2003-10-23  Paolo Carlini  <pcarlini@suse.de>
702         * include/bits/locale_facets.tcc (money_get<>::do_get(...,
703         string_type&)): Use find_first_not_of to strip leading
704         zeros; if __tmp_units == "0" never prefix it with '-';
705         always fail if __tmp_units is empty.
706         * testsuite/22_locale/money_get/get/char/10.cc: New.
707         * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
709 2003-10-23  Phil Edwards  <phil@codesourcery.com>
711         * config/os/vxworks/ctype_noninline.h:  Adjust ctor to match
712         2003-10-21 change.
714 2003-10-22  Paolo Carlini  <pcarlini@suse.de>
716         * include/bits/locale_facets.tcc (__int_to_char): Remove
717         the const int parameter.
718         (_M_insert_int): Update caller.
719         * src/locale-inst.cc (__int_to_char): Update instantiations.    
721 2003-10-22  Benjamin Kosnik  <bkoz@redhat.com>
723         * include/bits/locale_facets.h: Correct byname facets for "C"
724         locale.
725         * config/locale/generic/ctype_members.cc: Same.
726         * config/locale/generic/messages_members.h: Same.
727         * config/locale/gnu/ctype_members.cc: Same.
728         * config/locale/gnu/messages_members.h: Same.
729         * include/bits/codecvt.h: Same.
730         * src/ctype.cc: Same.
731         * testsuite/22_locale/codecvt_byname/1.cc: New.
732         * testsuite/22_locale/collate/1.cc: Edit.
733         * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
734         * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
735         * testsuite/22_locale/ctype/1.cc: Derivation tests.
736         * testsuite/22_locale/ctype/11844.cc: Move...
737         * testsuite/22_locale/ctype_base/11844.cc: ...here.
738         * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
739         * testsuite/22_locale/ctype_byname/1.cc: Name.
740         * testsuite/22_locale/messages_byname/1.cc: New.
741         * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
742         * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
743         * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
744         * testsuite/22_locale/numpunct/1.cc: Edit.
745         * testsuite/22_locale/numpunct_byname/2.cc: Move...
746         * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
747         * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
748         * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
750 2003-10-22  Paolo Carlini  <pcarlini@suse.de>
752         PR libstdc++/8610
753         * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
754         checking for the availability of int64_t.
755         (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
756         * configure.ac: Call here.
757         * acconfig.h: Add undef for the corresponding symbols.
758         * config/io/basic_file_stdio.cc (__basic_file<char>::open):
759         Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
760         (__basic_file<char>::seekoff): Likewise, call lseek64 when
761         available, otherwise lseek, checking the __off parameter.
762         * include/bits/postypes.h: Typedef __streamoff_base_type
763         to int64_t if available, otherwise long long.
764         * aclocal.m4: Regenerate.
765         * config.h.in: Likewise.
766         * configure: Likewise.
768         * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
769         Use AC_TRY_LINK instead of AC_TRY_COMPILE.
770         
771 2003-10-22  Paolo Carlini  <pcarlini@suse.de>
773         PR libstdc++/12657
774         * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
775         Implement resolution of DR 292 (WP).
776         * docs/html/ext/howto.html: Add entry for DR 292.
778 2003-10-21  Benjamin Kosnik  <bkoz@redhat.com>
780         * include/ext/mt_allocator.h: Change include to gthr.h.
781         * include/ext/rope: Same. Add _Refcount_base definitions.
782         * include/ext/pool_allocator.h: Adjust namespaces.
783         * include/bits/stl_threads.h (_Refcount_base): Move.
784         Put remaining into namespace __gnu_cxx.
785         
786 2003-10-21  Benjamin Kosnik  <bkoz@redhat.com>
788         PR libstdc++/9858
789         * include/bits/locale_facets.h (ctype<char>): Remove
790         __ctype_abstract_base.
791         (ctype<char>::do_is): Remove.
792         (ctype<char>::do_scan_is): Remove.
793         * src/ctype.cc: Same. Inline the rest.
794         * testsuite/22_locale/ctype/is/char/9858.cc: New.
795         * config/os/aix/ctype_noninline.h: Adjust ctor.
796         * config/os/bsd/freebsd/ctype_noninline.h: Same.
797         * config/os/bsd/netbsd/ctype_noninline.h: Same.
798         * config/os/djgpp/ctype_noninline.h: Same.
799         * config/os/generic/ctype_noninline.h: Same.
800         * config/os/gnu-linux/ctype_noninline.h: Same.
801         * config/os/hpux/ctype_noninline.h: Same.
802         * config/os/irix/irix5.2/ctype_noninline.h: Same.
803         * config/os/irix/irix6.5/ctype_noninline.h: Same.
804         * config/os/mingw32/ctype_noninline.h: Same.
805         * config/os/newlib/ctype_noninline.h: Same.
806         * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
807         * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
808         * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
809         * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
810         * config/os/windiss/ctype_noninline.h: Same.
812 2003-10-21  Paolo Carlini  <pcarlini@suse.de>
814         * src/locale.cc: Tweak a comment.
815         * src/localename.cc: Move a comment.
817 2003-10-20  Benjamin Kosnik  <bkoz@redhat.com>
819         PR libstdc++/10081
820         * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
821         * testsuite_hooks.cc: Same.
822         * 22_locale/numpunct/members/pod/1.cc: Edit.
823         * 22_locale/numpunct/members/pod/2.cc: Same.
824         * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
825         * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
826         * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
827         * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
828         * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
829         * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
830         * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
831         * 27_io/basic_istream/sentry/pod/1.cc: New.
832         * 27_io/basic_ostream/sentry/pod/1.cc: New.
833         * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
834         * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
836 2003-10-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
838         * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
839         of external _MIPS_SIM_ABI32.
841 2003-10-20  Phil Edwards  <phil@codesourcery.com>
843         * configure.ac:  Fix comment typo.
844         * configure.host:  Add vxworks to host_os switch.
845         * crossconfig.m4:  Remove old commented os_include_dir variables
846         left over from autotools transition.
847         (*-vxworks):  New stanza.
848         (*-windiss):  Add missing symbols.
849         * configure:  Regenerate.
850         * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
851         config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
852         New files.
853         * config/os/windiss/os_defines.h:  Define __C9X__.
855 2003-10-19  David Edelsohn  <edelsohn@gnu.org>
857         PR other/12506
858         * configure.host (aix4,aix*): Define os_include_dir to os/generic.
860 2003-10-18  Andreas Tobler  <a.tobler@schweiz.ch>
862         * src/locale.cc (locale::_S_initialize): Re-apply workaround a
863         confusion of the use of the gthr API when __gthread_active_p()
864         returns true.
866 2003-10-17  Benjamin Kosnik  <bkoz@redhat.com>
868         * src/Makefile.am: Add new files.
869         * src/Makefile.in: Regenerate.
870         * src/globals.cc: Split into..
871         * src/globals_io.cc: New.
872         * src/globals_locale.cc: New.
873         * src/ios.cc: Split into...
874         * src/ios_init.cc: New.
875         * src/ios_locale.cc: New.
876         * src/locale-inst.cc: Split into..
877         * src/wlocale-inst.cc: New.
878         * src/locale-misc-inst.cc: New.
879         * src/locale.cc, src/localename: Split into...
880         * src/locale_facets.cc: New.
881         * src/locale_init.cc: New.
882         * src/wstring-inst.cc: Add copyright info.
884 2003-10-16  Petur Runolfsson  <peturr02@ru.is>
886         PR libstdc++/11450
887         PR libstdc++/11543
888         PR libstdc++/12065
889         * config/io/basic_file_stdio.cc (__basic_file::seekoff):
890         Change return value from streampos to streamoff.
891         (__basic_file::seekpos): Delete.
892         * config/io/basic_file_stdio.h: Same.
893         * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
894         * include/Makefile.am (bits_headers): Add bits/postypes.h.
895         * include/bits/char_traits.h: Include bits/postypes.h instead of
896         bits/fpos.h.
897         * include/bits/fstream.tcc (basic_filebuf::open,
898         basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
899         values, use == and != instead.
900         (basic_filebuf::_M_seek): Use explicit conversion from streamoff
901         to pos_type.
902         (basic_filebuf::imbue):  Don't use ! on pos_type values, use
903         == instead. Don't use __check_facet(_M_codecvt) unless is_open().
904         * include/bits/postypes.h: New file.
905         Add __streamoff_base_type typedef, streamsize.
906         (streamoff, streampos, wstreampos): Define typedefs, with
907         streamoff defined as...
908         (streamoff): New class. Document implementation defined
909         aspects.
910         (fpos): New implementation. Document implementation defined
911         aspects.
912         * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
913         explicit conversion from pos_type to off_type.
914         * include/std/std_iosfwd.h: Include bits/postypes.h instead
915         of bits/fpos.h.
916         * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
917         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
918         * testsuite/27_io/fpos/11450.cc: New test.
919         * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
920         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
921         * testsuite/27_io/types/3.cc: New test.
923 2003-10-16  Benjamin Kosnik  <bkoz@redhat.com>
925         * configure.host: Remove fpos_include_dir.
926         * configure.ac: Remove FPOS_INC_SRCDIR.
927         * configure: Regenerate.
928         * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
929         * aclocal.m4: Regenerate.
930         * include/Makefile.am (host_headers): Remove fpos.h.
931         (bits_headers): Add postypes.h.
932         * include/Makefile.in: Regenerate.
933         * config/os/gnu-linux/fposh: Remove.
934         * config/os/generic/fpos.h: Remove.
936         * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
937         * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
938         * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
939         * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
940         * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
941         * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
942         * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
943         * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
944         * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
945         * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
946         * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
947         * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
948         * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
949         * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
950         * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
951         * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
952         * testsuite/27_io/objects/char/10.cc: Same.
954 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
956         * src/locale.cc (locale::locale(const char*)): ... one
957         more comparison missed in the previous commit.
959 2003-10-16  Benjamin Kosnik  <bkoz@redhat.com>
961         * acconfig.h: Add HAVE_DRAND48.
962         * crossconfig.m4: Remove ISATTY.
963         * aclocal.m4: Regenerated.
964         * config.h.in: Regenerated.
965         * configure: Regenerated.
966         
967 2003-10-16  Bernardo Innocenti  <bernie@develer.com>
969         * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
970         __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
971         Document SMP safeness of asm macros.
973 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
975         * src/locale.cc (locale::locale(const char*)): Tweak
976         a couple of comparisons to use basic_string operators.
978 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
980         PR libstdc++/12540
981         * config/locale/gnu/monetary_members.cc
982         (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
983         Don't leak memory if new throws.
984         * src/locale.cc (locale::locale(const char*)): In order not
985         to leak memory in case new throws, use a basic_string type
986         for __res too and avoid strdup.
988 2003-10-14  Jeff Bailey  <jbailey@nisa.net>
989         
990         PR libstdc++/12562
991         * crossconfig.m4: Share the config between *-linux* and *-gnu*.
992         * configure: Regenerate.
994 2003-10-14  Carlo Wood  <carlo@alinoe.com>
996         PR libstdc++/12600
997         * include/bits/demangle.h (session<Allocator>::
998           decode_unqualified_name(string_type& output)): Fail on a
999           <operator-name> when decoding <template-argument>.
1000         * testsuite/demangle/regression/cw-15.cc: New.
1002 2003-10-14  Paolo Carlini  <pcarlini@unitus.it>
1004         PR libstdc++/11480
1005         * include/bits/stl_algo.h (unique): Fix.
1006         * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
1007         * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
1008         * testsuite/25_algorithms/unique/2.cc: New.
1010 2003-10-14  Paolo Carlini  <pcarlini@unitus.it>
1012         * src/localename.cc (_M_replace_categories, M_replace_facet):
1013         Const-ify a couple of variables.
1015 2003-10-14  Petur Runolfsson  <peturr02@ru.is>
1016             Andreas Tobler  <a.tobler@schweiz.ch>
1018         * src/locale.cc (locale::_S_initialize): Workaround a confusion
1019         of the use of the gthr API when __gthread_active_p() returns true.
1021 2003-10-12  Petur Runolfsson  <peturr02@ru.is>
1022             Paolo Carlini  <pcarlini@unitus.it>
1024         PR libstdc++/11460
1025         * src/strstream.cc (pbackfail): Fix to use to_int_type.
1026         * testsuite/backward/11460.cc: New, from the PR.
1028 2003-10-12  Paolo Carlini  <pcarlini@unitus.it>
1030         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
1031         Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
1032         * include/bits/basic_string.tcc: Likewise.
1033         * include/bits/ios_base.h: Likewise.
1034         * include/bits/istream.tcc: Likewise.
1035         * include/bits/locale_facets.tcc: Likewise.
1036         * include/bits/ostream.tcc: Likewise.
1037         * include/bits/stl_function.h: Likewise.
1038         * include/bits/stl_multiset.h: Likewise.
1039         * include/bits/stl_pair.h: Likewise.
1040         * include/bits/stl_set.h: Likewise.
1041         * include/bits/streambuf_iterator.h
1042         * include/std/std_iosfwd.h: Likewise.
1043         * include/std/std_istream.h: Likewise.
1044         * include/std/std_sstream.h: Likewise.
1045         * include/std/std_streambuf.h: Likewise.
1046         * src/ios.cc: Likewise.
1047         * include/bits/c++config:
1048         Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
1049         * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
1050         dg-error directive due to removal of a blank line.
1051         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1053 2003-10-12  Andreas Tobler  <a.tobler@schweiz.ch>
1054             Paolo Carlini  <pcarlini@unitus.it>
1056         PR libstdc++/11844/11740 (cont)
1057         * config/os/generic/ctype_inline.h (ctype<char>::is):
1058         Generically, use a bitmasksize of 15 (instead of 10);
1059         Fix the logic to actually return (M & m) != 0 as per
1060         22.2.1.1.2.
1062 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
1064         * crossconfig.m4 (*-uclinux*): New target.
1065         * configure: Regenerate.
1067 2003-10-10  Paolo Carlini  <pcarlini@unitus.it>
1069         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
1070         Avoid unnecessarily calling __builtin_alloca and dealing
1071         explicitly with width() smaller than zero.
1072         (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
1073         const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
1074         const char*), operator<<(basic_ostream<char, _Traits>&,
1075         const char*), operator<<(basic_ostream, const basic_string&)):
1076         Likewise.
1078 2003-10-09  Benjamin Kosnik  <bkoz@redhat.com>
1080         * config/linker-map.gnu: Make more *_type_info bits visible.
1081         Move new/delete bits back into GLIBCXX space.
1083         * include/bits/locale_classes.h: Move _M_id out of line, so that
1084         locale::id::_S_highwater can be removed from the export list.
1085         * src/locale.cc (locale::id::_M_id): Define.
1086         
1087 2003-10-09  Andreas Tobler  <a.tobler@schweiz.ch>
1089         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
1090         SPARC64.
1092 2003-10-09  Paolo Carlini  <pcarlini@unitus.it>
1094         PR libstdc++/11844
1095         * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
1096         to conform to the requirements of 22.2.1.
1097         * config/os/bsd/freebsd/ctype_base.h: Likewise.
1098         * config/os/djgpp/ctype_base.h: Likewise.
1099         * config/os/generic/ctype_base.h: Likewise.
1100         * config/os/gnu-linux/ctype_base.h: Likewise.
1101         * config/os/hpux/ctype_base.h: Likewise.
1102         * config/os/irix/irix6.5/ctype_base.h: Likewise.
1103         * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
1104         * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
1105         * testsuite/22_locale/ctype/11844.cc: New.
1107         * config/locale/generic/ctype_members.cc (do_is):
1108         Generically, use a bitmasksize of 15 (instead of 10), since
1109         we don't know the numerical encoding of the various categories
1110         in the underlying /usr/include/ctype.h.
1112 2003-10-09  Benjamin Kosnik  <bkoz@redhat.com>
1114         * src/string-inst.cc: Prune.
1115         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
1116         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1117         
1118 2003-10-09  Petur Runolfsson  <peturr02@ru.is>
1120         * src/io-inst.cc: Don't include iostream.
1121         * include/bits/ios_base.h (ios_base::failure): Use string.
1122         * src/Makefile.am: Add ios_failure.cc.
1123         * src/Makefile.in: Regenerate.
1124         * src/ios.cc: Move ios_base::failure definitions to...
1125         * src/ios_failure.cc: ...here. New.
1127 2003-10-09  Petur Runolfsson  <peturr02@ru.is>
1129         PR libstdc++/9874
1130         * include/bits/fstream.tcc (basic_filebuf::seekoff):
1131         Move code needed for both seekoff and seekpos...
1132         (basic_filebuf::_M_seek): ...here. New function.
1133         (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
1134         * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
1135         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
1137         * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
1139 2003-10-08  Paolo Carlini  <pcarlini@unitus.it>
1141         * include/bits/locale_facets.tcc: More minor cosmetic
1142         changes and const-ifications of some variables.
1144 2003-10-07  Paolo Carlini  <pcarlini@unitus.it>
1146         * include/bits/locale_facets.tcc: Minor cosmetic changes
1147         and const-ifications of some variables.
1149         * include/bits/locale_facets.tcc
1150         (money_get::do_get(..., string_type&)): Simplify an if-else.
1152 2003-10-06  Paolo Carlini  <pcarlini@unitus.it>
1154         PR libstdc++/11740
1155         * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
1156         Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
1157         * config/locale/generic/ctype_members.cc: Same.
1158         * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
1160 2003-10-06  Paolo Carlini  <pcarlini@unitus.it>
1162         * include/bits/locale_facets.tcc (__pad<>::_S_pad):
1163         Improve performance-wise: avoid one traits::copy, avoid
1164         the __builtin_alloca, streamline.
1166 2003-10-05  Paolo Carlini  <pcarlini@unitus.it>
1168         * include/bits/locale_facets.tcc
1169         (num_put::do_put(..., bool)): Prefer ?: to if-else.
1170         (time_get::_M_extract_name): Qualify min with std::.
1171         (__pad<>::_S_pad): Constify two variables; simplify an
1172         if-else statement factoring out some code.
1174         * include/bits/locale_facets.tcc: Minor cosmetic changes.
1176 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
1178         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1179         Constify a couple of variables.
1180         (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
1181         ++__beg to *__beg++.
1183 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
1184             Petur Runolfsson  <peturr02@ru.is>
1186         * include/ext/stdio_sync_filebuf.h: Don't include the whole
1187         <fstream>, only <streambuf> and <cstdio>.
1189 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
1191         PR libstdc++/12206
1192         * include/bits/fstream.tcc (imbue): In case a codecvt facet
1193         is not available, set _M_codecvt = 0.
1194         * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
1196 2003-10-02  Harald Boehme  <boehme@informatik.hu-berlin.de>
1198         PR libstdc++/12451
1199         * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
1200         
1201 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
1203         * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
1204         * src/locale.cc: Define.
1205         * src/localename.cc: Use it.
1206         * config/locale/generic/time_members.h: Same.
1207         * config/locale/gnu/messages_members.h: Same.
1208         * config/locale/gnu/time_members.h: Same.
1210 2003-10-02  Paolo Carlini  <pcarlini@unitus.it>
1212         PR libstdc++/12232
1213         * include/bits/fstream.tcc (seekoff): Ignore the openmode
1214         argument; simplify.
1215         * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
1216         seekpos): Remove the openmode argument.
1217         * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
1218         seekpos): Remove redundant placeholder for the openmode argument.
1219         * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
1220         * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
1221         * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
1222         * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
1223         * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
1225 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
1227         * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
1228         (locale::facet::_S_get_c_locale): Same.
1229         
1230 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
1232         * config/linker-map.gnu: Export _S_get_c_locale instead of
1233         _S_c_locale object.
1235 2003-10-02  Petur Runolfsson  <peturr02@ru.is>
1237         * config/locale/generic/c_locale.cc
1238         (category_names, locale::_S_categories): Const qualify.
1239         * config/locale/gnu/c_locale.cc: Same.
1240         * config/locale/generic/time_members.h (__timepunct::__timepunct):
1241         Copy string contents before assigning to _M_name_timepunct,
1242         qualify strcpy and strlen with std::.
1243         * config/locale/gnu/time_members.h: Same.
1244         * config/locale/gnu/messages_members.h (messages::messages):
1245         Copy string contents before assigning to _M_name_messages,
1246         qualify strcpy and strlen with std::.
1247         * config/os/gnu-linux/ctype_noninline.h
1248         (ctype<char>::classic_table()): Don't call locale::classic().
1249         * include/bits/locale_classes.h
1250         (locale::_S_categories): Const qualify. 
1251         (locale::_S_once, locale::_S_initialize_once,
1252         locale::facet::_S_once, locale::facet::_S_initialize_once,
1253         locale::facet::_S_get_c_locale): Declare.
1254         (locale::_S_initialize): Don't define.
1255         (locale::facet::_S_c_locale): Make private.
1256         (locale::facet::_S_c_name): Same, const qualify.
1257         (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
1258         parameters, add throw() specifier.
1259         * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
1260         messages::_M_name_messages): Const qualify.
1261         * src/locale.cc
1262         (locale::_S_once, locale::facet::_S_once): Define.
1263         (locale::classic): Move initialization code...
1264         (locale::_S_initialize_once): ...here.  
1265         (locale::_S_initialize): Call _S_initialize_once through
1266         __gthread_once.
1267         (locale::facet::_S_initialize_once): Initialize _S_c_locale.
1268         (locale::facet::_S_get_c_locale): Call _S_initialize_once through
1269         __gthread_once before returning _S_c_locale.
1270         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
1271         Drop unused parameters, add throw() specifier, don't initialize
1272         locale::facet::_S_c_locale and _S_c_name.
1273         
1274         * config/locale/generic/messages_members.h:
1275         Replace _S_c_locale with _S_get_c_locale().
1276         * config/locale/gnu/c_locale.cc: Same.
1277         * config/locale/gnu/messages_members.h: Same.
1278         * config/locale/gnu/numeric_members.cc: Same.
1279         * config/locale/gnu/time_members.cc: Same.
1280         * config/os/gnu-linux/ctype_noninline.h: Same.
1281         * include/bits/locale_facets.h: Same.
1282         * include/bits/locale_facets.tcc: Same.
1283         * src/codecvt.cc: Same.
1284         * src/ctype.cc: Same.
1286 2003-10-02  Carlo Wood  <carlo@alinoe.com>
1288         * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
1289         Decode symbols that start with _GLOBAL_[ID]_ differently: the
1290         trailing part ends with a terminating zero and is not necessarily an
1291         encoding.
1292         * src/demangle.cc (): Same.
1293         * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
1295 2003-10-02  Paolo Carlini  <pcarlini@unitus.it>
1297         * testsuite/22_locale/locale/cons/12438.cc: Use
1298         __gnu_test::try_named_locale("").
1300 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1302         * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
1303         (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
1304         instead of drand48.
1305         * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
1306         * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
1307         HAVE_DRAND48.
1308         * config.h.in, configure: Regenerate.
1309         * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
1310         lrand48 use.
1312 2003-10-01  Nathan Myers  <ncm@cantrip.org>
1314         * include/bits/locale_facets.tcc (time_put::put): Avoid
1315         expensive *__s++, in favor of *__s, ++__s.
1317 2003-10-01  Paolo Carlini  <pcarlini@unitus.it>
1319         * include/bits/locale_facets.tcc (time_put::put): Minor
1320         tweak to the previous commit.
1322 2003-10-01  Paolo Carlini  <pcarlini@unitus.it>
1324         PR libstdc++/12439
1325         * include/bits/locale_facets.tcc (time_put::put): Deal
1326         with the three issues pointed out by the PR.
1327         * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
1328         * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
1329         * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
1330         * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
1331         * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
1333 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
1335         * include/bits/stl_algo.h: Minor cosmetic reformattings.
1337 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
1339         * include/bits/stl_algo.h (search_n): Tweak, to spare the
1340         first --__n.
1342 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
1344         * testsuite/22_locale/locale/cons/12352.cc: Explicitly
1345         qualify exception name.
1347 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
1349         PR libstdc++/12438
1350         * include/bits/locale_facets.tcc (locale::combine): Don't
1351         leak memory if _M_replace_facet throws.
1352         * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
1354         * include/bits/locale_classes.h (locale::locale(const locale&,
1355         _Facet*)): Tweak, use consistently _M_remove_reference.
1357 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
1359         PR libstdc++/12352 (cont)
1360         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
1361         Don't leak __cloc; don't leak if any of the _M_init_facet(...)
1362         calls fail.
1363         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
1364         (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
1365         !_M_caches, !_M_names.
1367 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1369         * configure.host: Handle Solaris 2.5 micro releases explicitly.
1370         Remove wildcards from Solaris 2.6, 7-9: there were no
1371         micro releases.
1372         Treat Solaris 10 and up like 7-9.
1374 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
1376         * include/bits/stl_algo.h (search_n): Improve the previous
1377         fix as suggested by Martin.
1379 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
1381         PR libstdc++/12296
1382         * include/bits/istream.tcc (peek): Set eofbit if sgetc
1383         returns eof.
1384         * testsuite/27_io/basic_istream/peek/char/12296.cc:
1385         New, from the PR.
1387 2003-09-29  Nathan Myers  <ncm@cantrip.org>
1388             Paolo Carlini  <pcarlini@unitus.it>
1390         PR libstdc++/11400
1391         * include/bits/stl_algo.h (search_n):
1392         Use iterator_traits<>::difference_type for __n.
1393         * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
1395 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
1397         * testsuite/22_locale/locale/cons/12352.cc:
1398         Use __attribute__((unused)) for test.
1400 2003-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
1402         * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either 
1403         "Son" or "So" as abbreviated name for Sunday in de_DE locale.
1404         * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
1406 2003-09-26  Brad Spencer  <spencer@infointeractive.com>
1408         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
1409         Explicitly qualify exceptions.
1410         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
1411         * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
1412         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
1413         * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
1414         
1415 2003-09-25  Paolo Carlini  <pcarlini@unitus.it>
1417         PR libstdc++/12352
1418         * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
1419         size_t)): Don't leak if memory allocations for _M_facets,
1420         _M_caches, and _M_names fail.
1421         (locale::_Impl::_Impl(const char*, size_t)): Ditto.
1422         (locale::_Impl::_M_replace_categories(const _Impl*,
1423         category)): Ditto.
1424         (locale::_Impl::_M_install_facet(const locale::id*,
1425         const facet*)): Ditto.
1426         * include/bits/locale_classes.h (locale::locale(const locale&,
1427         _Facet*)): Don't leak memory.
1428         * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
1430         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
1431         bool)): Qualify with std:: strcpy, tweak.
1432         * include/bits/locale_classes.h
1433         (locale::_Impl::_M_check_same_name): Qualify strcmp.
1435 2003-09-25  Brad Spencer  <spencer@infointeractive.com>
1437         PR libstdc++/6072
1438         * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
1439         wcstof, iswblank.       
1440         * aclocal.m4: Regenerate.
1441         * config.h.in: Regenerate.
1442         * configure: Regenerate.
1443         * crossconfig.m4: Add in wchar_t bits for solaris crosses.
1444         * config/io/basic_file_stdio.cc: Guard unistd.h.
1445         * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
1446         * include/c_std/std_cwchar.h: Same.
1447         * include/c_std/std_cwctype.h: Same.
1448         
1449 2003-09-25  Benjamin Kosnik  <bkoz@redhat.com>
1451         PR libstdc++/11065
1452         * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
1453         * config/locale/generic/ctype_members.cc: Same.
1454         * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
1455         * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
1457         * config/os/generic/ctype_inline.h: Update.
1458         
1459 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
1461         * src/Makefile.am (version_dep): New variable.
1462         (libstdc___la_DEPENDENCIES): Use it to add dependency on
1463         libstdc++-symbol.ver only when using symbol versioning.
1464         * src/Makefile.in: Regenerate.
1466 2003-09-23  Benjamin Kosnik  <bkoz@redhat.com>
1468         * include/bits/locale_facets.tcc: Tweak to avoid warnings.
1469         * testsuite/testsuite_hooks.h: Same.
1470         * testsuite/*/*.cc: Same.
1472 2003-09-22  Petur Runolfsson  <peturr02@ru.is>
1474         * include/bits/istream.tcc (basic_istream::read,
1475         basic_istream::readsome, basic_istream::putback,
1476         basic_istream::unget, operator>>(basic_istream, CharT)):
1477         Avoid redundant setstate(failbit) calls when sentry::operator bool()
1478         returns false.
1480 2003-09-22  Carlo Wood  <carlo@alinoe.com>
1482         PR libstdc++/12365
1483         * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
1484         char const*, int, int)):  Remove unused identifier
1485         cv_qualifier for overloaded constructor.
1487 2003-09-18  Benjamin Kosnik  <bkoz@redhat.com>
1489         PR libstdc++/11504
1490         * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
1491         WARN_FLAGS, remove -Wno-format.
1492         * aclocal.m4: Regenerate.
1493         * configure: Regenerate.
1495 2003-09-18  Petur Runolfsson  <peturr02@ru.is>
1497         * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
1498         * config/io/basic_file_stdio.h: Same.
1499         * include/std/std_fstream.h (__ctype_type): Delete.
1500         * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
1501         
1502 2003-09-17  Benjamin Kosnik  <bkoz@redhat.com>
1504         PR libstdc++/12239
1505         * configure.host (abi_baseline_pair): Error out on solaris2
1506         configurations without a minor version number.
1508 2003-09-13  Phil Edwards  <phil@codesourcery.com>
1510         * docs/doxygen/run_doxygen:  Clear GENERATE_TAGFILE entirely
1511         if man pages are on.
1512         * docs/doxygen/user.cfg.in:  And here.
1514 2003-09-10  Daniel Jacobowitz  <drow@mvista.com>
1515             Andreas Jaeger <aj@suse.de>
1517         PR libstdc++/12189
1518         * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
1519         abi_check if cross compiling.
1520         * aclocal.m4: Regenerated.
1521         * configure: Regenerated.
1523 2003-09-10  Jeffrey D. Oldham  <oldham@codesourcery.com>
1525         * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
1526         NULL, return NULL.  This reflects a C++ ABI change 2003 Sep 05.
1527         (__cxa_vec_new3): Likewise.
1529 2003-09-10  Petur Runolfsson  <peturr02@ru.is>
1531         * include/bits/fstream.tcc (basic_filebuf::seekoff):
1532         Use codecvt::length to handle variable-width stateless encodings
1533         correctly.
1534         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
1535         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
1537 2003-09-10  Alan Modra  <amodra@bigpond.net.au>
1539         * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
1540         rather than or'ing.
1542 2003-09-09  Alan Modra  <amodra@bigpond.net.au>
1544         * configure: Regenerate.
1546 2003-09-09  David Edelsohn  <edelsohn@gnu.org>
1548         * src/ios.cc (ios_base::Init::Init): Remove unnecessary
1549         qualifier from _S_synced_with_stdio.
1551 2003-09-09  Bernardo Innocenti  <bernie@develer.com>
1553         * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
1555 2003-09-04  Petur Runolfsson  <peturr02@ru.is>
1557         PR libstdc++/9028
1558         * include/bits/fstream.tcc
1559         (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
1560         (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
1561         _M_ext_buf_size, _M_ext_next and _M_ext_end.
1562         (basic_filebuf::underflow): Handle variable-width stateless
1563         encodings (codecvt::encoding() == 0), including UTF-8.
1564         * include/std/std_fstream.h (basic_filebuf):
1565         Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
1566         * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
1567         * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
1568         * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
1569         * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
1570         * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
1571         * testsuite/27_io/objects/wchar_t/12.cc: New test.
1572         * testsuite/27_io/objects/wchar_t/13.cc: New test.
1574 2003-09-04  Jonathan Wakely  <redi@gcc.gnu.org>
1576         * docs/html/faq/index.html: Note that a namespace alias can't be
1577         used when specialising templates in extension namespace.
1578         * docs/html/faq/index.txt: Regenerate.
1580 2003-09-03  Petur Runolfsson  <peturr02@ru.is>
1582         PR libstdc++/12048
1583         * include/ext/stdio_sync_filebuf.h
1584         (stdio_sync_filebuf::_M_unget_buf): Declare it.
1585         (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
1586         (stdio_sync_filebuf::uflow): Store the returned character in
1587         _M_unget_buf.
1588         (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
1589         _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
1590         (stdio_sync_filebuf<char>::xsgetn): Store last read character in
1591         _M_unget_buf, if any, else eof().
1592         (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
1593         _M_unget_buf, if any, else eof().
1594         * testsuite/27_io/objects/char/12048.cc: Rename to...
1595         * testsuite/27_io/objects/char/12048-1.cc: ...this.
1596         * testsuite/27_io/objects/char/12048-2.cc: New test.
1597         * testsuite/27_io/objects/char/12048-3.cc: New test.
1598         * testsuite/27_io/objects/char/12048-4.cc: New test.
1599         * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
1600         * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
1601         * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
1602         * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
1603         * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
1604         * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
1605         * testsuite/ext/stdio_sync_filebuf_char.cc
1606         (test02, test03, test04, test05): New tests.
1607         * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
1608         (test02, test03, test04, test05): New tests.
1610 2003-09-03  Petur Runolfsson  <peturr02@ru.is>
1612         * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
1613         stringbuf or strstreambuf. Fix typos.
1615 2003-09-02  Phil Edwards  <phil@codesourcery.com>
1617         * acinclude.m4 (GLIBCXX_ENABLE_HOSTED):  #define _GLIBCXX_HOSTED
1618         appropriately.
1619         * config.h.in:  Add _GLIBCXX_HOSTED.
1620         * libsupc++/eh_term_handler.cc:  Test it here; initialize
1621         __terminate_handler to std::abort if freestanding.
1622         * aclocal.m4, configure:  Regenerated.
1623         * docs/html/configopts.html:  Document --disable-hosted-libstdcxx.
1625 2003-08-29  Nathan Myers  <ncm@cantrip.org>
1626         
1627         PR libstdc++/11990      
1628         * include/bits/locale_facets.tcc (__pad): delete dead code.
1630 2003-08-28  Alan Modra  <amodra@bigpond.net.au>
1632         * configure.ac: Test $with_cross_host against $build_alias, not $build.
1633         * configure: Regenerate.
1635 2003-08-27  Petur Runolfsson  <peturr02@ru.is>
1637         * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
1638         * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
1640 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
1642         * Makefile.am:  Remove trailing whitespace.  Remove needless
1643         "foo = @foo@" assignments.  Replace direct uses of @foo@ with $(foo).
1644         * include/Makefile.am:  Likewise.
1645         * libmath/Makefile.am:  Likewise.
1646         * libsupc++/Makefile.am:  Likewise.
1647         * po/Makefile.am:  Likewise.
1648         * src/Makefile.am:  Likewise.
1649         * testsuite/Makefile.am:  Likewise.
1651         * Makefile.in, include/Makefile.in, libmath/Makefile.in,
1652         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1653         testsuite/Makefile.in:  Regenerated.
1655 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
1657         * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES):  Change quoting of
1658         includedir.
1659         * aclocal.m4, configure:  Regenerate.
1661 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
1663         * acinclude.m4: Include no-executables.m4.
1664         * configure.ac: Uncomment GCC_NO_EXECUTABLES.
1665         * aclocal.m4: Regenerated.
1666         * configure: Regenerated.
1668 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
1670         * acinclude.m4: Don't call AC_ISC_POSIX.
1671         * aclocal.m4: Regenerated.
1672         * configure: Regenerated.
1674 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
1676         * acinclude.m4 (GLIBCXX_CONDITIONAL):  New macro.  Wrap
1677         AM_CONDITIONAL.  Replace all calls to AM_CONDITIONAL with this one.
1678         (GLIBCXX_ENABLE_HOSTED):  New macro, sets new variable is_hosted,
1679         used elsewhere in this file.
1680         (GLIBCXX_EVALUATE_CONDITIONALS):  New macro...
1681         * configure.ac:  ...called here to expand all conditionals.
1682         * Makefile.am:  Conditionalize SUBDIRS on GLIBCXX_HOSTED.
1683         * include/Makefile.am:  Remove redundant gxx_include_dir assignment.
1684         (install-freestanding-headers):  New target, a subset of
1685         install-headers.  Conditionalize install-data-local on GLIBCXX_HOSTED.
1687         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1688         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1689         src/Makefile.in, testsuite/Makefile.in:  Regenerated.
1691 2003-08-26  Phil Edwards  <pme@gcc.gnu.org>
1693         * docs/doxygen/run_doxygen:  Shell fixes.  Remove hardcoded local
1694         pathnames from generated tag file.
1696 2003-08-26  Phil Edwards  <pme@gcc.gnu.org>
1698         * Makefile.am:  Add comment.
1699         * acinclude.m4 (GLIBCXX_CONFIGURE):  Set new glibcxx_SUBDIRS and
1700         SUBDIRS variables.
1701         * configure.ac:  Use them both here, instead of hardcoded lists.
1703         * fragment.am:  Add STAMP varaible.
1704         * include/Makefile.am:  Cosmetic whitespace cleanup.  Use $(LN_S)
1705         instead of @LN_S@.
1706         (stamp-*):  Move file creation rule outside of 'if' branches to
1707         ensure the stamp-* files are actually updated.  Use $(STAMP).
1708         * src/Makefile.am:  Remove now-nonexistant variable.
1709         * libsupc++/Makefile.am:  Likewise.  Snap the assignment chain
1710         for -prefer-pic.
1711         * po/Makefile.am:  Include same fragment as all the others.
1713         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1714         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in:  Regenerated.
1716 2003-08-26  Loren J. Rittle  <ljrittle@acm.org>
1718         * testsuite/data/cin_unget-1.txt: New.
1719         * testsuite/27_io/objects/char/12048.cc: New.
1721 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
1723         * config/os/hpux/os_defines.h: Unconditionally define
1724         _GLIBCXX_GTHREAD_USE_WEAK to 0.
1726 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
1728         * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
1729         crosses to Darwin targets.
1730         * configure: Regenerate.
1732 2003-08-19  Petur Runolfsson  <peturr02@ru.is>
1734         * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
1736 2003-08-17  Phil Edwards  <pme@gcc.gnu.org>
1738         * configure.ac:  GCC_NO_EXECUTABLES was supposed to be commented
1739         in the patch from 3 minutes ago.  Boy, is my face red.
1740         * configure:  At least I remembered to regenerate this.
1742 2003-08-17  Phil Edwards  <pme@gcc.gnu.org>
1744         * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES):  Remove LIBMATH_INCLUDES
1745         and LIBSUPCXX_INCLUDES.  Re-purpose TOPLEVEL_INCLUDES to refer to
1746         things from the top level.
1747         * configure.ac (GLIBCXX_IS_NATIVE):  Determine earlier and re-order.
1748         Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
1749         (currently unused).  Strip the fake-VPATH shell fragment from
1750         automake-generated rules, if present.
1751         * linkage.m4:  Add comment.
1753         * fragment.am:  New file, containing factored-out common settings.
1754         (AM_CPPFLAGS):  Absorb the deprecated INCLUDES variable contents.
1755         * Makefile.am:  Include fragment.am.  Remove common variables.
1756         * include/Makefile.am:  Likewise.
1757         * libmath/Makefile.am:  Likewise.
1758         * libsupc++/Makefile.am:  Likewise.
1759         * po/Makefile.am:  Likewise.  Print rules during check.
1760         * src/Makefile.am:  Likewise.
1761         * testsuite/Makefile.am:  Likewise.
1763         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1764         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1765         src/Makefile.in, testsuite/Makefile.in:  Regenerate.
1767 2003-08-11  John Levon  <levon@movementarian.org>
1769         * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
1770         remaining places for the name change from GLIBCPP_FORCE_NEW
1771         to GLIBCXX_FORCE_NEW
1773 2003-08-11  Benjamin Kosnik  <bkoz@redhat.com>
1775         * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
1776         typedefs to num_*.
1777         * include/bits/basic_ios.tcc: Same.
1778         * include/bits/istream.tcc: Same.
1779         * include/bits/locale_facets.h: Same.
1780         * include/bits/ostream.tcc: Same.
1781         * include/std/std_istream.h: Same.
1782         * include/std/std_ostream.h: Same.
1783         * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
1785         * include/ext/rope: Remove build warning.
1787 2003-08-11  Andreas Jaeger  <aj@suse.de>
1789         * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
1790         to make SMP-safe.
1791         * include/Makefile.in: Regenerated.
1793 2003-08-11  Phil Edwards  <pme@gcc.gnu.org>
1795         * acinclude.m4 (GLIBCXX_CONFIGURE):  Unprecious CC and CFLAGS
1796         when calling AC_PROG_CC.
1797         * aclocal.m4, configure:  Regenerate.
1799 2003-08-11  Phil Edwards  <pme@gcc.gnu.org>
1801         * acinclude.m4:  Properly quote variable which will be expanded
1802         inside makefiles.  Use CXX instead of CC to extract compiler info.
1803         * configure.ac (AC_INIT):  Use the new 4-arg form to finally get the
1804         correct form in PACKAGE.
1805         * aclocal.m4, configure:  Regenerate.
1807 2003-08-08  Benjamin Kosnik  <bkoz@redhat.com>
1809         * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
1810         (check-abi-verbose): Same.
1811         * testsuite/testsuite_performance.h (report_performance): Same.
1813 2003-08-08  Loren J. Rittle  <ljrittle@acm.org>
1815         * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
1817 2003-08-07  Doug Gregor  <dgregor@apple.com>
1819         * include/bits/char_traits.h (char_traits::not_eof): Match operand
1820         types in ? :.
1822 2003-08-07  Bernardo Innocenti  <bernie@develer.com>
1824         PR libstdc++/11784
1825         * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
1826         Replace variants with new BSET-based version.
1828 2003-08-07  Carlo Wood  <carlo@alinoe.com>
1830         * include/bits/demangle.h: Do not use cctype functions that depend
1831         on locale.
1833 2003-08-05  Phil Edwards  <pme@gcc.gnu.org>
1835         * configure.in:  Rename...
1836         * configure.ac:  ...to this.
1837         * docs/html/17_intro/porting.texi:  Update name.
1839         * docs/html/17_intro/porting.html:  Regenerate.
1840         * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1841         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1842         testsuite/Makefile.in:  Regenerate (picks up new dependancy).
1844 2003-08-05  Phil Edwards  <pme@gcc.gnu.org>
1846         * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS):  Put down the crack
1847         pipe, open the window to let out the fumes, redo the option-handling
1848         logic to properly execute the detection test.
1849         * aclocal.m4, configure:  Regenerate.
1851 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
1853         Convert to new autotools.
1854         * acconfig.h:  Update with correct names.
1855         * configure.host (ATOMICITYH):  Rename to atomicity_include_dir.
1856         (qnx6.[12]*):  'q' comes before 's', not after 'w'.
1857         * configure.in:  Update.  Split hardcoded cross-configury settings
1858         out to...
1859         * crossconfig.m4:  ...here.  New file.  Contents untouched.
1860         * acinclude.m4:  Reorganize and rewrite as needed.  Split large
1861         chunks out to...
1862         * linkage.m4:  ...here.  New file.  Math and stdlib linkage tests.
1863         Contents untouched.
1864         * scripts/testsuite_flags.in:  Update.
1866         * Makefile.am:  Remove unneeded AUTOMAKE_OPTIONS settings and other
1867         variables (already generated by automake).
1868         * include/Makefile.am:  Ditto.
1869         * libmath/Makefile.am:  Ditto.
1870         * libsupc++/Makefile.am:  Ditto.
1871         * po/Makefile.am:  Ditto.
1872         * src/Makefile.am:  Ditto.
1874         * aclocal.m4:  Regenerate using new versions.
1875         * config.h.in:  Ditto.
1876         * configure:  Ditto.
1877         * Makefile.in:  Ditto.
1878         * include/Makefile.in:  Ditto.
1879         * libmath/Makefile.in:  Ditto.
1880         * libsupc++/Makefile.in:  Ditto.
1881         * po/Makefile.in:  Ditto.
1882         * src/Makefile.in:  Ditto.
1883         * testsuite/Makefile.in:  Ditto.
1885 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
1887         * po/libstdc++.pot:  Re-extract/regenerate.
1889 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
1891         * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
1892         Remove unneeded variable assignments.  Leave them for automake.
1893         * testsuite/lib/libstdc++-v3.exp:  Rename...
1894         * testsuite/lib/libstdc++.exp:  ...to this.  Adjust function names
1895         accordingly.
1896         * testsuite/libstdc++-v3.dg/dg.exp:  Rename...
1897         * testsuite/libstdc++-dg/normal.exp:  ...to this.  Adjust function
1898         names accordingly.
1900 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
1902         * docs/doxygen/guide.html:  run_doxygen uses bash.
1903         * docs/doxygen/mainpage.html:  We'll be shipping tag files.
1904         * docs/doxygen/run_doxygen:  Tweaks and improvements.
1905         * docs/doxygen/user.cfg.in:  Set GENERATE_TAGFILE.
1906         * docs/html/install.html:  Update autoconf/automake requirements.
1907         * docs/html/test.html:  Add section describing DejaGNU support.
1908         * docs/html/17_intro/confdeps.dot:  New file, generates...
1909         * docs/html/17_intro/confdeps.png:  ...this new file.
1910         * docs/html/Makefile:  Generated here.
1911         * docs/html/17_intro/configury.html:  New file.
1913 2003-07-31  Phil Edwards  <pme@gcc.gnu.org>
1915         * testsuite/lib/libstdc++-v3-dg.exp:  Rename...
1916         * testsuite/lib/libstdc++-v3.exp:  ...to this.
1917         * testsuite/libstdc++-v3.dg/dg.exp:  No special case needed now.
1919 2003-07-31  Doug Gregor  <dgregor@apple.com>
1921         Add user specialization tests.
1922         * testsuite/23_containers/deque/1.cc: New.
1923         * testsuite/23_containers/list/1.cc: New.
1924         * testsuite/23_containers/map/1.cc: New.
1925         * testsuite/23_containers/multimap/1.cc: New.
1926         * testsuite/23_containers/multiset/1.cc: New.
1927         * testsuite/23_containers/set/1.cc: New.
1928         * testsuite/23_containers/vector/1.cc: New.
1930 2003-07-31  Benjamin Kosnik  <bkoz@redhat.com>
1932         Reshuffle 23_containers testsuite.
1933         * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
1934         bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
1935         list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
1936         map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
1937         set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
1938         vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
1939         vector_resize.cc: Split into...
1940         * 23_containers/bitset/cons/1.cc: New.
1941         * 23_containers/bitset/cons/6282.cc: New.
1942         * 23_containers/bitset/count/6124.cc: New.
1943         * 23_containers/bitset/operations/1.cc: New.
1944         * 23_containers/bitset/operations/2.cc: New.
1945         * 23_containers/bitset/test/1.cc: New.
1946         * 23_containers/bitset/to_ulong/1.cc: New.
1947         * 23_containers/deque/cons/1.cc: New.
1948         * 23_containers/deque/cons/2.cc: New.
1949         * 23_containers/deque/operators/1.cc: New.
1950         * 23_containers/list/capacity/1.cc: New.
1951         * 23_containers/list/cons/1.cc: New.
1952         * 23_containers/list/cons/2.cc: New.
1953         * 23_containers/list/cons/3.cc: New.
1954         * 23_containers/list/cons/4.cc: New.
1955         * 23_containers/list/cons/5.cc: New.
1956         * 23_containers/list/cons/6.cc: New.
1957         * 23_containers/list/cons/7.cc: New.
1958         * 23_containers/list/cons/8.cc: New.
1959         * 23_containers/list/cons/9.cc: New.
1960         * 23_containers/list/modifiers/1.cc: New.
1961         * 23_containers/list/modifiers/2.cc: New.
1962         * 23_containers/list/modifiers/3.cc: New.
1963         * 23_containers/list/operators/1.cc: New.
1964         * 23_containers/list/operators/2.cc: New.
1965         * 23_containers/list/operators/3.cc: New.
1966         * 23_containers/list/operators/4.cc: New.
1967         * 23_containers/map/insert/1.cc: New.
1968         * 23_containers/map/operators/1.cc: New.
1969         * 23_containers/map/operators/1_neg.cc: New.
1970         * 23_containers/multiset/insert/1.cc: New.
1971         * 23_containers/priority_queue/members/7161.cc: New.
1972         * 23_containers/queue/members/7157.cc: New.
1973         * 23_containers/set/operators/1_neg.cc: New.
1974         * 23_containers/stack/members/7158.cc: New.
1975         * 23_containers/vector/bool/1.cc: New.
1976         * 23_containers/vector/bool/6886.cc: New.
1977         * 23_containers/vector/capacity/1.cc: New.
1978         * 23_containers/vector/capacity/2.cc: New.
1979         * 23_containers/vector/capacity/8230.cc: New.
1980         * 23_containers/vector/cons/1.cc: New.
1981         * 23_containers/vector/cons/2.cc: New.
1982         * 23_containers/vector/cons/3.cc: New.
1983         * 23_containers/vector/cons/4.cc: New.
1984         * 23_containers/vector/cons/6513.cc: New.
1985         * 23_containers/vector/element_access/1.cc: New.
1986         * 23_containers/vector/modifiers/1.cc: New.
1987         * 23_containers/vector/modifiers/2.cc: New.
1988         * 23_containers/vector/resize/1.cc: New.
1990 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1992         * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
1993         dg-options.
1994         * testsuite/thread/pthread2.cc: Likewise.
1995         * testsuite/thread/pthread3.cc: Likewise.
1996         * testsuite/thread/pthread4.cc: Likewise.
1997         * testsuite/thread/pthread5.cc: Likewise.
1998         * testsuite/thread/pthread6.cc: Likewise.
1999         * testsuite/thread/pthread7-rope.cc: Likewise.
2001 2003-07-30  Phil Edwards  <pme@gcc.gnu.org>
2003         * include/bits/c++config:  Partial reversion (comment placement) of
2004         previous patch.
2006 2003-07-30  Benjamin Kosnik  <bkoz@redhat.com>
2008         * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
2009         (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
2010         (_GLIBCXX_AT_AT): Remove.
2011         (__USE_MALLOC): Remove.
2012         * include/std/std_fstream.h: Modify.
2013         * include/bits/basic_ios.h: Same.
2014         * include/bits/valarray_array.h: Same.
2015         * include/c_std/std_cmath.h: Same.
2016         * include/c_std/cmath.tcc: Same.
2017         * include/std/std_vector.h: Same.
2018         * include/std/std_string.h: Same.
2019         * include/std/std_stack.h: Same.
2020         * include/std/std_queue.h: Same.
2021         * include/std/std_list.h: Same.
2022         * include/std/std_deque.h: Same.
2023         * include/std/std_streambuf.h: Same.
2024         * include/std/std_sstream.h: Same.
2025         * include/std/std_ostream.h: Same.
2026         * include/std/std_istream.h: Same.
2027         * include/bits/valarray_array.tcc: Same, format.
2029         * include/c/std_cctype.h: Fix include guards.
2030         * include/c/std_cerrno.h: Same.
2031         * include/c/std_cfloat.h: Same.
2032         * include/c/std_climits.h: Same.
2033         * include/c/std_clocale.h: Same.
2034         * include/c/std_cmath.h: Same.
2035         * include/c/std_csetjmp.h: Same.
2036         * include/c/std_csignal.h: Same.
2037         * include/c/std_cstdarg.h: Same.
2038         * include/c/std_cstddef.h: Same.
2039         * include/c/std_cstdio.h: Same.
2040         * include/c/std_cstdlib.h: Same.
2041         * include/c/std_cstring.h: Same.
2042         * include/c/std_ctime.h: Same.
2043         * include/c/std_cwchar.h: Same.
2044         * include/c/std_cwctype.h: Same.
2045         * include/c_std/cmath.tcc: Same.
2046         * include/c_std/std_cmath.h: Same.
2048 2003-07-30  Gawain Bolton  <gp.bolton@computer.org>
2050         PR libstdc++/11504.
2051         * include/bits/stl_tree.h: Replace C-style casts with C++-style
2052         casts.  Changes to avoid casting away constness.  Eliminate
2053         _Rb_tree_base_iterator class.  Change _Rb_tree_iterator to use
2054         initialization lists.  Move out implementation of __black_count()
2055         to...
2056         * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
2057         Rename_Rb_tree_base_iterator::_M_increment() to
2058         _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
2059         _Rb_tree_decrement.
2060         * config/linker-map.gnu: Add and change symbols here.
2062 2003-07-30  Jonathan Wakely  <redi@gcc.gnu.org>
2064         * docs/html/22_locale/howto.html: Use locale::classic() instead
2065         of locale("C").
2067 2003-07-28  Benjamin Kosnik  <bkoz@redhat.com>
2069         * testsuite/testsuite_hooks.h: Remove list include.
2070         (func_callback): Define as unique type, not std::list.
2071         Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
2072         * testsuite/libstdc++-v3.dg/dg.exp: Same.
2073         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
2074         * testsuite/23_containers/bitset_ctor.cc:
2075         * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
2076         * testsuite/18_support/numeric_limits.cc: Same.
2077         * testsuite/21_strings/basic_string/append/char/1.cc: Same.
2078         * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
2079         * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
2080         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
2081         * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
2082         * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
2083         * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
2084         * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
2085         * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
2086         * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
2087         * testsuite/21_strings/basic_string/find/char/1.cc: Same.
2088         * testsuite/21_strings/basic_string/find/char/2.cc: Same.
2089         * testsuite/21_strings/basic_string/find/char/3.cc: Same.
2090         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
2091         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
2092         * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
2093         * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
2094         * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
2095         * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
2096         * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
2097         * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
2098         * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
2099         * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
2100         * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
2101         * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
2102         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
2103         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
2104         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
2105         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
2106         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
2107         * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
2108         * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
2109         * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
2110         * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
2111         * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
2112         * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
2113         * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
2114         * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
2115         * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
2116         * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
2117         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
2118         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
2119         * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
2120         * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
2121         * testsuite/23_containers/bitset_ctor.cc: Same.
2122         * testsuite/23_containers/bitset_shift.cc: Same.
2123         * testsuite/23_containers/vector_ctor.cc: Same.
2124         * testsuite/23_containers/vector_element_access.cc: Same.
2125         * testsuite/24_iterators/istreambuf_iterator.cc: Same.
2126         * testsuite/24_iterators/iterator.cc: Same.
2127         * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
2128         * testsuite/25_algorithms/lower_bound.cc: Same.
2129         * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
2130         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
2131         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
2132         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
2133         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
2134         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
2135         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
2136         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
2137         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
2138         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
2139         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
2140         Same.
2142 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
2144         * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
2145         docs/html/test.html, docs/html/17_intro/headers_cc.txt,
2146         docs/html/17_intro/howto.html, docs/html/ext/howto.html:  Change
2147         GLIBCPP to GLIBCXX (and explain as needed).
2149 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
2151         * README:  Update.
2153 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
2155         * testsuite/22_locale/messages/members/char/1.cc,
2156         testsuite/22_locale/messages/members/char/2.cc,
2157         testsuite/22_locale/messages/members/char/3.cc,
2158         testsuite/22_locale/messages_byname/1.cc:  Update comment regarding
2159         the origin of LOCALEDIR.
2160         * testsuite/lib/libstdc++-v3.exp:  New file.
2162 2003-07-25  Benjamin Kosnik  <bkoz@redhat.com>
2164         * include/bits/char_traits.h: Update copyright, tweak.
2165         * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
2166         std types.
2168 2003-07-24  Matt Austern  <austern@apple.com>
2170         * /include/bits/char_traits.h (class char_traits): Put all the
2171         real work into the new class template __gnu_cxx::char_traits.
2172         Gave generic definitions for member functions.  Types are taken
2173         from the new class template __gnu_cxx::_Char_types.
2174         * testsuite/21_strings/char_traits/requirements/short/1.cc: New
2175         file.  Test of std::char_traits<short>, which serves as a test of
2176         the char_traits primary template.
2178 2003-07-24  Benjamin Kosnik  <bkoz@redhat.com>
2180         * testsuite/*: Change __gnu_cxx_test to __gnu_test.
2182 2003-07-24  Nathan Myers  <ncm-nospam@cantrip.org>
2184         * testsuite/23_containers/map_operators.cc: Conform to
2185         container requirement as value must be Assignable.
2187 2003-07-23  Alexandre Oliva  <aoliva@redhat.com>
2189         * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
2190         tests not only generation of pch files, but also their use.
2191         * aclocal.m4, configure: Rebuilt.
2193 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
2195         * config/cpu/hppa/atomicity.h: Change
2196         _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
2197         to match misc-inst.cc
2199 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
2201         * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
2202         * include/c_std/std_cctype.h: Ditto.
2203         * include/c_std/std_cerrno.h: Ditto.
2204         * include/c_std/std_cfloat.h: Ditto.
2205         * include/c_std/std_climits.h: Ditto.
2206         * include/c_std/std_clocale.h: Ditto.
2207         * include/c_std/std_cmath.h: Ditto.
2208         * include/c_std/std_csetjmp.h: Ditto.
2209         * include/c_std/std_csignal.h: Ditto.
2210         * include/c_std/std_cstdarg.h: Ditto.
2211         * include/c_std/std_cstddef.h: Ditto.
2212         * include/c_std/std_cstdio.h: Ditto.
2213         * include/c_std/std_cstdlib.h: Ditto.
2214         * include/c_std/std_cstring.h: Ditto.
2215         * include/c_std/std_ctime.h: Ditto.
2216         * include/c_std/std_cwchar.h: Ditto.
2217         * include/c_std/std_cwctype.h: Ditto.
2218         * include/std/std_algorithm.h: Ditto.
2219         * include/std/std_bitset.h: Ditto.
2220         * include/std/std_complex.h: Ditto.
2221         * include/std/std_deque.h: Ditto.
2222         * include/std/std_fstream.h: Ditto.
2223         * include/std/std_functional.h: Ditto.
2224         * include/std/std_iomanip.h: Ditto.
2225         * include/std/std_ios.h: Ditto.
2226         * include/std/std_iosfwd.h: Ditto.
2227         * include/std/std_iostream.h: Ditto.
2228         * include/std/std_istream.h: Ditto.
2229         * include/std/std_iterator.h: Ditto.
2230         * include/std/std_limits.h: Ditto.
2231         * include/std/std_list.h: Ditto.
2232         * include/std/std_locale.h: Ditto.
2233         * include/std/std_map.h: Ditto.
2234         * include/std/std_memory.h: Ditto.
2235         * include/std/std_numeric.h: Ditto.
2236         * include/std/std_ostream.h: Ditto.
2237         * include/std/std_queue.h: Ditto.
2238         * include/std/std_set.h: Ditto.
2239         * include/std/std_sstream.h: Ditto.
2240         * include/std/std_stack.h: Ditto.
2241         * include/std/std_stdexcept.h: Ditto.
2242         * include/std/std_streambuf.h: Ditto.
2243         * include/std/std_string.h: Ditto.
2244         * include/std/std_utility.h: Ditto.
2245         * include/std/std_valarray.h: Ditto.
2246         * include/std/std_vector.h: Ditto.
2248 2003-07-22  Doug Gregor  <dgregor@apple.com>
2250         * include/bits/basic_string.h (basic_string::insert): Deprecate
2251         GNU extension.
2253 2003-07-21  Benjamin Kosnik  <bkoz@redhat.com>
2255         * scripts/testsuite_flags.in (--build-includes): Remove extraneous
2256         paths for libio.
2257         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
2258         (test03): Include typeinfo for bad_cast.
2259         * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
2260         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2261         * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
2263 2003-07-21  Doug Gregor  <dgregor@apple.com>
2265         * include/bits/boost_concept_check.h:
2266         (_EqualityComparableConcept::__constraints): Remove != from the
2267         list of constraints; it is not listed in Table 28 of the C++98
2268         standard.
2270 2003-07-18  Andreas Jaeger  <aj@suse.de>
2272         * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
2273         * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
2274         * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
2275         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
2277 2003-07-17  Benjamin Kosnik  <bkoz@redhat.com>
2279         * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
2280         * config/locale/generic/messages_members.h: Tweaks.
2281         * config/locale/generic/monetary_members.cc
2282         (moneypunct::_M_initialize_moneypunct): Use cache.
2283         (moneypunct::~moneypunct): Delete cache.
2284         * config/locale/generic/time_members.cc:
2285         (__timepunct::_M_initialize_timepunct): Use cache.
2286         * config/locale/generic/time_members.h:
2287         (__timepunct::~__timepunct): Delete cache.
2288         (__timepunct::__timepunct): Set cache.
2289         * config/locale/gnu/messages_members.h: Tweaks.
2290         * config/locale/gnu/monetary_members.cc:
2291         (moneypunct::_M_initialize_moneypunct): Use cache.
2292         (moneypunct::~moneypunct): Delete cache.
2293         * config/locale/gnu/time_members.cc:
2294         (__timepunct::_M_initialize_timepunct): Use cache.
2295         * config/locale/gnu/time_members.h:
2296         (__timepunct::~__timepunct): Delete cache.
2297         (__timepunct::__timepunct): Set cache.
2298         * include/bits/locale_facets.h (__timepunct_cache): New.
2299         (__moneypunct_cache): New.
2300         * include/bits/locale_facets.tcc: Tweak.
2301         * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
2302         * src/locale-inst.cc: Instantiate caches.
2303         * src/globals.cc: Add "C" caches.
2304         * src/localename.cc: Use external "C" caches.
2306 2003-07-17  Phil Edwards  <pme@gcc.gnu.org>
2308         * docs/doxygen/guide.html:  Fix typo.
2310 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
2312         * include/ext/pod_char_traits.h: Add state template argument.
2314 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
2316         * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
2317         (num_get::_M_convert_int): To _M_insert_int.
2318         (num_get::_M_convert_float): To _M_insert_float.
2319         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
2320         Use caches for ctype, num_get.
2321         (num_get::_M_extract_int): Same.
2322         (num_get::get(bool)): Same.
2323         (__verify_grouping): Use size_t.
2324         * src/locale-inst.cc: Update.
2325         * src/locale.cc: Adjust _S_atoms_in.
2327 2003-07-16  Phil Edwards  <pme@gcc.gnu.org>
2329         * docs/doxygen/mainpage.html:  Move building/writing instructions...
2330         * docs/doxygen/guide.html:  ...to here.  New file.
2332 2003-07-16  Jonathan Wakely  <redi@gcc.gnu.org>
2334         * docs/html/ext/howto.html: Update URL for SGI STL docs.
2335         * docs/html/faq/index.html: Same.
2336         * docs/html/faq/index.txt: Regenerate.
2338 2003-07-16  Paolo Carlini  <pcarlini@unitus.it>
2340         PR libstdc++/11528
2341         * include/bits/locale_facets.tcc (money_get::do_get):
2342         Strip only _leading_ zeros.
2343         * testsuite/22_locale/money_get/get/char/11528.cc: Add.
2344         * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
2346 2003-07-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2348         * include/ext/hash_map (class hash_multimap): Remove extra
2349         semicolons from __glibcxx_class_requires3 entries.
2350         * include/ext/hash_set (class hash_set): Ditto.
2351         (class hash_multiset): Ditto.
2353 2003-07-15  Petur Runolfsson  <peturr02@ru.is>
2355         * include/bits/char_traits.h (char_traits<wchar_t>::move):
2356         Change last parameter from int_type to size_t.
2358 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
2360         * include/bits/stl_algo.h (includes, set_union, set_intersection,
2361         set_difference, set_symmetric_difference, max_element, min_element,
2362         next_permutation, prev_permutation, find_first_of, find_end):
2363         Document.
2364         * include/bits/stl_algobase.h (copy,copy_backward):  Clarify overlap
2365         restrictions in docs.
2366         * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
2367         Document.
2368         * docs/doxygen/doxygroups.cc (setoperations):  New group.
2370 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
2372         * include/bits/basic_string.h:  Document public functions.
2373         * docs/doxygen/TODO:  Update c21 todo.
2375 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
2377         * include/bits/stl_list.h:  Document more functions.
2378         * docs/doxygen/TODO:  Update c23 todo.
2380 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
2382         * config/locale/gnu/c_locale.h (__convert_from_v): One more
2383         qualification.
2385 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
2387         * include/bits/stl_tempbuf.h: Qualify free with std::.
2388         * src/locale.cc: Include <cstdlib>, qualify getenv.
2390 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
2392         * config/locale/gnu/c_locale.h (__convert_from_v): Include
2393         <cstdio>. Qualify names.
2394         * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
2396 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
2397             Nathan C. Myers  <ncm-nospam@cantrip.org>
2399         PR libstdc++/11378
2400         * include/std/std_fstream.h (xsputn): Declare only.
2401         * include/bits/fstream.tcc (xsputn): Define, optimize for the
2402         always_noconv() case: when __n is sufficiently large flush
2403         the buffer and issue a direct write, if possible combining the
2404         two with writev in __basic_file<>::xsputn_2.
2405         * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
2406         New, declare.
2407         * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
2408         Define.
2409         * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
2410         the availability of writev in <sys/uio.h>.
2411         * configure.in: Call here.
2412         * acconfig.h: Add undef for the corresponding symbol.
2413         * aclocal.m4: Regenerate.
2414         * configure: Regenerate.
2415         * config.h.in: Regenerate.
2416         * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
2418         * include/std/std_fstream.h (sync): Constify a variable.
2420 2003-07-14  Benjamin Kosnik  <bkoz@redhat.com>
2422         * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
2423         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2425 2003-07-14  Gabriel Dos Reis  <gcc@integrable-solutions.net>
2427         * config/locale/gnu/c_locale.h (__convert_from_v): Include
2428         <cstring> and <cstdlib>. Qualify names.
2430 2003-07-13  Mark Mitchell  <mark@codesourcery.com>
2432         * config/locale/generic/c_locale.h: Include <cstdlib> and
2433         <cstring>.
2434         * include/bits/boost_concept_check.h: Add this-> to unqualified
2435         method calls.
2436         * include/bits/deque.tcc: Likewise.
2437         * include/bits/locale_facets.h : Likewise.
2438         * include/bits/ostream.tcc: Likewise.
2439         * include/bits/stl_algo.h: Likewise.
2440         * include/bits/stl_bvector.h: Likewise.
2441         * include/bits/stl_deque.h: Likewise.
2442         * include/bits/stl_list.h: Likewise.
2443         * include/bits/stl_tree.h: Likewise.
2444         * include/bits/stl_vector.h: Likewise.
2445         * include/bits/vector.tcc: Likewise.
2446         * include/ext/rope: Likewise.
2447         * include/ext/ropeimpl.h: Likewise.
2448         * include/ext/stdio_filebuf.h: Likewise.
2450 2003-07-11  Jerry Quinn  <jlquinn@optonline.net>
2452         * include/bits/basic_ios.h (copyfmt): Document.
2453         * include/bits/ios_base.h (event, event_callback, register_callback,
2454         xalloc, iword, pword):  Document.
2455         (imbue, ~ios_base): Update docs on callbacks.
2457 2003-07-11  Phil Edwards  <pme@gcc.gnu.org>
2459         * acinclude.m4 (GLIBCC_ENABLE_SYMVERS):  Tweak comments.  Add
2460         warning messages if the environment cannot support symbol versioning.
2461         (port_specific_symbol_file):  It's plural, add an 's' on the end.
2462         * configure.host:  Likewise.
2463         * src/Makefile.am:  Likewise.
2464         * config/linker-map.gnu:  Remove one semicolon, heh.
2465         * scripts/extract_symvers:  Don't assume useful 'export' syntax.
2466         Set LANG as well as LC_ALL for possibly-broken sort(1)s.
2467         * aclocal.m4, configure, src/Makefile.in:  Regenerated.
2469 2003-07-09  Benjamin Kosnik  <bkoz@redhat.com>
2471         * include/bits/locale_facets.tcc: Use function object for
2472         __use_cache instead of template function. Partially specialize for
2473         __numpunct<_CharT>.
2474         * include/bits/locale_classes.h: Update friend declaration for
2475         __use_cache.
2476         (_M_install_cache): No throw exception specs.
2477         * src/locale.cc: Remove __use_cache specializations.
2478         * include/ext/pod_char_traits.h (length): Tweak.
2479         * include/bits/locale_facets.h (__numpunct_cache): Remove
2480         char_type typedef.
2481         * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
2482         (pod_long): Remove.
2483         * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
2484         * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
2485         * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
2486         * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
2487         * testsuite/22_locale/numpunct/members/pod/1.cc: New.
2488         * testsuite/22_locale/numpunct/members/pod/2.cc: New.
2490 2003-07-09  Jerry Quinn  <jlquinn@optonline.net>
2492         * src/ios.cc (_M_grow_words):  Fix spelling.
2494 2003-07-09  Gawain Bolton  <gp.bolton@computer.org>
2496         * include/bits/stl_tree.h: Move larger member functions in
2497         _Rb_tree_base_iterator and _Rb_tree_node to...
2498         * src/stl_tree.cc: Here.
2499         * src/Makefile.in: Add stl_tree.cc.
2500         * src/Makefile.in: Regenerated.
2501         * config/linker-map.gnu: Add symbols here.
2503 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
2505         * testsuite/ext/pod_char_traits.cc: New.
2506         * include/ext/pod_char_traits.h: New.
2507         * include/Makefile.am (ext_headers): Add pod_char_traits.h.
2508         * include/Makefile.in: Regenerate.
2509         * docs/html/21_strings/howto.html: Update.
2511 2003-07-08  Gawain Bolton  <gp.bolton@computer.org>
2513         * testsuite/performance/list_create_fill_sort.cc: New.
2515 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
2517         * config/locale/generic/numeric_members.cc: Correct type info.
2518         * config/locale/gnu/numeric_members.cc: Same.
2519         * include/bits/locale_facets.h: Same.
2521         * include/bits/char_traits.h: Correct spacing.
2523         * src/locale.cc: Wrap to 80 col.
2525 2003-07-07  Paolo Carlini  <pcarlini@unitus.it>
2527         * include/std/std_complex.h: Partially revert last
2528         changes: cmath functions must not be qualified.
2530 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
2532         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Do not test for binutils
2533         2.11 with globbing backport fix.
2534         * aclocal.m4, configure:  Regenerated.
2536 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
2538         * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
2539         if output is at all possible (!_M_reading), cannot be active.
2541         * include/std/std_fstream.h: Tweak comments to doxygen style.
2543 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
2545         * include/bits/locale_classes.h: Fully qualify standard
2546         functions with std::, thus avoiding Koenig lookup.
2547         * include/bits/locale_facets.tcc: Likewise.
2548         * src/locale.cc: Likewise.
2549         * src/localename.cc: Likewise.
2551 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
2553         * include/bits/allocator_traits.h:  Fix doxygen markup.
2554         * include/ext/mt_allocator.h:  Likewise.
2556 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
2558         * testsuite/testsuite_hooks.h:  Guard against a missing unlink().
2560 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
2562         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Bump minimal version
2563         requirement.  Add port_specific_symbol_file variable.
2564         * configure.host:  Add docs for port_specific_symbol_file.
2565         Clean up try_cpu block for x86.
2566         * config/linker-map.gnu:  No more "last symbol can't have a
2567         semicolon" kaka.  Add hook for port-specific symbols.
2568         * src/Makefile.am:  Remove trailing whitespace.
2569         (libstdc++-symbol.ver):  Detect the presence of port-specific
2570         symbols, and add them accordingly.
2572         * docs/html/17_intro/porting.texi:  Bring up to date.
2574         * src/Makefile.in, aclocal.m4, configure,
2575         docs/html/17_intro/porting.html:  Regenerated.
2577 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
2579         * scripts/create_testsuite_files:  New file.
2580         * testsuite/Makefile.am (all-local, check-performance):  Use it.
2581         * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests):  Remove.
2582         * testsuite/Makefile.in:  Regenerated.
2584         * testsuite/performance/filebuf_sputc.cc:  Remove the temporary
2585         files at the end.
2586         * testsuite/performance/fstream_seek_write.cc:  Likewise.
2587         * testsuite/performance/ofstream_insert_float.cc:  Likewise.
2588         * testsuite/performance/ofstream_insert_int.cc:  Likewise.
2589         * testsuite/abi_check.cc (main):  Nicer spacing in usage output.
2591 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
2593         * include/bits/stl_list.h: Performance and memory usage
2594         improvements. In particular, the behaviour of the constructor and
2595         destructor as the list header node is no longer dynamically
2596         allocated/de-allocated.
2597         * include/bits/list.tcc: Likewise.
2599 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
2601         * include/std/std_complex.h: Fully qualify standard
2602         functions with std::, thus avoiding Koenig lookup.
2603         * include/std/std_memory.h: Likewise.
2604         * include/std/std_valarray.h: Likewise.
2606 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
2608         * include/bits/stl_tree.h: _Rb_tree_rebalance():  Add local
2609           variable for grandparent and use const
2611 2003-07-05  David Billinghurst <David.Billinghurst@riotinto.com>
2613         * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
2614         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
2615         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
2616         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
2617         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
2618         * testsuite/27_io/objects/char/7.cc: Ditto
2619         * testsuite/27_io/objects/char/9661-1.cc: Ditto
2621 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
2623         * include/std/std_bitset.h: Fully qualify standard
2624         functions with std::, thus avoiding Koenig lookup.
2626         * include/std/std_fstream.h: Change comment to doxygen style.
2628 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
2630         * include/std/std_limits.h:  More CPP->CXX changes.
2631         * scripts/check_survey.in:  Likewise.
2633 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
2635         Move from CPP to CXX.
2636         * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
2637         * testsuite/Makefile.am: Same.
2638         * testsuite/Makefile.in: Regenerate.
2639         * po/Makefile.am: Same.
2640         * po/Makefile.in: Regenerate.
2641         * libsupc++/Makefile.am: Same.
2642         * libsupc++/Makefile.in: Regenerate.
2643         * libmath/Makefile.am: Same.
2644         * libmath/Makefile.in: Regenerate.
2645         * include/Makefile.am: Same.
2646         * include/Makefile.in: Regenerate.
2647         * src/Makefile.am: Same.
2648         * src/Makefile.in: Regenerate.
2649         * acconfig.h: Same.
2650         * configure.host: Same.
2651         * configure.in: Same.
2652         * configure: Regenerate.
2653         * acinclude.m4: Same.
2654         * aclocal.m4: Same.
2655         * src: Change all files in this directory.
2656         * testsuite: Same.
2657         * include: Same, standardize include guards.
2658         * config: Same.
2659         * libsupc++: Same.
2661 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
2663         * testsuite/22_locale/collate/compare/wchar_t/2.cc
2664         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
2665         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
2666         * testsuite/22_locale/collate/hash/wchar_t/2.cc
2667         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
2668         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
2669         * testsuite/22_locale/collate/transform/wchar_t/2.cc
2670         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
2671         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2672         XFAIL on all targets.
2674 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
2676         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
2677         * aclocal.m4: Regenerate.
2678         * configure: Regenerate.
2680 2003-07-04  Jerry Quinn  <jlquinn@optonline.net>
2682         * include/bits/locale_facets.tcc (__int_to_char): Move common case
2683         to the top.
2685 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
2686             Petur Runolfsson  <peturr02@ru.is>
2688         * config/io/basic_file_stdio.cc: Revert.
2690 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
2692         * include/bits/deque.tcc: Fully qualify standard
2693         functions with std::, thus avoiding Koenig lookup.
2694         * include/bits/gslice_array.h: Likewise.
2695         * include/bits/indirect_array.h: Likewise.
2696         * include/bits/list.tcc: Likewise.
2697         * include/bits/mask_array.h: Likewise.
2698         * include/bits/slice_array.h: Likewise.
2700 2003-07-04  Gawain Bolton  <gbolton@free.fr>
2702         * include/bits/stl_tree.h: Performance and memory usage
2703         improvements.
2705 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
2707         * Makefile.am: Replace PWD with PWD_COMMAND.
2708         * Makefile.in: Regenerated.
2709         * docs/html/Makefile: Likewise.
2711 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
2713         * include/bits/valarray_array.h: Fully qualify standard
2714         functions with std::, thus avoiding Koenig lookup.
2715         * include/bits/vector.tcc: Likewise.
2717 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
2719         * include/Makefile.am: Update target_ to host_.
2720         * include/Makefile.in: Regenerate.
2721         * src/Makefile.am: Same.
2722         * src/Makefile.in: Regenerate.
2724         * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
2726 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
2728         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
2729         --enable-libstdcxx-debug-flags.
2730         (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
2731         (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
2732         * aclocal.m4: Regenerate.
2733         * configure: Same.
2734         * docs/html/configopts.html: Update.
2736 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
2738         Revert the fix for libstdc++/11378.
2740 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
2742         PR libstdc++/11378
2743         * include/std/std_fstream.h (xsputn): In the unbuffered case,
2744         provided always_noconv(), issue directly _M_file.xsputn.
2745         * testsuite/performance/filebuf_unbuf_sputn.cc: New.
2747 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
2749         * include/bits/stl_list.h: Fully qualify standard
2750         functions with std::, thus avoiding Koenig lookup.
2751         * include/bits/stl_queue.h: Likewise.
2752         * include/bits/stl_raw_storage_iter.h: Likewise.
2753         * include/bits/stl_tempbuf.h: Likewise.
2754         * include/bits/stl_tree.h: Likewise.
2755         * include/bits/stl_uninitialized.h: Likewise.
2756         * include/bits/stl_vector.h: Likewise.
2757         * include/ext/rope: Change includes order.
2759 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
2761         * configure.host (fpos_include_dir): Fix.
2763 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
2765         * include/bits/stl_heap.h: Fully qualify standard
2766         functions with std::, thus avoiding Koenig lookup.
2767         * include/bits/stl_iterator_base_funcs.h: Likewise.
2769         * include/bits/stl_algo.h: Qualify __iterator_category too.
2770         * include/bits/stl_algobase.h: Likewise.
2771         * include/bits/stl_bvector.h: Likewise.
2773         * include/bits/stl_algo.h: Don't qualify the pair type.
2775 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
2777         * include/Makefile.am (target_headers): Add fpos.h
2778         (bits_headers): Remove.
2779         * include/Makefile.in: Regenerate.
2780         * configure.in: Add FPOS_INC_SRCDIR, substitute it.
2781         * configure: Regenerate.
2782         * configure.host: Add fpos_include_dir.
2783         * config/os/gnu-linux/fpos.h: New.
2784         * config/os/generic/fpos.h: Add.
2785         * include/bits/fpos.h: Remove.
2787         * config/io/c_io_stdio.h: Remove fpos_t typedef.
2789         * include/bits/fstream.tcc: Tweaks.
2790         * include/std/std_fstream.h: Same.
2792         * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
2793         * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
2794         * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
2795         * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
2796         * testsuite/27_io/fpos/1.cc: New.
2798 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
2799             Petur Runolfsson  <peturr02@ru.is>
2801         * include/std/std_streambuf.h: Remove _M_pos.
2802         * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
2803         * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
2804         use fread/fwrite instead of read/write.
2805         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
2806         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
2807         before reading again.
2808         * testsuite/27_io/objects/char/6.cc: Tweak.
2810 2003-07-03  David Edelsohn  <edelsohn@gnu.org>
2812         * testsuite/22_locale/num_put/put/char/7.cc: Guard with
2813         _GLIBCPP_USE_WCHAR_T.
2815 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
2817         * include/bits/basic_string.tcc (_M_replace_aux): Constify
2818         __n1 and __off1.
2820 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
2822         * include/bits/stl_bvector.h: Fully qualify standard
2823         functions with std::, thus avoiding Koenig lookup.
2824         * include/bits/stl_construct.h: Likewise.
2825         * include/bits/stl_deque.h: Likewise.
2827 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
2829         * testsuite/22_locale/num_put/put/char/7.cc: Include
2830         <testsuite_hooks.h>, tweak.
2831         * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
2833 2003-07-01  Phil Edwards  <pme@gcc.gnu.org>
2835         * testsuite/Makefile.am (AM_MAKEFLAGS):  Set to -j1 (affects
2836         check* targets, but not libs/programs).
2837         * testsuite/Makefile.in:  Regenerate.
2839 2003-07-01  Roger Sayle  <roger@eyesopen.com>
2841         * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
2842         (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
2843         * aclocal.m4: Regenerate.
2844         * configure: Regenerate.
2846 2003-07-01  Benjamin Kosnik  <bkoz@redhat.com>
2848         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
2849         * aclocal.m4: Regenerated.
2850         * configure: Regenerated.
2852 2003-07-01  Paolo Carlini  <pcarlini@unitus.it>
2854         PR libstdc++/11389
2855         * include/bits/fstream.tcc (underflow): For encoding() == 0
2856         don't read more than __buflen chars.
2857         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
2858         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
2859         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
2860         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
2862 2003-07-01  Jerry Quinn  <jlquinn@optonline.net>
2864         * 22_locale/num_put/put/char/7.cc: New.
2865         * 22_locale/num_put/put/wchar_t/7.cc: New.
2867 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
2869         * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
2870         * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
2872 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
2874         * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
2875         * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
2876         * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
2877         * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
2878         * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
2879         * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
2880         * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
2881         * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
2882         * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
2883         * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
2884         * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
2885         * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
2886         * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
2887         * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
2888         * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
2889         * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
2890         * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
2891         * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
2892         * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
2893         * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
2894         * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
2895         * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
2896         * data/seekoff-1.tst: Remove.
2897         * data/seekoff-1io.tst: New.
2898         * data/seekoff-1out.tst: New.
2899         * data/seekoff-2.tst: Remove.
2900         * data/seekoff-2io.tst: New.
2901         * data/seekoff-2out.tst: New.
2902         * data/seekoff.txt
2903         * data/seekpos-1.tst: Remove.
2904         * data/seekpos-1io.tst: New.
2905         * data/seekpos-1out.tst: New.
2906         * data/seekpos-2.tst: Remove.
2907         * data/seekpos-2io.tst: New.
2908         * data/seekpos-2out.tst: New.
2909         * data/seekpos.txt: New.
2911 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
2913         * src/locale.cc (__use_cache<numpunct>): Move from here ...
2914         * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
2915         here.
2917 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
2919         * include/bits/stl_algobase.h: Fully qualify standard
2920         functions with std::, thus avoiding Koenig lookup.
2922 2003-06-30  Doug Gregor <dgregor@apple.com>
2924         * include/bits/locale_facets.tcc (money_get::do_get): Avoid
2925         subscripting empty string.
2927 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
2929         * testsuite/Makefile.am (check-am):  Do not override.
2930         (baseline_symbols):  Declare as PHONY, so no need to 'touch' it.
2931         * testsuite/Makefile.in:  Regenerate.
2933 2003-06-30  Doug Gregor <dgregor@apple.com>
2935         * testsuite/24_iterators/insert_iterator.cc (test01, test02):
2936         Don't initialize an insert_iterator with a singular iterator.
2938 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
2940         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
2941         * aclocal.m4: Regenerate.
2942         * configure.in (GLIBCPP_CHECK_PCH): Move, change to
2943         GLIBCPP_ENABLE_PCH, default to yes.
2944         * configure: Regenerate.
2945         * docs/html/configopts.html: Add --enable-pch.
2947 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
2949         * testsuite/lib/libstdc++-v3-dg.exp:  Add comments.
2950         (libstdc++-v3-init):  Also set LD_RUN_PATH.
2952 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
2954         * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
2955         from here to filebuf and stringbuf.
2956         (~basic_streambuf()): Don't set _M_mode.
2957         (basic_streambuf()): Don't set _M_mode.
2958         * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
2959         (~basic_filebuf()): Clean up.
2960         * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
2961         * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
2962         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
2963         * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
2964         * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
2965         * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
2966         * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
2968 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
2970         * include/std/std_fstream.h (_M_underflow): Remove.
2971         (uflow): Remove, inherited from streambuf.
2972         (underflow): Only declare.
2973         * include/bits/fstream.tcc (_M_underflow): Rename to
2974         underflow, to which is equivalent for __bump == false,
2975         simplify.
2976         * include/std/std_sstream.h (_M_underflow): Remove.
2977         (uflow): Remove, inherited from streambuf.
2978         (underflow): Only declare.
2979         * include/bits/sstream.tcc (_M_underflow): Rename to
2980         underflow, to which is equivalent for __bump == false,
2981         simplify.
2983 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
2985         * include/bits/stl_algo.h: Fully qualify standard functions
2986         with std::, thus avoiding Koenig lookup.
2988 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
2990         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
2991         Improve type correctness-wise.
2992         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
2993         Likewise.
2994         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
2995         Likewise.
2996         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
2997         Likewise.
2999 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
3001         * include/std/std_streambuf.h (uflow): According to
3002         27.5.2.4.3,p16, don't check gptr() < egptr().
3004 2003-06-28  Paolo Carlini  <pcarlini@unitus.it>
3006         PR libstdc++/9875
3007         * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
3008         (seekpos): Likewise.
3009         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
3010         New test.
3011         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
3012         New test.
3014 2003-06-27  Benjamin Kosnik  <bkoz@redhat.com>
3016         * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
3017         output name to libstdc++-v3-performance.sum.
3018         * testsuite/Makefile.am (CLEANFILES): Remove .performance.
3019         * testsuite/Makefile.in: Regenerate.
3021 2003-06-27  Matthias Klose  <doko@debian.org>
3023         * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
3024         output of abi-check in libstdc++-v3-abi.sum.
3025         * testsuite/Makefile.in: Regenerate.
3027 2003-06-27  Krister Walfridsson  <cato@df.lth.se>
3029         * config/os/bsd/netbsd/ctype_noninline.h
3030         (_C_ctype_): Declare.
3031         (ctype<char>::classic_table): Return _C_ctype_ + 1.
3032         (ctype<char>::ctype): Use classic_table.
3034 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
3035             Nathan C. Myers  <ncm-nospam@cantrip.org>
3037         PR libstdc++/9178
3038         * include/bits/fstream.tcc (_M_underflow): Properly estimate
3039         the worst-case number of external bytes for a given get area.
3040         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
3042 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
3043             Petur Runolfsson  <peturr02@ru.is>
3045         PR libstdc++/11305
3046         * include/bits/fstream.tcc (overflow): Properly estimate the
3047         worst-case number of external bytes for a given put area
3048         (by using codecvt::max_length()).
3049         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
3050         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
3051         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
3052         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
3054 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
3056         * config/linker-map.gnu: Remove ; after __numpunct_cache.
3058 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
3060         * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
3061         to the imbued locale.
3062         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
3063         _M_getloc.
3064         (num_put::_M_convert_float): Use.
3066 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
3067             Jerry Quinn  <jlquinn@optonline.net>
3069         * config/linker-map.gnu: Add __numpunct_cache.
3070         * config/locale/gnu/numeric_members.cc
3071         (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
3072         all elements for "C" locale.
3073         (numpunct::~numpunct): Delete _M_data.
3074         * config/locale/generic/numeric_members.cc: Same.
3075         * include/bits/basic_ios.tcc
3076         (basic_ios::init): Remove __locale_cache bits.
3077         (basic_ios::_M_cache_locale): Same.
3078         * include/bits/ios_base.h: Same. Tweaks.
3079         * include/bits/locale_classes.h: Tweaks. Reorder classes.
3080         (__use_cache): Make friends with _Impl, locale.
3081         (_Impl::_M_caches): Add.
3082         (_Impl::_M_install_cache): Add.
3083         * include/bits/locale_facets.h (__numpunct_cache): New.
3084         (numpunct): Encapsulate data members in __numpunct_cache member,
3085         _M_data. Adjust virtuals.
3086         (numpunct::numpunct): New ctor for the same.
3087         (__locale_cache_base): Remove.
3088         (__locale_cache): Remove.
3089         * include/bits/locale_facets.tcc (__use_cache): New function,
3090         specializations.
3091         (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
3092         * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
3093         * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
3094         * src/locale-inst.cc: Same. Add __numpunct_cache.
3095         * src/locale.cc: Tweak inlines.
3096         (__use_cache): Define specializations.
3097         * src/localename.cc: Use global bits.
3098         (_Impl::~Impl): Deal with __numpunct_cache destruction.
3099         (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
3100         (_Impl::_M_init_facet): Take into account __numpunct_cache.
3101         * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
3102         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3104 2003-06-26  Nathan C. Myers  <ncm-nospam@cantrip.org>
3105             Paolo Carlini  <pcarlini@unitus.it>
3107         * testsuite/performance/filebuf_copy.cc: New, testing char
3108         by char file copy.
3110 2003-06-26  Paolo Carlini  <pcarlini@unitus.it>
3111             Nathan C. Myers  <ncm-nospam@cantrip.org>
3113         * include/bits/fstream.tcc (_M_underflow): When the actual
3114         end of file is reached, set 'uncommitted' mode to allow a
3115         next write without an intervening seek (see C++98 27.8.1.1,2
3116         and C89 7.9.5.3).
3117         * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
3119 2003-06-25  Nathan C. Myers  <ncm-nospam@cantrip.org>
3121         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
3122         sputc): Move inline, from here...
3123         * include/std/std_streambuf.h: ... to here.
3125         * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
3126         sputbackc, sungetc, sputc): Use __builtin_expect.
3128 2003-06-24  Phil Edwards  <pme@gcc.gnu.org>
3130         * docs/doxygen/mainpage.html:  Use a useful title.
3132 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
3134         * docs/html/documentation.html: Remove assignment info.
3135         * docs/html/17_intro/contribute.html: Edits.
3136         * docs/html/17_intro/libstdc++-assign.tx: Remove.
3138         * docs/html/test.html: Update.
3140         * README: Update.
3142 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
3143             Ulrich Drepper  <drepper@redhat.com>
3145         * testsuite/testsuite_performance.h: Tweak mallinfo.
3147 2003-06-24  Paolo Carlini  <pcarlini@unitus.it>
3148             Nathan C. Myers  <ncm-nospam@cantrip.org>
3150         * include/std/std_fstream.h (_M_filepos): Remove.
3151         (_M_reading, _M_writing): New, encode the various I/O modes:
3152         'read', 'write' and 'uncommitted'.
3153         (sync): If there is something to flush, do it, then go to
3154         'uncommitted' mode.
3155         * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
3156         with three different cases: __off > 0 (upon underflow),
3157         __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
3158         seekoff/pos).
3159         (_M_underflow): Don't call overflow, set _M_reading to true
3160         on success, tweak.
3161         (pbackfail): Set _M_reading to true on pback creation, tweak.
3162         (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
3163         set _M_writing to true on success, tweak.
3164         (seekoff): Simplify, set _M_reading, _M_writing to false, call
3165         _M_set_buffer(-1) ('uncommitted').
3166         (open, close, setbuf): Set _M_reading, _M_writing to false and
3167         call _M_set_buffer(-1), tweak.
3168         (basic_filebuf): Don't set _M_buf_unified.
3169         (_M_destroy_internal_buffer): Don't call setg and setp.
3170         * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
3171         _M_writing and _M_set_buffer(-1).
3172         * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
3173         _M_out_lim, _M_buf_unified): Remove.
3174         (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
3175         (setp): Don't set _M_out_lim.
3176         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
3177         the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
3178         upon open the mode is 'uncommitted' and therefore the put area
3179         pointers are null.
3180         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
3181         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
3182         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
3183         * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
3184         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
3185         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
3186         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3187         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
3188         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
3189         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
3190         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
3191         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
3192         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
3193         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
3194         * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
3195         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
3196         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
3197         * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
3198         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
3199         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
3201         * include/bits/fstream.tcc (showmanyc): Use only the
3202         documented derivation interface to basic_streambuf (gptr(),
3203         setg(), etc.) to work right with user specializations.
3204         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
3205         sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
3206         * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
3207         Likewise.
3208         * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
3209         xsgetn): Likewise.
3211 2003-06-23  Loren J. Rittle  <ljrittle@acm.org>
3213         * configure.host (freebsd*): Set abi_baseline_pair.
3214         * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
3215         (at or near first release) to 3.3.
3216         * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
3217         * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
3218         * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
3220         * include/ext/mt_allocator.h: Portability.
3221         * testsuite/testsuite_performance.h: Likewise.
3223 2003-06-23  Benjamin Kosnik  <bkoz@redhat.com>
3225         * docs/html/17_intro/libstdc++-assign.txt: Update address.
3227         * testsuite/performance/ifstream_getline.cc: Fix.
3229 2003-06-23  Doug Gregor <dgregor@apple.com>
3231         * include/bits/boost_concept_check.h: Don't use _D or _R for type
3232         names.
3234 2003-06-22  Paolo Carlini  <pcarlini@unitus.it>
3235             Nathan C. Myers  <ncm-nospam@cantrip.org>
3237         * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
3238         is now used only for filebuf, when _M_buf_unified is true.
3239         epgtr() plays the role of _M_out_lim but it's only updated
3240         upon overflow, underflow, uflow, seekoff/pos.
3241         * include/bits/sstream.tcc (_M_underflow): New, implements
3242         stringbuf::underflow and uflow.
3243         (seekoff, seekpos): Tweak, use  _M_update_egptr.
3244         * include/std/std_sstream.h (str): Rewrote, deal correctly
3245         with the new logic, in particular, when pptr() > egptr().
3246         (_M_sync): When __testout && !__testin set all the get area
3247         pointers to the current string end.
3248         (_M_update_egptr): New, internal function updating egptr()
3249         to the actual string end.
3250         (_M_underflow): New, declare.
3251         (underflow): Dispatch to _M_underflow(false).
3252         (uflow): Dispatch to _M_underflow(true).
3254         * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
3255         seekpos): Use only the documented derivation interface to
3256         basic_streambuf (gptr(), setg(), etc.) to work right with
3257         user specializations.
3258         * include/std/std_sstream.h (str, _M_sync): Likewise.
3260 2003-06-20  Doug Gregor <dgregor@apple.com>
3262         * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
3263         * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
3264         dereference end iterator.
3265         * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
3266         * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
3267         index equal to the length of a string.
3268         * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
3269         * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
3270         * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
3271         * testsuite/22_locale/ctype/widen/char/1.cc: Same.
3272         * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
3273         * testsuite/23_containers/list_modifiers.cc: Don't dereference
3274         singular reverse iterator.
3275         * testsuite/23_containers/vector_bool.cc: Don't increment singular
3276         iterator.
3277         * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
3279 2003-06-20  Doug Gregor <dgregor@apple.com>
3281         * include/bits/basic_string.h (basic_string::replace): Dispatch
3282         _InputIterator version based on _Is_integer.
3283         * include/bits/basic_string.tcc (basic_string::replace):
3284         Renamed replace(iterator, iterator, size_type, _CharT) to
3285         _M_replace_aux.
3286         * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
3287         Test basic_string::assign(_InputIterator, _InputIterator),
3288         which calls basic_string::replace(iterator, iterator,
3289         _Input_iterator, _InputIterator).
3291 2003-06-20  Benjamin Kosnik  <bkoz@redhat.com>
3293         * testsuite/testsuite_performance.h (resource_counter): Don't use
3294         mallinfo at the moment.
3296 2003-06-20  Matthias Klose  <doko@debian.org>
3298         * configure.host: Set try_cpu to target_cpu for existing
3299         baseline files.
3301 2003-06-19  Andreas Jaeger  <aj@suse.de>
3303         * testsuite/Makefile.am (extract_symvers): Revert accidental
3304         change.
3305         * testsuite/Makefile.in: Regenerate.
3307         * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
3308         * configure: Regenerated.
3310 2003-06-19  Paolo Carlini  <pcarlini@unitus.it>
3312         * include/std/std_sstream.h (_M_sync): Make non virtual.
3314 2003-06-18  Benjamin Kosnik  <bkoz@redhat.com>
3316         * testsuite/testsuite_performance.h (time_counter): New.
3317         (resource_counter): New.
3318         (report_performance): New.
3319         (start_counters): New.
3320         (stop_counters): New.
3321         (clear_counters): New.
3322         * testsuite/performance/allocator.cc: Instrument.
3323         * testsuite/performance/cout_insert_int.cc: Same.
3324         * testsuite/performance/complex_norm.cc: Same.
3325         * testsuite/performance/filebuf_sputc.cc: New.
3326         * testsuite/performance/fstream_seek_write.cc: Same.
3327         * testsuite/performance/ifstream_getline.cc: Same.
3328         * testsuite/performance/map_create_fill.cc: Same.
3329         * testsuite/performance/ofstream_insert_float.cc: Same.
3330         * testsuite/performance/ofstream_insert_int.cc: Same.
3331         * testsuite/performance/string_append.cc: Convert.
3332         * scripts/check_performance: New.
3333         * testsuite/Makefile.am (check-performance): New.
3334         (CLEANFILES): Add.
3336 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
3337             Benjamin Kosnik  <bkoz@redhat.com>
3339         * include/std/std_sstream.h (setbuf): Check __n >= 0.
3340         * include/bits/fstream.tcc (setbuf): Tweak.
3342 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
3344         * include/bits/sstream.tcc (seekoff): We can't seek beyond
3345         _M_out_lim, therefore _M_move_out_cur boils down to simply
3346         updating _M_out_cur.
3347         (seekpos): Likewise, clean up.
3349 2003-06-18  Nathan C. Myers  <ncm-nospam@cantrip.org>
3350             Paolo Carlini  <pcarlini@unitus.it>
3352         * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
3353         simply equivalent to the unbuffered case (0, 0) as far as
3354         _M_buf_size is concerned.
3356 2003-06-18  Andreas Jaeger  <aj@suse.de>
3358         * testsuite/Makefile.am (new-abi-baseline): Create baseline
3359         directory.
3360         (baseline_file): Use baseline_dir.
3361         (baseline_dir): New.
3362         (mkinstalldirs): New.
3364         * acinclude.m4: Rename baseline_file to baseline_dir, strip
3365         filename from baseline_dir.
3367         * testsuite/Makefile.in: Regenerated.
3368         * Makefile.in: Regenerated.
3369         * aclocal.m4: Regenerated.
3370         * configure: Regenerated.
3372 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
3374         * configure.in: Missed check_survey bit.
3375         * configure: Regenerated.
3377 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
3379         * scripts: New.
3380         * config/abi/extract_symvers: Move to...
3381         * scripts/extract_symvers: ...here.
3382         * mkcheck.in: Move to..
3383         * scripts/check_survey.in: ...here.
3384         * testsuite_flags.in: Move to..
3385         * scripts/testsuite_flags.in: ...here.
3386         * configure.in: Change check and testsuite_flags locations.
3387         * configure: Regenerate.
3388         * testsuite/Makefile.am (current_symbols.txt): Change location.
3389         * testsuite/Makefile.in: Regenerate.
3390         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
3391         location of testsuite_flags.
3392         * Makefile.am (check-script): Move..
3393         (check-script-install): Move...
3394         * testsuite/Makefile.am: ... here.
3395         * testsuite/Makefile.in: Regenerate.
3396         * Makefile.in: Regenerate.
3398 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
3400         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
3402 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
3404         * Makefile.am (check-abi): Move...
3405         (new-abi-baseline): Move...
3406         * testsuite/Makefile.am: ...here.
3407         (new-abi-baseline): Conditionalize.
3408         (check-abi): Conditionalize.
3409         (check-abi-verbose): New.
3410         * Makefile.in: Regenerate.
3411         * testsuite/Makefile.in: Regenerate.
3412         * configure.in: Consolidate testsuite configure bits.
3413         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
3414         * configure: Regenerate.
3415         * aclocal.m4: Regenerate.
3416         * testsuite/abi_check.cc: Add --check-verbose.
3417         Only output detailed information if --check-verbose.
3419 2003-06-16  Andreas Jaeger  <aj@suse.de>
3421         * testsuite/abi_check.cc: Create summary report.
3423 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
3425         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
3426         for systems with BUFSIZ != 8192.
3427         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3428         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
3429         Minor tweaks.
3431 2003-06-16  Andreas Jaeger  <aj@suse.de>
3433         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
3434         check-abi multilib aware.
3435         * aclocal.m4: Regenerate.
3436         * configure: Regenerate.
3438 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
3439             Andreas Jaeger  <aj@suse.de>
3441         * configure.host: Set x86_64 abi_baseline pair correctly.
3443 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
3445         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
3446         fix for missing seeks between gets and puts into...
3447         * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
3448         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
3449         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
3450         * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
3451         * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
3452         * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
3454 2003-06-15  Richard Henderson  <rth@redhat.com>
3456         * config/linker-map.gnu: Export virtual function thunks for
3457         64-bit systems too.
3459 2003-06-13  Benjamin Kosnik  <bkoz@redhat.com>
3461         * config/abi/i686-pc-linux-gnu: To..
3462         * config/abi/i486-linux-gnu: ...this.
3463         * config/abi/alphaev67-unknown-linux-gnu: To..
3464         * config/abi/alpha-linux-gnu: ...this.
3465         * config/abi/ia64-unknown-linux-gnu: To...
3466         * config/abi/ia64-linux-gnu: ...this.
3467         * config/abi/x86_64-unknown-linux-gnu: To...
3468         * config/abi/x86_64-linux-gnu: ...this.
3469         * config/abi/i386-unknown-freebsd4: To...
3470         * config/abi/i386-freebsd4: ...this.
3471         * config/linker-map.gnu: Cleanups, move libsupc++ bits into
3472         CXXABI.
3473         * configure.host: abi_baseline_triplet to abi_baseline_pair.
3474         Simplify cpu bits so that abi_baseline_pair can use the same
3475         cpu configuration.
3476         * acinclude.m4: Same.
3477         * aclocal.m4: Regenerate.
3478         * configure.in: Can't get enable_abi_check to yes unless native.
3479         * configure: Regenerate.
3481 2003-06-13  Paolo Carlini  <pcarlini@unitus.it>
3483         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
3484         fix for missing seeks between gets and puts into...
3485         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
3486         * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
3487         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
3488         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
3489         * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
3490         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
3491         for missing seeks between gets and puts.
3492         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
3493         * testsuite/data/seekoff-1.tst: New.
3494         * testsuite/data/seekoff-2.tst: New.
3495         * testsuite/data/seekpos-1.tst: New.
3496         * testsuite/data/seekpos-2.tst: New.
3498 2003-06-13  Nathan C. Myers <ncm-nospam@cantrip.org>
3500         Avoid multi-processor bus contention on increment/decrement-and-
3501         test of the reference count in the empty-string object, by comparing
3502         addresses first, and never touching the reference count of the empty-
3503         string object.
3504         * include/bits/basic_string.h:
3505         (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
3506         members.
3507         (_Rep::_S_empty_rep()): New accessor.
3508         (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
3509         a base class _Rep_base.
3510         (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
3511         (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
3512         since no longer must increment its refcount.
3513         * include/bits/basic_string.tcc:
3514         (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
3515         return immediately.  The former might be unnecessary.  The latter
3516         prevents begin() and end() from cloning it unnecessarily.
3517         (_S_construct(_InIterator, _InIterator, const _Alloc&,
3518         input_iterator_tag), _S_construct(_InIterator, _InIterator,
3519         const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
3520         const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
3521         (_M_mutate): Check for the empty string and treat it as shared.
3522         This is necessary here because _M_mutate is sometimes called with
3523         all-zero arguments; in all other uses of _M_is_shared, the test comes
3524         out right anyhow.
3526 2003-06-12  Benjamin Kosnik  <bkoz@redhat.com>
3528         * src/allocator-inst.cc: Explicitly instantiate.
3529         * include/ext/pool_allocator.h: Inhibit implicit instantiations.
3530         Tweaks.
3531         * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
3533 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
3535         * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
3536         * aclocal.m4: Regenerate.
3537         * Makefile.am (SUBDIRS): Remove libio.
3538         * Makefile.in: Regenerate.
3539         * configure.in: Same.
3540         * configure: Regenerate.
3541         * config/io/basic_file_libio.cc: Remove.
3542         * config/io/basic_file_libio.h: Remove.
3543         * config/io/c_io_libio_codecvt.c: Remove.
3544         * config/io/c_io_libio.h: Remove.
3545         * libio/*: Remove.
3546         * src/Makefile.am: Same.
3547         * src/Makefile.in: Regenerate.
3548         * docs/html/configopts.html: Edits.
3549         * docs/html/explanations.html: Edits.
3551 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
3553         * include/bits/stl_alloc.h (__debug_alloc): Move out.
3554         (__malloc_alloc): Same.
3555         (__pool_alloc): Same.
3556         (__new_alloc): Same.
3557         Rename to..
3558         * include/bits/allocator.h: ...this.
3559         * include/bits/stl_deque.h: Modify comment.
3560         * include/bits/stl_tree.h: Modify include.
3561         * include/std/std_memory.h: Same.
3562         * include/ext/rope: Same.
3563         * include/ext/slist: Same.
3564         * include/std/std_vector.h: Same.
3565         * include/std/std_stack.h: Same.
3566         * include/std/std_queue.h: Same.
3567         * include/std/std_list.h: Same.
3568         * include/std/std_deque.h: Same.
3569         * include/backward/alloc.h: Same.
3570         * include/ext/debug_allocator.h: New.
3571         * include/ext/malloc_allocator.h: New.
3572         * include/ext/pool_allocator.h: New.
3573         * include/ext/new_allocator.h: New.
3574         * include/bits/pthread_allocimpl.h: Remove.
3575         * include/bits/stl_pthread_alloc.h: Remove.
3576         * include/Makefile.am (ext_headers): Add.
3577         * include/Makefile.in: Regenerate.
3578         * src/stl-inst.cc: Use __gnu_cxx namespace.
3579         * src/stl-inst.cc: Move to...
3580         * src/allocator-inst.cc: Here.
3581         * src/Makefile.am (sources): Update.
3582         * src/Makefile.in: Regenerate.
3583         * config/linker-map.gnu: Remove __pool_alloc bits.
3584         * testsuite/ext/headers.cc: Add.
3585         * testsuite/ext/allocators.cc: Fixup.
3587 2003-06-11  Stefan Olsson  <stefan@snon.net>
3588             Ola Rönnerup  <fnolis@home.se>
3590         * include/Makefile.am (ext_headers): Add.
3591         * include/Makefile.in: Regenerate.
3592         * include/ext/mt_allocator.h: New file.
3594 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
3596         * include/bits/fstream.tcc (close): Clean up a bit.
3598         * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
3600         * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
3601         - the saved _M_in_cur, that is - cannot be null.
3602         (sync): Constify a variable.
3604         * include/std/std_streambuf.h: Tweak a comment.
3605         (in_avail): Constify a variable.
3607 2003-06-10  Phil Edwards  <pme@gcc.gnu.org>
3609         * docs/html/17_intro/BUGS:  Update from 2.90.8 snapshot.
3610         * docs/html/17_intro/CHECKLIST:  Bring up to date with respect to
3611         correctness of container::iterator typedefs.  Fix whitespace.
3612         * docs/html/20_util/howto.html, docs/html/ext/howto.html:  Add links
3613         to allocator docs.
3614         * docs/html/documentation.html:  Regenerate.
3616         * include/bits/basic_string.h, include/bits/basic_string.tcc,
3617         include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
3618         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3619         include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
3620         include/bits/stl_list.h, include/bits/stl_uninitialized.h,
3621         include/bits/stl_vector.h, include/bits/vector.tcc,
3622         include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
3623         Change _Iter names to _Iterator, and __pos to __position.
3625         * include/bits/stl_relops.h, include/bits/stl_numeric.h,
3626         include/bits/stl_multiset.h, include/bits/stl_set.h:
3627         Remove emacs markers.
3629         * include/bits/stl_threads.h (_STL_auto_lock):  Add __unused__.
3631 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
3633         * include/bits/fstream.tcc (overflow): According to
3634         27.5.2.4.5, overflow() returns not_eof(eof()).
3635         * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
3636         * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
3638 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
3640         * include/bits/fstream.tcc (_M_underflow): Check overflow return
3641         value; tweak slightly.
3643 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
3645         * include/bits/fstream.tcc (_M_underflow): Do not special
3646         case the unbuffered case, which really means simply a one char
3647         get area.
3648         (basic_filebuf): Initialize _M_buf_size.
3649         (setbuf): Unbuffered means _M_buf_size == 1, since only
3650         _M_buf_size - 1 == 0 chars are going to be used for the
3651         put area and 1 for the get area.
3652         * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
3653         (~basic_streambuf): Tweak.
3654         (basic_streambuf): Do not initialize _M_buf_size.
3655         * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
3656         (~basic_filebuf): Tweak.
3657         (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
3658         unbuffered situation (i.e., put area pointers NULL).
3659         * include/bits/streambuf.tcc (sbumpc): Clean up.
3660         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
3661         * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
3662         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
3663         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
3664         * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
3665         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
3666         * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
3668 2003-06-09  Phil Edwards  <pme@gcc.gnu.org>
3670         * acinclude.m4:  Move all AM_CONDITIONAL calls out.
3671         (GLIBCPP_CONFIGURE):  Set defaults for variables used in AM_CONDITIONAL
3672         statements.
3673         * configure.in:  Centralize AM_CONDITIONALs so that they are always
3674         run.  Make use of GLIBCPP_IS_CROSS_COMPILING.
3675         * aclocal.m4, configure:  Regenerated.
3677 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
3679         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 235.
3681 2003-06-06  Nathan Myers  <ncm-nospam@cantrip.org>
3683         * include/bits/stl_iterator.h
3684         (reverse_iterator::reverse_iterator()): Apply DR235: default
3685         constructor default-initializes data member.  Instantiated on a
3686         pointer type, the member has to end up equal to zero.
3688 2003-06-06  Benjamin Kosnik  <bkoz@redhat.com>
3690         * include/bits/stl_alloc.h: Cleanups.
3691         * include/ext/functional: Same.
3692         * include/ext/hash_map: Same.
3693         * include/ext/hash_set: Same.
3694         * include/ext/iterator: Same.
3695         * include/ext/memory: Same.
3696         * include/ext/numeric: Same.
3697         * include/ext/rb_tree: Same.
3698         * include/ext/ropeimpl.h: Same.
3699         * include/ext/slist: Same.
3700         * include/ext/stdio_filebuf.h: Same.
3701         * include/ext/stdio_sync_filebuf.h: Same.
3702         * include/ext/stl_rope.h: Move to...
3703         * include/ext/rope: ...here.
3704         * include/ext/stl_hash_fun.h: Move to...
3705         * include/ext/hash_fun.h: ...here.
3706         * include/ext/stl_hashtable.h: Move to...
3707         * include/ext/hashtable.h: ...here.
3708         * include/backward/hashtable.h: Reflect new names.
3709         * include/Makefile.am: Same.
3710         * include/Makefile.in: Regenerated.
3712 2003-06-05  Benjamin Kosnik  <bkoz@redhat.com>
3714         PR libstdc++/9024
3715         * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
3716         * include/bits/stl_algobase.h: Tweak.
3717         * include/std/std_fstream.h: Move _M_buf_size to...
3718         * include/std/std_streambuf.h: ...here. Modify.
3719         * include/bits/streambuf.tcc: Same.
3720         * testsuite/testsuite_hooks.h: Tweak.
3721         * testsuite/testsuite_io.h (constraint_filebuf): New.
3722         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
3723         * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
3724         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
3725         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
3726         * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
3727         * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
3728         * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
3729         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
3730         * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
3731         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
3732         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
3733         * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
3734         * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
3735         * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
3736         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
3737         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
3738         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
3739         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
3740         * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
3741         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
3742         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
3743         * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
3744         * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
3745         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
3746         * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
3747         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
3748         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
3749         * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
3750         * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
3751         * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
3752         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
3753         * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
3754         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
3755         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
3756         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
3757         * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
3758         * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
3759         * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
3760         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
3761         * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
3762         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
3763         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
3764         * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
3765         * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
3766         * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
3767         * testsuite/data/sgetc.txt: New.
3768         * testsuite/data/sgetn.txt: New.
3770 2003-06-05  Paolo Carlini  <pcarlini@unitus.it>
3772         PR libstdc++/11095
3773         * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
3774         Deal with width() smaller than zero.
3775         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
3776         operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
3777         _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
3778         char*), operator<<(basic_ostream<char, _Traits>&, const char*),
3779         operator<<(basic_ostream, const basic_string&)): Likewise.
3781         * testsuite/27_io/basic_istream/extractors_character/char/
3782         (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
3783         * testsuite/27_io/basic_ostream/inserters_character/char/
3784         (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
3785         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
3786         (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
3788 2003-06-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3790         * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
3791         .gch compilation works.
3792         * aclocal.m4, configure: Regenerate.
3793         * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
3794         initialize PCHFLAGS.
3796 2003-06-04  Paolo Carlini  <pcarlini@unitus.it>
3798         * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
3799         erase(iterator), erase(iterator, iterator), c_str,
3800         compare(const basic_string&)): Constify various variables.
3801         * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
3802         const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
3803         _S_create, resize, _M_replace, _M_replace_safe,
3804         append(const basic_string&), append(const basic_string&, size_type,
3805         size_type), append(const _CharT*, size_type), append(size_type,
3806         _CharT), operator+(const _CharT*, const basic_string&),
3807         operator+(_CharT, const basic_string&), replace(iterator, iterator,
3808         size_type, _CharT), find(const _CharT*, size_type, size_type),
3809         find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
3810         rfind(_CharT, size_type), compare(size_type, size_type,
3811         const basic_string&), compare(size_type, size_type,
3812         const basic_string&, size_type, size_type), compare(const _CharT*),
3813         compare(size_type, size_type, const _CharT*), compare(size_type,
3814         size_type, const _CharT*, size_type)): Likewise.
3816 2003-06-03  Benjamin Kosnik  <bkoz@redhat.com>
3818         * include/bits/fstream.tcc (pbackfail): Make a rarely taken
3819         'if' branch less obscure.
3821 2003-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
3823         PR libstdc++/9815
3824         * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
3825         asm case to asm.
3826         * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
3827         (__atomic_add): likewise.
3829 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
3831         * include/bits/sstream.tcc (pbackfail): Minor clean up and
3832         reformatting, consistent with basic_filebuf::pbackfail.
3834 2003-06-02  Richard Kreckel  <Richard.Kreckel@GiNaC.DE>
3836         PR libstdc++/11062
3837         * config/cpu/mips/atomicity.h:  Change __attribute__ ((unused)) to
3838         __attribute__ ((__unused__)).
3839         * config/os/aix/atomicity.h:  Likewise.
3841 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
3843         PR libstdc++/9761
3844         * include/bits/fstream.tcc (pbackfail): If the pback buffer
3845         is already active don't try to store in it a second char.
3846         * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
3848         * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
3850 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
3852         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
3853         line spacing.
3855 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
3857         * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
3858         instead of unnecessarily taking the address of _M_pback.
3859         (xsgetn): Simplify slightly for a single char pback buffer.
3861 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
3863         * include/bits/sstream.tcc (seekoff): Remove four unnecessary
3864         variables and two 'if', clean up.
3866 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
3868         * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
3869         not _M_out_end, since the former actually points to the string
3870         end (vs buffer end).
3871         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
3873 2003-05-30  Phil Edwards  <pme@gcc.gnu.org>
3875         * docs/doxygen/filter:  New file.
3876         * docs/doxygen/filter.sed:  New file.
3877         * docs/doxygen/run_doxygen:  Add g flag to sed substitutions.  Duh.
3878         * docs/doxygen/user.cfg.in (INPUT_FILTER):  Point to new filter.
3879         * docs/html/documentation.html:  Fix links to doxygen pages.
3881 2003-05-30  Paolo Carlini  <pcarlini@unitus.it>
3883         * include/bits/fstream.tcc (_M_convert_to_external): Don't
3884         check for __ilen > 0.
3886 2003-05-29  Sylvain Pion  <Sylvain.Pion@mpi-sb.mpg.de>
3888         PR libstdc++/10783
3889         * include/bits/stl_iterator.h (class __normal_iterator):
3890         Don't inherit from iterator, add missing typedefs.
3892 2003-05-29  Paolo Carlini <pcarlini@unitus.it>
3894         * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
3895         * testsuite/24_iterators/reverse_iterator/1.cc: New.
3896         * testsuite/24_iterators/reverse_iterator/2.cc: New.
3897         * testsuite/24_iterators/reverse_iterator/3.cc: New, from
3898         PR libstdc++/10783.
3900 2003-05-27  Steve Ellcey  <sje@cup.hp.com>
3902         * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
3903         on IA64 HP-UX.
3904         * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
3905         _LIBUNWIND_STD_ABI is set.
3907 2003-05-26  Brendan Kehoe  <brendan@zen.org>
3909         * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
3910         make sure the number of digits required after the decimal-point
3911         (if any) is exactly the value returned by frac_digits().
3912         * testsuite/22_locale/money_get/get/char/9.cc: New.
3913         * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
3915 2003-05-27  Jonathan Wakely  <redi@gcc.gnu.org>
3917         * include/std/std_istream.h, include/std/std_ostream.h: Typo in
3918         comment.
3920 2003-05-26  Benjamin Kosnik  <bkoz@redhat.com>
3922         PR libstdc++/9339
3923         * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
3924         (_M_pback): No array necessary.
3925         * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
3926         unbuffered case, coalesec into ...
3927         (basic_filebuf::overflow): ...this.
3928         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
3929         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
3931 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
3933         * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
3934         libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
3935         libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
3936         libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
3937         libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
3938         libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
3939         libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
3940         libsupc++/eh_unex_handler.cc, libsupc++/exception,
3941         libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
3942         libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
3943         libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
3944         libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
3945         Replace "GNU CC" with "GCC".
3947         * include/backward/new.h: Replace "GNU CC" with "GCC".
3949 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
3951         PR libstdc++/3066.
3952         * configure.in: Switch target to host, don't assume newlib.
3953         (target_alias): Remove.
3954         * configure: Regenerate.
3955         * acinclude.m4: Same.
3956         * aclocal.m4: Regenerate.
3957         * configure.target: Same. Rename to...
3958         * configure.host: This.
3960 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
3962         * include/std/std_fstream.h (_S_pback_size): Remove definition.
3963         (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
3964         pback buffer.
3965         * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
3966         * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
3967         of _S_pback_size for systems with no COMDAT or weak support.
3968         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
3969         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
3970         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
3971         * testsuite/27_io/basic_fstream/3.cc: Likewise.
3972         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
3973         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
3974         * testsuite/27_io/basic_ofstream/3.cc: Likewise.
3975         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
3976         * testsuite/27_io/basic_streambuf/3.cc: Likewise.
3978 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
3980         * include/bits/fstream.tcc (_M_underflow): Simplify:
3981         !__testout implies _M_filepos == _M_in_end, therefore
3982         the first _M_file.seekoff call is never issued.
3984 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
3986         * configure.in: Sort cross table.
3987         * configure: Regenerate.
3989 2003-05-22  Brad Spencer  <spencer@infointeractive.com>
3991         PR libstdc++/10106
3992         * configure.in: Add Solaris cross bits.
3994 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
3996         * libstdc++-v3/config/os/mingw32/os_defines.h
3997         (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
3998         (NOMINMAX): Define.  Update copyright year.
4000 2003-05-21  Paolo Carlini  <pcarlini@unitus.it>
4002         * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
4004 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
4006         * docs/html/faq/index.html: Fix typo.
4007         * docs/html/faq/index.txt: Regenerate.
4009 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
4011         * docs/html/test.html: Fix markup.
4013 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
4015         * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
4016         zero.
4017         Update copyright year.
4019 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
4021         * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
4023 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
4025         * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
4026         further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
4028 2003-05-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4030         * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
4031         Cast via void* to avoid -Wcast-align warnings.
4032         (__default_alloc_template::_S_refill): Likewise.
4034 2003-05-20  Benjamin Kosnik  <bkoz@redhat.com>
4036         * testsuite/README: Move to...
4037         * docs/html/test.html: ...here. Add documentation.
4038         * docs/html/install.html: Move testing bits out..
4039         * docs/html/documentation.html: Add separate testing link.
4040         * testsuite/performance: Add.
4041         * testsuite/performance/allocator.cc: New.
4042         * testsuite/performance/complex_norm.cc: New.
4043         * testsuite/performance/cout_insert_int.cc: New.
4044         * testsuite/performance/fstream_seek_write.cc: New.
4045         * testsuite/performance/ifstream_getline.cc: New.
4046         * testsuite/performance/map_create_fill.cc: New.
4047         * testsuite/performance/ofstream_insert_float.cc: New.
4048         * testsuite/performance/ofstream_insert_int.cc: New.
4049         * testsuite/performance/string_append.cc: New.
4050         * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
4051         performance tests.
4053 2003-05-20  Gabriel Dos Reis <gdr@integrable-solutions.net>
4055         PR libstdc++/10689
4056         * include/std/std_complex.h (pow): Tidy.
4058 2003-05-19  Paolo Carlini  <pcarlini@unitus.it>
4060         * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
4061         that upon filebuf::close() 27.8.1.1,3 is enforced.
4063 2003-05-15  Loren J. Rittle  <ljrittle@acm.org>
4065         * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
4067 2003-05-15  Paolo Carlini  <pcarlini@unitus.it>
4068             Nathan Myers  <ncm@cantrip.org>
4070         * include/bits/fstream.tcc (_M_overflow): Rewrote to call
4071         _M_convert_to_external only once (_M_buf_size is now the size of
4072         the put area + 1 for the overflow char of a full area); call
4073         _M_set_buffer instead of _M_set_indeterminate.
4074         (setbuf): Don't accept a buffer smaller than 2 chars.
4075         (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
4076         instead of _M_set_determinate.
4077         (open): Call _M_set_buffer, instead of _M_set_indeterminate.
4078         (seekoff): Likewise.
4079         * include/ext/stdio_filebuf.h (stdio_filebuf(int,
4080         std::ios_base::openmode, bool, size_t),
4081         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
4082         Likewise.
4083         * include/std/std_fstream.h (_M_set_indeterminate): Remove.
4084         (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
4085         _M_buf_size - 1.
4086         * include/std/std_streambuf.h: Tweak _M_out_lim comment.
4087         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
4088         into account that, for _M_buf_size == BUFSIZ == 8192, the size of
4089         the put area is now BUFSIZ - 1.
4090         * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
4091         that now the smallest _M_buf_size is 2 (still fails, for the same
4092         reason, with 3.2.3)
4094 2003-05-14  Loren J. Rittle  <ljrittle@acm.org>
4096         * testsuite/thread/pthread4.cc: Tweak test.
4098 2003-05-13  Benjamin Kosnik  <bkoz@redhat.com>
4100         * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
4101         excess errors dg marker, use dg-errors instead.
4102         * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
4103         * testsuite/20_util/auto_ptr_neg.cc: Same.
4105 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
4107         * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
4108         cached member.
4109         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
4110         Initialize _M_codecvt.
4111         (basic_filebuf::imbue): Same.
4112         (basic_filebuf::showmanyc): Use it.
4113         (basic_filebuf::underflow): Use it.
4114         (basic_filebuf::_M_convert_to_external): Use it.
4115         (basic_filebuf::seekoff): Use it.
4116         (basic_filebuf::imbue): Use it, tweaks.
4117         * include/bits/localefwd.h (__check_facet): New.
4118         * include/bits/locale_classes.h: Tweaks.
4119         * include/bits/locale_facets.tcc: Tweaks.
4120         * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
4121         _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
4122         _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
4123         * include/bits/basic_ios.tcc: Same.
4124         * include/bits/istream.tcc: Same.
4125         * include/bits/ostream.tcc: Same.
4126         * include/std/std_streambuf.h: Same.
4127         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
4128         * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
4129         * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
4130         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
4131         * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
4132         * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
4134 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
4136         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
4137         unnecessary includes and unused string literals.
4138         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
4139         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
4140         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
4141         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
4143 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
4145         * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
4147 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
4149         * include/std/std_fstream.h (_M_convert_to_external): Change
4150         to return bool, take two less streamsize parameters.
4151         * include/bits/fstream.tcc (_M_convert_to_external): Tweak
4152         consistently definition.
4153         (_M_overflow): Adjust call points.
4155 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
4157         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
4159 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
4161         * testsuite/Makefile.am:  Properly quote /both/ LD_RUN_PATHs.
4162         * testsuite/Makefile.in:  Regenerate.
4164 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
4166         * testsuite/Makefile.am:  Properly quote LD_RUN_PATH.
4167         * testsuite/Makefile.in:  Regenerate.
4169 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
4171         PR libstdc++/3181
4172         * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
4173         (acos): Handle integer argument.
4174         (asin): Likewise.
4175         (atan): Likewise.
4176         (atan2): Likewise.
4177         (ceil): Likewise.
4178         (cos): Likewise.
4179         (cosh): Likewise.
4180         (exp): Likewise.
4181         (fabs): Likewise.
4182         (floor): Likewise.
4183         (frexp): Likewise.
4184         (ldexp): Likewise.
4185         (log): Likewise.
4186         (log10): Likewise.
4187         (sin): Likewise.
4188         (sinh): Likewise.
4189         (sqrt): Likewise.
4190         (tan): Likewise.
4191         (tanh): Likewise.
4192         * include/bits/cpp_type_traits.h (__are_same<>): New traits.
4193         (__enable_if): Likewise.
4194         * testsuite/26_numerics/cmath/overloads.C: New test.
4196 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
4198         PR libstdc++/9027
4199         PR libstdc++/9520
4200         PR libstdc++/10096
4201         * include/bits/fstream.tcc (basic_file::_M_underflow):  Add generic
4202         implementation, based on old wchar_t specialization, add support
4203         for codecvt::in() return value of codecvt_base::noconv, remove
4204         _M_file.sys_ungetc() call.
4205         * include/std/std_fstream.h (basic_file::underflow,
4206         basic_file::uflow, basic_file::_M_underflow):  Remove
4207         specialization declarations, call _M_underflow from generic versions
4208         of underflow and uflow.
4209         * src/fstream.cc (basic_file::underflow, basic_file::uflow,
4210         basic_file::_M_underflow):  Remove specializations.
4211         * src/Makefile.am (sources):  Remove fstream.cc.
4212         * src/Makefile.in:  Regenerated.
4213         * testsuite/27_io/basic_filebuf/underflow/10096.cc:  New test.
4214         * testsuite/27_io/basic_filebuf/underflow/char/1.cc:  New test.
4215         * testsuite/27_io/basic_filebuf/underflow/char/9027.cc:  New test.
4216         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc:  New test.
4218 2003-05-10  Benjamin Kosnik  <bkoz@redhat.com>
4220         * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
4221         buffer.
4222         * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
4223         unbuffered bits.
4224         (__basic_file::xsputn): Same.
4225         (__basic_file::seekoff): Same.
4226         (__basic_file::seekpos): Same.
4227         (__basic_file::showmanyc): Same.
4228         * config/io/basic_file_stdio.cc: Same.
4229         * include/std/std_fstream.h: Same.
4230         * include/bits/fstream.tcc: Same.
4231         * src/fstream.cc: Same.
4232         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
4234 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
4236         PR libstdc++/9520
4237         PR libstdc++/9661
4238         PR libstdc++/9662
4239         * include/ext/stdio_sync_filebuf.h:  New file.
4240         (basic_stdiobuf):  New.
4241         * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
4242         * include/Makefile.in: Regenerate.
4243         * include/bits/ios_base.h (Init::_S_create_buffers,
4244         Init::_S_destroy_buffers):  Remove declarations.
4245         * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
4246         buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync):  Define.
4247         * src/ios.cc (Init::_S_create_buffers,
4248         Init::_S_destroy_buffers):  Remove.
4249         (Init::Init):  Create and use syncronized buffers.
4250         (ios_base::sync_with_stdio):  Destroy syncronized buffers,
4251         create and install unsyncronized buffers.
4252         * testsuite/27_io/objects/char/10.cc:  New test.
4253         * testsuite/27_io/objects/char/9.cc:  New test.
4254         * testsuite/27_io/objects/char/9661-1.cc:  New test.
4255         * testsuite/27_io/objects/char/9661-2_xin.cc:  New test.
4256         * testsuite/27_io/objects/char/9661-2_xin.in:  New.
4257         * testsuite/27_io/objects/wchar_t/1.cc:  New test.
4258         * testsuite/27_io/objects/wchar_t/10.cc:  New test.
4259         * testsuite/27_io/objects/wchar_t/2.cc:  New test.
4260         * testsuite/27_io/objects/wchar_t/2523-1_xin.cc:  New test.
4261         * testsuite/27_io/objects/wchar_t/2523-1_xin.in:  New.
4262         * testsuite/27_io/objects/wchar_t/2523-2_xin.cc:  New test.
4263         * testsuite/27_io/objects/wchar_t/2523-2_xin.in:  New.
4264         * testsuite/27_io/objects/wchar_t/3045.cc:  New test.
4265         * testsuite/27_io/objects/wchar_t/3647.cc:  New test.
4266         * testsuite/27_io/objects/wchar_t/3_xin.cc:  New test.
4267         * testsuite/27_io/objects/wchar_t/3_xin.in:  New.
4268         * testsuite/27_io/objects/wchar_t/4_xin.cc:  New test.
4269         * testsuite/27_io/objects/wchar_t/4_xin.in:  New.
4270         * testsuite/27_io/objects/wchar_t/5.cc:  New test.
4271         * testsuite/27_io/objects/wchar_t/5268.cc:  New test.
4272         * testsuite/27_io/objects/wchar_t/5280_xin.cc:  New test.
4273         * testsuite/27_io/objects/wchar_t/5280_xin.in:  New.
4274         * testsuite/27_io/objects/wchar_t/6.cc:  New test.
4275         * testsuite/27_io/objects/wchar_t/6548_xin.cc:  New test.
4276         * testsuite/27_io/objects/wchar_t/6548_xin.in:  New.
4277         * testsuite/27_io/objects/wchar_t/6648-1_xin.cc:  New test.
4278         * testsuite/27_io/objects/wchar_t/6648-1_xin.in:  New.
4279         * testsuite/27_io/objects/wchar_t/6648-2_xin.cc:  New test.
4280         * testsuite/27_io/objects/wchar_t/6648-2_xin.in:  New.
4281         * testsuite/27_io/objects/wchar_t/7.cc:  New test.
4282         * testsuite/27_io/objects/wchar_t/7744_xin.cc:  New test.
4283         * testsuite/27_io/objects/wchar_t/7744_xin.in:  New.
4284         * testsuite/27_io/objects/wchar_t/8.cc:  New test.
4285         * testsuite/27_io/objects/wchar_t/9_xin.cc:  New test.
4286         * testsuite/27_io/objects/wchar_t/9_xin.in:  New.
4287         * testsuite/27_io/objects/wchar_t/9520.cc:  New test.
4288         * testsuite/27_io/objects/wchar_t/9661-1.cc:  New test.
4289         * testsuite/27_io/objects/wchar_t/9661-2_xin.cc:  New test.
4290         * testsuite/27_io/objects/wchar_t/9661-2_xin.in:  New.
4291         * testsuite/27_io/objects/wchar_t/9662.cc:  New test.
4292         * testsuite/ext/stdiobuf_char.cc:  New test.
4293         * testsuite/ext/stdiobuf_wchar_t.cc:  New test.
4295 2003-05-10  Paolo Carlini  <pcarlini@unitus.it>
4297         * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
4298         unnecessary includes and unused string literals.
4299         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
4301 2003-05-08  Paolo Carlini  <pcarlini@unitus.it>
4303         * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
4305 2003-05-07  Richard Henderson  <rth@redhat.com>
4307         PR c++/10570
4308         * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
4309         (__cxa_end_catch): Likewise.
4310         * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise.  Use
4311         _Unwind_Resume_or_Rethrow.
4312         * libsupc++/eh_personality.cc (empty_exception_spec): New.
4313         (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
4314         for _UA_FORCE_UNWIND.  Honor empty filter spec for foreign
4315         exceptions.  Don't push terminate/unexpected to cxa functions.
4316         (__cxa_call_unexpected): Remove foreign exception fixmes.
4318 2003-05-07  Benjamin Kosnik  <bkoz@redhat.com>
4320         * testsuite/27_io/ios_base/cons: New.
4321         * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
4322         * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
4324 2003-05-07  Paolo Carlini  <pcarlini@unitus.it>
4326         * include/std/std_fstream.h (_M_is_indeterminate): Remove.
4327         * src/fstream.cc
4328         (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
4329         there is no buffer or __testget == !__testinit.
4331         * src/fstream.cc
4332         (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
4333         automatically sets, if appropriate, _M_out_cur == _M_in_cur.
4335         * include/std/std_fstream.h (_M_destroy_pback): Don't set
4336         unnecessarily _M_pback_cur_save and _M_pback_end_save.
4338         * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
4340         * include/std/std_sstream.h (_M_sync): Minor tweak.
4342         * include/bits/fstream.tcc (close): No need to call
4343         _M_destroy_pback, setting _M_pback_init to false suffices
4344         to clean up.
4346 2003-05-06  Benjamin Kosnik  <bkoz@redhat.com>
4348         * include/bits/stl_algo.h: Enums as _S_.
4349         * include/bits/stl_tree.h: Same.
4350         * include/bits/stl_bvector.h: Same.
4351         * include/bits/ios_base.h: Same.
4352         * include/bits/stl_alloc.h: Same.
4353         * include/ext/stl_hashtable.h: Same.
4354         * src/ios.cc: And here.
4356         * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
4357         * include/bits/sstream.tcc: Same.
4359         * include/bits/basic_ios.h: Correct spacing for '< ctype'.
4361         * include/bits/locale_facets.tcc: Replace __temp to __tmp.
4363         * include/bits/locale_facets.h (__num_base): Remove protected.
4364         Use _S_[io]* names for enumerations.
4365         (_S_format_int): Remove.
4366         * include/bits/locale_facets.tcc: Same.
4367         * src/locale.cc: Same.
4369         * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
4371 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
4373         * docs/html/faq/index.html (3.10):  Add note about mips atomicity.h.
4374         * docs/html/faq/index.txt:  Regenerated.
4376 2003-05-06  Michael Ritzert <Ritzert@t-online.de>
4377             Matt Kraai <kraai@alumni.cmu.edu>
4379         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
4380         And retweak.
4382 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
4384         * configure.target (mips*): Use the generic atomicity.h by default.
4386 2003-05-05  Loren J. Rittle  <ljrittle@acm.org>
4387             (Inspired by an alternate patch from Danny Smith.)
4389         * include/bits/stl_threads.h (_Atomic_swap): Kill it...
4390         (_Swap_lock_struct<>): ...and the horse it rode in on.
4391         * src/globals.cc (_Swap_lock_struct<>): Likewise.
4392         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
4393         member to support...
4394         * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
4395         visibility rules related to POSIX threads.
4396         * testsuite/thread/pthread7-rope.cc: New test.
4398 2003-05-04  Paolo Carlini  <pcarlini@unitus.it>
4400         * testsuite/21_strings/basic_string/find/char/3.cc: New
4401         file, testing basic_string<char>::find_first_not_of.
4402         * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
4403         Likewise for basic_string<wchar_t>.
4405 2003-05-03  Loren J. Rittle  <ljrittle@acm.org>
4407         * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
4409 2003-05-02  Benjamin Kosnik  <bkoz@redhat.com>
4411         * include/Makefile.am (CLEANFILES): Remove PCH files in target
4412         directory.
4413         * include/Makefile.in: Regenerate.
4415 2003-05-02  Paolo Carlini  <pcarlini@unitus.it>
4417         * include/std/std_sstream.h (str()): Tidy.
4419 2003-05-02  Nathan Myers  <ncm@cantrip.org>
4420             Paolo Carlini  <pcarlini@unitus.it>
4422         * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
4424 2003-05-02  Jonathan Wakely  <redi@gcc.gnu.org>
4426         * include/bits/basic_string.h (swap): Remove redundant template
4427         parameters from declaration of non-template member function.
4429 2003-05-01  Phil Edwards  <pme@gcc.gnu.org>
4431         * acconfig.h (_GLIBCPP_USE_NLS):  New symbol.
4432         * configure.in:  Move libintl.h header test...
4433         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  ...to here.  Gather all
4434         the NLS-related test results into one symbol.
4435         * src/functexcept.cc:  Use it here.
4436         * aclocal.m4, config.h.in, configure:  Regenerated.
4438 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
4440         * include/bits/sstream.tcc (overflow): Instead of calling
4441         str(), then _M_string.reserve, thus copying the contents
4442         of the current buffer two times, just copy the latter in
4443         a temporary, then use the 'swap trick'.
4445 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
4447         * include/std/std_sstream.h (str()): Revert the best of the
4448         previous 'improvement', incorrect due to the COW nature of
4449         v3 basic_string; simplify.
4451 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
4453         * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
4454         type of __avail to ptrdiff_t to avoid signed-unsigned warning.
4456 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
4458         * testsuite/abi_check.cc (check_version): Update known versions.
4459         Check added symbols for version_name != base version. Add missing
4460         symbols to incompatible list.
4462 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
4464         * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
4465         * aclocal.m4: Regenerated.
4466         * configure: Regenerated.
4468 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
4470         * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
4471         Const-ify some variables.
4472         (basic_streambuf::xsputn): Likewise; change the type of some
4473         variables to size_t.
4474         (__copy_streambufs): Change some variables to size_t.
4476 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
4478         * include/std/std_sstream.h (str()): Avoid constructing
4479         a basic_string temporary not only when it would turn out
4480         to be zero-sized but also when identical to the current
4481         _M_string buffer.
4483 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
4485         * include/ext/stdio_filebuf.h
4486         (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
4487         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
4488         Shorten a bit (-10 lines) by factoring out some code.
4490 2003-04-30  Phil Edwards  <pme@gcc.gnu.org>
4492         * acinclude.m4:  Add bit missing from previous patch.
4493         * aclocal.m4, configure:  Regenerated.
4495 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
4497         * docs/doxygen/mainpage.html:  Bring up to date.
4498         * docs/doxygen/run_doxygen:  Cosmetic tweaks.  Work around a bug
4499         in Doxygen.
4500         * docs/doxygen/user.cfg.in:  Scanning the precompiled headers
4501         breaks everything.  Don't scan them.
4502         * docs/html/documentation.html:  Point to "Write after approval"
4503         notes.
4505 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
4507         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  Search for gettext outside
4508         of libc if message translations are being used.  Fix info text in
4509         xieee_1003.1-2001 case.
4510         * aclocal.m4, configure:  Regenerate.
4512 2003-04-29 Joel Sherrill  <joel.sherrill@OARcorp.com>
4513            Loren J. Rittle <ljrittle@acm.org>
4514            Martin v. Loewis  <martin@v.loewis.de>
4516         * config/cpu/i386/atomicity.h: New file.
4518 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
4520         * include/bits/fstream.tcc (open): Change to single return.
4522 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
4524         * include/std/std_sstream.h (underflow): Change to single return.
4526 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
4528         * include/std/std_streambuf.h (_M_buf): is currently
4529         used only for basic_filebuf, therefore move it there.
4530         (basic_streambuf(), ~basic_streambuf()): Adjust.
4531         * include/std/std_fstream.h (_M_buf): Moved here.
4532         * include/std/std_sstream.h (setbuf): Don't set _M_buf,
4533         is actually redundant for basic_stringbuf.
4534         (_M_really_sync): Likewise.
4535         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
4536         * include/bits/sstream.tcc (seekoff): Adjust.
4538 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
4540         * src/localename.cc: Standardize exception strings.
4541         * src/locale.cc: Same.
4542         * src/ios.cc: Same.
4543         * include/bits/basic_string.tcc: Same.
4544         * include/bits/basic_ios.tcc: Same.
4545         * include/std/std_bitset.h: Same.
4546         * include/ext/ropeimpl.h: Same.
4547         * include/bits/stl_vector.h: Same.
4548         * include/bits/stl_deque.h: Same.
4549         * include/bits/stl_bvector.h: Same.
4550         * config/locale/generic/c_locale.cc: Same.
4551         * config/locale/gnu/c_locale.cc: Same.
4552         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
4554         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
4556 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
4558         * include/std/std_streambuf.h (_M_buf_size): is currently
4559         used only for basic_filebuf, therefore move it there.
4560         (basic_streambuf(), ~basic_streambuf()): Adjust.
4561         * include/std/std_fstream.h (_M_buf_size): Moved here.
4562         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
4564 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
4566         * include/bits/streambuf.tcc (__copy_streambufs): Don't use
4567         _M_buf_size (synced input is now correctly dealt with
4568         elsewhere); when the output buffer is full don't fall back
4569         to a snextc-sputc loop, call overflow instead.
4571 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
4573         * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
4574         the innermost 'if' by factoring out some code.
4576 2003-04-28  Phil Edwards  <pme@gcc.gnu.org>
4578         * configure.in:  Test for libintl.h.
4579         * include/bits/c++config:  Define __N for everybody.
4580         * include/bits/basic_string.h, include/bits/stl_bvector.h,
4581         include/bits/stl_deque.h, include/bits/stl_vector.h,
4582         include/std/std_bitset.h:  Wrap all __throw* text with __N.
4583         * po/Makefile.am (pot):  New rule, mostly working.
4584         * src/functexcept.cc:  Call gettext on all __throw* arguments when
4585         -fexceptions is in effect.
4586         * po/Makefile.in, config.h.in, configure:  Regenerate.
4588 2003-04-28  Petur Runolfsson  <peturr02@ru.is>
4590         PR libstdc++/9523
4591         * include/bits/ios_base.h (Init::_S_ios_create,
4592         Init::_S_ios_destroy):  Remove declarations.
4593         (Init::_S_create_buffers,
4594         Init::_S_destroy_buffers):  Declare
4595         * src/ios.cc (Init::_S_ios_create):  Remove
4596         (Init::_S_create_buffers):  Create buffers and add to streams.
4597         (Init::_S_ios_destroy):  Rename to...
4598         (Init::_S_destroy_buffers):  this.
4599         (Init::Init):  Only construct streams once.
4600         (Init::~Init):  Flush streams, don't destroy them.
4601         (ios_base::sync_with_stdio):  Don't destroy streams, only buffers.
4602         * testsuite/27_io/ios_base/sync_with_stdio/9523.cc:  New test.
4603         * testsuite/27_io/objects/char/5.cc:  New test.
4604         * testsuite/27_io/objects/char/5268.cc:  Avoid undefined behavior.
4605         * testsuite/27_io/objects/char/6.cc:  New test.
4606         * testsuite/27_io/objects/char/7.cc:  New test.
4608 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
4610         * testsuite/27_io/objects/char/8.cc:  New test.
4612 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
4614         * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
4615         * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
4617 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
4619         * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
4620         _M_destroy_pback. _M_pback_create to
4621         _M_create_pback. _M_underflow_common to
4622         _M_underflow. _M_really_overflow to _M_overflow.
4623         * include/bits/fstream.tcc: Same.
4624         * src/fstream.cc: Same.
4625         * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
4626         _M_move_in_cur.  _M_out_cur_move to _M_move_out_cur.
4627         * include/bits/streambuf.tcc: Same.
4628         * include/bits/fstream.tcc: Same.
4629         * include/bits/sstream.tcc: Same.
4631 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
4633         * include/bits/locale_classes.h (locale::_Impl): Change _M_names
4634         from fixed size array.
4635         (locale): Change _S_categories as well.
4636         Formatting tweaks.
4637         * include/bits/locale_facets.tcc: Tweak.
4638         * config/locale/gnu/c_locale.cc: Assign _S_categories.
4639         * config/locale/generic/c_locale.cc: Same.
4640         * src/locale.cc: Tweak.
4641         * src/globals.cc: Change facet_name to name_vec, add names_c.
4642         * src/localename.cc: Use them.
4643         (locale::_Impl::~_Impl): Destroy _M_names.
4644         (locale::_Impl::_Impl): Create _M_names.
4646 2003-04-27  Andreas Schwab  <schwab@suse.de>
4648         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
4649         (__enc_traits): Use __ibom and __ebom instead of ignoring them.
4651 2003-04-27  Nathan Myers  <ncm@cantrip.org>
4653         Move some basic_string members out of line because
4654         they are too big to reasonably be inline.
4655         * include/bits/basic_string.h
4656         (assign(const basic_string&, size_type, size_type),
4657         assign(const _CharT*, size_type),
4658         insert(size_type, const basic_string&, size_type, size_type),
4659         insert(size_type, const _CharT*, size_type),
4660         replace(size_type, size_type, const _CharT*, size_type)):
4661         Move from here to...
4662         * include/bits/basic_string.tcc: ...here.
4664 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
4666         * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
4667         the innermost 'if' by factoring out some code.
4669 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
4671         * include/bits/streambuf.tcc (__copy_streambufs): Don't
4672         use in_avail(), simplify.
4674 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
4676         * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
4677         in basic_stringbuf it's unused.
4679         * include/std/std_sstream.h (underflow): consistently use
4680         _M_in_cur, not gptr().
4682 2003-04-25  Ranjit Mathew  <rmathew@hotmail.com>
4683             Phil Edwards  <pme@gcc.gnu.org>
4685         * testsuite_flags.in: Guard against the possibility
4686         of having "xgcc" as a part of a folder name in the
4687         path to the GCC build folder.
4688         * testsuite/Makefile.am: Likewise.
4689         * testsuite/Makefile.in: Regenerated.
4691 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
4693         PR libstdc++/10132
4694         * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
4695         exception specifications.
4696         (basic_filebuf::close): Same.
4697         (basic_filebuf::_M_pback_destroy): Same.
4698         (basic_filebuf::_M_destroy_internal_buffer): Same.
4699         (basic_filebuf): Remove __res_type typedef.
4700         * src/fstream.cc: Same.
4701         * include/bits/fstream.tcc
4702         (basic_filebuf::_M_convert_to_external): Simplify.
4703         (basic_filebuf::seekoff): Use has_facet before use_facet.
4704         (basic_filebuf::close): Add exception specification of throw().
4705         * testsuite/27_io/basic_filebuf/cons: New.
4706         * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
4707         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
4708         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
4709         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
4711 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
4713         * include/bits/locale_classes.h
4714         (locale::_S_extra_categories_size): Remove.
4715         * src/locale.cc: Remove _S_extra_categories_size.
4716         * src/localename.cc: Same.
4717         * config/locale/gnu/c_locale.cc: Same.
4718         * config/locale/generic/c_locale.cc: Same.
4720 2003-04-24  Richard Sandiford  <rsandifo@redhat.com>
4722         * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
4724 2003-04-24  Phil Edwards  <pme@gcc.gnu.org>
4726         * docs/html/17_intro/howto.html:  Update some links.
4727         * docs/html/18_support/howto.html:  Link doxygen numeric_limits notes.
4728         * docs/html/27_io/howto.html:  Link doxygen stdio_filebuf notes.
4729         * docs/html/ext/howto.html:  Link to demangler notes and API.
4730         * docs/html/faq/index.html:  Remove trailing whitespace.
4731         (1.4, 2.4, 3.8, 4.1):  Bring up to date.
4732         (5.6):  Change to a bulleted list.
4734         * docs/html/faq/index.txt, docs/html/documentation.html,
4735         docs/html/17_intro/porting.html:  Regenerate.
4737 2003-04-23  Paolo Carlini  <pcarlini@unitus.it>
4739         * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
4740         belongs to basic_filebuf.
4741         * testsuite/27_io/basic_fstream/3.cc: Likewise.
4742         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
4743         * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
4744         instantiation (now belongs to basic_filebuf).
4745         * testsuite/27_io/basic_iostream/3.cc: Likewise.
4746         * testsuite/27_io/basic_istream/3.cc: Likewise.
4747         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
4748         _S_pback_size now belongs to basic_filebuf.
4749         * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
4750         instantiation (now belongs to basic_filebuf).
4751         * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
4752         belongs to basic_filebuf.
4753         * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
4754         instantiation (now belongs to basic_filebuf).
4755         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
4756         _S_pback_size now belongs to basic_filebuf.
4757         * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
4758         instantiation (now belongs to basic_filebuf).
4759         * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
4760         to basic_filebuf.
4761         * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
4762         instantiation (now belongs to basic_filebuf).
4763         * testsuite/27_io/basic_stringstream/3.cc: Likewise.
4765 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
4767         * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
4768         * configure: Regenerated.
4770 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
4772         * config/locale/generic/c_locale.h (__convert_from_v): Use
4773         attribute unused.
4775 2003-04-23  Phil Edwards  <pme@gcc.gnu.org>
4777         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 60, partial
4778         implementation only.
4779         * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
4780         Comment and change to comply with DR 60 and the effect on gcount().
4781         * include/std/std_istream.h:  Update comments.
4782         * testsuite/27_io/basic_istream/putback/char/1.cc (test01):  Add
4783         comments about reasons for tests.  Test sync() against gcount().
4784         * testsuite/27_io/basic_istream/seekg/char/2.cc:  New file, test
4785         for effect on gcount().
4786         * testsuite/27_io/basic_istream/tellg/char/2.cc:  New file, test
4787         for effect on gcount().
4789 2003-04-22  Loren J. Rittle  <ljrittle@acm.org>
4791         * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
4792         Adjust timing.
4794 2003-04-22  Paolo Carlini  <pcarlini@unitus.it>
4796         * include/std/std_streambuf.h (_S_pback_size, _M_pback,
4797         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
4798         _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
4799         (basic_streambuf::basic_streambuf()): Adjust.
4800         * include/std/std_fstream.h (_S_pback_size, _M_pback,
4801         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
4802         _M_pback_create(), _M_pback_destroy()): Moved here
4803         from basic_streambuf.
4804         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
4805         Adjust.
4806         (basic_filebuf::_S_pback_size): Add declaration.
4807         * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
4808         Remove declaration.
4810 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
4812         Consistently use _M_in_beg instead of eback(), _M_in_cur
4813         instead of gptr(), and so on.
4814         * include/bits/fstream.tcc (pbackfail, imbue): Here.
4815         * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
4816         * include/bits/streambuf.tcc (sbumpc, sputbackc,
4817         __copy_streambufs): Ditto.
4818         * include/std/std_streambuf.h (sgetc): Ditto.
4820 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
4822         * include/bits/sstream.tcc (pbackfail, overflow):
4823         Formatting fixes.
4825 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
4827         * include/std/std_streambuf.h (uflow()): It's used only by
4828         basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
4829         therefore do not consider the _M_buf_unified == true case.
4831         * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
4833 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
4835         * docs/html/ext/howto.html ('LWG Issues'):
4836         Add issues 19, 90, 171, 231, 271.
4838 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
4840         * include/bits/sstream.tcc (pbackfail): Remove redundant
4841         NULL pointer check from test involving _M_in_*.
4842         (overflow, seekoff, seekpos): Const qualify bool variables.
4843         * include/std/std_sstream.h (underflow): Remove redundant
4844         NULL pointer check from test involving _M_in_*.
4845         (_M_really_sync): Const qualify bool variables.
4846         * src/fstream.cc (_M_underflow_common): Remove redundant
4847         NULL pointer check from test involving _M_in_*, const qualify
4848         bool variables.
4850         * include/std/std_streambuf.h (sgetc): Remove redundant
4851         variable.
4853 2003-04-18  Paolo Carlini  <pcarlini@unitus.it>
4855         According to 5.9 para 2 (second bullet) for pointers p, q
4856         pointing to the same type, with  p == 0 and q == 0, (p < q)
4857         is false.
4858         * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
4859         seekoff): Remove redundant NULL pointer checks from tests
4860         involving _M_out_* and _M_in_*, const qualify bool variables.
4861         (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
4862         qualify bool variables.
4863         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
4864         Remove redundant NULL pointer checks from tests involving
4865         _M_out_* and _M_in_*, const qualify bool variables.
4866         * include/std/std_fstream.h (sync): Likewise.
4867         (_M_is_indeterminate): Const qualify bool variables.
4868         * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
4869         NULL pointer checks from tests involving _M_out_* and _M_in_*,
4870         const qualify bool variables.
4871         (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
4872         variables.
4874 2003-04-18  Loren J. Rittle  <ljrittle@acm.org>
4876         * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
4877         C99 FP macros, if actually captured.
4879         * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
4880         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
4881         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
4882         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
4883         * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
4884         New macro.
4885         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
4886         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
4887         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
4888         * include/c_std/std_cstdlib.h: Use new macros.
4889         * include/c_std/std_cstdio.h: Use new macros.
4890         * include/c_std/std_cwchar.h: Use new macros.
4892 2003-04-17  Benjamin Kosnik  <bkoz@redhat.com>
4894         PR libstdc++/9555
4895         * include/bits/ostream.tcc: Catch all exceptions for formatted
4896         output, instead of std::exception and derivatives.
4897         * include/bits/istream.tcc: Same.
4898         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
4899         * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
4900         * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
4901         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
4902         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
4903         * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
4904         New.
4906 2003-04-17  Phil Edwards  <pme@gcc.gnu.org>
4908         * include/bits/c++config:  Minor cosmetic tweaks.
4910 2003-04-17  Loren J. Rittle  <ljrittle@acm.org>
4912         * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
4913         * include/Makefile.am (pch_input): Find in ${target_builddir}.
4914         (pch_output): Rename to...
4915         (pch_output_builddir): ..this.  Find in ${target_builddir}.
4916         (pch_source): Tweak.
4917         (pch_build): Key off a built file.
4918         (pch_output rule): Rename to...
4919         (pch_input rule): ...this.  Produce ${pch_output_builddir}
4920         instead of ${pch_output}.
4921         (install-pch rule): Install ${pch_output_builddir}.
4922         * include/Makefile.in: Regenerated.
4924 2003-04-17  Paolo Carlini  <pcarlini@unitus.it>
4926         * include/std/std_streambuf.h (setp): _M_out_lim, being
4927         the end limit of used put area, is set equal to _M_out_beg.
4929 2003-04-16  Benjamin Kosnik  <bkoz@redhat.com>
4931         * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
4932         * aclocal.m4: Regenerated.
4933         * configure.in: Remove old demangler bits.
4934         Call pch checks.
4935         * configure: Regenerate.
4936         * config.h.in: Regenerate.
4937         * include/Makefile.am (allstamps): Now allstamped.
4938         (allcreated): Define this.
4939         (all-local): Use 'em.
4940         Conditionally define pch_build, pch_install based on
4941         GLIBCPP_BUILD_PCH.
4942         (${pch_output}): New rule.
4943         (install-pch): New rule.
4944         (install-headers): New rule.
4945         (install-data-local): Install headers and conditionally pch.
4946         * include/Makefile.in: Regenerate.
4947         * testsuite_flags.in (--build-cxx): Use pch file.
4949 2003-04-16  Jonathan Wakely  <redi@gcc.gnu.org>
4951         * docs/html/ext/sgiexts.html: Fix path to stylesheet.
4953 2003-04-15  Benjamin Kosnik  <bkoz at redhat dot com>
4954             Paolo Carlini  <pcarlini at unitus dot it>
4956         PR libstdc++/9423
4957         * docs/html/27_io/howto.html
4958         ('The buffering is screwing up my program!'): Explain that
4959         opening counts as an I/O operation.
4961 2003-04-15  Andreas Tobler  <a.tobler@schweiz.ch>
4963         * testsuite/thread/pthread1.cc: Enable for darwin test.
4964         * testsuite/thread/pthread2.cc: Same.
4965         * testsuite/thread/pthread3.cc: Same.
4966         * testsuite/thread/pthread4.cc: Same.
4967         * testsuite/thread/pthread5.cc: Same.
4968         * testsuite/thread/pthread6.cc: Same.
4970 2003-04-15  Loren J. Rittle  <ljrittle@acm.org>
4972         libstdc++/7680
4973         * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
4974         Populate it with multiple legal ways to obtain the C99 float
4975         transcendentals.  Use them instead of direct global reference.
4976         (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
4977         * docs/html/17_intro/porting.texi
4978         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
4979         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
4980         (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
4981         * config/os/bsd/freebsd/os_defines.h
4982         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
4983         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
4984         * testsuite/26_numerics/c_math_dynamic.cc: New file.
4986 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
4987             Benjamin Kosnik  <bkoz@redhat.com>
4989         * config/os/generic/ctype_inline.h: Fix.
4991 2003-04-14  Benjamin Kosnik  <bkoz@redhat.com>
4993         * testsuite/testsuite_hooks.h
4994         (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
4995         Change to try_named_locale.
4996         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
4998         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
4999         try_named_locale.
5000         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
5001         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
5002         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
5003         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
5004         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
5005         * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
5006         * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
5007         * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
5008         * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
5009         * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
5010         * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
5011         * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
5012         * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
5013         * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
5014         * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
5015         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
5016         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
5017         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
5018         * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
5019         * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
5020         * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
5021         * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
5022         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
5023         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
5024         * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
5025         * testsuite/22_locale/collate/compare/char/1.cc: Same.
5026         * testsuite/22_locale/collate/compare/char/2.cc: Same.
5027         * testsuite/22_locale/collate/compare/char/3.cc: Same.
5028         * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
5029         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
5030         * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
5031         * testsuite/22_locale/collate/hash/char/2.cc: Same.
5032         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
5033         * testsuite/22_locale/collate/transform/char/2.cc: Same.
5034         * testsuite/22_locale/collate/transform/char/3.cc: Same.
5035         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
5036         * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
5037         * testsuite/22_locale/collate_byname/1.cc: Same.
5038         * testsuite/22_locale/ctype/is/char/2.cc: Same.
5039         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
5040         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
5041         * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
5042         * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
5043         * testsuite/22_locale/facet/2.cc: Same.
5044         * testsuite/22_locale/locale/cons/2.cc: Same.
5045         * testsuite/22_locale/locale/cons/4.cc: Same.
5046         * testsuite/22_locale/locale/cons/5.cc: Same.
5047         * testsuite/22_locale/locale/cons/7.cc: Same.
5048         * testsuite/22_locale/locale/cons/7222-c.cc: Same.
5049         * testsuite/22_locale/locale/cons/7222-env.cc: Same.
5050         * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
5051         * testsuite/22_locale/messages/members/char/1.cc: Same.
5052         * testsuite/22_locale/messages/members/char/2.cc: Same.
5053         * testsuite/22_locale/messages/members/char/3.cc: Same.
5054         * testsuite/22_locale/messages_byname/1.cc: Same.
5055         * testsuite/22_locale/money_get/get/char/1.cc: Same.
5056         * testsuite/22_locale/money_get/get/char/2.cc: Same.
5057         * testsuite/22_locale/money_get/get/char/3.cc: Same.
5058         * testsuite/22_locale/money_get/get/char/4.cc: Same.
5059         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
5060         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
5061         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
5062         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
5063         * testsuite/22_locale/money_put/put/char/1.cc: Same.
5064         * testsuite/22_locale/money_put/put/char/2.cc: Same.
5065         * testsuite/22_locale/money_put/put/char/3.cc: Same.
5066         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
5067         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
5068         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
5069         * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
5070         * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
5071         * testsuite/22_locale/moneypunct_byname/1.cc: Same.
5072         * testsuite/22_locale/num_get/get/char/1.cc: Same.
5073         * testsuite/22_locale/num_get/get/char/2.cc: Same.
5074         * testsuite/22_locale/num_get/get/char/3.cc: Same.
5075         * testsuite/22_locale/num_get/get/char/5.cc: Same.
5076         * testsuite/22_locale/num_get/get/char/6.cc: Same.
5077         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
5078         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
5079         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
5080         * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
5081         * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
5082         * testsuite/22_locale/num_put/put/char/1.cc: Same.
5083         * testsuite/22_locale/num_put/put/char/2.cc: Same.
5084         * testsuite/22_locale/num_put/put/char/3.cc: Same.
5085         * testsuite/22_locale/num_put/put/char/5.cc: Same.
5086         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
5087         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
5088         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
5089         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
5090         * testsuite/22_locale/numpunct/members/char/1.cc: Same.
5091         * testsuite/22_locale/numpunct/members/char/2.cc: Same.
5092         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
5093         * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
5094         * testsuite/22_locale/numpunct_byname/1.cc: Same.
5095         * testsuite/22_locale/numpunct_byname/2.cc: Same.
5096         * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
5097         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
5098         * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
5099         * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
5100         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
5101         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
5102         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
5103         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
5104         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
5105         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
5106         * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
5107         * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
5108         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
5109         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
5110         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
5111         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
5112         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
5113         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
5114         * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
5115         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
5116         * testsuite/22_locale/time_put/put/char/1.cc: Same.
5117         * testsuite/22_locale/time_put/put/char/2.cc: Same.
5118         * testsuite/22_locale/time_put/put/char/3.cc: Same.
5119         * testsuite/22_locale/time_put/put/char/4.cc: Same.
5120         * testsuite/22_locale/time_put/put/char/5.cc: Same.
5121         * testsuite/22_locale/time_put/put/char/6.cc: Same.
5122         * testsuite/22_locale/time_put/put/char/7.cc: Same.
5123         * testsuite/22_locale/time_put/put/char/8.cc: Same.
5124         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
5125         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
5126         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
5127         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
5128         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
5129         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
5130         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
5131         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
5132         * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
5133         * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
5134         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
5135         * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
5136         * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
5138 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
5140         * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
5141         solaris includes, not generic.
5143 2003-04-14  Loren J. Rittle  <ljrittle@acm.org>
5145         * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
5147         * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
5148         * include/bits/concept_check.h: Fix multi-line comment.
5149         * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
5150         when target is *-*-freebsd*.
5152 2003-04-14  Nathan Myers  <ncm@cantrip.org>
5153             Paolo Carlini  <pcarlini@unitus.it>
5155         PR libstdc++/9701 (in_avail())
5156         * include/std/std_streambuf.h (in_avail): Simplify, in_avail
5157         doesn't care if there is anything in some putback cell.
5158         * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
5160         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
5161         unused string literals.
5163 2003-04-14  Paolo Carlini  <pcarlini@unitus.it>
5165         * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
5166         _M_out_end, _M_set_indeterminate() does it.
5168 2003-04-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5170         * os/hpux/ctype_inline.h: Replace with gnu-linux version.
5172 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
5174         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
5175         Change basic_streambuf instantiation to "unsigned char".
5176         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
5178 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
5180         Remove _M_buf_size_opt, use directly _M_buf_size instead.
5181         * include/bits/fstream.tcc
5182         (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
5183         references to _M_buf_size_opt.
5184         * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
5185         * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
5186         __bufsize to __in_avail and __size_opt to __buf_size.
5187         * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
5188         * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
5189         * include/std/std_streambuf.h (~basic_streambuf(),
5190         basic_streambuf()): Likewise, remove _M_buf_size_opt member.
5191         * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
5192         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
5193         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
5194         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
5195         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
5196         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
5197         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
5198         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
5199         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
5200         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
5201         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
5202         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
5204 2003-04-12  Paolo Carlini  <pcarlini at unitus dot it>
5206         * include/ext/stdio_filebuf.h
5207         (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
5208         stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
5209         _M_buf_size_opt == 0 only means "not to use an allocated buffer"
5210         since a stack-based buffer is used for small values of the size_t
5211         parameter.
5212         * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
5213         If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
5214         * testsuite/ext/stdio_filebuf_2.cc: New testfile.
5216 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
5218         PR libstdc++/9533
5219         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
5220         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
5222 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
5224         * testsuite/22_locale/locale/cons/3.cc: Split.
5225         * testsuite/22_locale/locale/cons/7222-c.cc: New.
5226         * testsuite/22_locale/locale/cons/7222-env.cc: New.
5227         Check before trying to create a locale from the environment.
5228         * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
5229         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
5230         Adjust includes.
5232 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
5234         * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
5235         locale to construct this hybrid locale, not the global locale.
5237 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
5239         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
5240         instantiation for AIX.
5241         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
5242         * testsuite/25_algorithms/min_max.cc: Same.
5244 2003-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5246         * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
5247         twice.  Always set _M_cfile to 0 when stream was open.
5249 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
5251         Reshuffle 27_io testsuite.  * testsuite/27_io/filebuf.cc,
5252         filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
5253         filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
5254         filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
5255         filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
5256         ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
5257         ifstream_members.cc, instantiations.cc, ios.cc,
5258         ios_base_callbacks.cc, ios_base_members_static-1.tst,
5259         ios_base_members_static.cc, ios_base_storage.cc,
5260         ios_base_types.cc, ios_ctor.cc, ios_init.cc,
5261         ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
5262         iostream.cc, iostream_members.cc, istream.cc,
5263         istream_exception.cc, istream_extractor_char.cc,
5264         istream_extractor_other-1.tst, istream_extractor_other-1.txt,
5265         istream_extractor_other-2.tst, istream_extractor_other.cc,
5266         istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
5267         istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
5268         istream_sentry.cc, istream_unformatted-1.tst,
5269         istream_unformatted-1.txt, istream_unformatted.cc,
5270         istringstream.cc, istringstream_members.cc,
5271         narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
5272         ofstream_members.cc, ostream.cc, ostream_exception.cc,
5273         ostream_fail.cc, ostream_inserter_arith.cc,
5274         ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
5275         ostream_inserter_char.cc, ostream_inserter_other-1.tst,
5276         ostream_inserter_other-2.tst, ostream_inserter_other.cc,
5277         ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
5278         ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
5279         ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
5280         streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
5281         stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
5282         wide_stream_objects.cc, istream_extractor_arith/01.cc,
5283         istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
5284         istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
5285         istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
5286         istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
5287         istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
5288         Split into...
5289         * 27_io/basic_filebuf/1.cc: New.
5290         * 27_io/basic_filebuf/2.cc: New.
5291         * 27_io/basic_filebuf/3.cc: New.
5292         * 27_io/basic_filebuf/4.cc: New.
5293         * 27_io/basic_filebuf/close/char/1.cc: New.
5294         * 27_io/basic_filebuf/close/char/2.cc: New.
5295         * 27_io/basic_filebuf/close/char/3.cc: New.
5296         * 27_io/basic_filebuf/close/char/4879.cc: New.
5297         * 27_io/basic_filebuf/close/char/9964.cc: New.
5298         * 27_io/basic_filebuf/imbue/char/1.cc: New.
5299         * 27_io/basic_filebuf/imbue/char/9322.cc: New.
5300         * 27_io/basic_filebuf/in_avail/char/1.cc: New.
5301         * 27_io/basic_filebuf/is_open/char/1.cc: New.
5302         * 27_io/basic_filebuf/open/char/1.cc: New.
5303         * 27_io/basic_filebuf/open/char/2.cc: New.
5304         * 27_io/basic_filebuf/open/char/3.cc: New.
5305         * 27_io/basic_filebuf/open/char/9507.cc: New.
5306         * 27_io/basic_filebuf/overflow/char/1.cc: New.
5307         * 27_io/basic_filebuf/overflow/char/3599.cc: New.
5308         * 27_io/basic_filebuf/overflow/char/9169.cc: New.
5309         * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
5310         * 27_io/basic_filebuf/overflow/char/9988.cc: New.
5311         * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
5312         * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
5313         * 27_io/basic_filebuf/seekoff/char/1.cc: New.
5314         * 27_io/basic_filebuf/seekoff/char/2.cc: New.
5315         * 27_io/basic_filebuf/seekpos/char/1.cc: New.
5316         * 27_io/basic_filebuf/seekpos/char/2.cc: New.
5317         * 27_io/basic_filebuf/setbuf/char/1.cc: New.
5318         * 27_io/basic_filebuf/setbuf/char/2.cc: New.
5319         * 27_io/basic_filebuf/setbuf/char/3.cc: New.
5320         * 27_io/basic_filebuf/sgetc/char/1.cc: New.
5321         * 27_io/basic_filebuf/sgetn/char/1.cc: New.
5322         * 27_io/basic_filebuf/sgetn/char/2.cc: New.
5323         * 27_io/basic_filebuf/snextc/char/1.cc: New.
5324         * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
5325         * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
5326         * 27_io/basic_filebuf/sputc/char/1.cc: New.
5327         * 27_io/basic_filebuf/sputc/char/1057.cc: New.
5328         * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
5329         * 27_io/basic_filebuf/sputn/char/1.cc: New.
5330         * 27_io/basic_filebuf/sputn/char/1057.cc: New.
5331         * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
5332         * 27_io/basic_filebuf/sungetc/char/1.cc: New.
5333         * 27_io/basic_filebuf/sync/char/1057.cc: New.
5334         * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
5335         * 27_io/basic_filebuf/underflow/char/10097.cc: New.
5336         * 27_io/basic_fstream/1.cc: New.
5337         * 27_io/basic_fstream/2.cc: New.
5338         * 27_io/basic_fstream/3.cc: New.
5339         * 27_io/basic_fstream/4.cc: New.
5340         * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
5341         * 27_io/basic_ifstream/1.cc: New.
5342         * 27_io/basic_ifstream/2.cc: New.
5343         * 27_io/basic_ifstream/3.cc: New.
5344         * 27_io/basic_ifstream/4.cc: New.
5345         * 27_io/basic_ifstream/cons/char/1.cc: New.
5346         * 27_io/basic_ifstream/open/char/1.cc: New.
5347         * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
5348         * 27_io/basic_ios/1.cc: New.
5349         * 27_io/basic_ios/2.cc: New.
5350         * 27_io/basic_ios/3.cc: New.
5351         * 27_io/basic_ios/4.cc: New.
5352         * 27_io/basic_ios/clear/char/1.cc: New.
5353         * 27_io/basic_ios/cons/char/1.cc: New.
5354         * 27_io/basic_ios/cons/char/2.cc: New.
5355         * 27_io/basic_ios/cons/char/3.cc: New.
5356         * 27_io/basic_ios/copyfmt/char/1.cc: New.
5357         * 27_io/basic_ios/copyfmt/char/2.cc: New.
5358         * 27_io/basic_ios/exceptions/char/1.cc: New.
5359         * 27_io/basic_ios/locales/char/1.cc: New.
5360         * 27_io/basic_iostream/1.cc: New.
5361         * 27_io/basic_iostream/2.cc: New.
5362         * 27_io/basic_iostream/3.cc: New.
5363         * 27_io/basic_iostream/4.cc: New.
5364         * 27_io/basic_istream/1.cc: New.
5365         * 27_io/basic_istream/2.cc: New.
5366         * 27_io/basic_istream/3.cc: New.
5367         * 27_io/basic_istream/4.cc: New.
5368         * 27_io/basic_istream/exceptions/char/9561.cc: New.
5369         * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
5370         * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
5371         * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
5372         * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
5373         * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
5374         * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
5375         * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
5376         * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
5377         * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
5378         * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
5379         * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
5380         * 27_io/basic_istream/extractors_character/char/1.cc: New.
5381         * 27_io/basic_istream/extractors_character/char/2.cc: New.
5382         * 27_io/basic_istream/extractors_character/char/3.cc: New.
5383         * 27_io/basic_istream/extractors_character/char/9826.cc: New.
5384         * 27_io/basic_istream/extractors_other/char/1.cc: New.
5385         * 27_io/basic_istream/extractors_other/char/2.cc: New.
5386         * 27_io/basic_istream/extractors_other/char/3.cc: New.
5387         * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
5388         * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
5389         * 27_io/basic_istream/get/char/1.cc: New.
5390         * 27_io/basic_istream/get/char/2.cc: New.
5391         * 27_io/basic_istream/getline/char/1.cc: New.
5392         * 27_io/basic_istream/getline/char/2.cc: New.
5393         * 27_io/basic_istream/getline/char/3.cc: New.
5394         * 27_io/basic_istream/ignore/char/1.cc: New.
5395         * 27_io/basic_istream/ignore/char/6360.cc: New.
5396         * 27_io/basic_istream/ignore/char/7220.cc: New.
5397         * 27_io/basic_istream/peek/char/1.cc: New.
5398         * 27_io/basic_istream/peek/char/6414.cc: New.
5399         * 27_io/basic_istream/putback/char/1.cc: New.
5400         * 27_io/basic_istream/read/char/1.cc: New.
5401         * 27_io/basic_istream/read/char/2.cc: New.
5402         * 27_io/basic_istream/read/char/3.cc: New.
5403         * 27_io/basic_istream/readsome/char/6746-1.cc: New.
5404         * 27_io/basic_istream/readsome/char/6746-2.cc: New.
5405         * 27_io/basic_istream/readsome/char/8258.cc: New.
5406         * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
5407         * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
5408         * 27_io/basic_istream/seekg/char/8348-1.cc: New.
5409         * 27_io/basic_istream/seekg/char/8348-2.cc: New.
5410         * 27_io/basic_istream/seekg/char/fstream.cc: New.
5411         * 27_io/basic_istream/seekg/char/sstream.cc: New.
5412         * 27_io/basic_istream/sentry/char/1.cc: New.
5413         * 27_io/basic_istream/sentry/char/2.cc: New.
5414         * 27_io/basic_istream/sentry/char/3.cc: New.
5415         * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
5416         * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
5417         * 27_io/basic_istream/tellg/char/1.cc: New.
5418         * 27_io/basic_istream/tellg/char/8348.cc: New.
5419         * 27_io/basic_istream/tellg/char/fstream.cc: New.
5420         * 27_io/basic_istream/tellg/char/sstream.cc: New.
5421         * 27_io/basic_istream/ws/char/1.cc: New.
5422         * 27_io/basic_istringstream/1.cc: New.
5423         * 27_io/basic_istringstream/2.cc: New.
5424         * 27_io/basic_istringstream/3.cc: New.
5425         * 27_io/basic_istringstream/4.cc: New.
5426         * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
5427         * 27_io/basic_istringstream/str/char/1.cc: New.
5428         * 27_io/basic_ofstream/1.cc: New.
5429         * 27_io/basic_ofstream/2.cc: New.
5430         * 27_io/basic_ofstream/3.cc: New.
5431         * 27_io/basic_ofstream/4.cc: New.
5432         * 27_io/basic_ofstream/cons/char/2.cc: New.
5433         * 27_io/basic_ofstream/open/char/1.cc: New.
5434         * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
5435         * 27_io/basic_ostream/1.cc: New.
5436         * 27_io/basic_ostream/2.cc: New.
5437         * 27_io/basic_ostream/3.cc: New.
5438         * 27_io/basic_ostream/4.cc: New.
5439         * 27_io/basic_ostream/cons/char/9827.cc: New.
5440         * 27_io/basic_ostream/endl/char/1.cc: New.
5441         * 27_io/basic_ostream/ends/char/1.cc: New.
5442         * 27_io/basic_ostream/ends/char/2.cc: New.
5443         * 27_io/basic_ostream/exceptions/char/9561.cc: New.
5444         * 27_io/basic_ostream/flush/char/1.cc: New.
5445         * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
5446         * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
5447         * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
5448         * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
5449         * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
5450         * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
5451         * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
5452         * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
5453         * 27_io/basic_ostream/inserters_character/char/1.cc: New.
5454         * 27_io/basic_ostream/inserters_character/char/2.cc: New.
5455         * 27_io/basic_ostream/inserters_character/char/3.cc: New.
5456         * 27_io/basic_ostream/inserters_character/char/4.cc: New.
5457         * 27_io/basic_ostream/inserters_character/char/5.cc: New.
5458         * 27_io/basic_ostream/inserters_character/char/6.cc: New.
5459         * 27_io/basic_ostream/inserters_character/char/8.cc: New.
5460         * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
5461         * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
5462         * 27_io/basic_ostream/inserters_other/char/1.cc: New.
5463         * 27_io/basic_ostream/inserters_other/char/2.cc: New.
5464         * 27_io/basic_ostream/inserters_other/char/3.cc: New.
5465         * 27_io/basic_ostream/inserters_other/char/4.cc: New.
5466         * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
5467         * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
5468         * 27_io/basic_ostream/sentry/char/1.cc: New.
5469         * 27_io/basic_ostream/sentry/char/2.cc: New.
5470         * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
5471         * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
5472         * 27_io/basic_ostream/tellp/char/1.cc: New.
5473         * 27_io/basic_ostream/tellp/char/2.cc: New.
5474         * 27_io/basic_ostringstream/1.cc: New.
5475         * 27_io/basic_ostringstream/2.cc: New.
5476         * 27_io/basic_ostringstream/3.cc: New.
5477         * 27_io/basic_ostringstream/4.cc: New.
5478         * 27_io/basic_ostringstream/cons/char/3.cc: New.
5479         * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
5480         * 27_io/basic_ostringstream/str/char/1.cc: New.
5481         * 27_io/basic_ostringstream/str/char/2.cc: New.
5482         * 27_io/basic_streambuf/1.cc: New.
5483         * 27_io/basic_streambuf/2.cc: New.
5484         * 27_io/basic_streambuf/3.cc: New.
5485         * 27_io/basic_streambuf/cons/char/1.cc: New.
5486         * 27_io/basic_streambuf/imbue/char/1.cc: New.
5487         * 27_io/basic_streambuf/imbue/char/9322.cc: New.
5488         * 27_io/basic_streambuf/overflow/char/1.cc: New.
5489         * 27_io/basic_streambuf/overflow/char/2.cc: New.
5490         * 27_io/basic_streambuf/overflow/char/3599.cc: New.
5491         * 27_io/basic_streambuf/sgetc/char/1.cc: New.
5492         * 27_io/basic_streambuf/sgetn/char/1.cc: New.
5493         * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
5494         * 27_io/basic_streambuf/sputc/char/1057.cc: New.
5495         * 27_io/basic_streambuf/sputn/char/1.cc: New.
5496         * 27_io/basic_streambuf/sputn/char/1057.cc: New.
5497         * 27_io/basic_streambuf/sync/char/1057.cc: New.
5498         * 27_io/basic_stringbuf/1.cc: New.
5499         * 27_io/basic_stringbuf/2.cc: New.
5500         * 27_io/basic_stringbuf/3.cc: New.
5501         * 27_io/basic_stringbuf/4.cc: New.
5502         * 27_io/basic_stringbuf/5.cc: New.
5503         * 27_io/basic_stringbuf/imbue/char/1.cc: New.
5504         * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
5505         * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
5506         * 27_io/basic_stringbuf/overflow/char/2.cc: New.
5507         * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
5508         * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
5509         * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
5510         * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
5511         * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
5512         * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
5513         * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
5514         * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
5515         * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
5516         * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
5517         * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
5518         * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
5519         * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
5520         * 27_io/basic_stringbuf/snextc/char/1.cc: New.
5521         * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
5522         * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
5523         * 27_io/basic_stringbuf/sputc/char/1.cc: New.
5524         * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
5525         * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
5526         * 27_io/basic_stringbuf/sputn/char/1.cc: New.
5527         * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
5528         * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
5529         * 27_io/basic_stringbuf/str/char/1.cc: New.
5530         * 27_io/basic_stringbuf/str/char/2.cc: New.
5531         * 27_io/basic_stringbuf/str/char/3.cc: New.
5532         * 27_io/basic_stringbuf/str/char/3955.cc: New.
5533         * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
5534         * 27_io/basic_stringbuf/sync/char/1057.cc: New.
5535         * 27_io/basic_stringstream/1.cc: New.
5536         * 27_io/basic_stringstream/2.cc: New.
5537         * 27_io/basic_stringstream/3.cc: New.
5538         * 27_io/basic_stringstream/4.cc: New.
5539         * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
5540         * 27_io/basic_stringstream/str/char/1.cc: New.
5541         * 27_io/basic_stringstream/str/char/2.cc: New.
5542         * 27_io/basic_stringstream/str/char/3.cc: New.
5543         * 27_io/basic_stringstream/str/char/4.cc: New.
5544         * 27_io/fpos/1.cc: New.
5545         * 27_io/fpos/2.cc: New.
5546         * 27_io/fpos/3.cc: New.
5547         * 27_io/ios_base/callbacks/1.cc: New.
5548         * 27_io/ios_base/state/1.cc: New.
5549         * 27_io/ios_base/storage/1.cc: New.
5550         * 27_io/ios_base/storage/2.cc: New.
5551         * 27_io/ios_base/storage/3.cc: New.
5552         * 27_io/ios_base/sync_with_stdio/1.cc: New.
5553         * 27_io/ios_base/sync_with_stdio/2.cc: New.
5554         * 27_io/manipulators/adjustfield/char/1.cc: New.
5555         * 27_io/manipulators/adjustfield/char/2.cc: New.
5556         * 27_io/manipulators/basefield/char/1.cc: New.
5557         * 27_io/manipulators/standard/char/1.cc: New.
5558         * 27_io/manipulators/standard/char/2.cc: New.
5559         * 27_io/objects/char/1.cc: New.
5560         * 27_io/objects/char/2.cc: New.
5561         * 27_io/objects/char/2523-1_xin.cc: New.
5562         * 27_io/objects/char/2523-1_xin.in: New.
5563         * 27_io/objects/char/2523-2_xin.cc: New.
5564         * 27_io/objects/char/2523-2_xin.in: New.
5565         * 27_io/objects/char/3045.cc: New.
5566         * 27_io/objects/char/3647.cc: New.
5567         * 27_io/objects/char/3_xin.cc: New.
5568         * 27_io/objects/char/3_xin.in: New.
5569         * 27_io/objects/char/4_xin.cc: New.
5570         * 27_io/objects/char/4_xin.in: New.
5571         * 27_io/objects/char/5268.cc: New.
5572         * 27_io/objects/char/5280_xin.cc: New.
5573         * 27_io/objects/char/5280_xin.in: New.
5574         * 27_io/objects/char/6548_xin.cc: New.
5575         * 27_io/objects/char/6548_xin.in: New.
5576         * 27_io/objects/char/6648-1_xin.cc: New.
5577         * 27_io/objects/char/6648-1_xin.in: New.
5578         * 27_io/objects/char/6648-2_xin.cc: New.
5579         * 27_io/objects/char/6648-2_xin.in: New.
5580         * 27_io/objects/char/7744_xin.cc: New.
5581         * 27_io/objects/char/7744_xin.in: New.
5582         * 27_io/objects/wchar_t/1.cc: New.
5583         * 27_io/types/1.cc: New.
5584         * 27_io/types/2.cc: New.
5585         * data/filebuf_members-1.tst: New.
5586         * data/filebuf_members-1.txt: New.
5587         * data/filebuf_virtuals-1.tst: New.
5588         * data/filebuf_virtuals-1.txt: New.
5589         * data/filebuf_virtuals-2.tst: New.
5590         * data/filebuf_virtuals-3.tst: New.
5591         * data/ifstream_members-1.tst: New.
5592         * data/ifstream_members-1.txt: New.
5593         * data/ios_base_members_static-1.tst: New.
5594         * data/istream_extractor_other-1.tst: New.
5595         * data/istream_extractor_other-1.txt: New.
5596         * data/istream_extractor_other-2.tst: New.
5597         * data/istream_seeks-1.tst: New.
5598         * data/istream_seeks-1.txt: New.
5599         * data/istream_seeks-2.tst: New.
5600         * data/istream_seeks-3.tst: New.
5601         * data/istream_unformatted-1.tst: New.
5602         * data/istream_unformatted-1.txt: New.
5603         * data/ofstream_members-1.tst: New.
5604         * data/ostream_inserter_char-1.tst: New.
5605         * data/ostream_inserter_char-1.txt: New.
5606         * data/ostream_inserter_other-1.tst: New.
5607         * data/ostream_inserter_other-2.tst: New.
5608         * data/ostream_seeks-1.tst: New.
5610 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
5612         * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
5613         requirement that __mode must be strict input or output.
5615         * include/std/std_streambuf.h (basic_streambuf::setp): Set
5616         _M_out_lim.
5618         * include/std/std_sstream.h (basic_strinbuf::str): Zero length
5619         output string shouldn't core.
5620         (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
5621         type.
5622         * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
5624         * include/bits/istream.tcc (basic_istream::putback): Set gcount to
5625         zero.
5627 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
5629         * testsuite/data: New directory.
5630         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
5631         to copy files from the testsuite data directory.
5632         (libstdc++-v3-list-sourcefiles): Add another test list filter, for
5633         testfiles containing _xin, which now means this is an interactive
5634         test and should be run with the interactive dejagnu hooks.
5635         * testsuite/Makefile.am: Remove testsuite_* files.
5636         * testsuite/Makefile.in: Regenerate.
5638 2003-04-09  Zack Weinberg  <zack@codesourcery.com>
5640         * docs/html/install.html: Document complete list of locales
5641         required by test suite.  Document procedure for installing
5642         said locales under Debian.  Solicit instructions for other
5643         operating systems.
5645 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
5647         * include/bits/sstream.tcc (overflow): Make sure operands of min
5648         and max have the same type.
5650 2003-04-04  Jerry Quinn  <jlquinn@optonline.net>
5652         PR libstdc++/10276
5653         * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
5654         initialization.
5656 2003-03-31  Paolo Carlini  <pcarlini@unitus.it>
5658         * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
5659         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
5660         Don't set _M_out_end.
5661         (basic_filebuf::overflow): Replace _M_out_buf_size() with
5662         this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
5663         * include/bits/sstream.tcc (basic_stringbuf::overflow):
5664         Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
5665         * include/bits/streambuf.tcc (basic_streambuf::sputc):
5666         Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
5667         (basic_streambuf::xsputn): Replace _M_out_buf_size() with
5668         _M_out_end - _M_out_cur.
5669         (__copy_streambufs): Likewise.
5670         * include/std/std_fstream.h (_M_set_determinate): Set
5671         _M_out_end here.
5673 2003-03-30  Paolo Carlini  <pcarlini@unitus.it>
5675         * include/bits/fstream.tcc (basic_filebuf::showmanyc,
5676         _M_convert_to_external, _M_really_overflow, seekoff): Fix
5677         test for synced buffer.
5678         * include/std/std_fstream.h (sync): Likewise.
5679         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
5680         basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
5682 2003-03-28  Benjamin Kosnik  <bkoz@redhat.com>
5684         * include/std/std_sstream.h (basic_istringstream): Adjust
5685         initialization.
5686         (basic_ostringstream): Same.
5687         (basic_stringstream): Same.
5688         * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
5689         (basic_ofstream): Same.
5690         (basic_fstream): Same.
5691         * include/std/std_ostream.h (basic_ostrem): Add protected ctor
5692         that does not call init.
5693         * include/std/std_istream.h (basic_istream): Same.
5694         (basic_iostream): Construct istream, ostream uninitialized, use
5695         init to initialize just once. Add protected ctor that does not
5696         call init.
5698 2003-03-28  Paolo Carlini  <pcarlini@unitus.it>
5699             Nathan Myers  <ncm@cantrip.org>
5701         PR libstdc++/9533
5702         * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
5703         call underflow().
5704         (basic_filebuf<>::showmanyc): Use the information provided
5705         by codecvt and __basic_file<>::showmanyc_helper to implement
5706         a non-trivial showmanyc.
5707         * config/io/basic_file_stdio.h
5708         (__basic_file<>::showmanyc_helper): New, declare.
5709         * config/io/basic_file_stdio.cc
5710         (__basic_file<>::showmanyc_helper): Define.
5711         (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
5712         (__basic_file<char>::open): Don't call fcntl().
5713         * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
5714         GLIBCPP_CHECK_POLL): New macros.
5715         * configure.in: Call here.
5716         * acconfig.h: Add #undefs for the corresponding symbols.
5717         * aclocal.m4: Regenerate.
5718         * configure: Regenerate.
5719         * config.h.in: Regenerate.
5721 2003-03-24  Benjamin Kosnik  <bkoz@redhat.com>
5723         * config/linker-map.gnu: Remove string export restrictions.
5725 2003-03-24  Paolo Carlini  <pcarlini@unitus.it>
5727         * testsuite/21_strings/basic_string/find/char/1.cc: Remove
5728         find_first_of, find_last_of and find_last_not_of tests.
5729         * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
5730         tests here, new file.
5731         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
5732         remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
5733         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
5734         wchar_t find_first_of tests here, new file.
5735         * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
5736         tests here.
5737         * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
5738         tests here.
5739         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
5740         wchar_t find_last_of tests here.
5741         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
5742         wchar_t find_last_not_of tests here.
5744 2003-03-22  Loren J. Rittle  <ljrittle@acm.org>
5746         * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
5747         Correct return value.
5749 2003-03-21  Jerry Quinn  <jlquinn@optonline.net>
5751         PR libstdc++/5730
5752         * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
5753         * include/std/std_complex.h (norm):  Use faster,
5754         less accurate computation for builtin float types under --fast-math.
5756 2003-03-21  Magnus Fromreide  <gnats@magfr.user.lysator.liu.se>
5758         * testsuite/testsuite_hooks.h: Fix warning nits.
5760 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
5762         * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
5763         Only .set mips2 for the o32 ABI.
5765 2003-03-19  Paolo Carlini  <pcarlini@unitus.it>
5767         * testsuite/21_strings/char_traits/requirements/char/1.cc:
5768         Test char not wchar_t.
5770 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
5772         * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
5773         Correct size, taking into account sizeof(wchar_t).
5775 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
5777         Reshuffle 21_strings testsuite.
5778         * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
5779         assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
5780         element_access.cc, operations.cc, char_traits_requirements.cc,
5781         find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
5782         compare.cc, inserters_extractors.cc, substr.cc: Split up, add
5783         wchar_t tests as follows.
5784         * 21_strings/basic_string/append/char/1.cc: New.
5785         * 21_strings/basic_string/append/wchar_t/1.cc: New.
5786         * 21_strings/basic_string/assign/char/1.cc: New.
5787         * 21_strings/basic_string/assign/char/2.cc: New.
5788         * 21_strings/basic_string/assign/char/3.cc: New.
5789         * 21_strings/basic_string/assign/wchar_t/1.cc: New.
5790         * 21_strings/basic_string/assign/wchar_t/2.cc: New.
5791         * 21_strings/basic_string/assign/wchar_t/3.cc: New.
5792         * 21_strings/basic_string/capacity/1.cc: New.
5793         * 21_strings/basic_string/capacity/char/1.cc: New.
5794         * 21_strings/basic_string/capacity/char/2.cc: New.
5795         * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
5796         * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
5797         * 21_strings/basic_string/compare/char/1.cc: New.
5798         * 21_strings/basic_string/compare/wchar_t/1.cc: New.
5799         * 21_strings/basic_string/cons/char/1.cc: New.
5800         * 21_strings/basic_string/cons/char/2.cc: New.
5801         * 21_strings/basic_string/cons/char/3.cc: New.
5802         * 21_strings/basic_string/cons/char/4.cc: New.
5803         * 21_strings/basic_string/cons/char/5.cc: New.
5804         * 21_strings/basic_string/cons/wchar_t/1.cc: New.
5805         * 21_strings/basic_string/cons/wchar_t/2.cc: New.
5806         * 21_strings/basic_string/cons/wchar_t/3.cc: New.
5807         * 21_strings/basic_string/cons/wchar_t/4.cc: New.
5808         * 21_strings/basic_string/cons/wchar_t/5.cc: New.
5809         * 21_strings/basic_string/element_access/char/1.cc: New.
5810         * 21_strings/basic_string/element_access/char/2.cc: New.
5811         * 21_strings/basic_string/element_access/char/3.cc: New.
5812         * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
5813         * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
5814         * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
5815         * 21_strings/basic_string/find/char/1.cc: New.
5816         * 21_strings/basic_string/find/wchar_t/1.cc: New.
5817         * 21_strings/basic_string/insert/char/1.cc: New.
5818         * 21_strings/basic_string/insert/char/2.cc: New.
5819         * 21_strings/basic_string/insert/wchar_t/1.cc: New.
5820         * 21_strings/basic_string/insert/wchar_t/2.cc: New.
5821         * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
5822         * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
5823         * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
5824         * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
5825         * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
5826         * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
5827         * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
5828         * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
5829         * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
5830         * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
5831         * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
5832         * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
5833         * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
5834         * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
5835         * 21_strings/basic_string/operators/char/1.cc: New.
5836         * 21_strings/basic_string/operators/char/2.cc: New.
5837         * 21_strings/basic_string/operators/wchar_t/1.cc: New.
5838         * 21_strings/basic_string/operators/wchar_t/2.cc: New.
5839         * 21_strings/basic_string/replace/char/1.cc: New.
5840         * 21_strings/basic_string/replace/char/2.cc: New.
5841         * 21_strings/basic_string/replace/char/3.cc: New.
5842         * 21_strings/basic_string/replace/char/4.cc: New.
5843         * 21_strings/basic_string/replace/char/5.cc: New.
5844         * 21_strings/basic_string/replace/wchar_t/1.cc: New.
5845         * 21_strings/basic_string/replace/wchar_t/2.cc: New.
5846         * 21_strings/basic_string/replace/wchar_t/3.cc: New.
5847         * 21_strings/basic_string/replace/wchar_t/4.cc: New.
5848         * 21_strings/basic_string/replace/wchar_t/5.cc: New.
5849         * 21_strings/basic_string/rfind/char/1.cc: New.
5850         * 21_strings/basic_string/rfind/char/2.cc: New.
5851         * 21_strings/basic_string/rfind/char/3.cc: New.
5852         * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
5853         * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
5854         * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
5855         * 21_strings/basic_string/substr/char/1.cc: New.
5856         * 21_strings/basic_string/substr/wchar_t/1.cc: New.
5857         * 21_strings/c_strings/char/1.cc: New.
5858         * 21_strings/c_strings/char/2.cc: New.
5859         * 21_strings/c_strings/wchar_t/1.cc: New.
5860         * 21_strings/c_strings/wchar_t/2.cc: New.
5861         * 21_strings/char_traits/requirements/char/1.cc: New.
5862         * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
5863         * 21_strings/char_traits/typedefs/char/1.cc: New.
5865 2003-03-17  Paolo Carlini  <pcarlini@unitus.it>
5866             Petur Runolfsson  <peturr02@ru.is>
5868         PR libstdc++/10097
5869         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
5870         basic_filebuf<wchar_t>::_M_underflow_common):
5871         if (gptr() < egptr()) return *gptr().
5872         * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
5874         * testsuite/27_io/filebuf_members.cc (test_04): Minor
5875         changes: unlink fifo before making it, fix spelling error.
5877 2003-03-17  Benjamin Kosnik  <bkoz@redhat.com>
5879         * testsuite/Makefile.am (CLEANFILES): Add tmp*.
5880         * testsuite/Makefile.in: Regenerate.
5881         * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
5882         Cleanups.
5884 2003-03-17  Petur Runolfsson  <peturr02@ru.is>
5886         PR libstdc++/9964
5887         * include/bits/fstream.tcc (basic_filebuf::close):
5888         Always close file, even when write fails.
5889         * testsuite/27_io/filebuf_members.cc (test_07):  New test.
5891 2003-03-17  Danny Smith  <dannysmith@users.sourceforge.net>
5893         * libsupc++/Makefile.am (C_COMPILE): Remove.
5894         (LTCOMPILE): Likewise.
5895         * libsupc++/Makefile.in: Regenerate.
5897 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
5899         * testsuite/23_containers/bitset_members.cc: Add test variable.
5900         * testsuite/23_containers/map_insert.cc: Same.
5901         * testsuite/22_locale/ctype/cons/char/1.cc: Same.
5902         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
5903         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
5904         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
5905         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
5906         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
5907         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
5908         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
5909         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
5910         * testsuite/27_io/istream_exception.cc: Same.
5911         * testsuite/27_io/filebuf_virtuals.cc: Same.
5912         * testsuite/27_io/stringbuf_virtuals.cc: Same.
5913         * testsuite/27_io/ostream_inserter_arith.cc: Same.
5914         * testsuite/26_numerics/valarray_operators.cc: Same.
5915         * testsuite/26_numerics/slice.cc: Same.
5916         * testsuite/26_numerics/slice_array_assignment.cc: Same.
5917         * testsuite/24_iterators/istream_iterator.cc: Same.
5918         * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
5920 2003-03-14  Petur Runolfsson  <peturr02@ru.is>
5922         PR libstdc++/9581
5923         PR libstdc++/9870
5924         * config/locale/generic/ctype_members.cc,
5925         * config/locale/gnu/ctype_members.cc
5926         (ctype<wchar_t>::do_widen(char)):  Cast argument to
5927         unsigned char before passing to btowc.
5928         (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
5929         Convert characters with btowc instead of mbsrtowcs.
5930         (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
5931         char, char*):
5932         Convert characters with wctob instead of wcsrtombs.
5933         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc:  New test.
5934         * testsuite/22_locale/ctype/widen/wchar_t/2.cc:  New test.
5935         * testsuite/22_locale/ctype/widen/wchar_t/3.cc:  New test.
5937 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
5939         * include/stdc++.h: New.
5940         * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
5941         * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
5942         * include/Makefile.in: Regenerate.
5943         * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
5944         (--cxxflags): Put -g -O2 here.
5945         * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
5947 2003-03-14  Loren J. Rittle  <ljrittle@acm.org>
5949         * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
5950         missing named locale.
5952 2003-03-14  Andreas Schwab  <schwab@suse.de>
5954         * configure.in: Only append to makefiles that are newly created to
5955         avoid multiple multi-do/multi-clean rules.
5956         * configure: Rebuilt.
5958 2003-03-13  Jonathan Wakely  <redi@gcc.gnu.org>
5960         * docs/html/configopts.html, docs/html/documentation.html,
5961         docs/html/explanations.html, docs/html/install.html,
5962         docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
5963         invalid XHTML and make page header style consistent.
5965 2003-03-12  Jonathan Wakely  <redi@gcc.gnu.org>
5967         * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
5968         * docs/html/faq/index.txt: Regenerate.
5969         * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
5971 2003-03-12  Andreas Schwab  <schwab@suse.de>
5973         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
5974         glibcpp_toolexeclibdir.
5975         * aclocal.m4, configure: Rebuilt.
5977 2003-03-11  Jonathan Wakely  <redi@gcc.gnu.org>
5979         * docs/html/faq/index.html: Update text about location of headers.
5980         * docs/html/faq/index.txt: Regenerate.
5982 2003-03-11  Carlo Wood  <carlo@alinoe.com>
5984         * include/bits/demangle.h: Prepend accessors of
5985         class qualifier with 'get_' in order to fix warnings
5986         when compiling with -Wshadow.
5988 2003-03-11  Loren J. Rittle  <ljrittle@acm.org>
5990         * config/os/bsd/freebsd/ctype_inline.h:  Support _M_table
5991         when so installed.
5992         * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
5994         * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
5995         report lack of setenv().
5997 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
5999         * config/io/basic_file_stdio.cc: include <unistd.h>.
6001 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
6002             Nathan Myers  <ncm@cantrip.org>
6004         PR libstdc++/7744
6005         * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
6006         seekoff, seekpos): Add a boolean parameter __stdio.
6007         * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
6008         seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
6009         fseek/ftell, respectively), otherwise read (write, lseek, lseek,
6010         respectively).
6011         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
6012         _M_really_overflow, seekoff): Use the boolean parameter in the calls.
6013         * include/std/std_fstream.h (sync): Likewise.
6014         * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
6015         * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
6016         libstdc++/8399 commit involving isatty(0).
6017         * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
6018         (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
6019         * configure.in: Remove call.
6020         * aclocal.m4: Regenerate.
6021         * config.h.in: Regenerate.
6022         * configure: Regenerate.
6023         * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
6025 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
6027         PR libstdc++/9988
6028         * include/bits/fstream.tcc (overflow): don't write EOF to file.
6029         * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
6031 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
6033         PR libstdc++/9561
6034         * include/bits/basic_ios.h (_M_setstate): New.
6035         * include/bits/ostream.tcc (operator<<): Use it.
6036         * include/bits/istream.tcc (operator>>): Use it.
6037         * include/std/std_ostream.h (operator<<): Make friends.
6038         * include/std/std_istream.h (operator>>): Make friends.
6039         * testsuite/27_io/ostream_exception.cc,
6040         testsuite/27_io/istream_exception.cc: New tests.
6042 2003-03-08  Benjamin Kosnik  <bkoz@redhat.com>
6044         * include/bits/locale_facets.tcc: Fix typo.
6046 2003-03-08  Loren J. Rittle  <ljrittle@acm.org>
6048         * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
6050         * config/locale/generic/c_locale.cc
6051         (locale::facet::_S_create_c_locale): Throw runtime exception when
6052         unsupported language is specified.
6053         * testsuite/testsuite_hooks.h
6054         (run_test_wrapped_generic_locale_exception_catcher): New function.
6055         * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
6056         Suppress runtime exception thrown by generic implementation.
6057         (run_tests_wrapped_env): Likewise.
6058         (run_test_wrapped_generic_locale_exception_catcher): New function.
6059         * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
6060         * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
6061         * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
6062         * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
6063         * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
6064         * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
6065         * testsuite/22_locale/collate_byname/1.cc: New test wrap.
6066         * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
6067         * testsuite/22_locale/facet/2.cc: New test wrap.
6068         * testsuite/22_locale/locale/cons/4.cc: New test wrap.
6069         * testsuite/22_locale/locale/cons/5.cc: New test wrap.
6070         * testsuite/22_locale/locale/cons/7.cc: New test wrap.
6071         * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
6072         * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
6073         * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
6074         * testsuite/22_locale/messages_byname/1.cc: New test wrap.
6075         * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
6076         * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
6077         * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
6078         * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
6079         * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
6080         * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
6081         * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
6082         * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
6083         * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
6084         * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
6085         * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
6086         * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
6087         * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
6088         * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
6089         * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
6090         * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
6091         * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
6092         * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
6093         * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
6094         * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
6095         * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
6096         * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
6097         * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
6098         * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
6099         * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
6100         * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
6101         * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
6102         * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
6103         * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
6104         * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
6105         * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
6106         * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
6107         * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
6108         * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
6109         * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
6110         * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
6111         * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
6112         * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
6113         * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
6114         * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
6115         * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
6116         * testsuite/27_io/ios_members.cc: New test wrap.
6117         * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
6118         New test wrap.
6119         * testsuite/27_io/streambuf_members.cc: New test wrap.
6120         * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
6122 2003-03-08  Paolo Carlini <pcarlini@unitus.it>
6123             Petur Runolfsson  <peturr02@ru.is>
6125         PR libstdc++/9424
6126         * include/bits/streambuf.tcc (__copy_streambufs): Use
6127         sgetn-sputn only when sputn cannot fail, otherwise fall back
6128         to safe snextc-sputc.
6129         * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
6131 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
6133         * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
6134         locale cache for truename and falsename.
6136 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
6138         * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
6139         _M_word_size initialization.
6141 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
6143         * include/bits/fstream.tcc (_M_convert_to_external):
6144         Set __elen to zero if codecvt::out eventually fails.
6146 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
6148         PR libstdc++/9182
6149         * include/bits/fstream.tcc (_M_really_overflow): Check
6150         for _M_convert_to_external possible failures.
6151         * include/std/std_fstream.h (sync): Check _M_really_overflow
6152         return value and return -1 in case of failure.
6153         * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
6155 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
6157         PR libstdc++/9826
6158         * include/bits/istream.tcc (operator>>(_CharT*),
6159         operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
6160         * testsuite/27_io/stringstream.cc (test02): Add.
6162         * include/bits/istream.tcc (operator>>(_CharT*)):
6163         Assign a char_type to *__s.
6165 2003-03-07  Petur Runolfsson  <peturr02@ru.is>
6167         PR libstdc++/9817
6168         * include/bits/locale_facets.tcc
6169         (collate::do_compare, collate::do_transform):
6170         Handle nul characters in input.
6171         * testsuite/22_locale/collate/compare/char/3.cc:  New test.
6172         * testsuite/22_locale/collate/compare/wchar_t/3.cc:  New test.
6173         * testsuite/22_locale/collate/transform/char/3.cc:  New test.
6174         * testsuite/22_locale/collate/transform/wchar_t/3.cc:  New test.
6176 2003-03-07  Jerry Quinn  <jlquinn@optonline.net>
6178         * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
6179         sputn fails.
6180         * testsuite/27_io/ostream_fail.cc: New test.
6182 2003-03-07  Matthias Klose  <doko@debian.org>
6184         * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
6185         FLAGS_TO_PASS: Set to AM_MAKEFLAGS
6186         * Makefile.in: Regenerate.
6187         * libsupc++/Makefile.am: Express glibcppinstalldir in terms
6188         of gxx_include_dir.
6189         AM_MAKEFLAGS: Pass gxx_include_dir.
6190         * libsupc++/Makefile.in: Regenerate.
6192 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
6194         * testsuite/27_io/ios_base_storage.cc (test02): Set exception
6195         mask.  Test setting small-numbered pword and iword slots.  Test
6196         behavior at limit of numeric_limits::max.  Check that values are
6197         still good after failures.
6199 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
6201         * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
6202         (ios_base::ios_base): Set _M_word, _M_word_size.
6203         (ios_base::~ios_base): Remove redundant test.
6204         * testsuite/27_io/ios_base_storage.cc (test03): New.
6206 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
6208         * src/strstream.cc, include/bits/basic_string.tcc: Remove
6209         incorrect whitespace added in my previous change.
6211 2003-03-05  Carlo Wood  <carlo@alinoe.com>
6213         * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
6214         _S_initialized() in order to allow debugging libraries to detect
6215         when the std streams are initialized from an overloaded operator
6216         new.
6218 2003-03-05  Benjamin Kosnik  <bkoz@redhat.com>
6220         * libsupc++/demangle.h: Move to..
6221         * include/bits/demangle.h: ...here.
6222         * src/demangle.cc: Adjust include.
6223         * include/Makefile.am (bits_headers): Add.
6224         * include/Makefile.in: Regenerate.
6226 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
6228         * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
6230         * config/linker-map.gnu: Filter typeinfo and vtable info.
6232 2003-03-04  Jerry Quinn  <jlquinn@optonline.net>
6234         * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
6235         new failure.  Throw exception if badbit and exception mask when ix
6236         >= numeric_limits<int>::max().
6238 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
6240         * src/strstream.cc (strstreambuf::overflow): Make sure operands of
6241         min and max have the same type.
6242         * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
6244 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
6246         * include/Makefile.am (allstamps): Remove stamp-std-precompile.
6247         * include/Makefile.in: Regenerate.
6249 2003-03-03  Benjamin Kosnik  <bkoz@redhat.com>
6251         * testsuite/abi_check.cc (report_symbol_info): Add version info.
6253         * config/linker-map.gnu: Hide more stuff.
6254         * include/Makefile.am: Cleanups.
6255         * include/Makefile.in: Regenerate.
6257 2003-02-27  Jerry Quinn  <jlquinn@optonline.net>
6259         * config/locale/generic/messages_members.h (messages::messages):
6260         Remove name from unused parameter.
6262 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
6264         * src/Makefile.am (sources): Add demangle.cc.
6265         (demangle.o): Add.
6266         (demangle.lo): Add.
6267         * src/Makefile.in: Regenerate.
6268         * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
6269         * libsupc++/Makefile.in: Regenerate.
6271         * testsuite/testsuite_hooks.h
6272         (__gnu_cxx_test::verify_demangle): New.
6273         * testsuite/testsuite_hooks.cc: Define.
6275 2003-02-27  Carlo Wood  <carlo@alinoe.com>
6277         * src/demangle.cc: New.
6278         * libsupc++/demangle.h: New.
6280 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
6281             Carlo Wood  <carlo@alinoe.com>
6283         * testsuite/demangle/abi_examples/01.cc: New.
6284         * testsuite/demangle/abi_examples/02.cc: New.
6285         * testsuite/demangle/abi_examples/03.cc: New.
6286         * testsuite/demangle/abi_examples/04.cc: New.
6287         * testsuite/demangle/abi_examples/05.cc: New.
6288         * testsuite/demangle/abi_examples/06.cc: New.
6289         * testsuite/demangle/abi_examples/07.cc: New.
6290         * testsuite/demangle/abi_examples/08.cc: New.
6291         * testsuite/demangle/abi_examples/09.cc: New.
6292         * testsuite/demangle/abi_examples/10.cc: New.
6293         * testsuite/demangle/abi_examples/11.cc: New.
6294         * testsuite/demangle/abi_examples/12.cc: New.
6295         * testsuite/demangle/abi_examples/13.cc: New.
6296         * testsuite/demangle/abi_examples/14.cc: New.
6297         * testsuite/demangle/abi_examples/15.cc: New.
6298         * testsuite/demangle/abi_examples/16.cc: New.
6299         * testsuite/demangle/abi_examples/17.cc: New.
6300         * testsuite/demangle/abi_examples/18.cc: New.
6301         * testsuite/demangle/abi_examples/19.cc: New.
6302         * testsuite/demangle/abi_examples/20.cc: New.
6303         * testsuite/demangle/abi_examples/21.cc: New.
6304         * testsuite/demangle/abi_examples/22.cc: New.
6305         * testsuite/demangle/abi_examples/23.cc: New.
6306         * testsuite/demangle/abi_examples/24.cc: New.
6307         * testsuite/demangle/abi_examples/25.cc: New.
6308         * testsuite/demangle/abi_examples/26.cc: New.
6309         * testsuite/demangle/abi_text/01.cc: New.
6310         * testsuite/demangle/abi_text/02.cc: New.
6311         * testsuite/demangle/abi_text/03.cc: New.
6312         * testsuite/demangle/abi_text/04.cc: New.
6313         * testsuite/demangle/abi_text/05.cc: New.
6314         * testsuite/demangle/abi_text/06.cc: New.
6315         * testsuite/demangle/abi_text/07.cc: New.
6316         * testsuite/demangle/abi_text/08.cc: New.
6317         * testsuite/demangle/abi_text/09.cc: New.
6318         * testsuite/demangle/abi_text/10.cc: New.
6319         * testsuite/demangle/abi_text/11.cc: New.
6320         * testsuite/demangle/abi_text/12.cc: New.
6321         * testsuite/demangle/abi_text/13.cc: New.
6322         * testsuite/demangle/abi_text/14.cc: New.
6323         * testsuite/demangle/regression/3111-1.cc: New.
6324         * testsuite/demangle/regression/3111-2.cc: New.
6325         * testsuite/demangle/regression/7986-01.cc: New.
6326         * testsuite/demangle/regression/7986-02.cc: New.
6327         * testsuite/demangle/regression/7986-03.cc: New.
6328         * testsuite/demangle/regression/7986-04.cc: New.
6329         * testsuite/demangle/regression/7986-05.cc: New.
6330         * testsuite/demangle/regression/7986-06.cc: New.
6331         * testsuite/demangle/regression/7986-07.cc: New.
6332         * testsuite/demangle/regression/7986-08.cc: New.
6333         * testsuite/demangle/regression/7986-09.cc: New.
6334         * testsuite/demangle/regression/7986-10.cc: New.
6335         * testsuite/demangle/regression/7986-11.cc: New.
6336         * testsuite/demangle/regression/7986-12.cc: New.
6337         * testsuite/demangle/regression/7986.cc: New.
6338         * testsuite/demangle/regression/8897.cc: New.
6339         * testsuite/demangle/regression/cw-01.cc: New.
6340         * testsuite/demangle/regression/cw-02.cc: New.
6341         * testsuite/demangle/regression/cw-03.cc: New.
6342         * testsuite/demangle/regression/cw-04.cc: New.
6343         * testsuite/demangle/regression/cw-05.cc: New.
6344         * testsuite/demangle/regression/cw-06.cc: New.
6345         * testsuite/demangle/regression/cw-07.cc: New.
6346         * testsuite/demangle/regression/cw-08.cc: New.
6347         * testsuite/demangle/regression/cw-09.cc: New.
6348         * testsuite/demangle/regression/cw-10.cc: New.
6349         * testsuite/demangle/regression/cw-11.cc: New.
6350         * testsuite/demangle/regression/cw-12.cc: New.
6351         * testsuite/demangle/regression/cw-13.cc: New.
6352         * testsuite/demangle/regression/cw-14.cc: New.
6353         * testsuite/demangle/regression/old.cc: New.
6355 2003-02-25  Phil Edwards  <pme@gcc.gnu.org>
6357         * docs/doxygen/Intro.3:  Update with new (proper) names.
6358         * docs/doxygen/TODO:  Update.
6359         * docs/doxygen/run_doxygen:  More comments, fix up man pages.
6360         Fake entries for standard typedefs.
6361         * docs/doxygen/user.cfg.in:  Turn INLINE_INHERITED_MEMB back on.
6362         * docs/html/documentation.html:  Top-level man page is now called
6363         C++Intro.
6364         * include/std/std_limits.h:  Doxygenate.
6366 2003-02-25  Scott Snyder  <snyder@fnal.gov>
6368         PR libstdc++/9811
6369         * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
6370         Correct documentation.
6371         * include/bits/stl_multimap.h (lower_bound, upper_bound,
6372         equal_range): Likewise.
6374 2003-02-24  Paolo Carlini  <pcarlini@unitus.it>
6376         PR libstdc++/9825
6377         * src/fstream.cc
6378         (basic_filebuf<char/wchar_t>::_M_underflow_common): When
6379         __bump is true (uflow), always increment the read pointer
6380         (_M_in_cur) before returning successfully.
6381         * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
6383 2003-02-24  Paolo Carlini <pcarlini@unitus.it>
6384             Nathan Myers <ncm@cantrip.org>
6386         PR libstdc++/9404, PR libstdc++/9701 (partial)
6387         (aka pptr == epptr implies overflow)
6388         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
6389         Consistently, _M_out_end points to the end of the buffer just
6390         created.
6391         (overflow): Tweak to use _M_out_buf_size().
6392         (_M_convert_to_external): The role of the old _M_out_end is
6393         now played by _M_out_lim.
6394         (_M_really_overflow): Likewise.
6395         (seekoff): Likewise.
6396         (setbuf): _M_out_end points to the end of the external buffer.
6397         * include/bits/sstream.tcc (overflow): Rewrote, taking into
6398         account the resolution of DR 169 (TC).
6399         (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
6400         (seekpos): Use _M_string.capacity(); tweak.
6401         * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
6402         * include/std/std_fstream.h (sync): The role of the old
6403         _M_out_end is now played by _M_out_lim.
6404         (_M_set_indeterminate): Use _M_set_determinate.
6405         (_M_set_determinate): _M_out_end is now _M_out_lim.
6406         (_M_is_indeterminate): Likewise.
6407         * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
6408         (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
6409         which have the information readily available as _M_string.capacity();
6410         for ate and app modes, pass the string size to _M_really_sync.
6411         (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
6412         point to the end of the buffer (i.e., epptr) and to the string end,
6413         respectively.
6414         * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
6415         which points to the right limit of the used put area.
6416         (_M_out_cur_move): The role of the old _M_out_end is now played
6417         by _M_out_lim.
6418         (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
6419         _M_out_end  - _M_out_cur (i.e., pptr), _very_ close to the letter
6420         of the standard.
6421         (basic_streambuf()): Initialize _M_out_lim too.
6422         * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
6423         * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
6424         * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
6426 2003-02-24  Benjamin Kosnik  <bkoz@redhat.com>
6428         * testsuite/27_io/ios_base_storage.cc (main): Call
6429         set_memory_limits.
6431 2003-02-21  Jerry Quinn  <jlquinn@optonline.net>
6433         * include/bits/locale_facets.tcc (_M_convert_float): Replace
6434         numpunct facet accesses with data from __locale_cache.
6436 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
6438         * docs/html/faq/index.html (3.9):  New note, wchar_t on FreeBSD.
6439         * docs/html/faq/index.txt:  Regenerate.
6441 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
6443         * config/linker-map.gnu:  Also export locking symbols needed for the
6444         generic atomicity.h case.
6446 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
6448         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
6449         config.status.
6450         * configure: Rebuilt.
6452 2003-02-19  Paolo Carlini  <pcarlini@unitus.it>
6454         * include/bits/sstream.tcc (overflow): According to
6455         27.7.1.3, p5, actual output is performed by sputc(c).
6457 2003-02-19  Phil Edwards  <pme@gcc.gnu.org>
6459         PR libstdc++/9582
6460         * include/bits/stl_alloc.h:  Remove all traces of assert().
6462 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
6464         * include/std/std_sstream.h (str()): the size of the
6465         current string may be different from the initial one
6466         whenever _M_out_end > _M_out_beg.
6467         * testsuite/27_io/stringbuf_members.cc (test07): Add.
6469 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
6471         PR libstdc++/9582
6472         * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
6474 2003-02-17  Benjamin Kosnik  <bkoz@redhat.com>
6476         * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
6477         * testsuite/27_io/ios_members.cc (test03): New.
6479 2003-02-17  Jerry Quinn  <jlquinn@optonline.net>
6481         * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
6482         (basic_ios::_M_cache_facets): Move into above.
6483         * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
6484         cache.
6485         (basic_ios::imbue): Force locale cache to be built.
6486         (basic_ios::_M_init): Create and initialize locale cache.
6487         * include/bits/ios_base.h (__locale_cache_base): Declare.
6488         (ios_base::_M_locale_cache): New.
6489         (ios_base::_M_cache): Define.
6490         * include/bits/locale_facets.h: (__num_base): Fix comment.  Add
6491         _S_end.
6492         (__locale_cache_base,__locale_cache<_CharT>):  New classes.
6493         (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
6494         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
6495         cache literal string, grouping flag, thousands separator.
6496         (__locale_cache<_CharT>::__locale_cache): New.
6497         (__locale_cache<_CharT>::_M_init): New.
6498         * src/ios.cc: Clear _M_locale_cache in constructor.
6499         * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
6500         New.
6502 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
6504         * src/locale-inst.cc: Do not include <cassert>.
6505         * src/locale.cc: Likewise.
6507 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
6509         PR libstdc++/9580
6510         * include/std/std_fstream.h: Declare underflow and uflow
6511         specializations, change generic definitions to do nothing.
6512         * src/fstream.cc: Add underflow and uflow specializations.
6514 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
6516         PR libstdc++/9169
6517         * include/bits/fstream.tcc (_M_convert_to_external):
6518         Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
6519         * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
6521 2003-02-13  Benjamin Kosnik  <bkoz@redhat.com>
6523         * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
6524         * include/bits/basic_ios.tcc: Guard use of extern template.
6525         * include/std/std_iomanip.h: Same.
6526         * include/bits/streambuf.tcc: Same.
6527         * include/bits/stl_alloc.h: Same.
6528         * include/bits/locale_facets.tcc: Same.
6529         * include/bits/ostream.tcc: Same.
6530         * include/bits/istream.tcc: Same.
6531         * include/bits/fstream.tcc: Same.
6532         * include/bits/basic_string.tcc: Same.
6534 2003-02-13  Paolo Carlini  <pcarlini@unitus.it>
6536         * include/bits/ostream.tcc (sentry::sentry): Improve
6537         performance-wise the fix for libstdc++/9563.
6539 2003-02-12  Phil Edwards  <pme@gcc.gnu.org>
6541         * config/cpu/generic/atomicity.h (_Atomic_add_mutex):  Fix declaration.
6542         (_GLIBCPP_NEED_GENERIC_MUTEX):  Define for this file.
6543         (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once):  Declare
6544         when we don't have static mutex initialization.
6545         (__exchange_and_add):  Use _Atomic_add_mutex_once.
6546         * src/misc-inst.cc:  Definitions of all the above.
6548 2003-02-12  Paolo Carlini  <pcarlini@unitus.it>
6550         PR libstdc++/9563
6551         * include/bits/ostream.tcc (sentry::sentry): Check
6552         the state of the stream after the preparation.
6553         * testsuite/27_io/ostream_sentry.cc (test02): Add.
6555 2003-02-11  Benjamin Kosnik  <bkoz@redhat.com>
6557         * include/Makefile.am (stamp-std-precompile): Add rule.
6558         * include/Makefile.in: Regenerated.
6560 2003-02-11 Jerry Quinn  <jlquinn@optonline.net>
6561            Benjamin Kosnik  <benjamin@redhat.com>
6563         * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
6564         Add indexes into this array.
6565         (__num_base::_S_atoms): To _S_atoms_in.
6566         (num_put::_M_insert): Rename to _M_pad.
6567         (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
6568         (num_put::_M_widen_int): Rename to _M_group_int.
6569         (num_put::_M_widen_float): Rename to _M_group_float.
6570         * include/bits/locale_facets.tcc (__int_to_char): New inline
6571         function and adapter functions.
6572         (num_put::_M_group_int): Streamline.
6573         (num_put::_M_group_float): Streamline.
6574         (num_put::_M_convert_int): Remove unused parameter names. Choose
6575         large enough buffer for text.  Use __int_to_char instead of
6576         __convert_from_v.  Formatted text is now at the end of the buffer.
6577         (num_put::_M_convert_float): Preliminary fixups.
6578         * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
6579         (__int_to_char<unsigned long long>): Same.
6580         (__int_to_char<char, unsigned long>): New.
6581         (__int_to_char<char, unsigned long long>): New.
6582         (__int_to_char<wchar_t, unsigned long>): New.
6583         (__int_to_char<wchar_t, unsigned long long>): New.
6585 2003-02-11  Scott Snyder  <snyder@fnal.gov>
6587         PR libstdc++/9659
6588         * include/bits/fstream.tcc (seekoff): Avoid operator+
6589         for pos_type.
6591 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
6593         PR libstdc++/9320
6594         * include/ext/stdio_filebuf.h
6595         (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
6596         stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
6597         Change to take a __size parameter of type size_t, not
6598         of type (template parameter dependent) int_type.
6599         * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
6600         size vars to size_t.
6601         * testsuite/ext/stdio_filebuf.cc: Add.
6603 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
6604             Petur Runolfsson  <peturr02@ru.is>
6606         PR libstdc++/9318
6607         * include/bits/streambuf.tcc (__copy_streambufs):
6608         Don't conditionalize the copy to __testput.
6609         * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
6611 2002-02-11  DJ Delorie  <dj@redhat.com>
6613         * acinclude.m4: Check for native targets that can't link at
6614         this point in the build.
6615         * aclocal.m4: Regenerate.
6616         * configure: Regenerate.
6618 2003-02-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6620         * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
6621         Correct alignment.
6622         (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
6623         lock.
6625 2003-02-07  Paolo Carlini  <pcarlini@unitus.it>
6627         * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
6628         unsigned char platforms.
6630 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
6632         PR libstdc++/9562
6633         * include/std/std_istream.h
6634         (basic_istream::sentry::operator bool()): Make const.
6635         * include/std/std_ostream.h
6636         (basic_ostream::sentry::operator bool()): Likewise.
6637         * testsuite/27_io/istream_sentry.cc (test03): Add.
6638         * testsuite/27_io/ostream_sentry.cc: Add.
6640 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
6642         PR libstdc++/9548
6643         Implement resolution of DR 231 (Ready)
6644         * include/bits/locale_facets.h (__num_base::_S_format_float):
6645         Change declaration: return void, remove __prec parameter.
6646         * src/locale.cc (__num_base::_S_format_float): Implement
6647         resolution of DR 231.
6648         * include/bits/locale_facets.tcc (num_put::_M_convert_float):
6649         Tweak uses. Check for negative precision.
6650         * testsuite/22_locale/num_put/put/char/6.cc: Add
6651         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
6653 2003-02-06  Peter Soetens  <peter.soetens@mech.kuleuven.ac.be>
6655         * config/io/basic_file_libio.h: Fixups.
6656         * config/io/c_io_libio.h: Same.
6657         * libio/Makefile.am: Same.
6658         * libio/Makefile.in: Regenerated.
6660 2003-02-06  Benjamin Kosnik  <bkoz@redhat.com>
6662         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
6663         Explicitly use the "C" locale.
6664         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
6666 2003-02-06  Petur Runolfsson  <peturr02@ru.is>
6668         DR 75
6669         DR 305
6670         PR libstdc++/9028 (partial)
6671         PR libstdc++/9224
6672         PR libstdc++/9246
6673         PR libstdc++/9247
6675         * src/codecvt.cc
6676         (codecvt<wchar_t, char, mbstate_t>::do_encoding,
6677         codecvt<wchar_t, char, mbstate_t>::do_length,
6678         codecvt<wchar_t, char, mbstate_t>::do_max_length):
6679         Move...
6680         * config/locale/generic/codecvt_members.cc:  ...here.
6681         * config/locale/gnu/codecvt_members.cc:  ...and here.
6683         * config/locale/generic/codecvt_members.cc,
6684         * config/locale/gnu/codecvt_members.cc
6685         (codecvt<wchar_t, char, mbstate_t>::do_encoding
6686         codecvt<wchar_t, char, mbstate_t>::do_in,
6687         codecvt<wchar_t, char, mbstate_t>::do_length,
6688         codecvt<wchar_t, char, mbstate_t>::do_max_length,
6689         codecvt<wchar_t, char, mbstate_t>::do_out):
6690         New implementation that handles stateless encodings,
6691         including UTF-8.
6693         * config/locale/generic/codecvt_members.cc,
6694         * config/locale/gnu/codecvt_members.cc,
6695         * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
6696         * include/bits/codecvt.h,
6697         * src/codecvt.cc
6698         (codecvt::length, codecvt::do_length):
6699         Change type of first argument of length and do_length from
6700         'const state_type&' to 'state_type&' according to DR 75.
6702         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc:  Cleanup.
6703         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc:  New test.
6704         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc:  New test.
6705         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc:  New test.
6706         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
6707         Cleanup and check for correct return value from encoding
6708         for "C" locale.
6709         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc:  New test.
6710         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc:  New test.
6711         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc:  New test.
6712         * testsuite/22_locale/codecvt/in/wchar_t/1.cc:  Cleanup.
6713         * testsuite/22_locale/codecvt/in/wchar_t/2.cc:  New test.
6714         * testsuite/22_locale/codecvt/in/wchar_t/3.cc:  New test.
6715         * testsuite/22_locale/codecvt/in/wchar_t/4.cc:  New test.
6716         * testsuite/22_locale/codecvt/in/wchar_t/5.cc:  New test.
6717         * testsuite/22_locale/codecvt/in/wchar_t/6.cc:  New test.
6718         * testsuite/22_locale/codecvt/in/wchar_t/7.cc:  New test.
6719         * testsuite/22_locale/codecvt/in/wchar_t/8.cc:  New test.
6720         * testsuite/22_locale/codecvt/in/wchar_t/9.cc:  New test.
6721         * testsuite/22_locale/codecvt/length/char/1.cc:  Cleanup.
6722         * testsuite/22_locale/codecvt/length/char/2.cc:  New test.
6723         * testsuite/22_locale/codecvt/length/wchar_t/1.cc:  Cleanup.
6724         * testsuite/22_locale/codecvt/length/wchar_t/2.cc:  New test.
6725         * testsuite/22_locale/codecvt/length/wchar_t/3.cc:  New test.
6726         * testsuite/22_locale/codecvt/length/wchar_t/4.cc:  New test.
6727         * testsuite/22_locale/codecvt/length/wchar_t/5.cc:  New test.
6728         * testsuite/22_locale/codecvt/length/wchar_t/6.cc:  New test.
6729         * testsuite/22_locale/codecvt/length/wchar_t/7.cc:  New test.
6730         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc:  Cleanup.
6731         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc:  New test.
6732         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc:  New test.
6733         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc:  New test.
6734         * testsuite/22_locale/codecvt/out/wchar_t/1.cc:  Cleanup.
6735         * testsuite/22_locale/codecvt/out/wchar_t/2.cc:  New test.
6736         * testsuite/22_locale/codecvt/out/wchar_t/3.cc:  New test.
6737         * testsuite/22_locale/codecvt/out/wchar_t/4.cc:  New test.
6738         * testsuite/22_locale/codecvt/out/wchar_t/5.cc:  New test.
6739         * testsuite/22_locale/codecvt/out/wchar_t/6.cc:  New test.
6740         * testsuite/22_locale/codecvt/out/wchar_t/7.cc:  New test.
6741         * testsuite/22_locale/codecvt/unicode/1.cc:  New test.
6742         * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc:  Cleanup.
6743         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc:  New test.
6744         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc:  New test.
6745         * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc:  New test.
6747 2003-02-05  Benjamin Kosnik  <bkoz@redhat.com>
6749         * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
6750         (money_put::do_put): Same.
6752 2003-02-05  Jerry Quinn  <jlquinn@optonline.net>
6754         * include/bits/ios_base.h (ios_base): Document reserved storage.
6756         * include/bits/locale_facets.h: (struct __pad): Comment on
6757         implementation.
6758         (__verify_grouping): Same.
6759         (__add_grouping): Same.
6760         * include/bits/locale_facets.tcc (__verify_grouping): Move
6761         comments to declaration.
6762         (__add_grouping): Same.
6764         * include/bits/locale_facets.tcc:
6765         (__write<_CharT, _OutIter>): New function.
6766         (__write<_CharT>): New function specialization.
6767         (num_put::_M_insert): Remove explicit loop over iterator.  Use
6768         __write.
6769         (num_put::_M_widen_float): Remove __basefield.
6770         (num_put::_M_widen_int): Move __basefield to within grouping block.
6772         * include/bits/streambuf_iterator.h: Include <streambuf>.
6773         (ostreambuf_iterator::_M_put): Add.
6775 2003-02-05  Paolo Carlini  <pcarlini@unitus.it>
6777         * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
6779 2003-02-04  Nathan Myers  <ncm@cantrip.org>
6781         * testsuite/25_algorithms/min_max.cc (test02): Add.
6783 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
6785         PR libstdc++/9439, PR libstdc++/9425
6786         * config/io/basic_file_stdio.cc
6787         (__basic_file<char>::seekoff, seekpos): Return -1L if
6788         fseek fails.
6789         * include/bits/fstream.tcc (basic_filebuf::seekoff):
6790         Check _M_file.seekoff return value; always return
6791         pos_type(off_type(-1)) in case of failure.
6792         (basic_filebuf::pbackfail): Check this->seekoff return
6793         value and return traits_type::eof() in case of failure.
6794         * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
6796 2003-02-04  Jerry Quinn  <jlquinn@optonline.net>
6798         * include/std/std_ostream.h (ostream::_M_write): Declare.
6799         * ostream.tcc (ostream::_M_write): Define.
6800         (basic_ostream::write): Use it.
6801         (operator<<(basic_ostream, _CharT)): Ditto.
6802         (operator<<(basic_ostream, char)): Ditto.
6803         (operator<<(basic_ostream, _CharT*)): Ditto.
6804         (operator<<(basic_ostream, char*)): Ditto.
6805         (operator<<(basic_ostream, basic_string)): Ditto.
6807 2003-02-04  Benjamin Kosnik  <bkoz@redhat.com>
6809         * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
6811 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
6813         * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
6814         add HTML comment about updating links if numbering changes.
6816 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
6818         PR libstdc++/9538
6819         * include/bits/streambuf.tcc (sputbackc): Access
6820         this->gptr()[-1] only if _M_in_beg < _M_in_cur.
6821         * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
6823 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
6825         PR libstdc++/9507
6826         * include/bits/fstream.tcc (open): If the 'ate' repositioning
6827         operation fails, calls close _and_ returns a null pointer
6828         to indicate failure (27.8.1.3,4).
6829         * testsuite/27_io/filebuf_members.cc (test_06): Add.
6831 2003-02-04  Petur Runolfsson  <peturr02@ru.is>
6833         * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
6835 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
6837         * docs/html/27_io/howto.html: New section on stdio_filebuf.
6838         * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
6839         * docs/html/documentation.html: Regenerate.
6841 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
6843         * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
6844         * docs/html/17_intro/porting.html: Regenerate.
6846 2003-02-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
6847             Phil Edwards  <pme@gcc.gnu.org>
6849         * include/std/std_bitset.h:  Replace CHAR_BIT with __CHAR_BIT__, use
6850         numeric_limits for bits-per-word values.
6851         (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
6852         Use __builtin_popcountl instead.
6853         (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
6854         _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
6855         Use __builtin_ctzl instead.
6856         (_S_bit_count, _S_first_one):  Remove.
6857         * config/linker-map.gnu (GLIBCPP_3.4):  Remove std::_S_bit_count.
6858         * src/Makefile.am (sources):  Remove bitset.cc.
6859         * src/bitset.cc:  Delete file.
6860         * src/Makefile.in:  Regenerate.
6862 2003-02-03  Phil Edwards  <pme@gcc.gnu.org>
6864         PR libstdc++/9527, PR libstdc++/8713
6865         * docs/html/install.html:  Mention glibc version requirement.
6866         * docs/html/faq/index.html (3.8):  New note, glibc 2.2.5+ is needed
6867         with 3.2.1+ (formatting bugfixes).
6868         * docs/html/faq/index.txt:  Regenerate.
6870 2003-02-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6872         PR libstdc++/9234
6873         * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
6874         operator.
6876         * include/bits/valarray_before.h (__not_equal_to): Use != instead
6877         of ==.
6879         * testsuite/26_numerics/valarray_operators.cc: New test.
6881 2003-02-01  Phil Edwards  <pme@gcc.gnu.org>
6883         * docs/html/faq/index.html:  Correct link to libg++ information.
6884         * docs/html/faq/index.txt:  Regenerated.
6886 2003-02-01  Paolo Carlini  <pcarlini@unitus.it>
6887             Benjamin Kosnik  <bkoz@redhat.com>
6889         Const correctness issue:
6890         http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
6891         * include/bits/locale_classes.h
6892         (locale::_Impl::_M_facets): Change type to const facet**.
6893         (locale::_Impl::_M_install_facet): Change declaration to
6894         take const facet*.
6895         (locale::facet::_M_references): Make mutable.
6896         (locale::facet::_M_add_reference): Declare const.
6897         (locale::facet::_M_remove_reference): Likewise.
6898         * include/bits/locale_facets.tcc
6899         (use_facet(const locale&)): Tweak for const facet** _M_facets.
6900         (has_facet(const locale&)): Likewise.
6901         * src/locale.cc
6902         (locale::facet::_M_add_reference): Adjust definition.
6903         (locale::facet::_M_remove_reference): Likewise.
6904         * src/localename.cc
6905         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
6906         const facet** _M_facets.
6907         (locale::_Impl::_Impl(const char*, size_t)): Likewise.
6908         (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
6909         (locale::_Impl::_M_install_facet): Adjust definition to take
6910         const facet* and for const facet** _M_facets.
6911         * testsuite/22_locale/locale/cons/8.cc: Add.
6913 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
6915         * include/std/std_limits.h (numeric_limits<float>::has_infinity):
6916         Use __FLT_HAS_INIFINITY__ to initialize.
6917         (numeric_limits<float>::has_quiet_NaN): Likewise.
6918         (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
6919         to initialize.
6920         (numeric_limits<double>::has_quiet_NaN): Likewise.
6921         (numeric_limits<long double>::has_infinity): Use
6922         __LDBL_HAS_INIFINITY__ to initialize.
6923         (numeric_limits<long_double>::has_quiet_NaN): Likewise.
6925 2003-01-28  Nathan Sidwell  <nathan@codesourcery.com>
6927         PR c++/9433
6928         * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
6929         with bases which are very ambiguous.
6931 2003-01-28  Danny Smith  <dannysmith@users.sourceforge.net>
6933         * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
6934         @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
6935         * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
6936         * src/Makefile.in: Regenerate.
6937         * libsupc++/Makefile.in: Regenerate.
6939 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
6941         * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
6942         $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
6943         version_specific_libs is enabled.
6944         * aclocal.m4, configure: Rebuilt.
6946 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
6948         * include/bits/valarray_meta.h: Remove, split into ...
6949         * include/bits/valarray_before.h: ... this, and ...
6950         * include/bits/valarray_after.h: ... this.
6951         * include/std/std_valarray.h: Adjust.
6952         * include/Makefile.am (bits_headers): Adjust.
6953         * include/Makefile.in: Regenerate.
6955 2003-01-24  Andreas Schwab  <schwab@suse.de>
6957         * config/linker-map.gnu: Fix for size_t variance.
6959 2003-01-23  Petur Runolfsson  <peturr02@ru.is>
6961         PR libstdc++/9322
6962         * include/std/std_streambuf.h
6963         (basic_streambuf::basic_streambuf,
6964         basic_streambuf::~basic_streambuf,
6965         basic_streambuf::getloc, basic_streambuf::imbue):
6966         Remove _M_buf_locale_init
6967         * include/bits/fstream.tcc (basic_filebuf::imbue):  Likewise
6968         * testsuite/27_io/filebuf_virtuals.cc (test08):  Add.
6969         * testsuite/27_io/streambuf_members.cc (test08):  Add.
6970         * testsuite/27_io/stringbuf_virtuals.cc (test08):  Add.
6972 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
6974         Revert include ordering.
6975         * config/locale/generic/c_locale.h: Add include guards.
6976         * config/locale/gnu/c_locale.h: Same.
6977         * include/bits/locale_classes.h: Remove cctype include.
6978         * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
6979         * include/std/std_fstream.h: Remove streambuf include.
6980         * include/std/std_sstream.h: Remove streambuf include.
6982 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
6984         * configure.in (libtool_VERSION): To 6:0:0.
6985         * configure: Regenerated.
6986         * config/linker-map.gnu: Clean.
6988         * src/misc-inst.cc: Remove instantiations.
6990         * include/bits/stl_alloc.h (__malloc_alloc_template):
6991         To __malloc_alloc.
6992         (__default_alloc_template): To __pool_alloc.
6993         * src/stl-inst.cc: Same.
6994         * include/backward/alloc.h: Update.
6995         * testsuite/ext/allocators.cc: Update.
6997         * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
6998         really try to remove these if possible.
6999         * src/locale.cc (std): Same.
7001         * testsuite/abi_check.cc (check_version): Add.
7003 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
7004             Sysoltsev Slawa  <Vyatcheslav.Sysoltsev@intel.com>
7005             Mark Mitchell  <mark@codesourcery.com>
7007         PR libstdc++/9269
7008         * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
7009         (basic_filebuf::underflow): Declare.
7010         Move definitions.
7012 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
7014         * include/bits/locale_facets.h: Move non-facet classes requiring
7015         <string> to...
7016         * include/bits/locale_classes.h: New.
7017         * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
7018         * include/bits/Makefile.in: Regenerate.
7020         * include/bits/locale_facets.tcc (__convert_from_v): Move to...
7021         * config/locale/gnu/c_locale.h: ...here.
7022         * config/locale/generic/c_locale.h: Same.
7024         * include/bits/locale_facets.tcc: Move declarations to...
7025         * include/bits/locale_facets.h: ...here.
7026         * include/bits/basic_ios.h: Tweak includes accordingly.
7027         * include/std/std_sstream.h: Add streambuf include.
7028         * include/std/std_fstream.h: Ditto.
7029         * include/std/std_locale.h: Add locale_classes.h include.
7030         * include/std/std_iosfwd.h: Tweak.
7031         * src/concept-inst.cc: Add iterator include.
7033         * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
7034         bits as unexported in the future.
7036 2003-01-21  Benjamin Kosnik  <bkoz@redhat.com>
7038         Reshuffle 22_locale testsuite.
7039         * 22_locale/(codecvt.cc money_get.cc
7040         codecvt_members_char_char.cc money_get_members_char.cc
7041         codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
7042         codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
7043         codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
7044         moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
7045         collate_members_char.cc money_put.cc collate_members_wchar_t.cc
7046         money_put_members_char.cc ctor_copy_dtor.cc
7047         money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
7048         num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
7049         ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
7050         numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
7051         ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
7052         num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
7053         ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
7054         operators.cc ctype_widen_char.cc static_members.cc
7055         ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
7056         global_templates.cc time_get_members_wchar_t.cc, members.cc,
7057         time_put.cc, messages_byname.cc, time_put_members_char.cc,
7058         messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
7059         Split up into individual test cases...
7060         * 22_locale/codecvt/1.cc: New.
7061         * 22_locale/codecvt/2.cc: New.
7062         * 22_locale/codecvt/always_noconv/char/1.cc: New.
7063         * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
7064         * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
7065         * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
7066         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
7067         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
7068         * 22_locale/codecvt/encoding/char/1.cc: New.
7069         * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
7070         * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
7071         * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
7072         * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
7073         * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
7074         * 22_locale/codecvt/in/char/1.cc: New.
7075         * 22_locale/codecvt/in/char/wrapped_env.cc: New.
7076         * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
7077         * 22_locale/codecvt/in/wchar_t/1.cc: New.
7078         * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
7079         * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
7080         * 22_locale/codecvt/length/char/1.cc: New.
7081         * 22_locale/codecvt/length/char/wrapped_env.cc: New.
7082         * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
7083         * 22_locale/codecvt/length/wchar_t/1.cc: New.
7084         * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
7085         * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
7086         * 22_locale/codecvt/max_length/char/1.cc: New.
7087         * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
7088         * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
7089         * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
7090         * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
7091         * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
7092         * 22_locale/codecvt/out/char/1.cc: New.
7093         * 22_locale/codecvt/out/char/wrapped_env.cc: New.
7094         * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
7095         * 22_locale/codecvt/out/wchar_t/1.cc: New.
7096         * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
7097         * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
7098         * 22_locale/codecvt/unicode/char.cc: New.
7099         * 22_locale/codecvt/unicode/wchar_t.cc: New.
7100         * 22_locale/codecvt/unshift/char/1.cc: New.
7101         * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
7102         * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
7103         * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
7104         * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
7105         * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
7106         * 22_locale/collate/1.cc: New.
7107         * 22_locale/collate/2.cc: New.
7108         * 22_locale/collate/compare/char/1.cc: New.
7109         * 22_locale/collate/compare/char/2.cc: New.
7110         * 22_locale/collate/compare/char/wrapped_env.cc: New.
7111         * 22_locale/collate/compare/char/wrapped_locale.cc: New.
7112         * 22_locale/collate/compare/wchar_t/1.cc: New.
7113         * 22_locale/collate/compare/wchar_t/2.cc: New.
7114         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
7115         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
7116         * 22_locale/collate/hash/char/1.cc: New.
7117         * 22_locale/collate/hash/char/2.cc: New.
7118         * 22_locale/collate/hash/char/wrapped_env.cc: New.
7119         * 22_locale/collate/hash/char/wrapped_locale.cc: New.
7120         * 22_locale/collate/hash/wchar_t/1.cc: New.
7121         * 22_locale/collate/hash/wchar_t/2.cc: New.
7122         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
7123         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
7124         * 22_locale/collate/transform/char/2.cc: New.
7125         * 22_locale/collate/transform/char/wrapped_env.cc: New.
7126         * 22_locale/collate/transform/char/wrapped_locale.cc: New.
7127         * 22_locale/collate/transform/wchar_t/2.cc: New.
7128         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
7129         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
7130         * 22_locale/collate_byname/1.cc: New.
7131         * 22_locale/ctype/1.cc: New.
7132         * 22_locale/ctype/2.cc: New.
7133         * 22_locale/ctype/cons/char/1.cc: New.
7134         * 22_locale/ctype/cons/char/wrapped_env.cc: New.
7135         * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
7136         * 22_locale/ctype/is/char/1.cc: New.
7137         * 22_locale/ctype/is/char/2.cc: New.
7138         * 22_locale/ctype/is/char/3.cc: New.
7139         * 22_locale/ctype/is/char/wrapped_env.cc: New.
7140         * 22_locale/ctype/is/char/wrapped_locale.cc: New.
7141         * 22_locale/ctype/is/wchar_t/1.cc: New.
7142         * 22_locale/ctype/is/wchar_t/2.cc: New.
7143         * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
7144         * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
7145         * 22_locale/ctype/narrow/char/1.cc: New.
7146         * 22_locale/ctype/narrow/char/2.cc: New.
7147         * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
7148         * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
7149         * 22_locale/ctype/narrow/wchar_t/1.cc: New.
7150         * 22_locale/ctype/narrow/wchar_t/2.cc: New.
7151         * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
7152         * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
7153         * 22_locale/ctype/scan/char/1.cc: New.
7154         * 22_locale/ctype/scan/char/wrapped_env.cc: New.
7155         * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
7156         * 22_locale/ctype/scan/wchar_t/1.cc: New.
7157         * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
7158         * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
7159         * 22_locale/ctype/to/char/1.cc: New.
7160         * 22_locale/ctype/to/char/wrapped_env.cc: New.
7161         * 22_locale/ctype/to/char/wrapped_locale.cc: New.
7162         * 22_locale/ctype/to/wchar_t/1.cc: New.
7163         * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
7164         * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
7165         * 22_locale/ctype/widen/char/1.cc: New.
7166         * 22_locale/ctype/widen/char/wrapped_env.cc: New.
7167         * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
7168         * 22_locale/ctype/widen/wchar_t/1.cc: New.
7169         * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
7170         * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
7171         * 22_locale/facet/1.cc: New.
7172         * 22_locale/facet/2.cc: New.
7173         * 22_locale/global_templates/1.cc: New.
7174         * 22_locale/locale/cons/1.cc: New.
7175         * 22_locale/locale/cons/2.cc: New.
7176         * 22_locale/locale/cons/3.cc: New.
7177         * 22_locale/locale/cons/4.cc: New.
7178         * 22_locale/locale/cons/5.cc: New.
7179         * 22_locale/locale/cons/6.cc: New.
7180         * 22_locale/locale/cons/7.cc: New.
7181         * 22_locale/locale/global_locale_objects/1.cc: New.
7182         * 22_locale/locale/global_locale_objects/2.cc: New.
7183         * 22_locale/locale/global_locale_objects/3.cc: New.
7184         * 22_locale/locale/operations/1.cc: New.
7185         * 22_locale/locale/operations/2.cc: New.
7186         * 22_locale/messages/1.cc: New.
7187         * 22_locale/messages/2.cc: New.
7188         * 22_locale/messages/members/char/1.cc: New.
7189         * 22_locale/messages/members/char/2.cc: New.
7190         * 22_locale/messages/members/char/3.cc: New.
7191         * 22_locale/messages/members/char/wrapped_env.cc: New.
7192         * 22_locale/messages/members/char/wrapped_locale.cc: New.
7193         * 22_locale/messages_byname/1.cc: New.
7194         * 22_locale/money_get/1.cc: New.
7195         * 22_locale/money_get/2.cc: New.
7196         * 22_locale/money_get/get/char/1.cc: New.
7197         * 22_locale/money_get/get/char/2.cc: New.
7198         * 22_locale/money_get/get/char/3.cc: New.
7199         * 22_locale/money_get/get/char/4.cc: New.
7200         * 22_locale/money_get/get/char/5.cc: New.
7201         * 22_locale/money_get/get/char/6.cc: New.
7202         * 22_locale/money_get/get/char/7.cc: New.
7203         * 22_locale/money_get/get/char/8.cc: New.
7204         * 22_locale/money_get/get/char/wrapped_env.cc: New.
7205         * 22_locale/money_get/get/char/wrapped_locale.cc: New.
7206         * 22_locale/money_get/get/wchar_t/1.cc: New.
7207         * 22_locale/money_get/get/wchar_t/2.cc: New.
7208         * 22_locale/money_get/get/wchar_t/3.cc: New.
7209         * 22_locale/money_get/get/wchar_t/4.cc: New.
7210         * 22_locale/money_get/get/wchar_t/5.cc: New.
7211         * 22_locale/money_get/get/wchar_t/6.cc: New.
7212         * 22_locale/money_get/get/wchar_t/7.cc: New.
7213         * 22_locale/money_get/get/wchar_t/8.cc: New.
7214         * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
7215         * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
7216         * 22_locale/money_put/1.cc: New.
7217         * 22_locale/money_put/2.cc: New.
7218         * 22_locale/money_put/put/char/1.cc: New.
7219         * 22_locale/money_put/put/char/2.cc: New.
7220         * 22_locale/money_put/put/char/3.cc: New.
7221         * 22_locale/money_put/put/char/4.cc: New.
7222         * 22_locale/money_put/put/char/5.cc: New.
7223         * 22_locale/money_put/put/char/6.cc: New.
7224         * 22_locale/money_put/put/char/wrapped_env.cc: New.
7225         * 22_locale/money_put/put/char/wrapped_locale.cc: New.
7226         * 22_locale/money_put/put/wchar_t/1.cc: New.
7227         * 22_locale/money_put/put/wchar_t/2.cc: New.
7228         * 22_locale/money_put/put/wchar_t/3.cc: New.
7229         * 22_locale/money_put/put/wchar_t/4.cc: New.
7230         * 22_locale/money_put/put/wchar_t/5.cc: New.
7231         * 22_locale/money_put/put/wchar_t/6.cc: New.
7232         * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
7233         * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
7234         * 22_locale/moneypunct/1.cc: New.
7235         * 22_locale/moneypunct/2.cc: New.
7236         * 22_locale/moneypunct/3.cc: New.
7237         * 22_locale/moneypunct/members/char/1.cc: New.
7238         * 22_locale/moneypunct/members/char/2.cc: New.
7239         * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
7240         * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
7241         * 22_locale/moneypunct/members/wchar_t/1.cc: New.
7242         * 22_locale/moneypunct/members/wchar_t/2.cc: New.
7243         * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
7244         * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
7245         * 22_locale/moneypunct_byname/1.cc: New.
7246         * 22_locale/num_get/1.cc: New.
7247         * 22_locale/num_get/2.cc: New.
7248         * 22_locale/num_get/get/char/1.cc: New.
7249         * 22_locale/num_get/get/char/2.cc: New.
7250         * 22_locale/num_get/get/char/3.cc: New.
7251         * 22_locale/num_get/get/char/4.cc: New.
7252         * 22_locale/num_get/get/char/5.cc: New.
7253         * 22_locale/num_get/get/char/6.cc: New.
7254         * 22_locale/num_get/get/char/wrapped_env.cc: New.
7255         * 22_locale/num_get/get/char/wrapped_locale.cc: New.
7256         * 22_locale/num_get/get/wchar_t/1.cc: New.
7257         * 22_locale/num_get/get/wchar_t/2.cc: New.
7258         * 22_locale/num_get/get/wchar_t/3.cc: New.
7259         * 22_locale/num_get/get/wchar_t/4.cc: New.
7260         * 22_locale/num_get/get/wchar_t/5.cc: New.
7261         * 22_locale/num_get/get/wchar_t/6.cc: New.
7262         * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
7263         * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
7264         * 22_locale/num_put/1.cc: New.
7265         * 22_locale/num_put/2.cc: New.
7266         * 22_locale/num_put/put/char/1.cc: New.
7267         * 22_locale/num_put/put/char/2.cc: New.
7268         * 22_locale/num_put/put/char/3.cc: New.
7269         * 22_locale/num_put/put/char/4.cc: New.
7270         * 22_locale/num_put/put/char/5.cc: New.
7271         * 22_locale/num_put/put/char/wrapped_env.cc: New.
7272         * 22_locale/num_put/put/char/wrapped_locale.cc: New.
7273         * 22_locale/num_put/put/wchar_t/1.cc: New.
7274         * 22_locale/num_put/put/wchar_t/2.cc: New.
7275         * 22_locale/num_put/put/wchar_t/3.cc: New.
7276         * 22_locale/num_put/put/wchar_t/4.cc: New.
7277         * 22_locale/num_put/put/wchar_t/5.cc: New.
7278         * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
7279         * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
7280         * 22_locale/numpunct/1.cc: New.
7281         * 22_locale/numpunct/2.cc: New.
7282         * 22_locale/numpunct/members/char/1.cc: New.
7283         * 22_locale/numpunct/members/char/2.cc: New.
7284         * 22_locale/numpunct/members/char/wrapped_env.cc: New.
7285         * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
7286         * 22_locale/numpunct/members/wchar_t/1.cc: New.
7287         * 22_locale/numpunct/members/wchar_t/2.cc: New.
7288         * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
7289         * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
7290         * 22_locale/numpunct_byname/1.cc: New.
7291         * 22_locale/numpunct_byname/2.cc: New.
7292         * 22_locale/time_get/1.cc: New.
7293         * 22_locale/time_get/2.cc: New.
7294         * 22_locale/time_get/date_order/char/1.cc: New.
7295         * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
7296         * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
7297         * 22_locale/time_get/date_order/wchar_t/1.cc: New.
7298         * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
7299         * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
7300         * 22_locale/time_get/get_date/char/1.cc: New.
7301         * 22_locale/time_get/get_date/char/2.cc: New.
7302         * 22_locale/time_get/get_date/char/3.cc: New.
7303         * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
7304         * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
7305         * 22_locale/time_get/get_date/wchar_t/1.cc: New.
7306         * 22_locale/time_get/get_date/wchar_t/2.cc: New.
7307         * 22_locale/time_get/get_date/wchar_t/3.cc: New.
7308         * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
7309         * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
7310         * 22_locale/time_get/get_monthname/char/1.cc: New.
7311         * 22_locale/time_get/get_monthname/char/2.cc: New.
7312         * 22_locale/time_get/get_monthname/char/3.cc: New.
7313         * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
7314         * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
7315         * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
7316         * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
7317         * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
7318         * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
7319         * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
7320         * 22_locale/time_get/get_time/char/1.cc: New.
7321         * 22_locale/time_get/get_time/char/2.cc: New.
7322         * 22_locale/time_get/get_time/char/3.cc: New.
7323         * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
7324         * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
7325         * 22_locale/time_get/get_time/wchar_t/1.cc: New.
7326         * 22_locale/time_get/get_time/wchar_t/2.cc: New.
7327         * 22_locale/time_get/get_time/wchar_t/3.cc: New.
7328         * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
7329         * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
7330         * 22_locale/time_get/get_weekday/char/1.cc: New.
7331         * 22_locale/time_get/get_weekday/char/2.cc: New.
7332         * 22_locale/time_get/get_weekday/char/3.cc: New.
7333         * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
7334         * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
7335         * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
7336         * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
7337         * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
7338         * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
7339         * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
7340         * 22_locale/time_get/get_year/char/1.cc: New.
7341         * 22_locale/time_get/get_year/char/3.cc: New.
7342         * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
7343         * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
7344         * 22_locale/time_get/get_year/wchar_t/1.cc: New.
7345         * 22_locale/time_get/get_year/wchar_t/3.cc: New.
7346         * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
7347         * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
7348         * 22_locale/time_put/1.cc: New.
7349         * 22_locale/time_put/2.cc: New.
7350         * 22_locale/time_put/put/char/1.cc: New.
7351         * 22_locale/time_put/put/char/10.cc: New.
7352         * 22_locale/time_put/put/char/2.cc: New.
7353         * 22_locale/time_put/put/char/3.cc: New.
7354         * 22_locale/time_put/put/char/4.cc: New.
7355         * 22_locale/time_put/put/char/5.cc: New.
7356         * 22_locale/time_put/put/char/6.cc: New.
7357         * 22_locale/time_put/put/char/7.cc: New.
7358         * 22_locale/time_put/put/char/8.cc: New.
7359         * 22_locale/time_put/put/char/9.cc: New.
7360         * 22_locale/time_put/put/char/wrapped_env.cc: New.
7361         * 22_locale/time_put/put/char/wrapped_locale.cc: New.
7362         * 22_locale/time_put/put/wchar_t/1.cc: New.
7363         * 22_locale/time_put/put/wchar_t/10.cc: New.
7364         * 22_locale/time_put/put/wchar_t/2.cc: New.
7365         * 22_locale/time_put/put/wchar_t/3.cc: New.
7366         * 22_locale/time_put/put/wchar_t/4.cc: New.
7367         * 22_locale/time_put/put/wchar_t/5.cc: New.
7368         * 22_locale/time_put/put/wchar_t/6.cc: New.
7369         * 22_locale/time_put/put/wchar_t/7.cc: New.
7370         * 22_locale/time_put/put/wchar_t/8.cc: New.
7371         * 22_locale/time_put/put/wchar_t/9.cc: New.
7372         * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
7373         * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
7375 2003-01-16  Jeffrey D. Oldham  <oldham@codesourcery.com>
7377         * config/locale/generic/messages_members.h
7378         (messages_byname<_CharT>::messages_byname): Use this-> to refer to
7379         unqualified members of base clasess.
7381 2003-01-16  Mark Mitchell  <mark@codesourcery.com>
7382             Jeffrey Oldham <oldham@codesourcery.com>
7384         * config/locale/gnu/messages_members.h: Use this-> to refer to
7385         unqualified members of base clasess.
7386         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
7387         * include/bits/codecvt.h: Likewise.
7388         * include/bits/deque.tcc: Likewise.
7389         * include/bits/fstream.tcc: Likewise.
7390         * include/bits/istream.tcc: Likewise.
7391         * include/bits/list.tcc: Likewise.
7392         * include/bits/locale_facets.h: Likewise.
7393         * include/bits/ostream.tcc: Likewise.
7394         * include/bits/sstream.tcc: Likewise.
7395         * include/bits/stl_bvector.h: Likewise.
7396         * include/bits/stl_deque.h: Likewise.
7397         * include/bits/stl_list.h: Likewise.
7398         * include/bits/stl_tree.h: Likewise.
7399         * include/bits/stl_vector.h: Likewise.
7400         * include/bits/vector.tcc: Likewise.
7401         * include/ext/ropeimpl.h: Likewise.
7402         * include/ext/stdio_filebuf.h: Likewise.
7403         * include/ext/stl_rope.h: Likewise.
7404         * include/std/std_fstream.h: Likewise.
7405         * include/std/std_sstream.h: Likewise.
7407 2003-01-15  Phil Edwards  <pme@gcc.gnu.org>
7409         * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
7411 2003-01-15  Benjamin Kosnik  <bkoz@redhat.com>
7413         * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
7414         GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
7415         * aclocal.m4: Regenerate.
7416         * configure: Regenerate.
7417         * testsuite/Makefile.am (all-local): Add conditional rule to
7418         generate testsuite_wchar_t.
7419         * testsuite/Makefile.in: Regenerate.
7420         * testsuite/lib/libstdc++-v3-dg.exp
7421         (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
7422         testsuite_wchar_t is not present in the build directory.
7423         * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
7424         Remove setulimit bits.
7425         * testsuite/26_numerics/complex_value.cc: Set to noopts.
7426         * testsuite/Makefile.am (CLEANFILES): Add.
7427         * testsuite/Makefile.in: Regenerate.
7429 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7431         * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
7432         __hppa__.
7434 2003-01-14  Jeffrey D. Oldham  <oldham@codesourcery.com>
7436         Further conform g++'s __vmi_class_type_info to the C++ ABI
7437         specification.
7438         * libsupc++/cxxabi.h
7439         (__vmi_class_type_info::__flags_masks): Remove enumerations not
7440         required by the specification.
7442 2003-01-12  Benjamin Kosnik  <bkoz@redhat.com>
7444         Renames, namespaces for testsuite utilities.
7445         * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
7446         (gnu_allocator_tracker): Rename to allocation_tracker.
7447         (gnu_new_allocator): Rename to tracker_alloc.
7448         (__set_testsuite_memlimit): Rename to set_memory_limits.
7449         (gnu_assignment_operator): Rename to assignment_operator.
7450         (gnu_destructor): Rename to destructor.
7451         (gnu_copy_tracker): Rename to copy_tracker.
7452         (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
7453         (run_tests_wrapped_locale): New.
7454         (run_tests_wrapped_env): New.
7455         * testsuite/testsuite_hooks.cc: Same.
7456         (class locale_data): Add.
7457         (class enviornment_variable): Add.
7458         (class not_found): Add.
7459         * testsuite/testsuite_allocator.h: Same.
7460         * testsuite/testsuite_allocator.cc: Same.
7461         * testsuite/23_containers/deque_ctor.cc
7462         (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
7463         allocation_tracker.
7464         Change gnu_new_allocator to tracker_alloc.
7465         Change gnu_counting_struct to counter.
7466         Change gnu_copy_tracker to copy_tracker.
7467         Change gnu_copy_constructor to copy_constructor.
7468         Change gnu_assignment_operator to assignment_operator.
7469         Inject.
7470         * testsuite/23_containers/vector_capacity.cc: Same.
7471         * testsuite/23_containers/vector_ctor.cc (test01): Same.
7472         * testsuite/23_containers/list_modifiers.cc: Change
7473         gnu_copy_tracker to copy_tracker.
7474         * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
7475         __set_testsuite_memlimit to set_memory_limits.
7476         * testsuite/21_strings/insert.cc (main): Same.
7477         * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
7478         * testsuite/27_io/stringstream.cc: Same.
7479         * testsuite/27_io/stringbuf.cc: Same.
7480         * testsuite/27_io/streambuf.cc: Same.
7481         * testsuite/27_io/ostream.cc: Same.
7482         * testsuite/27_io/istream.cc: Same.
7483         * testsuite/27_io/fstream.cc: Same.
7484         * testsuite/lib/libstdc++-v3-dg.exp
7485         (libstdc++-v3-list-sourcefiles): Additionally handle files two and
7486         three levels deeper in glob patterns.
7488 2003-01-11  Phil Edwards  <pme@gcc.gnu.org>
7490         * docs/doxygen/tables.html:  Finished now.
7491         * docs/doxygen/user.cfg.in:  Update to latest version of Doxygen.
7492         * include/bits/basic_ios.h (basic_ios::rdbuf):  Add example to
7493         comments.
7495         * include/bits/deque.tcc, include/bits/stl_alloc.h,
7496         include/bits/stl_deque.h, include/bits/stl_list.h,
7497         include/bits/stl_vector.h:  Remove _GLIBCPP_DEPRECATED bits scheduled
7498         for 3.4 removal.
7500 2003-01-09  Benjamin Kosnik  <bkoz@redhat.com>
7502         * configure.in: Revert.
7503         * configure: Regenerate.
7505 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
7507         * include/Makefile.am (install-data-local): Prepend
7508         $(DESTDIR) to destination paths in all (un)installation
7509         commands.  Use ${c_base_builddir} and ${std_builddir}
7510         as destination subdirectories to achieve consistency with
7511         preceding mkinstalldirs commands.  No effect because both
7512         variables contain "." only.
7513         * include/Makefile.in: Regenerate.
7515 2003-01-08  Benjamin Kosnik  <bkoz@redhat.com>
7517         * include/Makefile.am (stamp-*): Add checks for existing stamps.
7518         * include/Makefile.in: Regenerate.
7520         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
7521         * aclocal.m4: Regenerate.
7523         * configure.in: Don't add new multi-do rules every time the
7524         directory is reconfigured.
7525         * configure: Regenerate.
7527 2003-01-08  Brad Spencer  <spencer@infointeractive.com>
7528             Nathan Myers  <ncm@cantrip.org>
7530         * src/Makefile.am (stamp-debug): Clean.
7531         * src/Makefile.in: Regenerate.
7533 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
7535         PR libstdc++/8707
7536         * Makefile.am (distclean-multi): Fix.
7537         * Makefile.in: Regenerate.
7539 2003-01-06  Benjamin Kosnik  <bkoz@redhat.com>
7541         * include/bits/locale_facets.h (messages): Move ctor, dtor
7542         definitions to..
7543         (__timepunct): Same.
7544         * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
7545         definitions. Conditionalize for GNU systems.
7546         * config/locale/generic/messages_members.h (messages): Add dtor, ctor
7547         definitions.
7548         * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
7549         definitions. Conditionalize for GNU systems.
7550         * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
7551         definitions.
7552         * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
7553         * src/locale.cc: Define.
7554         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
7555         Use it.
7556         * config/locale/gnu/time_members.h: Use it.
7557         * config/locale/gnu/messages_members.h: Use it.
7558         * config/linker-map.gnu: Add locale::facets details.
7559         * include/Makefile.am (target_headers_extra): Add time_members.h.
7560         * include/Makefile.in: Regenerate.
7561         * acinclude.m4: Export CTIME_H.
7562         * aclocal.m4: Regenerate.
7563         * configure: Regnerate.
7565 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
7567         * src/codecvt.cc
7568         (codecvt<char, char, mbstate_t>::do_in, do_out):
7569         Tweak parameters to avoid unused parameter warnings.
7571 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
7573         PR libstdc++/9151
7574         * include/bits/locale_facets.cc (num_put::_M_convert_float):
7575         Limit __prec to digits10 + 2, not digits10 + 1, taking into
7576         account the possibility of %{g,G} conversion specifiers
7577         inside _S_format_float.
7578         * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
7580 2003-01-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7582         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
7583         libstdc++-v3-list-sourcefiles): Additionally handle files one
7584         level deeper in glob patterns.
7586         * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
7587         * testsuite/27_io/istream_extractor_arith/01.cc,
7588         testsuite/27_io/istream_extractor_arith/02.cc,
7589         testsuite/27_io/istream_extractor_arith/03.cc,
7590         testsuite/27_io/istream_extractor_arith/06.cc,
7591         testsuite/27_io/istream_extractor_arith/07.cc,
7592         testsuite/27_io/istream_extractor_arith/08.cc,
7593         testsuite/27_io/istream_extractor_arith/09.cc,
7594         testsuite/27_io/istream_extractor_arith/10.cc,
7595         testsuite/27_io/istream_extractor_arith/11.cc,
7596         testsuite/27_io/istream_extractor_arith/12.cc,
7597         testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
7598         * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
7599         sparc*-*-solaris2*.
7601 2003-01-05  Paolo Carlini <pcarlini@unitus.it>
7603         PR libstdc++/9168
7604         * src/codecvt.cc
7605         (codecvt<char, char, mbstate_t>::do_in, do_out):
7606         Implement the resolution of DR19 (TC).
7607         * testsuite/22_locale/codecvt_members_char_char.cc
7608         (test01): Tweak.
7610 2003-01-02  Jason Merrill  <jason@redhat.com>
7612         * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
7613         *__mem is also an output.
7614         * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.