OSDN Git Service

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