OSDN Git Service

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