OSDN Git Service

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