OSDN Git Service

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