2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob72cbfbba94547ab3f17c81158485f39d7bf21396
1 2003-12-24  Andrew Pinski  <pinskia@physics.uc.edu>
3         * config/cpu/i386/atomicity.h (__exchange_and_add): Fix output 
4         constraint.
6         PR libstdc++/13480
7         * config/cpu/i386/atomicity.h: Split up read-write memory operand.
9 2003-12-23  Benjamin Kosnik  <bkoz@redhat.com>
11         * include/ext/new_allocator.h (new_allocator): Proper allocator class.
12         (__new_alloc): Delete.
13         * include/ext/malloc_allocator.h (malloc_allocator): Same.
14         (__malloc_alloc): Delete.
15         * include/ext/mt_allocator.h: Same, but weakly.
16         * include/ext/debug_allocator.h: Convert to the new style.
17         * include/ext/pool_allocator.h: Use global new and delete directly.
18         * include/backward/alloc.h: Don't inject malloc_allocator, or
19         debug_allocator.        
20         * testsuite/ext/allocators.cc: Minimal fixups for usage of new
21         classes.  Comment out tests with __pool_alloc for now.
22         * testsuite/performance/allocator.cc: Same.
24 2003-12-22  Matt Austern  <austern@apple.com>
26         * include/bits/stl_bvector.h (_Bvector_alloc_base): Eliminate.
27         (_Bvector_base): Inherit directly from word allocator.
28         * include/bits/stl_tree.h (_Rb_tree_alloc_base): Eliminate.
29         (_Rb_tree_base): Eliminate.
30         (_Rb_tree): Inherit directly from node allocator.
31         * include/ext/slist (_Alist_alloc_base): Eliminate.
32         (_Slist_base): Inherit direcly from node allocator.
33         
34 2003-12-22  Benjamin Kosnik  <bkoz@redhat.com>
36         * testsuite/18_support/numeric_limits.cc: Add _GLIBCXX_ASSERT to
37         dg-options in testcases that use VERIFY.        
38         * testsuite/23_containers/vector/invalidation/1.cc: Same.
39         * testsuite/23_containers/vector/invalidation/2.cc: Same.
40         * testsuite/23_containers/vector/invalidation/3.cc: Same.
41         * testsuite/23_containers/vector/invalidation/4.cc: Same.
42         * testsuite/23_containers/vector/resize/1.cc: Same.
43         * testsuite/26_numerics/complex_value.cc: Same.
44         * testsuite/27_io/ios_base/storage/1.cc: Same.
45         * testsuite/27_io/ios_base/storage/2.cc: Same.
46         * testsuite/27_io/ios_base/storage/3.cc: Same.
47         * testsuite/27_io/manipulators/standard/char/2.cc: Same.
48         * testsuite/backward/11460.cc: Same.
49         * testsuite/backward/strstream_members.cc: Same.
51         * include/ext/hash_set (class hash_multiset): Fix typo.
53 2003-12-22  Benjamin Kosnik  <bkoz@redhat.com>  
55         * testsuite/27_io/objects/char/5.cc: Don't use stdc++.h.gch.
56         * testsuite/27_io/objects/wchar_t/5.cc: Same.
57         * docs/html/test.html: Add docs for constructing test files that
58         don't use stdc++.h.gch.
59         * scripts/testsuite_flags.in (PCHFLAGS): Move to --cxxpchflags. 
60         * testsuite/libstdc++-dg/normal.exp: Compute DEFAULT_CXXFLAGS
61         differently.
63         * include/bits/ios_base.h (ios_base::Init::_S_initialized): Remove.
64         * src/ios_init.cc: Same.
65         * config/linker-map.gnu: Same.
66         * testsuite/27_io/ios_base/cons/copy_neg.cc: Adjust line numbers.
67         * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
68                 
69 2003-12-22  Andrew Pinski  <pinskia@physics.uc.edu>
71         PR libstdc++/13462
72         * include/bits/stl_multiset.h (__gnu_norm::multiset): Define pointer
73         as allocator's pointer, likewise for reference, const_pointer, and
74         const_reference.
75         * include/bits/stl_set.h (__gnu_norm::set): Likewise.
76         * include/ext/hash_set (__gnu_ext::hash_set): Likewise.
77         (__gnu_ext::hash_multiset): Likewise.
79 2003-12-22  Paolo Carlini  <pcarlini@suse.de>
81         * include/bits/locale_facets.tcc (num_get::_M_extract_int,
82         num_get::_M_extract_float): According to 22.2.2.1.2, p8-9,
83         first look for decimal_point and thousands_sep, when parsing
84         sign, leading zeros (and 0, Ox, 0X for integer types) too.
85         * testsuite/22_locale/num_get/get/char/12.cc: New.
86         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
88         * testsuite/22_locale/num_get/get/char/11.cc: Add a comment.
89         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
90         
91 2003-12-20  Jason Merrill  <jason@redhat.com>
93         * config/cpu/powerpc/atomicity.h: Fix oversight in previous
94         change.
96 2003-12-20  Jerry Quinn  <jlquinn@optonline.net>
98         * docs/doxygen/TODO: Update.
99         * include/bits/locale_classes.h (locale, facet, id): Document.
100         * include/bits/locale_facets.tcc (has_facet, use_facet): Document.
102 2003-12-19  Jason Merrill  <jason@redhat.com>
104         * config/cpu/cris/atomicity.h: Remove memory clobbers.
105         * config/cpu/mips/atomicity.h: Likewise.
106         * config/cpu/i486/atomicity.h: Remove memory clobbers.
107         Split up read-write memory operand.
108         * config/cpu/m68k/atomicity.h: Likewise.
109         * config/cpu/powerpc/atomicity.h: Make memory I/O explicit.
110         * config/cpu/s390/atomicity.h: Likewise.
111         * config/cpu/sparc/atomicity.h: Likewise.
113 2003-12-20  Carlo Wood  <carlo@alinoe.com>
115         * bits/demangle.h
116         namespace __gnu_cxx::demangler
117         (session<Allocator>::decode_encoding): Put the postfix
118         of the return type of (member) functions after the function
119         instead of after the return type.
121 2003-12-19  Jerry Quinn  <jlquinn@optonline.net>
123         * include/bits/locale_facet.h
124         (__ctype_abstract_base,ctype<charT>,ctype<char>,ctype<wchar_t>):
125         Document.
127 2003-12-19  Paolo Carlini  <pcarlini@suse.de>
129         * include/bits/locale_facets.tcc (num_get::_M_extract_int,
130         num_get::_M_extract_float): According to 22.2.2.1.2, p8-9,
131         first look for decimal_point and thousands_sep.
132         * testsuite/22_locale/num_get/get/char/11.cc: New.
133         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
135 2003-12-19  Paolo Carlini  <pcarlini@suse.de>
137         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
138         When __found_sci becomes true stop eating thousands separators
139         and the decimal radix separator.
140         * testsuite/22_locale/num_get/get/char/9.cc: New.
141         * testsuite/22_locale/num_get/get/wchar_t/9.cc: Likewise.       
142         
143         * config/locale/generic/c_locale.cc (__convert_to_v): Don't
144         check that *__sanity == '\0': parsing may stop earlier, still
145         be successful.
146         * config/locale/gnu/c_locale.cc: Likewise.
147         * testsuite/22_locale/num_get/get/char/10.cc: New.
148         * testsuite/22_locale/num_get/get/wchar_t/10.cc: Likewise.
149         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
150         Tweak in one place accordingly.
152         * testsuite/22_locale/money_get/get/char/1.cc: Fix typo.
153         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
155 2003-12-18  Benjamin Kosnik  <bkoz@redhat.com>
157         * include/bits/stl_list.h: Formatting tweaks.
158         * include/bits/list.tcc: Same.
160 2003-12-18  Matt Austern  <austern@apple.com>
162         * include/bits/demangle.h: Fix allocator type correctness,
163         i.e. make sure that when we instantiate a container with a value
164         type and an allocator, the allocator's value type matches the
165         container's.
166         * include/bits/stl_deque.h (_Deque_alloc_base): Eliminate.
167         (_Deque_base): inherit directly from the deque's allocator.  Use
168         rebinding instead of _Alloc_traits.  Pick up data members from 
169         _Deque_alloc_base.
170         * include/bits/stl_list.h (_List_alloc_base): Eliminate.
171         (_List_base): Inherit directly from the list's allocator.  Use
172         rebinding instead of _Alloc_traits.  Pick up data members from 
173         _List_alloc_base.
174         * include/bits/stl_vector.h (_Vector_alloc_base): Eliminate
175         (_Vector_base): Inherit directly from the vector's allocator.  Use
176         rebinding instead of _Alloc_traits.  Pick up data members from 
177         _Vector_alloc_base.
178         * include/ext/hashtable.h: Fix allocator type correctness (the
179         vector of buckets must be passed an allocator for objects of
180         type _Node*).  Use rebinding instead of _Alloc_traits.
181         
182 2003-12-17  Paolo Carlini  <pcarlini@suse.de>
184         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
185         Use narrow to get from __format[__i] a char __c representing a
186         formatting code, don't use it to compare *__beg to __format[__i].
187         * testsuite/22_locale/time_get/get_date/wchar_t/4.cc: New.
189 2003-12-17  Paolo Carlini  <pcarlini@suse.de>
191         * testsuite/performance/container_benchmark.cc: Tweak outputs.
193         * testsuite/performance/list_create_fill_sort.cc: Shrink a
194         bit some outputs.
196         * testsuite/testsuite_performance.h: Widen a few output fields.
198         * testsuite/performance/ifstream_extract_int.cc: New.
200 2003-12-16  Phil Edwards  <phil@codesourcery.com>
202         * configure.ac (AM_INIT_AUTOMAKE):  Don't warn about GNU Make.
203         * configure:  Regenerated.
204         * Makefile.am (check-%):  New catch-all forwarding target.
205         * Makefile.in:  Regenerated.
207 2003-12-16  Paolo Carlini  <pcarlini@suse.de>
209         * testsuite/performance/container_benchmark.cc: New, a
210         benchmark developed by Bjarne Stroustrup and Alexander
211         Stepanov and made available with no restrictions.
213         * testsuite/testsuite_performance.h (report_header): New,
214         useful to produce header lines in the reports.
216 2003-12-16  Jonathan Wakely  <redi@gcc.gnu.org>
218         * docs/html/21_strings/howto.html: Document shrink-to-fit reserve().
219         * docs/html/faq/index.html: Reducing vector's capacity() to size().
220         * docs/html/documentation.html, docs/html/faq/index.txt: Regenerate.
222 2003-12-16  Paolo Carlini  <pcarlini@suse.de>
224         * testsuite/performance/narrow_widen_char.cc: Tweak the
225         number of iterations for each test.
226         * testsuite/performance/narrow_widen_wchar_t.cc: Add a
227         missing clear_counters.
229 2003-12-16  Paolo Carlini  <pcarlini@suse.de>
231         PR libstdc++/11723
232         * include/bits/locale_facets.h: Add _M_bit and _M_wmask,
233         used to speed up the computation of ctype::do_is.
234         * config/locale/generic/ctype_members.cc
235         (_M_initialize_ctype): Fill _M_bit and _M_wmask.
236         (ctype::do_is): Use _M_bit and _M_wmask.
237         * config/locale/gnu/ctype_members.cc: Likewise.
238         * testsuite/performance/is_wchar_t.cc: New.
240         * testsuite/performance/narrow_widen_wchar_t.cc: Tweak
241         string literal (incorrect citation ;)
243         * include/bits/locale_facets.h: Minor tweaks, const
244         correctness, unsigned -> size_t.
246 2003-12-16  Jerry Quinn  <jlquinn@optonline.net>
248         * include/bits/locale_facets.h (widen, narrow):  Uncomment the
249         intended code.
251 2003-12-15  Jerry Quinn  <jlquinn@optonline.net>
253         * config/os/aix/ctype_noninline.h,
254         config/os/bsd/freebsd/ctype_noninline.h,
255         config/os/bsd/netbsd/ctype_noninline.h,
256         config/os/djgpp/ctype_noninline.h,
257         config/os/generic/ctype_noninline.h,
258         config/os/gnu-linux/ctype_noninline.h,
259         config/os/hpux/ctype_noninline.h,
260         config/os/irix/irix5.2/ctype_noninline.h,
261         config/os/irix/irix6.5/ctype_noninline.h,
262         config/os/mingw32/ctype_noninline.h,
263         config/os/newlib/ctype_noninline.h,
264         config/os/qnx/qnx6.1/ctype_noninline.h,
265         config/os/solaris/solaris2.5/ctype_noninline.h,
266         config/os/solaris/solaris2.6/ctype_noninline.h,
267         config/os/solaris/solaris2.7/ctype_noninline.h,
268         config/os/vxworks/ctype_noninline.h,
269         config/os/windiss/ctype_noninline.h (ctype):  Initialize
270         _M_narrow, _M_widen.
271         * include/bits/locale_facets.h (_M_widen, _M_widen_ok,
272         _M_narrow, _M_narrow_ok): New.
273         (widen, narrow): Use tables to bypass virtual functions.
274         (_M_widen_init, _M_narrow_init): New.
276 2003-12-15  Carlo Wood  <carlo@alinoe.com>
278         * include/bits/ios_base.h (Init::_S_initialized): Change into
279         declaration.
280         * src/ios_init.cc (Init::_S_initialized): Add definition.
282 2003-12-15  Benjamin Kosnik  <bkoz@redhat.com>
284         PR libstdc++/12658
285         * include/Makefile.am (bits_headers): Add concurrence.h.
286         * include/Makefile.in: Regenerated.
287         * include/bits/concurrence.h: New.
288         * src/locale_init.cc: Use it.
289         (locale::locale): Lock critical regions.
290         (locale::global): Same.
291         
292 2003-12-15  Benjamin Kosnik  <bkoz@redhat.com>
294         * include/bits/basic_string.h: Change _*_references to _*_refcount.
295         * include/bits/locale_classes.h: Same.
296         * src/locale.cc: Same.
297         * src/locale_name.cc: Same.     
298         * src/locale_init.cc: Same.     
299         
300 2003-12-15  Benjamin Kosnik  <bkoz@redhat.com>
302         PR libstdc++/12855      
303         * include/bits/ios_base.h (Init::_S_ios_base_init): Change to
304         _S_refcount, make atomic.
305         * src/ios.cc: Adjust definition.        
306         * src/ios_init.cc (ios_base::Init::Init): Use __exchange_and_add,
307         and __atomic_add.
308         (ios_base::Init::~Init): Same.
309         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
310         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
311         
312 2003-12-15  Paolo Carlini  <pcarlini@suse.de>
314         * include/bits/locale_facets.tcc (num_get::do_get(bool&)):
315         Fail as soon as the begins of both truename and falsename
316         stop to match; always leave __beg one position beyond the
317         last char successfully matched.
318         * testsuite/22_locale/num_get/get/char/8.cc: New.
319         * testsuite/22_locale/num_get/get/wchar_t/8.cc: Likewise.
321 2003-12-15  Paolo Carlini  <pcarlini@suse.de>
323         * include/bits/locale_facets.h (_M_widen): Reserve space
324         for all the possible widened chars.     
325         * config/locale/generic/ctype_members.cc (_M_initialize_ctype):
326         Compute at construction time all the possible widened chars.
327         (do_widen): Tweak, simplify.
328         * config/locale/gnu/ctype_members.cc: Likewise.
329         * testsuite/performance/narrow_widen_wchar_t.cc: Add tests
330         for the array versions.
332 2003-12-12  Paolo Carlini  <pcarlini@suse.de>
333             Benjamin Kosnik  <bkoz@redhat.com>
335         PR libstdc++/13341
336         * include/bits/locale_facets.h (ctype<wchar_t>): Declare
337         _M_initialize_ctype() and _M_narrow_ok, _M_narrow and _M_widen.
338         * src/ctype.cc (ctype<wchar_t>::ctype(size_t),
339         ctype<wchar_t>::ctype(__c_locale, size_t)): Use
340         _M_initialize_ctype to fill _M_narrow and _M_widen.
341         (ctype_byname<wchar_t>::ctype_byname(const char*, size_t)):
342         Likewise.
343         * config/locale/generic/ctype_members.cc (do_narrow, do_widen)
344         Use _M_narrow and _M_widen when possible, instead of calling
345         wctob and btowc, respectively.
346         (_M_initialize_ctype): Define, it fills at construction time
347         _M_narrow and _M_widen.
348         * config/locale/gnu/ctype_members.cc: Likewise.
349         * testsuite/performance/narrow_widen_wchar_t.cc: New.
351 2003-12-12  Jonathan Wakely  <redi@gcc.gnu.org>
353         * docs/html/faq/index.txt: Regenerate after adding <link> tags.
355 2003-12-11  Neil Ferguson  <nferguso@eso.org>
356             Paolo Carlini  <pcarlini@suse.de>
358         * include/bits/basic_string.tcc (reserve): Allow shrink-to-fit.
359         * testsuite/21_strings/basic_string/capacity/1.cc: Tweak.
360         * testsuite/21_strings/basic_string/capacity/char/1.cc: Ditto.
361         * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Ditto.
363 2003-12-10  Benjamin Kosnik  <bkoz@redhat.com>
365         PR libstdc++/6243
366         * testsuite/lib/libstdc++.exp (v3-init): Add
367         original_ld_library_path, calculate ld_library path, set
368         LD_LIBRARY_PATH to both. Based on libjava.exp.
369         
370 2003-12-10  Benjamin Kosnik  <bkoz@redhat.com>
371             Alexandre Oliva  <aoliva@redhat.com>
372         
373         PR libstdc++/11612
374         * testsuite/Makefile.am (GLIBCXX_DIR): New.
375         (GLIBGCC_DIR): New.
376         (CXXLINK): Use both with -R so libtool links the correct libs.
378 2003-12-10  Paolo Carlini  <pcarlini@suse.de>
380         PR libstdc++/13217
381         * include/bits/fstream.tcc (underflow): Deal gracefully with
382         read errors: throw ios_base::failure.
384 2003-12-10  Benjamin Kosnik  <bkoz@redhat.com>
386         PR libstdc++/10063
387         * config/io/basic_file_stdio.cc (__basic_file::sys_open): Sync.
388         * testsuite/ext/stdio_filebuf/char/10063-1.cc: New.
389         * testsuite/ext/stdio_filebuf/char/10063-2.cc: New.
390         
391 2003-12-10  Paolo Carlini  <pcarlini@suse.de>
393         * include/bits/locale_facets.tcc (num_put::do_put(void*)):
394         Remove the try/catch, not necessary.
396 2003-12-10  Paolo Carlini  <pcarlini@suse.de>
398         * testsuite/22_locale/locale/cons/12438.cc: Tweak memory
399         limit and iterations to avoid spurious failures on some
400         64 bit machines.
402 2003-12-09  Benjamin Kosnik  <bkoz@redhat.com>
403         
404         * config/linker-map.gnu: Remove private ios_base members from
405         export list.
407         * config/cpu/alpha/atomicity.h: Consistently format.
408         * config/cpu/cris/atomicity.h: Same.
409         * config/cpu/generic/atomicity.h: Same.
410         * config/cpu/hppa/atomicity.h: Same.
411         * config/cpu/i386/atomicity.h: Same.
412         * config/cpu/i486/atomicity.h: Same.
413         * config/cpu/ia64/atomicity.h: Same.
414         * config/cpu/m68k/atomicity.h: Same.
415         * config/cpu/mips/atomicity.h: Same.
416         * config/cpu/powerpc/atomicity.h: Same.
417         * config/cpu/s390/atomicity.h: Same.
418         * config/cpu/sparc/atomicity.h: Same.
419         
420 2003-12-09  Benjamin Kosnik  <bkoz@redhat.com>
422         PR libstdc++/13296
423         * acinclude.m4 (GLIBCXX_ENABLE_LIBUNWIND_EXCEPTIONS): Remove.
424         * aclocal.m4: Regenerate.
425         * configure.ac: Remove call to GLIBCXX_ENABLE_LIBUNWIND_EXCEPTIONS.
426         * conigure: Regenerate.
427         * src/Makefile.am (libstdc___la_LDFLAGS): Remove LIBUNWIND_FLAGS.
428         * src/Makefile.in: Regenerate.
429         * docs/html/17_intro/configury.html: Modify.
430         
431 2003-12-09  Paolo Carlini  <pcaelini@suse.de>
432         
433         * include/bits/demangle.h (struct implementation_details):
434         Keep in comments the names of the unused parameters.
436 2003-12-09  Paolo Carlini  <pcaelini@suse.de>
438         * include/bits/demangle.h (struct implementation_details):
439         Fix unused parameters warning.
441 2003-12-09  Paolo Carlini  <pcarlini@suse.de>
443         * include/bits/locale_facets.tcc (num_get::_M_extract_int):
444         Slightly streamline the code dealing with overflows and the
445         parsing of the sign.
447 2003-12-09  Bernardo Innocenti  <bernie@develer.com>
449         * include/ext/algorithm, include/ext/debug_allocator.h,
450         include/ext/enc_filebuf.h, include/ext/functional,
451         include/ext/hash_fun.h, include/ext/hash_map, include/ext/hash_set,
452         include/ext/hashtable.h, include/ext/iterator,
453         include/ext/malloc_allocator.h, include/ext/memory,
454         include/ext/mt_allocator.h, include/ext/numeric,
455         include/ext/pod_char_traits.h, include/ext/pool_allocator.h,
456         include/ext/rb_tree, include/ext/rope, include/ext/ropeimpl.h,
457         include/ext/slist, include/ext/stdio_filebuf.h,
458         include/ext/stdio_sync_filebuf.h: Remove trailing whitespace.
460 2003-12-09  Bernardo Innocenti  <bernie@develer.com>
462         * include/debug/bitset, include/debug/debug.h, include/debug/deque,
463         include/debug/formatter.h, include/debug/hash_map.h,
464         include/debug/hash_multimap.h, include/debug/hash_multiset.h,
465         include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
466         include/debug/map.h, include/debug/multimap.h,
467         include/debug/multiset.h, include/debug/safe_base.h,
468         include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
469         include/debug/safe_sequence.h, include/debug/set.h,
470         include/debug/string, include/debug/vector: Remove trailing whitespace.
472 2003-12-09  Bernardo Innocenti  <bernie@develer.com>
474         * include/c_compatibility/iso646.h, include/c_compatibility/limits.h,
475         include/c_compatibility/locale.h, include/c_compatibility/stdio.h,
476         include/c_compatibility/string.h, include/c_compatibility/time.h,
477         include/c_compatibility/wchar.h, include/c_compatibility/wctype.h:
478         Remove trailing whitespace.
480 2003-12-09  Bernardo Innocenti  <bernie@develer.com>
482         * include/c_std/cmath.tcc, include/c_std/std_cassert.h,
483         include/c_std/std_cctype.h, include/c_std/std_cmath.h,
484         include/c_std/std_cstddef.h, include/c_std/std_cstdio.h,
485         include/c_std/std_cstdlib.h, include/c_std/std_cstring.h,
486         include/c_std/std_cwchar.h, include/c_std/std_cwctype.h:
487         Remove trailing whitespace.
489 2003-12-09  Bernardo Innocenti  <bernie@develer.com>
491         * include/c/std_cctype.h, include/c/std_cmath.h,
492         include/c/std_cstdlib.h include/c/std_cwchar.h,
493         include/c/std_cwctype.h: Remove trailing whitespace.
495 2003-12-09  Bernardo Innocenti  <bernie@develer.com>
497         * include/backward/algo.h, include/backward/algobase.h,
498         include/backward/alloc.h, include/backward/complex.h,
499         include/backward/defalloc.h, include/backward/function.h,
500         include/backward/iterator.h, include/backward/new.h,
501         include/backward/ostream.h, include/backward/queue.h,
502         include/backward/rope.h, include/backward/stream.h,
503         include/backward/streambuf.h, include/backward/strstream,
504         include/backward/tempbuf.h, include/backward/tree.h,
505         include/backward/vector.h: Remove trailing whitespace.
507 2003-12-08  Paolo Carlini  <pcarlini@suse.de>
509         * config/locale/generic/c_locale.cc (__convert_to_v(long&),
510         __convert_to_v(unsigned long&), __convert_to_v(long long&),
511         __convert_to_v(unsigned long long&): Remove.
512         (__convert_to_v(float&), __convert_to_v(double&),
513         __convert_to_v(long double&)): Remove last unused parameter.
514         * config/locale/gnu/c_locale.cc: Likewise.
515         * include/bits/locale_facets.h: Likewise.
516         (num_get::_M_extract_int): Update declaration.
517         (class __num_base): Tweak _S_ie and _S_iE according to the
518         _S_atoms_in changes.
519         * include/bits/locale_facets.tcc (num_get::_M_extract_int):
520         Provide directly the final _ValueT, not a string: accumulate
521         the result checking for overflow at each digit.
522         (num_get::do_get(bool&), num_get::do_get(long&),
523         num_get::do_get(unsigned short&), num_get::do_get(unsigned int&),
524         num_get::do_get(unsigned long&), num_get::do_get(long long&),
525         num_get::do_get(unsigned long long&), num_get::do_get(void*&)):
526         Use the new _M_extract_int, simplify.
527         * src/locale-inst.cc (num_get::_M_extract_int(long&),
528         num_get::_M_extract_int(unsigned short&),
529         num_get::_M_extract_int(unsigned int&),
530         num_get::_M_extract_int(unsigned long&),
531         num_get::_M_extract_int(long long&),
532         num_get::_M_extract_int(unsigned long long&): Instantiate.
533         * src/locale_facets.cc (__num_base::_S_atoms_in): Reorder
534         the chars in the natural order: abcdefABCDEF.
536 2003-12-08  David S. Miller  <davem@redhat.com>
538         PR libstdc++/12496
539         * config/cpu/sparc/atomicity.h (__exchange_and_add, __atomic_add):
540         Extend increment to _Atomic_word before giving to assembler.
542 2003-12-06  Benjamin Kosnik  <bkoz@redhat.com>
544         * testsuite/ext/enc_filebuf/char/13189.cc: Guard for __enc_traits.
545         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
546         
547 2003-12-06  Benjamin Kosnik  <bkoz@redhat.com>
549         PR libstdc++/11691 
550         * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf):
551         Remove __del argument to file descriptor constructor.
552         * config/io/basic_file_stdio.h (__basic_file::sys_open): Remove
553         bool argument.
554         * config/io/basic_file_stdio.cc: Same.
556 2003-12-05  Benjamin Kosnik  <bkoz@redhat.com>
558         PR libstdc++/13189
559         * include/ext/enc_filebuf.h: Fix.
560         * include/bits/fstream.tcc: Tweak formatting.
561         * include/bits/postypes.h: Same.
562         * include/bits/sstream.tcc: Same.
563         * include/bits/streambuf.tcc: Same.
564         * testsuite/ext/stdio_filebuf.cc: Split.
565         * testsuite/ext/stdio_filebuf_2.cc: Split.
566         * testsuite/ext/stdio_sync_filebuf_char.cc: Split.
567         * testsuite/ext/stdio_sync_filebuf_wchar_t.cc: Split.
568         * testsuite/ext/enc_filebuf/char/13189.cc: New.
569         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: New.
570         * testsuite/ext/stdio_filebuf/char/1.cc: New.
571         * testsuite/ext/stdio_filebuf/char/2.cc: New.
572         * testsuite/ext/stdio_sync_filebuf/char/1.cc: New.
573         * testsuite/ext/stdio_sync_filebuf/char/12048-1.cc: New.
574         * testsuite/ext/stdio_sync_filebuf/char/12048-2.cc: New.
575         * testsuite/ext/stdio_sync_filebuf/char/12048-3.cc: New.
576         * testsuite/ext/stdio_sync_filebuf/char/12048-4.cc: New.
577         * testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc: New.
578         * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc: New.
579         * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc: New.
580         * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc: New.
581         * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc: New.
583 2003-12-05  Carlo Wood  <carlo@alinoe.com>
585         PR libstdc++/13045
586         * bits/demangle.h
587         namespace __gnu_cxx::demangler
588         (enum substitution_nt): Removed trailing comma.
589         (implementation_details): Added.
590         (session<Allocator>::M_implementation_details): Added.
591         (session<Allocator>::session): Pass implementation_details.
592         (session<Allocator>::decode_encoding): Same.
593         (session<Allocator>::decode_real): Added.
594         (_GLIBCXX_DEMANGLER_STYLE_VOID _GLIBCXX_DEMANGLER_STYLE_LITERAL
595         _GLIBCXX_DEMANGLER_STYLE_LITERAL_INT
596         _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
597         _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Replaced with
598         implementation_details equivalent.
599         (session<Allocator>::decode_expression):
600         Use M_implementation_details instead of macros. Add extra parentheses
601         around 'larger than' operator in expressions in template arguments.
602         (session<Allocator>::decode_bare_function_type): Idem.
603         (session<Allocator>::decode_literal):
604         Idem, and call decode_real for floating literals.
605         (session<Allocator>::decode_type_with_postfix): Put the postfix
606         of the return type of (member) functions after the function
607         instead of after the return type.  Also, put a space after the
608         prefix of qualified function pointers: "int (* const<space>".
609         * src/demangle.cc: include most dependent header file first.
610         * testsuite/demangle/regression/cw-16.cc: Updated two
611         and added three tests.
613 2003-12-04  Benjamin Kosnik  <bkoz@redhat.com>
615         PR libstdc++/13284
616         * include/bits/stl_algo.h (__random_number): Remove.
617         (random_shuffle): Use rand, as permitted by DR 395.
618         * include/ext/algorithm: Same.
619         * linkage.m4 (GLIBCXX_CHECK_STDLIB_SUPPORT): Remove lrand48.
620         * acconfig.h: Same.
621         * crossconfig.m4: Remove HAVE_DRAND48, HAVE_LRAND48.
622         * config.h.in: Regenerated.
623         * configure: Same.
624         * aclocal.m4: Same.
625         
626 2003-12-04  Paolo Carlini  <pcarlini@suse.de>
628         PR libstdc++/12653
629         * include/std/std_bitset.h (operator>>): Implement resolution
630         of DR 303 [WP]: use widen('0') and widen('1').
631         * docs/html/ext/howto.html: Add an entry for DR 303.
633         * include/std/std_bitset.h (operator>>): Implement the common
634         requirements of formatted input functions (27.6.1.2.1).
636         * include/std/std_bitset.h (operator>>): Set the failbit when
637         nothing was extracted and _Nb != 0.
638         * testsuite/23_containers/bitset/input/1.cc: New.
640 2003-12-03  Paolo Carlini  <pcarlini@suse.de>
642         PR libstdc++/12791
643         * include/bits/locale_facets.tcc (time_get::_M_extract_num):
644         Rewrite, stop the parsing as soon as a digit cannot possibly
645         lead to a final number within the bounds; otherwise, simplify,
646         avoiding __ctype.is() and atoi().
647         * testsuite/22_locale/time_get/get_date/char/12791.cc: New.
648         * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: New.
650         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
651         Minor tweak: a 4-digit integer cannot be bigger than 9999.
653         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Use
654         type-correct wchar_t string literals.
655         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
656         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
657         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
658         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
660 2003-12-02  Paolo Carlini  <pcarlini@suse.de>
662         * include/bits/locale_facets.tcc (time_get::do_get_year):
663         Avoid using a basic_string and calling a full blown strtol
664         (via __convert_to_v) for simple 2 or 4 digits, base 10,
665         positive integers; simplify.
667 2003-12-02  Paolo Carlini  <pcarlini@suse.de>
669         * config/locale/gnu/monetary_members.cc
670         (money_base::_S_construct_pattern): For case 3: and 4:
671         exchanging 'if (__precedes)' and 'if (__space)' allows
672         to factor out a few more assignments.
674 2003-12-01  Benjamin Kosnik  <bkoz@redhat.com>
676         * include/bits/basic_ios.h (basic_ios::setstate): Revert.
677         * include/bits/istream.tcc: Only call setstate if __err != goodbit.
678         * include/bits/ostream.tcc: Same.
679         * testsuite/27_io/basic_ios/exceptions/char/2.cc: New.
680         
681         * testsuite/testsuite_io.h (__gnu_test::fail_streambuf): Make
682         internal buffer non-static.
684 2003-12-01  Benjamin Kosnik  <bkoz@redhat.com>
686         * docs/html/17_intro/C++STYLE: Add exception bits.
687         * include/bits/fstream.tcc: Add location info to exception strings.
689         * include/bits/stl_construct.h: Formatting tweaks.
691 2003-12-01  Paolo Carlini  <pcarlini@suse.de>
693         PR libstdc++/10378
694         * include/bits/allocator.h (allocator::construct): Implement
695         resolution of DR 402 [Ready] (in Revision 28).
696         * include/bits/allocator_traits.h (__allocator::construct):
697         Likewise.
698         * include/bits/stl_construct.h (_Construct): Likewise.
699         * testsuite/20_util/allocator_members.cc: Move to...
700         * testsuite/20_util/allocator/1.cc: ... here.
701         * testsuite/20_util/allocator/10378.cc: New.
702         * docs/html/ext/howto.html: Add an entry for DR 402.
704 2003-11-30  Paolo Carlini  <pcarlini@suse.de>
706         * config/locale/gnu/codecvt_members.cc (codecvt::do_in,
707         codecvt::do_length): More minor tweaks.
709 2003-11-30  Paolo Carlini  <pcarlini@suse.de>
711         * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
712         Minor stylistic tweak.
714 2003-11-30  Paolo Carlini  <pcarlini@suse.de>
716         * include/bits/locale_facets.tcc (num_put::do_put(..., bool)):
717         Minor tweaks, consistent with the style used in other facets.
719 2003-11-29  Paolo Carlini  <pcarlini@suse.de>
721         * include/bits/fstream.tcc (underflow): Minor tweaks in
722         preparation for libstdc++/13217.
724 2003-11-29  Paolo Carlini  <pcarlini@suse.de>
726         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc:
727         Tweak for a few small problems (fix timings, use VERIFY..)
729 2003-11-28  Paolo Carlini  <pcarlini@suse.de>
731         * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: Remove.
732         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13171-3.cc: New,
733         the original third testcase for libstdc++/13171 belong here.
735 2003-11-28  Paolo Carlini  <pcarlini@suse.de>
737         * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc:
738         Remove extraneous wchar_t lines.
739         
740 2003-11-27  Paolo Carlini  <pcarlini@suse.de>
742         PR libstdc++/11544
743         PR libstdc++/11603
744         * include/bits/fstream.tcc (underflow): Throw ios_base::failure
745         upon incomplete or invalid byte sequences in the file.
746         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-1.cc: New.
747         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-2.cc: New.
748         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: New.
750 2003-11-27  Paolo Carlini  <pcarlini@suse.de>
752         * include/std/std_streambuf.h (__copy_streambufs): Remove
753         the first, unused, basic_ios<> parameter.
754         * src/streambuf-inst.cc: Likewise.
755         * include/bits/streambuf.tcc: Likewise.
756         * include/bits/istream.tcc (operator>>(__streambuf_type*)):
757         Tweak accordingly the call.
758         * include/bits/ostream.tcc (operator<<(__streambuf_type*)):
759         Likewise.
761         * include/bits/streambuf.tcc (__copy_streambufs): Remove
762         redundant try/catch.
764 2003-11-26  Benjamin Kosnik  <bkoz@redhat.com>
766         PR libstdc++/9371
767         PR libstdc++/9546
768         PR libstdc++/10093
769         PR libstdc++/10095
770         * include/bits/basic_ios.h (basic_ios::setstate): Elide if goodbit.
771         (basic_ios::_M_setstate): Consolidate common error handling code.
772         * include/bits/basic_ios.tcc: Tweak.
773         * include/bits/fstream.tcc: Tweak.
774         * include/bits/istream.tcc: Use _M_setstate for common exception
775         handling. Move setstate calls after catch. 
776         (basic_istream::tellg): Check for exceptions thrown by streambuf
777         virtual functions.
778         (basic_istream::seekg): Same.
779         * include/bits/ostream.tcc: Same, but for ostream.
780         (basic_ostream::flush): Check for exceptions thrown by streambuf
781         virtual functions.
782         (basic_istream::tellp): Same.   
783         (basic_istream::seekp): Same.
784         * include/bits/locale_facets.tcc: Tweak.
785         * include/bits/streambuf.tcc: Tweak.
786         (__copy_streambufs): Propagate exceptions.
787         * testsuite/testsuite_io.h (fail_streambuf): New.
788         (fail_num_get): New.
789         (fail_num_put): New.
790         (facet_error): New.
791         (underflow_error): New.
792         (overflow_error): New.  
793         (positioning_error): New.       
794         * testsuite/27_io/basic_istream/exceptions/char/9561.cc: Tweak.
795         * testsuite/27_io/basic_istream/extractors_arithmetic/char/
796         exceptions_badbit_throw.cc, exceptions_failbit.cc,
797         exceptions_failbit_throw.cc: New.
798         * testsuite/27_io/basic_istream/extractors_other/char/
799         error_failbit.cc, exceptions_badbit_throw.cc,
800         exceptions_failbit_throw.cc, exceptions_null.cc: New.
801         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc: 
802         New.
803         * testsuite/27_io/basic_istream/tellg/char/exceptions_badbit_throw.cc:
804         New.
805         * testsuite/27_io/basic_ostream/flush/char/exceptions_badbit_throw.cc:
806         New.
807         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
808         exceptions_badbit_throw.cc, exceptions_failbit_throw.cc: New.
809         * testsuite/27_io/basic_ostream/inserters_other/char/
810         error_failbit.cc, exceptions_badbit_throw.cc,
811         exceptions_failbit_throw.cc, exceptions_null.cc: New.
812         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc: 
813         New.
814         * testsuite/27_io/basic_ostream/tellp/char/exceptions_badbit_throw.cc: 
815         New.
817 2003-11-26  Benjamin Kosnik  <bkoz@redhat.com>
819         PR libstdc++/12297
820         * include/bits/istream.tcc
821         (basic_istream::sentry::sentry): Set failbit and eofbit when eof.
822         * testsuite/27_io/basic_istream/sentry/char/12297.cc: New.
823         
824 2003-11-26  Paolo Carlini  <pcarlini@suse.de>
825             Petur Runolfsson  <peturr02@ru.is>
827         PR libstdc++/13171
828         * include/bits/fstream.tcc (imbue): Relax the conditions under
829         which the function succeeds: allow for two consecutive calls with
830         the same name; state dependent encodings are ok even after open
831         if at the beginning of the file; don't check seekoff return value
832         (pipes, cin, cout, etc...)
833         * testsuite/27_io/basic_filebuf/imbue/char/13171-1.cc: New.
834         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: New.
835         * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: New.
836         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: New.
837         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak comment.
838         * testsuite/27_io/basic_filebuf/imbue/char/3.cc: Likewise.
839         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Tweak comment.
840         * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: Likewise.
842         * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: More
843         correctly use the UTF-8 locale appearing in the PR.
845 2003-11-26  Paolo Carlini  <pcarlini@suse.de>
847         * include/bits/locale_facets.h
848         (__numpunct_cache<>::_M_cache): Avoid zeroing _M_grouping,
849         _M_truename and _M_falsename: the constructor always does
850         it immediately before the _M_cache call.
852 2003-11-25  Paolo Carlini  <pcarlini@suse.de>
854         * config/locale/gnu/codecvt_members.cc (codecvt::do_length):
855         Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
856         former is very fast, but stops if encounters a NUL.
857         (codecvt::do_out): Tweaks.
858         (codecvt::do_in): Tweaks, improve the code dealing with errors.
859         * testsuite/performance/wchar_t_length.cc: New.
861 2003-11-24  Paolo Carlini  <pcarlini@suse.de>
863         * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
864         Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
865         former is very fast, but stops if encounters a NUL.
866         (codecvt::do_out): Tweak.
867         * testsuite/performance/wchar_t_in.cc: New.
869 2003-11-24  Paolo Carlini  <pcarlini@suse.de>
871         * include/bits/locale_facets.h
872         (__numpunct_cache<>::_M_cache): Set _M_allocated at the beginning
873         in order to avoid memory leaks; simplify a bit.
875 2003-11-24  Benjamin Kosnik  <bkoz@redhat.com>
876         
877         * include/bits/streambuf_iterator.h (ostreambuf_iterator): Remove
878         non-standard throw specs.
879         * testsuite/24_iterators/istreambuf_iterator.cc: Split into...
880         * testsuite/24_iterators/istreambuf_iterator/1.cc
881         * testsuite/24_iterators/istreambuf_iterator/2.cc
882         * testsuite/24_iterators/istreambuf_iterator/2627.cc
883         * testsuite/24_iterators/ostreambuf_iterator.cc: Split into...
884         * testsuite/24_iterators/ostreambuf_iterator/1.cc
885         * testsuite/24_iterators/ostreambuf_iterator/2.cc
887         * testsuite/24_iterators/reverse_iterator/1.cc: Just compile,
888         don't link.
889         
890         * include/bits/allocator.h: Formatting tweak.
891         
892 2003-11-24  Paolo Carlini  <pcarlini@suse.de>
894         * src/locale_init.cc: Cosmetic reformatting.
896 2003-11-23  Paolo Carlini  <pcarlini@suse.de>
898         * include/bits/locale_facets.tcc (__add_grouping):
899         Cosmetic reformatting.
901 2003-11-23  Paolo Carlini  <pcarlini@suse.de>
903         * include/bits/locale_facets.tcc (_M_extract_float,
904         _M_extract_int): Remove a wrong comment and simplify
905         the corresponding code using char_traits::find().
907 2003-11-22  Paolo Carlini  <pcarlini@suse.de>
909         * config/locale/gnu/monetary_members.cc
910         (money_base::_S_construct_pattern): Factor out two assignments.
912 2003-11-22  Paolo Carlini  <pcarlini@suse.de>
914         * include/bits/istream.tcc (getline(basic_string<>&)):
915         Fix error in comment of the previous commit.
917 2003-11-22  Paolo Carlini  <pcarlini@suse.de>
919         PR libstdc++/12593
920         * include/bits/istream.tcc (operator>>(basic_string<>&),
921         getline(basic_string<>&)): Implement resolution of DR 91 [WP];
922         fix some minor issues with the exit conditions.
923         * docs/html/ext/howto.html: Add an entry for DR 91.
925 2003-11-21  Paolo Carlini  <pcarlini@suse.de>
927         * config/locale/gnu/monetary_members.cc
928         (money_base::_S_construct_pattern): Factor out an assignment.
930 2003-11-21  Paolo Carlini  <pcarlini@suse.de>
932         PR libstdc++/12882 (partial)
933         * acinclude.m4 (GLIBCXX_CHECK_LFS): Check fseeko64
934         and ftello64 too.
935         * include/ext/stdio_sync_filebuf.h (seekoff): Use fseeko64
936         and ftello64 if available.
937         * aclocal.m4: Regenerate.
938         * configure: Ditto.
940 2003-11-20  Benjamin Kosnik  <bkoz@redhat.com>
942         * include/debug/formatter.h: Use _Tp as template argument.
943         * src/debug.cc: Same, instantiate std::size_t.
944         
945 2003-11-20  Benjamin Kosnik  <bkoz@redhat.com>
947         PR libstdc++/13109
948         * include/debug/formatter.h (_Error_formatter::_M_format_word): New.
949         * src/debug.cc (__gnu_debug): Format. 
950         (_Error_formatter::_M_format_word): Define, use, instantiate.
952 2003-11-20  Paolo Carlini  <pcarlini@suse.de>
954         PR libstdc++/11602
955         * config/locale/gnu/codecvt_members.cc (codecvt::do_out):
956         Rewrite, using both wcsnrtombs and wcrtomb in a loop: the
957         former is very fast, but stops if encounters a NUL.
958         * testsuite/performance/wchar_t_out.cc: New, from the PR.
960 2003-11-19  Paolo Carlini  <pcarlini@suse.de>
962         * config/locale/gnu/codecvt_members.cc (do_out): If
963         we can upper bound the total number of external chars
964         to something smaller than __to_end - __to, avoid the
965         temporary buffer, the memcopy and simplify the loop.
966         * config/locale/generic/codecvt_members.cc (do_out):
967         Likewise.
969 2003-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
971         * testsuite/lib/libstdc++.exp: Add DYLD_LIBRARY_PATH for darwin.
972         * testsuite/libstdc++-dg/normal.exp: Add -multiply_defined suppress
973         flag.
975 2003-11-18  Jonathan Wakely  <redi@gcc.gnu.org>
977         * docs/html/configopts.html, docs/html/debug.html,
978         docs/html/documentation.html, docs/html/explanations.html,
979         docs/html/install.html, docs/html/17_intro/contribute.html,
980         docs/html/17_intro/howto.html, docs/html/17_intro/license.html,
981         docs/html/18_support/howto.html, docs/html/19_diagnostics/howto.html,
982         docs/html/20_util/howto.html, docs/html/21_strings/howto.html,
983         docs/html/22_locale/codecvt.html, docs/html/22_locale/ctype.html,
984         docs/html/22_locale/howto.html, docs/html/22_locale/locale.html,
985         docs/html/22_locale/messages.html, docs/html/23_containers/howto.html,
986         docs/html/24_iterators/howto.html, docs/html/25_algorithms/howto.html,
987         docs/html/26_numerics/howto.html, docs/html/27_io/howto.html,
988         docs/html/ext/howto.html, docs/html/ext/sgiexts.html: Add <link> tags.
990 2003-11-18  Paolo Carlini  <pcarlini@suse.de>
992         PR libstdc++/12868
993         * include/bits/fstream.tcc (imbue): For encodings != -1 it's
994         always ok to imbue a new locale, provided seekoff(0, cur, ...)
995         doesn't fail, of course.
996         (underflow): In order for the above to work, deal gracefully
997         with _M_codecvt->in returning codecvt_base::error while 
998         (__ilen = __iend - this->eback()) > 0: it just means __ilen
999         correctly converted internal characters before an error.        
1000         * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: New.
1002 2003-11-17  Paolo Carlini  <pcarlini@suse.de>
1004         * include/bits/locale_facets.tcc: Fix typo in comment.
1006 2003-11-17  Paolo Carlini  <pcarlini@suse.de>
1008         * testsuite/22_locale/num_put/put/char/8.cc: New test,
1009         summarizing the discussion ensuing libstdc++/12988.
1010         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Ditto.
1012 2003-11-15  Paolo Carlini  <pcarlini@suse.de>
1014         * include/std/std_fstream.h: Tweak a comment.
1016 2003-11-15  Roger Sayle  <roger@eyesopen.com>
1018         * include/c_std/std_cmath.h: Don't import C99's float transcendentals
1019         into the __gnu_cxx::__c99_binding namespace.
1020         (acos, asin, atan, atan2, ceil, cosh, exp, floor, fmod, frexp,
1021         ldexp, log, log10, modf, pow, sinh, tan, tanh): Implement using
1022         GCC's math builtins, i.e. __builtin_foo.
1023         * libmath/stubs.c (acosf, acosl, asinf, asinl, atanf, atanl,
1024         ceilf, ceill, floorf, floorl, fmodf, fmodl, frexpf, frexpl,
1025         ldexpf, ldexpl, modff, modfl): Provide stub implementations.
1027 2003-11-14  Paolo Carlini  <pcarlini@suse.de>
1029         * testsuite/22_locale/locale/cons/12352.cc: Use
1030         __gnu_test::try_named_locale.
1032 2003-11-14  Paolo Carlini  <pcarlini@suse.de>
1034         * docs/html/ext/howto.html: Add entries for DR 63, 75
1035         and 305; tweak entries for DR 60 and 328.
1037 2003-11-13  Douglas Gregor  <gregod@cs.rpi.edu>
1039         * docs/html/debug.html: Users are allowed to specialize in
1040         namespace __gnu_debug, unlike in the Apple version of the debug
1041         mode. Clear up a confusing double-negative. Note that
1042         std::basic_string does provide extra debugging capabilities, but
1043         not safe iterators.
1044         * include/bits/basic_string.tcc: Make sure there's never an
1045         ambiguity when calling __is_null_pointer. 
1046         * include/debug/deque: (deque::erase) Properly handle invalidation
1047         when erasing at the end of the deque.
1048         * include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity. 
1049         (vector::clear): Set the guaranteed capacity to 0.
1050         * testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
1051         iterator invalidation when erasing at the end of the deque.
1053 2003-11-13  Paolo Carlini  <pcarlini@suse.de>
1054             Petur Runolfsson  <peturr02@ru.is>
1056         PR libstdc++/13007
1057         * include/bits/fstream.tcc (imbue): Don't touch the stored
1058         locale.
1059         * include/std/std_streambuf.h (imbue): According to the
1060         standard, base class version does nothing.
1061         (pubimbue): Store the locale.
1062         * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New.
1063         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New.
1064         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak.
1065         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
1066         * testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New.
1067         * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New.
1068         * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New.
1069         * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New.
1071 2003-11-13  Petur Runolfsson  <peturr02@ru.is>
1073         PR libstdc++/12594
1074         * include/bits/ostream.tcc
1075         (basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
1076         basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
1077         basic_ostream::operator<<(ios_base& (*)(ios_base&))):
1078         Implement the resolution of DR 60 (TC): These are not formatted
1079         output functions so don't construct sentry objects and don't
1080         catch exceptions.
1081         (basic_ostream::put, basic_ostream::write): Implement the
1082         resolution of DR 63 (TC) by catching exceptions and setting
1083         badbit.
1084         (basic_ostream::flush): Implement the resolution of DR 60 (TC):
1085         This is not an unformatted output function so don't construct
1086         a sentry object.
1087         * testsuite/testsuite_io.h (sync_streambuf): Define.
1088         * testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
1089         * testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
1090         * testsuite/27_io/basic_ostream/put/char/1.cc: New test.
1091         * testsuite/27_io/basic_ostream/write/char/1.cc: New test.
1092         
1093 2003-11-13  Paolo Carlini  <pcarlini@suse.de>
1095         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
1096         Fix, closely following the testcase included in the PR.
1097         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
1098         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
1099         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.
1101 2003-11-13  Jonathan Wakely <redi@gcc.gnu.org>
1103         * docs/html/17_intro/configury.html: XHTML tweak.
1105 2003-11-13  Jonathan Wakely <redi@gcc.gnu.org>
1107         * docs/html/debug_mode.html: XHTML fixes.
1109 2003-11-12  Benjamin Kosnik  <bkoz@redhat.com>
1111         * docs/html/debug_mode.html: Update.
1112         * docs/html/17_intro/TODO: Update.
1114 2003-11-12  Benjamin Kosnik  <bkoz@redhat.com>
1116         * include/bits/c++config: Move using directive...
1117         * include/debug/formatter.h: ...here.
1119 2003-11-12  Carlo Wood  <carlo@alinoe.com>
1121         PR libstdc++/12947
1122         * bits/demangle.h
1123         (_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS): Added.
1124         (_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Added.
1125         (session<Allocator>::next_peek() const): Added.
1126         (decode_non_negative_decimal_integer(string_type&)):
1127         Renamed from decode_decimal_integer(string_type&).
1128         (session<Allocator>::decode_nested_name):
1129         Decode <template_param> as well.
1130         (session<Allocator>::add_substitution):
1131         Handle <template-param> for <nested-name>'s.
1132         (enum xary_nt): Added.
1133         (struct entry_st): Added member `xary_nt type' instead of `bool unary'.
1134         (symbol_name_table_c): Updated for `entry_st::type' and additional
1135         operators (unary `operator+' and `sizeof(type)').
1136         (offset_table_c): Updated for new operators (causing a new hash map).
1137         (decode_operator_name): Match the updated hash map.
1138         (session<Allocator>::decode_expression):
1139         Support for `sizeof ([typename] type)' (st),
1140         dependent names (sr) and casting operator (cv).  Handle
1141         `entry_st::type'.  Handle _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
1142         and _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME.
1143         (session<Allocator>::decode_type_with_postfix):
1144         Support `extern "C"' function types (FY).
1145         * testsuite/demangle/regression/cw-16.cc: Added tests for the
1146         added functionality.
1147         * testsuite/demangle/regression/3111-2.cc: sizeof now has a space
1148         appended.
1150 2003-11-11  Paolo Carlini  <pcarlini@suse.de>
1152         PR libstdc++/12875
1153         * include/bits/fstream.tcc (setbuf): Don't do anything
1154         after open(), in particular don't discard data.
1155         (_M_allocate_internal_buffer): Tweak to not allocate memory
1156         in case the buffer is provided by the user via setbuf.
1157         * include/ext/stdio_filebuf.h: Tweak comment.
1158         * testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
1159         * testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
1160         * testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
1161         setbuf does nothing after open().
1162         * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
1164 2003-11-11  Doug Gregor  <gregod@cs.rpi.edu>
1166         * docs/html/debug.html: Document libstdc++ debug mode.
1167         * docs/html/debug_mode.html: Document libstdc++ debug mode design.
1168         * docs/html/test.html: Document how to test under debug mode.
1169         * docs/html/17_intro/howto.html: Document debug-mode macros.
1170         * include/Makefile.am: Install debug-mode headers.
1171         * src/Makefile.am: Include debug.cc.
1172         * include/bits/basic_string.tcc: 
1173           (basic_string::_S_construct): Fix NULL pointer check.
1174           (__is_null_pointer): New.
1175           Add precondition annotations.
1176         * include/bits/stream_iterator.h (istream_iterator,
1177         ostream_iterator): Added precondition annotations.
1178         * include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto.
1179         * include/bits/stl_queue.h (queue, priority_queue): Ditto.
1180         * include/bits/stl_stack.h (stack): Ditto.
1181         * include/bits/basic_string.h (basic_string): Ditto.
1182         * include/bits/basic_string.tcc (basic_string): Ditto.
1183         * include/std/std_memory.h (auto_ptr): Ditto.
1184         * include/std/std_valarray.h (valarray): Ditto.
1185         * include/bits/stl_algo.h: Added algorithm precondition
1186         annotations.
1187         * include/bits/stl_algobase.h: Added algorithm precondition
1188         annotations.
1189         * include/bits/stl_numeric.h: Ditto.
1190         * include/ext/algorithm: Added algorithm precondition
1191         annotations. 
1192         (__is_heap): Moved away from here.
1193         * include/bits/stl_heap.h: Added algorithm precondition
1194         annotations. 
1195         (__is_heap): Moved to the top of this file.
1196         (__is_heap): Added iterator range overloads.
1197         * testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up
1198         with changes in std_memory.h.
1199         * testsuite/23_containers/list/operators/4.cc: Don't verify
1200         performance guarantees when in debug mode.
1201         * testsuite/23_containers/bitset/invalidation/1.cc: New.
1202         * testsuite/23_containers/deque/invalidation/1.cc: New.
1203         * testsuite/23_containers/deque/invalidation/2.cc: New.
1204         * testsuite/23_containers/deque/invalidation/3.cc: New.
1205         * testsuite/23_containers/deque/invalidation/4.cc: New.
1206         * testsuite/23_containers/list/invalidation/1.cc: New.
1207         * testsuite/23_containers/list/invalidation/2.cc: New.
1208         * testsuite/23_containers/list/invalidation/3.cc: New.
1209         * testsuite/23_containers/list/invalidation/4.cc: New.
1210         * testsuite/23_containers/map/invalidation/1.cc: New.
1211         * testsuite/23_containers/map/invalidation/2.cc: New.
1212         * testsuite/23_containers/multimap/invalidation/1.cc: New.
1213         * testsuite/23_containers/multimap/invalidation/2.cc: New.
1214         * testsuite/23_containers/multiset/invalidation/1.cc: New.
1215         * testsuite/23_containers/multiset/invalidation/2.cc: New.
1216         * testsuite/23_containers/set/invalidation/1.cc: New.
1217         * testsuite/23_containers/set/invalidation/2.cc: New.
1218         * testsuite/23_containers/vector/invalidation/1.cc: New.
1219         * testsuite/23_containers/vector/invalidation/2.cc: New.
1220         * testsuite/23_containers/vector/invalidation/3.cc: New.
1221         * testsuite/23_containers/vector/invalidation/4.cc: New.
1222         * testsuite/25_algorithms/heap.cc: Don't verify
1223         performance guarantees when in debug mode.
1224         * include/debug/bitset: New.
1225         * include/debug/debug.h: New.
1226         * include/debug/deque: New.
1227         * include/debug/formatter.h: New.
1228         * include/debug/hash_map: New.
1229         * include/debug/hash_map.h: New.        
1230         * include/debug/hash_multimap.h: New.
1231         * include/debug/hash_set: New.
1232         * include/debug/hash_set.h: New.
1233         * include/debug/hash_multiset.h: New.   
1234         * include/debug/list: New.
1235         * include/debug/map: New.
1236         * include/debug/map.h: New.
1237         * include/debug/multimap.h: New.
1238         * include/debug/multiset.h: New.        
1239         * include/debug/safe_base.h: New.
1240         * include/debug/safe_iterator.h: New.
1241         * include/debug/safe_iterator.tcc: New.
1242         * include/debug/safe_sequence.h: New.
1243         * include/debug/set: New.
1244         * include/debug/set.h: New.     
1245         * include/debug/string: New.
1246         * include/debug/vector: New.
1247         * src/debug.cc: New.
1248         * config/linker-map.gnu: Add debug mode symbols.
1249         
1250 2003-11-11  Benjamin Kosnik  <bkoz@redhat.com>
1252         * src/string-inst.cc: Tweak namespaces.
1253         * src/misc-inst.cc: Same.
1254         * docs/html/debug.html: Edits.
1255         * config/link-map.gnu: Remove cruft.
1257         * include/bits/c++config: Add in namespace associations.
1258         * include/std/std_bitset.h: Adjust namespace to __gnu_norm,
1259         comment tweaks.
1260         * include/bits/deque.tcc: Same.
1261         * include/bits/list.tcc: Same.
1262         * include/bits/stl_bvector.h: Same.
1263         * include/bits/stl_deque.h: Same.
1264         * include/bits/stl_list.h: Same.
1265         * include/bits/stl_map.h: Same.
1266         * include/bits/stl_multimap.h: Same.
1267         * include/bits/stl_multiset.h: Same.
1268         * include/bits/stl_set.h: Same.
1269         * include/bits/stl_vector.h: Same.
1270         * include/bits/vector.tcc: Same.
1272         * include/std/std_algorithm.h: Remove markup comments.
1273         * include/std/std_functional.h: Same.
1274         * include/std/std_iterator.h: Same.
1275         * include/std/std_numeric.h: Same.
1276         * include/std/std_utility.h: Same.
1277         * include/bits/stl_queue.h: Formatting tweaks.
1278         * include/bits/stl_stack.h: Same.
1279         * include/std/std_deque.h: Include debugging version in debug mode.
1280         * include/std/std_list.h: Same.
1281         * include/std/std_map.h: Same.
1282         * include/std/std_set.h: Same.
1283         * include/std/std_vector.h: Same.       
1284         * include/std/std_queue.h: Use deque, vector.
1285         * include/std/std_stack.h: Same.
1287 2003-11-09  Paolo Carlini  <pcarlini@suse.de>
1289         * include/bits/locale_facets.tcc (_M_insert_int,
1290         _M_insert_float): Move a couple of vars inside an if block.
1292 2003-11-09  Paolo Carlini  <pcarlini@suse.de>
1294         PR libstdc++/12971
1295         * include/bits/locale_facets.tcc
1296         (money_put::do_put(..., long double)): Fix conversion
1297         specification as per DR 328 [WP].
1298         * testsuite/22_locale/money_put/put/char/12971.cc: Add.
1299         * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto.
1300         * docs/html/ext/howto.html: Add entry for DR 328.
1302 2003-11-08  Paolo Carlini  <pcarlini@suse.de>
1304         PR libstdc++/12967
1305         * include/bits/list.tcc (merge): Implement resolution of
1306         DR 300 [WP].
1307         * docs/html/ext/howto.html: Add entry for DR 300; tweak entry
1308         for DR 231.
1310         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
1311         Import R27.
1313 2003-11-07  Jonathan Wakely  <redi@gcc.gnu.org>
1315         * libsupc++/vec.cc: Conform to C++STYLE.
1317 2003-11-07  Carlo Wood  <carlo@alinoe.com>
1319         PR libstdc++/12736
1320         * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
1321         (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
1322         K, V, r and A qualifiers before processing them as a group.
1323         * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
1324         * testsuite/demangle/regression/cw-16.cc: New.
1326 2003-11-07  Robert Millan  <robertmh@gnu.org>
1328         * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
1329         * crossconfig.m4: Likewise.
1330         * configure: Regenerate.
1332 2003-11-07  Carlo Wood  <carlo@alinoe.com>
1334         * include/bits/demangle.h
1335         (qualifier_list<Allocator>::decode_qualifiers(string_type&,
1336         string_type&, bool member_function_pointer_qualifiers):
1337         Always separate the '[' of an array type with a space from
1338         what is left of it, except when that is the closing bracket
1339         of another array dimension.
1341 2003-11-07  Carlo Wood  <carlo@alinoe.com>
1343         * include/bits/demangle.h
1344         (qualifier_list<Allocator>::decode_qualifiers(string_type&,
1345         string_type&, bool) const): Made const.
1346         (qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
1347         (_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
1348         std::ostream& operator<<(std::ostream&, qualifier const&),
1349         std::ostream& operator<<(std::ostream&, qualifier_list const&),
1350         qualifier_list<Allocator>::decode_qualifiers(string_type&,
1351         string_type&, bool) const,
1352         session<Allocator>::decode_type_with_postfix(string_type&,
1353         string_type&, qualifier_list<Allocator>*))
1354         Added and/or changed debug-only hooks and code.
1356 2003-11-04  Jeffrey D. Oldham  <oldham@codesourcery.com>
1358         * libsupc++/vec.cc (__cxa_vec_delete2): If given a NULL pointer,
1359         immediately return.  This reflects a C++ ABI change 2003 Nov 03.
1360         (__cxa_vec_delete3): Likewise.
1361         
1362 2003-11-03  Petur Runolfsson  <peturr02@ru.is>
1364         PR libstdc++/12790
1365         * include/bits/fstream.tcc: Delete _M_last_overflowed.
1366         (basic_filebuf::basic_filebuf): Initialize _M_state_last.
1367         (basic_filebuf::open, basic_filebuf::close): Assign
1368         _M_state_beg to _M_state_cur and _M_state_last.
1369         (basic_filebuf::close): Call _M_terminate_output to handle
1370         unshift and flushing.
1371         (basic_filebuf::underflow): Assign _M_state_last, throw
1372         exception instead of calling abort when codecvt::max_length()
1373         is bad.
1374         (basic_filebuf::seekoff): Use _M_state_last when calling
1375         codecvt::length(), pass correct state to _M_seek.
1376         (basic_filebuf::seekpos): Pass __pos.state() to _M_seek.
1377         (basic_filebuf::_M_seek): Add __state_type parameter,
1378         set _M_state_cur correctly, store the resulting state in
1379         the return value and use _M_terminate_output to handle
1380         flushing and unshift.
1381         (basic_filebuf::_M_terminate_output): Flush contents of
1382         output buffer, if any, then call codecvt::unshift as
1383         needed and output the result.
1384         (basic_filebuf::sync): Move here, don't modify _M_writing
1385         or _M_reading.
1386         
1387         * include/std/std_fstream.h
1388         (basic_filebuf::_M_state_last): Declare it.
1389         (basic_filebuf::_M_last_overflowed): Delete.
1390         (basic_filebuf::_M_seek): Add __state_type parameter.
1391         (basic_filebuf::sync): Declare only.
1392         (basic_filebuf::_M_output_unshift): Delete.
1393         (basic_filebuf::_M_terminate_output): Declare it.
1394         
1395         * testsuite/testsuite_character.h:
1396         Define character class and state class plus char_traits and
1397         codecvt specializations for same for testing support for
1398         stateful encodings.
1399         
1400         * testsuite/27_io/basic_filebuf/close/12790-1.cc,
1401         * testsuite/27_io/basic_filebuf/close/char/12790-1.cc,
1402         * testsuite/27_io/basic_filebuf/close/char/12790-2.cc,
1403         * testsuite/27_io/basic_filebuf/close/char/12790-3.cc,
1404         * testsuite/27_io/basic_filebuf/close/char/12790-4.cc,
1405         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc,
1406         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc,
1407         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc,
1408         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc,
1409         * testsuite/27_io/basic_filebuf/open/12790-1.cc,
1410         * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc,
1411         * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc,
1412         * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc,
1413         * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc,
1414         * testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc,
1415         * testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc,
1416         * testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc,
1417         * testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc,
1418         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc,
1419         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc,
1420         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc,
1421         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc,
1422         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc,
1423         * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc,
1424         * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc,
1425         * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc,
1426         * testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc,
1427         * testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc,
1428         * testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc,
1429         * testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc,
1430         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc,
1431         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc,
1432         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc,
1433         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc,
1434         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc,
1435         * testsuite/27_io/basic_filebuf/sync/char/1.cc,
1436         * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc:
1437         New tests.
1439         * testsuite/27_io/basic_filebuf/3.cc,
1440         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc,
1441         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc,
1442         * testsuite/27_io/basic_fstream/3.cc,
1443         * testsuite/27_io/basic_ifstream/3.cc,
1444         * testsuite/27_io/basic_ofstream/3.cc:
1445         Use streamoff as off_type and fpos<state_type> as pos_type.
1447         * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc,
1448         * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc:
1449         Check that sync does *not* set _M_writing to false.
1451 2003-11-03  Anthony Green  <green@redhat.com>
1453         * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
1454         they're used.
1456 2003-11-03  Benjamin Kosnik  <bkoz@redhat.com>
1458         * include/bits/locale_facets.h (time_get::_M_extract_name): Add
1459         ctype argument. 
1460         * include/bits/locale_facets.tcc: Same, use it to allow
1461         capitalized names.
1462         
1463         * include/bits/fstream.tcc: Spacing tweak.
1464         * include/bits/istream.tcc: Same.
1465         * include/bits/ostream.tcc: Same.
1467 2003-10-30  Paolo Carlini  <pcarlini@suse.de>
1469         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
1470         __mod is only assigned, never used its value, remove it.
1472 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
1474         * include/bits/locale_facets.tcc (time_get::do_get_year):
1475         Absolutely avoid dereferencing end iterators.
1476         (time_put::put): Minor clean up.
1478         * include/bits/locale_facets.tcc: Cosmetic reformattings.
1480 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
1482         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1483         Revert the last commit, is not correct, sorry.
1484         
1485 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
1487         * config/locale/generic/c_locale.cc: Add back <cmath> and
1488         <cstdlib>.
1490         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1491         Clean up.
1493 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
1495         * include/bits/locale_facets.tcc (time_put::put): Absolutely
1496         avoid dereferencing end iterators; clean up.
1498         * include/bits/locale_facets.tcc (num_get::_M_extract_float,
1499         num_get::_M_extract_int): Minor tweak.
1501 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
1503         * include/bits/locale_facets.tcc: Remove some unnecessary
1504         includes.
1505         * config/locale/generic/c_locale.cc: Include <cerrno> here.
1506         * config/locale/gnu/c_locale.cc: Likewise.
1508 2003-10-28  Paolo Carlini  <pcarlini@suse.de>
1510         * include/bits/locale_facets.tcc
1511         (money_get<>::do_get(..., string_type&)): Absolutely avoid
1512         dereferencing end iterators; general clean up.
1514 2003-10-28  Paolo Carlini  <pcarlini@suse.de>
1516         * include/bits/locale_facets.tcc (time_get::_M_extract_num):
1517         Absolutely avoid dereferencing end iterators.
1518         (time_get::_M_extract_name): Likewise.
1520         * include/bits/locale_facets.tcc
1521         (time_get::_M_extract_via_format, case 'e'): Don't try to
1522         be smart wrt returning the right __beg in case of parse
1523         error, time_get::_M_extract_num must be fixed instead.
1525 2003-10-27  Paolo Carlini  <pcarlini@suse.de>
1527         PR libstdc++/12778
1528         * acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
1529         * aclocal.m4: Regenerate.
1530         * configure: Regenerate.
1532 2003-10-27  Benjamin Kosnik  <bkoz@redhat.com>
1533         
1534         * docs/html/17_intro/TODO: Add links.
1535         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1536         Uncomment.
1537         
1538 2003-10-27  Paolo Carlini  <pcarlini@suse.de>
1540         PR libstdc++/12750
1541         * include/bits/locale_facets.tcc
1542         (time_get::_M_extract_via_format): Deal with code 'e'.
1543         * testsuite/22_locale/time_get/get_date/char/12750.cc: New.
1544         * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.
1546         * include/bits/locale_facets.tcc
1547         (time_get::_M_extract_via_format): Tweak to absolutely avoid
1548         dereferencing end iterators.
1550         * include/bits/locale_facets.h (__verify_grouping):
1551         Const-ify second parameter.
1552         * include/bits/locale_facets.tcc (__verify_grouping): Ditto.
1553         * src/locale-inst.cc (__verify_grouping): Ditto.
1555 2003-10-27  Paolo Carlini  <pcarlini@suse.de>
1557         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1558         Various things: 1- Avoid absolutely end iterator dereferences;
1559         2- Improve performance-wise the code skipping leading zeros;
1560         3- Fix two bugs wrt early bail out in case of parsing errors
1561         (see testcases); 4- General clean up.
1562         (num_get::_M_extract_int): Likewise, except 3-. Additionally,
1563         use __builtin_expect to favor base 10 inputs.
1564         * testsuite/22_locale/num_get/get/char/7.cc: New.
1565         * testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.
1567 2003-10-26  Paolo Carlini  <pcarlini@suse.de>
1569         * testsuite/22_locale/money_put/put/char/1.cc: Clean up.
1570         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.
1572 2003-10-25  Paolo Carlini  <pcarlini@suse.de>
1574         * include/bits/locale_facets.tcc (num_get::_M_extract_int):
1575         __pos in only incremented, never used its value, remove it.
1577 2003-10-24  Robert Millan  <robertmh@gnu.org>
1579         * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
1580         and knetbsd*-gnu.
1581         * aclocal.m4:  Regenerated.
1582         * configure:  Regenerated.
1584 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1586         * include/bits/locale_facets.tcc (money_get::do_get(...,
1587         long double&): Properly size the temporary buffer.
1588         * testsuite/22_locale/money_get/get/char/11.cc: New.
1589         * testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.
1591         * include/bits/locale_facets.tcc (num_put::_M_group_int,
1592         num_put::_M_group_float, money_put::do_put(..., const
1593         string_type&), collate::do_compare, collate::do_transform):
1594         Prefer basic_string::data() to c_str() when the '\0'
1595         terminator is not really needed.
1597 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1599         * include/bits/locale_facets.tcc (__verify_grouping):
1600         Prefer '=' to an unnecessary '&='.
1602 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1604         * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1605         Tweak my fix for libstdc++/12657.
1607 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1609         * include/bits/locale_facets.tcc (money_get::do_get(...,
1610         string_type&): Minor tweak to the previous commit.
1612 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1614         * include/bits/locale_facets.tcc (money_get::do_get(...,
1615         string_type&): Disregard the previous commit: doesn't hurt but
1616         doesn't accomplish anything useful either. This is the right
1617         one, speeding up greatly the function in case of early fail.
1619 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1621         * include/bits/locale_facets.tcc (money_get::do_get(...,
1622         string_type&): Move an if block, thus minimizing the amount
1623         of code processed anyway when __tmp_units.size() == 0.
1625 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1627         * include/bits/locale_facets.tcc
1628         (time_get<>::_M_extract_via_format): Deal with case 'C' too,
1629         equivalent to 'y'.
1631 2003-10-23  Benjamin Kosnik  <bkoz@redhat.com>
1633         * docs/html/documentation.html: Add a pointer to the doxygen style
1634         guide.
1635         * docs/html/17_intro/TODO: Update.
1636         * docs/html/test.html: Add instructions for running a subset of
1637         tests, update.
1639 2003-10-23  Paolo Carlini  <pcarlini@suse.de>
1641         * include/bits/locale_facets.tcc (money_get<>::do_get(...,
1642         string_type&)): Use find_first_not_of to strip leading
1643         zeros; if __tmp_units == "0" never prefix it with '-';
1644         always fail if __tmp_units is empty.
1645         * testsuite/22_locale/money_get/get/char/10.cc: New.
1646         * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
1648 2003-10-23  Phil Edwards  <phil@codesourcery.com>
1650         * config/os/vxworks/ctype_noninline.h:  Adjust ctor to match
1651         2003-10-21 change.
1653 2003-10-22  Paolo Carlini  <pcarlini@suse.de>
1655         * include/bits/locale_facets.tcc (__int_to_char): Remove
1656         the const int parameter.
1657         (_M_insert_int): Update caller.
1658         * src/locale-inst.cc (__int_to_char): Update instantiations.    
1660 2003-10-22  Benjamin Kosnik  <bkoz@redhat.com>
1662         * include/bits/locale_facets.h: Correct byname facets for "C"
1663         locale.
1664         * config/locale/generic/ctype_members.cc: Same.
1665         * config/locale/generic/messages_members.h: Same.
1666         * config/locale/gnu/ctype_members.cc: Same.
1667         * config/locale/gnu/messages_members.h: Same.
1668         * include/bits/codecvt.h: Same.
1669         * src/ctype.cc: Same.
1670         * testsuite/22_locale/codecvt_byname/1.cc: New.
1671         * testsuite/22_locale/collate/1.cc: Edit.
1672         * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
1673         * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
1674         * testsuite/22_locale/ctype/1.cc: Derivation tests.
1675         * testsuite/22_locale/ctype/11844.cc: Move...
1676         * testsuite/22_locale/ctype_base/11844.cc: ...here.
1677         * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
1678         * testsuite/22_locale/ctype_byname/1.cc: Name.
1679         * testsuite/22_locale/messages_byname/1.cc: New.
1680         * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
1681         * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
1682         * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
1683         * testsuite/22_locale/numpunct/1.cc: Edit.
1684         * testsuite/22_locale/numpunct_byname/2.cc: Move...
1685         * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
1686         * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
1687         * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
1689 2003-10-22  Paolo Carlini  <pcarlini@suse.de>
1691         PR libstdc++/8610
1692         * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
1693         checking for the availability of int64_t.
1694         (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
1695         * configure.ac: Call here.
1696         * acconfig.h: Add undef for the corresponding symbols.
1697         * config/io/basic_file_stdio.cc (__basic_file<char>::open):
1698         Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
1699         (__basic_file<char>::seekoff): Likewise, call lseek64 when
1700         available, otherwise lseek, checking the __off parameter.
1701         * include/bits/postypes.h: Typedef __streamoff_base_type
1702         to int64_t if available, otherwise long long.
1703         * aclocal.m4: Regenerate.
1704         * config.h.in: Likewise.
1705         * configure: Likewise.
1707         * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
1708         Use AC_TRY_LINK instead of AC_TRY_COMPILE.
1709         
1710 2003-10-22  Paolo Carlini  <pcarlini@suse.de>
1712         PR libstdc++/12657
1713         * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1714         Implement resolution of DR 292 (WP).
1715         * docs/html/ext/howto.html: Add entry for DR 292.
1717 2003-10-21  Benjamin Kosnik  <bkoz@redhat.com>
1719         * include/ext/mt_allocator.h: Change include to gthr.h.
1720         * include/ext/rope: Same. Add _Refcount_base definitions.
1721         * include/ext/pool_allocator.h: Adjust namespaces.
1722         * include/bits/stl_threads.h (_Refcount_base): Move.
1723         Put remaining into namespace __gnu_cxx.
1724         
1725 2003-10-21  Benjamin Kosnik  <bkoz@redhat.com>
1727         PR libstdc++/9858
1728         * include/bits/locale_facets.h (ctype<char>): Remove
1729         __ctype_abstract_base.
1730         (ctype<char>::do_is): Remove.
1731         (ctype<char>::do_scan_is): Remove.
1732         * src/ctype.cc: Same. Inline the rest.
1733         * testsuite/22_locale/ctype/is/char/9858.cc: New.
1734         * config/os/aix/ctype_noninline.h: Adjust ctor.
1735         * config/os/bsd/freebsd/ctype_noninline.h: Same.
1736         * config/os/bsd/netbsd/ctype_noninline.h: Same.
1737         * config/os/djgpp/ctype_noninline.h: Same.
1738         * config/os/generic/ctype_noninline.h: Same.
1739         * config/os/gnu-linux/ctype_noninline.h: Same.
1740         * config/os/hpux/ctype_noninline.h: Same.
1741         * config/os/irix/irix5.2/ctype_noninline.h: Same.
1742         * config/os/irix/irix6.5/ctype_noninline.h: Same.
1743         * config/os/mingw32/ctype_noninline.h: Same.
1744         * config/os/newlib/ctype_noninline.h: Same.
1745         * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
1746         * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
1747         * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
1748         * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
1749         * config/os/windiss/ctype_noninline.h: Same.
1751 2003-10-21  Paolo Carlini  <pcarlini@suse.de>
1753         * src/locale.cc: Tweak a comment.
1754         * src/localename.cc: Move a comment.
1756 2003-10-20  Benjamin Kosnik  <bkoz@redhat.com>
1758         PR libstdc++/10081
1759         * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
1760         * testsuite_hooks.cc: Same.
1761         * 22_locale/numpunct/members/pod/1.cc: Edit.
1762         * 22_locale/numpunct/members/pod/2.cc: Same.
1763         * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
1764         * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
1765         * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
1766         * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
1767         * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
1768         * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
1769         * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
1770         * 27_io/basic_istream/sentry/pod/1.cc: New.
1771         * 27_io/basic_ostream/sentry/pod/1.cc: New.
1772         * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
1773         * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
1775 2003-10-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1777         * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
1778         of external _MIPS_SIM_ABI32.
1780 2003-10-20  Phil Edwards  <phil@codesourcery.com>
1782         * configure.ac:  Fix comment typo.
1783         * configure.host:  Add vxworks to host_os switch.
1784         * crossconfig.m4:  Remove old commented os_include_dir variables
1785         left over from autotools transition.
1786         (*-vxworks):  New stanza.
1787         (*-windiss):  Add missing symbols.
1788         * configure:  Regenerate.
1789         * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
1790         config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
1791         New files.
1792         * config/os/windiss/os_defines.h:  Define __C9X__.
1794 2003-10-19  David Edelsohn  <edelsohn@gnu.org>
1796         PR other/12506
1797         * configure.host (aix4,aix*): Define os_include_dir to os/generic.
1799 2003-10-18  Andreas Tobler  <a.tobler@schweiz.ch>
1801         * src/locale.cc (locale::_S_initialize): Re-apply workaround a
1802         confusion of the use of the gthr API when __gthread_active_p()
1803         returns true.
1805 2003-10-17  Benjamin Kosnik  <bkoz@redhat.com>
1807         * src/Makefile.am: Add new files.
1808         * src/Makefile.in: Regenerate.
1809         * src/globals.cc: Split into..
1810         * src/globals_io.cc: New.
1811         * src/globals_locale.cc: New.
1812         * src/ios.cc: Split into...
1813         * src/ios_init.cc: New.
1814         * src/ios_locale.cc: New.
1815         * src/locale-inst.cc: Split into..
1816         * src/wlocale-inst.cc: New.
1817         * src/locale-misc-inst.cc: New.
1818         * src/locale.cc, src/localename: Split into...
1819         * src/locale_facets.cc: New.
1820         * src/locale_init.cc: New.
1821         * src/wstring-inst.cc: Add copyright info.
1823 2003-10-16  Petur Runolfsson  <peturr02@ru.is>
1825         PR libstdc++/11450
1826         PR libstdc++/11543
1827         PR libstdc++/12065
1828         * config/io/basic_file_stdio.cc (__basic_file::seekoff):
1829         Change return value from streampos to streamoff.
1830         (__basic_file::seekpos): Delete.
1831         * config/io/basic_file_stdio.h: Same.
1832         * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
1833         * include/Makefile.am (bits_headers): Add bits/postypes.h.
1834         * include/bits/char_traits.h: Include bits/postypes.h instead of
1835         bits/fpos.h.
1836         * include/bits/fstream.tcc (basic_filebuf::open,
1837         basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
1838         values, use == and != instead.
1839         (basic_filebuf::_M_seek): Use explicit conversion from streamoff
1840         to pos_type.
1841         (basic_filebuf::imbue):  Don't use ! on pos_type values, use
1842         == instead. Don't use __check_facet(_M_codecvt) unless is_open().
1843         * include/bits/postypes.h: New file.
1844         Add __streamoff_base_type typedef, streamsize.
1845         (streamoff, streampos, wstreampos): Define typedefs, with
1846         streamoff defined as...
1847         (streamoff): New class. Document implementation defined
1848         aspects.
1849         (fpos): New implementation. Document implementation defined
1850         aspects.
1851         * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
1852         explicit conversion from pos_type to off_type.
1853         * include/std/std_iosfwd.h: Include bits/postypes.h instead
1854         of bits/fpos.h.
1855         * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
1856         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
1857         * testsuite/27_io/fpos/11450.cc: New test.
1858         * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
1859         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
1860         * testsuite/27_io/types/3.cc: New test.
1862 2003-10-16  Benjamin Kosnik  <bkoz@redhat.com>
1864         * configure.host: Remove fpos_include_dir.
1865         * configure.ac: Remove FPOS_INC_SRCDIR.
1866         * configure: Regenerate.
1867         * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
1868         * aclocal.m4: Regenerate.
1869         * include/Makefile.am (host_headers): Remove fpos.h.
1870         (bits_headers): Add postypes.h.
1871         * include/Makefile.in: Regenerate.
1872         * config/os/gnu-linux/fposh: Remove.
1873         * config/os/generic/fpos.h: Remove.
1875         * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
1876         * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
1877         * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
1878         * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
1879         * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
1880         * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
1881         * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
1882         * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
1883         * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
1884         * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
1885         * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
1886         * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
1887         * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
1888         * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
1889         * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
1890         * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1891         * testsuite/27_io/objects/char/10.cc: Same.
1893 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
1895         * src/locale.cc (locale::locale(const char*)): ... one
1896         more comparison missed in the previous commit.
1898 2003-10-16  Benjamin Kosnik  <bkoz@redhat.com>
1900         * acconfig.h: Add HAVE_DRAND48.
1901         * crossconfig.m4: Remove ISATTY.
1902         * aclocal.m4: Regenerated.
1903         * config.h.in: Regenerated.
1904         * configure: Regenerated.
1905         
1906 2003-10-16  Bernardo Innocenti  <bernie@develer.com>
1908         * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
1909         __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
1910         Document SMP safeness of asm macros.
1912 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
1914         * src/locale.cc (locale::locale(const char*)): Tweak
1915         a couple of comparisons to use basic_string operators.
1917 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
1919         PR libstdc++/12540
1920         * config/locale/gnu/monetary_members.cc
1921         (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
1922         Don't leak memory if new throws.
1923         * src/locale.cc (locale::locale(const char*)): In order not
1924         to leak memory in case new throws, use a basic_string type
1925         for __res too and avoid strdup.
1927 2003-10-14  Jeff Bailey  <jbailey@nisa.net>
1928         
1929         PR libstdc++/12562
1930         * crossconfig.m4: Share the config between *-linux* and *-gnu*.
1931         * configure: Regenerate.
1933 2003-10-14  Carlo Wood  <carlo@alinoe.com>
1935         PR libstdc++/12600
1936         * include/bits/demangle.h (session<Allocator>::
1937           decode_unqualified_name(string_type& output)): Fail on a
1938           <operator-name> when decoding <template-argument>.
1939         * testsuite/demangle/regression/cw-15.cc: New.
1941 2003-10-14  Paolo Carlini  <pcarlini@unitus.it>
1943         PR libstdc++/11480
1944         * include/bits/stl_algo.h (unique): Fix.
1945         * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
1946         * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
1947         * testsuite/25_algorithms/unique/2.cc: New.
1949 2003-10-14  Paolo Carlini  <pcarlini@unitus.it>
1951         * src/localename.cc (_M_replace_categories, M_replace_facet):
1952         Const-ify a couple of variables.
1954 2003-10-14  Petur Runolfsson  <peturr02@ru.is>
1955             Andreas Tobler  <a.tobler@schweiz.ch>
1957         * src/locale.cc (locale::_S_initialize): Workaround a confusion
1958         of the use of the gthr API when __gthread_active_p() returns true.
1960 2003-10-12  Petur Runolfsson  <peturr02@ru.is>
1961             Paolo Carlini  <pcarlini@unitus.it>
1963         PR libstdc++/11460
1964         * src/strstream.cc (pbackfail): Fix to use to_int_type.
1965         * testsuite/backward/11460.cc: New, from the PR.
1967 2003-10-12  Paolo Carlini  <pcarlini@unitus.it>
1969         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
1970         Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
1971         * include/bits/basic_string.tcc: Likewise.
1972         * include/bits/ios_base.h: Likewise.
1973         * include/bits/istream.tcc: Likewise.
1974         * include/bits/locale_facets.tcc: Likewise.
1975         * include/bits/ostream.tcc: Likewise.
1976         * include/bits/stl_function.h: Likewise.
1977         * include/bits/stl_multiset.h: Likewise.
1978         * include/bits/stl_pair.h: Likewise.
1979         * include/bits/stl_set.h: Likewise.
1980         * include/bits/streambuf_iterator.h
1981         * include/std/std_iosfwd.h: Likewise.
1982         * include/std/std_istream.h: Likewise.
1983         * include/std/std_sstream.h: Likewise.
1984         * include/std/std_streambuf.h: Likewise.
1985         * src/ios.cc: Likewise.
1986         * include/bits/c++config:
1987         Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
1988         * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
1989         dg-error directive due to removal of a blank line.
1990         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1992 2003-10-12  Andreas Tobler  <a.tobler@schweiz.ch>
1993             Paolo Carlini  <pcarlini@unitus.it>
1995         PR libstdc++/11844/11740 (cont)
1996         * config/os/generic/ctype_inline.h (ctype<char>::is):
1997         Generically, use a bitmasksize of 15 (instead of 10);
1998         Fix the logic to actually return (M & m) != 0 as per
1999         22.2.1.1.2.
2001 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
2003         * crossconfig.m4 (*-uclinux*): New target.
2004         * configure: Regenerate.
2006 2003-10-10  Paolo Carlini  <pcarlini@unitus.it>
2008         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
2009         Avoid unnecessarily calling __builtin_alloca and dealing
2010         explicitly with width() smaller than zero.
2011         (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
2012         const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
2013         const char*), operator<<(basic_ostream<char, _Traits>&,
2014         const char*), operator<<(basic_ostream, const basic_string&)):
2015         Likewise.
2017 2003-10-09  Benjamin Kosnik  <bkoz@redhat.com>
2019         * config/linker-map.gnu: Make more *_type_info bits visible.
2020         Move new/delete bits back into GLIBCXX space.
2022         * include/bits/locale_classes.h: Move _M_id out of line, so that
2023         locale::id::_S_highwater can be removed from the export list.
2024         * src/locale.cc (locale::id::_M_id): Define.
2025         
2026 2003-10-09  Andreas Tobler  <a.tobler@schweiz.ch>
2028         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
2029         SPARC64.
2031 2003-10-09  Paolo Carlini  <pcarlini@unitus.it>
2033         PR libstdc++/11844
2034         * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
2035         to conform to the requirements of 22.2.1.
2036         * config/os/bsd/freebsd/ctype_base.h: Likewise.
2037         * config/os/djgpp/ctype_base.h: Likewise.
2038         * config/os/generic/ctype_base.h: Likewise.
2039         * config/os/gnu-linux/ctype_base.h: Likewise.
2040         * config/os/hpux/ctype_base.h: Likewise.
2041         * config/os/irix/irix6.5/ctype_base.h: Likewise.
2042         * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
2043         * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
2044         * testsuite/22_locale/ctype/11844.cc: New.
2046         * config/locale/generic/ctype_members.cc (do_is):
2047         Generically, use a bitmasksize of 15 (instead of 10), since
2048         we don't know the numerical encoding of the various categories
2049         in the underlying /usr/include/ctype.h.
2051 2003-10-09  Benjamin Kosnik  <bkoz@redhat.com>
2053         * src/string-inst.cc: Prune.
2054         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2055         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2056         
2057 2003-10-09  Petur Runolfsson  <peturr02@ru.is>
2059         * src/io-inst.cc: Don't include iostream.
2060         * include/bits/ios_base.h (ios_base::failure): Use string.
2061         * src/Makefile.am: Add ios_failure.cc.
2062         * src/Makefile.in: Regenerate.
2063         * src/ios.cc: Move ios_base::failure definitions to...
2064         * src/ios_failure.cc: ...here. New.
2066 2003-10-09  Petur Runolfsson  <peturr02@ru.is>
2068         PR libstdc++/9874
2069         * include/bits/fstream.tcc (basic_filebuf::seekoff):
2070         Move code needed for both seekoff and seekpos...
2071         (basic_filebuf::_M_seek): ...here. New function.
2072         (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
2073         * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
2074         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
2076         * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
2078 2003-10-08  Paolo Carlini  <pcarlini@unitus.it>
2080         * include/bits/locale_facets.tcc: More minor cosmetic
2081         changes and const-ifications of some variables.
2083 2003-10-07  Paolo Carlini  <pcarlini@unitus.it>
2085         * include/bits/locale_facets.tcc: Minor cosmetic changes
2086         and const-ifications of some variables.
2088         * include/bits/locale_facets.tcc
2089         (money_get::do_get(..., string_type&)): Simplify an if-else.
2091 2003-10-06  Paolo Carlini  <pcarlini@unitus.it>
2093         PR libstdc++/11740
2094         * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
2095         Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
2096         * config/locale/generic/ctype_members.cc: Same.
2097         * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
2099 2003-10-06  Paolo Carlini  <pcarlini@unitus.it>
2101         * include/bits/locale_facets.tcc (__pad<>::_S_pad):
2102         Improve performance-wise: avoid one traits::copy, avoid
2103         the __builtin_alloca, streamline.
2105 2003-10-05  Paolo Carlini  <pcarlini@unitus.it>
2107         * include/bits/locale_facets.tcc
2108         (num_put::do_put(..., bool)): Prefer ?: to if-else.
2109         (time_get::_M_extract_name): Qualify min with std::.
2110         (__pad<>::_S_pad): Constify two variables; simplify an
2111         if-else statement factoring out some code.
2113         * include/bits/locale_facets.tcc: Minor cosmetic changes.
2115 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
2117         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
2118         Constify a couple of variables.
2119         (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
2120         ++__beg to *__beg++.
2122 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
2123             Petur Runolfsson  <peturr02@ru.is>
2125         * include/ext/stdio_sync_filebuf.h: Don't include the whole
2126         <fstream>, only <streambuf> and <cstdio>.
2128 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
2130         PR libstdc++/12206
2131         * include/bits/fstream.tcc (imbue): In case a codecvt facet
2132         is not available, set _M_codecvt = 0.
2133         * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
2135 2003-10-02  Harald Boehme  <boehme@informatik.hu-berlin.de>
2137         PR libstdc++/12451
2138         * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
2139         
2140 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
2142         * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
2143         * src/locale.cc: Define.
2144         * src/localename.cc: Use it.
2145         * config/locale/generic/time_members.h: Same.
2146         * config/locale/gnu/messages_members.h: Same.
2147         * config/locale/gnu/time_members.h: Same.
2149 2003-10-02  Paolo Carlini  <pcarlini@unitus.it>
2151         PR libstdc++/12232
2152         * include/bits/fstream.tcc (seekoff): Ignore the openmode
2153         argument; simplify.
2154         * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
2155         seekpos): Remove the openmode argument.
2156         * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
2157         seekpos): Remove redundant placeholder for the openmode argument.
2158         * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
2159         * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
2160         * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
2161         * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
2162         * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
2164 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
2166         * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
2167         (locale::facet::_S_get_c_locale): Same.
2168         
2169 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
2171         * config/linker-map.gnu: Export _S_get_c_locale instead of
2172         _S_c_locale object.
2174 2003-10-02  Petur Runolfsson  <peturr02@ru.is>
2176         * config/locale/generic/c_locale.cc
2177         (category_names, locale::_S_categories): Const qualify.
2178         * config/locale/gnu/c_locale.cc: Same.
2179         * config/locale/generic/time_members.h (__timepunct::__timepunct):
2180         Copy string contents before assigning to _M_name_timepunct,
2181         qualify strcpy and strlen with std::.
2182         * config/locale/gnu/time_members.h: Same.
2183         * config/locale/gnu/messages_members.h (messages::messages):
2184         Copy string contents before assigning to _M_name_messages,
2185         qualify strcpy and strlen with std::.
2186         * config/os/gnu-linux/ctype_noninline.h
2187         (ctype<char>::classic_table()): Don't call locale::classic().
2188         * include/bits/locale_classes.h
2189         (locale::_S_categories): Const qualify. 
2190         (locale::_S_once, locale::_S_initialize_once,
2191         locale::facet::_S_once, locale::facet::_S_initialize_once,
2192         locale::facet::_S_get_c_locale): Declare.
2193         (locale::_S_initialize): Don't define.
2194         (locale::facet::_S_c_locale): Make private.
2195         (locale::facet::_S_c_name): Same, const qualify.
2196         (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
2197         parameters, add throw() specifier.
2198         * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
2199         messages::_M_name_messages): Const qualify.
2200         * src/locale.cc
2201         (locale::_S_once, locale::facet::_S_once): Define.
2202         (locale::classic): Move initialization code...
2203         (locale::_S_initialize_once): ...here.  
2204         (locale::_S_initialize): Call _S_initialize_once through
2205         __gthread_once.
2206         (locale::facet::_S_initialize_once): Initialize _S_c_locale.
2207         (locale::facet::_S_get_c_locale): Call _S_initialize_once through
2208         __gthread_once before returning _S_c_locale.
2209         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
2210         Drop unused parameters, add throw() specifier, don't initialize
2211         locale::facet::_S_c_locale and _S_c_name.
2212         
2213         * config/locale/generic/messages_members.h:
2214         Replace _S_c_locale with _S_get_c_locale().
2215         * config/locale/gnu/c_locale.cc: Same.
2216         * config/locale/gnu/messages_members.h: Same.
2217         * config/locale/gnu/numeric_members.cc: Same.
2218         * config/locale/gnu/time_members.cc: Same.
2219         * config/os/gnu-linux/ctype_noninline.h: Same.
2220         * include/bits/locale_facets.h: Same.
2221         * include/bits/locale_facets.tcc: Same.
2222         * src/codecvt.cc: Same.
2223         * src/ctype.cc: Same.
2225 2003-10-02  Carlo Wood  <carlo@alinoe.com>
2227         * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
2228         Decode symbols that start with _GLOBAL_[ID]_ differently: the
2229         trailing part ends with a terminating zero and is not necessarily an
2230         encoding.
2231         * src/demangle.cc (): Same.
2232         * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
2234 2003-10-02  Paolo Carlini  <pcarlini@unitus.it>
2236         * testsuite/22_locale/locale/cons/12438.cc: Use
2237         __gnu_test::try_named_locale("").
2239 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2241         * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
2242         (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
2243         instead of drand48.
2244         * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
2245         * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
2246         HAVE_DRAND48.
2247         * config.h.in, configure: Regenerate.
2248         * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
2249         lrand48 use.
2251 2003-10-01  Nathan Myers  <ncm@cantrip.org>
2253         * include/bits/locale_facets.tcc (time_put::put): Avoid
2254         expensive *__s++, in favor of *__s, ++__s.
2256 2003-10-01  Paolo Carlini  <pcarlini@unitus.it>
2258         * include/bits/locale_facets.tcc (time_put::put): Minor
2259         tweak to the previous commit.
2261 2003-10-01  Paolo Carlini  <pcarlini@unitus.it>
2263         PR libstdc++/12439
2264         * include/bits/locale_facets.tcc (time_put::put): Deal
2265         with the three issues pointed out by the PR.
2266         * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
2267         * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
2268         * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
2269         * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
2270         * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
2272 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
2274         * include/bits/stl_algo.h: Minor cosmetic reformattings.
2276 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
2278         * include/bits/stl_algo.h (search_n): Tweak, to spare the
2279         first --__n.
2281 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
2283         * testsuite/22_locale/locale/cons/12352.cc: Explicitly
2284         qualify exception name.
2286 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
2288         PR libstdc++/12438
2289         * include/bits/locale_facets.tcc (locale::combine): Don't
2290         leak memory if _M_replace_facet throws.
2291         * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
2293         * include/bits/locale_classes.h (locale::locale(const locale&,
2294         _Facet*)): Tweak, use consistently _M_remove_reference.
2296 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
2298         PR libstdc++/12352 (cont)
2299         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
2300         Don't leak __cloc; don't leak if any of the _M_init_facet(...)
2301         calls fail.
2302         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
2303         (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
2304         !_M_caches, !_M_names.
2306 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2308         * configure.host: Handle Solaris 2.5 micro releases explicitly.
2309         Remove wildcards from Solaris 2.6, 7-9: there were no
2310         micro releases.
2311         Treat Solaris 10 and up like 7-9.
2313 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
2315         * include/bits/stl_algo.h (search_n): Improve the previous
2316         fix as suggested by Martin.
2318 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
2320         PR libstdc++/12296
2321         * include/bits/istream.tcc (peek): Set eofbit if sgetc
2322         returns eof.
2323         * testsuite/27_io/basic_istream/peek/char/12296.cc:
2324         New, from the PR.
2326 2003-09-29  Nathan Myers  <ncm@cantrip.org>
2327             Paolo Carlini  <pcarlini@unitus.it>
2329         PR libstdc++/11400
2330         * include/bits/stl_algo.h (search_n):
2331         Use iterator_traits<>::difference_type for __n.
2332         * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
2334 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
2336         * testsuite/22_locale/locale/cons/12352.cc:
2337         Use __attribute__((unused)) for test.
2339 2003-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
2341         * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either 
2342         "Son" or "So" as abbreviated name for Sunday in de_DE locale.
2343         * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
2345 2003-09-26  Brad Spencer  <spencer@infointeractive.com>
2347         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
2348         Explicitly qualify exceptions.
2349         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
2350         * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
2351         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2352         * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
2353         
2354 2003-09-25  Paolo Carlini  <pcarlini@unitus.it>
2356         PR libstdc++/12352
2357         * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
2358         size_t)): Don't leak if memory allocations for _M_facets,
2359         _M_caches, and _M_names fail.
2360         (locale::_Impl::_Impl(const char*, size_t)): Ditto.
2361         (locale::_Impl::_M_replace_categories(const _Impl*,
2362         category)): Ditto.
2363         (locale::_Impl::_M_install_facet(const locale::id*,
2364         const facet*)): Ditto.
2365         * include/bits/locale_classes.h (locale::locale(const locale&,
2366         _Facet*)): Don't leak memory.
2367         * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
2369         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
2370         bool)): Qualify with std:: strcpy, tweak.
2371         * include/bits/locale_classes.h
2372         (locale::_Impl::_M_check_same_name): Qualify strcmp.
2374 2003-09-25  Brad Spencer  <spencer@infointeractive.com>
2376         PR libstdc++/6072
2377         * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
2378         wcstof, iswblank.       
2379         * aclocal.m4: Regenerate.
2380         * config.h.in: Regenerate.
2381         * configure: Regenerate.
2382         * crossconfig.m4: Add in wchar_t bits for solaris crosses.
2383         * config/io/basic_file_stdio.cc: Guard unistd.h.
2384         * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
2385         * include/c_std/std_cwchar.h: Same.
2386         * include/c_std/std_cwctype.h: Same.
2387         
2388 2003-09-25  Benjamin Kosnik  <bkoz@redhat.com>
2390         PR libstdc++/11065
2391         * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
2392         * config/locale/generic/ctype_members.cc: Same.
2393         * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
2394         * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
2396         * config/os/generic/ctype_inline.h: Update.
2397         
2398 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
2400         * src/Makefile.am (version_dep): New variable.
2401         (libstdc___la_DEPENDENCIES): Use it to add dependency on
2402         libstdc++-symbol.ver only when using symbol versioning.
2403         * src/Makefile.in: Regenerate.
2405 2003-09-23  Benjamin Kosnik  <bkoz@redhat.com>
2407         * include/bits/locale_facets.tcc: Tweak to avoid warnings.
2408         * testsuite/testsuite_hooks.h: Same.
2409         * testsuite/*/*.cc: Same.
2411 2003-09-22  Petur Runolfsson  <peturr02@ru.is>
2413         * include/bits/istream.tcc (basic_istream::read,
2414         basic_istream::readsome, basic_istream::putback,
2415         basic_istream::unget, operator>>(basic_istream, CharT)):
2416         Avoid redundant setstate(failbit) calls when sentry::operator bool()
2417         returns false.
2419 2003-09-22  Carlo Wood  <carlo@alinoe.com>
2421         PR libstdc++/12365
2422         * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
2423         char const*, int, int)):  Remove unused identifier
2424         cv_qualifier for overloaded constructor.
2426 2003-09-18  Benjamin Kosnik  <bkoz@redhat.com>
2428         PR libstdc++/11504
2429         * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
2430         WARN_FLAGS, remove -Wno-format.
2431         * aclocal.m4: Regenerate.
2432         * configure: Regenerate.
2434 2003-09-18  Petur Runolfsson  <peturr02@ru.is>
2436         * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
2437         * config/io/basic_file_stdio.h: Same.
2438         * include/std/std_fstream.h (__ctype_type): Delete.
2439         * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
2440         
2441 2003-09-17  Benjamin Kosnik  <bkoz@redhat.com>
2443         PR libstdc++/12239
2444         * configure.host (abi_baseline_pair): Error out on solaris2
2445         configurations without a minor version number.
2447 2003-09-13  Phil Edwards  <phil@codesourcery.com>
2449         * docs/doxygen/run_doxygen:  Clear GENERATE_TAGFILE entirely
2450         if man pages are on.
2451         * docs/doxygen/user.cfg.in:  And here.
2453 2003-09-10  Daniel Jacobowitz  <drow@mvista.com>
2454             Andreas Jaeger <aj@suse.de>
2456         PR libstdc++/12189
2457         * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
2458         abi_check if cross compiling.
2459         * aclocal.m4: Regenerated.
2460         * configure: Regenerated.
2462 2003-09-10  Jeffrey D. Oldham  <oldham@codesourcery.com>
2464         * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
2465         NULL, return NULL.  This reflects a C++ ABI change 2003 Sep 05.
2466         (__cxa_vec_new3): Likewise.
2468 2003-09-10  Petur Runolfsson  <peturr02@ru.is>
2470         * include/bits/fstream.tcc (basic_filebuf::seekoff):
2471         Use codecvt::length to handle variable-width stateless encodings
2472         correctly.
2473         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
2474         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
2476 2003-09-10  Alan Modra  <amodra@bigpond.net.au>
2478         * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
2479         rather than or'ing.
2481 2003-09-09  Alan Modra  <amodra@bigpond.net.au>
2483         * configure: Regenerate.
2485 2003-09-09  David Edelsohn  <edelsohn@gnu.org>
2487         * src/ios.cc (ios_base::Init::Init): Remove unnecessary
2488         qualifier from _S_synced_with_stdio.
2490 2003-09-09  Bernardo Innocenti  <bernie@develer.com>
2492         * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
2494 2003-09-04  Petur Runolfsson  <peturr02@ru.is>
2496         PR libstdc++/9028
2497         * include/bits/fstream.tcc
2498         (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
2499         (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
2500         _M_ext_buf_size, _M_ext_next and _M_ext_end.
2501         (basic_filebuf::underflow): Handle variable-width stateless
2502         encodings (codecvt::encoding() == 0), including UTF-8.
2503         * include/std/std_fstream.h (basic_filebuf):
2504         Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
2505         * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
2506         * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
2507         * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
2508         * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
2509         * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
2510         * testsuite/27_io/objects/wchar_t/12.cc: New test.
2511         * testsuite/27_io/objects/wchar_t/13.cc: New test.
2513 2003-09-04  Jonathan Wakely  <redi@gcc.gnu.org>
2515         * docs/html/faq/index.html: Note that a namespace alias can't be
2516         used when specialising templates in extension namespace.
2517         * docs/html/faq/index.txt: Regenerate.
2519 2003-09-03  Petur Runolfsson  <peturr02@ru.is>
2521         PR libstdc++/12048
2522         * include/ext/stdio_sync_filebuf.h
2523         (stdio_sync_filebuf::_M_unget_buf): Declare it.
2524         (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
2525         (stdio_sync_filebuf::uflow): Store the returned character in
2526         _M_unget_buf.
2527         (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
2528         _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
2529         (stdio_sync_filebuf<char>::xsgetn): Store last read character in
2530         _M_unget_buf, if any, else eof().
2531         (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
2532         _M_unget_buf, if any, else eof().
2533         * testsuite/27_io/objects/char/12048.cc: Rename to...
2534         * testsuite/27_io/objects/char/12048-1.cc: ...this.
2535         * testsuite/27_io/objects/char/12048-2.cc: New test.
2536         * testsuite/27_io/objects/char/12048-3.cc: New test.
2537         * testsuite/27_io/objects/char/12048-4.cc: New test.
2538         * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
2539         * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
2540         * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
2541         * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
2542         * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
2543         * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
2544         * testsuite/ext/stdio_sync_filebuf_char.cc
2545         (test02, test03, test04, test05): New tests.
2546         * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
2547         (test02, test03, test04, test05): New tests.
2549 2003-09-03  Petur Runolfsson  <peturr02@ru.is>
2551         * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
2552         stringbuf or strstreambuf. Fix typos.
2554 2003-09-02  Phil Edwards  <phil@codesourcery.com>
2556         * acinclude.m4 (GLIBCXX_ENABLE_HOSTED):  #define _GLIBCXX_HOSTED
2557         appropriately.
2558         * config.h.in:  Add _GLIBCXX_HOSTED.
2559         * libsupc++/eh_term_handler.cc:  Test it here; initialize
2560         __terminate_handler to std::abort if freestanding.
2561         * aclocal.m4, configure:  Regenerated.
2562         * docs/html/configopts.html:  Document --disable-hosted-libstdcxx.
2564 2003-08-29  Nathan Myers  <ncm@cantrip.org>
2565         
2566         PR libstdc++/11990      
2567         * include/bits/locale_facets.tcc (__pad): delete dead code.
2569 2003-08-28  Alan Modra  <amodra@bigpond.net.au>
2571         * configure.ac: Test $with_cross_host against $build_alias, not $build.
2572         * configure: Regenerate.
2574 2003-08-27  Petur Runolfsson  <peturr02@ru.is>
2576         * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
2577         * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
2579 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
2581         * Makefile.am:  Remove trailing whitespace.  Remove needless
2582         "foo = @foo@" assignments.  Replace direct uses of @foo@ with $(foo).
2583         * include/Makefile.am:  Likewise.
2584         * libmath/Makefile.am:  Likewise.
2585         * libsupc++/Makefile.am:  Likewise.
2586         * po/Makefile.am:  Likewise.
2587         * src/Makefile.am:  Likewise.
2588         * testsuite/Makefile.am:  Likewise.
2590         * Makefile.in, include/Makefile.in, libmath/Makefile.in,
2591         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2592         testsuite/Makefile.in:  Regenerated.
2594 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
2596         * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES):  Change quoting of
2597         includedir.
2598         * aclocal.m4, configure:  Regenerate.
2600 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
2602         * acinclude.m4: Include no-executables.m4.
2603         * configure.ac: Uncomment GCC_NO_EXECUTABLES.
2604         * aclocal.m4: Regenerated.
2605         * configure: Regenerated.
2607 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
2609         * acinclude.m4: Don't call AC_ISC_POSIX.
2610         * aclocal.m4: Regenerated.
2611         * configure: Regenerated.
2613 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
2615         * acinclude.m4 (GLIBCXX_CONDITIONAL):  New macro.  Wrap
2616         AM_CONDITIONAL.  Replace all calls to AM_CONDITIONAL with this one.
2617         (GLIBCXX_ENABLE_HOSTED):  New macro, sets new variable is_hosted,
2618         used elsewhere in this file.
2619         (GLIBCXX_EVALUATE_CONDITIONALS):  New macro...
2620         * configure.ac:  ...called here to expand all conditionals.
2621         * Makefile.am:  Conditionalize SUBDIRS on GLIBCXX_HOSTED.
2622         * include/Makefile.am:  Remove redundant gxx_include_dir assignment.
2623         (install-freestanding-headers):  New target, a subset of
2624         install-headers.  Conditionalize install-data-local on GLIBCXX_HOSTED.
2626         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2627         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2628         src/Makefile.in, testsuite/Makefile.in:  Regenerated.
2630 2003-08-26  Phil Edwards  <pme@gcc.gnu.org>
2632         * docs/doxygen/run_doxygen:  Shell fixes.  Remove hardcoded local
2633         pathnames from generated tag file.
2635 2003-08-26  Phil Edwards  <pme@gcc.gnu.org>
2637         * Makefile.am:  Add comment.
2638         * acinclude.m4 (GLIBCXX_CONFIGURE):  Set new glibcxx_SUBDIRS and
2639         SUBDIRS variables.
2640         * configure.ac:  Use them both here, instead of hardcoded lists.
2642         * fragment.am:  Add STAMP varaible.
2643         * include/Makefile.am:  Cosmetic whitespace cleanup.  Use $(LN_S)
2644         instead of @LN_S@.
2645         (stamp-*):  Move file creation rule outside of 'if' branches to
2646         ensure the stamp-* files are actually updated.  Use $(STAMP).
2647         * src/Makefile.am:  Remove now-nonexistant variable.
2648         * libsupc++/Makefile.am:  Likewise.  Snap the assignment chain
2649         for -prefer-pic.
2650         * po/Makefile.am:  Include same fragment as all the others.
2652         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2653         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in:  Regenerated.
2655 2003-08-26  Loren J. Rittle  <ljrittle@acm.org>
2657         * testsuite/data/cin_unget-1.txt: New.
2658         * testsuite/27_io/objects/char/12048.cc: New.
2660 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
2662         * config/os/hpux/os_defines.h: Unconditionally define
2663         _GLIBCXX_GTHREAD_USE_WEAK to 0.
2665 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
2667         * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
2668         crosses to Darwin targets.
2669         * configure: Regenerate.
2671 2003-08-19  Petur Runolfsson  <peturr02@ru.is>
2673         * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
2675 2003-08-17  Phil Edwards  <pme@gcc.gnu.org>
2677         * configure.ac:  GCC_NO_EXECUTABLES was supposed to be commented
2678         in the patch from 3 minutes ago.  Boy, is my face red.
2679         * configure:  At least I remembered to regenerate this.
2681 2003-08-17  Phil Edwards  <pme@gcc.gnu.org>
2683         * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES):  Remove LIBMATH_INCLUDES
2684         and LIBSUPCXX_INCLUDES.  Re-purpose TOPLEVEL_INCLUDES to refer to
2685         things from the top level.
2686         * configure.ac (GLIBCXX_IS_NATIVE):  Determine earlier and re-order.
2687         Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
2688         (currently unused).  Strip the fake-VPATH shell fragment from
2689         automake-generated rules, if present.
2690         * linkage.m4:  Add comment.
2692         * fragment.am:  New file, containing factored-out common settings.
2693         (AM_CPPFLAGS):  Absorb the deprecated INCLUDES variable contents.
2694         * Makefile.am:  Include fragment.am.  Remove common variables.
2695         * include/Makefile.am:  Likewise.
2696         * libmath/Makefile.am:  Likewise.
2697         * libsupc++/Makefile.am:  Likewise.
2698         * po/Makefile.am:  Likewise.  Print rules during check.
2699         * src/Makefile.am:  Likewise.
2700         * testsuite/Makefile.am:  Likewise.
2702         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2703         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2704         src/Makefile.in, testsuite/Makefile.in:  Regenerate.
2706 2003-08-11  John Levon  <levon@movementarian.org>
2708         * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
2709         remaining places for the name change from GLIBCPP_FORCE_NEW
2710         to GLIBCXX_FORCE_NEW
2712 2003-08-11  Benjamin Kosnik  <bkoz@redhat.com>
2714         * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
2715         typedefs to num_*.
2716         * include/bits/basic_ios.tcc: Same.
2717         * include/bits/istream.tcc: Same.
2718         * include/bits/locale_facets.h: Same.
2719         * include/bits/ostream.tcc: Same.
2720         * include/std/std_istream.h: Same.
2721         * include/std/std_ostream.h: Same.
2722         * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
2724         * include/ext/rope: Remove build warning.
2726 2003-08-11  Andreas Jaeger  <aj@suse.de>
2728         * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
2729         to make SMP-safe.
2730         * include/Makefile.in: Regenerated.
2732 2003-08-11  Phil Edwards  <pme@gcc.gnu.org>
2734         * acinclude.m4 (GLIBCXX_CONFIGURE):  Unprecious CC and CFLAGS
2735         when calling AC_PROG_CC.
2736         * aclocal.m4, configure:  Regenerate.
2738 2003-08-11  Phil Edwards  <pme@gcc.gnu.org>
2740         * acinclude.m4:  Properly quote variable which will be expanded
2741         inside makefiles.  Use CXX instead of CC to extract compiler info.
2742         * configure.ac (AC_INIT):  Use the new 4-arg form to finally get the
2743         correct form in PACKAGE.
2744         * aclocal.m4, configure:  Regenerate.
2746 2003-08-08  Benjamin Kosnik  <bkoz@redhat.com>
2748         * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
2749         (check-abi-verbose): Same.
2750         * testsuite/testsuite_performance.h (report_performance): Same.
2752 2003-08-08  Loren J. Rittle  <ljrittle@acm.org>
2754         * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
2756 2003-08-07  Doug Gregor  <dgregor@apple.com>
2758         * include/bits/char_traits.h (char_traits::not_eof): Match operand
2759         types in ? :.
2761 2003-08-07  Bernardo Innocenti  <bernie@develer.com>
2763         PR libstdc++/11784
2764         * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
2765         Replace variants with new BSET-based version.
2767 2003-08-07  Carlo Wood  <carlo@alinoe.com>
2769         * include/bits/demangle.h: Do not use cctype functions that depend
2770         on locale.
2772 2003-08-05  Phil Edwards  <pme@gcc.gnu.org>
2774         * configure.in:  Rename...
2775         * configure.ac:  ...to this.
2776         * docs/html/17_intro/porting.texi:  Update name.
2778         * docs/html/17_intro/porting.html:  Regenerate.
2779         * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2780         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2781         testsuite/Makefile.in:  Regenerate (picks up new dependancy).
2783 2003-08-05  Phil Edwards  <pme@gcc.gnu.org>
2785         * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS):  Put down the crack
2786         pipe, open the window to let out the fumes, redo the option-handling
2787         logic to properly execute the detection test.
2788         * aclocal.m4, configure:  Regenerate.
2790 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
2792         Convert to new autotools.
2793         * acconfig.h:  Update with correct names.
2794         * configure.host (ATOMICITYH):  Rename to atomicity_include_dir.
2795         (qnx6.[12]*):  'q' comes before 's', not after 'w'.
2796         * configure.in:  Update.  Split hardcoded cross-configury settings
2797         out to...
2798         * crossconfig.m4:  ...here.  New file.  Contents untouched.
2799         * acinclude.m4:  Reorganize and rewrite as needed.  Split large
2800         chunks out to...
2801         * linkage.m4:  ...here.  New file.  Math and stdlib linkage tests.
2802         Contents untouched.
2803         * scripts/testsuite_flags.in:  Update.
2805         * Makefile.am:  Remove unneeded AUTOMAKE_OPTIONS settings and other
2806         variables (already generated by automake).
2807         * include/Makefile.am:  Ditto.
2808         * libmath/Makefile.am:  Ditto.
2809         * libsupc++/Makefile.am:  Ditto.
2810         * po/Makefile.am:  Ditto.
2811         * src/Makefile.am:  Ditto.
2813         * aclocal.m4:  Regenerate using new versions.
2814         * config.h.in:  Ditto.
2815         * configure:  Ditto.
2816         * Makefile.in:  Ditto.
2817         * include/Makefile.in:  Ditto.
2818         * libmath/Makefile.in:  Ditto.
2819         * libsupc++/Makefile.in:  Ditto.
2820         * po/Makefile.in:  Ditto.
2821         * src/Makefile.in:  Ditto.
2822         * testsuite/Makefile.in:  Ditto.
2824 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
2826         * po/libstdc++.pot:  Re-extract/regenerate.
2828 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
2830         * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
2831         Remove unneeded variable assignments.  Leave them for automake.
2832         * testsuite/lib/libstdc++-v3.exp:  Rename...
2833         * testsuite/lib/libstdc++.exp:  ...to this.  Adjust function names
2834         accordingly.
2835         * testsuite/libstdc++-v3.dg/dg.exp:  Rename...
2836         * testsuite/libstdc++-dg/normal.exp:  ...to this.  Adjust function
2837         names accordingly.
2839 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
2841         * docs/doxygen/guide.html:  run_doxygen uses bash.
2842         * docs/doxygen/mainpage.html:  We'll be shipping tag files.
2843         * docs/doxygen/run_doxygen:  Tweaks and improvements.
2844         * docs/doxygen/user.cfg.in:  Set GENERATE_TAGFILE.
2845         * docs/html/install.html:  Update autoconf/automake requirements.
2846         * docs/html/test.html:  Add section describing DejaGNU support.
2847         * docs/html/17_intro/confdeps.dot:  New file, generates...
2848         * docs/html/17_intro/confdeps.png:  ...this new file.
2849         * docs/html/Makefile:  Generated here.
2850         * docs/html/17_intro/configury.html:  New file.
2852 2003-07-31  Phil Edwards  <pme@gcc.gnu.org>
2854         * testsuite/lib/libstdc++-v3-dg.exp:  Rename...
2855         * testsuite/lib/libstdc++-v3.exp:  ...to this.
2856         * testsuite/libstdc++-v3.dg/dg.exp:  No special case needed now.
2858 2003-07-31  Doug Gregor  <dgregor@apple.com>
2860         Add user specialization tests.
2861         * testsuite/23_containers/deque/1.cc: New.
2862         * testsuite/23_containers/list/1.cc: New.
2863         * testsuite/23_containers/map/1.cc: New.
2864         * testsuite/23_containers/multimap/1.cc: New.
2865         * testsuite/23_containers/multiset/1.cc: New.
2866         * testsuite/23_containers/set/1.cc: New.
2867         * testsuite/23_containers/vector/1.cc: New.
2869 2003-07-31  Benjamin Kosnik  <bkoz@redhat.com>
2871         Reshuffle 23_containers testsuite.
2872         * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
2873         bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
2874         list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
2875         map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
2876         set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
2877         vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
2878         vector_resize.cc: Split into...
2879         * 23_containers/bitset/cons/1.cc: New.
2880         * 23_containers/bitset/cons/6282.cc: New.
2881         * 23_containers/bitset/count/6124.cc: New.
2882         * 23_containers/bitset/operations/1.cc: New.
2883         * 23_containers/bitset/operations/2.cc: New.
2884         * 23_containers/bitset/test/1.cc: New.
2885         * 23_containers/bitset/to_ulong/1.cc: New.
2886         * 23_containers/deque/cons/1.cc: New.
2887         * 23_containers/deque/cons/2.cc: New.
2888         * 23_containers/deque/operators/1.cc: New.
2889         * 23_containers/list/capacity/1.cc: New.
2890         * 23_containers/list/cons/1.cc: New.
2891         * 23_containers/list/cons/2.cc: New.
2892         * 23_containers/list/cons/3.cc: New.
2893         * 23_containers/list/cons/4.cc: New.
2894         * 23_containers/list/cons/5.cc: New.
2895         * 23_containers/list/cons/6.cc: New.
2896         * 23_containers/list/cons/7.cc: New.
2897         * 23_containers/list/cons/8.cc: New.
2898         * 23_containers/list/cons/9.cc: New.
2899         * 23_containers/list/modifiers/1.cc: New.
2900         * 23_containers/list/modifiers/2.cc: New.
2901         * 23_containers/list/modifiers/3.cc: New.
2902         * 23_containers/list/operators/1.cc: New.
2903         * 23_containers/list/operators/2.cc: New.
2904         * 23_containers/list/operators/3.cc: New.
2905         * 23_containers/list/operators/4.cc: New.
2906         * 23_containers/map/insert/1.cc: New.
2907         * 23_containers/map/operators/1.cc: New.
2908         * 23_containers/map/operators/1_neg.cc: New.
2909         * 23_containers/multiset/insert/1.cc: New.
2910         * 23_containers/priority_queue/members/7161.cc: New.
2911         * 23_containers/queue/members/7157.cc: New.
2912         * 23_containers/set/operators/1_neg.cc: New.
2913         * 23_containers/stack/members/7158.cc: New.
2914         * 23_containers/vector/bool/1.cc: New.
2915         * 23_containers/vector/bool/6886.cc: New.
2916         * 23_containers/vector/capacity/1.cc: New.
2917         * 23_containers/vector/capacity/2.cc: New.
2918         * 23_containers/vector/capacity/8230.cc: New.
2919         * 23_containers/vector/cons/1.cc: New.
2920         * 23_containers/vector/cons/2.cc: New.
2921         * 23_containers/vector/cons/3.cc: New.
2922         * 23_containers/vector/cons/4.cc: New.
2923         * 23_containers/vector/cons/6513.cc: New.
2924         * 23_containers/vector/element_access/1.cc: New.
2925         * 23_containers/vector/modifiers/1.cc: New.
2926         * 23_containers/vector/modifiers/2.cc: New.
2927         * 23_containers/vector/resize/1.cc: New.
2929 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2931         * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
2932         dg-options.
2933         * testsuite/thread/pthread2.cc: Likewise.
2934         * testsuite/thread/pthread3.cc: Likewise.
2935         * testsuite/thread/pthread4.cc: Likewise.
2936         * testsuite/thread/pthread5.cc: Likewise.
2937         * testsuite/thread/pthread6.cc: Likewise.
2938         * testsuite/thread/pthread7-rope.cc: Likewise.
2940 2003-07-30  Phil Edwards  <pme@gcc.gnu.org>
2942         * include/bits/c++config:  Partial reversion (comment placement) of
2943         previous patch.
2945 2003-07-30  Benjamin Kosnik  <bkoz@redhat.com>
2947         * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
2948         (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
2949         (_GLIBCXX_AT_AT): Remove.
2950         (__USE_MALLOC): Remove.
2951         * include/std/std_fstream.h: Modify.
2952         * include/bits/basic_ios.h: Same.
2953         * include/bits/valarray_array.h: Same.
2954         * include/c_std/std_cmath.h: Same.
2955         * include/c_std/cmath.tcc: Same.
2956         * include/std/std_vector.h: Same.
2957         * include/std/std_string.h: Same.
2958         * include/std/std_stack.h: Same.
2959         * include/std/std_queue.h: Same.
2960         * include/std/std_list.h: Same.
2961         * include/std/std_deque.h: Same.
2962         * include/std/std_streambuf.h: Same.
2963         * include/std/std_sstream.h: Same.
2964         * include/std/std_ostream.h: Same.
2965         * include/std/std_istream.h: Same.
2966         * include/bits/valarray_array.tcc: Same, format.
2968         * include/c/std_cctype.h: Fix include guards.
2969         * include/c/std_cerrno.h: Same.
2970         * include/c/std_cfloat.h: Same.
2971         * include/c/std_climits.h: Same.
2972         * include/c/std_clocale.h: Same.
2973         * include/c/std_cmath.h: Same.
2974         * include/c/std_csetjmp.h: Same.
2975         * include/c/std_csignal.h: Same.
2976         * include/c/std_cstdarg.h: Same.
2977         * include/c/std_cstddef.h: Same.
2978         * include/c/std_cstdio.h: Same.
2979         * include/c/std_cstdlib.h: Same.
2980         * include/c/std_cstring.h: Same.
2981         * include/c/std_ctime.h: Same.
2982         * include/c/std_cwchar.h: Same.
2983         * include/c/std_cwctype.h: Same.
2984         * include/c_std/cmath.tcc: Same.
2985         * include/c_std/std_cmath.h: Same.
2987 2003-07-30  Gawain Bolton  <gp.bolton@computer.org>
2989         PR libstdc++/11504.
2990         * include/bits/stl_tree.h: Replace C-style casts with C++-style
2991         casts.  Changes to avoid casting away constness.  Eliminate
2992         _Rb_tree_base_iterator class.  Change _Rb_tree_iterator to use
2993         initialization lists.  Move out implementation of __black_count()
2994         to...
2995         * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
2996         Rename_Rb_tree_base_iterator::_M_increment() to
2997         _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
2998         _Rb_tree_decrement.
2999         * config/linker-map.gnu: Add and change symbols here.
3001 2003-07-30  Jonathan Wakely  <redi@gcc.gnu.org>
3003         * docs/html/22_locale/howto.html: Use locale::classic() instead
3004         of locale("C").
3006 2003-07-28  Benjamin Kosnik  <bkoz@redhat.com>
3008         * testsuite/testsuite_hooks.h: Remove list include.
3009         (func_callback): Define as unique type, not std::list.
3010         Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
3011         * testsuite/libstdc++-v3.dg/dg.exp: Same.
3012         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
3013         * testsuite/23_containers/bitset_ctor.cc:
3014         * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
3015         * testsuite/18_support/numeric_limits.cc: Same.
3016         * testsuite/21_strings/basic_string/append/char/1.cc: Same.
3017         * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
3018         * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
3019         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
3020         * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
3021         * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
3022         * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
3023         * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
3024         * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
3025         * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
3026         * testsuite/21_strings/basic_string/find/char/1.cc: Same.
3027         * testsuite/21_strings/basic_string/find/char/2.cc: Same.
3028         * testsuite/21_strings/basic_string/find/char/3.cc: Same.
3029         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
3030         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
3031         * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
3032         * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
3033         * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
3034         * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
3035         * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
3036         * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
3037         * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
3038         * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
3039         * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
3040         * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
3041         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
3042         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
3043         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
3044         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
3045         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
3046         * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
3047         * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
3048         * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
3049         * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
3050         * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
3051         * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
3052         * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
3053         * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
3054         * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
3055         * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
3056         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
3057         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
3058         * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
3059         * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
3060         * testsuite/23_containers/bitset_ctor.cc: Same.
3061         * testsuite/23_containers/bitset_shift.cc: Same.
3062         * testsuite/23_containers/vector_ctor.cc: Same.
3063         * testsuite/23_containers/vector_element_access.cc: Same.
3064         * testsuite/24_iterators/istreambuf_iterator.cc: Same.
3065         * testsuite/24_iterators/iterator.cc: Same.
3066         * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
3067         * testsuite/25_algorithms/lower_bound.cc: Same.
3068         * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
3069         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
3070         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
3071         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
3072         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
3073         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
3074         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
3075         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
3076         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
3077         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
3078         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
3079         Same.
3081 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
3083         * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
3084         docs/html/test.html, docs/html/17_intro/headers_cc.txt,
3085         docs/html/17_intro/howto.html, docs/html/ext/howto.html:  Change
3086         GLIBCPP to GLIBCXX (and explain as needed).
3088 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
3090         * README:  Update.
3092 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
3094         * testsuite/22_locale/messages/members/char/1.cc,
3095         testsuite/22_locale/messages/members/char/2.cc,
3096         testsuite/22_locale/messages/members/char/3.cc,
3097         testsuite/22_locale/messages_byname/1.cc:  Update comment regarding
3098         the origin of LOCALEDIR.
3099         * testsuite/lib/libstdc++-v3.exp:  New file.
3101 2003-07-25  Benjamin Kosnik  <bkoz@redhat.com>
3103         * include/bits/char_traits.h: Update copyright, tweak.
3104         * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
3105         std types.
3107 2003-07-24  Matt Austern  <austern@apple.com>
3109         * /include/bits/char_traits.h (class char_traits): Put all the
3110         real work into the new class template __gnu_cxx::char_traits.
3111         Gave generic definitions for member functions.  Types are taken
3112         from the new class template __gnu_cxx::_Char_types.
3113         * testsuite/21_strings/char_traits/requirements/short/1.cc: New
3114         file.  Test of std::char_traits<short>, which serves as a test of
3115         the char_traits primary template.
3117 2003-07-24  Benjamin Kosnik  <bkoz@redhat.com>
3119         * testsuite/*: Change __gnu_cxx_test to __gnu_test.
3121 2003-07-24  Nathan Myers  <ncm-nospam@cantrip.org>
3123         * testsuite/23_containers/map_operators.cc: Conform to
3124         container requirement as value must be Assignable.
3126 2003-07-23  Alexandre Oliva  <aoliva@redhat.com>
3128         * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
3129         tests not only generation of pch files, but also their use.
3130         * aclocal.m4, configure: Rebuilt.
3132 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
3134         * config/cpu/hppa/atomicity.h: Change
3135         _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
3136         to match misc-inst.cc
3138 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
3140         * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
3141         * include/c_std/std_cctype.h: Ditto.
3142         * include/c_std/std_cerrno.h: Ditto.
3143         * include/c_std/std_cfloat.h: Ditto.
3144         * include/c_std/std_climits.h: Ditto.
3145         * include/c_std/std_clocale.h: Ditto.
3146         * include/c_std/std_cmath.h: Ditto.
3147         * include/c_std/std_csetjmp.h: Ditto.
3148         * include/c_std/std_csignal.h: Ditto.
3149         * include/c_std/std_cstdarg.h: Ditto.
3150         * include/c_std/std_cstddef.h: Ditto.
3151         * include/c_std/std_cstdio.h: Ditto.
3152         * include/c_std/std_cstdlib.h: Ditto.
3153         * include/c_std/std_cstring.h: Ditto.
3154         * include/c_std/std_ctime.h: Ditto.
3155         * include/c_std/std_cwchar.h: Ditto.
3156         * include/c_std/std_cwctype.h: Ditto.
3157         * include/std/std_algorithm.h: Ditto.
3158         * include/std/std_bitset.h: Ditto.
3159         * include/std/std_complex.h: Ditto.
3160         * include/std/std_deque.h: Ditto.
3161         * include/std/std_fstream.h: Ditto.
3162         * include/std/std_functional.h: Ditto.
3163         * include/std/std_iomanip.h: Ditto.
3164         * include/std/std_ios.h: Ditto.
3165         * include/std/std_iosfwd.h: Ditto.
3166         * include/std/std_iostream.h: Ditto.
3167         * include/std/std_istream.h: Ditto.
3168         * include/std/std_iterator.h: Ditto.
3169         * include/std/std_limits.h: Ditto.
3170         * include/std/std_list.h: Ditto.
3171         * include/std/std_locale.h: Ditto.
3172         * include/std/std_map.h: Ditto.
3173         * include/std/std_memory.h: Ditto.
3174         * include/std/std_numeric.h: Ditto.
3175         * include/std/std_ostream.h: Ditto.
3176         * include/std/std_queue.h: Ditto.
3177         * include/std/std_set.h: Ditto.
3178         * include/std/std_sstream.h: Ditto.
3179         * include/std/std_stack.h: Ditto.
3180         * include/std/std_stdexcept.h: Ditto.
3181         * include/std/std_streambuf.h: Ditto.
3182         * include/std/std_string.h: Ditto.
3183         * include/std/std_utility.h: Ditto.
3184         * include/std/std_valarray.h: Ditto.
3185         * include/std/std_vector.h: Ditto.
3187 2003-07-22  Doug Gregor  <dgregor@apple.com>
3189         * include/bits/basic_string.h (basic_string::insert): Deprecate
3190         GNU extension.
3192 2003-07-21  Benjamin Kosnik  <bkoz@redhat.com>
3194         * scripts/testsuite_flags.in (--build-includes): Remove extraneous
3195         paths for libio.
3196         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
3197         (test03): Include typeinfo for bad_cast.
3198         * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
3199         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3200         * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
3202 2003-07-21  Doug Gregor  <dgregor@apple.com>
3204         * include/bits/boost_concept_check.h:
3205         (_EqualityComparableConcept::__constraints): Remove != from the
3206         list of constraints; it is not listed in Table 28 of the C++98
3207         standard.
3209 2003-07-18  Andreas Jaeger  <aj@suse.de>
3211         * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
3212         * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
3213         * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
3214         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
3216 2003-07-17  Benjamin Kosnik  <bkoz@redhat.com>
3218         * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
3219         * config/locale/generic/messages_members.h: Tweaks.
3220         * config/locale/generic/monetary_members.cc
3221         (moneypunct::_M_initialize_moneypunct): Use cache.
3222         (moneypunct::~moneypunct): Delete cache.
3223         * config/locale/generic/time_members.cc:
3224         (__timepunct::_M_initialize_timepunct): Use cache.
3225         * config/locale/generic/time_members.h:
3226         (__timepunct::~__timepunct): Delete cache.
3227         (__timepunct::__timepunct): Set cache.
3228         * config/locale/gnu/messages_members.h: Tweaks.
3229         * config/locale/gnu/monetary_members.cc:
3230         (moneypunct::_M_initialize_moneypunct): Use cache.
3231         (moneypunct::~moneypunct): Delete cache.
3232         * config/locale/gnu/time_members.cc:
3233         (__timepunct::_M_initialize_timepunct): Use cache.
3234         * config/locale/gnu/time_members.h:
3235         (__timepunct::~__timepunct): Delete cache.
3236         (__timepunct::__timepunct): Set cache.
3237         * include/bits/locale_facets.h (__timepunct_cache): New.
3238         (__moneypunct_cache): New.
3239         * include/bits/locale_facets.tcc: Tweak.
3240         * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
3241         * src/locale-inst.cc: Instantiate caches.
3242         * src/globals.cc: Add "C" caches.
3243         * src/localename.cc: Use external "C" caches.
3245 2003-07-17  Phil Edwards  <pme@gcc.gnu.org>
3247         * docs/doxygen/guide.html:  Fix typo.
3249 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
3251         * include/ext/pod_char_traits.h: Add state template argument.
3253 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
3255         * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
3256         (num_get::_M_convert_int): To _M_insert_int.
3257         (num_get::_M_convert_float): To _M_insert_float.
3258         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
3259         Use caches for ctype, num_get.
3260         (num_get::_M_extract_int): Same.
3261         (num_get::get(bool)): Same.
3262         (__verify_grouping): Use size_t.
3263         * src/locale-inst.cc: Update.
3264         * src/locale.cc: Adjust _S_atoms_in.
3266 2003-07-16  Phil Edwards  <pme@gcc.gnu.org>
3268         * docs/doxygen/mainpage.html:  Move building/writing instructions...
3269         * docs/doxygen/guide.html:  ...to here.  New file.
3271 2003-07-16  Jonathan Wakely  <redi@gcc.gnu.org>
3273         * docs/html/ext/howto.html: Update URL for SGI STL docs.
3274         * docs/html/faq/index.html: Same.
3275         * docs/html/faq/index.txt: Regenerate.
3277 2003-07-16  Paolo Carlini  <pcarlini@unitus.it>
3279         PR libstdc++/11528
3280         * include/bits/locale_facets.tcc (money_get::do_get):
3281         Strip only _leading_ zeros.
3282         * testsuite/22_locale/money_get/get/char/11528.cc: Add.
3283         * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
3285 2003-07-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3287         * include/ext/hash_map (class hash_multimap): Remove extra
3288         semicolons from __glibcxx_class_requires3 entries.
3289         * include/ext/hash_set (class hash_set): Ditto.
3290         (class hash_multiset): Ditto.
3292 2003-07-15  Petur Runolfsson  <peturr02@ru.is>
3294         * include/bits/char_traits.h (char_traits<wchar_t>::move):
3295         Change last parameter from int_type to size_t.
3297 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
3299         * include/bits/stl_algo.h (includes, set_union, set_intersection,
3300         set_difference, set_symmetric_difference, max_element, min_element,
3301         next_permutation, prev_permutation, find_first_of, find_end):
3302         Document.
3303         * include/bits/stl_algobase.h (copy,copy_backward):  Clarify overlap
3304         restrictions in docs.
3305         * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
3306         Document.
3307         * docs/doxygen/doxygroups.cc (setoperations):  New group.
3309 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
3311         * include/bits/basic_string.h:  Document public functions.
3312         * docs/doxygen/TODO:  Update c21 todo.
3314 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
3316         * include/bits/stl_list.h:  Document more functions.
3317         * docs/doxygen/TODO:  Update c23 todo.
3319 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
3321         * config/locale/gnu/c_locale.h (__convert_from_v): One more
3322         qualification.
3324 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
3326         * include/bits/stl_tempbuf.h: Qualify free with std::.
3327         * src/locale.cc: Include <cstdlib>, qualify getenv.
3329 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
3331         * config/locale/gnu/c_locale.h (__convert_from_v): Include
3332         <cstdio>. Qualify names.
3333         * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
3335 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
3336             Nathan C. Myers  <ncm-nospam@cantrip.org>
3338         PR libstdc++/11378
3339         * include/std/std_fstream.h (xsputn): Declare only.
3340         * include/bits/fstream.tcc (xsputn): Define, optimize for the
3341         always_noconv() case: when __n is sufficiently large flush
3342         the buffer and issue a direct write, if possible combining the
3343         two with writev in __basic_file<>::xsputn_2.
3344         * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
3345         New, declare.
3346         * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
3347         Define.
3348         * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
3349         the availability of writev in <sys/uio.h>.
3350         * configure.in: Call here.
3351         * acconfig.h: Add undef for the corresponding symbol.
3352         * aclocal.m4: Regenerate.
3353         * configure: Regenerate.
3354         * config.h.in: Regenerate.
3355         * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
3357         * include/std/std_fstream.h (sync): Constify a variable.
3359 2003-07-14  Benjamin Kosnik  <bkoz@redhat.com>
3361         * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
3362         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3364 2003-07-14  Gabriel Dos Reis  <gcc@integrable-solutions.net>
3366         * config/locale/gnu/c_locale.h (__convert_from_v): Include
3367         <cstring> and <cstdlib>. Qualify names.
3369 2003-07-13  Mark Mitchell  <mark@codesourcery.com>
3371         * config/locale/generic/c_locale.h: Include <cstdlib> and
3372         <cstring>.
3373         * include/bits/boost_concept_check.h: Add this-> to unqualified
3374         method calls.
3375         * include/bits/deque.tcc: Likewise.
3376         * include/bits/locale_facets.h : Likewise.
3377         * include/bits/ostream.tcc: Likewise.
3378         * include/bits/stl_algo.h: Likewise.
3379         * include/bits/stl_bvector.h: Likewise.
3380         * include/bits/stl_deque.h: Likewise.
3381         * include/bits/stl_list.h: Likewise.
3382         * include/bits/stl_tree.h: Likewise.
3383         * include/bits/stl_vector.h: Likewise.
3384         * include/bits/vector.tcc: Likewise.
3385         * include/ext/rope: Likewise.
3386         * include/ext/ropeimpl.h: Likewise.
3387         * include/ext/stdio_filebuf.h: Likewise.
3389 2003-07-11  Jerry Quinn  <jlquinn@optonline.net>
3391         * include/bits/basic_ios.h (copyfmt): Document.
3392         * include/bits/ios_base.h (event, event_callback, register_callback,
3393         xalloc, iword, pword):  Document.
3394         (imbue, ~ios_base): Update docs on callbacks.
3396 2003-07-11  Phil Edwards  <pme@gcc.gnu.org>
3398         * acinclude.m4 (GLIBCC_ENABLE_SYMVERS):  Tweak comments.  Add
3399         warning messages if the environment cannot support symbol versioning.
3400         (port_specific_symbol_file):  It's plural, add an 's' on the end.
3401         * configure.host:  Likewise.
3402         * src/Makefile.am:  Likewise.
3403         * config/linker-map.gnu:  Remove one semicolon, heh.
3404         * scripts/extract_symvers:  Don't assume useful 'export' syntax.
3405         Set LANG as well as LC_ALL for possibly-broken sort(1)s.
3406         * aclocal.m4, configure, src/Makefile.in:  Regenerated.
3408 2003-07-09  Benjamin Kosnik  <bkoz@redhat.com>
3410         * include/bits/locale_facets.tcc: Use function object for
3411         __use_cache instead of template function. Partially specialize for
3412         __numpunct<_CharT>.
3413         * include/bits/locale_classes.h: Update friend declaration for
3414         __use_cache.
3415         (_M_install_cache): No throw exception specs.
3416         * src/locale.cc: Remove __use_cache specializations.
3417         * include/ext/pod_char_traits.h (length): Tweak.
3418         * include/bits/locale_facets.h (__numpunct_cache): Remove
3419         char_type typedef.
3420         * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
3421         (pod_long): Remove.
3422         * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
3423         * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
3424         * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
3425         * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
3426         * testsuite/22_locale/numpunct/members/pod/1.cc: New.
3427         * testsuite/22_locale/numpunct/members/pod/2.cc: New.
3429 2003-07-09  Jerry Quinn  <jlquinn@optonline.net>
3431         * src/ios.cc (_M_grow_words):  Fix spelling.
3433 2003-07-09  Gawain Bolton  <gp.bolton@computer.org>
3435         * include/bits/stl_tree.h: Move larger member functions in
3436         _Rb_tree_base_iterator and _Rb_tree_node to...
3437         * src/stl_tree.cc: Here.
3438         * src/Makefile.in: Add stl_tree.cc.
3439         * src/Makefile.in: Regenerated.
3440         * config/linker-map.gnu: Add symbols here.
3442 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
3444         * testsuite/ext/pod_char_traits.cc: New.
3445         * include/ext/pod_char_traits.h: New.
3446         * include/Makefile.am (ext_headers): Add pod_char_traits.h.
3447         * include/Makefile.in: Regenerate.
3448         * docs/html/21_strings/howto.html: Update.
3450 2003-07-08  Gawain Bolton  <gp.bolton@computer.org>
3452         * testsuite/performance/list_create_fill_sort.cc: New.
3454 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
3456         * config/locale/generic/numeric_members.cc: Correct type info.
3457         * config/locale/gnu/numeric_members.cc: Same.
3458         * include/bits/locale_facets.h: Same.
3460         * include/bits/char_traits.h: Correct spacing.
3462         * src/locale.cc: Wrap to 80 col.
3464 2003-07-07  Paolo Carlini  <pcarlini@unitus.it>
3466         * include/std/std_complex.h: Partially revert last
3467         changes: cmath functions must not be qualified.
3469 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
3471         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Do not test for binutils
3472         2.11 with globbing backport fix.
3473         * aclocal.m4, configure:  Regenerated.
3475 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
3477         * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
3478         if output is at all possible (!_M_reading), cannot be active.
3480         * include/std/std_fstream.h: Tweak comments to doxygen style.
3482 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
3484         * include/bits/locale_classes.h: Fully qualify standard
3485         functions with std::, thus avoiding Koenig lookup.
3486         * include/bits/locale_facets.tcc: Likewise.
3487         * src/locale.cc: Likewise.
3488         * src/localename.cc: Likewise.
3490 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
3492         * include/bits/allocator_traits.h:  Fix doxygen markup.
3493         * include/ext/mt_allocator.h:  Likewise.
3495 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
3497         * testsuite/testsuite_hooks.h:  Guard against a missing unlink().
3499 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
3501         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Bump minimal version
3502         requirement.  Add port_specific_symbol_file variable.
3503         * configure.host:  Add docs for port_specific_symbol_file.
3504         Clean up try_cpu block for x86.
3505         * config/linker-map.gnu:  No more "last symbol can't have a
3506         semicolon" kaka.  Add hook for port-specific symbols.
3507         * src/Makefile.am:  Remove trailing whitespace.
3508         (libstdc++-symbol.ver):  Detect the presence of port-specific
3509         symbols, and add them accordingly.
3511         * docs/html/17_intro/porting.texi:  Bring up to date.
3513         * src/Makefile.in, aclocal.m4, configure,
3514         docs/html/17_intro/porting.html:  Regenerated.
3516 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
3518         * scripts/create_testsuite_files:  New file.
3519         * testsuite/Makefile.am (all-local, check-performance):  Use it.
3520         * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests):  Remove.
3521         * testsuite/Makefile.in:  Regenerated.
3523         * testsuite/performance/filebuf_sputc.cc:  Remove the temporary
3524         files at the end.
3525         * testsuite/performance/fstream_seek_write.cc:  Likewise.
3526         * testsuite/performance/ofstream_insert_float.cc:  Likewise.
3527         * testsuite/performance/ofstream_insert_int.cc:  Likewise.
3528         * testsuite/abi_check.cc (main):  Nicer spacing in usage output.
3530 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
3532         * include/bits/stl_list.h: Performance and memory usage
3533         improvements. In particular, the behaviour of the constructor and
3534         destructor as the list header node is no longer dynamically
3535         allocated/de-allocated.
3536         * include/bits/list.tcc: Likewise.
3538 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
3540         * include/std/std_complex.h: Fully qualify standard
3541         functions with std::, thus avoiding Koenig lookup.
3542         * include/std/std_memory.h: Likewise.
3543         * include/std/std_valarray.h: Likewise.
3545 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
3547         * include/bits/stl_tree.h: _Rb_tree_rebalance():  Add local
3548           variable for grandparent and use const
3550 2003-07-05  David Billinghurst <David.Billinghurst@riotinto.com>
3552         * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
3553         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
3554         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
3555         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
3556         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
3557         * testsuite/27_io/objects/char/7.cc: Ditto
3558         * testsuite/27_io/objects/char/9661-1.cc: Ditto
3560 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
3562         * include/std/std_bitset.h: Fully qualify standard
3563         functions with std::, thus avoiding Koenig lookup.
3565         * include/std/std_fstream.h: Change comment to doxygen style.
3567 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
3569         * include/std/std_limits.h:  More CPP->CXX changes.
3570         * scripts/check_survey.in:  Likewise.
3572 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
3574         Move from CPP to CXX.
3575         * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
3576         * testsuite/Makefile.am: Same.
3577         * testsuite/Makefile.in: Regenerate.
3578         * po/Makefile.am: Same.
3579         * po/Makefile.in: Regenerate.
3580         * libsupc++/Makefile.am: Same.
3581         * libsupc++/Makefile.in: Regenerate.
3582         * libmath/Makefile.am: Same.
3583         * libmath/Makefile.in: Regenerate.
3584         * include/Makefile.am: Same.
3585         * include/Makefile.in: Regenerate.
3586         * src/Makefile.am: Same.
3587         * src/Makefile.in: Regenerate.
3588         * acconfig.h: Same.
3589         * configure.host: Same.
3590         * configure.in: Same.
3591         * configure: Regenerate.
3592         * acinclude.m4: Same.
3593         * aclocal.m4: Same.
3594         * src: Change all files in this directory.
3595         * testsuite: Same.
3596         * include: Same, standardize include guards.
3597         * config: Same.
3598         * libsupc++: Same.
3600 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
3602         * testsuite/22_locale/collate/compare/wchar_t/2.cc
3603         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
3604         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
3605         * testsuite/22_locale/collate/hash/wchar_t/2.cc
3606         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
3607         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
3608         * testsuite/22_locale/collate/transform/wchar_t/2.cc
3609         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
3610         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3611         XFAIL on all targets.
3613 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
3615         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
3616         * aclocal.m4: Regenerate.
3617         * configure: Regenerate.
3619 2003-07-04  Jerry Quinn  <jlquinn@optonline.net>
3621         * include/bits/locale_facets.tcc (__int_to_char): Move common case
3622         to the top.
3624 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
3625             Petur Runolfsson  <peturr02@ru.is>
3627         * config/io/basic_file_stdio.cc: Revert.
3629 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
3631         * include/bits/deque.tcc: Fully qualify standard
3632         functions with std::, thus avoiding Koenig lookup.
3633         * include/bits/gslice_array.h: Likewise.
3634         * include/bits/indirect_array.h: Likewise.
3635         * include/bits/list.tcc: Likewise.
3636         * include/bits/mask_array.h: Likewise.
3637         * include/bits/slice_array.h: Likewise.
3639 2003-07-04  Gawain Bolton  <gbolton@free.fr>
3641         * include/bits/stl_tree.h: Performance and memory usage
3642         improvements.
3644 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
3646         * Makefile.am: Replace PWD with PWD_COMMAND.
3647         * Makefile.in: Regenerated.
3648         * docs/html/Makefile: Likewise.
3650 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
3652         * include/bits/valarray_array.h: Fully qualify standard
3653         functions with std::, thus avoiding Koenig lookup.
3654         * include/bits/vector.tcc: Likewise.
3656 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
3658         * include/Makefile.am: Update target_ to host_.
3659         * include/Makefile.in: Regenerate.
3660         * src/Makefile.am: Same.
3661         * src/Makefile.in: Regenerate.
3663         * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
3665 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
3667         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
3668         --enable-libstdcxx-debug-flags.
3669         (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
3670         (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
3671         * aclocal.m4: Regenerate.
3672         * configure: Same.
3673         * docs/html/configopts.html: Update.
3675 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
3677         Revert the fix for libstdc++/11378.
3679 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
3681         PR libstdc++/11378
3682         * include/std/std_fstream.h (xsputn): In the unbuffered case,
3683         provided always_noconv(), issue directly _M_file.xsputn.
3684         * testsuite/performance/filebuf_unbuf_sputn.cc: New.
3686 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
3688         * include/bits/stl_list.h: Fully qualify standard
3689         functions with std::, thus avoiding Koenig lookup.
3690         * include/bits/stl_queue.h: Likewise.
3691         * include/bits/stl_raw_storage_iter.h: Likewise.
3692         * include/bits/stl_tempbuf.h: Likewise.
3693         * include/bits/stl_tree.h: Likewise.
3694         * include/bits/stl_uninitialized.h: Likewise.
3695         * include/bits/stl_vector.h: Likewise.
3696         * include/ext/rope: Change includes order.
3698 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
3700         * configure.host (fpos_include_dir): Fix.
3702 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
3704         * include/bits/stl_heap.h: Fully qualify standard
3705         functions with std::, thus avoiding Koenig lookup.
3706         * include/bits/stl_iterator_base_funcs.h: Likewise.
3708         * include/bits/stl_algo.h: Qualify __iterator_category too.
3709         * include/bits/stl_algobase.h: Likewise.
3710         * include/bits/stl_bvector.h: Likewise.
3712         * include/bits/stl_algo.h: Don't qualify the pair type.
3714 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
3716         * include/Makefile.am (target_headers): Add fpos.h
3717         (bits_headers): Remove.
3718         * include/Makefile.in: Regenerate.
3719         * configure.in: Add FPOS_INC_SRCDIR, substitute it.
3720         * configure: Regenerate.
3721         * configure.host: Add fpos_include_dir.
3722         * config/os/gnu-linux/fpos.h: New.
3723         * config/os/generic/fpos.h: Add.
3724         * include/bits/fpos.h: Remove.
3726         * config/io/c_io_stdio.h: Remove fpos_t typedef.
3728         * include/bits/fstream.tcc: Tweaks.
3729         * include/std/std_fstream.h: Same.
3731         * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
3732         * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
3733         * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
3734         * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
3735         * testsuite/27_io/fpos/1.cc: New.
3737 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
3738             Petur Runolfsson  <peturr02@ru.is>
3740         * include/std/std_streambuf.h: Remove _M_pos.
3741         * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
3742         * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
3743         use fread/fwrite instead of read/write.
3744         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
3745         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
3746         before reading again.
3747         * testsuite/27_io/objects/char/6.cc: Tweak.
3749 2003-07-03  David Edelsohn  <edelsohn@gnu.org>
3751         * testsuite/22_locale/num_put/put/char/7.cc: Guard with
3752         _GLIBCPP_USE_WCHAR_T.
3754 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
3756         * include/bits/basic_string.tcc (_M_replace_aux): Constify
3757         __n1 and __off1.
3759 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
3761         * include/bits/stl_bvector.h: Fully qualify standard
3762         functions with std::, thus avoiding Koenig lookup.
3763         * include/bits/stl_construct.h: Likewise.
3764         * include/bits/stl_deque.h: Likewise.
3766 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
3768         * testsuite/22_locale/num_put/put/char/7.cc: Include
3769         <testsuite_hooks.h>, tweak.
3770         * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
3772 2003-07-01  Phil Edwards  <pme@gcc.gnu.org>
3774         * testsuite/Makefile.am (AM_MAKEFLAGS):  Set to -j1 (affects
3775         check* targets, but not libs/programs).
3776         * testsuite/Makefile.in:  Regenerate.
3778 2003-07-01  Roger Sayle  <roger@eyesopen.com>
3780         * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
3781         (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
3782         * aclocal.m4: Regenerate.
3783         * configure: Regenerate.
3785 2003-07-01  Benjamin Kosnik  <bkoz@redhat.com>
3787         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
3788         * aclocal.m4: Regenerated.
3789         * configure: Regenerated.
3791 2003-07-01  Paolo Carlini  <pcarlini@unitus.it>
3793         PR libstdc++/11389
3794         * include/bits/fstream.tcc (underflow): For encoding() == 0
3795         don't read more than __buflen chars.
3796         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
3797         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
3798         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
3799         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
3801 2003-07-01  Jerry Quinn  <jlquinn@optonline.net>
3803         * 22_locale/num_put/put/char/7.cc: New.
3804         * 22_locale/num_put/put/wchar_t/7.cc: New.
3806 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
3808         * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
3809         * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
3811 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
3813         * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
3814         * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
3815         * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
3816         * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
3817         * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
3818         * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
3819         * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
3820         * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
3821         * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
3822         * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
3823         * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
3824         * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
3825         * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
3826         * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
3827         * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
3828         * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
3829         * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
3830         * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
3831         * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
3832         * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
3833         * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
3834         * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
3835         * data/seekoff-1.tst: Remove.
3836         * data/seekoff-1io.tst: New.
3837         * data/seekoff-1out.tst: New.
3838         * data/seekoff-2.tst: Remove.
3839         * data/seekoff-2io.tst: New.
3840         * data/seekoff-2out.tst: New.
3841         * data/seekoff.txt
3842         * data/seekpos-1.tst: Remove.
3843         * data/seekpos-1io.tst: New.
3844         * data/seekpos-1out.tst: New.
3845         * data/seekpos-2.tst: Remove.
3846         * data/seekpos-2io.tst: New.
3847         * data/seekpos-2out.tst: New.
3848         * data/seekpos.txt: New.
3850 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
3852         * src/locale.cc (__use_cache<numpunct>): Move from here ...
3853         * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
3854         here.
3856 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
3858         * include/bits/stl_algobase.h: Fully qualify standard
3859         functions with std::, thus avoiding Koenig lookup.
3861 2003-06-30  Doug Gregor <dgregor@apple.com>
3863         * include/bits/locale_facets.tcc (money_get::do_get): Avoid
3864         subscripting empty string.
3866 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
3868         * testsuite/Makefile.am (check-am):  Do not override.
3869         (baseline_symbols):  Declare as PHONY, so no need to 'touch' it.
3870         * testsuite/Makefile.in:  Regenerate.
3872 2003-06-30  Doug Gregor <dgregor@apple.com>
3874         * testsuite/24_iterators/insert_iterator.cc (test01, test02):
3875         Don't initialize an insert_iterator with a singular iterator.
3877 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
3879         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
3880         * aclocal.m4: Regenerate.
3881         * configure.in (GLIBCPP_CHECK_PCH): Move, change to
3882         GLIBCPP_ENABLE_PCH, default to yes.
3883         * configure: Regenerate.
3884         * docs/html/configopts.html: Add --enable-pch.
3886 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
3888         * testsuite/lib/libstdc++-v3-dg.exp:  Add comments.
3889         (libstdc++-v3-init):  Also set LD_RUN_PATH.
3891 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
3893         * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
3894         from here to filebuf and stringbuf.
3895         (~basic_streambuf()): Don't set _M_mode.
3896         (basic_streambuf()): Don't set _M_mode.
3897         * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
3898         (~basic_filebuf()): Clean up.
3899         * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
3900         * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
3901         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
3902         * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
3903         * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
3904         * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
3905         * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
3907 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
3909         * include/std/std_fstream.h (_M_underflow): Remove.
3910         (uflow): Remove, inherited from streambuf.
3911         (underflow): Only declare.
3912         * include/bits/fstream.tcc (_M_underflow): Rename to
3913         underflow, to which is equivalent for __bump == false,
3914         simplify.
3915         * include/std/std_sstream.h (_M_underflow): Remove.
3916         (uflow): Remove, inherited from streambuf.
3917         (underflow): Only declare.
3918         * include/bits/sstream.tcc (_M_underflow): Rename to
3919         underflow, to which is equivalent for __bump == false,
3920         simplify.
3922 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
3924         * include/bits/stl_algo.h: Fully qualify standard functions
3925         with std::, thus avoiding Koenig lookup.
3927 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
3929         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
3930         Improve type correctness-wise.
3931         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
3932         Likewise.
3933         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
3934         Likewise.
3935         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
3936         Likewise.
3938 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
3940         * include/std/std_streambuf.h (uflow): According to
3941         27.5.2.4.3,p16, don't check gptr() < egptr().
3943 2003-06-28  Paolo Carlini  <pcarlini@unitus.it>
3945         PR libstdc++/9875
3946         * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
3947         (seekpos): Likewise.
3948         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
3949         New test.
3950         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
3951         New test.
3953 2003-06-27  Benjamin Kosnik  <bkoz@redhat.com>
3955         * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
3956         output name to libstdc++-v3-performance.sum.
3957         * testsuite/Makefile.am (CLEANFILES): Remove .performance.
3958         * testsuite/Makefile.in: Regenerate.
3960 2003-06-27  Matthias Klose  <doko@debian.org>
3962         * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
3963         output of abi-check in libstdc++-v3-abi.sum.
3964         * testsuite/Makefile.in: Regenerate.
3966 2003-06-27  Krister Walfridsson  <cato@df.lth.se>
3968         * config/os/bsd/netbsd/ctype_noninline.h
3969         (_C_ctype_): Declare.
3970         (ctype<char>::classic_table): Return _C_ctype_ + 1.
3971         (ctype<char>::ctype): Use classic_table.
3973 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
3974             Nathan C. Myers  <ncm-nospam@cantrip.org>
3976         PR libstdc++/9178
3977         * include/bits/fstream.tcc (_M_underflow): Properly estimate
3978         the worst-case number of external bytes for a given get area.
3979         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
3981 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
3982             Petur Runolfsson  <peturr02@ru.is>
3984         PR libstdc++/11305
3985         * include/bits/fstream.tcc (overflow): Properly estimate the
3986         worst-case number of external bytes for a given put area
3987         (by using codecvt::max_length()).
3988         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
3989         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
3990         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
3991         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
3993 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
3995         * config/linker-map.gnu: Remove ; after __numpunct_cache.
3997 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
3999         * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
4000         to the imbued locale.
4001         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
4002         _M_getloc.
4003         (num_put::_M_convert_float): Use.
4005 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
4006             Jerry Quinn  <jlquinn@optonline.net>
4008         * config/linker-map.gnu: Add __numpunct_cache.
4009         * config/locale/gnu/numeric_members.cc
4010         (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
4011         all elements for "C" locale.
4012         (numpunct::~numpunct): Delete _M_data.
4013         * config/locale/generic/numeric_members.cc: Same.
4014         * include/bits/basic_ios.tcc
4015         (basic_ios::init): Remove __locale_cache bits.
4016         (basic_ios::_M_cache_locale): Same.
4017         * include/bits/ios_base.h: Same. Tweaks.
4018         * include/bits/locale_classes.h: Tweaks. Reorder classes.
4019         (__use_cache): Make friends with _Impl, locale.
4020         (_Impl::_M_caches): Add.
4021         (_Impl::_M_install_cache): Add.
4022         * include/bits/locale_facets.h (__numpunct_cache): New.
4023         (numpunct): Encapsulate data members in __numpunct_cache member,
4024         _M_data. Adjust virtuals.
4025         (numpunct::numpunct): New ctor for the same.
4026         (__locale_cache_base): Remove.
4027         (__locale_cache): Remove.
4028         * include/bits/locale_facets.tcc (__use_cache): New function,
4029         specializations.
4030         (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
4031         * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
4032         * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
4033         * src/locale-inst.cc: Same. Add __numpunct_cache.
4034         * src/locale.cc: Tweak inlines.
4035         (__use_cache): Define specializations.
4036         * src/localename.cc: Use global bits.
4037         (_Impl::~Impl): Deal with __numpunct_cache destruction.
4038         (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
4039         (_Impl::_M_init_facet): Take into account __numpunct_cache.
4040         * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
4041         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4043 2003-06-26  Nathan C. Myers  <ncm-nospam@cantrip.org>
4044             Paolo Carlini  <pcarlini@unitus.it>
4046         * testsuite/performance/filebuf_copy.cc: New, testing char
4047         by char file copy.
4049 2003-06-26  Paolo Carlini  <pcarlini@unitus.it>
4050             Nathan C. Myers  <ncm-nospam@cantrip.org>
4052         * include/bits/fstream.tcc (_M_underflow): When the actual
4053         end of file is reached, set 'uncommitted' mode to allow a
4054         next write without an intervening seek (see C++98 27.8.1.1,2
4055         and C89 7.9.5.3).
4056         * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
4058 2003-06-25  Nathan C. Myers  <ncm-nospam@cantrip.org>
4060         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
4061         sputc): Move inline, from here...
4062         * include/std/std_streambuf.h: ... to here.
4064         * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
4065         sputbackc, sungetc, sputc): Use __builtin_expect.
4067 2003-06-24  Phil Edwards  <pme@gcc.gnu.org>
4069         * docs/doxygen/mainpage.html:  Use a useful title.
4071 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
4073         * docs/html/documentation.html: Remove assignment info.
4074         * docs/html/17_intro/contribute.html: Edits.
4075         * docs/html/17_intro/libstdc++-assign.tx: Remove.
4077         * docs/html/test.html: Update.
4079         * README: Update.
4081 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
4082             Ulrich Drepper  <drepper@redhat.com>
4084         * testsuite/testsuite_performance.h: Tweak mallinfo.
4086 2003-06-24  Paolo Carlini  <pcarlini@unitus.it>
4087             Nathan C. Myers  <ncm-nospam@cantrip.org>
4089         * include/std/std_fstream.h (_M_filepos): Remove.
4090         (_M_reading, _M_writing): New, encode the various I/O modes:
4091         'read', 'write' and 'uncommitted'.
4092         (sync): If there is something to flush, do it, then go to
4093         'uncommitted' mode.
4094         * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
4095         with three different cases: __off > 0 (upon underflow),
4096         __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
4097         seekoff/pos).
4098         (_M_underflow): Don't call overflow, set _M_reading to true
4099         on success, tweak.
4100         (pbackfail): Set _M_reading to true on pback creation, tweak.
4101         (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
4102         set _M_writing to true on success, tweak.
4103         (seekoff): Simplify, set _M_reading, _M_writing to false, call
4104         _M_set_buffer(-1) ('uncommitted').
4105         (open, close, setbuf): Set _M_reading, _M_writing to false and
4106         call _M_set_buffer(-1), tweak.
4107         (basic_filebuf): Don't set _M_buf_unified.
4108         (_M_destroy_internal_buffer): Don't call setg and setp.
4109         * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
4110         _M_writing and _M_set_buffer(-1).
4111         * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
4112         _M_out_lim, _M_buf_unified): Remove.
4113         (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
4114         (setp): Don't set _M_out_lim.
4115         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
4116         the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
4117         upon open the mode is 'uncommitted' and therefore the put area
4118         pointers are null.
4119         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
4120         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
4121         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
4122         * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
4123         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
4124         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
4125         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
4126         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
4127         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
4128         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
4129         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
4130         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
4131         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
4132         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
4133         * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
4134         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
4135         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
4136         * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
4137         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
4138         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
4140         * include/bits/fstream.tcc (showmanyc): Use only the
4141         documented derivation interface to basic_streambuf (gptr(),
4142         setg(), etc.) to work right with user specializations.
4143         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
4144         sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
4145         * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
4146         Likewise.
4147         * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
4148         xsgetn): Likewise.
4150 2003-06-23  Loren J. Rittle  <ljrittle@acm.org>
4152         * configure.host (freebsd*): Set abi_baseline_pair.
4153         * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
4154         (at or near first release) to 3.3.
4155         * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
4156         * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
4157         * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
4159         * include/ext/mt_allocator.h: Portability.
4160         * testsuite/testsuite_performance.h: Likewise.
4162 2003-06-23  Benjamin Kosnik  <bkoz@redhat.com>
4164         * docs/html/17_intro/libstdc++-assign.txt: Update address.
4166         * testsuite/performance/ifstream_getline.cc: Fix.
4168 2003-06-23  Doug Gregor <dgregor@apple.com>
4170         * include/bits/boost_concept_check.h: Don't use _D or _R for type
4171         names.
4173 2003-06-22  Paolo Carlini  <pcarlini@unitus.it>
4174             Nathan C. Myers  <ncm-nospam@cantrip.org>
4176         * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
4177         is now used only for filebuf, when _M_buf_unified is true.
4178         epgtr() plays the role of _M_out_lim but it's only updated
4179         upon overflow, underflow, uflow, seekoff/pos.
4180         * include/bits/sstream.tcc (_M_underflow): New, implements
4181         stringbuf::underflow and uflow.
4182         (seekoff, seekpos): Tweak, use  _M_update_egptr.
4183         * include/std/std_sstream.h (str): Rewrote, deal correctly
4184         with the new logic, in particular, when pptr() > egptr().
4185         (_M_sync): When __testout && !__testin set all the get area
4186         pointers to the current string end.
4187         (_M_update_egptr): New, internal function updating egptr()
4188         to the actual string end.
4189         (_M_underflow): New, declare.
4190         (underflow): Dispatch to _M_underflow(false).
4191         (uflow): Dispatch to _M_underflow(true).
4193         * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
4194         seekpos): Use only the documented derivation interface to
4195         basic_streambuf (gptr(), setg(), etc.) to work right with
4196         user specializations.
4197         * include/std/std_sstream.h (str, _M_sync): Likewise.
4199 2003-06-20  Doug Gregor <dgregor@apple.com>
4201         * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
4202         * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
4203         dereference end iterator.
4204         * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
4205         * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
4206         index equal to the length of a string.
4207         * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
4208         * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
4209         * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
4210         * testsuite/22_locale/ctype/widen/char/1.cc: Same.
4211         * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
4212         * testsuite/23_containers/list_modifiers.cc: Don't dereference
4213         singular reverse iterator.
4214         * testsuite/23_containers/vector_bool.cc: Don't increment singular
4215         iterator.
4216         * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
4218 2003-06-20  Doug Gregor <dgregor@apple.com>
4220         * include/bits/basic_string.h (basic_string::replace): Dispatch
4221         _InputIterator version based on _Is_integer.
4222         * include/bits/basic_string.tcc (basic_string::replace):
4223         Renamed replace(iterator, iterator, size_type, _CharT) to
4224         _M_replace_aux.
4225         * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
4226         Test basic_string::assign(_InputIterator, _InputIterator),
4227         which calls basic_string::replace(iterator, iterator,
4228         _Input_iterator, _InputIterator).
4230 2003-06-20  Benjamin Kosnik  <bkoz@redhat.com>
4232         * testsuite/testsuite_performance.h (resource_counter): Don't use
4233         mallinfo at the moment.
4235 2003-06-20  Matthias Klose  <doko@debian.org>
4237         * configure.host: Set try_cpu to target_cpu for existing
4238         baseline files.
4240 2003-06-19  Andreas Jaeger  <aj@suse.de>
4242         * testsuite/Makefile.am (extract_symvers): Revert accidental
4243         change.
4244         * testsuite/Makefile.in: Regenerate.
4246         * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
4247         * configure: Regenerated.
4249 2003-06-19  Paolo Carlini  <pcarlini@unitus.it>
4251         * include/std/std_sstream.h (_M_sync): Make non virtual.
4253 2003-06-18  Benjamin Kosnik  <bkoz@redhat.com>
4255         * testsuite/testsuite_performance.h (time_counter): New.
4256         (resource_counter): New.
4257         (report_performance): New.
4258         (start_counters): New.
4259         (stop_counters): New.
4260         (clear_counters): New.
4261         * testsuite/performance/allocator.cc: Instrument.
4262         * testsuite/performance/cout_insert_int.cc: Same.
4263         * testsuite/performance/complex_norm.cc: Same.
4264         * testsuite/performance/filebuf_sputc.cc: New.
4265         * testsuite/performance/fstream_seek_write.cc: Same.
4266         * testsuite/performance/ifstream_getline.cc: Same.
4267         * testsuite/performance/map_create_fill.cc: Same.
4268         * testsuite/performance/ofstream_insert_float.cc: Same.
4269         * testsuite/performance/ofstream_insert_int.cc: Same.
4270         * testsuite/performance/string_append.cc: Convert.
4271         * scripts/check_performance: New.
4272         * testsuite/Makefile.am (check-performance): New.
4273         (CLEANFILES): Add.
4275 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
4276             Benjamin Kosnik  <bkoz@redhat.com>
4278         * include/std/std_sstream.h (setbuf): Check __n >= 0.
4279         * include/bits/fstream.tcc (setbuf): Tweak.
4281 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
4283         * include/bits/sstream.tcc (seekoff): We can't seek beyond
4284         _M_out_lim, therefore _M_move_out_cur boils down to simply
4285         updating _M_out_cur.
4286         (seekpos): Likewise, clean up.
4288 2003-06-18  Nathan C. Myers  <ncm-nospam@cantrip.org>
4289             Paolo Carlini  <pcarlini@unitus.it>
4291         * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
4292         simply equivalent to the unbuffered case (0, 0) as far as
4293         _M_buf_size is concerned.
4295 2003-06-18  Andreas Jaeger  <aj@suse.de>
4297         * testsuite/Makefile.am (new-abi-baseline): Create baseline
4298         directory.
4299         (baseline_file): Use baseline_dir.
4300         (baseline_dir): New.
4301         (mkinstalldirs): New.
4303         * acinclude.m4: Rename baseline_file to baseline_dir, strip
4304         filename from baseline_dir.
4306         * testsuite/Makefile.in: Regenerated.
4307         * Makefile.in: Regenerated.
4308         * aclocal.m4: Regenerated.
4309         * configure: Regenerated.
4311 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
4313         * configure.in: Missed check_survey bit.
4314         * configure: Regenerated.
4316 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
4318         * scripts: New.
4319         * config/abi/extract_symvers: Move to...
4320         * scripts/extract_symvers: ...here.
4321         * mkcheck.in: Move to..
4322         * scripts/check_survey.in: ...here.
4323         * testsuite_flags.in: Move to..
4324         * scripts/testsuite_flags.in: ...here.
4325         * configure.in: Change check and testsuite_flags locations.
4326         * configure: Regenerate.
4327         * testsuite/Makefile.am (current_symbols.txt): Change location.
4328         * testsuite/Makefile.in: Regenerate.
4329         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
4330         location of testsuite_flags.
4331         * Makefile.am (check-script): Move..
4332         (check-script-install): Move...
4333         * testsuite/Makefile.am: ... here.
4334         * testsuite/Makefile.in: Regenerate.
4335         * Makefile.in: Regenerate.
4337 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
4339         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
4341 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
4343         * Makefile.am (check-abi): Move...
4344         (new-abi-baseline): Move...
4345         * testsuite/Makefile.am: ...here.
4346         (new-abi-baseline): Conditionalize.
4347         (check-abi): Conditionalize.
4348         (check-abi-verbose): New.
4349         * Makefile.in: Regenerate.
4350         * testsuite/Makefile.in: Regenerate.
4351         * configure.in: Consolidate testsuite configure bits.
4352         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
4353         * configure: Regenerate.
4354         * aclocal.m4: Regenerate.
4355         * testsuite/abi_check.cc: Add --check-verbose.
4356         Only output detailed information if --check-verbose.
4358 2003-06-16  Andreas Jaeger  <aj@suse.de>
4360         * testsuite/abi_check.cc: Create summary report.
4362 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
4364         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
4365         for systems with BUFSIZ != 8192.
4366         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
4367         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
4368         Minor tweaks.
4370 2003-06-16  Andreas Jaeger  <aj@suse.de>
4372         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
4373         check-abi multilib aware.
4374         * aclocal.m4: Regenerate.
4375         * configure: Regenerate.
4377 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
4378             Andreas Jaeger  <aj@suse.de>
4380         * configure.host: Set x86_64 abi_baseline pair correctly.
4382 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
4384         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
4385         fix for missing seeks between gets and puts into...
4386         * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
4387         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
4388         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
4389         * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
4390         * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
4391         * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
4393 2003-06-15  Richard Henderson  <rth@redhat.com>
4395         * config/linker-map.gnu: Export virtual function thunks for
4396         64-bit systems too.
4398 2003-06-13  Benjamin Kosnik  <bkoz@redhat.com>
4400         * config/abi/i686-pc-linux-gnu: To..
4401         * config/abi/i486-linux-gnu: ...this.
4402         * config/abi/alphaev67-unknown-linux-gnu: To..
4403         * config/abi/alpha-linux-gnu: ...this.
4404         * config/abi/ia64-unknown-linux-gnu: To...
4405         * config/abi/ia64-linux-gnu: ...this.
4406         * config/abi/x86_64-unknown-linux-gnu: To...
4407         * config/abi/x86_64-linux-gnu: ...this.
4408         * config/abi/i386-unknown-freebsd4: To...
4409         * config/abi/i386-freebsd4: ...this.
4410         * config/linker-map.gnu: Cleanups, move libsupc++ bits into
4411         CXXABI.
4412         * configure.host: abi_baseline_triplet to abi_baseline_pair.
4413         Simplify cpu bits so that abi_baseline_pair can use the same
4414         cpu configuration.
4415         * acinclude.m4: Same.
4416         * aclocal.m4: Regenerate.
4417         * configure.in: Can't get enable_abi_check to yes unless native.
4418         * configure: Regenerate.
4420 2003-06-13  Paolo Carlini  <pcarlini@unitus.it>
4422         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
4423         fix for missing seeks between gets and puts into...
4424         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
4425         * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
4426         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
4427         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
4428         * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
4429         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
4430         for missing seeks between gets and puts.
4431         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
4432         * testsuite/data/seekoff-1.tst: New.
4433         * testsuite/data/seekoff-2.tst: New.
4434         * testsuite/data/seekpos-1.tst: New.
4435         * testsuite/data/seekpos-2.tst: New.
4437 2003-06-13  Nathan C. Myers <ncm-nospam@cantrip.org>
4439         Avoid multi-processor bus contention on increment/decrement-and-
4440         test of the reference count in the empty-string object, by comparing
4441         addresses first, and never touching the reference count of the empty-
4442         string object.
4443         * include/bits/basic_string.h:
4444         (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
4445         members.
4446         (_Rep::_S_empty_rep()): New accessor.
4447         (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
4448         a base class _Rep_base.
4449         (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
4450         (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
4451         since no longer must increment its refcount.
4452         * include/bits/basic_string.tcc:
4453         (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
4454         return immediately.  The former might be unnecessary.  The latter
4455         prevents begin() and end() from cloning it unnecessarily.
4456         (_S_construct(_InIterator, _InIterator, const _Alloc&,
4457         input_iterator_tag), _S_construct(_InIterator, _InIterator,
4458         const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
4459         const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
4460         (_M_mutate): Check for the empty string and treat it as shared.
4461         This is necessary here because _M_mutate is sometimes called with
4462         all-zero arguments; in all other uses of _M_is_shared, the test comes
4463         out right anyhow.
4465 2003-06-12  Benjamin Kosnik  <bkoz@redhat.com>
4467         * src/allocator-inst.cc: Explicitly instantiate.
4468         * include/ext/pool_allocator.h: Inhibit implicit instantiations.
4469         Tweaks.
4470         * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
4472 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
4474         * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
4475         * aclocal.m4: Regenerate.
4476         * Makefile.am (SUBDIRS): Remove libio.
4477         * Makefile.in: Regenerate.
4478         * configure.in: Same.
4479         * configure: Regenerate.
4480         * config/io/basic_file_libio.cc: Remove.
4481         * config/io/basic_file_libio.h: Remove.
4482         * config/io/c_io_libio_codecvt.c: Remove.
4483         * config/io/c_io_libio.h: Remove.
4484         * libio/*: Remove.
4485         * src/Makefile.am: Same.
4486         * src/Makefile.in: Regenerate.
4487         * docs/html/configopts.html: Edits.
4488         * docs/html/explanations.html: Edits.
4490 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
4492         * include/bits/stl_alloc.h (__debug_alloc): Move out.
4493         (__malloc_alloc): Same.
4494         (__pool_alloc): Same.
4495         (__new_alloc): Same.
4496         Rename to..
4497         * include/bits/allocator.h: ...this.
4498         * include/bits/stl_deque.h: Modify comment.
4499         * include/bits/stl_tree.h: Modify include.
4500         * include/std/std_memory.h: Same.
4501         * include/ext/rope: Same.
4502         * include/ext/slist: Same.
4503         * include/std/std_vector.h: Same.
4504         * include/std/std_stack.h: Same.
4505         * include/std/std_queue.h: Same.
4506         * include/std/std_list.h: Same.
4507         * include/std/std_deque.h: Same.
4508         * include/backward/alloc.h: Same.
4509         * include/ext/debug_allocator.h: New.
4510         * include/ext/malloc_allocator.h: New.
4511         * include/ext/pool_allocator.h: New.
4512         * include/ext/new_allocator.h: New.
4513         * include/bits/pthread_allocimpl.h: Remove.
4514         * include/bits/stl_pthread_alloc.h: Remove.
4515         * include/Makefile.am (ext_headers): Add.
4516         * include/Makefile.in: Regenerate.
4517         * src/stl-inst.cc: Use __gnu_cxx namespace.
4518         * src/stl-inst.cc: Move to...
4519         * src/allocator-inst.cc: Here.
4520         * src/Makefile.am (sources): Update.
4521         * src/Makefile.in: Regenerate.
4522         * config/linker-map.gnu: Remove __pool_alloc bits.
4523         * testsuite/ext/headers.cc: Add.
4524         * testsuite/ext/allocators.cc: Fixup.
4526 2003-06-11  Stefan Olsson  <stefan@snon.net>
4527             Ola Rönnerup  <fnolis@home.se>
4529         * include/Makefile.am (ext_headers): Add.
4530         * include/Makefile.in: Regenerate.
4531         * include/ext/mt_allocator.h: New file.
4533 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
4535         * include/bits/fstream.tcc (close): Clean up a bit.
4537         * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
4539         * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
4540         - the saved _M_in_cur, that is - cannot be null.
4541         (sync): Constify a variable.
4543         * include/std/std_streambuf.h: Tweak a comment.
4544         (in_avail): Constify a variable.
4546 2003-06-10  Phil Edwards  <pme@gcc.gnu.org>
4548         * docs/html/17_intro/BUGS:  Update from 2.90.8 snapshot.
4549         * docs/html/17_intro/CHECKLIST:  Bring up to date with respect to
4550         correctness of container::iterator typedefs.  Fix whitespace.
4551         * docs/html/20_util/howto.html, docs/html/ext/howto.html:  Add links
4552         to allocator docs.
4553         * docs/html/documentation.html:  Regenerate.
4555         * include/bits/basic_string.h, include/bits/basic_string.tcc,
4556         include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
4557         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4558         include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
4559         include/bits/stl_list.h, include/bits/stl_uninitialized.h,
4560         include/bits/stl_vector.h, include/bits/vector.tcc,
4561         include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
4562         Change _Iter names to _Iterator, and __pos to __position.
4564         * include/bits/stl_relops.h, include/bits/stl_numeric.h,
4565         include/bits/stl_multiset.h, include/bits/stl_set.h:
4566         Remove emacs markers.
4568         * include/bits/stl_threads.h (_STL_auto_lock):  Add __unused__.
4570 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
4572         * include/bits/fstream.tcc (overflow): According to
4573         27.5.2.4.5, overflow() returns not_eof(eof()).
4574         * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
4575         * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
4577 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
4579         * include/bits/fstream.tcc (_M_underflow): Check overflow return
4580         value; tweak slightly.
4582 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
4584         * include/bits/fstream.tcc (_M_underflow): Do not special
4585         case the unbuffered case, which really means simply a one char
4586         get area.
4587         (basic_filebuf): Initialize _M_buf_size.
4588         (setbuf): Unbuffered means _M_buf_size == 1, since only
4589         _M_buf_size - 1 == 0 chars are going to be used for the
4590         put area and 1 for the get area.
4591         * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
4592         (~basic_streambuf): Tweak.
4593         (basic_streambuf): Do not initialize _M_buf_size.
4594         * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
4595         (~basic_filebuf): Tweak.
4596         (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
4597         unbuffered situation (i.e., put area pointers NULL).
4598         * include/bits/streambuf.tcc (sbumpc): Clean up.
4599         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
4600         * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
4601         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
4602         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
4603         * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
4604         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
4605         * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
4607 2003-06-09  Phil Edwards  <pme@gcc.gnu.org>
4609         * acinclude.m4:  Move all AM_CONDITIONAL calls out.
4610         (GLIBCPP_CONFIGURE):  Set defaults for variables used in AM_CONDITIONAL
4611         statements.
4612         * configure.in:  Centralize AM_CONDITIONALs so that they are always
4613         run.  Make use of GLIBCPP_IS_CROSS_COMPILING.
4614         * aclocal.m4, configure:  Regenerated.
4616 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
4618         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 235.
4620 2003-06-06  Nathan Myers  <ncm-nospam@cantrip.org>
4622         * include/bits/stl_iterator.h
4623         (reverse_iterator::reverse_iterator()): Apply DR235: default
4624         constructor default-initializes data member.  Instantiated on a
4625         pointer type, the member has to end up equal to zero.
4627 2003-06-06  Benjamin Kosnik  <bkoz@redhat.com>
4629         * include/bits/stl_alloc.h: Cleanups.
4630         * include/ext/functional: Same.
4631         * include/ext/hash_map: Same.
4632         * include/ext/hash_set: Same.
4633         * include/ext/iterator: Same.
4634         * include/ext/memory: Same.
4635         * include/ext/numeric: Same.
4636         * include/ext/rb_tree: Same.
4637         * include/ext/ropeimpl.h: Same.
4638         * include/ext/slist: Same.
4639         * include/ext/stdio_filebuf.h: Same.
4640         * include/ext/stdio_sync_filebuf.h: Same.
4641         * include/ext/stl_rope.h: Move to...
4642         * include/ext/rope: ...here.
4643         * include/ext/stl_hash_fun.h: Move to...
4644         * include/ext/hash_fun.h: ...here.
4645         * include/ext/stl_hashtable.h: Move to...
4646         * include/ext/hashtable.h: ...here.
4647         * include/backward/hashtable.h: Reflect new names.
4648         * include/Makefile.am: Same.
4649         * include/Makefile.in: Regenerated.
4651 2003-06-05  Benjamin Kosnik  <bkoz@redhat.com>
4653         PR libstdc++/9024
4654         * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
4655         * include/bits/stl_algobase.h: Tweak.
4656         * include/std/std_fstream.h: Move _M_buf_size to...
4657         * include/std/std_streambuf.h: ...here. Modify.
4658         * include/bits/streambuf.tcc: Same.
4659         * testsuite/testsuite_hooks.h: Tweak.
4660         * testsuite/testsuite_io.h (constraint_filebuf): New.
4661         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
4662         * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
4663         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
4664         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
4665         * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
4666         * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
4667         * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
4668         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
4669         * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
4670         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
4671         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
4672         * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
4673         * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
4674         * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
4675         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
4676         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
4677         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
4678         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
4679         * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
4680         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
4681         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
4682         * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
4683         * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
4684         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
4685         * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
4686         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
4687         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
4688         * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
4689         * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
4690         * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
4691         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
4692         * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
4693         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
4694         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
4695         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
4696         * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
4697         * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
4698         * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
4699         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
4700         * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
4701         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
4702         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
4703         * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
4704         * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
4705         * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
4706         * testsuite/data/sgetc.txt: New.
4707         * testsuite/data/sgetn.txt: New.
4709 2003-06-05  Paolo Carlini  <pcarlini@unitus.it>
4711         PR libstdc++/11095
4712         * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
4713         Deal with width() smaller than zero.
4714         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
4715         operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
4716         _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
4717         char*), operator<<(basic_ostream<char, _Traits>&, const char*),
4718         operator<<(basic_ostream, const basic_string&)): Likewise.
4720         * testsuite/27_io/basic_istream/extractors_character/char/
4721         (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
4722         * testsuite/27_io/basic_ostream/inserters_character/char/
4723         (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
4724         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
4725         (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
4727 2003-06-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4729         * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
4730         .gch compilation works.
4731         * aclocal.m4, configure: Regenerate.
4732         * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
4733         initialize PCHFLAGS.
4735 2003-06-04  Paolo Carlini  <pcarlini@unitus.it>
4737         * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
4738         erase(iterator), erase(iterator, iterator), c_str,
4739         compare(const basic_string&)): Constify various variables.
4740         * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
4741         const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
4742         _S_create, resize, _M_replace, _M_replace_safe,
4743         append(const basic_string&), append(const basic_string&, size_type,
4744         size_type), append(const _CharT*, size_type), append(size_type,
4745         _CharT), operator+(const _CharT*, const basic_string&),
4746         operator+(_CharT, const basic_string&), replace(iterator, iterator,
4747         size_type, _CharT), find(const _CharT*, size_type, size_type),
4748         find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
4749         rfind(_CharT, size_type), compare(size_type, size_type,
4750         const basic_string&), compare(size_type, size_type,
4751         const basic_string&, size_type, size_type), compare(const _CharT*),
4752         compare(size_type, size_type, const _CharT*), compare(size_type,
4753         size_type, const _CharT*, size_type)): Likewise.
4755 2003-06-03  Benjamin Kosnik  <bkoz@redhat.com>
4757         * include/bits/fstream.tcc (pbackfail): Make a rarely taken
4758         'if' branch less obscure.
4760 2003-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
4762         PR libstdc++/9815
4763         * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
4764         asm case to asm.
4765         * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
4766         (__atomic_add): likewise.
4768 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
4770         * include/bits/sstream.tcc (pbackfail): Minor clean up and
4771         reformatting, consistent with basic_filebuf::pbackfail.
4773 2003-06-02  Richard Kreckel  <Richard.Kreckel@GiNaC.DE>
4775         PR libstdc++/11062
4776         * config/cpu/mips/atomicity.h:  Change __attribute__ ((unused)) to
4777         __attribute__ ((__unused__)).
4778         * config/os/aix/atomicity.h:  Likewise.
4780 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
4782         PR libstdc++/9761
4783         * include/bits/fstream.tcc (pbackfail): If the pback buffer
4784         is already active don't try to store in it a second char.
4785         * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
4787         * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
4789 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
4791         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
4792         line spacing.
4794 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
4796         * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
4797         instead of unnecessarily taking the address of _M_pback.
4798         (xsgetn): Simplify slightly for a single char pback buffer.
4800 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
4802         * include/bits/sstream.tcc (seekoff): Remove four unnecessary
4803         variables and two 'if', clean up.
4805 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
4807         * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
4808         not _M_out_end, since the former actually points to the string
4809         end (vs buffer end).
4810         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
4812 2003-05-30  Phil Edwards  <pme@gcc.gnu.org>
4814         * docs/doxygen/filter:  New file.
4815         * docs/doxygen/filter.sed:  New file.
4816         * docs/doxygen/run_doxygen:  Add g flag to sed substitutions.  Duh.
4817         * docs/doxygen/user.cfg.in (INPUT_FILTER):  Point to new filter.
4818         * docs/html/documentation.html:  Fix links to doxygen pages.
4820 2003-05-30  Paolo Carlini  <pcarlini@unitus.it>
4822         * include/bits/fstream.tcc (_M_convert_to_external): Don't
4823         check for __ilen > 0.
4825 2003-05-29  Sylvain Pion  <Sylvain.Pion@mpi-sb.mpg.de>
4827         PR libstdc++/10783
4828         * include/bits/stl_iterator.h (class __normal_iterator):
4829         Don't inherit from iterator, add missing typedefs.
4831 2003-05-29  Paolo Carlini <pcarlini@unitus.it>
4833         * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
4834         * testsuite/24_iterators/reverse_iterator/1.cc: New.
4835         * testsuite/24_iterators/reverse_iterator/2.cc: New.
4836         * testsuite/24_iterators/reverse_iterator/3.cc: New, from
4837         PR libstdc++/10783.
4839 2003-05-27  Steve Ellcey  <sje@cup.hp.com>
4841         * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
4842         on IA64 HP-UX.
4843         * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
4844         _LIBUNWIND_STD_ABI is set.
4846 2003-05-26  Brendan Kehoe  <brendan@zen.org>
4848         * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
4849         make sure the number of digits required after the decimal-point
4850         (if any) is exactly the value returned by frac_digits().
4851         * testsuite/22_locale/money_get/get/char/9.cc: New.
4852         * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
4854 2003-05-27  Jonathan Wakely  <redi@gcc.gnu.org>
4856         * include/std/std_istream.h, include/std/std_ostream.h: Typo in
4857         comment.
4859 2003-05-26  Benjamin Kosnik  <bkoz@redhat.com>
4861         PR libstdc++/9339
4862         * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
4863         (_M_pback): No array necessary.
4864         * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
4865         unbuffered case, coalesec into ...
4866         (basic_filebuf::overflow): ...this.
4867         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
4868         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
4870 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
4872         * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
4873         libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
4874         libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
4875         libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
4876         libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
4877         libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
4878         libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
4879         libsupc++/eh_unex_handler.cc, libsupc++/exception,
4880         libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
4881         libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
4882         libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
4883         libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
4884         Replace "GNU CC" with "GCC".
4886         * include/backward/new.h: Replace "GNU CC" with "GCC".
4888 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
4890         PR libstdc++/3066.
4891         * configure.in: Switch target to host, don't assume newlib.
4892         (target_alias): Remove.
4893         * configure: Regenerate.
4894         * acinclude.m4: Same.
4895         * aclocal.m4: Regenerate.
4896         * configure.target: Same. Rename to...
4897         * configure.host: This.
4899 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
4901         * include/std/std_fstream.h (_S_pback_size): Remove definition.
4902         (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
4903         pback buffer.
4904         * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
4905         * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
4906         of _S_pback_size for systems with no COMDAT or weak support.
4907         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
4908         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
4909         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
4910         * testsuite/27_io/basic_fstream/3.cc: Likewise.
4911         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
4912         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
4913         * testsuite/27_io/basic_ofstream/3.cc: Likewise.
4914         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
4915         * testsuite/27_io/basic_streambuf/3.cc: Likewise.
4917 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
4919         * include/bits/fstream.tcc (_M_underflow): Simplify:
4920         !__testout implies _M_filepos == _M_in_end, therefore
4921         the first _M_file.seekoff call is never issued.
4923 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
4925         * configure.in: Sort cross table.
4926         * configure: Regenerate.
4928 2003-05-22  Brad Spencer  <spencer@infointeractive.com>
4930         PR libstdc++/10106
4931         * configure.in: Add Solaris cross bits.
4933 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
4935         * libstdc++-v3/config/os/mingw32/os_defines.h
4936         (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
4937         (NOMINMAX): Define.  Update copyright year.
4939 2003-05-21  Paolo Carlini  <pcarlini@unitus.it>
4941         * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
4943 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
4945         * docs/html/faq/index.html: Fix typo.
4946         * docs/html/faq/index.txt: Regenerate.
4948 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
4950         * docs/html/test.html: Fix markup.
4952 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
4954         * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
4955         zero.
4956         Update copyright year.
4958 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
4960         * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
4962 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
4964         * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
4965         further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
4967 2003-05-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4969         * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
4970         Cast via void* to avoid -Wcast-align warnings.
4971         (__default_alloc_template::_S_refill): Likewise.
4973 2003-05-20  Benjamin Kosnik  <bkoz@redhat.com>
4975         * testsuite/README: Move to...
4976         * docs/html/test.html: ...here. Add documentation.
4977         * docs/html/install.html: Move testing bits out..
4978         * docs/html/documentation.html: Add separate testing link.
4979         * testsuite/performance: Add.
4980         * testsuite/performance/allocator.cc: New.
4981         * testsuite/performance/complex_norm.cc: New.
4982         * testsuite/performance/cout_insert_int.cc: New.
4983         * testsuite/performance/fstream_seek_write.cc: New.
4984         * testsuite/performance/ifstream_getline.cc: New.
4985         * testsuite/performance/map_create_fill.cc: New.
4986         * testsuite/performance/ofstream_insert_float.cc: New.
4987         * testsuite/performance/ofstream_insert_int.cc: New.
4988         * testsuite/performance/string_append.cc: New.
4989         * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
4990         performance tests.
4992 2003-05-20  Gabriel Dos Reis <gdr@integrable-solutions.net>
4994         PR libstdc++/10689
4995         * include/std/std_complex.h (pow): Tidy.
4997 2003-05-19  Paolo Carlini  <pcarlini@unitus.it>
4999         * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
5000         that upon filebuf::close() 27.8.1.1,3 is enforced.
5002 2003-05-15  Loren J. Rittle  <ljrittle@acm.org>
5004         * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
5006 2003-05-15  Paolo Carlini  <pcarlini@unitus.it>
5007             Nathan Myers  <ncm@cantrip.org>
5009         * include/bits/fstream.tcc (_M_overflow): Rewrote to call
5010         _M_convert_to_external only once (_M_buf_size is now the size of
5011         the put area + 1 for the overflow char of a full area); call
5012         _M_set_buffer instead of _M_set_indeterminate.
5013         (setbuf): Don't accept a buffer smaller than 2 chars.
5014         (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
5015         instead of _M_set_determinate.
5016         (open): Call _M_set_buffer, instead of _M_set_indeterminate.
5017         (seekoff): Likewise.
5018         * include/ext/stdio_filebuf.h (stdio_filebuf(int,
5019         std::ios_base::openmode, bool, size_t),
5020         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
5021         Likewise.
5022         * include/std/std_fstream.h (_M_set_indeterminate): Remove.
5023         (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
5024         _M_buf_size - 1.
5025         * include/std/std_streambuf.h: Tweak _M_out_lim comment.
5026         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
5027         into account that, for _M_buf_size == BUFSIZ == 8192, the size of
5028         the put area is now BUFSIZ - 1.
5029         * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
5030         that now the smallest _M_buf_size is 2 (still fails, for the same
5031         reason, with 3.2.3)
5033 2003-05-14  Loren J. Rittle  <ljrittle@acm.org>
5035         * testsuite/thread/pthread4.cc: Tweak test.
5037 2003-05-13  Benjamin Kosnik  <bkoz@redhat.com>
5039         * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
5040         excess errors dg marker, use dg-errors instead.
5041         * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
5042         * testsuite/20_util/auto_ptr_neg.cc: Same.
5044 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
5046         * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
5047         cached member.
5048         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
5049         Initialize _M_codecvt.
5050         (basic_filebuf::imbue): Same.
5051         (basic_filebuf::showmanyc): Use it.
5052         (basic_filebuf::underflow): Use it.
5053         (basic_filebuf::_M_convert_to_external): Use it.
5054         (basic_filebuf::seekoff): Use it.
5055         (basic_filebuf::imbue): Use it, tweaks.
5056         * include/bits/localefwd.h (__check_facet): New.
5057         * include/bits/locale_classes.h: Tweaks.
5058         * include/bits/locale_facets.tcc: Tweaks.
5059         * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
5060         _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
5061         _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
5062         * include/bits/basic_ios.tcc: Same.
5063         * include/bits/istream.tcc: Same.
5064         * include/bits/ostream.tcc: Same.
5065         * include/std/std_streambuf.h: Same.
5066         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
5067         * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
5068         * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
5069         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
5070         * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
5071         * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
5073 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
5075         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
5076         unnecessary includes and unused string literals.
5077         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
5078         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
5079         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
5080         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
5082 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
5084         * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
5086 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
5088         * include/std/std_fstream.h (_M_convert_to_external): Change
5089         to return bool, take two less streamsize parameters.
5090         * include/bits/fstream.tcc (_M_convert_to_external): Tweak
5091         consistently definition.
5092         (_M_overflow): Adjust call points.
5094 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
5096         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
5098 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
5100         * testsuite/Makefile.am:  Properly quote /both/ LD_RUN_PATHs.
5101         * testsuite/Makefile.in:  Regenerate.
5103 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
5105         * testsuite/Makefile.am:  Properly quote LD_RUN_PATH.
5106         * testsuite/Makefile.in:  Regenerate.
5108 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
5110         PR libstdc++/3181
5111         * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
5112         (acos): Handle integer argument.
5113         (asin): Likewise.
5114         (atan): Likewise.
5115         (atan2): Likewise.
5116         (ceil): Likewise.
5117         (cos): Likewise.
5118         (cosh): Likewise.
5119         (exp): Likewise.
5120         (fabs): Likewise.
5121         (floor): Likewise.
5122         (frexp): Likewise.
5123         (ldexp): Likewise.
5124         (log): Likewise.
5125         (log10): Likewise.
5126         (sin): Likewise.
5127         (sinh): Likewise.
5128         (sqrt): Likewise.
5129         (tan): Likewise.
5130         (tanh): Likewise.
5131         * include/bits/cpp_type_traits.h (__are_same<>): New traits.
5132         (__enable_if): Likewise.
5133         * testsuite/26_numerics/cmath/overloads.C: New test.
5135 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
5137         PR libstdc++/9027
5138         PR libstdc++/9520
5139         PR libstdc++/10096
5140         * include/bits/fstream.tcc (basic_file::_M_underflow):  Add generic
5141         implementation, based on old wchar_t specialization, add support
5142         for codecvt::in() return value of codecvt_base::noconv, remove
5143         _M_file.sys_ungetc() call.
5144         * include/std/std_fstream.h (basic_file::underflow,
5145         basic_file::uflow, basic_file::_M_underflow):  Remove
5146         specialization declarations, call _M_underflow from generic versions
5147         of underflow and uflow.
5148         * src/fstream.cc (basic_file::underflow, basic_file::uflow,
5149         basic_file::_M_underflow):  Remove specializations.
5150         * src/Makefile.am (sources):  Remove fstream.cc.
5151         * src/Makefile.in:  Regenerated.
5152         * testsuite/27_io/basic_filebuf/underflow/10096.cc:  New test.
5153         * testsuite/27_io/basic_filebuf/underflow/char/1.cc:  New test.
5154         * testsuite/27_io/basic_filebuf/underflow/char/9027.cc:  New test.
5155         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc:  New test.
5157 2003-05-10  Benjamin Kosnik  <bkoz@redhat.com>
5159         * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
5160         buffer.
5161         * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
5162         unbuffered bits.
5163         (__basic_file::xsputn): Same.
5164         (__basic_file::seekoff): Same.
5165         (__basic_file::seekpos): Same.
5166         (__basic_file::showmanyc): Same.
5167         * config/io/basic_file_stdio.cc: Same.
5168         * include/std/std_fstream.h: Same.
5169         * include/bits/fstream.tcc: Same.
5170         * src/fstream.cc: Same.
5171         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
5173 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
5175         PR libstdc++/9520
5176         PR libstdc++/9661
5177         PR libstdc++/9662
5178         * include/ext/stdio_sync_filebuf.h:  New file.
5179         (basic_stdiobuf):  New.
5180         * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
5181         * include/Makefile.in: Regenerate.
5182         * include/bits/ios_base.h (Init::_S_create_buffers,
5183         Init::_S_destroy_buffers):  Remove declarations.
5184         * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
5185         buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync):  Define.
5186         * src/ios.cc (Init::_S_create_buffers,
5187         Init::_S_destroy_buffers):  Remove.
5188         (Init::Init):  Create and use syncronized buffers.
5189         (ios_base::sync_with_stdio):  Destroy syncronized buffers,
5190         create and install unsyncronized buffers.
5191         * testsuite/27_io/objects/char/10.cc:  New test.
5192         * testsuite/27_io/objects/char/9.cc:  New test.
5193         * testsuite/27_io/objects/char/9661-1.cc:  New test.
5194         * testsuite/27_io/objects/char/9661-2_xin.cc:  New test.
5195         * testsuite/27_io/objects/char/9661-2_xin.in:  New.
5196         * testsuite/27_io/objects/wchar_t/1.cc:  New test.
5197         * testsuite/27_io/objects/wchar_t/10.cc:  New test.
5198         * testsuite/27_io/objects/wchar_t/2.cc:  New test.
5199         * testsuite/27_io/objects/wchar_t/2523-1_xin.cc:  New test.
5200         * testsuite/27_io/objects/wchar_t/2523-1_xin.in:  New.
5201         * testsuite/27_io/objects/wchar_t/2523-2_xin.cc:  New test.
5202         * testsuite/27_io/objects/wchar_t/2523-2_xin.in:  New.
5203         * testsuite/27_io/objects/wchar_t/3045.cc:  New test.
5204         * testsuite/27_io/objects/wchar_t/3647.cc:  New test.
5205         * testsuite/27_io/objects/wchar_t/3_xin.cc:  New test.
5206         * testsuite/27_io/objects/wchar_t/3_xin.in:  New.
5207         * testsuite/27_io/objects/wchar_t/4_xin.cc:  New test.
5208         * testsuite/27_io/objects/wchar_t/4_xin.in:  New.
5209         * testsuite/27_io/objects/wchar_t/5.cc:  New test.
5210         * testsuite/27_io/objects/wchar_t/5268.cc:  New test.
5211         * testsuite/27_io/objects/wchar_t/5280_xin.cc:  New test.
5212         * testsuite/27_io/objects/wchar_t/5280_xin.in:  New.
5213         * testsuite/27_io/objects/wchar_t/6.cc:  New test.
5214         * testsuite/27_io/objects/wchar_t/6548_xin.cc:  New test.
5215         * testsuite/27_io/objects/wchar_t/6548_xin.in:  New.
5216         * testsuite/27_io/objects/wchar_t/6648-1_xin.cc:  New test.
5217         * testsuite/27_io/objects/wchar_t/6648-1_xin.in:  New.
5218         * testsuite/27_io/objects/wchar_t/6648-2_xin.cc:  New test.
5219         * testsuite/27_io/objects/wchar_t/6648-2_xin.in:  New.
5220         * testsuite/27_io/objects/wchar_t/7.cc:  New test.
5221         * testsuite/27_io/objects/wchar_t/7744_xin.cc:  New test.
5222         * testsuite/27_io/objects/wchar_t/7744_xin.in:  New.
5223         * testsuite/27_io/objects/wchar_t/8.cc:  New test.
5224         * testsuite/27_io/objects/wchar_t/9_xin.cc:  New test.
5225         * testsuite/27_io/objects/wchar_t/9_xin.in:  New.
5226         * testsuite/27_io/objects/wchar_t/9520.cc:  New test.
5227         * testsuite/27_io/objects/wchar_t/9661-1.cc:  New test.
5228         * testsuite/27_io/objects/wchar_t/9661-2_xin.cc:  New test.
5229         * testsuite/27_io/objects/wchar_t/9661-2_xin.in:  New.
5230         * testsuite/27_io/objects/wchar_t/9662.cc:  New test.
5231         * testsuite/ext/stdiobuf_char.cc:  New test.
5232         * testsuite/ext/stdiobuf_wchar_t.cc:  New test.
5234 2003-05-10  Paolo Carlini  <pcarlini@unitus.it>
5236         * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
5237         unnecessary includes and unused string literals.
5238         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
5240 2003-05-08  Paolo Carlini  <pcarlini@unitus.it>
5242         * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
5244 2003-05-07  Richard Henderson  <rth@redhat.com>
5246         PR c++/10570
5247         * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
5248         (__cxa_end_catch): Likewise.
5249         * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise.  Use
5250         _Unwind_Resume_or_Rethrow.
5251         * libsupc++/eh_personality.cc (empty_exception_spec): New.
5252         (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
5253         for _UA_FORCE_UNWIND.  Honor empty filter spec for foreign
5254         exceptions.  Don't push terminate/unexpected to cxa functions.
5255         (__cxa_call_unexpected): Remove foreign exception fixmes.
5257 2003-05-07  Benjamin Kosnik  <bkoz@redhat.com>
5259         * testsuite/27_io/ios_base/cons: New.
5260         * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
5261         * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
5263 2003-05-07  Paolo Carlini  <pcarlini@unitus.it>
5265         * include/std/std_fstream.h (_M_is_indeterminate): Remove.
5266         * src/fstream.cc
5267         (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
5268         there is no buffer or __testget == !__testinit.
5270         * src/fstream.cc
5271         (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
5272         automatically sets, if appropriate, _M_out_cur == _M_in_cur.
5274         * include/std/std_fstream.h (_M_destroy_pback): Don't set
5275         unnecessarily _M_pback_cur_save and _M_pback_end_save.
5277         * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
5279         * include/std/std_sstream.h (_M_sync): Minor tweak.
5281         * include/bits/fstream.tcc (close): No need to call
5282         _M_destroy_pback, setting _M_pback_init to false suffices
5283         to clean up.
5285 2003-05-06  Benjamin Kosnik  <bkoz@redhat.com>
5287         * include/bits/stl_algo.h: Enums as _S_.
5288         * include/bits/stl_tree.h: Same.
5289         * include/bits/stl_bvector.h: Same.
5290         * include/bits/ios_base.h: Same.
5291         * include/bits/stl_alloc.h: Same.
5292         * include/ext/stl_hashtable.h: Same.
5293         * src/ios.cc: And here.
5295         * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
5296         * include/bits/sstream.tcc: Same.
5298         * include/bits/basic_ios.h: Correct spacing for '< ctype'.
5300         * include/bits/locale_facets.tcc: Replace __temp to __tmp.
5302         * include/bits/locale_facets.h (__num_base): Remove protected.
5303         Use _S_[io]* names for enumerations.
5304         (_S_format_int): Remove.
5305         * include/bits/locale_facets.tcc: Same.
5306         * src/locale.cc: Same.
5308         * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
5310 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
5312         * docs/html/faq/index.html (3.10):  Add note about mips atomicity.h.
5313         * docs/html/faq/index.txt:  Regenerated.
5315 2003-05-06  Michael Ritzert <Ritzert@t-online.de>
5316             Matt Kraai <kraai@alumni.cmu.edu>
5318         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
5319         And retweak.
5321 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
5323         * configure.target (mips*): Use the generic atomicity.h by default.
5325 2003-05-05  Loren J. Rittle  <ljrittle@acm.org>
5326             (Inspired by an alternate patch from Danny Smith.)
5328         * include/bits/stl_threads.h (_Atomic_swap): Kill it...
5329         (_Swap_lock_struct<>): ...and the horse it rode in on.
5330         * src/globals.cc (_Swap_lock_struct<>): Likewise.
5331         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
5332         member to support...
5333         * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
5334         visibility rules related to POSIX threads.
5335         * testsuite/thread/pthread7-rope.cc: New test.
5337 2003-05-04  Paolo Carlini  <pcarlini@unitus.it>
5339         * testsuite/21_strings/basic_string/find/char/3.cc: New
5340         file, testing basic_string<char>::find_first_not_of.
5341         * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
5342         Likewise for basic_string<wchar_t>.
5344 2003-05-03  Loren J. Rittle  <ljrittle@acm.org>
5346         * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
5348 2003-05-02  Benjamin Kosnik  <bkoz@redhat.com>
5350         * include/Makefile.am (CLEANFILES): Remove PCH files in target
5351         directory.
5352         * include/Makefile.in: Regenerate.
5354 2003-05-02  Paolo Carlini  <pcarlini@unitus.it>
5356         * include/std/std_sstream.h (str()): Tidy.
5358 2003-05-02  Nathan Myers  <ncm@cantrip.org>
5359             Paolo Carlini  <pcarlini@unitus.it>
5361         * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
5363 2003-05-02  Jonathan Wakely  <redi@gcc.gnu.org>
5365         * include/bits/basic_string.h (swap): Remove redundant template
5366         parameters from declaration of non-template member function.
5368 2003-05-01  Phil Edwards  <pme@gcc.gnu.org>
5370         * acconfig.h (_GLIBCPP_USE_NLS):  New symbol.
5371         * configure.in:  Move libintl.h header test...
5372         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  ...to here.  Gather all
5373         the NLS-related test results into one symbol.
5374         * src/functexcept.cc:  Use it here.
5375         * aclocal.m4, config.h.in, configure:  Regenerated.
5377 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
5379         * include/bits/sstream.tcc (overflow): Instead of calling
5380         str(), then _M_string.reserve, thus copying the contents
5381         of the current buffer two times, just copy the latter in
5382         a temporary, then use the 'swap trick'.
5384 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
5386         * include/std/std_sstream.h (str()): Revert the best of the
5387         previous 'improvement', incorrect due to the COW nature of
5388         v3 basic_string; simplify.
5390 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
5392         * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
5393         type of __avail to ptrdiff_t to avoid signed-unsigned warning.
5395 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
5397         * testsuite/abi_check.cc (check_version): Update known versions.
5398         Check added symbols for version_name != base version. Add missing
5399         symbols to incompatible list.
5401 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
5403         * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
5404         * aclocal.m4: Regenerated.
5405         * configure: Regenerated.
5407 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
5409         * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
5410         Const-ify some variables.
5411         (basic_streambuf::xsputn): Likewise; change the type of some
5412         variables to size_t.
5413         (__copy_streambufs): Change some variables to size_t.
5415 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
5417         * include/std/std_sstream.h (str()): Avoid constructing
5418         a basic_string temporary not only when it would turn out
5419         to be zero-sized but also when identical to the current
5420         _M_string buffer.
5422 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
5424         * include/ext/stdio_filebuf.h
5425         (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
5426         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
5427         Shorten a bit (-10 lines) by factoring out some code.
5429 2003-04-30  Phil Edwards  <pme@gcc.gnu.org>
5431         * acinclude.m4:  Add bit missing from previous patch.
5432         * aclocal.m4, configure:  Regenerated.
5434 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
5436         * docs/doxygen/mainpage.html:  Bring up to date.
5437         * docs/doxygen/run_doxygen:  Cosmetic tweaks.  Work around a bug
5438         in Doxygen.
5439         * docs/doxygen/user.cfg.in:  Scanning the precompiled headers
5440         breaks everything.  Don't scan them.
5441         * docs/html/documentation.html:  Point to "Write after approval"
5442         notes.
5444 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
5446         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  Search for gettext outside
5447         of libc if message translations are being used.  Fix info text in
5448         xieee_1003.1-2001 case.
5449         * aclocal.m4, configure:  Regenerate.
5451 2003-04-29 Joel Sherrill  <joel.sherrill@OARcorp.com>
5452            Loren J. Rittle <ljrittle@acm.org>
5453            Martin v. Loewis  <martin@v.loewis.de>
5455         * config/cpu/i386/atomicity.h: New file.
5457 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
5459         * include/bits/fstream.tcc (open): Change to single return.
5461 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
5463         * include/std/std_sstream.h (underflow): Change to single return.
5465 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
5467         * include/std/std_streambuf.h (_M_buf): is currently
5468         used only for basic_filebuf, therefore move it there.
5469         (basic_streambuf(), ~basic_streambuf()): Adjust.
5470         * include/std/std_fstream.h (_M_buf): Moved here.
5471         * include/std/std_sstream.h (setbuf): Don't set _M_buf,
5472         is actually redundant for basic_stringbuf.
5473         (_M_really_sync): Likewise.
5474         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
5475         * include/bits/sstream.tcc (seekoff): Adjust.
5477 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
5479         * src/localename.cc: Standardize exception strings.
5480         * src/locale.cc: Same.
5481         * src/ios.cc: Same.
5482         * include/bits/basic_string.tcc: Same.
5483         * include/bits/basic_ios.tcc: Same.
5484         * include/std/std_bitset.h: Same.
5485         * include/ext/ropeimpl.h: Same.
5486         * include/bits/stl_vector.h: Same.
5487         * include/bits/stl_deque.h: Same.
5488         * include/bits/stl_bvector.h: Same.
5489         * config/locale/generic/c_locale.cc: Same.
5490         * config/locale/gnu/c_locale.cc: Same.
5491         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
5493         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
5495 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
5497         * include/std/std_streambuf.h (_M_buf_size): is currently
5498         used only for basic_filebuf, therefore move it there.
5499         (basic_streambuf(), ~basic_streambuf()): Adjust.
5500         * include/std/std_fstream.h (_M_buf_size): Moved here.
5501         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
5503 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
5505         * include/bits/streambuf.tcc (__copy_streambufs): Don't use
5506         _M_buf_size (synced input is now correctly dealt with
5507         elsewhere); when the output buffer is full don't fall back
5508         to a snextc-sputc loop, call overflow instead.
5510 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
5512         * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
5513         the innermost 'if' by factoring out some code.
5515 2003-04-28  Phil Edwards  <pme@gcc.gnu.org>
5517         * configure.in:  Test for libintl.h.
5518         * include/bits/c++config:  Define __N for everybody.
5519         * include/bits/basic_string.h, include/bits/stl_bvector.h,
5520         include/bits/stl_deque.h, include/bits/stl_vector.h,
5521         include/std/std_bitset.h:  Wrap all __throw* text with __N.
5522         * po/Makefile.am (pot):  New rule, mostly working.
5523         * src/functexcept.cc:  Call gettext on all __throw* arguments when
5524         -fexceptions is in effect.
5525         * po/Makefile.in, config.h.in, configure:  Regenerate.
5527 2003-04-28  Petur Runolfsson  <peturr02@ru.is>
5529         PR libstdc++/9523
5530         * include/bits/ios_base.h (Init::_S_ios_create,
5531         Init::_S_ios_destroy):  Remove declarations.
5532         (Init::_S_create_buffers,
5533         Init::_S_destroy_buffers):  Declare
5534         * src/ios.cc (Init::_S_ios_create):  Remove
5535         (Init::_S_create_buffers):  Create buffers and add to streams.
5536         (Init::_S_ios_destroy):  Rename to...
5537         (Init::_S_destroy_buffers):  this.
5538         (Init::Init):  Only construct streams once.
5539         (Init::~Init):  Flush streams, don't destroy them.
5540         (ios_base::sync_with_stdio):  Don't destroy streams, only buffers.
5541         * testsuite/27_io/ios_base/sync_with_stdio/9523.cc:  New test.
5542         * testsuite/27_io/objects/char/5.cc:  New test.
5543         * testsuite/27_io/objects/char/5268.cc:  Avoid undefined behavior.
5544         * testsuite/27_io/objects/char/6.cc:  New test.
5545         * testsuite/27_io/objects/char/7.cc:  New test.
5547 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
5549         * testsuite/27_io/objects/char/8.cc:  New test.
5551 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
5553         * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
5554         * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
5556 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
5558         * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
5559         _M_destroy_pback. _M_pback_create to
5560         _M_create_pback. _M_underflow_common to
5561         _M_underflow. _M_really_overflow to _M_overflow.
5562         * include/bits/fstream.tcc: Same.
5563         * src/fstream.cc: Same.
5564         * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
5565         _M_move_in_cur.  _M_out_cur_move to _M_move_out_cur.
5566         * include/bits/streambuf.tcc: Same.
5567         * include/bits/fstream.tcc: Same.
5568         * include/bits/sstream.tcc: Same.
5570 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
5572         * include/bits/locale_classes.h (locale::_Impl): Change _M_names
5573         from fixed size array.
5574         (locale): Change _S_categories as well.
5575         Formatting tweaks.
5576         * include/bits/locale_facets.tcc: Tweak.
5577         * config/locale/gnu/c_locale.cc: Assign _S_categories.
5578         * config/locale/generic/c_locale.cc: Same.
5579         * src/locale.cc: Tweak.
5580         * src/globals.cc: Change facet_name to name_vec, add names_c.
5581         * src/localename.cc: Use them.
5582         (locale::_Impl::~_Impl): Destroy _M_names.
5583         (locale::_Impl::_Impl): Create _M_names.
5585 2003-04-27  Andreas Schwab  <schwab@suse.de>
5587         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
5588         (__enc_traits): Use __ibom and __ebom instead of ignoring them.
5590 2003-04-27  Nathan Myers  <ncm@cantrip.org>
5592         Move some basic_string members out of line because
5593         they are too big to reasonably be inline.
5594         * include/bits/basic_string.h
5595         (assign(const basic_string&, size_type, size_type),
5596         assign(const _CharT*, size_type),
5597         insert(size_type, const basic_string&, size_type, size_type),
5598         insert(size_type, const _CharT*, size_type),
5599         replace(size_type, size_type, const _CharT*, size_type)):
5600         Move from here to...
5601         * include/bits/basic_string.tcc: ...here.
5603 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
5605         * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
5606         the innermost 'if' by factoring out some code.
5608 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
5610         * include/bits/streambuf.tcc (__copy_streambufs): Don't
5611         use in_avail(), simplify.
5613 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
5615         * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
5616         in basic_stringbuf it's unused.
5618         * include/std/std_sstream.h (underflow): consistently use
5619         _M_in_cur, not gptr().
5621 2003-04-25  Ranjit Mathew  <rmathew@hotmail.com>
5622             Phil Edwards  <pme@gcc.gnu.org>
5624         * testsuite_flags.in: Guard against the possibility
5625         of having "xgcc" as a part of a folder name in the
5626         path to the GCC build folder.
5627         * testsuite/Makefile.am: Likewise.
5628         * testsuite/Makefile.in: Regenerated.
5630 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
5632         PR libstdc++/10132
5633         * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
5634         exception specifications.
5635         (basic_filebuf::close): Same.
5636         (basic_filebuf::_M_pback_destroy): Same.
5637         (basic_filebuf::_M_destroy_internal_buffer): Same.
5638         (basic_filebuf): Remove __res_type typedef.
5639         * src/fstream.cc: Same.
5640         * include/bits/fstream.tcc
5641         (basic_filebuf::_M_convert_to_external): Simplify.
5642         (basic_filebuf::seekoff): Use has_facet before use_facet.
5643         (basic_filebuf::close): Add exception specification of throw().
5644         * testsuite/27_io/basic_filebuf/cons: New.
5645         * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
5646         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
5647         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
5648         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
5650 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
5652         * include/bits/locale_classes.h
5653         (locale::_S_extra_categories_size): Remove.
5654         * src/locale.cc: Remove _S_extra_categories_size.
5655         * src/localename.cc: Same.
5656         * config/locale/gnu/c_locale.cc: Same.
5657         * config/locale/generic/c_locale.cc: Same.
5659 2003-04-24  Richard Sandiford  <rsandifo@redhat.com>
5661         * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
5663 2003-04-24  Phil Edwards  <pme@gcc.gnu.org>
5665         * docs/html/17_intro/howto.html:  Update some links.
5666         * docs/html/18_support/howto.html:  Link doxygen numeric_limits notes.
5667         * docs/html/27_io/howto.html:  Link doxygen stdio_filebuf notes.
5668         * docs/html/ext/howto.html:  Link to demangler notes and API.
5669         * docs/html/faq/index.html:  Remove trailing whitespace.
5670         (1.4, 2.4, 3.8, 4.1):  Bring up to date.
5671         (5.6):  Change to a bulleted list.
5673         * docs/html/faq/index.txt, docs/html/documentation.html,
5674         docs/html/17_intro/porting.html:  Regenerate.
5676 2003-04-23  Paolo Carlini  <pcarlini@unitus.it>
5678         * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
5679         belongs to basic_filebuf.
5680         * testsuite/27_io/basic_fstream/3.cc: Likewise.
5681         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
5682         * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
5683         instantiation (now belongs to basic_filebuf).
5684         * testsuite/27_io/basic_iostream/3.cc: Likewise.
5685         * testsuite/27_io/basic_istream/3.cc: Likewise.
5686         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
5687         _S_pback_size now belongs to basic_filebuf.
5688         * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
5689         instantiation (now belongs to basic_filebuf).
5690         * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
5691         belongs to basic_filebuf.
5692         * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
5693         instantiation (now belongs to basic_filebuf).
5694         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
5695         _S_pback_size now belongs to basic_filebuf.
5696         * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
5697         instantiation (now belongs to basic_filebuf).
5698         * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
5699         to basic_filebuf.
5700         * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
5701         instantiation (now belongs to basic_filebuf).
5702         * testsuite/27_io/basic_stringstream/3.cc: Likewise.
5704 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
5706         * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
5707         * configure: Regenerated.
5709 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
5711         * config/locale/generic/c_locale.h (__convert_from_v): Use
5712         attribute unused.
5714 2003-04-23  Phil Edwards  <pme@gcc.gnu.org>
5716         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 60, partial
5717         implementation only.
5718         * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
5719         Comment and change to comply with DR 60 and the effect on gcount().
5720         * include/std/std_istream.h:  Update comments.
5721         * testsuite/27_io/basic_istream/putback/char/1.cc (test01):  Add
5722         comments about reasons for tests.  Test sync() against gcount().
5723         * testsuite/27_io/basic_istream/seekg/char/2.cc:  New file, test
5724         for effect on gcount().
5725         * testsuite/27_io/basic_istream/tellg/char/2.cc:  New file, test
5726         for effect on gcount().
5728 2003-04-22  Loren J. Rittle  <ljrittle@acm.org>
5730         * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
5731         Adjust timing.
5733 2003-04-22  Paolo Carlini  <pcarlini@unitus.it>
5735         * include/std/std_streambuf.h (_S_pback_size, _M_pback,
5736         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
5737         _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
5738         (basic_streambuf::basic_streambuf()): Adjust.
5739         * include/std/std_fstream.h (_S_pback_size, _M_pback,
5740         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
5741         _M_pback_create(), _M_pback_destroy()): Moved here
5742         from basic_streambuf.
5743         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
5744         Adjust.
5745         (basic_filebuf::_S_pback_size): Add declaration.
5746         * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
5747         Remove declaration.
5749 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
5751         Consistently use _M_in_beg instead of eback(), _M_in_cur
5752         instead of gptr(), and so on.
5753         * include/bits/fstream.tcc (pbackfail, imbue): Here.
5754         * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
5755         * include/bits/streambuf.tcc (sbumpc, sputbackc,
5756         __copy_streambufs): Ditto.
5757         * include/std/std_streambuf.h (sgetc): Ditto.
5759 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
5761         * include/bits/sstream.tcc (pbackfail, overflow):
5762         Formatting fixes.
5764 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
5766         * include/std/std_streambuf.h (uflow()): It's used only by
5767         basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
5768         therefore do not consider the _M_buf_unified == true case.
5770         * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
5772 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
5774         * docs/html/ext/howto.html ('LWG Issues'):
5775         Add issues 19, 90, 171, 231, 271.
5777 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
5779         * include/bits/sstream.tcc (pbackfail): Remove redundant
5780         NULL pointer check from test involving _M_in_*.
5781         (overflow, seekoff, seekpos): Const qualify bool variables.
5782         * include/std/std_sstream.h (underflow): Remove redundant
5783         NULL pointer check from test involving _M_in_*.
5784         (_M_really_sync): Const qualify bool variables.
5785         * src/fstream.cc (_M_underflow_common): Remove redundant
5786         NULL pointer check from test involving _M_in_*, const qualify
5787         bool variables.
5789         * include/std/std_streambuf.h (sgetc): Remove redundant
5790         variable.
5792 2003-04-18  Paolo Carlini  <pcarlini@unitus.it>
5794         According to 5.9 para 2 (second bullet) for pointers p, q
5795         pointing to the same type, with  p == 0 and q == 0, (p < q)
5796         is false.
5797         * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
5798         seekoff): Remove redundant NULL pointer checks from tests
5799         involving _M_out_* and _M_in_*, const qualify bool variables.
5800         (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
5801         qualify bool variables.
5802         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
5803         Remove redundant NULL pointer checks from tests involving
5804         _M_out_* and _M_in_*, const qualify bool variables.
5805         * include/std/std_fstream.h (sync): Likewise.
5806         (_M_is_indeterminate): Const qualify bool variables.
5807         * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
5808         NULL pointer checks from tests involving _M_out_* and _M_in_*,
5809         const qualify bool variables.
5810         (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
5811         variables.
5813 2003-04-18  Loren J. Rittle  <ljrittle@acm.org>
5815         * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
5816         C99 FP macros, if actually captured.
5818         * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
5819         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
5820         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
5821         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
5822         * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
5823         New macro.
5824         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
5825         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
5826         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
5827         * include/c_std/std_cstdlib.h: Use new macros.
5828         * include/c_std/std_cstdio.h: Use new macros.
5829         * include/c_std/std_cwchar.h: Use new macros.
5831 2003-04-17  Benjamin Kosnik  <bkoz@redhat.com>
5833         PR libstdc++/9555
5834         * include/bits/ostream.tcc: Catch all exceptions for formatted
5835         output, instead of std::exception and derivatives.
5836         * include/bits/istream.tcc: Same.
5837         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
5838         * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
5839         * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
5840         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
5841         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
5842         * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
5843         New.
5845 2003-04-17  Phil Edwards  <pme@gcc.gnu.org>
5847         * include/bits/c++config:  Minor cosmetic tweaks.
5849 2003-04-17  Loren J. Rittle  <ljrittle@acm.org>
5851         * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
5852         * include/Makefile.am (pch_input): Find in ${target_builddir}.
5853         (pch_output): Rename to...
5854         (pch_output_builddir): ..this.  Find in ${target_builddir}.
5855         (pch_source): Tweak.
5856         (pch_build): Key off a built file.
5857         (pch_output rule): Rename to...
5858         (pch_input rule): ...this.  Produce ${pch_output_builddir}
5859         instead of ${pch_output}.
5860         (install-pch rule): Install ${pch_output_builddir}.
5861         * include/Makefile.in: Regenerated.
5863 2003-04-17  Paolo Carlini  <pcarlini@unitus.it>
5865         * include/std/std_streambuf.h (setp): _M_out_lim, being
5866         the end limit of used put area, is set equal to _M_out_beg.
5868 2003-04-16  Benjamin Kosnik  <bkoz@redhat.com>
5870         * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
5871         * aclocal.m4: Regenerated.
5872         * configure.in: Remove old demangler bits.
5873         Call pch checks.
5874         * configure: Regenerate.
5875         * config.h.in: Regenerate.
5876         * include/Makefile.am (allstamps): Now allstamped.
5877         (allcreated): Define this.
5878         (all-local): Use 'em.
5879         Conditionally define pch_build, pch_install based on
5880         GLIBCPP_BUILD_PCH.
5881         (${pch_output}): New rule.
5882         (install-pch): New rule.
5883         (install-headers): New rule.
5884         (install-data-local): Install headers and conditionally pch.
5885         * include/Makefile.in: Regenerate.
5886         * testsuite_flags.in (--build-cxx): Use pch file.
5888 2003-04-16  Jonathan Wakely  <redi@gcc.gnu.org>
5890         * docs/html/ext/sgiexts.html: Fix path to stylesheet.
5892 2003-04-15  Benjamin Kosnik  <bkoz at redhat dot com>
5893             Paolo Carlini  <pcarlini at unitus dot it>
5895         PR libstdc++/9423
5896         * docs/html/27_io/howto.html
5897         ('The buffering is screwing up my program!'): Explain that
5898         opening counts as an I/O operation.
5900 2003-04-15  Andreas Tobler  <a.tobler@schweiz.ch>
5902         * testsuite/thread/pthread1.cc: Enable for darwin test.
5903         * testsuite/thread/pthread2.cc: Same.
5904         * testsuite/thread/pthread3.cc: Same.
5905         * testsuite/thread/pthread4.cc: Same.
5906         * testsuite/thread/pthread5.cc: Same.
5907         * testsuite/thread/pthread6.cc: Same.
5909 2003-04-15  Loren J. Rittle  <ljrittle@acm.org>
5911         libstdc++/7680
5912         * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
5913         Populate it with multiple legal ways to obtain the C99 float
5914         transcendentals.  Use them instead of direct global reference.
5915         (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
5916         * docs/html/17_intro/porting.texi
5917         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
5918         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
5919         (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
5920         * config/os/bsd/freebsd/os_defines.h
5921         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
5922         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
5923         * testsuite/26_numerics/c_math_dynamic.cc: New file.
5925 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
5926             Benjamin Kosnik  <bkoz@redhat.com>
5928         * config/os/generic/ctype_inline.h: Fix.
5930 2003-04-14  Benjamin Kosnik  <bkoz@redhat.com>
5932         * testsuite/testsuite_hooks.h
5933         (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
5934         Change to try_named_locale.
5935         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
5937         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
5938         try_named_locale.
5939         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
5940         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
5941         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
5942         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
5943         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
5944         * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
5945         * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
5946         * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
5947         * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
5948         * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
5949         * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
5950         * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
5951         * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
5952         * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
5953         * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
5954         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
5955         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
5956         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
5957         * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
5958         * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
5959         * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
5960         * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
5961         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
5962         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
5963         * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
5964         * testsuite/22_locale/collate/compare/char/1.cc: Same.
5965         * testsuite/22_locale/collate/compare/char/2.cc: Same.
5966         * testsuite/22_locale/collate/compare/char/3.cc: Same.
5967         * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
5968         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
5969         * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
5970         * testsuite/22_locale/collate/hash/char/2.cc: Same.
5971         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
5972         * testsuite/22_locale/collate/transform/char/2.cc: Same.
5973         * testsuite/22_locale/collate/transform/char/3.cc: Same.
5974         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
5975         * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
5976         * testsuite/22_locale/collate_byname/1.cc: Same.
5977         * testsuite/22_locale/ctype/is/char/2.cc: Same.
5978         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
5979         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
5980         * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
5981         * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
5982         * testsuite/22_locale/facet/2.cc: Same.
5983         * testsuite/22_locale/locale/cons/2.cc: Same.
5984         * testsuite/22_locale/locale/cons/4.cc: Same.
5985         * testsuite/22_locale/locale/cons/5.cc: Same.
5986         * testsuite/22_locale/locale/cons/7.cc: Same.
5987         * testsuite/22_locale/locale/cons/7222-c.cc: Same.
5988         * testsuite/22_locale/locale/cons/7222-env.cc: Same.
5989         * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
5990         * testsuite/22_locale/messages/members/char/1.cc: Same.
5991         * testsuite/22_locale/messages/members/char/2.cc: Same.
5992         * testsuite/22_locale/messages/members/char/3.cc: Same.
5993         * testsuite/22_locale/messages_byname/1.cc: Same.
5994         * testsuite/22_locale/money_get/get/char/1.cc: Same.
5995         * testsuite/22_locale/money_get/get/char/2.cc: Same.
5996         * testsuite/22_locale/money_get/get/char/3.cc: Same.
5997         * testsuite/22_locale/money_get/get/char/4.cc: Same.
5998         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
5999         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
6000         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
6001         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
6002         * testsuite/22_locale/money_put/put/char/1.cc: Same.
6003         * testsuite/22_locale/money_put/put/char/2.cc: Same.
6004         * testsuite/22_locale/money_put/put/char/3.cc: Same.
6005         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
6006         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
6007         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
6008         * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
6009         * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
6010         * testsuite/22_locale/moneypunct_byname/1.cc: Same.
6011         * testsuite/22_locale/num_get/get/char/1.cc: Same.
6012         * testsuite/22_locale/num_get/get/char/2.cc: Same.
6013         * testsuite/22_locale/num_get/get/char/3.cc: Same.
6014         * testsuite/22_locale/num_get/get/char/5.cc: Same.
6015         * testsuite/22_locale/num_get/get/char/6.cc: Same.
6016         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
6017         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
6018         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
6019         * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
6020         * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
6021         * testsuite/22_locale/num_put/put/char/1.cc: Same.
6022         * testsuite/22_locale/num_put/put/char/2.cc: Same.
6023         * testsuite/22_locale/num_put/put/char/3.cc: Same.
6024         * testsuite/22_locale/num_put/put/char/5.cc: Same.
6025         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
6026         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
6027         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
6028         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
6029         * testsuite/22_locale/numpunct/members/char/1.cc: Same.
6030         * testsuite/22_locale/numpunct/members/char/2.cc: Same.
6031         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
6032         * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
6033         * testsuite/22_locale/numpunct_byname/1.cc: Same.
6034         * testsuite/22_locale/numpunct_byname/2.cc: Same.
6035         * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
6036         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
6037         * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
6038         * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
6039         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
6040         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
6041         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
6042         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
6043         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
6044         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
6045         * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
6046         * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
6047         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
6048         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
6049         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
6050         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
6051         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
6052         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
6053         * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
6054         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
6055         * testsuite/22_locale/time_put/put/char/1.cc: Same.
6056         * testsuite/22_locale/time_put/put/char/2.cc: Same.
6057         * testsuite/22_locale/time_put/put/char/3.cc: Same.
6058         * testsuite/22_locale/time_put/put/char/4.cc: Same.
6059         * testsuite/22_locale/time_put/put/char/5.cc: Same.
6060         * testsuite/22_locale/time_put/put/char/6.cc: Same.
6061         * testsuite/22_locale/time_put/put/char/7.cc: Same.
6062         * testsuite/22_locale/time_put/put/char/8.cc: Same.
6063         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
6064         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
6065         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
6066         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
6067         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
6068         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
6069         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
6070         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
6071         * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
6072         * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
6073         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
6074         * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
6075         * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
6077 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
6079         * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
6080         solaris includes, not generic.
6082 2003-04-14  Loren J. Rittle  <ljrittle@acm.org>
6084         * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
6086         * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
6087         * include/bits/concept_check.h: Fix multi-line comment.
6088         * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
6089         when target is *-*-freebsd*.
6091 2003-04-14  Nathan Myers  <ncm@cantrip.org>
6092             Paolo Carlini  <pcarlini@unitus.it>
6094         PR libstdc++/9701 (in_avail())
6095         * include/std/std_streambuf.h (in_avail): Simplify, in_avail
6096         doesn't care if there is anything in some putback cell.
6097         * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
6099         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
6100         unused string literals.
6102 2003-04-14  Paolo Carlini  <pcarlini@unitus.it>
6104         * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
6105         _M_out_end, _M_set_indeterminate() does it.
6107 2003-04-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6109         * os/hpux/ctype_inline.h: Replace with gnu-linux version.
6111 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
6113         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
6114         Change basic_streambuf instantiation to "unsigned char".
6115         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
6117 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
6119         Remove _M_buf_size_opt, use directly _M_buf_size instead.
6120         * include/bits/fstream.tcc
6121         (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
6122         references to _M_buf_size_opt.
6123         * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
6124         * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
6125         __bufsize to __in_avail and __size_opt to __buf_size.
6126         * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
6127         * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
6128         * include/std/std_streambuf.h (~basic_streambuf(),
6129         basic_streambuf()): Likewise, remove _M_buf_size_opt member.
6130         * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
6131         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
6132         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
6133         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
6134         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
6135         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
6136         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
6137         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
6138         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
6139         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
6140         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
6141         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
6143 2003-04-12  Paolo Carlini  <pcarlini at unitus dot it>
6145         * include/ext/stdio_filebuf.h
6146         (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
6147         stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
6148         _M_buf_size_opt == 0 only means "not to use an allocated buffer"
6149         since a stack-based buffer is used for small values of the size_t
6150         parameter.
6151         * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
6152         If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
6153         * testsuite/ext/stdio_filebuf_2.cc: New testfile.
6155 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
6157         PR libstdc++/9533
6158         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
6159         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
6161 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
6163         * testsuite/22_locale/locale/cons/3.cc: Split.
6164         * testsuite/22_locale/locale/cons/7222-c.cc: New.
6165         * testsuite/22_locale/locale/cons/7222-env.cc: New.
6166         Check before trying to create a locale from the environment.
6167         * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
6168         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
6169         Adjust includes.
6171 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
6173         * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
6174         locale to construct this hybrid locale, not the global locale.
6176 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
6178         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
6179         instantiation for AIX.
6180         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
6181         * testsuite/25_algorithms/min_max.cc: Same.
6183 2003-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6185         * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
6186         twice.  Always set _M_cfile to 0 when stream was open.
6188 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
6190         Reshuffle 27_io testsuite.  
6191         * testsuite/27_io/filebuf.cc,
6192         filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
6193         filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
6194         filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
6195         filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
6196         ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
6197         ifstream_members.cc, instantiations.cc, ios.cc,
6198         ios_base_callbacks.cc, ios_base_members_static-1.tst,
6199         ios_base_members_static.cc, ios_base_storage.cc,
6200         ios_base_types.cc, ios_ctor.cc, ios_init.cc,
6201         ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
6202         iostream.cc, iostream_members.cc, istream.cc,
6203         istream_exception.cc, istream_extractor_char.cc,
6204         istream_extractor_other-1.tst, istream_extractor_other-1.txt,
6205         istream_extractor_other-2.tst, istream_extractor_other.cc,
6206         istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
6207         istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
6208         istream_sentry.cc, istream_unformatted-1.tst,
6209         istream_unformatted-1.txt, istream_unformatted.cc,
6210         istringstream.cc, istringstream_members.cc,
6211         narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
6212         ofstream_members.cc, ostream.cc, ostream_exception.cc,
6213         ostream_fail.cc, ostream_inserter_arith.cc,
6214         ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
6215         ostream_inserter_char.cc, ostream_inserter_other-1.tst,
6216         ostream_inserter_other-2.tst, ostream_inserter_other.cc,
6217         ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
6218         ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
6219         ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
6220         streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
6221         stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
6222         wide_stream_objects.cc, istream_extractor_arith/01.cc,
6223         istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
6224         istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
6225         istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
6226         istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
6227         istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
6228         Split into...
6229         * 27_io/basic_filebuf/1.cc: New.
6230         * 27_io/basic_filebuf/2.cc: New.
6231         * 27_io/basic_filebuf/3.cc: New.
6232         * 27_io/basic_filebuf/4.cc: New.
6233         * 27_io/basic_filebuf/close/char/1.cc: New.
6234         * 27_io/basic_filebuf/close/char/2.cc: New.
6235         * 27_io/basic_filebuf/close/char/3.cc: New.
6236         * 27_io/basic_filebuf/close/char/4879.cc: New.
6237         * 27_io/basic_filebuf/close/char/9964.cc: New.
6238         * 27_io/basic_filebuf/imbue/char/1.cc: New.
6239         * 27_io/basic_filebuf/imbue/char/9322.cc: New.
6240         * 27_io/basic_filebuf/in_avail/char/1.cc: New.
6241         * 27_io/basic_filebuf/is_open/char/1.cc: New.
6242         * 27_io/basic_filebuf/open/char/1.cc: New.
6243         * 27_io/basic_filebuf/open/char/2.cc: New.
6244         * 27_io/basic_filebuf/open/char/3.cc: New.
6245         * 27_io/basic_filebuf/open/char/9507.cc: New.
6246         * 27_io/basic_filebuf/overflow/char/1.cc: New.
6247         * 27_io/basic_filebuf/overflow/char/3599.cc: New.
6248         * 27_io/basic_filebuf/overflow/char/9169.cc: New.
6249         * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
6250         * 27_io/basic_filebuf/overflow/char/9988.cc: New.
6251         * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
6252         * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
6253         * 27_io/basic_filebuf/seekoff/char/1.cc: New.
6254         * 27_io/basic_filebuf/seekoff/char/2.cc: New.
6255         * 27_io/basic_filebuf/seekpos/char/1.cc: New.
6256         * 27_io/basic_filebuf/seekpos/char/2.cc: New.
6257         * 27_io/basic_filebuf/setbuf/char/1.cc: New.
6258         * 27_io/basic_filebuf/setbuf/char/2.cc: New.
6259         * 27_io/basic_filebuf/setbuf/char/3.cc: New.
6260         * 27_io/basic_filebuf/sgetc/char/1.cc: New.
6261         * 27_io/basic_filebuf/sgetn/char/1.cc: New.
6262         * 27_io/basic_filebuf/sgetn/char/2.cc: New.
6263         * 27_io/basic_filebuf/snextc/char/1.cc: New.
6264         * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
6265         * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
6266         * 27_io/basic_filebuf/sputc/char/1.cc: New.
6267         * 27_io/basic_filebuf/sputc/char/1057.cc: New.
6268         * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
6269         * 27_io/basic_filebuf/sputn/char/1.cc: New.
6270         * 27_io/basic_filebuf/sputn/char/1057.cc: New.
6271         * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
6272         * 27_io/basic_filebuf/sungetc/char/1.cc: New.
6273         * 27_io/basic_filebuf/sync/char/1057.cc: New.
6274         * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
6275         * 27_io/basic_filebuf/underflow/char/10097.cc: New.
6276         * 27_io/basic_fstream/1.cc: New.
6277         * 27_io/basic_fstream/2.cc: New.
6278         * 27_io/basic_fstream/3.cc: New.
6279         * 27_io/basic_fstream/4.cc: New.
6280         * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
6281         * 27_io/basic_ifstream/1.cc: New.
6282         * 27_io/basic_ifstream/2.cc: New.
6283         * 27_io/basic_ifstream/3.cc: New.
6284         * 27_io/basic_ifstream/4.cc: New.
6285         * 27_io/basic_ifstream/cons/char/1.cc: New.
6286         * 27_io/basic_ifstream/open/char/1.cc: New.
6287         * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
6288         * 27_io/basic_ios/1.cc: New.
6289         * 27_io/basic_ios/2.cc: New.
6290         * 27_io/basic_ios/3.cc: New.
6291         * 27_io/basic_ios/4.cc: New.
6292         * 27_io/basic_ios/clear/char/1.cc: New.
6293         * 27_io/basic_ios/cons/char/1.cc: New.
6294         * 27_io/basic_ios/cons/char/2.cc: New.
6295         * 27_io/basic_ios/cons/char/3.cc: New.
6296         * 27_io/basic_ios/copyfmt/char/1.cc: New.
6297         * 27_io/basic_ios/copyfmt/char/2.cc: New.
6298         * 27_io/basic_ios/exceptions/char/1.cc: New.
6299         * 27_io/basic_ios/locales/char/1.cc: New.
6300         * 27_io/basic_iostream/1.cc: New.
6301         * 27_io/basic_iostream/2.cc: New.
6302         * 27_io/basic_iostream/3.cc: New.
6303         * 27_io/basic_iostream/4.cc: New.
6304         * 27_io/basic_istream/1.cc: New.
6305         * 27_io/basic_istream/2.cc: New.
6306         * 27_io/basic_istream/3.cc: New.
6307         * 27_io/basic_istream/4.cc: New.
6308         * 27_io/basic_istream/exceptions/char/9561.cc: New.
6309         * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
6310         * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
6311         * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
6312         * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
6313         * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
6314         * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
6315         * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
6316         * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
6317         * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
6318         * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
6319         * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
6320         * 27_io/basic_istream/extractors_character/char/1.cc: New.
6321         * 27_io/basic_istream/extractors_character/char/2.cc: New.
6322         * 27_io/basic_istream/extractors_character/char/3.cc: New.
6323         * 27_io/basic_istream/extractors_character/char/9826.cc: New.
6324         * 27_io/basic_istream/extractors_other/char/1.cc: New.
6325         * 27_io/basic_istream/extractors_other/char/2.cc: New.
6326         * 27_io/basic_istream/extractors_other/char/3.cc: New.
6327         * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
6328         * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
6329         * 27_io/basic_istream/get/char/1.cc: New.
6330         * 27_io/basic_istream/get/char/2.cc: New.
6331         * 27_io/basic_istream/getline/char/1.cc: New.
6332         * 27_io/basic_istream/getline/char/2.cc: New.
6333         * 27_io/basic_istream/getline/char/3.cc: New.
6334         * 27_io/basic_istream/ignore/char/1.cc: New.
6335         * 27_io/basic_istream/ignore/char/6360.cc: New.
6336         * 27_io/basic_istream/ignore/char/7220.cc: New.
6337         * 27_io/basic_istream/peek/char/1.cc: New.
6338         * 27_io/basic_istream/peek/char/6414.cc: New.
6339         * 27_io/basic_istream/putback/char/1.cc: New.
6340         * 27_io/basic_istream/read/char/1.cc: New.
6341         * 27_io/basic_istream/read/char/2.cc: New.
6342         * 27_io/basic_istream/read/char/3.cc: New.
6343         * 27_io/basic_istream/readsome/char/6746-1.cc: New.
6344         * 27_io/basic_istream/readsome/char/6746-2.cc: New.
6345         * 27_io/basic_istream/readsome/char/8258.cc: New.
6346         * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
6347         * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
6348         * 27_io/basic_istream/seekg/char/8348-1.cc: New.
6349         * 27_io/basic_istream/seekg/char/8348-2.cc: New.
6350         * 27_io/basic_istream/seekg/char/fstream.cc: New.
6351         * 27_io/basic_istream/seekg/char/sstream.cc: New.
6352         * 27_io/basic_istream/sentry/char/1.cc: New.
6353         * 27_io/basic_istream/sentry/char/2.cc: New.
6354         * 27_io/basic_istream/sentry/char/3.cc: New.
6355         * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
6356         * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
6357         * 27_io/basic_istream/tellg/char/1.cc: New.
6358         * 27_io/basic_istream/tellg/char/8348.cc: New.
6359         * 27_io/basic_istream/tellg/char/fstream.cc: New.
6360         * 27_io/basic_istream/tellg/char/sstream.cc: New.
6361         * 27_io/basic_istream/ws/char/1.cc: New.
6362         * 27_io/basic_istringstream/1.cc: New.
6363         * 27_io/basic_istringstream/2.cc: New.
6364         * 27_io/basic_istringstream/3.cc: New.
6365         * 27_io/basic_istringstream/4.cc: New.
6366         * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
6367         * 27_io/basic_istringstream/str/char/1.cc: New.
6368         * 27_io/basic_ofstream/1.cc: New.
6369         * 27_io/basic_ofstream/2.cc: New.
6370         * 27_io/basic_ofstream/3.cc: New.
6371         * 27_io/basic_ofstream/4.cc: New.
6372         * 27_io/basic_ofstream/cons/char/2.cc: New.
6373         * 27_io/basic_ofstream/open/char/1.cc: New.
6374         * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
6375         * 27_io/basic_ostream/1.cc: New.
6376         * 27_io/basic_ostream/2.cc: New.
6377         * 27_io/basic_ostream/3.cc: New.
6378         * 27_io/basic_ostream/4.cc: New.
6379         * 27_io/basic_ostream/cons/char/9827.cc: New.
6380         * 27_io/basic_ostream/endl/char/1.cc: New.
6381         * 27_io/basic_ostream/ends/char/1.cc: New.
6382         * 27_io/basic_ostream/ends/char/2.cc: New.
6383         * 27_io/basic_ostream/exceptions/char/9561.cc: New.
6384         * 27_io/basic_ostream/flush/char/1.cc: New.
6385         * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
6386         * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
6387         * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
6388         * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
6389         * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
6390         * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
6391         * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
6392         * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
6393         * 27_io/basic_ostream/inserters_character/char/1.cc: New.
6394         * 27_io/basic_ostream/inserters_character/char/2.cc: New.
6395         * 27_io/basic_ostream/inserters_character/char/3.cc: New.
6396         * 27_io/basic_ostream/inserters_character/char/4.cc: New.
6397         * 27_io/basic_ostream/inserters_character/char/5.cc: New.
6398         * 27_io/basic_ostream/inserters_character/char/6.cc: New.
6399         * 27_io/basic_ostream/inserters_character/char/8.cc: New.
6400         * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
6401         * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
6402         * 27_io/basic_ostream/inserters_other/char/1.cc: New.
6403         * 27_io/basic_ostream/inserters_other/char/2.cc: New.
6404         * 27_io/basic_ostream/inserters_other/char/3.cc: New.
6405         * 27_io/basic_ostream/inserters_other/char/4.cc: New.
6406         * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
6407         * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
6408         * 27_io/basic_ostream/sentry/char/1.cc: New.
6409         * 27_io/basic_ostream/sentry/char/2.cc: New.
6410         * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
6411         * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
6412         * 27_io/basic_ostream/tellp/char/1.cc: New.
6413         * 27_io/basic_ostream/tellp/char/2.cc: New.
6414         * 27_io/basic_ostringstream/1.cc: New.
6415         * 27_io/basic_ostringstream/2.cc: New.
6416         * 27_io/basic_ostringstream/3.cc: New.
6417         * 27_io/basic_ostringstream/4.cc: New.
6418         * 27_io/basic_ostringstream/cons/char/3.cc: New.
6419         * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
6420         * 27_io/basic_ostringstream/str/char/1.cc: New.
6421         * 27_io/basic_ostringstream/str/char/2.cc: New.
6422         * 27_io/basic_streambuf/1.cc: New.
6423         * 27_io/basic_streambuf/2.cc: New.
6424         * 27_io/basic_streambuf/3.cc: New.
6425         * 27_io/basic_streambuf/cons/char/1.cc: New.
6426         * 27_io/basic_streambuf/imbue/char/1.cc: New.
6427         * 27_io/basic_streambuf/imbue/char/9322.cc: New.
6428         * 27_io/basic_streambuf/overflow/char/1.cc: New.
6429         * 27_io/basic_streambuf/overflow/char/2.cc: New.
6430         * 27_io/basic_streambuf/overflow/char/3599.cc: New.
6431         * 27_io/basic_streambuf/sgetc/char/1.cc: New.
6432         * 27_io/basic_streambuf/sgetn/char/1.cc: New.
6433         * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
6434         * 27_io/basic_streambuf/sputc/char/1057.cc: New.
6435         * 27_io/basic_streambuf/sputn/char/1.cc: New.
6436         * 27_io/basic_streambuf/sputn/char/1057.cc: New.
6437         * 27_io/basic_streambuf/sync/char/1057.cc: New.
6438         * 27_io/basic_stringbuf/1.cc: New.
6439         * 27_io/basic_stringbuf/2.cc: New.
6440         * 27_io/basic_stringbuf/3.cc: New.
6441         * 27_io/basic_stringbuf/4.cc: New.
6442         * 27_io/basic_stringbuf/5.cc: New.
6443         * 27_io/basic_stringbuf/imbue/char/1.cc: New.
6444         * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
6445         * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
6446         * 27_io/basic_stringbuf/overflow/char/2.cc: New.
6447         * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
6448         * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
6449         * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
6450         * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
6451         * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
6452         * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
6453         * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
6454         * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
6455         * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
6456         * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
6457         * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
6458         * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
6459         * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
6460         * 27_io/basic_stringbuf/snextc/char/1.cc: New.
6461         * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
6462         * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
6463         * 27_io/basic_stringbuf/sputc/char/1.cc: New.
6464         * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
6465         * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
6466         * 27_io/basic_stringbuf/sputn/char/1.cc: New.
6467         * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
6468         * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
6469         * 27_io/basic_stringbuf/str/char/1.cc: New.
6470         * 27_io/basic_stringbuf/str/char/2.cc: New.
6471         * 27_io/basic_stringbuf/str/char/3.cc: New.
6472         * 27_io/basic_stringbuf/str/char/3955.cc: New.
6473         * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
6474         * 27_io/basic_stringbuf/sync/char/1057.cc: New.
6475         * 27_io/basic_stringstream/1.cc: New.
6476         * 27_io/basic_stringstream/2.cc: New.
6477         * 27_io/basic_stringstream/3.cc: New.
6478         * 27_io/basic_stringstream/4.cc: New.
6479         * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
6480         * 27_io/basic_stringstream/str/char/1.cc: New.
6481         * 27_io/basic_stringstream/str/char/2.cc: New.
6482         * 27_io/basic_stringstream/str/char/3.cc: New.
6483         * 27_io/basic_stringstream/str/char/4.cc: New.
6484         * 27_io/fpos/1.cc: New.
6485         * 27_io/fpos/2.cc: New.
6486         * 27_io/fpos/3.cc: New.
6487         * 27_io/ios_base/callbacks/1.cc: New.
6488         * 27_io/ios_base/state/1.cc: New.
6489         * 27_io/ios_base/storage/1.cc: New.
6490         * 27_io/ios_base/storage/2.cc: New.
6491         * 27_io/ios_base/storage/3.cc: New.
6492         * 27_io/ios_base/sync_with_stdio/1.cc: New.
6493         * 27_io/ios_base/sync_with_stdio/2.cc: New.
6494         * 27_io/manipulators/adjustfield/char/1.cc: New.
6495         * 27_io/manipulators/adjustfield/char/2.cc: New.
6496         * 27_io/manipulators/basefield/char/1.cc: New.
6497         * 27_io/manipulators/standard/char/1.cc: New.
6498         * 27_io/manipulators/standard/char/2.cc: New.
6499         * 27_io/objects/char/1.cc: New.
6500         * 27_io/objects/char/2.cc: New.
6501         * 27_io/objects/char/2523-1_xin.cc: New.
6502         * 27_io/objects/char/2523-1_xin.in: New.
6503         * 27_io/objects/char/2523-2_xin.cc: New.
6504         * 27_io/objects/char/2523-2_xin.in: New.
6505         * 27_io/objects/char/3045.cc: New.
6506         * 27_io/objects/char/3647.cc: New.
6507         * 27_io/objects/char/3_xin.cc: New.
6508         * 27_io/objects/char/3_xin.in: New.
6509         * 27_io/objects/char/4_xin.cc: New.
6510         * 27_io/objects/char/4_xin.in: New.
6511         * 27_io/objects/char/5268.cc: New.
6512         * 27_io/objects/char/5280_xin.cc: New.
6513         * 27_io/objects/char/5280_xin.in: New.
6514         * 27_io/objects/char/6548_xin.cc: New.
6515         * 27_io/objects/char/6548_xin.in: New.
6516         * 27_io/objects/char/6648-1_xin.cc: New.
6517         * 27_io/objects/char/6648-1_xin.in: New.
6518         * 27_io/objects/char/6648-2_xin.cc: New.
6519         * 27_io/objects/char/6648-2_xin.in: New.
6520         * 27_io/objects/char/7744_xin.cc: New.
6521         * 27_io/objects/char/7744_xin.in: New.
6522         * 27_io/objects/wchar_t/1.cc: New.
6523         * 27_io/types/1.cc: New.
6524         * 27_io/types/2.cc: New.
6525         * data/filebuf_members-1.tst: New.
6526         * data/filebuf_members-1.txt: New.
6527         * data/filebuf_virtuals-1.tst: New.
6528         * data/filebuf_virtuals-1.txt: New.
6529         * data/filebuf_virtuals-2.tst: New.
6530         * data/filebuf_virtuals-3.tst: New.
6531         * data/ifstream_members-1.tst: New.
6532         * data/ifstream_members-1.txt: New.
6533         * data/ios_base_members_static-1.tst: New.
6534         * data/istream_extractor_other-1.tst: New.
6535         * data/istream_extractor_other-1.txt: New.
6536         * data/istream_extractor_other-2.tst: New.
6537         * data/istream_seeks-1.tst: New.
6538         * data/istream_seeks-1.txt: New.
6539         * data/istream_seeks-2.tst: New.
6540         * data/istream_seeks-3.tst: New.
6541         * data/istream_unformatted-1.tst: New.
6542         * data/istream_unformatted-1.txt: New.
6543         * data/ofstream_members-1.tst: New.
6544         * data/ostream_inserter_char-1.tst: New.
6545         * data/ostream_inserter_char-1.txt: New.
6546         * data/ostream_inserter_other-1.tst: New.
6547         * data/ostream_inserter_other-2.tst: New.
6548         * data/ostream_seeks-1.tst: New.
6550 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
6552         * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
6553         requirement that __mode must be strict input or output.
6555         * include/std/std_streambuf.h (basic_streambuf::setp): Set
6556         _M_out_lim.
6558         * include/std/std_sstream.h (basic_strinbuf::str): Zero length
6559         output string shouldn't core.
6560         (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
6561         type.
6562         * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
6564         * include/bits/istream.tcc (basic_istream::putback): Set gcount to
6565         zero.
6567 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
6569         * testsuite/data: New directory.
6570         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
6571         to copy files from the testsuite data directory.
6572         (libstdc++-v3-list-sourcefiles): Add another test list filter, for
6573         testfiles containing _xin, which now means this is an interactive
6574         test and should be run with the interactive dejagnu hooks.
6575         * testsuite/Makefile.am: Remove testsuite_* files.
6576         * testsuite/Makefile.in: Regenerate.
6578 2003-04-09  Zack Weinberg  <zack@codesourcery.com>
6580         * docs/html/install.html: Document complete list of locales
6581         required by test suite.  Document procedure for installing
6582         said locales under Debian.  Solicit instructions for other
6583         operating systems.
6585 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
6587         * include/bits/sstream.tcc (overflow): Make sure operands of min
6588         and max have the same type.
6590 2003-04-04  Jerry Quinn  <jlquinn@optonline.net>
6592         PR libstdc++/10276
6593         * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
6594         initialization.
6596 2003-03-31  Paolo Carlini  <pcarlini@unitus.it>
6598         * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
6599         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
6600         Don't set _M_out_end.
6601         (basic_filebuf::overflow): Replace _M_out_buf_size() with
6602         this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
6603         * include/bits/sstream.tcc (basic_stringbuf::overflow):
6604         Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
6605         * include/bits/streambuf.tcc (basic_streambuf::sputc):
6606         Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
6607         (basic_streambuf::xsputn): Replace _M_out_buf_size() with
6608         _M_out_end - _M_out_cur.
6609         (__copy_streambufs): Likewise.
6610         * include/std/std_fstream.h (_M_set_determinate): Set
6611         _M_out_end here.
6613 2003-03-30  Paolo Carlini  <pcarlini@unitus.it>
6615         * include/bits/fstream.tcc (basic_filebuf::showmanyc,
6616         _M_convert_to_external, _M_really_overflow, seekoff): Fix
6617         test for synced buffer.
6618         * include/std/std_fstream.h (sync): Likewise.
6619         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
6620         basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
6622 2003-03-28  Benjamin Kosnik  <bkoz@redhat.com>
6624         * include/std/std_sstream.h (basic_istringstream): Adjust
6625         initialization.
6626         (basic_ostringstream): Same.
6627         (basic_stringstream): Same.
6628         * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
6629         (basic_ofstream): Same.
6630         (basic_fstream): Same.
6631         * include/std/std_ostream.h (basic_ostrem): Add protected ctor
6632         that does not call init.
6633         * include/std/std_istream.h (basic_istream): Same.
6634         (basic_iostream): Construct istream, ostream uninitialized, use
6635         init to initialize just once. Add protected ctor that does not
6636         call init.
6638 2003-03-28  Paolo Carlini  <pcarlini@unitus.it>
6639             Nathan Myers  <ncm@cantrip.org>
6641         PR libstdc++/9533
6642         * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
6643         call underflow().
6644         (basic_filebuf<>::showmanyc): Use the information provided
6645         by codecvt and __basic_file<>::showmanyc_helper to implement
6646         a non-trivial showmanyc.
6647         * config/io/basic_file_stdio.h
6648         (__basic_file<>::showmanyc_helper): New, declare.
6649         * config/io/basic_file_stdio.cc
6650         (__basic_file<>::showmanyc_helper): Define.
6651         (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
6652         (__basic_file<char>::open): Don't call fcntl().
6653         * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
6654         GLIBCPP_CHECK_POLL): New macros.
6655         * configure.in: Call here.
6656         * acconfig.h: Add #undefs for the corresponding symbols.
6657         * aclocal.m4: Regenerate.
6658         * configure: Regenerate.
6659         * config.h.in: Regenerate.
6661 2003-03-24  Benjamin Kosnik  <bkoz@redhat.com>
6663         * config/linker-map.gnu: Remove string export restrictions.
6665 2003-03-24  Paolo Carlini  <pcarlini@unitus.it>
6667         * testsuite/21_strings/basic_string/find/char/1.cc: Remove
6668         find_first_of, find_last_of and find_last_not_of tests.
6669         * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
6670         tests here, new file.
6671         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
6672         remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
6673         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
6674         wchar_t find_first_of tests here, new file.
6675         * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
6676         tests here.
6677         * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
6678         tests here.
6679         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
6680         wchar_t find_last_of tests here.
6681         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
6682         wchar_t find_last_not_of tests here.
6684 2003-03-22  Loren J. Rittle  <ljrittle@acm.org>
6686         * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
6687         Correct return value.
6689 2003-03-21  Jerry Quinn  <jlquinn@optonline.net>
6691         PR libstdc++/5730
6692         * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
6693         * include/std/std_complex.h (norm):  Use faster,
6694         less accurate computation for builtin float types under --fast-math.
6696 2003-03-21  Magnus Fromreide  <gnats@magfr.user.lysator.liu.se>
6698         * testsuite/testsuite_hooks.h: Fix warning nits.
6700 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
6702         * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
6703         Only .set mips2 for the o32 ABI.
6705 2003-03-19  Paolo Carlini  <pcarlini@unitus.it>
6707         * testsuite/21_strings/char_traits/requirements/char/1.cc:
6708         Test char not wchar_t.
6710 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
6712         * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
6713         Correct size, taking into account sizeof(wchar_t).
6715 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
6717         Reshuffle 21_strings testsuite.
6718         * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
6719         assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
6720         element_access.cc, operations.cc, char_traits_requirements.cc,
6721         find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
6722         compare.cc, inserters_extractors.cc, substr.cc: Split up, add
6723         wchar_t tests as follows.
6724         * 21_strings/basic_string/append/char/1.cc: New.
6725         * 21_strings/basic_string/append/wchar_t/1.cc: New.
6726         * 21_strings/basic_string/assign/char/1.cc: New.
6727         * 21_strings/basic_string/assign/char/2.cc: New.
6728         * 21_strings/basic_string/assign/char/3.cc: New.
6729         * 21_strings/basic_string/assign/wchar_t/1.cc: New.
6730         * 21_strings/basic_string/assign/wchar_t/2.cc: New.
6731         * 21_strings/basic_string/assign/wchar_t/3.cc: New.
6732         * 21_strings/basic_string/capacity/1.cc: New.
6733         * 21_strings/basic_string/capacity/char/1.cc: New.
6734         * 21_strings/basic_string/capacity/char/2.cc: New.
6735         * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
6736         * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
6737         * 21_strings/basic_string/compare/char/1.cc: New.
6738         * 21_strings/basic_string/compare/wchar_t/1.cc: New.
6739         * 21_strings/basic_string/cons/char/1.cc: New.
6740         * 21_strings/basic_string/cons/char/2.cc: New.
6741         * 21_strings/basic_string/cons/char/3.cc: New.
6742         * 21_strings/basic_string/cons/char/4.cc: New.
6743         * 21_strings/basic_string/cons/char/5.cc: New.
6744         * 21_strings/basic_string/cons/wchar_t/1.cc: New.
6745         * 21_strings/basic_string/cons/wchar_t/2.cc: New.
6746         * 21_strings/basic_string/cons/wchar_t/3.cc: New.
6747         * 21_strings/basic_string/cons/wchar_t/4.cc: New.
6748         * 21_strings/basic_string/cons/wchar_t/5.cc: New.
6749         * 21_strings/basic_string/element_access/char/1.cc: New.
6750         * 21_strings/basic_string/element_access/char/2.cc: New.
6751         * 21_strings/basic_string/element_access/char/3.cc: New.
6752         * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
6753         * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
6754         * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
6755         * 21_strings/basic_string/find/char/1.cc: New.
6756         * 21_strings/basic_string/find/wchar_t/1.cc: New.
6757         * 21_strings/basic_string/insert/char/1.cc: New.
6758         * 21_strings/basic_string/insert/char/2.cc: New.
6759         * 21_strings/basic_string/insert/wchar_t/1.cc: New.
6760         * 21_strings/basic_string/insert/wchar_t/2.cc: New.
6761         * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
6762         * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
6763         * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
6764         * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
6765         * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
6766         * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
6767         * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
6768         * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
6769         * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
6770         * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
6771         * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
6772         * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
6773         * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
6774         * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
6775         * 21_strings/basic_string/operators/char/1.cc: New.
6776         * 21_strings/basic_string/operators/char/2.cc: New.
6777         * 21_strings/basic_string/operators/wchar_t/1.cc: New.
6778         * 21_strings/basic_string/operators/wchar_t/2.cc: New.
6779         * 21_strings/basic_string/replace/char/1.cc: New.
6780         * 21_strings/basic_string/replace/char/2.cc: New.
6781         * 21_strings/basic_string/replace/char/3.cc: New.
6782         * 21_strings/basic_string/replace/char/4.cc: New.
6783         * 21_strings/basic_string/replace/char/5.cc: New.
6784         * 21_strings/basic_string/replace/wchar_t/1.cc: New.
6785         * 21_strings/basic_string/replace/wchar_t/2.cc: New.
6786         * 21_strings/basic_string/replace/wchar_t/3.cc: New.
6787         * 21_strings/basic_string/replace/wchar_t/4.cc: New.
6788         * 21_strings/basic_string/replace/wchar_t/5.cc: New.
6789         * 21_strings/basic_string/rfind/char/1.cc: New.
6790         * 21_strings/basic_string/rfind/char/2.cc: New.
6791         * 21_strings/basic_string/rfind/char/3.cc: New.
6792         * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
6793         * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
6794         * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
6795         * 21_strings/basic_string/substr/char/1.cc: New.
6796         * 21_strings/basic_string/substr/wchar_t/1.cc: New.
6797         * 21_strings/c_strings/char/1.cc: New.
6798         * 21_strings/c_strings/char/2.cc: New.
6799         * 21_strings/c_strings/wchar_t/1.cc: New.
6800         * 21_strings/c_strings/wchar_t/2.cc: New.
6801         * 21_strings/char_traits/requirements/char/1.cc: New.
6802         * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
6803         * 21_strings/char_traits/typedefs/char/1.cc: New.
6805 2003-03-17  Paolo Carlini  <pcarlini@unitus.it>
6806             Petur Runolfsson  <peturr02@ru.is>
6808         PR libstdc++/10097
6809         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
6810         basic_filebuf<wchar_t>::_M_underflow_common):
6811         if (gptr() < egptr()) return *gptr().
6812         * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
6814         * testsuite/27_io/filebuf_members.cc (test_04): Minor
6815         changes: unlink fifo before making it, fix spelling error.
6817 2003-03-17  Benjamin Kosnik  <bkoz@redhat.com>
6819         * testsuite/Makefile.am (CLEANFILES): Add tmp*.
6820         * testsuite/Makefile.in: Regenerate.
6821         * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
6822         Cleanups.
6824 2003-03-17  Petur Runolfsson  <peturr02@ru.is>
6826         PR libstdc++/9964
6827         * include/bits/fstream.tcc (basic_filebuf::close):
6828         Always close file, even when write fails.
6829         * testsuite/27_io/filebuf_members.cc (test_07):  New test.
6831 2003-03-17  Danny Smith  <dannysmith@users.sourceforge.net>
6833         * libsupc++/Makefile.am (C_COMPILE): Remove.
6834         (LTCOMPILE): Likewise.
6835         * libsupc++/Makefile.in: Regenerate.
6837 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
6839         * testsuite/23_containers/bitset_members.cc: Add test variable.
6840         * testsuite/23_containers/map_insert.cc: Same.
6841         * testsuite/22_locale/ctype/cons/char/1.cc: Same.
6842         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
6843         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
6844         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
6845         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
6846         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
6847         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
6848         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
6849         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
6850         * testsuite/27_io/istream_exception.cc: Same.
6851         * testsuite/27_io/filebuf_virtuals.cc: Same.
6852         * testsuite/27_io/stringbuf_virtuals.cc: Same.
6853         * testsuite/27_io/ostream_inserter_arith.cc: Same.
6854         * testsuite/26_numerics/valarray_operators.cc: Same.
6855         * testsuite/26_numerics/slice.cc: Same.
6856         * testsuite/26_numerics/slice_array_assignment.cc: Same.
6857         * testsuite/24_iterators/istream_iterator.cc: Same.
6858         * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
6860 2003-03-14  Petur Runolfsson  <peturr02@ru.is>
6862         PR libstdc++/9581
6863         PR libstdc++/9870
6864         * config/locale/generic/ctype_members.cc,
6865         * config/locale/gnu/ctype_members.cc
6866         (ctype<wchar_t>::do_widen(char)):  Cast argument to
6867         unsigned char before passing to btowc.
6868         (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
6869         Convert characters with btowc instead of mbsrtowcs.
6870         (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
6871         char, char*):
6872         Convert characters with wctob instead of wcsrtombs.
6873         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc:  New test.
6874         * testsuite/22_locale/ctype/widen/wchar_t/2.cc:  New test.
6875         * testsuite/22_locale/ctype/widen/wchar_t/3.cc:  New test.
6877 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
6879         * include/stdc++.h: New.
6880         * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
6881         * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
6882         * include/Makefile.in: Regenerate.
6883         * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
6884         (--cxxflags): Put -g -O2 here.
6885         * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
6887 2003-03-14  Loren J. Rittle  <ljrittle@acm.org>
6889         * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
6890         missing named locale.
6892 2003-03-14  Andreas Schwab  <schwab@suse.de>
6894         * configure.in: Only append to makefiles that are newly created to
6895         avoid multiple multi-do/multi-clean rules.
6896         * configure: Rebuilt.
6898 2003-03-13  Jonathan Wakely  <redi@gcc.gnu.org>
6900         * docs/html/configopts.html, docs/html/documentation.html,
6901         docs/html/explanations.html, docs/html/install.html,
6902         docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
6903         invalid XHTML and make page header style consistent.
6905 2003-03-12  Jonathan Wakely  <redi@gcc.gnu.org>
6907         * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
6908         * docs/html/faq/index.txt: Regenerate.
6909         * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
6911 2003-03-12  Andreas Schwab  <schwab@suse.de>
6913         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
6914         glibcpp_toolexeclibdir.
6915         * aclocal.m4, configure: Rebuilt.
6917 2003-03-11  Jonathan Wakely  <redi@gcc.gnu.org>
6919         * docs/html/faq/index.html: Update text about location of headers.
6920         * docs/html/faq/index.txt: Regenerate.
6922 2003-03-11  Carlo Wood  <carlo@alinoe.com>
6924         * include/bits/demangle.h: Prepend accessors of
6925         class qualifier with 'get_' in order to fix warnings
6926         when compiling with -Wshadow.
6928 2003-03-11  Loren J. Rittle  <ljrittle@acm.org>
6930         * config/os/bsd/freebsd/ctype_inline.h:  Support _M_table
6931         when so installed.
6932         * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
6934         * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
6935         report lack of setenv().
6937 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
6939         * config/io/basic_file_stdio.cc: include <unistd.h>.
6941 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
6942             Nathan Myers  <ncm@cantrip.org>
6944         PR libstdc++/7744
6945         * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
6946         seekoff, seekpos): Add a boolean parameter __stdio.
6947         * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
6948         seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
6949         fseek/ftell, respectively), otherwise read (write, lseek, lseek,
6950         respectively).
6951         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
6952         _M_really_overflow, seekoff): Use the boolean parameter in the calls.
6953         * include/std/std_fstream.h (sync): Likewise.
6954         * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
6955         * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
6956         libstdc++/8399 commit involving isatty(0).
6957         * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
6958         (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
6959         * configure.in: Remove call.
6960         * aclocal.m4: Regenerate.
6961         * config.h.in: Regenerate.
6962         * configure: Regenerate.
6963         * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
6965 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
6967         PR libstdc++/9988
6968         * include/bits/fstream.tcc (overflow): don't write EOF to file.
6969         * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
6971 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
6973         PR libstdc++/9561
6974         * include/bits/basic_ios.h (_M_setstate): New.
6975         * include/bits/ostream.tcc (operator<<): Use it.
6976         * include/bits/istream.tcc (operator>>): Use it.
6977         * include/std/std_ostream.h (operator<<): Make friends.
6978         * include/std/std_istream.h (operator>>): Make friends.
6979         * testsuite/27_io/ostream_exception.cc,
6980         testsuite/27_io/istream_exception.cc: New tests.
6982 2003-03-08  Benjamin Kosnik  <bkoz@redhat.com>
6984         * include/bits/locale_facets.tcc: Fix typo.
6986 2003-03-08  Loren J. Rittle  <ljrittle@acm.org>
6988         * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
6990         * config/locale/generic/c_locale.cc
6991         (locale::facet::_S_create_c_locale): Throw runtime exception when
6992         unsupported language is specified.
6993         * testsuite/testsuite_hooks.h
6994         (run_test_wrapped_generic_locale_exception_catcher): New function.
6995         * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
6996         Suppress runtime exception thrown by generic implementation.
6997         (run_tests_wrapped_env): Likewise.
6998         (run_test_wrapped_generic_locale_exception_catcher): New function.
6999         * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
7000         * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
7001         * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
7002         * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
7003         * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
7004         * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
7005         * testsuite/22_locale/collate_byname/1.cc: New test wrap.
7006         * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
7007         * testsuite/22_locale/facet/2.cc: New test wrap.
7008         * testsuite/22_locale/locale/cons/4.cc: New test wrap.
7009         * testsuite/22_locale/locale/cons/5.cc: New test wrap.
7010         * testsuite/22_locale/locale/cons/7.cc: New test wrap.
7011         * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
7012         * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
7013         * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
7014         * testsuite/22_locale/messages_byname/1.cc: New test wrap.
7015         * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
7016         * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
7017         * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
7018         * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
7019         * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
7020         * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
7021         * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
7022         * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
7023         * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
7024         * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
7025         * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
7026         * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
7027         * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
7028         * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
7029         * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
7030         * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
7031         * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
7032         * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
7033         * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
7034         * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
7035         * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
7036         * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
7037         * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
7038         * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
7039         * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
7040         * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
7041         * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
7042         * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
7043         * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
7044         * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
7045         * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
7046         * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
7047         * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
7048         * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
7049         * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
7050         * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
7051         * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
7052         * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
7053         * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
7054         * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
7055         * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
7056         * testsuite/27_io/ios_members.cc: New test wrap.
7057         * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
7058         New test wrap.
7059         * testsuite/27_io/streambuf_members.cc: New test wrap.
7060         * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
7062 2003-03-08  Paolo Carlini <pcarlini@unitus.it>
7063             Petur Runolfsson  <peturr02@ru.is>
7065         PR libstdc++/9424
7066         * include/bits/streambuf.tcc (__copy_streambufs): Use
7067         sgetn-sputn only when sputn cannot fail, otherwise fall back
7068         to safe snextc-sputc.
7069         * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
7071 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
7073         * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
7074         locale cache for truename and falsename.
7076 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
7078         * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
7079         _M_word_size initialization.
7081 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
7083         * include/bits/fstream.tcc (_M_convert_to_external):
7084         Set __elen to zero if codecvt::out eventually fails.
7086 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
7088         PR libstdc++/9182
7089         * include/bits/fstream.tcc (_M_really_overflow): Check
7090         for _M_convert_to_external possible failures.
7091         * include/std/std_fstream.h (sync): Check _M_really_overflow
7092         return value and return -1 in case of failure.
7093         * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
7095 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
7097         PR libstdc++/9826
7098         * include/bits/istream.tcc (operator>>(_CharT*),
7099         operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
7100         * testsuite/27_io/stringstream.cc (test02): Add.
7102         * include/bits/istream.tcc (operator>>(_CharT*)):
7103         Assign a char_type to *__s.
7105 2003-03-07  Petur Runolfsson  <peturr02@ru.is>
7107         PR libstdc++/9817
7108         * include/bits/locale_facets.tcc
7109         (collate::do_compare, collate::do_transform):
7110         Handle nul characters in input.
7111         * testsuite/22_locale/collate/compare/char/3.cc:  New test.
7112         * testsuite/22_locale/collate/compare/wchar_t/3.cc:  New test.
7113         * testsuite/22_locale/collate/transform/char/3.cc:  New test.
7114         * testsuite/22_locale/collate/transform/wchar_t/3.cc:  New test.
7116 2003-03-07  Jerry Quinn  <jlquinn@optonline.net>
7118         * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
7119         sputn fails.
7120         * testsuite/27_io/ostream_fail.cc: New test.
7122 2003-03-07  Matthias Klose  <doko@debian.org>
7124         * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
7125         FLAGS_TO_PASS: Set to AM_MAKEFLAGS
7126         * Makefile.in: Regenerate.
7127         * libsupc++/Makefile.am: Express glibcppinstalldir in terms
7128         of gxx_include_dir.
7129         AM_MAKEFLAGS: Pass gxx_include_dir.
7130         * libsupc++/Makefile.in: Regenerate.
7132 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
7134         * testsuite/27_io/ios_base_storage.cc (test02): Set exception
7135         mask.  Test setting small-numbered pword and iword slots.  Test
7136         behavior at limit of numeric_limits::max.  Check that values are
7137         still good after failures.
7139 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
7141         * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
7142         (ios_base::ios_base): Set _M_word, _M_word_size.
7143         (ios_base::~ios_base): Remove redundant test.
7144         * testsuite/27_io/ios_base_storage.cc (test03): New.
7146 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
7148         * src/strstream.cc, include/bits/basic_string.tcc: Remove
7149         incorrect whitespace added in my previous change.
7151 2003-03-05  Carlo Wood  <carlo@alinoe.com>
7153         * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
7154         _S_initialized() in order to allow debugging libraries to detect
7155         when the std streams are initialized from an overloaded operator
7156         new.
7158 2003-03-05  Benjamin Kosnik  <bkoz@redhat.com>
7160         * libsupc++/demangle.h: Move to..
7161         * include/bits/demangle.h: ...here.
7162         * src/demangle.cc: Adjust include.
7163         * include/Makefile.am (bits_headers): Add.
7164         * include/Makefile.in: Regenerate.
7166 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
7168         * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
7170         * config/linker-map.gnu: Filter typeinfo and vtable info.
7172 2003-03-04  Jerry Quinn  <jlquinn@optonline.net>
7174         * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
7175         new failure.  Throw exception if badbit and exception mask when ix
7176         >= numeric_limits<int>::max().
7178 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
7180         * src/strstream.cc (strstreambuf::overflow): Make sure operands of
7181         min and max have the same type.
7182         * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
7184 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
7186         * include/Makefile.am (allstamps): Remove stamp-std-precompile.
7187         * include/Makefile.in: Regenerate.
7189 2003-03-03  Benjamin Kosnik  <bkoz@redhat.com>
7191         * testsuite/abi_check.cc (report_symbol_info): Add version info.
7193         * config/linker-map.gnu: Hide more stuff.
7194         * include/Makefile.am: Cleanups.
7195         * include/Makefile.in: Regenerate.
7197 2003-02-27  Jerry Quinn  <jlquinn@optonline.net>
7199         * config/locale/generic/messages_members.h (messages::messages):
7200         Remove name from unused parameter.
7202 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
7204         * src/Makefile.am (sources): Add demangle.cc.
7205         (demangle.o): Add.
7206         (demangle.lo): Add.
7207         * src/Makefile.in: Regenerate.
7208         * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
7209         * libsupc++/Makefile.in: Regenerate.
7211         * testsuite/testsuite_hooks.h
7212         (__gnu_cxx_test::verify_demangle): New.
7213         * testsuite/testsuite_hooks.cc: Define.
7215 2003-02-27  Carlo Wood  <carlo@alinoe.com>
7217         * src/demangle.cc: New.
7218         * libsupc++/demangle.h: New.
7220 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
7221             Carlo Wood  <carlo@alinoe.com>
7223         * testsuite/demangle/abi_examples/01.cc: New.
7224         * testsuite/demangle/abi_examples/02.cc: New.
7225         * testsuite/demangle/abi_examples/03.cc: New.
7226         * testsuite/demangle/abi_examples/04.cc: New.
7227         * testsuite/demangle/abi_examples/05.cc: New.
7228         * testsuite/demangle/abi_examples/06.cc: New.
7229         * testsuite/demangle/abi_examples/07.cc: New.
7230         * testsuite/demangle/abi_examples/08.cc: New.
7231         * testsuite/demangle/abi_examples/09.cc: New.
7232         * testsuite/demangle/abi_examples/10.cc: New.
7233         * testsuite/demangle/abi_examples/11.cc: New.
7234         * testsuite/demangle/abi_examples/12.cc: New.
7235         * testsuite/demangle/abi_examples/13.cc: New.
7236         * testsuite/demangle/abi_examples/14.cc: New.
7237         * testsuite/demangle/abi_examples/15.cc: New.
7238         * testsuite/demangle/abi_examples/16.cc: New.
7239         * testsuite/demangle/abi_examples/17.cc: New.
7240         * testsuite/demangle/abi_examples/18.cc: New.
7241         * testsuite/demangle/abi_examples/19.cc: New.
7242         * testsuite/demangle/abi_examples/20.cc: New.
7243         * testsuite/demangle/abi_examples/21.cc: New.
7244         * testsuite/demangle/abi_examples/22.cc: New.
7245         * testsuite/demangle/abi_examples/23.cc: New.
7246         * testsuite/demangle/abi_examples/24.cc: New.
7247         * testsuite/demangle/abi_examples/25.cc: New.
7248         * testsuite/demangle/abi_examples/26.cc: New.
7249         * testsuite/demangle/abi_text/01.cc: New.
7250         * testsuite/demangle/abi_text/02.cc: New.
7251         * testsuite/demangle/abi_text/03.cc: New.
7252         * testsuite/demangle/abi_text/04.cc: New.
7253         * testsuite/demangle/abi_text/05.cc: New.
7254         * testsuite/demangle/abi_text/06.cc: New.
7255         * testsuite/demangle/abi_text/07.cc: New.
7256         * testsuite/demangle/abi_text/08.cc: New.
7257         * testsuite/demangle/abi_text/09.cc: New.
7258         * testsuite/demangle/abi_text/10.cc: New.
7259         * testsuite/demangle/abi_text/11.cc: New.
7260         * testsuite/demangle/abi_text/12.cc: New.
7261         * testsuite/demangle/abi_text/13.cc: New.
7262         * testsuite/demangle/abi_text/14.cc: New.
7263         * testsuite/demangle/regression/3111-1.cc: New.
7264         * testsuite/demangle/regression/3111-2.cc: New.
7265         * testsuite/demangle/regression/7986-01.cc: New.
7266         * testsuite/demangle/regression/7986-02.cc: New.
7267         * testsuite/demangle/regression/7986-03.cc: New.
7268         * testsuite/demangle/regression/7986-04.cc: New.
7269         * testsuite/demangle/regression/7986-05.cc: New.
7270         * testsuite/demangle/regression/7986-06.cc: New.
7271         * testsuite/demangle/regression/7986-07.cc: New.
7272         * testsuite/demangle/regression/7986-08.cc: New.
7273         * testsuite/demangle/regression/7986-09.cc: New.
7274         * testsuite/demangle/regression/7986-10.cc: New.
7275         * testsuite/demangle/regression/7986-11.cc: New.
7276         * testsuite/demangle/regression/7986-12.cc: New.
7277         * testsuite/demangle/regression/7986.cc: New.
7278         * testsuite/demangle/regression/8897.cc: New.
7279         * testsuite/demangle/regression/cw-01.cc: New.
7280         * testsuite/demangle/regression/cw-02.cc: New.
7281         * testsuite/demangle/regression/cw-03.cc: New.
7282         * testsuite/demangle/regression/cw-04.cc: New.
7283         * testsuite/demangle/regression/cw-05.cc: New.
7284         * testsuite/demangle/regression/cw-06.cc: New.
7285         * testsuite/demangle/regression/cw-07.cc: New.
7286         * testsuite/demangle/regression/cw-08.cc: New.
7287         * testsuite/demangle/regression/cw-09.cc: New.
7288         * testsuite/demangle/regression/cw-10.cc: New.
7289         * testsuite/demangle/regression/cw-11.cc: New.
7290         * testsuite/demangle/regression/cw-12.cc: New.
7291         * testsuite/demangle/regression/cw-13.cc: New.
7292         * testsuite/demangle/regression/cw-14.cc: New.
7293         * testsuite/demangle/regression/old.cc: New.
7295 2003-02-25  Phil Edwards  <pme@gcc.gnu.org>
7297         * docs/doxygen/Intro.3:  Update with new (proper) names.
7298         * docs/doxygen/TODO:  Update.
7299         * docs/doxygen/run_doxygen:  More comments, fix up man pages.
7300         Fake entries for standard typedefs.
7301         * docs/doxygen/user.cfg.in:  Turn INLINE_INHERITED_MEMB back on.
7302         * docs/html/documentation.html:  Top-level man page is now called
7303         C++Intro.
7304         * include/std/std_limits.h:  Doxygenate.
7306 2003-02-25  Scott Snyder  <snyder@fnal.gov>
7308         PR libstdc++/9811
7309         * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
7310         Correct documentation.
7311         * include/bits/stl_multimap.h (lower_bound, upper_bound,
7312         equal_range): Likewise.
7314 2003-02-24  Paolo Carlini  <pcarlini@unitus.it>
7316         PR libstdc++/9825
7317         * src/fstream.cc
7318         (basic_filebuf<char/wchar_t>::_M_underflow_common): When
7319         __bump is true (uflow), always increment the read pointer
7320         (_M_in_cur) before returning successfully.
7321         * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
7323 2003-02-24  Paolo Carlini <pcarlini@unitus.it>
7324             Nathan Myers <ncm@cantrip.org>
7326         PR libstdc++/9404, PR libstdc++/9701 (partial)
7327         (aka pptr == epptr implies overflow)
7328         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
7329         Consistently, _M_out_end points to the end of the buffer just
7330         created.
7331         (overflow): Tweak to use _M_out_buf_size().
7332         (_M_convert_to_external): The role of the old _M_out_end is
7333         now played by _M_out_lim.
7334         (_M_really_overflow): Likewise.
7335         (seekoff): Likewise.
7336         (setbuf): _M_out_end points to the end of the external buffer.
7337         * include/bits/sstream.tcc (overflow): Rewrote, taking into
7338         account the resolution of DR 169 (TC).
7339         (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
7340         (seekpos): Use _M_string.capacity(); tweak.
7341         * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
7342         * include/std/std_fstream.h (sync): The role of the old
7343         _M_out_end is now played by _M_out_lim.
7344         (_M_set_indeterminate): Use _M_set_determinate.
7345         (_M_set_determinate): _M_out_end is now _M_out_lim.
7346         (_M_is_indeterminate): Likewise.
7347         * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
7348         (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
7349         which have the information readily available as _M_string.capacity();
7350         for ate and app modes, pass the string size to _M_really_sync.
7351         (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
7352         point to the end of the buffer (i.e., epptr) and to the string end,
7353         respectively.
7354         * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
7355         which points to the right limit of the used put area.
7356         (_M_out_cur_move): The role of the old _M_out_end is now played
7357         by _M_out_lim.
7358         (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
7359         _M_out_end  - _M_out_cur (i.e., pptr), _very_ close to the letter
7360         of the standard.
7361         (basic_streambuf()): Initialize _M_out_lim too.
7362         * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
7363         * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
7364         * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
7366 2003-02-24  Benjamin Kosnik  <bkoz@redhat.com>
7368         * testsuite/27_io/ios_base_storage.cc (main): Call
7369         set_memory_limits.
7371 2003-02-21  Jerry Quinn  <jlquinn@optonline.net>
7373         * include/bits/locale_facets.tcc (_M_convert_float): Replace
7374         numpunct facet accesses with data from __locale_cache.
7376 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
7378         * docs/html/faq/index.html (3.9):  New note, wchar_t on FreeBSD.
7379         * docs/html/faq/index.txt:  Regenerate.
7381 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
7383         * config/linker-map.gnu:  Also export locking symbols needed for the
7384         generic atomicity.h case.
7386 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
7388         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
7389         config.status.
7390         * configure: Rebuilt.
7392 2003-02-19  Paolo Carlini  <pcarlini@unitus.it>
7394         * include/bits/sstream.tcc (overflow): According to
7395         27.7.1.3, p5, actual output is performed by sputc(c).
7397 2003-02-19  Phil Edwards  <pme@gcc.gnu.org>
7399         PR libstdc++/9582
7400         * include/bits/stl_alloc.h:  Remove all traces of assert().
7402 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
7404         * include/std/std_sstream.h (str()): the size of the
7405         current string may be different from the initial one
7406         whenever _M_out_end > _M_out_beg.
7407         * testsuite/27_io/stringbuf_members.cc (test07): Add.
7409 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
7411         PR libstdc++/9582
7412         * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
7414 2003-02-17  Benjamin Kosnik  <bkoz@redhat.com>
7416         * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
7417         * testsuite/27_io/ios_members.cc (test03): New.
7419 2003-02-17  Jerry Quinn  <jlquinn@optonline.net>
7421         * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
7422         (basic_ios::_M_cache_facets): Move into above.
7423         * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
7424         cache.
7425         (basic_ios::imbue): Force locale cache to be built.
7426         (basic_ios::_M_init): Create and initialize locale cache.
7427         * include/bits/ios_base.h (__locale_cache_base): Declare.
7428         (ios_base::_M_locale_cache): New.
7429         (ios_base::_M_cache): Define.
7430         * include/bits/locale_facets.h: (__num_base): Fix comment.  Add
7431         _S_end.
7432         (__locale_cache_base,__locale_cache<_CharT>):  New classes.
7433         (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
7434         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
7435         cache literal string, grouping flag, thousands separator.
7436         (__locale_cache<_CharT>::__locale_cache): New.
7437         (__locale_cache<_CharT>::_M_init): New.
7438         * src/ios.cc: Clear _M_locale_cache in constructor.
7439         * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
7440         New.
7442 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
7444         * src/locale-inst.cc: Do not include <cassert>.
7445         * src/locale.cc: Likewise.
7447 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
7449         PR libstdc++/9580
7450         * include/std/std_fstream.h: Declare underflow and uflow
7451         specializations, change generic definitions to do nothing.
7452         * src/fstream.cc: Add underflow and uflow specializations.
7454 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
7456         PR libstdc++/9169
7457         * include/bits/fstream.tcc (_M_convert_to_external):
7458         Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
7459         * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
7461 2003-02-13  Benjamin Kosnik  <bkoz@redhat.com>
7463         * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
7464         * include/bits/basic_ios.tcc: Guard use of extern template.
7465         * include/std/std_iomanip.h: Same.
7466         * include/bits/streambuf.tcc: Same.
7467         * include/bits/stl_alloc.h: Same.
7468         * include/bits/locale_facets.tcc: Same.
7469         * include/bits/ostream.tcc: Same.
7470         * include/bits/istream.tcc: Same.
7471         * include/bits/fstream.tcc: Same.
7472         * include/bits/basic_string.tcc: Same.
7474 2003-02-13  Paolo Carlini  <pcarlini@unitus.it>
7476         * include/bits/ostream.tcc (sentry::sentry): Improve
7477         performance-wise the fix for libstdc++/9563.
7479 2003-02-12  Phil Edwards  <pme@gcc.gnu.org>
7481         * config/cpu/generic/atomicity.h (_Atomic_add_mutex):  Fix declaration.
7482         (_GLIBCPP_NEED_GENERIC_MUTEX):  Define for this file.
7483         (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once):  Declare
7484         when we don't have static mutex initialization.
7485         (__exchange_and_add):  Use _Atomic_add_mutex_once.
7486         * src/misc-inst.cc:  Definitions of all the above.
7488 2003-02-12  Paolo Carlini  <pcarlini@unitus.it>
7490         PR libstdc++/9563
7491         * include/bits/ostream.tcc (sentry::sentry): Check
7492         the state of the stream after the preparation.
7493         * testsuite/27_io/ostream_sentry.cc (test02): Add.
7495 2003-02-11  Benjamin Kosnik  <bkoz@redhat.com>
7497         * include/Makefile.am (stamp-std-precompile): Add rule.
7498         * include/Makefile.in: Regenerated.
7500 2003-02-11 Jerry Quinn  <jlquinn@optonline.net>
7501            Benjamin Kosnik  <benjamin@redhat.com>
7503         * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
7504         Add indexes into this array.
7505         (__num_base::_S_atoms): To _S_atoms_in.
7506         (num_put::_M_insert): Rename to _M_pad.
7507         (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
7508         (num_put::_M_widen_int): Rename to _M_group_int.
7509         (num_put::_M_widen_float): Rename to _M_group_float.
7510         * include/bits/locale_facets.tcc (__int_to_char): New inline
7511         function and adapter functions.
7512         (num_put::_M_group_int): Streamline.
7513         (num_put::_M_group_float): Streamline.
7514         (num_put::_M_convert_int): Remove unused parameter names. Choose
7515         large enough buffer for text.  Use __int_to_char instead of
7516         __convert_from_v.  Formatted text is now at the end of the buffer.
7517         (num_put::_M_convert_float): Preliminary fixups.
7518         * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
7519         (__int_to_char<unsigned long long>): Same.
7520         (__int_to_char<char, unsigned long>): New.
7521         (__int_to_char<char, unsigned long long>): New.
7522         (__int_to_char<wchar_t, unsigned long>): New.
7523         (__int_to_char<wchar_t, unsigned long long>): New.
7525 2003-02-11  Scott Snyder  <snyder@fnal.gov>
7527         PR libstdc++/9659
7528         * include/bits/fstream.tcc (seekoff): Avoid operator+
7529         for pos_type.
7531 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
7533         PR libstdc++/9320
7534         * include/ext/stdio_filebuf.h
7535         (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
7536         stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
7537         Change to take a __size parameter of type size_t, not
7538         of type (template parameter dependent) int_type.
7539         * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
7540         size vars to size_t.
7541         * testsuite/ext/stdio_filebuf.cc: Add.
7543 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
7544             Petur Runolfsson  <peturr02@ru.is>
7546         PR libstdc++/9318
7547         * include/bits/streambuf.tcc (__copy_streambufs):
7548         Don't conditionalize the copy to __testput.
7549         * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
7551 2002-02-11  DJ Delorie  <dj@redhat.com>
7553         * acinclude.m4: Check for native targets that can't link at
7554         this point in the build.
7555         * aclocal.m4: Regenerate.
7556         * configure: Regenerate.
7558 2003-02-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7560         * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
7561         Correct alignment.
7562         (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
7563         lock.
7565 2003-02-07  Paolo Carlini  <pcarlini@unitus.it>
7567         * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
7568         unsigned char platforms.
7570 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
7572         PR libstdc++/9562
7573         * include/std/std_istream.h
7574         (basic_istream::sentry::operator bool()): Make const.
7575         * include/std/std_ostream.h
7576         (basic_ostream::sentry::operator bool()): Likewise.
7577         * testsuite/27_io/istream_sentry.cc (test03): Add.
7578         * testsuite/27_io/ostream_sentry.cc: Add.
7580 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
7582         PR libstdc++/9548
7583         Implement resolution of DR 231 (Ready)
7584         * include/bits/locale_facets.h (__num_base::_S_format_float):
7585         Change declaration: return void, remove __prec parameter.
7586         * src/locale.cc (__num_base::_S_format_float): Implement
7587         resolution of DR 231.
7588         * include/bits/locale_facets.tcc (num_put::_M_convert_float):
7589         Tweak uses. Check for negative precision.
7590         * testsuite/22_locale/num_put/put/char/6.cc: Add
7591         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
7593 2003-02-06  Peter Soetens  <peter.soetens@mech.kuleuven.ac.be>
7595         * config/io/basic_file_libio.h: Fixups.
7596         * config/io/c_io_libio.h: Same.
7597         * libio/Makefile.am: Same.
7598         * libio/Makefile.in: Regenerated.
7600 2003-02-06  Benjamin Kosnik  <bkoz@redhat.com>
7602         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
7603         Explicitly use the "C" locale.
7604         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
7606 2003-02-06  Petur Runolfsson  <peturr02@ru.is>
7608         DR 75
7609         DR 305
7610         PR libstdc++/9028 (partial)
7611         PR libstdc++/9224
7612         PR libstdc++/9246
7613         PR libstdc++/9247
7615         * src/codecvt.cc
7616         (codecvt<wchar_t, char, mbstate_t>::do_encoding,
7617         codecvt<wchar_t, char, mbstate_t>::do_length,
7618         codecvt<wchar_t, char, mbstate_t>::do_max_length):
7619         Move...
7620         * config/locale/generic/codecvt_members.cc:  ...here.
7621         * config/locale/gnu/codecvt_members.cc:  ...and here.
7623         * config/locale/generic/codecvt_members.cc,
7624         * config/locale/gnu/codecvt_members.cc
7625         (codecvt<wchar_t, char, mbstate_t>::do_encoding
7626         codecvt<wchar_t, char, mbstate_t>::do_in,
7627         codecvt<wchar_t, char, mbstate_t>::do_length,
7628         codecvt<wchar_t, char, mbstate_t>::do_max_length,
7629         codecvt<wchar_t, char, mbstate_t>::do_out):
7630         New implementation that handles stateless encodings,
7631         including UTF-8.
7633         * config/locale/generic/codecvt_members.cc,
7634         * config/locale/gnu/codecvt_members.cc,
7635         * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
7636         * include/bits/codecvt.h,
7637         * src/codecvt.cc
7638         (codecvt::length, codecvt::do_length):
7639         Change type of first argument of length and do_length from
7640         'const state_type&' to 'state_type&' according to DR 75.
7642         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc:  Cleanup.
7643         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc:  New test.
7644         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc:  New test.
7645         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc:  New test.
7646         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
7647         Cleanup and check for correct return value from encoding
7648         for "C" locale.
7649         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc:  New test.
7650         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc:  New test.
7651         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc:  New test.
7652         * testsuite/22_locale/codecvt/in/wchar_t/1.cc:  Cleanup.
7653         * testsuite/22_locale/codecvt/in/wchar_t/2.cc:  New test.
7654         * testsuite/22_locale/codecvt/in/wchar_t/3.cc:  New test.
7655         * testsuite/22_locale/codecvt/in/wchar_t/4.cc:  New test.
7656         * testsuite/22_locale/codecvt/in/wchar_t/5.cc:  New test.
7657         * testsuite/22_locale/codecvt/in/wchar_t/6.cc:  New test.
7658         * testsuite/22_locale/codecvt/in/wchar_t/7.cc:  New test.
7659         * testsuite/22_locale/codecvt/in/wchar_t/8.cc:  New test.
7660         * testsuite/22_locale/codecvt/in/wchar_t/9.cc:  New test.
7661         * testsuite/22_locale/codecvt/length/char/1.cc:  Cleanup.
7662         * testsuite/22_locale/codecvt/length/char/2.cc:  New test.
7663         * testsuite/22_locale/codecvt/length/wchar_t/1.cc:  Cleanup.
7664         * testsuite/22_locale/codecvt/length/wchar_t/2.cc:  New test.
7665         * testsuite/22_locale/codecvt/length/wchar_t/3.cc:  New test.
7666         * testsuite/22_locale/codecvt/length/wchar_t/4.cc:  New test.
7667         * testsuite/22_locale/codecvt/length/wchar_t/5.cc:  New test.
7668         * testsuite/22_locale/codecvt/length/wchar_t/6.cc:  New test.
7669         * testsuite/22_locale/codecvt/length/wchar_t/7.cc:  New test.
7670         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc:  Cleanup.
7671         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc:  New test.
7672         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc:  New test.
7673         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc:  New test.
7674         * testsuite/22_locale/codecvt/out/wchar_t/1.cc:  Cleanup.
7675         * testsuite/22_locale/codecvt/out/wchar_t/2.cc:  New test.
7676         * testsuite/22_locale/codecvt/out/wchar_t/3.cc:  New test.
7677         * testsuite/22_locale/codecvt/out/wchar_t/4.cc:  New test.
7678         * testsuite/22_locale/codecvt/out/wchar_t/5.cc:  New test.
7679         * testsuite/22_locale/codecvt/out/wchar_t/6.cc:  New test.
7680         * testsuite/22_locale/codecvt/out/wchar_t/7.cc:  New test.
7681         * testsuite/22_locale/codecvt/unicode/1.cc:  New test.
7682         * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc:  Cleanup.
7683         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc:  New test.
7684         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc:  New test.
7685         * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc:  New test.
7687 2003-02-05  Benjamin Kosnik  <bkoz@redhat.com>
7689         * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
7690         (money_put::do_put): Same.
7692 2003-02-05  Jerry Quinn  <jlquinn@optonline.net>
7694         * include/bits/ios_base.h (ios_base): Document reserved storage.
7696         * include/bits/locale_facets.h: (struct __pad): Comment on
7697         implementation.
7698         (__verify_grouping): Same.
7699         (__add_grouping): Same.
7700         * include/bits/locale_facets.tcc (__verify_grouping): Move
7701         comments to declaration.
7702         (__add_grouping): Same.
7704         * include/bits/locale_facets.tcc:
7705         (__write<_CharT, _OutIter>): New function.
7706         (__write<_CharT>): New function specialization.
7707         (num_put::_M_insert): Remove explicit loop over iterator.  Use
7708         __write.
7709         (num_put::_M_widen_float): Remove __basefield.
7710         (num_put::_M_widen_int): Move __basefield to within grouping block.
7712         * include/bits/streambuf_iterator.h: Include <streambuf>.
7713         (ostreambuf_iterator::_M_put): Add.
7715 2003-02-05  Paolo Carlini  <pcarlini@unitus.it>
7717         * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
7719 2003-02-04  Nathan Myers  <ncm@cantrip.org>
7721         * testsuite/25_algorithms/min_max.cc (test02): Add.
7723 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
7725         PR libstdc++/9439, PR libstdc++/9425
7726         * config/io/basic_file_stdio.cc
7727         (__basic_file<char>::seekoff, seekpos): Return -1L if
7728         fseek fails.
7729         * include/bits/fstream.tcc (basic_filebuf::seekoff):
7730         Check _M_file.seekoff return value; always return
7731         pos_type(off_type(-1)) in case of failure.
7732         (basic_filebuf::pbackfail): Check this->seekoff return
7733         value and return traits_type::eof() in case of failure.
7734         * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
7736 2003-02-04  Jerry Quinn  <jlquinn@optonline.net>
7738         * include/std/std_ostream.h (ostream::_M_write): Declare.
7739         * ostream.tcc (ostream::_M_write): Define.
7740         (basic_ostream::write): Use it.
7741         (operator<<(basic_ostream, _CharT)): Ditto.
7742         (operator<<(basic_ostream, char)): Ditto.
7743         (operator<<(basic_ostream, _CharT*)): Ditto.
7744         (operator<<(basic_ostream, char*)): Ditto.
7745         (operator<<(basic_ostream, basic_string)): Ditto.
7747 2003-02-04  Benjamin Kosnik  <bkoz@redhat.com>
7749         * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
7751 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
7753         * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
7754         add HTML comment about updating links if numbering changes.
7756 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
7758         PR libstdc++/9538
7759         * include/bits/streambuf.tcc (sputbackc): Access
7760         this->gptr()[-1] only if _M_in_beg < _M_in_cur.
7761         * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
7763 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
7765         PR libstdc++/9507
7766         * include/bits/fstream.tcc (open): If the 'ate' repositioning
7767         operation fails, calls close _and_ returns a null pointer
7768         to indicate failure (27.8.1.3,4).
7769         * testsuite/27_io/filebuf_members.cc (test_06): Add.
7771 2003-02-04  Petur Runolfsson  <peturr02@ru.is>
7773         * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
7775 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
7777         * docs/html/27_io/howto.html: New section on stdio_filebuf.
7778         * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
7779         * docs/html/documentation.html: Regenerate.
7781 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
7783         * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
7784         * docs/html/17_intro/porting.html: Regenerate.
7786 2003-02-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
7787             Phil Edwards  <pme@gcc.gnu.org>
7789         * include/std/std_bitset.h:  Replace CHAR_BIT with __CHAR_BIT__, use
7790         numeric_limits for bits-per-word values.
7791         (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
7792         Use __builtin_popcountl instead.
7793         (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
7794         _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
7795         Use __builtin_ctzl instead.
7796         (_S_bit_count, _S_first_one):  Remove.
7797         * config/linker-map.gnu (GLIBCPP_3.4):  Remove std::_S_bit_count.
7798         * src/Makefile.am (sources):  Remove bitset.cc.
7799         * src/bitset.cc:  Delete file.
7800         * src/Makefile.in:  Regenerate.
7802 2003-02-03  Phil Edwards  <pme@gcc.gnu.org>
7804         PR libstdc++/9527, PR libstdc++/8713
7805         * docs/html/install.html:  Mention glibc version requirement.
7806         * docs/html/faq/index.html (3.8):  New note, glibc 2.2.5+ is needed
7807         with 3.2.1+ (formatting bugfixes).
7808         * docs/html/faq/index.txt:  Regenerate.
7810 2003-02-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7812         PR libstdc++/9234
7813         * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
7814         operator.
7816         * include/bits/valarray_before.h (__not_equal_to): Use != instead
7817         of ==.
7819         * testsuite/26_numerics/valarray_operators.cc: New test.
7821 2003-02-01  Phil Edwards  <pme@gcc.gnu.org>
7823         * docs/html/faq/index.html:  Correct link to libg++ information.
7824         * docs/html/faq/index.txt:  Regenerated.
7826 2003-02-01  Paolo Carlini  <pcarlini@unitus.it>
7827             Benjamin Kosnik  <bkoz@redhat.com>
7829         Const correctness issue:
7830         http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
7831         * include/bits/locale_classes.h
7832         (locale::_Impl::_M_facets): Change type to const facet**.
7833         (locale::_Impl::_M_install_facet): Change declaration to
7834         take const facet*.
7835         (locale::facet::_M_references): Make mutable.
7836         (locale::facet::_M_add_reference): Declare const.
7837         (locale::facet::_M_remove_reference): Likewise.
7838         * include/bits/locale_facets.tcc
7839         (use_facet(const locale&)): Tweak for const facet** _M_facets.
7840         (has_facet(const locale&)): Likewise.
7841         * src/locale.cc
7842         (locale::facet::_M_add_reference): Adjust definition.
7843         (locale::facet::_M_remove_reference): Likewise.
7844         * src/localename.cc
7845         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
7846         const facet** _M_facets.
7847         (locale::_Impl::_Impl(const char*, size_t)): Likewise.
7848         (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
7849         (locale::_Impl::_M_install_facet): Adjust definition to take
7850         const facet* and for const facet** _M_facets.
7851         * testsuite/22_locale/locale/cons/8.cc: Add.
7853 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
7855         * include/std/std_limits.h (numeric_limits<float>::has_infinity):
7856         Use __FLT_HAS_INIFINITY__ to initialize.
7857         (numeric_limits<float>::has_quiet_NaN): Likewise.
7858         (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
7859         to initialize.
7860         (numeric_limits<double>::has_quiet_NaN): Likewise.
7861         (numeric_limits<long double>::has_infinity): Use
7862         __LDBL_HAS_INIFINITY__ to initialize.
7863         (numeric_limits<long_double>::has_quiet_NaN): Likewise.
7865 2003-01-28  Nathan Sidwell  <nathan@codesourcery.com>
7867         PR c++/9433
7868         * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
7869         with bases which are very ambiguous.
7871 2003-01-28  Danny Smith  <dannysmith@users.sourceforge.net>
7873         * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
7874         @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
7875         * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
7876         * src/Makefile.in: Regenerate.
7877         * libsupc++/Makefile.in: Regenerate.
7879 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
7881         * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
7882         $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
7883         version_specific_libs is enabled.
7884         * aclocal.m4, configure: Rebuilt.
7886 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
7888         * include/bits/valarray_meta.h: Remove, split into ...
7889         * include/bits/valarray_before.h: ... this, and ...
7890         * include/bits/valarray_after.h: ... this.
7891         * include/std/std_valarray.h: Adjust.
7892         * include/Makefile.am (bits_headers): Adjust.
7893         * include/Makefile.in: Regenerate.
7895 2003-01-24  Andreas Schwab  <schwab@suse.de>
7897         * config/linker-map.gnu: Fix for size_t variance.
7899 2003-01-23  Petur Runolfsson  <peturr02@ru.is>
7901         PR libstdc++/9322
7902         * include/std/std_streambuf.h
7903         (basic_streambuf::basic_streambuf,
7904         basic_streambuf::~basic_streambuf,
7905         basic_streambuf::getloc, basic_streambuf::imbue):
7906         Remove _M_buf_locale_init
7907         * include/bits/fstream.tcc (basic_filebuf::imbue):  Likewise
7908         * testsuite/27_io/filebuf_virtuals.cc (test08):  Add.
7909         * testsuite/27_io/streambuf_members.cc (test08):  Add.
7910         * testsuite/27_io/stringbuf_virtuals.cc (test08):  Add.
7912 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
7914         Revert include ordering.
7915         * config/locale/generic/c_locale.h: Add include guards.
7916         * config/locale/gnu/c_locale.h: Same.
7917         * include/bits/locale_classes.h: Remove cctype include.
7918         * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
7919         * include/std/std_fstream.h: Remove streambuf include.
7920         * include/std/std_sstream.h: Remove streambuf include.
7922 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
7924         * configure.in (libtool_VERSION): To 6:0:0.
7925         * configure: Regenerated.
7926         * config/linker-map.gnu: Clean.
7928         * src/misc-inst.cc: Remove instantiations.
7930         * include/bits/stl_alloc.h (__malloc_alloc_template):
7931         To __malloc_alloc.
7932         (__default_alloc_template): To __pool_alloc.
7933         * src/stl-inst.cc: Same.
7934         * include/backward/alloc.h: Update.
7935         * testsuite/ext/allocators.cc: Update.
7937         * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
7938         really try to remove these if possible.
7939         * src/locale.cc (std): Same.
7941         * testsuite/abi_check.cc (check_version): Add.
7943 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
7944             Sysoltsev Slawa  <Vyatcheslav.Sysoltsev@intel.com>
7945             Mark Mitchell  <mark@codesourcery.com>
7947         PR libstdc++/9269
7948         * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
7949         (basic_filebuf::underflow): Declare.
7950         Move definitions.
7952 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
7954         * include/bits/locale_facets.h: Move non-facet classes requiring
7955         <string> to...
7956         * include/bits/locale_classes.h: New.
7957         * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
7958         * include/bits/Makefile.in: Regenerate.
7960         * include/bits/locale_facets.tcc (__convert_from_v): Move to...
7961         * config/locale/gnu/c_locale.h: ...here.
7962         * config/locale/generic/c_locale.h: Same.
7964         * include/bits/locale_facets.tcc: Move declarations to...
7965         * include/bits/locale_facets.h: ...here.
7966         * include/bits/basic_ios.h: Tweak includes accordingly.
7967         * include/std/std_sstream.h: Add streambuf include.
7968         * include/std/std_fstream.h: Ditto.
7969         * include/std/std_locale.h: Add locale_classes.h include.
7970         * include/std/std_iosfwd.h: Tweak.
7971         * src/concept-inst.cc: Add iterator include.
7973         * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
7974         bits as unexported in the future.
7976 2003-01-21  Benjamin Kosnik  <bkoz@redhat.com>
7978         Reshuffle 22_locale testsuite.
7979         * 22_locale/(codecvt.cc money_get.cc
7980         codecvt_members_char_char.cc money_get_members_char.cc
7981         codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
7982         codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
7983         codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
7984         moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
7985         collate_members_char.cc money_put.cc collate_members_wchar_t.cc
7986         money_put_members_char.cc ctor_copy_dtor.cc
7987         money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
7988         num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
7989         ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
7990         numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
7991         ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
7992         num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
7993         ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
7994         operators.cc ctype_widen_char.cc static_members.cc
7995         ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
7996         global_templates.cc time_get_members_wchar_t.cc, members.cc,
7997         time_put.cc, messages_byname.cc, time_put_members_char.cc,
7998         messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
7999         Split up into individual test cases...
8000         * 22_locale/codecvt/1.cc: New.
8001         * 22_locale/codecvt/2.cc: New.
8002         * 22_locale/codecvt/always_noconv/char/1.cc: New.
8003         * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
8004         * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
8005         * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
8006         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
8007         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
8008         * 22_locale/codecvt/encoding/char/1.cc: New.
8009         * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
8010         * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
8011         * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
8012         * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
8013         * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
8014         * 22_locale/codecvt/in/char/1.cc: New.
8015         * 22_locale/codecvt/in/char/wrapped_env.cc: New.
8016         * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
8017         * 22_locale/codecvt/in/wchar_t/1.cc: New.
8018         * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
8019         * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
8020         * 22_locale/codecvt/length/char/1.cc: New.
8021         * 22_locale/codecvt/length/char/wrapped_env.cc: New.
8022         * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
8023         * 22_locale/codecvt/length/wchar_t/1.cc: New.
8024         * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
8025         * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
8026         * 22_locale/codecvt/max_length/char/1.cc: New.
8027         * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
8028         * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
8029         * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
8030         * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
8031         * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
8032         * 22_locale/codecvt/out/char/1.cc: New.
8033         * 22_locale/codecvt/out/char/wrapped_env.cc: New.
8034         * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
8035         * 22_locale/codecvt/out/wchar_t/1.cc: New.
8036         * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
8037         * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
8038         * 22_locale/codecvt/unicode/char.cc: New.
8039         * 22_locale/codecvt/unicode/wchar_t.cc: New.
8040         * 22_locale/codecvt/unshift/char/1.cc: New.
8041         * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
8042         * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
8043         * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
8044         * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
8045         * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
8046         * 22_locale/collate/1.cc: New.
8047         * 22_locale/collate/2.cc: New.
8048         * 22_locale/collate/compare/char/1.cc: New.
8049         * 22_locale/collate/compare/char/2.cc: New.
8050         * 22_locale/collate/compare/char/wrapped_env.cc: New.
8051         * 22_locale/collate/compare/char/wrapped_locale.cc: New.
8052         * 22_locale/collate/compare/wchar_t/1.cc: New.
8053         * 22_locale/collate/compare/wchar_t/2.cc: New.
8054         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
8055         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
8056         * 22_locale/collate/hash/char/1.cc: New.
8057         * 22_locale/collate/hash/char/2.cc: New.
8058         * 22_locale/collate/hash/char/wrapped_env.cc: New.
8059         * 22_locale/collate/hash/char/wrapped_locale.cc: New.
8060         * 22_locale/collate/hash/wchar_t/1.cc: New.
8061         * 22_locale/collate/hash/wchar_t/2.cc: New.
8062         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
8063         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
8064         * 22_locale/collate/transform/char/2.cc: New.
8065         * 22_locale/collate/transform/char/wrapped_env.cc: New.
8066         * 22_locale/collate/transform/char/wrapped_locale.cc: New.
8067         * 22_locale/collate/transform/wchar_t/2.cc: New.
8068         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
8069         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
8070         * 22_locale/collate_byname/1.cc: New.
8071         * 22_locale/ctype/1.cc: New.
8072         * 22_locale/ctype/2.cc: New.
8073         * 22_locale/ctype/cons/char/1.cc: New.
8074         * 22_locale/ctype/cons/char/wrapped_env.cc: New.
8075         * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
8076         * 22_locale/ctype/is/char/1.cc: New.
8077         * 22_locale/ctype/is/char/2.cc: New.
8078         * 22_locale/ctype/is/char/3.cc: New.
8079         * 22_locale/ctype/is/char/wrapped_env.cc: New.
8080         * 22_locale/ctype/is/char/wrapped_locale.cc: New.
8081         * 22_locale/ctype/is/wchar_t/1.cc: New.
8082         * 22_locale/ctype/is/wchar_t/2.cc: New.
8083         * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
8084         * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
8085         * 22_locale/ctype/narrow/char/1.cc: New.
8086         * 22_locale/ctype/narrow/char/2.cc: New.
8087         * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
8088         * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
8089         * 22_locale/ctype/narrow/wchar_t/1.cc: New.
8090         * 22_locale/ctype/narrow/wchar_t/2.cc: New.
8091         * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
8092         * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
8093         * 22_locale/ctype/scan/char/1.cc: New.
8094         * 22_locale/ctype/scan/char/wrapped_env.cc: New.
8095         * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
8096         * 22_locale/ctype/scan/wchar_t/1.cc: New.
8097         * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
8098         * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
8099         * 22_locale/ctype/to/char/1.cc: New.
8100         * 22_locale/ctype/to/char/wrapped_env.cc: New.
8101         * 22_locale/ctype/to/char/wrapped_locale.cc: New.
8102         * 22_locale/ctype/to/wchar_t/1.cc: New.
8103         * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
8104         * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
8105         * 22_locale/ctype/widen/char/1.cc: New.
8106         * 22_locale/ctype/widen/char/wrapped_env.cc: New.
8107         * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
8108         * 22_locale/ctype/widen/wchar_t/1.cc: New.
8109         * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
8110         * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
8111         * 22_locale/facet/1.cc: New.
8112         * 22_locale/facet/2.cc: New.
8113         * 22_locale/global_templates/1.cc: New.
8114         * 22_locale/locale/cons/1.cc: New.
8115         * 22_locale/locale/cons/2.cc: New.
8116         * 22_locale/locale/cons/3.cc: New.
8117         * 22_locale/locale/cons/4.cc: New.
8118         * 22_locale/locale/cons/5.cc: New.
8119         * 22_locale/locale/cons/6.cc: New.
8120         * 22_locale/locale/cons/7.cc: New.
8121         * 22_locale/locale/global_locale_objects/1.cc: New.
8122         * 22_locale/locale/global_locale_objects/2.cc: New.
8123         * 22_locale/locale/global_locale_objects/3.cc: New.
8124         * 22_locale/locale/operations/1.cc: New.
8125         * 22_locale/locale/operations/2.cc: New.
8126         * 22_locale/messages/1.cc: New.
8127         * 22_locale/messages/2.cc: New.
8128         * 22_locale/messages/members/char/1.cc: New.
8129         * 22_locale/messages/members/char/2.cc: New.
8130         * 22_locale/messages/members/char/3.cc: New.
8131         * 22_locale/messages/members/char/wrapped_env.cc: New.
8132         * 22_locale/messages/members/char/wrapped_locale.cc: New.
8133         * 22_locale/messages_byname/1.cc: New.
8134         * 22_locale/money_get/1.cc: New.
8135         * 22_locale/money_get/2.cc: New.
8136         * 22_locale/money_get/get/char/1.cc: New.
8137         * 22_locale/money_get/get/char/2.cc: New.
8138         * 22_locale/money_get/get/char/3.cc: New.
8139         * 22_locale/money_get/get/char/4.cc: New.
8140         * 22_locale/money_get/get/char/5.cc: New.
8141         * 22_locale/money_get/get/char/6.cc: New.
8142         * 22_locale/money_get/get/char/7.cc: New.
8143         * 22_locale/money_get/get/char/8.cc: New.
8144         * 22_locale/money_get/get/char/wrapped_env.cc: New.
8145         * 22_locale/money_get/get/char/wrapped_locale.cc: New.
8146         * 22_locale/money_get/get/wchar_t/1.cc: New.
8147         * 22_locale/money_get/get/wchar_t/2.cc: New.
8148         * 22_locale/money_get/get/wchar_t/3.cc: New.
8149         * 22_locale/money_get/get/wchar_t/4.cc: New.
8150         * 22_locale/money_get/get/wchar_t/5.cc: New.
8151         * 22_locale/money_get/get/wchar_t/6.cc: New.
8152         * 22_locale/money_get/get/wchar_t/7.cc: New.
8153         * 22_locale/money_get/get/wchar_t/8.cc: New.
8154         * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
8155         * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
8156         * 22_locale/money_put/1.cc: New.
8157         * 22_locale/money_put/2.cc: New.
8158         * 22_locale/money_put/put/char/1.cc: New.
8159         * 22_locale/money_put/put/char/2.cc: New.
8160         * 22_locale/money_put/put/char/3.cc: New.
8161         * 22_locale/money_put/put/char/4.cc: New.
8162         * 22_locale/money_put/put/char/5.cc: New.
8163         * 22_locale/money_put/put/char/6.cc: New.
8164         * 22_locale/money_put/put/char/wrapped_env.cc: New.
8165         * 22_locale/money_put/put/char/wrapped_locale.cc: New.
8166         * 22_locale/money_put/put/wchar_t/1.cc: New.
8167         * 22_locale/money_put/put/wchar_t/2.cc: New.
8168         * 22_locale/money_put/put/wchar_t/3.cc: New.
8169         * 22_locale/money_put/put/wchar_t/4.cc: New.
8170         * 22_locale/money_put/put/wchar_t/5.cc: New.
8171         * 22_locale/money_put/put/wchar_t/6.cc: New.
8172         * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
8173         * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
8174         * 22_locale/moneypunct/1.cc: New.
8175         * 22_locale/moneypunct/2.cc: New.
8176         * 22_locale/moneypunct/3.cc: New.
8177         * 22_locale/moneypunct/members/char/1.cc: New.
8178         * 22_locale/moneypunct/members/char/2.cc: New.
8179         * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
8180         * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
8181         * 22_locale/moneypunct/members/wchar_t/1.cc: New.
8182         * 22_locale/moneypunct/members/wchar_t/2.cc: New.
8183         * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
8184         * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
8185         * 22_locale/moneypunct_byname/1.cc: New.
8186         * 22_locale/num_get/1.cc: New.
8187         * 22_locale/num_get/2.cc: New.
8188         * 22_locale/num_get/get/char/1.cc: New.
8189         * 22_locale/num_get/get/char/2.cc: New.
8190         * 22_locale/num_get/get/char/3.cc: New.
8191         * 22_locale/num_get/get/char/4.cc: New.
8192         * 22_locale/num_get/get/char/5.cc: New.
8193         * 22_locale/num_get/get/char/6.cc: New.
8194         * 22_locale/num_get/get/char/wrapped_env.cc: New.
8195         * 22_locale/num_get/get/char/wrapped_locale.cc: New.
8196         * 22_locale/num_get/get/wchar_t/1.cc: New.
8197         * 22_locale/num_get/get/wchar_t/2.cc: New.
8198         * 22_locale/num_get/get/wchar_t/3.cc: New.
8199         * 22_locale/num_get/get/wchar_t/4.cc: New.
8200         * 22_locale/num_get/get/wchar_t/5.cc: New.
8201         * 22_locale/num_get/get/wchar_t/6.cc: New.
8202         * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
8203         * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
8204         * 22_locale/num_put/1.cc: New.
8205         * 22_locale/num_put/2.cc: New.
8206         * 22_locale/num_put/put/char/1.cc: New.
8207         * 22_locale/num_put/put/char/2.cc: New.
8208         * 22_locale/num_put/put/char/3.cc: New.
8209         * 22_locale/num_put/put/char/4.cc: New.
8210         * 22_locale/num_put/put/char/5.cc: New.
8211         * 22_locale/num_put/put/char/wrapped_env.cc: New.
8212         * 22_locale/num_put/put/char/wrapped_locale.cc: New.
8213         * 22_locale/num_put/put/wchar_t/1.cc: New.
8214         * 22_locale/num_put/put/wchar_t/2.cc: New.
8215         * 22_locale/num_put/put/wchar_t/3.cc: New.
8216         * 22_locale/num_put/put/wchar_t/4.cc: New.
8217         * 22_locale/num_put/put/wchar_t/5.cc: New.
8218         * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
8219         * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
8220         * 22_locale/numpunct/1.cc: New.
8221         * 22_locale/numpunct/2.cc: New.
8222         * 22_locale/numpunct/members/char/1.cc: New.
8223         * 22_locale/numpunct/members/char/2.cc: New.
8224         * 22_locale/numpunct/members/char/wrapped_env.cc: New.
8225         * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
8226         * 22_locale/numpunct/members/wchar_t/1.cc: New.
8227         * 22_locale/numpunct/members/wchar_t/2.cc: New.
8228         * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
8229         * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
8230         * 22_locale/numpunct_byname/1.cc: New.
8231         * 22_locale/numpunct_byname/2.cc: New.
8232         * 22_locale/time_get/1.cc: New.
8233         * 22_locale/time_get/2.cc: New.
8234         * 22_locale/time_get/date_order/char/1.cc: New.
8235         * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
8236         * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
8237         * 22_locale/time_get/date_order/wchar_t/1.cc: New.
8238         * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
8239         * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
8240         * 22_locale/time_get/get_date/char/1.cc: New.
8241         * 22_locale/time_get/get_date/char/2.cc: New.
8242         * 22_locale/time_get/get_date/char/3.cc: New.
8243         * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
8244         * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
8245         * 22_locale/time_get/get_date/wchar_t/1.cc: New.
8246         * 22_locale/time_get/get_date/wchar_t/2.cc: New.
8247         * 22_locale/time_get/get_date/wchar_t/3.cc: New.
8248         * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
8249         * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
8250         * 22_locale/time_get/get_monthname/char/1.cc: New.
8251         * 22_locale/time_get/get_monthname/char/2.cc: New.
8252         * 22_locale/time_get/get_monthname/char/3.cc: New.
8253         * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
8254         * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
8255         * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
8256         * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
8257         * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
8258         * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
8259         * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
8260         * 22_locale/time_get/get_time/char/1.cc: New.
8261         * 22_locale/time_get/get_time/char/2.cc: New.
8262         * 22_locale/time_get/get_time/char/3.cc: New.
8263         * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
8264         * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
8265         * 22_locale/time_get/get_time/wchar_t/1.cc: New.
8266         * 22_locale/time_get/get_time/wchar_t/2.cc: New.
8267         * 22_locale/time_get/get_time/wchar_t/3.cc: New.
8268         * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
8269         * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
8270         * 22_locale/time_get/get_weekday/char/1.cc: New.
8271         * 22_locale/time_get/get_weekday/char/2.cc: New.
8272         * 22_locale/time_get/get_weekday/char/3.cc: New.
8273         * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
8274         * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
8275         * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
8276         * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
8277         * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
8278         * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
8279         * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
8280         * 22_locale/time_get/get_year/char/1.cc: New.
8281         * 22_locale/time_get/get_year/char/3.cc: New.
8282         * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
8283         * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
8284         * 22_locale/time_get/get_year/wchar_t/1.cc: New.
8285         * 22_locale/time_get/get_year/wchar_t/3.cc: New.
8286         * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
8287         * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
8288         * 22_locale/time_put/1.cc: New.
8289         * 22_locale/time_put/2.cc: New.
8290         * 22_locale/time_put/put/char/1.cc: New.
8291         * 22_locale/time_put/put/char/10.cc: New.
8292         * 22_locale/time_put/put/char/2.cc: New.
8293         * 22_locale/time_put/put/char/3.cc: New.
8294         * 22_locale/time_put/put/char/4.cc: New.
8295         * 22_locale/time_put/put/char/5.cc: New.
8296         * 22_locale/time_put/put/char/6.cc: New.
8297         * 22_locale/time_put/put/char/7.cc: New.
8298         * 22_locale/time_put/put/char/8.cc: New.
8299         * 22_locale/time_put/put/char/9.cc: New.
8300         * 22_locale/time_put/put/char/wrapped_env.cc: New.
8301         * 22_locale/time_put/put/char/wrapped_locale.cc: New.
8302         * 22_locale/time_put/put/wchar_t/1.cc: New.
8303         * 22_locale/time_put/put/wchar_t/10.cc: New.
8304         * 22_locale/time_put/put/wchar_t/2.cc: New.
8305         * 22_locale/time_put/put/wchar_t/3.cc: New.
8306         * 22_locale/time_put/put/wchar_t/4.cc: New.
8307         * 22_locale/time_put/put/wchar_t/5.cc: New.
8308         * 22_locale/time_put/put/wchar_t/6.cc: New.
8309         * 22_locale/time_put/put/wchar_t/7.cc: New.
8310         * 22_locale/time_put/put/wchar_t/8.cc: New.
8311         * 22_locale/time_put/put/wchar_t/9.cc: New.
8312         * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
8313         * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
8315 2003-01-16  Jeffrey D. Oldham  <oldham@codesourcery.com>
8317         * config/locale/generic/messages_members.h
8318         (messages_byname<_CharT>::messages_byname): Use this-> to refer to
8319         unqualified members of base clasess.
8321 2003-01-16  Mark Mitchell  <mark@codesourcery.com>
8322             Jeffrey Oldham <oldham@codesourcery.com>
8324         * config/locale/gnu/messages_members.h: Use this-> to refer to
8325         unqualified members of base clasess.
8326         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
8327         * include/bits/codecvt.h: Likewise.
8328         * include/bits/deque.tcc: Likewise.
8329         * include/bits/fstream.tcc: Likewise.
8330         * include/bits/istream.tcc: Likewise.
8331         * include/bits/list.tcc: Likewise.
8332         * include/bits/locale_facets.h: Likewise.
8333         * include/bits/ostream.tcc: Likewise.
8334         * include/bits/sstream.tcc: Likewise.
8335         * include/bits/stl_bvector.h: Likewise.
8336         * include/bits/stl_deque.h: Likewise.
8337         * include/bits/stl_list.h: Likewise.
8338         * include/bits/stl_tree.h: Likewise.
8339         * include/bits/stl_vector.h: Likewise.
8340         * include/bits/vector.tcc: Likewise.
8341         * include/ext/ropeimpl.h: Likewise.
8342         * include/ext/stdio_filebuf.h: Likewise.
8343         * include/ext/stl_rope.h: Likewise.
8344         * include/std/std_fstream.h: Likewise.
8345         * include/std/std_sstream.h: Likewise.
8347 2003-01-15  Phil Edwards  <pme@gcc.gnu.org>
8349         * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
8351 2003-01-15  Benjamin Kosnik  <bkoz@redhat.com>
8353         * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
8354         GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
8355         * aclocal.m4: Regenerate.
8356         * configure: Regenerate.
8357         * testsuite/Makefile.am (all-local): Add conditional rule to
8358         generate testsuite_wchar_t.
8359         * testsuite/Makefile.in: Regenerate.
8360         * testsuite/lib/libstdc++-v3-dg.exp
8361         (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
8362         testsuite_wchar_t is not present in the build directory.
8363         * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
8364         Remove setulimit bits.
8365         * testsuite/26_numerics/complex_value.cc: Set to noopts.
8366         * testsuite/Makefile.am (CLEANFILES): Add.
8367         * testsuite/Makefile.in: Regenerate.
8369 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8371         * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
8372         __hppa__.
8374 2003-01-14  Jeffrey D. Oldham  <oldham@codesourcery.com>
8376         Further conform g++'s __vmi_class_type_info to the C++ ABI
8377         specification.
8378         * libsupc++/cxxabi.h
8379         (__vmi_class_type_info::__flags_masks): Remove enumerations not
8380         required by the specification.
8382 2003-01-12  Benjamin Kosnik  <bkoz@redhat.com>
8384         Renames, namespaces for testsuite utilities.
8385         * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
8386         (gnu_allocator_tracker): Rename to allocation_tracker.
8387         (gnu_new_allocator): Rename to tracker_alloc.
8388         (__set_testsuite_memlimit): Rename to set_memory_limits.
8389         (gnu_assignment_operator): Rename to assignment_operator.
8390         (gnu_destructor): Rename to destructor.
8391         (gnu_copy_tracker): Rename to copy_tracker.
8392         (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
8393         (run_tests_wrapped_locale): New.
8394         (run_tests_wrapped_env): New.
8395         * testsuite/testsuite_hooks.cc: Same.
8396         (class locale_data): Add.
8397         (class enviornment_variable): Add.
8398         (class not_found): Add.
8399         * testsuite/testsuite_allocator.h: Same.
8400         * testsuite/testsuite_allocator.cc: Same.
8401         * testsuite/23_containers/deque_ctor.cc
8402         (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
8403         allocation_tracker.
8404         Change gnu_new_allocator to tracker_alloc.
8405         Change gnu_counting_struct to counter.
8406         Change gnu_copy_tracker to copy_tracker.
8407         Change gnu_copy_constructor to copy_constructor.
8408         Change gnu_assignment_operator to assignment_operator.
8409         Inject.
8410         * testsuite/23_containers/vector_capacity.cc: Same.
8411         * testsuite/23_containers/vector_ctor.cc (test01): Same.
8412         * testsuite/23_containers/list_modifiers.cc: Change
8413         gnu_copy_tracker to copy_tracker.
8414         * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
8415         __set_testsuite_memlimit to set_memory_limits.
8416         * testsuite/21_strings/insert.cc (main): Same.
8417         * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
8418         * testsuite/27_io/stringstream.cc: Same.
8419         * testsuite/27_io/stringbuf.cc: Same.
8420         * testsuite/27_io/streambuf.cc: Same.
8421         * testsuite/27_io/ostream.cc: Same.
8422         * testsuite/27_io/istream.cc: Same.
8423         * testsuite/27_io/fstream.cc: Same.
8424         * testsuite/lib/libstdc++-v3-dg.exp
8425         (libstdc++-v3-list-sourcefiles): Additionally handle files two and
8426         three levels deeper in glob patterns.
8428 2003-01-11  Phil Edwards  <pme@gcc.gnu.org>
8430         * docs/doxygen/tables.html:  Finished now.
8431         * docs/doxygen/user.cfg.in:  Update to latest version of Doxygen.
8432         * include/bits/basic_ios.h (basic_ios::rdbuf):  Add example to
8433         comments.
8435         * include/bits/deque.tcc, include/bits/stl_alloc.h,
8436         include/bits/stl_deque.h, include/bits/stl_list.h,
8437         include/bits/stl_vector.h:  Remove _GLIBCPP_DEPRECATED bits scheduled
8438         for 3.4 removal.
8440 2003-01-09  Benjamin Kosnik  <bkoz@redhat.com>
8442         * configure.in: Revert.
8443         * configure: Regenerate.
8445 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
8447         * include/Makefile.am (install-data-local): Prepend
8448         $(DESTDIR) to destination paths in all (un)installation
8449         commands.  Use ${c_base_builddir} and ${std_builddir}
8450         as destination subdirectories to achieve consistency with
8451         preceding mkinstalldirs commands.  No effect because both
8452         variables contain "." only.
8453         * include/Makefile.in: Regenerate.
8455 2003-01-08  Benjamin Kosnik  <bkoz@redhat.com>
8457         * include/Makefile.am (stamp-*): Add checks for existing stamps.
8458         * include/Makefile.in: Regenerate.
8460         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
8461         * aclocal.m4: Regenerate.
8463         * configure.in: Don't add new multi-do rules every time the
8464         directory is reconfigured.
8465         * configure: Regenerate.
8467 2003-01-08  Brad Spencer  <spencer@infointeractive.com>
8468             Nathan Myers  <ncm@cantrip.org>
8470         * src/Makefile.am (stamp-debug): Clean.
8471         * src/Makefile.in: Regenerate.
8473 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
8475         PR libstdc++/8707
8476         * Makefile.am (distclean-multi): Fix.
8477         * Makefile.in: Regenerate.
8479 2003-01-06  Benjamin Kosnik  <bkoz@redhat.com>
8481         * include/bits/locale_facets.h (messages): Move ctor, dtor
8482         definitions to..
8483         (__timepunct): Same.
8484         * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
8485         definitions. Conditionalize for GNU systems.
8486         * config/locale/generic/messages_members.h (messages): Add dtor, ctor
8487         definitions.
8488         * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
8489         definitions. Conditionalize for GNU systems.
8490         * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
8491         definitions.
8492         * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
8493         * src/locale.cc: Define.
8494         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
8495         Use it.
8496         * config/locale/gnu/time_members.h: Use it.
8497         * config/locale/gnu/messages_members.h: Use it.
8498         * config/linker-map.gnu: Add locale::facets details.
8499         * include/Makefile.am (target_headers_extra): Add time_members.h.
8500         * include/Makefile.in: Regenerate.
8501         * acinclude.m4: Export CTIME_H.
8502         * aclocal.m4: Regenerate.
8503         * configure: Regnerate.
8505 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
8507         * src/codecvt.cc
8508         (codecvt<char, char, mbstate_t>::do_in, do_out):
8509         Tweak parameters to avoid unused parameter warnings.
8511 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
8513         PR libstdc++/9151
8514         * include/bits/locale_facets.cc (num_put::_M_convert_float):
8515         Limit __prec to digits10 + 2, not digits10 + 1, taking into
8516         account the possibility of %{g,G} conversion specifiers
8517         inside _S_format_float.
8518         * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
8520 2003-01-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8522         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
8523         libstdc++-v3-list-sourcefiles): Additionally handle files one
8524         level deeper in glob patterns.
8526         * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
8527         * testsuite/27_io/istream_extractor_arith/01.cc,
8528         testsuite/27_io/istream_extractor_arith/02.cc,
8529         testsuite/27_io/istream_extractor_arith/03.cc,
8530         testsuite/27_io/istream_extractor_arith/06.cc,
8531         testsuite/27_io/istream_extractor_arith/07.cc,
8532         testsuite/27_io/istream_extractor_arith/08.cc,
8533         testsuite/27_io/istream_extractor_arith/09.cc,
8534         testsuite/27_io/istream_extractor_arith/10.cc,
8535         testsuite/27_io/istream_extractor_arith/11.cc,
8536         testsuite/27_io/istream_extractor_arith/12.cc,
8537         testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
8538         * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
8539         sparc*-*-solaris2*.
8541 2003-01-05  Paolo Carlini <pcarlini@unitus.it>
8543         PR libstdc++/9168
8544         * src/codecvt.cc
8545         (codecvt<char, char, mbstate_t>::do_in, do_out):
8546         Implement the resolution of DR19 (TC).
8547         * testsuite/22_locale/codecvt_members_char_char.cc
8548         (test01): Tweak.
8550 2003-01-02  Jason Merrill  <jason@redhat.com>
8552         * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
8553         *__mem is also an output.
8554         * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.