OSDN Git Service

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