OSDN Git Service

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