2003-12-30 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob5add00b67ea3c18c47ce8f99752c590fc8364d3c
1 2003-12-30  Paolo Carlini  <pcarlini@suse.de>
3         PR libstdc++/13369
4         * include/bits/locale_facets.tcc (__verify_grouping):
5         Fix to deal properly with __grouping_tmp.size() >
6         __grouping.size().
7         * testsuite/22_locale/num_get/get/char/13.cc: New.
8         * testsuite/22_locale/num_get/get/wchar_t/13.cc: Ditto.
9         
10 2003-12-29  Jerry Quinn  <jlquinn@optonline.net>
12         * include/bits/locale_facets.h (ctype.narrow,widen): Add cast.
14 2003-12-29  Paolo Carlini  <pcarlini@suse.de>
16         * acinclude.m4 (GLIBCXX_CHECK_LFS): Add -fno-exceptions
17         to CXXFLAGS.
18         * aclocal.m4: Regenerate.
19         * configure: Likewise.
21 2003-12-29  Mark Mitchell  <mark@codesourcery.com>
23         * acconfig.h: Add _GLIBCXX_USE_C99_MATH.
24         * acinclude.m4 (GLIBCXX_ENABLE_C99): Define GLIBCXX_USE_C99_MATH.
25         * configure.ac: Define HAVE_S_ISREG and HAVE_S_IFREG when
26         targeting newlib.
27         * aclocal.m4: Regenerated.
28         * config.h.in: Likewise.
29         * configure: Likewise.
30         * Makefile.in: Likewise.
31         * include/Makefile.in: Likewise.
32         * libmath/Makefile.in: Likewise.
33         * libsupc++/Makefile.in: Likewise.
34         * testsuite/Makefile.in: Likewise.
35         * src/Makefile.in: Likewise.
36         * po/Makefile.in: Likewise.
37         * include/c_std/std_cmath.h (_GLIBCXX_USE_C99): Replace with ...
38         (_GLIBCXX_USE_C99_MATH): ... this.
40         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL for
41         arm-none-elf.
42         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Likewise.
43         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Likewise.
44         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Likewise.
45         * testsuite/27_io/basic_istream/readsome/char/6476-2.cc: Likewise.
46         * testsuite/27_io/objects/char/9.cc: Likewise.
47         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Likewise.
49 2003-12-28  Paolo Carlini  <pcarlini@suse.de>
51         * include/ext/pool_allocator.h (class __pool_alloc): Use
52         operator new and operator delete.
54 2003-12-24  Andrew Pinski  <pinskia@physics.uc.edu>
56         * config/cpu/i386/atomicity.h (__exchange_and_add): Fix output 
57         constraint.
59         PR libstdc++/13480
60         * config/cpu/i386/atomicity.h: Split up read-write memory operand.
62 2003-12-23  Benjamin Kosnik  <bkoz@redhat.com>
64         * include/ext/new_allocator.h (new_allocator): Proper allocator class.
65         (__new_alloc): Delete.
66         * include/ext/malloc_allocator.h (malloc_allocator): Same.
67         (__malloc_alloc): Delete.
68         * include/ext/mt_allocator.h: Same, but weakly.
69         * include/ext/debug_allocator.h: Convert to the new style.
70         * include/ext/pool_allocator.h: Use global new and delete directly.
71         * include/backward/alloc.h: Don't inject malloc_allocator, or
72         debug_allocator.        
73         * testsuite/ext/allocators.cc: Minimal fixups for usage of new
74         classes.  Comment out tests with __pool_alloc for now.
75         * testsuite/performance/allocator.cc: Same.
77 2003-12-22  Matt Austern  <austern@apple.com>
79         * include/bits/stl_bvector.h (_Bvector_alloc_base): Eliminate.
80         (_Bvector_base): Inherit directly from word allocator.
81         * include/bits/stl_tree.h (_Rb_tree_alloc_base): Eliminate.
82         (_Rb_tree_base): Eliminate.
83         (_Rb_tree): Inherit directly from node allocator.
84         * include/ext/slist (_Alist_alloc_base): Eliminate.
85         (_Slist_base): Inherit direcly from node allocator.
86         
87 2003-12-22  Benjamin Kosnik  <bkoz@redhat.com>
89         * testsuite/18_support/numeric_limits.cc: Add _GLIBCXX_ASSERT to
90         dg-options in testcases that use VERIFY.        
91         * testsuite/23_containers/vector/invalidation/1.cc: Same.
92         * testsuite/23_containers/vector/invalidation/2.cc: Same.
93         * testsuite/23_containers/vector/invalidation/3.cc: Same.
94         * testsuite/23_containers/vector/invalidation/4.cc: Same.
95         * testsuite/23_containers/vector/resize/1.cc: Same.
96         * testsuite/26_numerics/complex_value.cc: Same.
97         * testsuite/27_io/ios_base/storage/1.cc: Same.
98         * testsuite/27_io/ios_base/storage/2.cc: Same.
99         * testsuite/27_io/ios_base/storage/3.cc: Same.
100         * testsuite/27_io/manipulators/standard/char/2.cc: Same.
101         * testsuite/backward/11460.cc: Same.
102         * testsuite/backward/strstream_members.cc: Same.
104         * include/ext/hash_set (class hash_multiset): Fix typo.
106 2003-12-22  Benjamin Kosnik  <bkoz@redhat.com>  
108         * testsuite/27_io/objects/char/5.cc: Don't use stdc++.h.gch.
109         * testsuite/27_io/objects/wchar_t/5.cc: Same.
110         * docs/html/test.html: Add docs for constructing test files that
111         don't use stdc++.h.gch.
112         * scripts/testsuite_flags.in (PCHFLAGS): Move to --cxxpchflags. 
113         * testsuite/libstdc++-dg/normal.exp: Compute DEFAULT_CXXFLAGS
114         differently.
116         * include/bits/ios_base.h (ios_base::Init::_S_initialized): Remove.
117         * src/ios_init.cc: Same.
118         * config/linker-map.gnu: Same.
119         * testsuite/27_io/ios_base/cons/copy_neg.cc: Adjust line numbers.
120         * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
121                 
122 2003-12-22  Andrew Pinski  <pinskia@physics.uc.edu>
124         PR libstdc++/13462
125         * include/bits/stl_multiset.h (__gnu_norm::multiset): Define pointer
126         as allocator's pointer, likewise for reference, const_pointer, and
127         const_reference.
128         * include/bits/stl_set.h (__gnu_norm::set): Likewise.
129         * include/ext/hash_set (__gnu_ext::hash_set): Likewise.
130         (__gnu_ext::hash_multiset): Likewise.
132 2003-12-22  Paolo Carlini  <pcarlini@suse.de>
134         * include/bits/locale_facets.tcc (num_get::_M_extract_int,
135         num_get::_M_extract_float): According to 22.2.2.1.2, p8-9,
136         first look for decimal_point and thousands_sep, when parsing
137         sign, leading zeros (and 0, Ox, 0X for integer types) too.
138         * testsuite/22_locale/num_get/get/char/12.cc: New.
139         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
141         * testsuite/22_locale/num_get/get/char/11.cc: Add a comment.
142         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
143         
144 2003-12-20  Jason Merrill  <jason@redhat.com>
146         * config/cpu/powerpc/atomicity.h: Fix oversight in previous
147         change.
149 2003-12-20  Jerry Quinn  <jlquinn@optonline.net>
151         * docs/doxygen/TODO: Update.
152         * include/bits/locale_classes.h (locale, facet, id): Document.
153         * include/bits/locale_facets.tcc (has_facet, use_facet): Document.
155 2003-12-19  Jason Merrill  <jason@redhat.com>
157         * config/cpu/cris/atomicity.h: Remove memory clobbers.
158         * config/cpu/mips/atomicity.h: Likewise.
159         * config/cpu/i486/atomicity.h: Remove memory clobbers.
160         Split up read-write memory operand.
161         * config/cpu/m68k/atomicity.h: Likewise.
162         * config/cpu/powerpc/atomicity.h: Make memory I/O explicit.
163         * config/cpu/s390/atomicity.h: Likewise.
164         * config/cpu/sparc/atomicity.h: Likewise.
166 2003-12-20  Carlo Wood  <carlo@alinoe.com>
168         * bits/demangle.h
169         namespace __gnu_cxx::demangler
170         (session<Allocator>::decode_encoding): Put the postfix
171         of the return type of (member) functions after the function
172         instead of after the return type.
174 2003-12-19  Jerry Quinn  <jlquinn@optonline.net>
176         * include/bits/locale_facet.h
177         (__ctype_abstract_base,ctype<charT>,ctype<char>,ctype<wchar_t>):
178         Document.
180 2003-12-19  Paolo Carlini  <pcarlini@suse.de>
182         * include/bits/locale_facets.tcc (num_get::_M_extract_int,
183         num_get::_M_extract_float): According to 22.2.2.1.2, p8-9,
184         first look for decimal_point and thousands_sep.
185         * testsuite/22_locale/num_get/get/char/11.cc: New.
186         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
188 2003-12-19  Paolo Carlini  <pcarlini@suse.de>
190         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
191         When __found_sci becomes true stop eating thousands separators
192         and the decimal radix separator.
193         * testsuite/22_locale/num_get/get/char/9.cc: New.
194         * testsuite/22_locale/num_get/get/wchar_t/9.cc: Likewise.       
195         
196         * config/locale/generic/c_locale.cc (__convert_to_v): Don't
197         check that *__sanity == '\0': parsing may stop earlier, still
198         be successful.
199         * config/locale/gnu/c_locale.cc: Likewise.
200         * testsuite/22_locale/num_get/get/char/10.cc: New.
201         * testsuite/22_locale/num_get/get/wchar_t/10.cc: Likewise.
202         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
203         Tweak in one place accordingly.
205         * testsuite/22_locale/money_get/get/char/1.cc: Fix typo.
206         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
208 2003-12-18  Benjamin Kosnik  <bkoz@redhat.com>
210         * include/bits/stl_list.h: Formatting tweaks.
211         * include/bits/list.tcc: Same.
213 2003-12-18  Matt Austern  <austern@apple.com>
215         * include/bits/demangle.h: Fix allocator type correctness,
216         i.e. make sure that when we instantiate a container with a value
217         type and an allocator, the allocator's value type matches the
218         container's.
219         * include/bits/stl_deque.h (_Deque_alloc_base): Eliminate.
220         (_Deque_base): inherit directly from the deque's allocator.  Use
221         rebinding instead of _Alloc_traits.  Pick up data members from 
222         _Deque_alloc_base.
223         * include/bits/stl_list.h (_List_alloc_base): Eliminate.
224         (_List_base): Inherit directly from the list's allocator.  Use
225         rebinding instead of _Alloc_traits.  Pick up data members from 
226         _List_alloc_base.
227         * include/bits/stl_vector.h (_Vector_alloc_base): Eliminate
228         (_Vector_base): Inherit directly from the vector's allocator.  Use
229         rebinding instead of _Alloc_traits.  Pick up data members from 
230         _Vector_alloc_base.
231         * include/ext/hashtable.h: Fix allocator type correctness (the
232         vector of buckets must be passed an allocator for objects of
233         type _Node*).  Use rebinding instead of _Alloc_traits.
234         
235 2003-12-17  Paolo Carlini  <pcarlini@suse.de>
237         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
238         Use narrow to get from __format[__i] a char __c representing a
239         formatting code, don't use it to compare *__beg to __format[__i].
240         * testsuite/22_locale/time_get/get_date/wchar_t/4.cc: New.
242 2003-12-17  Paolo Carlini  <pcarlini@suse.de>
244         * testsuite/performance/container_benchmark.cc: Tweak outputs.
246         * testsuite/performance/list_create_fill_sort.cc: Shrink a
247         bit some outputs.
249         * testsuite/testsuite_performance.h: Widen a few output fields.
251         * testsuite/performance/ifstream_extract_int.cc: New.
253 2003-12-16  Phil Edwards  <phil@codesourcery.com>
255         * configure.ac (AM_INIT_AUTOMAKE):  Don't warn about GNU Make.
256         * configure:  Regenerated.
257         * Makefile.am (check-%):  New catch-all forwarding target.
258         * Makefile.in:  Regenerated.
260 2003-12-16  Paolo Carlini  <pcarlini@suse.de>
262         * testsuite/performance/container_benchmark.cc: New, a
263         benchmark developed by Bjarne Stroustrup and Alexander
264         Stepanov and made available with no restrictions.
266         * testsuite/testsuite_performance.h (report_header): New,
267         useful to produce header lines in the reports.
269 2003-12-16  Jonathan Wakely  <redi@gcc.gnu.org>
271         * docs/html/21_strings/howto.html: Document shrink-to-fit reserve().
272         * docs/html/faq/index.html: Reducing vector's capacity() to size().
273         * docs/html/documentation.html, docs/html/faq/index.txt: Regenerate.
275 2003-12-16  Paolo Carlini  <pcarlini@suse.de>
277         * testsuite/performance/narrow_widen_char.cc: Tweak the
278         number of iterations for each test.
279         * testsuite/performance/narrow_widen_wchar_t.cc: Add a
280         missing clear_counters.
282 2003-12-16  Paolo Carlini  <pcarlini@suse.de>
284         PR libstdc++/11723
285         * include/bits/locale_facets.h: Add _M_bit and _M_wmask,
286         used to speed up the computation of ctype::do_is.
287         * config/locale/generic/ctype_members.cc
288         (_M_initialize_ctype): Fill _M_bit and _M_wmask.
289         (ctype::do_is): Use _M_bit and _M_wmask.
290         * config/locale/gnu/ctype_members.cc: Likewise.
291         * testsuite/performance/is_wchar_t.cc: New.
293         * testsuite/performance/narrow_widen_wchar_t.cc: Tweak
294         string literal (incorrect citation ;)
296         * include/bits/locale_facets.h: Minor tweaks, const
297         correctness, unsigned -> size_t.
299 2003-12-16  Jerry Quinn  <jlquinn@optonline.net>
301         * include/bits/locale_facets.h (widen, narrow):  Uncomment the
302         intended code.
304 2003-12-15  Jerry Quinn  <jlquinn@optonline.net>
306         * config/os/aix/ctype_noninline.h,
307         config/os/bsd/freebsd/ctype_noninline.h,
308         config/os/bsd/netbsd/ctype_noninline.h,
309         config/os/djgpp/ctype_noninline.h,
310         config/os/generic/ctype_noninline.h,
311         config/os/gnu-linux/ctype_noninline.h,
312         config/os/hpux/ctype_noninline.h,
313         config/os/irix/irix5.2/ctype_noninline.h,
314         config/os/irix/irix6.5/ctype_noninline.h,
315         config/os/mingw32/ctype_noninline.h,
316         config/os/newlib/ctype_noninline.h,
317         config/os/qnx/qnx6.1/ctype_noninline.h,
318         config/os/solaris/solaris2.5/ctype_noninline.h,
319         config/os/solaris/solaris2.6/ctype_noninline.h,
320         config/os/solaris/solaris2.7/ctype_noninline.h,
321         config/os/vxworks/ctype_noninline.h,
322         config/os/windiss/ctype_noninline.h (ctype):  Initialize
323         _M_narrow, _M_widen.
324         * include/bits/locale_facets.h (_M_widen, _M_widen_ok,
325         _M_narrow, _M_narrow_ok): New.
326         (widen, narrow): Use tables to bypass virtual functions.
327         (_M_widen_init, _M_narrow_init): New.
329 2003-12-15  Carlo Wood  <carlo@alinoe.com>
331         * include/bits/ios_base.h (Init::_S_initialized): Change into
332         declaration.
333         * src/ios_init.cc (Init::_S_initialized): Add definition.
335 2003-12-15  Benjamin Kosnik  <bkoz@redhat.com>
337         PR libstdc++/12658
338         * include/Makefile.am (bits_headers): Add concurrence.h.
339         * include/Makefile.in: Regenerated.
340         * include/bits/concurrence.h: New.
341         * src/locale_init.cc: Use it.
342         (locale::locale): Lock critical regions.
343         (locale::global): Same.
344         
345 2003-12-15  Benjamin Kosnik  <bkoz@redhat.com>
347         * include/bits/basic_string.h: Change _*_references to _*_refcount.
348         * include/bits/locale_classes.h: Same.
349         * src/locale.cc: Same.
350         * src/locale_name.cc: Same.     
351         * src/locale_init.cc: Same.     
352         
353 2003-12-15  Benjamin Kosnik  <bkoz@redhat.com>
355         PR libstdc++/12855      
356         * include/bits/ios_base.h (Init::_S_ios_base_init): Change to
357         _S_refcount, make atomic.
358         * src/ios.cc: Adjust definition.        
359         * src/ios_init.cc (ios_base::Init::Init): Use __exchange_and_add,
360         and __atomic_add.
361         (ios_base::Init::~Init): Same.
362         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
363         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
364         
365 2003-12-15  Paolo Carlini  <pcarlini@suse.de>
367         * include/bits/locale_facets.tcc (num_get::do_get(bool&)):
368         Fail as soon as the begins of both truename and falsename
369         stop to match; always leave __beg one position beyond the
370         last char successfully matched.
371         * testsuite/22_locale/num_get/get/char/8.cc: New.
372         * testsuite/22_locale/num_get/get/wchar_t/8.cc: Likewise.
374 2003-12-15  Paolo Carlini  <pcarlini@suse.de>
376         * include/bits/locale_facets.h (_M_widen): Reserve space
377         for all the possible widened chars.     
378         * config/locale/generic/ctype_members.cc (_M_initialize_ctype):
379         Compute at construction time all the possible widened chars.
380         (do_widen): Tweak, simplify.
381         * config/locale/gnu/ctype_members.cc: Likewise.
382         * testsuite/performance/narrow_widen_wchar_t.cc: Add tests
383         for the array versions.
385 2003-12-12  Paolo Carlini  <pcarlini@suse.de>
386             Benjamin Kosnik  <bkoz@redhat.com>
388         PR libstdc++/13341
389         * include/bits/locale_facets.h (ctype<wchar_t>): Declare
390         _M_initialize_ctype() and _M_narrow_ok, _M_narrow and _M_widen.
391         * src/ctype.cc (ctype<wchar_t>::ctype(size_t),
392         ctype<wchar_t>::ctype(__c_locale, size_t)): Use
393         _M_initialize_ctype to fill _M_narrow and _M_widen.
394         (ctype_byname<wchar_t>::ctype_byname(const char*, size_t)):
395         Likewise.
396         * config/locale/generic/ctype_members.cc (do_narrow, do_widen)
397         Use _M_narrow and _M_widen when possible, instead of calling
398         wctob and btowc, respectively.
399         (_M_initialize_ctype): Define, it fills at construction time
400         _M_narrow and _M_widen.
401         * config/locale/gnu/ctype_members.cc: Likewise.
402         * testsuite/performance/narrow_widen_wchar_t.cc: New.
404 2003-12-12  Jonathan Wakely  <redi@gcc.gnu.org>
406         * docs/html/faq/index.txt: Regenerate after adding <link> tags.
408 2003-12-11  Neil Ferguson  <nferguso@eso.org>
409             Paolo Carlini  <pcarlini@suse.de>
411         * include/bits/basic_string.tcc (reserve): Allow shrink-to-fit.
412         * testsuite/21_strings/basic_string/capacity/1.cc: Tweak.
413         * testsuite/21_strings/basic_string/capacity/char/1.cc: Ditto.
414         * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Ditto.
416 2003-12-10  Benjamin Kosnik  <bkoz@redhat.com>
418         PR libstdc++/6243
419         * testsuite/lib/libstdc++.exp (v3-init): Add
420         original_ld_library_path, calculate ld_library path, set
421         LD_LIBRARY_PATH to both. Based on libjava.exp.
422         
423 2003-12-10  Benjamin Kosnik  <bkoz@redhat.com>
424             Alexandre Oliva  <aoliva@redhat.com>
425         
426         PR libstdc++/11612
427         * testsuite/Makefile.am (GLIBCXX_DIR): New.
428         (GLIBGCC_DIR): New.
429         (CXXLINK): Use both with -R so libtool links the correct libs.
431 2003-12-10  Paolo Carlini  <pcarlini@suse.de>
433         PR libstdc++/13217
434         * include/bits/fstream.tcc (underflow): Deal gracefully with
435         read errors: throw ios_base::failure.
437 2003-12-10  Benjamin Kosnik  <bkoz@redhat.com>
439         PR libstdc++/10063
440         * config/io/basic_file_stdio.cc (__basic_file::sys_open): Sync.
441         * testsuite/ext/stdio_filebuf/char/10063-1.cc: New.
442         * testsuite/ext/stdio_filebuf/char/10063-2.cc: New.
443         
444 2003-12-10  Paolo Carlini  <pcarlini@suse.de>
446         * include/bits/locale_facets.tcc (num_put::do_put(void*)):
447         Remove the try/catch, not necessary.
449 2003-12-10  Paolo Carlini  <pcarlini@suse.de>
451         * testsuite/22_locale/locale/cons/12438.cc: Tweak memory
452         limit and iterations to avoid spurious failures on some
453         64 bit machines.
455 2003-12-09  Benjamin Kosnik  <bkoz@redhat.com>
456         
457         * config/linker-map.gnu: Remove private ios_base members from
458         export list.
460         * config/cpu/alpha/atomicity.h: Consistently format.
461         * config/cpu/cris/atomicity.h: Same.
462         * config/cpu/generic/atomicity.h: Same.
463         * config/cpu/hppa/atomicity.h: Same.
464         * config/cpu/i386/atomicity.h: Same.
465         * config/cpu/i486/atomicity.h: Same.
466         * config/cpu/ia64/atomicity.h: Same.
467         * config/cpu/m68k/atomicity.h: Same.
468         * config/cpu/mips/atomicity.h: Same.
469         * config/cpu/powerpc/atomicity.h: Same.
470         * config/cpu/s390/atomicity.h: Same.
471         * config/cpu/sparc/atomicity.h: Same.
472         
473 2003-12-09  Benjamin Kosnik  <bkoz@redhat.com>
475         PR libstdc++/13296
476         * acinclude.m4 (GLIBCXX_ENABLE_LIBUNWIND_EXCEPTIONS): Remove.
477         * aclocal.m4: Regenerate.
478         * configure.ac: Remove call to GLIBCXX_ENABLE_LIBUNWIND_EXCEPTIONS.
479         * conigure: Regenerate.
480         * src/Makefile.am (libstdc___la_LDFLAGS): Remove LIBUNWIND_FLAGS.
481         * src/Makefile.in: Regenerate.
482         * docs/html/17_intro/configury.html: Modify.
483         
484 2003-12-09  Paolo Carlini  <pcaelini@suse.de>
485         
486         * include/bits/demangle.h (struct implementation_details):
487         Keep in comments the names of the unused parameters.
489 2003-12-09  Paolo Carlini  <pcaelini@suse.de>
491         * include/bits/demangle.h (struct implementation_details):
492         Fix unused parameters warning.
494 2003-12-09  Paolo Carlini  <pcarlini@suse.de>
496         * include/bits/locale_facets.tcc (num_get::_M_extract_int):
497         Slightly streamline the code dealing with overflows and the
498         parsing of the sign.
500 2003-12-09  Bernardo Innocenti  <bernie@develer.com>
502         * include/ext/algorithm, include/ext/debug_allocator.h,
503         include/ext/enc_filebuf.h, include/ext/functional,
504         include/ext/hash_fun.h, include/ext/hash_map, include/ext/hash_set,
505         include/ext/hashtable.h, include/ext/iterator,
506         include/ext/malloc_allocator.h, include/ext/memory,
507         include/ext/mt_allocator.h, include/ext/numeric,
508         include/ext/pod_char_traits.h, include/ext/pool_allocator.h,
509         include/ext/rb_tree, include/ext/rope, include/ext/ropeimpl.h,
510         include/ext/slist, include/ext/stdio_filebuf.h,
511         include/ext/stdio_sync_filebuf.h: Remove trailing whitespace.
513 2003-12-09  Bernardo Innocenti  <bernie@develer.com>
515         * include/debug/bitset, include/debug/debug.h, include/debug/deque,
516         include/debug/formatter.h, include/debug/hash_map.h,
517         include/debug/hash_multimap.h, include/debug/hash_multiset.h,
518         include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
519         include/debug/map.h, include/debug/multimap.h,
520         include/debug/multiset.h, include/debug/safe_base.h,
521         include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
522         include/debug/safe_sequence.h, include/debug/set.h,
523         include/debug/string, include/debug/vector: Remove trailing whitespace.
525 2003-12-09  Bernardo Innocenti  <bernie@develer.com>
527         * include/c_compatibility/iso646.h, include/c_compatibility/limits.h,
528         include/c_compatibility/locale.h, include/c_compatibility/stdio.h,
529         include/c_compatibility/string.h, include/c_compatibility/time.h,
530         include/c_compatibility/wchar.h, include/c_compatibility/wctype.h:
531         Remove trailing whitespace.
533 2003-12-09  Bernardo Innocenti  <bernie@develer.com>
535         * include/c_std/cmath.tcc, include/c_std/std_cassert.h,
536         include/c_std/std_cctype.h, include/c_std/std_cmath.h,
537         include/c_std/std_cstddef.h, include/c_std/std_cstdio.h,
538         include/c_std/std_cstdlib.h, include/c_std/std_cstring.h,
539         include/c_std/std_cwchar.h, include/c_std/std_cwctype.h:
540         Remove trailing whitespace.
542 2003-12-09  Bernardo Innocenti  <bernie@develer.com>
544         * include/c/std_cctype.h, include/c/std_cmath.h,
545         include/c/std_cstdlib.h include/c/std_cwchar.h,
546         include/c/std_cwctype.h: Remove trailing whitespace.
548 2003-12-09  Bernardo Innocenti  <bernie@develer.com>
550         * include/backward/algo.h, include/backward/algobase.h,
551         include/backward/alloc.h, include/backward/complex.h,
552         include/backward/defalloc.h, include/backward/function.h,
553         include/backward/iterator.h, include/backward/new.h,
554         include/backward/ostream.h, include/backward/queue.h,
555         include/backward/rope.h, include/backward/stream.h,
556         include/backward/streambuf.h, include/backward/strstream,
557         include/backward/tempbuf.h, include/backward/tree.h,
558         include/backward/vector.h: Remove trailing whitespace.
560 2003-12-08  Paolo Carlini  <pcarlini@suse.de>
562         * config/locale/generic/c_locale.cc (__convert_to_v(long&),
563         __convert_to_v(unsigned long&), __convert_to_v(long long&),
564         __convert_to_v(unsigned long long&): Remove.
565         (__convert_to_v(float&), __convert_to_v(double&),
566         __convert_to_v(long double&)): Remove last unused parameter.
567         * config/locale/gnu/c_locale.cc: Likewise.
568         * include/bits/locale_facets.h: Likewise.
569         (num_get::_M_extract_int): Update declaration.
570         (class __num_base): Tweak _S_ie and _S_iE according to the
571         _S_atoms_in changes.
572         * include/bits/locale_facets.tcc (num_get::_M_extract_int):
573         Provide directly the final _ValueT, not a string: accumulate
574         the result checking for overflow at each digit.
575         (num_get::do_get(bool&), num_get::do_get(long&),
576         num_get::do_get(unsigned short&), num_get::do_get(unsigned int&),
577         num_get::do_get(unsigned long&), num_get::do_get(long long&),
578         num_get::do_get(unsigned long long&), num_get::do_get(void*&)):
579         Use the new _M_extract_int, simplify.
580         * src/locale-inst.cc (num_get::_M_extract_int(long&),
581         num_get::_M_extract_int(unsigned short&),
582         num_get::_M_extract_int(unsigned int&),
583         num_get::_M_extract_int(unsigned long&),
584         num_get::_M_extract_int(long long&),
585         num_get::_M_extract_int(unsigned long long&): Instantiate.
586         * src/locale_facets.cc (__num_base::_S_atoms_in): Reorder
587         the chars in the natural order: abcdefABCDEF.
589 2003-12-08  David S. Miller  <davem@redhat.com>
591         PR libstdc++/12496
592         * config/cpu/sparc/atomicity.h (__exchange_and_add, __atomic_add):
593         Extend increment to _Atomic_word before giving to assembler.
595 2003-12-06  Benjamin Kosnik  <bkoz@redhat.com>
597         * testsuite/ext/enc_filebuf/char/13189.cc: Guard for __enc_traits.
598         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
599         
600 2003-12-06  Benjamin Kosnik  <bkoz@redhat.com>
602         PR libstdc++/11691 
603         * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf):
604         Remove __del argument to file descriptor constructor.
605         * config/io/basic_file_stdio.h (__basic_file::sys_open): Remove
606         bool argument.
607         * config/io/basic_file_stdio.cc: Same.
609 2003-12-05  Benjamin Kosnik  <bkoz@redhat.com>
611         PR libstdc++/13189
612         * include/ext/enc_filebuf.h: Fix.
613         * include/bits/fstream.tcc: Tweak formatting.
614         * include/bits/postypes.h: Same.
615         * include/bits/sstream.tcc: Same.
616         * include/bits/streambuf.tcc: Same.
617         * testsuite/ext/stdio_filebuf.cc: Split.
618         * testsuite/ext/stdio_filebuf_2.cc: Split.
619         * testsuite/ext/stdio_sync_filebuf_char.cc: Split.
620         * testsuite/ext/stdio_sync_filebuf_wchar_t.cc: Split.
621         * testsuite/ext/enc_filebuf/char/13189.cc: New.
622         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: New.
623         * testsuite/ext/stdio_filebuf/char/1.cc: New.
624         * testsuite/ext/stdio_filebuf/char/2.cc: New.
625         * testsuite/ext/stdio_sync_filebuf/char/1.cc: New.
626         * testsuite/ext/stdio_sync_filebuf/char/12048-1.cc: New.
627         * testsuite/ext/stdio_sync_filebuf/char/12048-2.cc: New.
628         * testsuite/ext/stdio_sync_filebuf/char/12048-3.cc: New.
629         * testsuite/ext/stdio_sync_filebuf/char/12048-4.cc: New.
630         * testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc: New.
631         * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc: New.
632         * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc: New.
633         * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc: New.
634         * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc: New.
636 2003-12-05  Carlo Wood  <carlo@alinoe.com>
638         PR libstdc++/13045
639         * bits/demangle.h
640         namespace __gnu_cxx::demangler
641         (enum substitution_nt): Removed trailing comma.
642         (implementation_details): Added.
643         (session<Allocator>::M_implementation_details): Added.
644         (session<Allocator>::session): Pass implementation_details.
645         (session<Allocator>::decode_encoding): Same.
646         (session<Allocator>::decode_real): Added.
647         (_GLIBCXX_DEMANGLER_STYLE_VOID _GLIBCXX_DEMANGLER_STYLE_LITERAL
648         _GLIBCXX_DEMANGLER_STYLE_LITERAL_INT
649         _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
650         _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Replaced with
651         implementation_details equivalent.
652         (session<Allocator>::decode_expression):
653         Use M_implementation_details instead of macros. Add extra parentheses
654         around 'larger than' operator in expressions in template arguments.
655         (session<Allocator>::decode_bare_function_type): Idem.
656         (session<Allocator>::decode_literal):
657         Idem, and call decode_real for floating literals.
658         (session<Allocator>::decode_type_with_postfix): Put the postfix
659         of the return type of (member) functions after the function
660         instead of after the return type.  Also, put a space after the
661         prefix of qualified function pointers: "int (* const<space>".
662         * src/demangle.cc: include most dependent header file first.
663         * testsuite/demangle/regression/cw-16.cc: Updated two
664         and added three tests.
666 2003-12-04  Benjamin Kosnik  <bkoz@redhat.com>
668         PR libstdc++/13284
669         * include/bits/stl_algo.h (__random_number): Remove.
670         (random_shuffle): Use rand, as permitted by DR 395.
671         * include/ext/algorithm: Same.
672         * linkage.m4 (GLIBCXX_CHECK_STDLIB_SUPPORT): Remove lrand48.
673         * acconfig.h: Same.
674         * crossconfig.m4: Remove HAVE_DRAND48, HAVE_LRAND48.
675         * config.h.in: Regenerated.
676         * configure: Same.
677         * aclocal.m4: Same.
678         
679 2003-12-04  Paolo Carlini  <pcarlini@suse.de>
681         PR libstdc++/12653
682         * include/std/std_bitset.h (operator>>): Implement resolution
683         of DR 303 [WP]: use widen('0') and widen('1').
684         * docs/html/ext/howto.html: Add an entry for DR 303.
686         * include/std/std_bitset.h (operator>>): Implement the common
687         requirements of formatted input functions (27.6.1.2.1).
689         * include/std/std_bitset.h (operator>>): Set the failbit when
690         nothing was extracted and _Nb != 0.
691         * testsuite/23_containers/bitset/input/1.cc: New.
693 2003-12-03  Paolo Carlini  <pcarlini@suse.de>
695         PR libstdc++/12791
696         * include/bits/locale_facets.tcc (time_get::_M_extract_num):
697         Rewrite, stop the parsing as soon as a digit cannot possibly
698         lead to a final number within the bounds; otherwise, simplify,
699         avoiding __ctype.is() and atoi().
700         * testsuite/22_locale/time_get/get_date/char/12791.cc: New.
701         * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: New.
703         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
704         Minor tweak: a 4-digit integer cannot be bigger than 9999.
706         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Use
707         type-correct wchar_t string literals.
708         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
709         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
710         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
711         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
713 2003-12-02  Paolo Carlini  <pcarlini@suse.de>
715         * include/bits/locale_facets.tcc (time_get::do_get_year):
716         Avoid using a basic_string and calling a full blown strtol
717         (via __convert_to_v) for simple 2 or 4 digits, base 10,
718         positive integers; simplify.
720 2003-12-02  Paolo Carlini  <pcarlini@suse.de>
722         * config/locale/gnu/monetary_members.cc
723         (money_base::_S_construct_pattern): For case 3: and 4:
724         exchanging 'if (__precedes)' and 'if (__space)' allows
725         to factor out a few more assignments.
727 2003-12-01  Benjamin Kosnik  <bkoz@redhat.com>
729         * include/bits/basic_ios.h (basic_ios::setstate): Revert.
730         * include/bits/istream.tcc: Only call setstate if __err != goodbit.
731         * include/bits/ostream.tcc: Same.
732         * testsuite/27_io/basic_ios/exceptions/char/2.cc: New.
733         
734         * testsuite/testsuite_io.h (__gnu_test::fail_streambuf): Make
735         internal buffer non-static.
737 2003-12-01  Benjamin Kosnik  <bkoz@redhat.com>
739         * docs/html/17_intro/C++STYLE: Add exception bits.
740         * include/bits/fstream.tcc: Add location info to exception strings.
742         * include/bits/stl_construct.h: Formatting tweaks.
744 2003-12-01  Paolo Carlini  <pcarlini@suse.de>
746         PR libstdc++/10378
747         * include/bits/allocator.h (allocator::construct): Implement
748         resolution of DR 402 [Ready] (in Revision 28).
749         * include/bits/allocator_traits.h (__allocator::construct):
750         Likewise.
751         * include/bits/stl_construct.h (_Construct): Likewise.
752         * testsuite/20_util/allocator_members.cc: Move to...
753         * testsuite/20_util/allocator/1.cc: ... here.
754         * testsuite/20_util/allocator/10378.cc: New.
755         * docs/html/ext/howto.html: Add an entry for DR 402.
757 2003-11-30  Paolo Carlini  <pcarlini@suse.de>
759         * config/locale/gnu/codecvt_members.cc (codecvt::do_in,
760         codecvt::do_length): More minor tweaks.
762 2003-11-30  Paolo Carlini  <pcarlini@suse.de>
764         * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
765         Minor stylistic tweak.
767 2003-11-30  Paolo Carlini  <pcarlini@suse.de>
769         * include/bits/locale_facets.tcc (num_put::do_put(..., bool)):
770         Minor tweaks, consistent with the style used in other facets.
772 2003-11-29  Paolo Carlini  <pcarlini@suse.de>
774         * include/bits/fstream.tcc (underflow): Minor tweaks in
775         preparation for libstdc++/13217.
777 2003-11-29  Paolo Carlini  <pcarlini@suse.de>
779         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc:
780         Tweak for a few small problems (fix timings, use VERIFY..)
782 2003-11-28  Paolo Carlini  <pcarlini@suse.de>
784         * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: Remove.
785         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13171-3.cc: New,
786         the original third testcase for libstdc++/13171 belong here.
788 2003-11-28  Paolo Carlini  <pcarlini@suse.de>
790         * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc:
791         Remove extraneous wchar_t lines.
792         
793 2003-11-27  Paolo Carlini  <pcarlini@suse.de>
795         PR libstdc++/11544
796         PR libstdc++/11603
797         * include/bits/fstream.tcc (underflow): Throw ios_base::failure
798         upon incomplete or invalid byte sequences in the file.
799         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-1.cc: New.
800         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-2.cc: New.
801         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: New.
803 2003-11-27  Paolo Carlini  <pcarlini@suse.de>
805         * include/std/std_streambuf.h (__copy_streambufs): Remove
806         the first, unused, basic_ios<> parameter.
807         * src/streambuf-inst.cc: Likewise.
808         * include/bits/streambuf.tcc: Likewise.
809         * include/bits/istream.tcc (operator>>(__streambuf_type*)):
810         Tweak accordingly the call.
811         * include/bits/ostream.tcc (operator<<(__streambuf_type*)):
812         Likewise.
814         * include/bits/streambuf.tcc (__copy_streambufs): Remove
815         redundant try/catch.
817 2003-11-26  Benjamin Kosnik  <bkoz@redhat.com>
819         PR libstdc++/9371
820         PR libstdc++/9546
821         PR libstdc++/10093
822         PR libstdc++/10095
823         * include/bits/basic_ios.h (basic_ios::setstate): Elide if goodbit.
824         (basic_ios::_M_setstate): Consolidate common error handling code.
825         * include/bits/basic_ios.tcc: Tweak.
826         * include/bits/fstream.tcc: Tweak.
827         * include/bits/istream.tcc: Use _M_setstate for common exception
828         handling. Move setstate calls after catch. 
829         (basic_istream::tellg): Check for exceptions thrown by streambuf
830         virtual functions.
831         (basic_istream::seekg): Same.
832         * include/bits/ostream.tcc: Same, but for ostream.
833         (basic_ostream::flush): Check for exceptions thrown by streambuf
834         virtual functions.
835         (basic_istream::tellp): Same.   
836         (basic_istream::seekp): Same.
837         * include/bits/locale_facets.tcc: Tweak.
838         * include/bits/streambuf.tcc: Tweak.
839         (__copy_streambufs): Propagate exceptions.
840         * testsuite/testsuite_io.h (fail_streambuf): New.
841         (fail_num_get): New.
842         (fail_num_put): New.
843         (facet_error): New.
844         (underflow_error): New.
845         (overflow_error): New.  
846         (positioning_error): New.       
847         * testsuite/27_io/basic_istream/exceptions/char/9561.cc: Tweak.
848         * testsuite/27_io/basic_istream/extractors_arithmetic/char/
849         exceptions_badbit_throw.cc, exceptions_failbit.cc,
850         exceptions_failbit_throw.cc: New.
851         * testsuite/27_io/basic_istream/extractors_other/char/
852         error_failbit.cc, exceptions_badbit_throw.cc,
853         exceptions_failbit_throw.cc, exceptions_null.cc: New.
854         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc: 
855         New.
856         * testsuite/27_io/basic_istream/tellg/char/exceptions_badbit_throw.cc:
857         New.
858         * testsuite/27_io/basic_ostream/flush/char/exceptions_badbit_throw.cc:
859         New.
860         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
861         exceptions_badbit_throw.cc, exceptions_failbit_throw.cc: New.
862         * testsuite/27_io/basic_ostream/inserters_other/char/
863         error_failbit.cc, exceptions_badbit_throw.cc,
864         exceptions_failbit_throw.cc, exceptions_null.cc: New.
865         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc: 
866         New.
867         * testsuite/27_io/basic_ostream/tellp/char/exceptions_badbit_throw.cc: 
868         New.
870 2003-11-26  Benjamin Kosnik  <bkoz@redhat.com>
872         PR libstdc++/12297
873         * include/bits/istream.tcc
874         (basic_istream::sentry::sentry): Set failbit and eofbit when eof.
875         * testsuite/27_io/basic_istream/sentry/char/12297.cc: New.
876         
877 2003-11-26  Paolo Carlini  <pcarlini@suse.de>
878             Petur Runolfsson  <peturr02@ru.is>
880         PR libstdc++/13171
881         * include/bits/fstream.tcc (imbue): Relax the conditions under
882         which the function succeeds: allow for two consecutive calls with
883         the same name; state dependent encodings are ok even after open
884         if at the beginning of the file; don't check seekoff return value
885         (pipes, cin, cout, etc...)
886         * testsuite/27_io/basic_filebuf/imbue/char/13171-1.cc: New.
887         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: New.
888         * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: New.
889         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: New.
890         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak comment.
891         * testsuite/27_io/basic_filebuf/imbue/char/3.cc: Likewise.
892         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Tweak comment.
893         * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: Likewise.
895         * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: More
896         correctly use the UTF-8 locale appearing in the PR.
898 2003-11-26  Paolo Carlini  <pcarlini@suse.de>
900         * include/bits/locale_facets.h
901         (__numpunct_cache<>::_M_cache): Avoid zeroing _M_grouping,
902         _M_truename and _M_falsename: the constructor always does
903         it immediately before the _M_cache call.
905 2003-11-25  Paolo Carlini  <pcarlini@suse.de>
907         * config/locale/gnu/codecvt_members.cc (codecvt::do_length):
908         Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
909         former is very fast, but stops if encounters a NUL.
910         (codecvt::do_out): Tweaks.
911         (codecvt::do_in): Tweaks, improve the code dealing with errors.
912         * testsuite/performance/wchar_t_length.cc: New.
914 2003-11-24  Paolo Carlini  <pcarlini@suse.de>
916         * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
917         Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
918         former is very fast, but stops if encounters a NUL.
919         (codecvt::do_out): Tweak.
920         * testsuite/performance/wchar_t_in.cc: New.
922 2003-11-24  Paolo Carlini  <pcarlini@suse.de>
924         * include/bits/locale_facets.h
925         (__numpunct_cache<>::_M_cache): Set _M_allocated at the beginning
926         in order to avoid memory leaks; simplify a bit.
928 2003-11-24  Benjamin Kosnik  <bkoz@redhat.com>
929         
930         * include/bits/streambuf_iterator.h (ostreambuf_iterator): Remove
931         non-standard throw specs.
932         * testsuite/24_iterators/istreambuf_iterator.cc: Split into...
933         * testsuite/24_iterators/istreambuf_iterator/1.cc
934         * testsuite/24_iterators/istreambuf_iterator/2.cc
935         * testsuite/24_iterators/istreambuf_iterator/2627.cc
936         * testsuite/24_iterators/ostreambuf_iterator.cc: Split into...
937         * testsuite/24_iterators/ostreambuf_iterator/1.cc
938         * testsuite/24_iterators/ostreambuf_iterator/2.cc
940         * testsuite/24_iterators/reverse_iterator/1.cc: Just compile,
941         don't link.
942         
943         * include/bits/allocator.h: Formatting tweak.
944         
945 2003-11-24  Paolo Carlini  <pcarlini@suse.de>
947         * src/locale_init.cc: Cosmetic reformatting.
949 2003-11-23  Paolo Carlini  <pcarlini@suse.de>
951         * include/bits/locale_facets.tcc (__add_grouping):
952         Cosmetic reformatting.
954 2003-11-23  Paolo Carlini  <pcarlini@suse.de>
956         * include/bits/locale_facets.tcc (_M_extract_float,
957         _M_extract_int): Remove a wrong comment and simplify
958         the corresponding code using char_traits::find().
960 2003-11-22  Paolo Carlini  <pcarlini@suse.de>
962         * config/locale/gnu/monetary_members.cc
963         (money_base::_S_construct_pattern): Factor out two assignments.
965 2003-11-22  Paolo Carlini  <pcarlini@suse.de>
967         * include/bits/istream.tcc (getline(basic_string<>&)):
968         Fix error in comment of the previous commit.
970 2003-11-22  Paolo Carlini  <pcarlini@suse.de>
972         PR libstdc++/12593
973         * include/bits/istream.tcc (operator>>(basic_string<>&),
974         getline(basic_string<>&)): Implement resolution of DR 91 [WP];
975         fix some minor issues with the exit conditions.
976         * docs/html/ext/howto.html: Add an entry for DR 91.
978 2003-11-21  Paolo Carlini  <pcarlini@suse.de>
980         * config/locale/gnu/monetary_members.cc
981         (money_base::_S_construct_pattern): Factor out an assignment.
983 2003-11-21  Paolo Carlini  <pcarlini@suse.de>
985         PR libstdc++/12882 (partial)
986         * acinclude.m4 (GLIBCXX_CHECK_LFS): Check fseeko64
987         and ftello64 too.
988         * include/ext/stdio_sync_filebuf.h (seekoff): Use fseeko64
989         and ftello64 if available.
990         * aclocal.m4: Regenerate.
991         * configure: Ditto.
993 2003-11-20  Benjamin Kosnik  <bkoz@redhat.com>
995         * include/debug/formatter.h: Use _Tp as template argument.
996         * src/debug.cc: Same, instantiate std::size_t.
997         
998 2003-11-20  Benjamin Kosnik  <bkoz@redhat.com>
1000         PR libstdc++/13109
1001         * include/debug/formatter.h (_Error_formatter::_M_format_word): New.
1002         * src/debug.cc (__gnu_debug): Format. 
1003         (_Error_formatter::_M_format_word): Define, use, instantiate.
1005 2003-11-20  Paolo Carlini  <pcarlini@suse.de>
1007         PR libstdc++/11602
1008         * config/locale/gnu/codecvt_members.cc (codecvt::do_out):
1009         Rewrite, using both wcsnrtombs and wcrtomb in a loop: the
1010         former is very fast, but stops if encounters a NUL.
1011         * testsuite/performance/wchar_t_out.cc: New, from the PR.
1013 2003-11-19  Paolo Carlini  <pcarlini@suse.de>
1015         * config/locale/gnu/codecvt_members.cc (do_out): If
1016         we can upper bound the total number of external chars
1017         to something smaller than __to_end - __to, avoid the
1018         temporary buffer, the memcopy and simplify the loop.
1019         * config/locale/generic/codecvt_members.cc (do_out):
1020         Likewise.
1022 2003-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
1024         * testsuite/lib/libstdc++.exp: Add DYLD_LIBRARY_PATH for darwin.
1025         * testsuite/libstdc++-dg/normal.exp: Add -multiply_defined suppress
1026         flag.
1028 2003-11-18  Jonathan Wakely  <redi@gcc.gnu.org>
1030         * docs/html/configopts.html, docs/html/debug.html,
1031         docs/html/documentation.html, docs/html/explanations.html,
1032         docs/html/install.html, docs/html/17_intro/contribute.html,
1033         docs/html/17_intro/howto.html, docs/html/17_intro/license.html,
1034         docs/html/18_support/howto.html, docs/html/19_diagnostics/howto.html,
1035         docs/html/20_util/howto.html, docs/html/21_strings/howto.html,
1036         docs/html/22_locale/codecvt.html, docs/html/22_locale/ctype.html,
1037         docs/html/22_locale/howto.html, docs/html/22_locale/locale.html,
1038         docs/html/22_locale/messages.html, docs/html/23_containers/howto.html,
1039         docs/html/24_iterators/howto.html, docs/html/25_algorithms/howto.html,
1040         docs/html/26_numerics/howto.html, docs/html/27_io/howto.html,
1041         docs/html/ext/howto.html, docs/html/ext/sgiexts.html: Add <link> tags.
1043 2003-11-18  Paolo Carlini  <pcarlini@suse.de>
1045         PR libstdc++/12868
1046         * include/bits/fstream.tcc (imbue): For encodings != -1 it's
1047         always ok to imbue a new locale, provided seekoff(0, cur, ...)
1048         doesn't fail, of course.
1049         (underflow): In order for the above to work, deal gracefully
1050         with _M_codecvt->in returning codecvt_base::error while 
1051         (__ilen = __iend - this->eback()) > 0: it just means __ilen
1052         correctly converted internal characters before an error.        
1053         * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: New.
1055 2003-11-17  Paolo Carlini  <pcarlini@suse.de>
1057         * include/bits/locale_facets.tcc: Fix typo in comment.
1059 2003-11-17  Paolo Carlini  <pcarlini@suse.de>
1061         * testsuite/22_locale/num_put/put/char/8.cc: New test,
1062         summarizing the discussion ensuing libstdc++/12988.
1063         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Ditto.
1065 2003-11-15  Paolo Carlini  <pcarlini@suse.de>
1067         * include/std/std_fstream.h: Tweak a comment.
1069 2003-11-15  Roger Sayle  <roger@eyesopen.com>
1071         * include/c_std/std_cmath.h: Don't import C99's float transcendentals
1072         into the __gnu_cxx::__c99_binding namespace.
1073         (acos, asin, atan, atan2, ceil, cosh, exp, floor, fmod, frexp,
1074         ldexp, log, log10, modf, pow, sinh, tan, tanh): Implement using
1075         GCC's math builtins, i.e. __builtin_foo.
1076         * libmath/stubs.c (acosf, acosl, asinf, asinl, atanf, atanl,
1077         ceilf, ceill, floorf, floorl, fmodf, fmodl, frexpf, frexpl,
1078         ldexpf, ldexpl, modff, modfl): Provide stub implementations.
1080 2003-11-14  Paolo Carlini  <pcarlini@suse.de>
1082         * testsuite/22_locale/locale/cons/12352.cc: Use
1083         __gnu_test::try_named_locale.
1085 2003-11-14  Paolo Carlini  <pcarlini@suse.de>
1087         * docs/html/ext/howto.html: Add entries for DR 63, 75
1088         and 305; tweak entries for DR 60 and 328.
1090 2003-11-13  Douglas Gregor  <gregod@cs.rpi.edu>
1092         * docs/html/debug.html: Users are allowed to specialize in
1093         namespace __gnu_debug, unlike in the Apple version of the debug
1094         mode. Clear up a confusing double-negative. Note that
1095         std::basic_string does provide extra debugging capabilities, but
1096         not safe iterators.
1097         * include/bits/basic_string.tcc: Make sure there's never an
1098         ambiguity when calling __is_null_pointer. 
1099         * include/debug/deque: (deque::erase) Properly handle invalidation
1100         when erasing at the end of the deque.
1101         * include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity. 
1102         (vector::clear): Set the guaranteed capacity to 0.
1103         * testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
1104         iterator invalidation when erasing at the end of the deque.
1106 2003-11-13  Paolo Carlini  <pcarlini@suse.de>
1107             Petur Runolfsson  <peturr02@ru.is>
1109         PR libstdc++/13007
1110         * include/bits/fstream.tcc (imbue): Don't touch the stored
1111         locale.
1112         * include/std/std_streambuf.h (imbue): According to the
1113         standard, base class version does nothing.
1114         (pubimbue): Store the locale.
1115         * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New.
1116         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New.
1117         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak.
1118         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
1119         * testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New.
1120         * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New.
1121         * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New.
1122         * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New.
1124 2003-11-13  Petur Runolfsson  <peturr02@ru.is>
1126         PR libstdc++/12594
1127         * include/bits/ostream.tcc
1128         (basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
1129         basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
1130         basic_ostream::operator<<(ios_base& (*)(ios_base&))):
1131         Implement the resolution of DR 60 (TC): These are not formatted
1132         output functions so don't construct sentry objects and don't
1133         catch exceptions.
1134         (basic_ostream::put, basic_ostream::write): Implement the
1135         resolution of DR 63 (TC) by catching exceptions and setting
1136         badbit.
1137         (basic_ostream::flush): Implement the resolution of DR 60 (TC):
1138         This is not an unformatted output function so don't construct
1139         a sentry object.
1140         * testsuite/testsuite_io.h (sync_streambuf): Define.
1141         * testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
1142         * testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
1143         * testsuite/27_io/basic_ostream/put/char/1.cc: New test.
1144         * testsuite/27_io/basic_ostream/write/char/1.cc: New test.
1145         
1146 2003-11-13  Paolo Carlini  <pcarlini@suse.de>
1148         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
1149         Fix, closely following the testcase included in the PR.
1150         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
1151         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
1152         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.
1154 2003-11-13  Jonathan Wakely <redi@gcc.gnu.org>
1156         * docs/html/17_intro/configury.html: XHTML tweak.
1158 2003-11-13  Jonathan Wakely <redi@gcc.gnu.org>
1160         * docs/html/debug_mode.html: XHTML fixes.
1162 2003-11-12  Benjamin Kosnik  <bkoz@redhat.com>
1164         * docs/html/debug_mode.html: Update.
1165         * docs/html/17_intro/TODO: Update.
1167 2003-11-12  Benjamin Kosnik  <bkoz@redhat.com>
1169         * include/bits/c++config: Move using directive...
1170         * include/debug/formatter.h: ...here.
1172 2003-11-12  Carlo Wood  <carlo@alinoe.com>
1174         PR libstdc++/12947
1175         * bits/demangle.h
1176         (_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS): Added.
1177         (_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Added.
1178         (session<Allocator>::next_peek() const): Added.
1179         (decode_non_negative_decimal_integer(string_type&)):
1180         Renamed from decode_decimal_integer(string_type&).
1181         (session<Allocator>::decode_nested_name):
1182         Decode <template_param> as well.
1183         (session<Allocator>::add_substitution):
1184         Handle <template-param> for <nested-name>'s.
1185         (enum xary_nt): Added.
1186         (struct entry_st): Added member `xary_nt type' instead of `bool unary'.
1187         (symbol_name_table_c): Updated for `entry_st::type' and additional
1188         operators (unary `operator+' and `sizeof(type)').
1189         (offset_table_c): Updated for new operators (causing a new hash map).
1190         (decode_operator_name): Match the updated hash map.
1191         (session<Allocator>::decode_expression):
1192         Support for `sizeof ([typename] type)' (st),
1193         dependent names (sr) and casting operator (cv).  Handle
1194         `entry_st::type'.  Handle _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
1195         and _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME.
1196         (session<Allocator>::decode_type_with_postfix):
1197         Support `extern "C"' function types (FY).
1198         * testsuite/demangle/regression/cw-16.cc: Added tests for the
1199         added functionality.
1200         * testsuite/demangle/regression/3111-2.cc: sizeof now has a space
1201         appended.
1203 2003-11-11  Paolo Carlini  <pcarlini@suse.de>
1205         PR libstdc++/12875
1206         * include/bits/fstream.tcc (setbuf): Don't do anything
1207         after open(), in particular don't discard data.
1208         (_M_allocate_internal_buffer): Tweak to not allocate memory
1209         in case the buffer is provided by the user via setbuf.
1210         * include/ext/stdio_filebuf.h: Tweak comment.
1211         * testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
1212         * testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
1213         * testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
1214         setbuf does nothing after open().
1215         * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
1217 2003-11-11  Doug Gregor  <gregod@cs.rpi.edu>
1219         * docs/html/debug.html: Document libstdc++ debug mode.
1220         * docs/html/debug_mode.html: Document libstdc++ debug mode design.
1221         * docs/html/test.html: Document how to test under debug mode.
1222         * docs/html/17_intro/howto.html: Document debug-mode macros.
1223         * include/Makefile.am: Install debug-mode headers.
1224         * src/Makefile.am: Include debug.cc.
1225         * include/bits/basic_string.tcc: 
1226           (basic_string::_S_construct): Fix NULL pointer check.
1227           (__is_null_pointer): New.
1228           Add precondition annotations.
1229         * include/bits/stream_iterator.h (istream_iterator,
1230         ostream_iterator): Added precondition annotations.
1231         * include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto.
1232         * include/bits/stl_queue.h (queue, priority_queue): Ditto.
1233         * include/bits/stl_stack.h (stack): Ditto.
1234         * include/bits/basic_string.h (basic_string): Ditto.
1235         * include/bits/basic_string.tcc (basic_string): Ditto.
1236         * include/std/std_memory.h (auto_ptr): Ditto.
1237         * include/std/std_valarray.h (valarray): Ditto.
1238         * include/bits/stl_algo.h: Added algorithm precondition
1239         annotations.
1240         * include/bits/stl_algobase.h: Added algorithm precondition
1241         annotations.
1242         * include/bits/stl_numeric.h: Ditto.
1243         * include/ext/algorithm: Added algorithm precondition
1244         annotations. 
1245         (__is_heap): Moved away from here.
1246         * include/bits/stl_heap.h: Added algorithm precondition
1247         annotations. 
1248         (__is_heap): Moved to the top of this file.
1249         (__is_heap): Added iterator range overloads.
1250         * testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up
1251         with changes in std_memory.h.
1252         * testsuite/23_containers/list/operators/4.cc: Don't verify
1253         performance guarantees when in debug mode.
1254         * testsuite/23_containers/bitset/invalidation/1.cc: New.
1255         * testsuite/23_containers/deque/invalidation/1.cc: New.
1256         * testsuite/23_containers/deque/invalidation/2.cc: New.
1257         * testsuite/23_containers/deque/invalidation/3.cc: New.
1258         * testsuite/23_containers/deque/invalidation/4.cc: New.
1259         * testsuite/23_containers/list/invalidation/1.cc: New.
1260         * testsuite/23_containers/list/invalidation/2.cc: New.
1261         * testsuite/23_containers/list/invalidation/3.cc: New.
1262         * testsuite/23_containers/list/invalidation/4.cc: New.
1263         * testsuite/23_containers/map/invalidation/1.cc: New.
1264         * testsuite/23_containers/map/invalidation/2.cc: New.
1265         * testsuite/23_containers/multimap/invalidation/1.cc: New.
1266         * testsuite/23_containers/multimap/invalidation/2.cc: New.
1267         * testsuite/23_containers/multiset/invalidation/1.cc: New.
1268         * testsuite/23_containers/multiset/invalidation/2.cc: New.
1269         * testsuite/23_containers/set/invalidation/1.cc: New.
1270         * testsuite/23_containers/set/invalidation/2.cc: New.
1271         * testsuite/23_containers/vector/invalidation/1.cc: New.
1272         * testsuite/23_containers/vector/invalidation/2.cc: New.
1273         * testsuite/23_containers/vector/invalidation/3.cc: New.
1274         * testsuite/23_containers/vector/invalidation/4.cc: New.
1275         * testsuite/25_algorithms/heap.cc: Don't verify
1276         performance guarantees when in debug mode.
1277         * include/debug/bitset: New.
1278         * include/debug/debug.h: New.
1279         * include/debug/deque: New.
1280         * include/debug/formatter.h: New.
1281         * include/debug/hash_map: New.
1282         * include/debug/hash_map.h: New.        
1283         * include/debug/hash_multimap.h: New.
1284         * include/debug/hash_set: New.
1285         * include/debug/hash_set.h: New.
1286         * include/debug/hash_multiset.h: New.   
1287         * include/debug/list: New.
1288         * include/debug/map: New.
1289         * include/debug/map.h: New.
1290         * include/debug/multimap.h: New.
1291         * include/debug/multiset.h: New.        
1292         * include/debug/safe_base.h: New.
1293         * include/debug/safe_iterator.h: New.
1294         * include/debug/safe_iterator.tcc: New.
1295         * include/debug/safe_sequence.h: New.
1296         * include/debug/set: New.
1297         * include/debug/set.h: New.     
1298         * include/debug/string: New.
1299         * include/debug/vector: New.
1300         * src/debug.cc: New.
1301         * config/linker-map.gnu: Add debug mode symbols.
1302         
1303 2003-11-11  Benjamin Kosnik  <bkoz@redhat.com>
1305         * src/string-inst.cc: Tweak namespaces.
1306         * src/misc-inst.cc: Same.
1307         * docs/html/debug.html: Edits.
1308         * config/link-map.gnu: Remove cruft.
1310         * include/bits/c++config: Add in namespace associations.
1311         * include/std/std_bitset.h: Adjust namespace to __gnu_norm,
1312         comment tweaks.
1313         * include/bits/deque.tcc: Same.
1314         * include/bits/list.tcc: Same.
1315         * include/bits/stl_bvector.h: Same.
1316         * include/bits/stl_deque.h: Same.
1317         * include/bits/stl_list.h: Same.
1318         * include/bits/stl_map.h: Same.
1319         * include/bits/stl_multimap.h: Same.
1320         * include/bits/stl_multiset.h: Same.
1321         * include/bits/stl_set.h: Same.
1322         * include/bits/stl_vector.h: Same.
1323         * include/bits/vector.tcc: Same.
1325         * include/std/std_algorithm.h: Remove markup comments.
1326         * include/std/std_functional.h: Same.
1327         * include/std/std_iterator.h: Same.
1328         * include/std/std_numeric.h: Same.
1329         * include/std/std_utility.h: Same.
1330         * include/bits/stl_queue.h: Formatting tweaks.
1331         * include/bits/stl_stack.h: Same.
1332         * include/std/std_deque.h: Include debugging version in debug mode.
1333         * include/std/std_list.h: Same.
1334         * include/std/std_map.h: Same.
1335         * include/std/std_set.h: Same.
1336         * include/std/std_vector.h: Same.       
1337         * include/std/std_queue.h: Use deque, vector.
1338         * include/std/std_stack.h: Same.
1340 2003-11-09  Paolo Carlini  <pcarlini@suse.de>
1342         * include/bits/locale_facets.tcc (_M_insert_int,
1343         _M_insert_float): Move a couple of vars inside an if block.
1345 2003-11-09  Paolo Carlini  <pcarlini@suse.de>
1347         PR libstdc++/12971
1348         * include/bits/locale_facets.tcc
1349         (money_put::do_put(..., long double)): Fix conversion
1350         specification as per DR 328 [WP].
1351         * testsuite/22_locale/money_put/put/char/12971.cc: Add.
1352         * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto.
1353         * docs/html/ext/howto.html: Add entry for DR 328.
1355 2003-11-08  Paolo Carlini  <pcarlini@suse.de>
1357         PR libstdc++/12967
1358         * include/bits/list.tcc (merge): Implement resolution of
1359         DR 300 [WP].
1360         * docs/html/ext/howto.html: Add entry for DR 300; tweak entry
1361         for DR 231.
1363         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
1364         Import R27.
1366 2003-11-07  Jonathan Wakely  <redi@gcc.gnu.org>
1368         * libsupc++/vec.cc: Conform to C++STYLE.
1370 2003-11-07  Carlo Wood  <carlo@alinoe.com>
1372         PR libstdc++/12736
1373         * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
1374         (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
1375         K, V, r and A qualifiers before processing them as a group.
1376         * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
1377         * testsuite/demangle/regression/cw-16.cc: New.
1379 2003-11-07  Robert Millan  <robertmh@gnu.org>
1381         * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
1382         * crossconfig.m4: Likewise.
1383         * configure: Regenerate.
1385 2003-11-07  Carlo Wood  <carlo@alinoe.com>
1387         * include/bits/demangle.h
1388         (qualifier_list<Allocator>::decode_qualifiers(string_type&,
1389         string_type&, bool member_function_pointer_qualifiers):
1390         Always separate the '[' of an array type with a space from
1391         what is left of it, except when that is the closing bracket
1392         of another array dimension.
1394 2003-11-07  Carlo Wood  <carlo@alinoe.com>
1396         * include/bits/demangle.h
1397         (qualifier_list<Allocator>::decode_qualifiers(string_type&,
1398         string_type&, bool) const): Made const.
1399         (qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
1400         (_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
1401         std::ostream& operator<<(std::ostream&, qualifier const&),
1402         std::ostream& operator<<(std::ostream&, qualifier_list const&),
1403         qualifier_list<Allocator>::decode_qualifiers(string_type&,
1404         string_type&, bool) const,
1405         session<Allocator>::decode_type_with_postfix(string_type&,
1406         string_type&, qualifier_list<Allocator>*))
1407         Added and/or changed debug-only hooks and code.
1409 2003-11-04  Jeffrey D. Oldham  <oldham@codesourcery.com>
1411         * libsupc++/vec.cc (__cxa_vec_delete2): If given a NULL pointer,
1412         immediately return.  This reflects a C++ ABI change 2003 Nov 03.
1413         (__cxa_vec_delete3): Likewise.
1414         
1415 2003-11-03  Petur Runolfsson  <peturr02@ru.is>
1417         PR libstdc++/12790
1418         * include/bits/fstream.tcc: Delete _M_last_overflowed.
1419         (basic_filebuf::basic_filebuf): Initialize _M_state_last.
1420         (basic_filebuf::open, basic_filebuf::close): Assign
1421         _M_state_beg to _M_state_cur and _M_state_last.
1422         (basic_filebuf::close): Call _M_terminate_output to handle
1423         unshift and flushing.
1424         (basic_filebuf::underflow): Assign _M_state_last, throw
1425         exception instead of calling abort when codecvt::max_length()
1426         is bad.
1427         (basic_filebuf::seekoff): Use _M_state_last when calling
1428         codecvt::length(), pass correct state to _M_seek.
1429         (basic_filebuf::seekpos): Pass __pos.state() to _M_seek.
1430         (basic_filebuf::_M_seek): Add __state_type parameter,
1431         set _M_state_cur correctly, store the resulting state in
1432         the return value and use _M_terminate_output to handle
1433         flushing and unshift.
1434         (basic_filebuf::_M_terminate_output): Flush contents of
1435         output buffer, if any, then call codecvt::unshift as
1436         needed and output the result.
1437         (basic_filebuf::sync): Move here, don't modify _M_writing
1438         or _M_reading.
1439         
1440         * include/std/std_fstream.h
1441         (basic_filebuf::_M_state_last): Declare it.
1442         (basic_filebuf::_M_last_overflowed): Delete.
1443         (basic_filebuf::_M_seek): Add __state_type parameter.
1444         (basic_filebuf::sync): Declare only.
1445         (basic_filebuf::_M_output_unshift): Delete.
1446         (basic_filebuf::_M_terminate_output): Declare it.
1447         
1448         * testsuite/testsuite_character.h:
1449         Define character class and state class plus char_traits and
1450         codecvt specializations for same for testing support for
1451         stateful encodings.
1452         
1453         * testsuite/27_io/basic_filebuf/close/12790-1.cc,
1454         * testsuite/27_io/basic_filebuf/close/char/12790-1.cc,
1455         * testsuite/27_io/basic_filebuf/close/char/12790-2.cc,
1456         * testsuite/27_io/basic_filebuf/close/char/12790-3.cc,
1457         * testsuite/27_io/basic_filebuf/close/char/12790-4.cc,
1458         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc,
1459         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc,
1460         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc,
1461         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc,
1462         * testsuite/27_io/basic_filebuf/open/12790-1.cc,
1463         * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc,
1464         * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc,
1465         * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc,
1466         * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc,
1467         * testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc,
1468         * testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc,
1469         * testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc,
1470         * testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc,
1471         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc,
1472         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc,
1473         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc,
1474         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc,
1475         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc,
1476         * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc,
1477         * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc,
1478         * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc,
1479         * testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc,
1480         * testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc,
1481         * testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc,
1482         * testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc,
1483         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc,
1484         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc,
1485         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc,
1486         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc,
1487         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc,
1488         * testsuite/27_io/basic_filebuf/sync/char/1.cc,
1489         * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc:
1490         New tests.
1492         * testsuite/27_io/basic_filebuf/3.cc,
1493         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc,
1494         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc,
1495         * testsuite/27_io/basic_fstream/3.cc,
1496         * testsuite/27_io/basic_ifstream/3.cc,
1497         * testsuite/27_io/basic_ofstream/3.cc:
1498         Use streamoff as off_type and fpos<state_type> as pos_type.
1500         * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc,
1501         * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc:
1502         Check that sync does *not* set _M_writing to false.
1504 2003-11-03  Anthony Green  <green@redhat.com>
1506         * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
1507         they're used.
1509 2003-11-03  Benjamin Kosnik  <bkoz@redhat.com>
1511         * include/bits/locale_facets.h (time_get::_M_extract_name): Add
1512         ctype argument. 
1513         * include/bits/locale_facets.tcc: Same, use it to allow
1514         capitalized names.
1515         
1516         * include/bits/fstream.tcc: Spacing tweak.
1517         * include/bits/istream.tcc: Same.
1518         * include/bits/ostream.tcc: Same.
1520 2003-10-30  Paolo Carlini  <pcarlini@suse.de>
1522         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
1523         __mod is only assigned, never used its value, remove it.
1525 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
1527         * include/bits/locale_facets.tcc (time_get::do_get_year):
1528         Absolutely avoid dereferencing end iterators.
1529         (time_put::put): Minor clean up.
1531         * include/bits/locale_facets.tcc: Cosmetic reformattings.
1533 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
1535         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1536         Revert the last commit, is not correct, sorry.
1537         
1538 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
1540         * config/locale/generic/c_locale.cc: Add back <cmath> and
1541         <cstdlib>.
1543         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1544         Clean up.
1546 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
1548         * include/bits/locale_facets.tcc (time_put::put): Absolutely
1549         avoid dereferencing end iterators; clean up.
1551         * include/bits/locale_facets.tcc (num_get::_M_extract_float,
1552         num_get::_M_extract_int): Minor tweak.
1554 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
1556         * include/bits/locale_facets.tcc: Remove some unnecessary
1557         includes.
1558         * config/locale/generic/c_locale.cc: Include <cerrno> here.
1559         * config/locale/gnu/c_locale.cc: Likewise.
1561 2003-10-28  Paolo Carlini  <pcarlini@suse.de>
1563         * include/bits/locale_facets.tcc
1564         (money_get<>::do_get(..., string_type&)): Absolutely avoid
1565         dereferencing end iterators; general clean up.
1567 2003-10-28  Paolo Carlini  <pcarlini@suse.de>
1569         * include/bits/locale_facets.tcc (time_get::_M_extract_num):
1570         Absolutely avoid dereferencing end iterators.
1571         (time_get::_M_extract_name): Likewise.
1573         * include/bits/locale_facets.tcc
1574         (time_get::_M_extract_via_format, case 'e'): Don't try to
1575         be smart wrt returning the right __beg in case of parse
1576         error, time_get::_M_extract_num must be fixed instead.
1578 2003-10-27  Paolo Carlini  <pcarlini@suse.de>
1580         PR libstdc++/12778
1581         * acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
1582         * aclocal.m4: Regenerate.
1583         * configure: Regenerate.
1585 2003-10-27  Benjamin Kosnik  <bkoz@redhat.com>
1586         
1587         * docs/html/17_intro/TODO: Add links.
1588         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1589         Uncomment.
1590         
1591 2003-10-27  Paolo Carlini  <pcarlini@suse.de>
1593         PR libstdc++/12750
1594         * include/bits/locale_facets.tcc
1595         (time_get::_M_extract_via_format): Deal with code 'e'.
1596         * testsuite/22_locale/time_get/get_date/char/12750.cc: New.
1597         * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.
1599         * include/bits/locale_facets.tcc
1600         (time_get::_M_extract_via_format): Tweak to absolutely avoid
1601         dereferencing end iterators.
1603         * include/bits/locale_facets.h (__verify_grouping):
1604         Const-ify second parameter.
1605         * include/bits/locale_facets.tcc (__verify_grouping): Ditto.
1606         * src/locale-inst.cc (__verify_grouping): Ditto.
1608 2003-10-27  Paolo Carlini  <pcarlini@suse.de>
1610         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1611         Various things: 1- Avoid absolutely end iterator dereferences;
1612         2- Improve performance-wise the code skipping leading zeros;
1613         3- Fix two bugs wrt early bail out in case of parsing errors
1614         (see testcases); 4- General clean up.
1615         (num_get::_M_extract_int): Likewise, except 3-. Additionally,
1616         use __builtin_expect to favor base 10 inputs.
1617         * testsuite/22_locale/num_get/get/char/7.cc: New.
1618         * testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.
1620 2003-10-26  Paolo Carlini  <pcarlini@suse.de>
1622         * testsuite/22_locale/money_put/put/char/1.cc: Clean up.
1623         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.
1625 2003-10-25  Paolo Carlini  <pcarlini@suse.de>
1627         * include/bits/locale_facets.tcc (num_get::_M_extract_int):
1628         __pos in only incremented, never used its value, remove it.
1630 2003-10-24  Robert Millan  <robertmh@gnu.org>
1632         * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
1633         and knetbsd*-gnu.
1634         * aclocal.m4:  Regenerated.
1635         * configure:  Regenerated.
1637 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1639         * include/bits/locale_facets.tcc (money_get::do_get(...,
1640         long double&): Properly size the temporary buffer.
1641         * testsuite/22_locale/money_get/get/char/11.cc: New.
1642         * testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.
1644         * include/bits/locale_facets.tcc (num_put::_M_group_int,
1645         num_put::_M_group_float, money_put::do_put(..., const
1646         string_type&), collate::do_compare, collate::do_transform):
1647         Prefer basic_string::data() to c_str() when the '\0'
1648         terminator is not really needed.
1650 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1652         * include/bits/locale_facets.tcc (__verify_grouping):
1653         Prefer '=' to an unnecessary '&='.
1655 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1657         * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1658         Tweak my fix for libstdc++/12657.
1660 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1662         * include/bits/locale_facets.tcc (money_get::do_get(...,
1663         string_type&): Minor tweak to the previous commit.
1665 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1667         * include/bits/locale_facets.tcc (money_get::do_get(...,
1668         string_type&): Disregard the previous commit: doesn't hurt but
1669         doesn't accomplish anything useful either. This is the right
1670         one, speeding up greatly the function in case of early fail.
1672 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1674         * include/bits/locale_facets.tcc (money_get::do_get(...,
1675         string_type&): Move an if block, thus minimizing the amount
1676         of code processed anyway when __tmp_units.size() == 0.
1678 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1680         * include/bits/locale_facets.tcc
1681         (time_get<>::_M_extract_via_format): Deal with case 'C' too,
1682         equivalent to 'y'.
1684 2003-10-23  Benjamin Kosnik  <bkoz@redhat.com>
1686         * docs/html/documentation.html: Add a pointer to the doxygen style
1687         guide.
1688         * docs/html/17_intro/TODO: Update.
1689         * docs/html/test.html: Add instructions for running a subset of
1690         tests, update.
1692 2003-10-23  Paolo Carlini  <pcarlini@suse.de>
1694         * include/bits/locale_facets.tcc (money_get<>::do_get(...,
1695         string_type&)): Use find_first_not_of to strip leading
1696         zeros; if __tmp_units == "0" never prefix it with '-';
1697         always fail if __tmp_units is empty.
1698         * testsuite/22_locale/money_get/get/char/10.cc: New.
1699         * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
1701 2003-10-23  Phil Edwards  <phil@codesourcery.com>
1703         * config/os/vxworks/ctype_noninline.h:  Adjust ctor to match
1704         2003-10-21 change.
1706 2003-10-22  Paolo Carlini  <pcarlini@suse.de>
1708         * include/bits/locale_facets.tcc (__int_to_char): Remove
1709         the const int parameter.
1710         (_M_insert_int): Update caller.
1711         * src/locale-inst.cc (__int_to_char): Update instantiations.    
1713 2003-10-22  Benjamin Kosnik  <bkoz@redhat.com>
1715         * include/bits/locale_facets.h: Correct byname facets for "C"
1716         locale.
1717         * config/locale/generic/ctype_members.cc: Same.
1718         * config/locale/generic/messages_members.h: Same.
1719         * config/locale/gnu/ctype_members.cc: Same.
1720         * config/locale/gnu/messages_members.h: Same.
1721         * include/bits/codecvt.h: Same.
1722         * src/ctype.cc: Same.
1723         * testsuite/22_locale/codecvt_byname/1.cc: New.
1724         * testsuite/22_locale/collate/1.cc: Edit.
1725         * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
1726         * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
1727         * testsuite/22_locale/ctype/1.cc: Derivation tests.
1728         * testsuite/22_locale/ctype/11844.cc: Move...
1729         * testsuite/22_locale/ctype_base/11844.cc: ...here.
1730         * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
1731         * testsuite/22_locale/ctype_byname/1.cc: Name.
1732         * testsuite/22_locale/messages_byname/1.cc: New.
1733         * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
1734         * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
1735         * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
1736         * testsuite/22_locale/numpunct/1.cc: Edit.
1737         * testsuite/22_locale/numpunct_byname/2.cc: Move...
1738         * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
1739         * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
1740         * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
1742 2003-10-22  Paolo Carlini  <pcarlini@suse.de>
1744         PR libstdc++/8610
1745         * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
1746         checking for the availability of int64_t.
1747         (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
1748         * configure.ac: Call here.
1749         * acconfig.h: Add undef for the corresponding symbols.
1750         * config/io/basic_file_stdio.cc (__basic_file<char>::open):
1751         Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
1752         (__basic_file<char>::seekoff): Likewise, call lseek64 when
1753         available, otherwise lseek, checking the __off parameter.
1754         * include/bits/postypes.h: Typedef __streamoff_base_type
1755         to int64_t if available, otherwise long long.
1756         * aclocal.m4: Regenerate.
1757         * config.h.in: Likewise.
1758         * configure: Likewise.
1760         * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
1761         Use AC_TRY_LINK instead of AC_TRY_COMPILE.
1762         
1763 2003-10-22  Paolo Carlini  <pcarlini@suse.de>
1765         PR libstdc++/12657
1766         * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1767         Implement resolution of DR 292 (WP).
1768         * docs/html/ext/howto.html: Add entry for DR 292.
1770 2003-10-21  Benjamin Kosnik  <bkoz@redhat.com>
1772         * include/ext/mt_allocator.h: Change include to gthr.h.
1773         * include/ext/rope: Same. Add _Refcount_base definitions.
1774         * include/ext/pool_allocator.h: Adjust namespaces.
1775         * include/bits/stl_threads.h (_Refcount_base): Move.
1776         Put remaining into namespace __gnu_cxx.
1777         
1778 2003-10-21  Benjamin Kosnik  <bkoz@redhat.com>
1780         PR libstdc++/9858
1781         * include/bits/locale_facets.h (ctype<char>): Remove
1782         __ctype_abstract_base.
1783         (ctype<char>::do_is): Remove.
1784         (ctype<char>::do_scan_is): Remove.
1785         * src/ctype.cc: Same. Inline the rest.
1786         * testsuite/22_locale/ctype/is/char/9858.cc: New.
1787         * config/os/aix/ctype_noninline.h: Adjust ctor.
1788         * config/os/bsd/freebsd/ctype_noninline.h: Same.
1789         * config/os/bsd/netbsd/ctype_noninline.h: Same.
1790         * config/os/djgpp/ctype_noninline.h: Same.
1791         * config/os/generic/ctype_noninline.h: Same.
1792         * config/os/gnu-linux/ctype_noninline.h: Same.
1793         * config/os/hpux/ctype_noninline.h: Same.
1794         * config/os/irix/irix5.2/ctype_noninline.h: Same.
1795         * config/os/irix/irix6.5/ctype_noninline.h: Same.
1796         * config/os/mingw32/ctype_noninline.h: Same.
1797         * config/os/newlib/ctype_noninline.h: Same.
1798         * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
1799         * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
1800         * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
1801         * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
1802         * config/os/windiss/ctype_noninline.h: Same.
1804 2003-10-21  Paolo Carlini  <pcarlini@suse.de>
1806         * src/locale.cc: Tweak a comment.
1807         * src/localename.cc: Move a comment.
1809 2003-10-20  Benjamin Kosnik  <bkoz@redhat.com>
1811         PR libstdc++/10081
1812         * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
1813         * testsuite_hooks.cc: Same.
1814         * 22_locale/numpunct/members/pod/1.cc: Edit.
1815         * 22_locale/numpunct/members/pod/2.cc: Same.
1816         * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
1817         * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
1818         * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
1819         * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
1820         * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
1821         * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
1822         * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
1823         * 27_io/basic_istream/sentry/pod/1.cc: New.
1824         * 27_io/basic_ostream/sentry/pod/1.cc: New.
1825         * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
1826         * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
1828 2003-10-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1830         * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
1831         of external _MIPS_SIM_ABI32.
1833 2003-10-20  Phil Edwards  <phil@codesourcery.com>
1835         * configure.ac:  Fix comment typo.
1836         * configure.host:  Add vxworks to host_os switch.
1837         * crossconfig.m4:  Remove old commented os_include_dir variables
1838         left over from autotools transition.
1839         (*-vxworks):  New stanza.
1840         (*-windiss):  Add missing symbols.
1841         * configure:  Regenerate.
1842         * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
1843         config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
1844         New files.
1845         * config/os/windiss/os_defines.h:  Define __C9X__.
1847 2003-10-19  David Edelsohn  <edelsohn@gnu.org>
1849         PR other/12506
1850         * configure.host (aix4,aix*): Define os_include_dir to os/generic.
1852 2003-10-18  Andreas Tobler  <a.tobler@schweiz.ch>
1854         * src/locale.cc (locale::_S_initialize): Re-apply workaround a
1855         confusion of the use of the gthr API when __gthread_active_p()
1856         returns true.
1858 2003-10-17  Benjamin Kosnik  <bkoz@redhat.com>
1860         * src/Makefile.am: Add new files.
1861         * src/Makefile.in: Regenerate.
1862         * src/globals.cc: Split into..
1863         * src/globals_io.cc: New.
1864         * src/globals_locale.cc: New.
1865         * src/ios.cc: Split into...
1866         * src/ios_init.cc: New.
1867         * src/ios_locale.cc: New.
1868         * src/locale-inst.cc: Split into..
1869         * src/wlocale-inst.cc: New.
1870         * src/locale-misc-inst.cc: New.
1871         * src/locale.cc, src/localename: Split into...
1872         * src/locale_facets.cc: New.
1873         * src/locale_init.cc: New.
1874         * src/wstring-inst.cc: Add copyright info.
1876 2003-10-16  Petur Runolfsson  <peturr02@ru.is>
1878         PR libstdc++/11450
1879         PR libstdc++/11543
1880         PR libstdc++/12065
1881         * config/io/basic_file_stdio.cc (__basic_file::seekoff):
1882         Change return value from streampos to streamoff.
1883         (__basic_file::seekpos): Delete.
1884         * config/io/basic_file_stdio.h: Same.
1885         * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
1886         * include/Makefile.am (bits_headers): Add bits/postypes.h.
1887         * include/bits/char_traits.h: Include bits/postypes.h instead of
1888         bits/fpos.h.
1889         * include/bits/fstream.tcc (basic_filebuf::open,
1890         basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
1891         values, use == and != instead.
1892         (basic_filebuf::_M_seek): Use explicit conversion from streamoff
1893         to pos_type.
1894         (basic_filebuf::imbue):  Don't use ! on pos_type values, use
1895         == instead. Don't use __check_facet(_M_codecvt) unless is_open().
1896         * include/bits/postypes.h: New file.
1897         Add __streamoff_base_type typedef, streamsize.
1898         (streamoff, streampos, wstreampos): Define typedefs, with
1899         streamoff defined as...
1900         (streamoff): New class. Document implementation defined
1901         aspects.
1902         (fpos): New implementation. Document implementation defined
1903         aspects.
1904         * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
1905         explicit conversion from pos_type to off_type.
1906         * include/std/std_iosfwd.h: Include bits/postypes.h instead
1907         of bits/fpos.h.
1908         * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
1909         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
1910         * testsuite/27_io/fpos/11450.cc: New test.
1911         * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
1912         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
1913         * testsuite/27_io/types/3.cc: New test.
1915 2003-10-16  Benjamin Kosnik  <bkoz@redhat.com>
1917         * configure.host: Remove fpos_include_dir.
1918         * configure.ac: Remove FPOS_INC_SRCDIR.
1919         * configure: Regenerate.
1920         * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
1921         * aclocal.m4: Regenerate.
1922         * include/Makefile.am (host_headers): Remove fpos.h.
1923         (bits_headers): Add postypes.h.
1924         * include/Makefile.in: Regenerate.
1925         * config/os/gnu-linux/fposh: Remove.
1926         * config/os/generic/fpos.h: Remove.
1928         * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
1929         * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
1930         * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
1931         * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
1932         * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
1933         * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
1934         * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
1935         * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
1936         * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
1937         * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
1938         * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
1939         * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
1940         * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
1941         * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
1942         * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
1943         * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1944         * testsuite/27_io/objects/char/10.cc: Same.
1946 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
1948         * src/locale.cc (locale::locale(const char*)): ... one
1949         more comparison missed in the previous commit.
1951 2003-10-16  Benjamin Kosnik  <bkoz@redhat.com>
1953         * acconfig.h: Add HAVE_DRAND48.
1954         * crossconfig.m4: Remove ISATTY.
1955         * aclocal.m4: Regenerated.
1956         * config.h.in: Regenerated.
1957         * configure: Regenerated.
1958         
1959 2003-10-16  Bernardo Innocenti  <bernie@develer.com>
1961         * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
1962         __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
1963         Document SMP safeness of asm macros.
1965 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
1967         * src/locale.cc (locale::locale(const char*)): Tweak
1968         a couple of comparisons to use basic_string operators.
1970 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
1972         PR libstdc++/12540
1973         * config/locale/gnu/monetary_members.cc
1974         (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
1975         Don't leak memory if new throws.
1976         * src/locale.cc (locale::locale(const char*)): In order not
1977         to leak memory in case new throws, use a basic_string type
1978         for __res too and avoid strdup.
1980 2003-10-14  Jeff Bailey  <jbailey@nisa.net>
1981         
1982         PR libstdc++/12562
1983         * crossconfig.m4: Share the config between *-linux* and *-gnu*.
1984         * configure: Regenerate.
1986 2003-10-14  Carlo Wood  <carlo@alinoe.com>
1988         PR libstdc++/12600
1989         * include/bits/demangle.h (session<Allocator>::
1990           decode_unqualified_name(string_type& output)): Fail on a
1991           <operator-name> when decoding <template-argument>.
1992         * testsuite/demangle/regression/cw-15.cc: New.
1994 2003-10-14  Paolo Carlini  <pcarlini@unitus.it>
1996         PR libstdc++/11480
1997         * include/bits/stl_algo.h (unique): Fix.
1998         * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
1999         * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
2000         * testsuite/25_algorithms/unique/2.cc: New.
2002 2003-10-14  Paolo Carlini  <pcarlini@unitus.it>
2004         * src/localename.cc (_M_replace_categories, M_replace_facet):
2005         Const-ify a couple of variables.
2007 2003-10-14  Petur Runolfsson  <peturr02@ru.is>
2008             Andreas Tobler  <a.tobler@schweiz.ch>
2010         * src/locale.cc (locale::_S_initialize): Workaround a confusion
2011         of the use of the gthr API when __gthread_active_p() returns true.
2013 2003-10-12  Petur Runolfsson  <peturr02@ru.is>
2014             Paolo Carlini  <pcarlini@unitus.it>
2016         PR libstdc++/11460
2017         * src/strstream.cc (pbackfail): Fix to use to_int_type.
2018         * testsuite/backward/11460.cc: New, from the PR.
2020 2003-10-12  Paolo Carlini  <pcarlini@unitus.it>
2022         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
2023         Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
2024         * include/bits/basic_string.tcc: Likewise.
2025         * include/bits/ios_base.h: Likewise.
2026         * include/bits/istream.tcc: Likewise.
2027         * include/bits/locale_facets.tcc: Likewise.
2028         * include/bits/ostream.tcc: Likewise.
2029         * include/bits/stl_function.h: Likewise.
2030         * include/bits/stl_multiset.h: Likewise.
2031         * include/bits/stl_pair.h: Likewise.
2032         * include/bits/stl_set.h: Likewise.
2033         * include/bits/streambuf_iterator.h
2034         * include/std/std_iosfwd.h: Likewise.
2035         * include/std/std_istream.h: Likewise.
2036         * include/std/std_sstream.h: Likewise.
2037         * include/std/std_streambuf.h: Likewise.
2038         * src/ios.cc: Likewise.
2039         * include/bits/c++config:
2040         Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
2041         * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
2042         dg-error directive due to removal of a blank line.
2043         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
2045 2003-10-12  Andreas Tobler  <a.tobler@schweiz.ch>
2046             Paolo Carlini  <pcarlini@unitus.it>
2048         PR libstdc++/11844/11740 (cont)
2049         * config/os/generic/ctype_inline.h (ctype<char>::is):
2050         Generically, use a bitmasksize of 15 (instead of 10);
2051         Fix the logic to actually return (M & m) != 0 as per
2052         22.2.1.1.2.
2054 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
2056         * crossconfig.m4 (*-uclinux*): New target.
2057         * configure: Regenerate.
2059 2003-10-10  Paolo Carlini  <pcarlini@unitus.it>
2061         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
2062         Avoid unnecessarily calling __builtin_alloca and dealing
2063         explicitly with width() smaller than zero.
2064         (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
2065         const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
2066         const char*), operator<<(basic_ostream<char, _Traits>&,
2067         const char*), operator<<(basic_ostream, const basic_string&)):
2068         Likewise.
2070 2003-10-09  Benjamin Kosnik  <bkoz@redhat.com>
2072         * config/linker-map.gnu: Make more *_type_info bits visible.
2073         Move new/delete bits back into GLIBCXX space.
2075         * include/bits/locale_classes.h: Move _M_id out of line, so that
2076         locale::id::_S_highwater can be removed from the export list.
2077         * src/locale.cc (locale::id::_M_id): Define.
2078         
2079 2003-10-09  Andreas Tobler  <a.tobler@schweiz.ch>
2081         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
2082         SPARC64.
2084 2003-10-09  Paolo Carlini  <pcarlini@unitus.it>
2086         PR libstdc++/11844
2087         * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
2088         to conform to the requirements of 22.2.1.
2089         * config/os/bsd/freebsd/ctype_base.h: Likewise.
2090         * config/os/djgpp/ctype_base.h: Likewise.
2091         * config/os/generic/ctype_base.h: Likewise.
2092         * config/os/gnu-linux/ctype_base.h: Likewise.
2093         * config/os/hpux/ctype_base.h: Likewise.
2094         * config/os/irix/irix6.5/ctype_base.h: Likewise.
2095         * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
2096         * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
2097         * testsuite/22_locale/ctype/11844.cc: New.
2099         * config/locale/generic/ctype_members.cc (do_is):
2100         Generically, use a bitmasksize of 15 (instead of 10), since
2101         we don't know the numerical encoding of the various categories
2102         in the underlying /usr/include/ctype.h.
2104 2003-10-09  Benjamin Kosnik  <bkoz@redhat.com>
2106         * src/string-inst.cc: Prune.
2107         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2108         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2109         
2110 2003-10-09  Petur Runolfsson  <peturr02@ru.is>
2112         * src/io-inst.cc: Don't include iostream.
2113         * include/bits/ios_base.h (ios_base::failure): Use string.
2114         * src/Makefile.am: Add ios_failure.cc.
2115         * src/Makefile.in: Regenerate.
2116         * src/ios.cc: Move ios_base::failure definitions to...
2117         * src/ios_failure.cc: ...here. New.
2119 2003-10-09  Petur Runolfsson  <peturr02@ru.is>
2121         PR libstdc++/9874
2122         * include/bits/fstream.tcc (basic_filebuf::seekoff):
2123         Move code needed for both seekoff and seekpos...
2124         (basic_filebuf::_M_seek): ...here. New function.
2125         (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
2126         * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
2127         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
2129         * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
2131 2003-10-08  Paolo Carlini  <pcarlini@unitus.it>
2133         * include/bits/locale_facets.tcc: More minor cosmetic
2134         changes and const-ifications of some variables.
2136 2003-10-07  Paolo Carlini  <pcarlini@unitus.it>
2138         * include/bits/locale_facets.tcc: Minor cosmetic changes
2139         and const-ifications of some variables.
2141         * include/bits/locale_facets.tcc
2142         (money_get::do_get(..., string_type&)): Simplify an if-else.
2144 2003-10-06  Paolo Carlini  <pcarlini@unitus.it>
2146         PR libstdc++/11740
2147         * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
2148         Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
2149         * config/locale/generic/ctype_members.cc: Same.
2150         * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
2152 2003-10-06  Paolo Carlini  <pcarlini@unitus.it>
2154         * include/bits/locale_facets.tcc (__pad<>::_S_pad):
2155         Improve performance-wise: avoid one traits::copy, avoid
2156         the __builtin_alloca, streamline.
2158 2003-10-05  Paolo Carlini  <pcarlini@unitus.it>
2160         * include/bits/locale_facets.tcc
2161         (num_put::do_put(..., bool)): Prefer ?: to if-else.
2162         (time_get::_M_extract_name): Qualify min with std::.
2163         (__pad<>::_S_pad): Constify two variables; simplify an
2164         if-else statement factoring out some code.
2166         * include/bits/locale_facets.tcc: Minor cosmetic changes.
2168 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
2170         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
2171         Constify a couple of variables.
2172         (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
2173         ++__beg to *__beg++.
2175 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
2176             Petur Runolfsson  <peturr02@ru.is>
2178         * include/ext/stdio_sync_filebuf.h: Don't include the whole
2179         <fstream>, only <streambuf> and <cstdio>.
2181 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
2183         PR libstdc++/12206
2184         * include/bits/fstream.tcc (imbue): In case a codecvt facet
2185         is not available, set _M_codecvt = 0.
2186         * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
2188 2003-10-02  Harald Boehme  <boehme@informatik.hu-berlin.de>
2190         PR libstdc++/12451
2191         * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
2192         
2193 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
2195         * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
2196         * src/locale.cc: Define.
2197         * src/localename.cc: Use it.
2198         * config/locale/generic/time_members.h: Same.
2199         * config/locale/gnu/messages_members.h: Same.
2200         * config/locale/gnu/time_members.h: Same.
2202 2003-10-02  Paolo Carlini  <pcarlini@unitus.it>
2204         PR libstdc++/12232
2205         * include/bits/fstream.tcc (seekoff): Ignore the openmode
2206         argument; simplify.
2207         * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
2208         seekpos): Remove the openmode argument.
2209         * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
2210         seekpos): Remove redundant placeholder for the openmode argument.
2211         * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
2212         * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
2213         * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
2214         * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
2215         * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
2217 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
2219         * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
2220         (locale::facet::_S_get_c_locale): Same.
2221         
2222 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
2224         * config/linker-map.gnu: Export _S_get_c_locale instead of
2225         _S_c_locale object.
2227 2003-10-02  Petur Runolfsson  <peturr02@ru.is>
2229         * config/locale/generic/c_locale.cc
2230         (category_names, locale::_S_categories): Const qualify.
2231         * config/locale/gnu/c_locale.cc: Same.
2232         * config/locale/generic/time_members.h (__timepunct::__timepunct):
2233         Copy string contents before assigning to _M_name_timepunct,
2234         qualify strcpy and strlen with std::.
2235         * config/locale/gnu/time_members.h: Same.
2236         * config/locale/gnu/messages_members.h (messages::messages):
2237         Copy string contents before assigning to _M_name_messages,
2238         qualify strcpy and strlen with std::.
2239         * config/os/gnu-linux/ctype_noninline.h
2240         (ctype<char>::classic_table()): Don't call locale::classic().
2241         * include/bits/locale_classes.h
2242         (locale::_S_categories): Const qualify. 
2243         (locale::_S_once, locale::_S_initialize_once,
2244         locale::facet::_S_once, locale::facet::_S_initialize_once,
2245         locale::facet::_S_get_c_locale): Declare.
2246         (locale::_S_initialize): Don't define.
2247         (locale::facet::_S_c_locale): Make private.
2248         (locale::facet::_S_c_name): Same, const qualify.
2249         (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
2250         parameters, add throw() specifier.
2251         * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
2252         messages::_M_name_messages): Const qualify.
2253         * src/locale.cc
2254         (locale::_S_once, locale::facet::_S_once): Define.
2255         (locale::classic): Move initialization code...
2256         (locale::_S_initialize_once): ...here.  
2257         (locale::_S_initialize): Call _S_initialize_once through
2258         __gthread_once.
2259         (locale::facet::_S_initialize_once): Initialize _S_c_locale.
2260         (locale::facet::_S_get_c_locale): Call _S_initialize_once through
2261         __gthread_once before returning _S_c_locale.
2262         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
2263         Drop unused parameters, add throw() specifier, don't initialize
2264         locale::facet::_S_c_locale and _S_c_name.
2265         
2266         * config/locale/generic/messages_members.h:
2267         Replace _S_c_locale with _S_get_c_locale().
2268         * config/locale/gnu/c_locale.cc: Same.
2269         * config/locale/gnu/messages_members.h: Same.
2270         * config/locale/gnu/numeric_members.cc: Same.
2271         * config/locale/gnu/time_members.cc: Same.
2272         * config/os/gnu-linux/ctype_noninline.h: Same.
2273         * include/bits/locale_facets.h: Same.
2274         * include/bits/locale_facets.tcc: Same.
2275         * src/codecvt.cc: Same.
2276         * src/ctype.cc: Same.
2278 2003-10-02  Carlo Wood  <carlo@alinoe.com>
2280         * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
2281         Decode symbols that start with _GLOBAL_[ID]_ differently: the
2282         trailing part ends with a terminating zero and is not necessarily an
2283         encoding.
2284         * src/demangle.cc (): Same.
2285         * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
2287 2003-10-02  Paolo Carlini  <pcarlini@unitus.it>
2289         * testsuite/22_locale/locale/cons/12438.cc: Use
2290         __gnu_test::try_named_locale("").
2292 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2294         * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
2295         (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
2296         instead of drand48.
2297         * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
2298         * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
2299         HAVE_DRAND48.
2300         * config.h.in, configure: Regenerate.
2301         * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
2302         lrand48 use.
2304 2003-10-01  Nathan Myers  <ncm@cantrip.org>
2306         * include/bits/locale_facets.tcc (time_put::put): Avoid
2307         expensive *__s++, in favor of *__s, ++__s.
2309 2003-10-01  Paolo Carlini  <pcarlini@unitus.it>
2311         * include/bits/locale_facets.tcc (time_put::put): Minor
2312         tweak to the previous commit.
2314 2003-10-01  Paolo Carlini  <pcarlini@unitus.it>
2316         PR libstdc++/12439
2317         * include/bits/locale_facets.tcc (time_put::put): Deal
2318         with the three issues pointed out by the PR.
2319         * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
2320         * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
2321         * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
2322         * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
2323         * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
2325 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
2327         * include/bits/stl_algo.h: Minor cosmetic reformattings.
2329 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
2331         * include/bits/stl_algo.h (search_n): Tweak, to spare the
2332         first --__n.
2334 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
2336         * testsuite/22_locale/locale/cons/12352.cc: Explicitly
2337         qualify exception name.
2339 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
2341         PR libstdc++/12438
2342         * include/bits/locale_facets.tcc (locale::combine): Don't
2343         leak memory if _M_replace_facet throws.
2344         * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
2346         * include/bits/locale_classes.h (locale::locale(const locale&,
2347         _Facet*)): Tweak, use consistently _M_remove_reference.
2349 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
2351         PR libstdc++/12352 (cont)
2352         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
2353         Don't leak __cloc; don't leak if any of the _M_init_facet(...)
2354         calls fail.
2355         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
2356         (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
2357         !_M_caches, !_M_names.
2359 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2361         * configure.host: Handle Solaris 2.5 micro releases explicitly.
2362         Remove wildcards from Solaris 2.6, 7-9: there were no
2363         micro releases.
2364         Treat Solaris 10 and up like 7-9.
2366 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
2368         * include/bits/stl_algo.h (search_n): Improve the previous
2369         fix as suggested by Martin.
2371 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
2373         PR libstdc++/12296
2374         * include/bits/istream.tcc (peek): Set eofbit if sgetc
2375         returns eof.
2376         * testsuite/27_io/basic_istream/peek/char/12296.cc:
2377         New, from the PR.
2379 2003-09-29  Nathan Myers  <ncm@cantrip.org>
2380             Paolo Carlini  <pcarlini@unitus.it>
2382         PR libstdc++/11400
2383         * include/bits/stl_algo.h (search_n):
2384         Use iterator_traits<>::difference_type for __n.
2385         * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
2387 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
2389         * testsuite/22_locale/locale/cons/12352.cc:
2390         Use __attribute__((unused)) for test.
2392 2003-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
2394         * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either 
2395         "Son" or "So" as abbreviated name for Sunday in de_DE locale.
2396         * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
2398 2003-09-26  Brad Spencer  <spencer@infointeractive.com>
2400         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
2401         Explicitly qualify exceptions.
2402         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
2403         * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
2404         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2405         * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
2406         
2407 2003-09-25  Paolo Carlini  <pcarlini@unitus.it>
2409         PR libstdc++/12352
2410         * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
2411         size_t)): Don't leak if memory allocations for _M_facets,
2412         _M_caches, and _M_names fail.
2413         (locale::_Impl::_Impl(const char*, size_t)): Ditto.
2414         (locale::_Impl::_M_replace_categories(const _Impl*,
2415         category)): Ditto.
2416         (locale::_Impl::_M_install_facet(const locale::id*,
2417         const facet*)): Ditto.
2418         * include/bits/locale_classes.h (locale::locale(const locale&,
2419         _Facet*)): Don't leak memory.
2420         * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
2422         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
2423         bool)): Qualify with std:: strcpy, tweak.
2424         * include/bits/locale_classes.h
2425         (locale::_Impl::_M_check_same_name): Qualify strcmp.
2427 2003-09-25  Brad Spencer  <spencer@infointeractive.com>
2429         PR libstdc++/6072
2430         * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
2431         wcstof, iswblank.       
2432         * aclocal.m4: Regenerate.
2433         * config.h.in: Regenerate.
2434         * configure: Regenerate.
2435         * crossconfig.m4: Add in wchar_t bits for solaris crosses.
2436         * config/io/basic_file_stdio.cc: Guard unistd.h.
2437         * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
2438         * include/c_std/std_cwchar.h: Same.
2439         * include/c_std/std_cwctype.h: Same.
2440         
2441 2003-09-25  Benjamin Kosnik  <bkoz@redhat.com>
2443         PR libstdc++/11065
2444         * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
2445         * config/locale/generic/ctype_members.cc: Same.
2446         * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
2447         * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
2449         * config/os/generic/ctype_inline.h: Update.
2450         
2451 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
2453         * src/Makefile.am (version_dep): New variable.
2454         (libstdc___la_DEPENDENCIES): Use it to add dependency on
2455         libstdc++-symbol.ver only when using symbol versioning.
2456         * src/Makefile.in: Regenerate.
2458 2003-09-23  Benjamin Kosnik  <bkoz@redhat.com>
2460         * include/bits/locale_facets.tcc: Tweak to avoid warnings.
2461         * testsuite/testsuite_hooks.h: Same.
2462         * testsuite/*/*.cc: Same.
2464 2003-09-22  Petur Runolfsson  <peturr02@ru.is>
2466         * include/bits/istream.tcc (basic_istream::read,
2467         basic_istream::readsome, basic_istream::putback,
2468         basic_istream::unget, operator>>(basic_istream, CharT)):
2469         Avoid redundant setstate(failbit) calls when sentry::operator bool()
2470         returns false.
2472 2003-09-22  Carlo Wood  <carlo@alinoe.com>
2474         PR libstdc++/12365
2475         * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
2476         char const*, int, int)):  Remove unused identifier
2477         cv_qualifier for overloaded constructor.
2479 2003-09-18  Benjamin Kosnik  <bkoz@redhat.com>
2481         PR libstdc++/11504
2482         * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
2483         WARN_FLAGS, remove -Wno-format.
2484         * aclocal.m4: Regenerate.
2485         * configure: Regenerate.
2487 2003-09-18  Petur Runolfsson  <peturr02@ru.is>
2489         * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
2490         * config/io/basic_file_stdio.h: Same.
2491         * include/std/std_fstream.h (__ctype_type): Delete.
2492         * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
2493         
2494 2003-09-17  Benjamin Kosnik  <bkoz@redhat.com>
2496         PR libstdc++/12239
2497         * configure.host (abi_baseline_pair): Error out on solaris2
2498         configurations without a minor version number.
2500 2003-09-13  Phil Edwards  <phil@codesourcery.com>
2502         * docs/doxygen/run_doxygen:  Clear GENERATE_TAGFILE entirely
2503         if man pages are on.
2504         * docs/doxygen/user.cfg.in:  And here.
2506 2003-09-10  Daniel Jacobowitz  <drow@mvista.com>
2507             Andreas Jaeger <aj@suse.de>
2509         PR libstdc++/12189
2510         * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
2511         abi_check if cross compiling.
2512         * aclocal.m4: Regenerated.
2513         * configure: Regenerated.
2515 2003-09-10  Jeffrey D. Oldham  <oldham@codesourcery.com>
2517         * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
2518         NULL, return NULL.  This reflects a C++ ABI change 2003 Sep 05.
2519         (__cxa_vec_new3): Likewise.
2521 2003-09-10  Petur Runolfsson  <peturr02@ru.is>
2523         * include/bits/fstream.tcc (basic_filebuf::seekoff):
2524         Use codecvt::length to handle variable-width stateless encodings
2525         correctly.
2526         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
2527         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
2529 2003-09-10  Alan Modra  <amodra@bigpond.net.au>
2531         * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
2532         rather than or'ing.
2534 2003-09-09  Alan Modra  <amodra@bigpond.net.au>
2536         * configure: Regenerate.
2538 2003-09-09  David Edelsohn  <edelsohn@gnu.org>
2540         * src/ios.cc (ios_base::Init::Init): Remove unnecessary
2541         qualifier from _S_synced_with_stdio.
2543 2003-09-09  Bernardo Innocenti  <bernie@develer.com>
2545         * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
2547 2003-09-04  Petur Runolfsson  <peturr02@ru.is>
2549         PR libstdc++/9028
2550         * include/bits/fstream.tcc
2551         (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
2552         (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
2553         _M_ext_buf_size, _M_ext_next and _M_ext_end.
2554         (basic_filebuf::underflow): Handle variable-width stateless
2555         encodings (codecvt::encoding() == 0), including UTF-8.
2556         * include/std/std_fstream.h (basic_filebuf):
2557         Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
2558         * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
2559         * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
2560         * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
2561         * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
2562         * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
2563         * testsuite/27_io/objects/wchar_t/12.cc: New test.
2564         * testsuite/27_io/objects/wchar_t/13.cc: New test.
2566 2003-09-04  Jonathan Wakely  <redi@gcc.gnu.org>
2568         * docs/html/faq/index.html: Note that a namespace alias can't be
2569         used when specialising templates in extension namespace.
2570         * docs/html/faq/index.txt: Regenerate.
2572 2003-09-03  Petur Runolfsson  <peturr02@ru.is>
2574         PR libstdc++/12048
2575         * include/ext/stdio_sync_filebuf.h
2576         (stdio_sync_filebuf::_M_unget_buf): Declare it.
2577         (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
2578         (stdio_sync_filebuf::uflow): Store the returned character in
2579         _M_unget_buf.
2580         (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
2581         _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
2582         (stdio_sync_filebuf<char>::xsgetn): Store last read character in
2583         _M_unget_buf, if any, else eof().
2584         (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
2585         _M_unget_buf, if any, else eof().
2586         * testsuite/27_io/objects/char/12048.cc: Rename to...
2587         * testsuite/27_io/objects/char/12048-1.cc: ...this.
2588         * testsuite/27_io/objects/char/12048-2.cc: New test.
2589         * testsuite/27_io/objects/char/12048-3.cc: New test.
2590         * testsuite/27_io/objects/char/12048-4.cc: New test.
2591         * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
2592         * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
2593         * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
2594         * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
2595         * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
2596         * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
2597         * testsuite/ext/stdio_sync_filebuf_char.cc
2598         (test02, test03, test04, test05): New tests.
2599         * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
2600         (test02, test03, test04, test05): New tests.
2602 2003-09-03  Petur Runolfsson  <peturr02@ru.is>
2604         * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
2605         stringbuf or strstreambuf. Fix typos.
2607 2003-09-02  Phil Edwards  <phil@codesourcery.com>
2609         * acinclude.m4 (GLIBCXX_ENABLE_HOSTED):  #define _GLIBCXX_HOSTED
2610         appropriately.
2611         * config.h.in:  Add _GLIBCXX_HOSTED.
2612         * libsupc++/eh_term_handler.cc:  Test it here; initialize
2613         __terminate_handler to std::abort if freestanding.
2614         * aclocal.m4, configure:  Regenerated.
2615         * docs/html/configopts.html:  Document --disable-hosted-libstdcxx.
2617 2003-08-29  Nathan Myers  <ncm@cantrip.org>
2618         
2619         PR libstdc++/11990      
2620         * include/bits/locale_facets.tcc (__pad): delete dead code.
2622 2003-08-28  Alan Modra  <amodra@bigpond.net.au>
2624         * configure.ac: Test $with_cross_host against $build_alias, not $build.
2625         * configure: Regenerate.
2627 2003-08-27  Petur Runolfsson  <peturr02@ru.is>
2629         * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
2630         * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
2632 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
2634         * Makefile.am:  Remove trailing whitespace.  Remove needless
2635         "foo = @foo@" assignments.  Replace direct uses of @foo@ with $(foo).
2636         * include/Makefile.am:  Likewise.
2637         * libmath/Makefile.am:  Likewise.
2638         * libsupc++/Makefile.am:  Likewise.
2639         * po/Makefile.am:  Likewise.
2640         * src/Makefile.am:  Likewise.
2641         * testsuite/Makefile.am:  Likewise.
2643         * Makefile.in, include/Makefile.in, libmath/Makefile.in,
2644         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2645         testsuite/Makefile.in:  Regenerated.
2647 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
2649         * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES):  Change quoting of
2650         includedir.
2651         * aclocal.m4, configure:  Regenerate.
2653 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
2655         * acinclude.m4: Include no-executables.m4.
2656         * configure.ac: Uncomment GCC_NO_EXECUTABLES.
2657         * aclocal.m4: Regenerated.
2658         * configure: Regenerated.
2660 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
2662         * acinclude.m4: Don't call AC_ISC_POSIX.
2663         * aclocal.m4: Regenerated.
2664         * configure: Regenerated.
2666 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
2668         * acinclude.m4 (GLIBCXX_CONDITIONAL):  New macro.  Wrap
2669         AM_CONDITIONAL.  Replace all calls to AM_CONDITIONAL with this one.
2670         (GLIBCXX_ENABLE_HOSTED):  New macro, sets new variable is_hosted,
2671         used elsewhere in this file.
2672         (GLIBCXX_EVALUATE_CONDITIONALS):  New macro...
2673         * configure.ac:  ...called here to expand all conditionals.
2674         * Makefile.am:  Conditionalize SUBDIRS on GLIBCXX_HOSTED.
2675         * include/Makefile.am:  Remove redundant gxx_include_dir assignment.
2676         (install-freestanding-headers):  New target, a subset of
2677         install-headers.  Conditionalize install-data-local on GLIBCXX_HOSTED.
2679         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2680         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2681         src/Makefile.in, testsuite/Makefile.in:  Regenerated.
2683 2003-08-26  Phil Edwards  <pme@gcc.gnu.org>
2685         * docs/doxygen/run_doxygen:  Shell fixes.  Remove hardcoded local
2686         pathnames from generated tag file.
2688 2003-08-26  Phil Edwards  <pme@gcc.gnu.org>
2690         * Makefile.am:  Add comment.
2691         * acinclude.m4 (GLIBCXX_CONFIGURE):  Set new glibcxx_SUBDIRS and
2692         SUBDIRS variables.
2693         * configure.ac:  Use them both here, instead of hardcoded lists.
2695         * fragment.am:  Add STAMP varaible.
2696         * include/Makefile.am:  Cosmetic whitespace cleanup.  Use $(LN_S)
2697         instead of @LN_S@.
2698         (stamp-*):  Move file creation rule outside of 'if' branches to
2699         ensure the stamp-* files are actually updated.  Use $(STAMP).
2700         * src/Makefile.am:  Remove now-nonexistant variable.
2701         * libsupc++/Makefile.am:  Likewise.  Snap the assignment chain
2702         for -prefer-pic.
2703         * po/Makefile.am:  Include same fragment as all the others.
2705         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2706         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in:  Regenerated.
2708 2003-08-26  Loren J. Rittle  <ljrittle@acm.org>
2710         * testsuite/data/cin_unget-1.txt: New.
2711         * testsuite/27_io/objects/char/12048.cc: New.
2713 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
2715         * config/os/hpux/os_defines.h: Unconditionally define
2716         _GLIBCXX_GTHREAD_USE_WEAK to 0.
2718 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
2720         * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
2721         crosses to Darwin targets.
2722         * configure: Regenerate.
2724 2003-08-19  Petur Runolfsson  <peturr02@ru.is>
2726         * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
2728 2003-08-17  Phil Edwards  <pme@gcc.gnu.org>
2730         * configure.ac:  GCC_NO_EXECUTABLES was supposed to be commented
2731         in the patch from 3 minutes ago.  Boy, is my face red.
2732         * configure:  At least I remembered to regenerate this.
2734 2003-08-17  Phil Edwards  <pme@gcc.gnu.org>
2736         * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES):  Remove LIBMATH_INCLUDES
2737         and LIBSUPCXX_INCLUDES.  Re-purpose TOPLEVEL_INCLUDES to refer to
2738         things from the top level.
2739         * configure.ac (GLIBCXX_IS_NATIVE):  Determine earlier and re-order.
2740         Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
2741         (currently unused).  Strip the fake-VPATH shell fragment from
2742         automake-generated rules, if present.
2743         * linkage.m4:  Add comment.
2745         * fragment.am:  New file, containing factored-out common settings.
2746         (AM_CPPFLAGS):  Absorb the deprecated INCLUDES variable contents.
2747         * Makefile.am:  Include fragment.am.  Remove common variables.
2748         * include/Makefile.am:  Likewise.
2749         * libmath/Makefile.am:  Likewise.
2750         * libsupc++/Makefile.am:  Likewise.
2751         * po/Makefile.am:  Likewise.  Print rules during check.
2752         * src/Makefile.am:  Likewise.
2753         * testsuite/Makefile.am:  Likewise.
2755         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2756         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2757         src/Makefile.in, testsuite/Makefile.in:  Regenerate.
2759 2003-08-11  John Levon  <levon@movementarian.org>
2761         * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
2762         remaining places for the name change from GLIBCPP_FORCE_NEW
2763         to GLIBCXX_FORCE_NEW
2765 2003-08-11  Benjamin Kosnik  <bkoz@redhat.com>
2767         * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
2768         typedefs to num_*.
2769         * include/bits/basic_ios.tcc: Same.
2770         * include/bits/istream.tcc: Same.
2771         * include/bits/locale_facets.h: Same.
2772         * include/bits/ostream.tcc: Same.
2773         * include/std/std_istream.h: Same.
2774         * include/std/std_ostream.h: Same.
2775         * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
2777         * include/ext/rope: Remove build warning.
2779 2003-08-11  Andreas Jaeger  <aj@suse.de>
2781         * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
2782         to make SMP-safe.
2783         * include/Makefile.in: Regenerated.
2785 2003-08-11  Phil Edwards  <pme@gcc.gnu.org>
2787         * acinclude.m4 (GLIBCXX_CONFIGURE):  Unprecious CC and CFLAGS
2788         when calling AC_PROG_CC.
2789         * aclocal.m4, configure:  Regenerate.
2791 2003-08-11  Phil Edwards  <pme@gcc.gnu.org>
2793         * acinclude.m4:  Properly quote variable which will be expanded
2794         inside makefiles.  Use CXX instead of CC to extract compiler info.
2795         * configure.ac (AC_INIT):  Use the new 4-arg form to finally get the
2796         correct form in PACKAGE.
2797         * aclocal.m4, configure:  Regenerate.
2799 2003-08-08  Benjamin Kosnik  <bkoz@redhat.com>
2801         * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
2802         (check-abi-verbose): Same.
2803         * testsuite/testsuite_performance.h (report_performance): Same.
2805 2003-08-08  Loren J. Rittle  <ljrittle@acm.org>
2807         * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
2809 2003-08-07  Doug Gregor  <dgregor@apple.com>
2811         * include/bits/char_traits.h (char_traits::not_eof): Match operand
2812         types in ? :.
2814 2003-08-07  Bernardo Innocenti  <bernie@develer.com>
2816         PR libstdc++/11784
2817         * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
2818         Replace variants with new BSET-based version.
2820 2003-08-07  Carlo Wood  <carlo@alinoe.com>
2822         * include/bits/demangle.h: Do not use cctype functions that depend
2823         on locale.
2825 2003-08-05  Phil Edwards  <pme@gcc.gnu.org>
2827         * configure.in:  Rename...
2828         * configure.ac:  ...to this.
2829         * docs/html/17_intro/porting.texi:  Update name.
2831         * docs/html/17_intro/porting.html:  Regenerate.
2832         * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2833         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2834         testsuite/Makefile.in:  Regenerate (picks up new dependancy).
2836 2003-08-05  Phil Edwards  <pme@gcc.gnu.org>
2838         * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS):  Put down the crack
2839         pipe, open the window to let out the fumes, redo the option-handling
2840         logic to properly execute the detection test.
2841         * aclocal.m4, configure:  Regenerate.
2843 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
2845         Convert to new autotools.
2846         * acconfig.h:  Update with correct names.
2847         * configure.host (ATOMICITYH):  Rename to atomicity_include_dir.
2848         (qnx6.[12]*):  'q' comes before 's', not after 'w'.
2849         * configure.in:  Update.  Split hardcoded cross-configury settings
2850         out to...
2851         * crossconfig.m4:  ...here.  New file.  Contents untouched.
2852         * acinclude.m4:  Reorganize and rewrite as needed.  Split large
2853         chunks out to...
2854         * linkage.m4:  ...here.  New file.  Math and stdlib linkage tests.
2855         Contents untouched.
2856         * scripts/testsuite_flags.in:  Update.
2858         * Makefile.am:  Remove unneeded AUTOMAKE_OPTIONS settings and other
2859         variables (already generated by automake).
2860         * include/Makefile.am:  Ditto.
2861         * libmath/Makefile.am:  Ditto.
2862         * libsupc++/Makefile.am:  Ditto.
2863         * po/Makefile.am:  Ditto.
2864         * src/Makefile.am:  Ditto.
2866         * aclocal.m4:  Regenerate using new versions.
2867         * config.h.in:  Ditto.
2868         * configure:  Ditto.
2869         * Makefile.in:  Ditto.
2870         * include/Makefile.in:  Ditto.
2871         * libmath/Makefile.in:  Ditto.
2872         * libsupc++/Makefile.in:  Ditto.
2873         * po/Makefile.in:  Ditto.
2874         * src/Makefile.in:  Ditto.
2875         * testsuite/Makefile.in:  Ditto.
2877 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
2879         * po/libstdc++.pot:  Re-extract/regenerate.
2881 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
2883         * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
2884         Remove unneeded variable assignments.  Leave them for automake.
2885         * testsuite/lib/libstdc++-v3.exp:  Rename...
2886         * testsuite/lib/libstdc++.exp:  ...to this.  Adjust function names
2887         accordingly.
2888         * testsuite/libstdc++-v3.dg/dg.exp:  Rename...
2889         * testsuite/libstdc++-dg/normal.exp:  ...to this.  Adjust function
2890         names accordingly.
2892 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
2894         * docs/doxygen/guide.html:  run_doxygen uses bash.
2895         * docs/doxygen/mainpage.html:  We'll be shipping tag files.
2896         * docs/doxygen/run_doxygen:  Tweaks and improvements.
2897         * docs/doxygen/user.cfg.in:  Set GENERATE_TAGFILE.
2898         * docs/html/install.html:  Update autoconf/automake requirements.
2899         * docs/html/test.html:  Add section describing DejaGNU support.
2900         * docs/html/17_intro/confdeps.dot:  New file, generates...
2901         * docs/html/17_intro/confdeps.png:  ...this new file.
2902         * docs/html/Makefile:  Generated here.
2903         * docs/html/17_intro/configury.html:  New file.
2905 2003-07-31  Phil Edwards  <pme@gcc.gnu.org>
2907         * testsuite/lib/libstdc++-v3-dg.exp:  Rename...
2908         * testsuite/lib/libstdc++-v3.exp:  ...to this.
2909         * testsuite/libstdc++-v3.dg/dg.exp:  No special case needed now.
2911 2003-07-31  Doug Gregor  <dgregor@apple.com>
2913         Add user specialization tests.
2914         * testsuite/23_containers/deque/1.cc: New.
2915         * testsuite/23_containers/list/1.cc: New.
2916         * testsuite/23_containers/map/1.cc: New.
2917         * testsuite/23_containers/multimap/1.cc: New.
2918         * testsuite/23_containers/multiset/1.cc: New.
2919         * testsuite/23_containers/set/1.cc: New.
2920         * testsuite/23_containers/vector/1.cc: New.
2922 2003-07-31  Benjamin Kosnik  <bkoz@redhat.com>
2924         Reshuffle 23_containers testsuite.
2925         * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
2926         bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
2927         list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
2928         map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
2929         set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
2930         vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
2931         vector_resize.cc: Split into...
2932         * 23_containers/bitset/cons/1.cc: New.
2933         * 23_containers/bitset/cons/6282.cc: New.
2934         * 23_containers/bitset/count/6124.cc: New.
2935         * 23_containers/bitset/operations/1.cc: New.
2936         * 23_containers/bitset/operations/2.cc: New.
2937         * 23_containers/bitset/test/1.cc: New.
2938         * 23_containers/bitset/to_ulong/1.cc: New.
2939         * 23_containers/deque/cons/1.cc: New.
2940         * 23_containers/deque/cons/2.cc: New.
2941         * 23_containers/deque/operators/1.cc: New.
2942         * 23_containers/list/capacity/1.cc: New.
2943         * 23_containers/list/cons/1.cc: New.
2944         * 23_containers/list/cons/2.cc: New.
2945         * 23_containers/list/cons/3.cc: New.
2946         * 23_containers/list/cons/4.cc: New.
2947         * 23_containers/list/cons/5.cc: New.
2948         * 23_containers/list/cons/6.cc: New.
2949         * 23_containers/list/cons/7.cc: New.
2950         * 23_containers/list/cons/8.cc: New.
2951         * 23_containers/list/cons/9.cc: New.
2952         * 23_containers/list/modifiers/1.cc: New.
2953         * 23_containers/list/modifiers/2.cc: New.
2954         * 23_containers/list/modifiers/3.cc: New.
2955         * 23_containers/list/operators/1.cc: New.
2956         * 23_containers/list/operators/2.cc: New.
2957         * 23_containers/list/operators/3.cc: New.
2958         * 23_containers/list/operators/4.cc: New.
2959         * 23_containers/map/insert/1.cc: New.
2960         * 23_containers/map/operators/1.cc: New.
2961         * 23_containers/map/operators/1_neg.cc: New.
2962         * 23_containers/multiset/insert/1.cc: New.
2963         * 23_containers/priority_queue/members/7161.cc: New.
2964         * 23_containers/queue/members/7157.cc: New.
2965         * 23_containers/set/operators/1_neg.cc: New.
2966         * 23_containers/stack/members/7158.cc: New.
2967         * 23_containers/vector/bool/1.cc: New.
2968         * 23_containers/vector/bool/6886.cc: New.
2969         * 23_containers/vector/capacity/1.cc: New.
2970         * 23_containers/vector/capacity/2.cc: New.
2971         * 23_containers/vector/capacity/8230.cc: New.
2972         * 23_containers/vector/cons/1.cc: New.
2973         * 23_containers/vector/cons/2.cc: New.
2974         * 23_containers/vector/cons/3.cc: New.
2975         * 23_containers/vector/cons/4.cc: New.
2976         * 23_containers/vector/cons/6513.cc: New.
2977         * 23_containers/vector/element_access/1.cc: New.
2978         * 23_containers/vector/modifiers/1.cc: New.
2979         * 23_containers/vector/modifiers/2.cc: New.
2980         * 23_containers/vector/resize/1.cc: New.
2982 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2984         * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
2985         dg-options.
2986         * testsuite/thread/pthread2.cc: Likewise.
2987         * testsuite/thread/pthread3.cc: Likewise.
2988         * testsuite/thread/pthread4.cc: Likewise.
2989         * testsuite/thread/pthread5.cc: Likewise.
2990         * testsuite/thread/pthread6.cc: Likewise.
2991         * testsuite/thread/pthread7-rope.cc: Likewise.
2993 2003-07-30  Phil Edwards  <pme@gcc.gnu.org>
2995         * include/bits/c++config:  Partial reversion (comment placement) of
2996         previous patch.
2998 2003-07-30  Benjamin Kosnik  <bkoz@redhat.com>
3000         * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
3001         (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
3002         (_GLIBCXX_AT_AT): Remove.
3003         (__USE_MALLOC): Remove.
3004         * include/std/std_fstream.h: Modify.
3005         * include/bits/basic_ios.h: Same.
3006         * include/bits/valarray_array.h: Same.
3007         * include/c_std/std_cmath.h: Same.
3008         * include/c_std/cmath.tcc: Same.
3009         * include/std/std_vector.h: Same.
3010         * include/std/std_string.h: Same.
3011         * include/std/std_stack.h: Same.
3012         * include/std/std_queue.h: Same.
3013         * include/std/std_list.h: Same.
3014         * include/std/std_deque.h: Same.
3015         * include/std/std_streambuf.h: Same.
3016         * include/std/std_sstream.h: Same.
3017         * include/std/std_ostream.h: Same.
3018         * include/std/std_istream.h: Same.
3019         * include/bits/valarray_array.tcc: Same, format.
3021         * include/c/std_cctype.h: Fix include guards.
3022         * include/c/std_cerrno.h: Same.
3023         * include/c/std_cfloat.h: Same.
3024         * include/c/std_climits.h: Same.
3025         * include/c/std_clocale.h: Same.
3026         * include/c/std_cmath.h: Same.
3027         * include/c/std_csetjmp.h: Same.
3028         * include/c/std_csignal.h: Same.
3029         * include/c/std_cstdarg.h: Same.
3030         * include/c/std_cstddef.h: Same.
3031         * include/c/std_cstdio.h: Same.
3032         * include/c/std_cstdlib.h: Same.
3033         * include/c/std_cstring.h: Same.
3034         * include/c/std_ctime.h: Same.
3035         * include/c/std_cwchar.h: Same.
3036         * include/c/std_cwctype.h: Same.
3037         * include/c_std/cmath.tcc: Same.
3038         * include/c_std/std_cmath.h: Same.
3040 2003-07-30  Gawain Bolton  <gp.bolton@computer.org>
3042         PR libstdc++/11504.
3043         * include/bits/stl_tree.h: Replace C-style casts with C++-style
3044         casts.  Changes to avoid casting away constness.  Eliminate
3045         _Rb_tree_base_iterator class.  Change _Rb_tree_iterator to use
3046         initialization lists.  Move out implementation of __black_count()
3047         to...
3048         * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
3049         Rename_Rb_tree_base_iterator::_M_increment() to
3050         _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
3051         _Rb_tree_decrement.
3052         * config/linker-map.gnu: Add and change symbols here.
3054 2003-07-30  Jonathan Wakely  <redi@gcc.gnu.org>
3056         * docs/html/22_locale/howto.html: Use locale::classic() instead
3057         of locale("C").
3059 2003-07-28  Benjamin Kosnik  <bkoz@redhat.com>
3061         * testsuite/testsuite_hooks.h: Remove list include.
3062         (func_callback): Define as unique type, not std::list.
3063         Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
3064         * testsuite/libstdc++-v3.dg/dg.exp: Same.
3065         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
3066         * testsuite/23_containers/bitset_ctor.cc:
3067         * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
3068         * testsuite/18_support/numeric_limits.cc: Same.
3069         * testsuite/21_strings/basic_string/append/char/1.cc: Same.
3070         * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
3071         * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
3072         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
3073         * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
3074         * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
3075         * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
3076         * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
3077         * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
3078         * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
3079         * testsuite/21_strings/basic_string/find/char/1.cc: Same.
3080         * testsuite/21_strings/basic_string/find/char/2.cc: Same.
3081         * testsuite/21_strings/basic_string/find/char/3.cc: Same.
3082         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
3083         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
3084         * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
3085         * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
3086         * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
3087         * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
3088         * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
3089         * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
3090         * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
3091         * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
3092         * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
3093         * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
3094         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
3095         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
3096         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
3097         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
3098         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
3099         * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
3100         * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
3101         * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
3102         * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
3103         * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
3104         * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
3105         * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
3106         * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
3107         * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
3108         * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
3109         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
3110         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
3111         * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
3112         * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
3113         * testsuite/23_containers/bitset_ctor.cc: Same.
3114         * testsuite/23_containers/bitset_shift.cc: Same.
3115         * testsuite/23_containers/vector_ctor.cc: Same.
3116         * testsuite/23_containers/vector_element_access.cc: Same.
3117         * testsuite/24_iterators/istreambuf_iterator.cc: Same.
3118         * testsuite/24_iterators/iterator.cc: Same.
3119         * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
3120         * testsuite/25_algorithms/lower_bound.cc: Same.
3121         * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
3122         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
3123         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
3124         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
3125         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
3126         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
3127         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
3128         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
3129         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
3130         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
3131         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
3132         Same.
3134 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
3136         * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
3137         docs/html/test.html, docs/html/17_intro/headers_cc.txt,
3138         docs/html/17_intro/howto.html, docs/html/ext/howto.html:  Change
3139         GLIBCPP to GLIBCXX (and explain as needed).
3141 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
3143         * README:  Update.
3145 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
3147         * testsuite/22_locale/messages/members/char/1.cc,
3148         testsuite/22_locale/messages/members/char/2.cc,
3149         testsuite/22_locale/messages/members/char/3.cc,
3150         testsuite/22_locale/messages_byname/1.cc:  Update comment regarding
3151         the origin of LOCALEDIR.
3152         * testsuite/lib/libstdc++-v3.exp:  New file.
3154 2003-07-25  Benjamin Kosnik  <bkoz@redhat.com>
3156         * include/bits/char_traits.h: Update copyright, tweak.
3157         * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
3158         std types.
3160 2003-07-24  Matt Austern  <austern@apple.com>
3162         * /include/bits/char_traits.h (class char_traits): Put all the
3163         real work into the new class template __gnu_cxx::char_traits.
3164         Gave generic definitions for member functions.  Types are taken
3165         from the new class template __gnu_cxx::_Char_types.
3166         * testsuite/21_strings/char_traits/requirements/short/1.cc: New
3167         file.  Test of std::char_traits<short>, which serves as a test of
3168         the char_traits primary template.
3170 2003-07-24  Benjamin Kosnik  <bkoz@redhat.com>
3172         * testsuite/*: Change __gnu_cxx_test to __gnu_test.
3174 2003-07-24  Nathan Myers  <ncm-nospam@cantrip.org>
3176         * testsuite/23_containers/map_operators.cc: Conform to
3177         container requirement as value must be Assignable.
3179 2003-07-23  Alexandre Oliva  <aoliva@redhat.com>
3181         * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
3182         tests not only generation of pch files, but also their use.
3183         * aclocal.m4, configure: Rebuilt.
3185 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
3187         * config/cpu/hppa/atomicity.h: Change
3188         _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
3189         to match misc-inst.cc
3191 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
3193         * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
3194         * include/c_std/std_cctype.h: Ditto.
3195         * include/c_std/std_cerrno.h: Ditto.
3196         * include/c_std/std_cfloat.h: Ditto.
3197         * include/c_std/std_climits.h: Ditto.
3198         * include/c_std/std_clocale.h: Ditto.
3199         * include/c_std/std_cmath.h: Ditto.
3200         * include/c_std/std_csetjmp.h: Ditto.
3201         * include/c_std/std_csignal.h: Ditto.
3202         * include/c_std/std_cstdarg.h: Ditto.
3203         * include/c_std/std_cstddef.h: Ditto.
3204         * include/c_std/std_cstdio.h: Ditto.
3205         * include/c_std/std_cstdlib.h: Ditto.
3206         * include/c_std/std_cstring.h: Ditto.
3207         * include/c_std/std_ctime.h: Ditto.
3208         * include/c_std/std_cwchar.h: Ditto.
3209         * include/c_std/std_cwctype.h: Ditto.
3210         * include/std/std_algorithm.h: Ditto.
3211         * include/std/std_bitset.h: Ditto.
3212         * include/std/std_complex.h: Ditto.
3213         * include/std/std_deque.h: Ditto.
3214         * include/std/std_fstream.h: Ditto.
3215         * include/std/std_functional.h: Ditto.
3216         * include/std/std_iomanip.h: Ditto.
3217         * include/std/std_ios.h: Ditto.
3218         * include/std/std_iosfwd.h: Ditto.
3219         * include/std/std_iostream.h: Ditto.
3220         * include/std/std_istream.h: Ditto.
3221         * include/std/std_iterator.h: Ditto.
3222         * include/std/std_limits.h: Ditto.
3223         * include/std/std_list.h: Ditto.
3224         * include/std/std_locale.h: Ditto.
3225         * include/std/std_map.h: Ditto.
3226         * include/std/std_memory.h: Ditto.
3227         * include/std/std_numeric.h: Ditto.
3228         * include/std/std_ostream.h: Ditto.
3229         * include/std/std_queue.h: Ditto.
3230         * include/std/std_set.h: Ditto.
3231         * include/std/std_sstream.h: Ditto.
3232         * include/std/std_stack.h: Ditto.
3233         * include/std/std_stdexcept.h: Ditto.
3234         * include/std/std_streambuf.h: Ditto.
3235         * include/std/std_string.h: Ditto.
3236         * include/std/std_utility.h: Ditto.
3237         * include/std/std_valarray.h: Ditto.
3238         * include/std/std_vector.h: Ditto.
3240 2003-07-22  Doug Gregor  <dgregor@apple.com>
3242         * include/bits/basic_string.h (basic_string::insert): Deprecate
3243         GNU extension.
3245 2003-07-21  Benjamin Kosnik  <bkoz@redhat.com>
3247         * scripts/testsuite_flags.in (--build-includes): Remove extraneous
3248         paths for libio.
3249         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
3250         (test03): Include typeinfo for bad_cast.
3251         * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
3252         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3253         * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
3255 2003-07-21  Doug Gregor  <dgregor@apple.com>
3257         * include/bits/boost_concept_check.h:
3258         (_EqualityComparableConcept::__constraints): Remove != from the
3259         list of constraints; it is not listed in Table 28 of the C++98
3260         standard.
3262 2003-07-18  Andreas Jaeger  <aj@suse.de>
3264         * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
3265         * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
3266         * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
3267         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
3269 2003-07-17  Benjamin Kosnik  <bkoz@redhat.com>
3271         * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
3272         * config/locale/generic/messages_members.h: Tweaks.
3273         * config/locale/generic/monetary_members.cc
3274         (moneypunct::_M_initialize_moneypunct): Use cache.
3275         (moneypunct::~moneypunct): Delete cache.
3276         * config/locale/generic/time_members.cc:
3277         (__timepunct::_M_initialize_timepunct): Use cache.
3278         * config/locale/generic/time_members.h:
3279         (__timepunct::~__timepunct): Delete cache.
3280         (__timepunct::__timepunct): Set cache.
3281         * config/locale/gnu/messages_members.h: Tweaks.
3282         * config/locale/gnu/monetary_members.cc:
3283         (moneypunct::_M_initialize_moneypunct): Use cache.
3284         (moneypunct::~moneypunct): Delete cache.
3285         * config/locale/gnu/time_members.cc:
3286         (__timepunct::_M_initialize_timepunct): Use cache.
3287         * config/locale/gnu/time_members.h:
3288         (__timepunct::~__timepunct): Delete cache.
3289         (__timepunct::__timepunct): Set cache.
3290         * include/bits/locale_facets.h (__timepunct_cache): New.
3291         (__moneypunct_cache): New.
3292         * include/bits/locale_facets.tcc: Tweak.
3293         * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
3294         * src/locale-inst.cc: Instantiate caches.
3295         * src/globals.cc: Add "C" caches.
3296         * src/localename.cc: Use external "C" caches.
3298 2003-07-17  Phil Edwards  <pme@gcc.gnu.org>
3300         * docs/doxygen/guide.html:  Fix typo.
3302 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
3304         * include/ext/pod_char_traits.h: Add state template argument.
3306 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
3308         * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
3309         (num_get::_M_convert_int): To _M_insert_int.
3310         (num_get::_M_convert_float): To _M_insert_float.
3311         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
3312         Use caches for ctype, num_get.
3313         (num_get::_M_extract_int): Same.
3314         (num_get::get(bool)): Same.
3315         (__verify_grouping): Use size_t.
3316         * src/locale-inst.cc: Update.
3317         * src/locale.cc: Adjust _S_atoms_in.
3319 2003-07-16  Phil Edwards  <pme@gcc.gnu.org>
3321         * docs/doxygen/mainpage.html:  Move building/writing instructions...
3322         * docs/doxygen/guide.html:  ...to here.  New file.
3324 2003-07-16  Jonathan Wakely  <redi@gcc.gnu.org>
3326         * docs/html/ext/howto.html: Update URL for SGI STL docs.
3327         * docs/html/faq/index.html: Same.
3328         * docs/html/faq/index.txt: Regenerate.
3330 2003-07-16  Paolo Carlini  <pcarlini@unitus.it>
3332         PR libstdc++/11528
3333         * include/bits/locale_facets.tcc (money_get::do_get):
3334         Strip only _leading_ zeros.
3335         * testsuite/22_locale/money_get/get/char/11528.cc: Add.
3336         * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
3338 2003-07-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3340         * include/ext/hash_map (class hash_multimap): Remove extra
3341         semicolons from __glibcxx_class_requires3 entries.
3342         * include/ext/hash_set (class hash_set): Ditto.
3343         (class hash_multiset): Ditto.
3345 2003-07-15  Petur Runolfsson  <peturr02@ru.is>
3347         * include/bits/char_traits.h (char_traits<wchar_t>::move):
3348         Change last parameter from int_type to size_t.
3350 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
3352         * include/bits/stl_algo.h (includes, set_union, set_intersection,
3353         set_difference, set_symmetric_difference, max_element, min_element,
3354         next_permutation, prev_permutation, find_first_of, find_end):
3355         Document.
3356         * include/bits/stl_algobase.h (copy,copy_backward):  Clarify overlap
3357         restrictions in docs.
3358         * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
3359         Document.
3360         * docs/doxygen/doxygroups.cc (setoperations):  New group.
3362 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
3364         * include/bits/basic_string.h:  Document public functions.
3365         * docs/doxygen/TODO:  Update c21 todo.
3367 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
3369         * include/bits/stl_list.h:  Document more functions.
3370         * docs/doxygen/TODO:  Update c23 todo.
3372 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
3374         * config/locale/gnu/c_locale.h (__convert_from_v): One more
3375         qualification.
3377 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
3379         * include/bits/stl_tempbuf.h: Qualify free with std::.
3380         * src/locale.cc: Include <cstdlib>, qualify getenv.
3382 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
3384         * config/locale/gnu/c_locale.h (__convert_from_v): Include
3385         <cstdio>. Qualify names.
3386         * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
3388 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
3389             Nathan C. Myers  <ncm-nospam@cantrip.org>
3391         PR libstdc++/11378
3392         * include/std/std_fstream.h (xsputn): Declare only.
3393         * include/bits/fstream.tcc (xsputn): Define, optimize for the
3394         always_noconv() case: when __n is sufficiently large flush
3395         the buffer and issue a direct write, if possible combining the
3396         two with writev in __basic_file<>::xsputn_2.
3397         * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
3398         New, declare.
3399         * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
3400         Define.
3401         * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
3402         the availability of writev in <sys/uio.h>.
3403         * configure.in: Call here.
3404         * acconfig.h: Add undef for the corresponding symbol.
3405         * aclocal.m4: Regenerate.
3406         * configure: Regenerate.
3407         * config.h.in: Regenerate.
3408         * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
3410         * include/std/std_fstream.h (sync): Constify a variable.
3412 2003-07-14  Benjamin Kosnik  <bkoz@redhat.com>
3414         * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
3415         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3417 2003-07-14  Gabriel Dos Reis  <gcc@integrable-solutions.net>
3419         * config/locale/gnu/c_locale.h (__convert_from_v): Include
3420         <cstring> and <cstdlib>. Qualify names.
3422 2003-07-13  Mark Mitchell  <mark@codesourcery.com>
3424         * config/locale/generic/c_locale.h: Include <cstdlib> and
3425         <cstring>.
3426         * include/bits/boost_concept_check.h: Add this-> to unqualified
3427         method calls.
3428         * include/bits/deque.tcc: Likewise.
3429         * include/bits/locale_facets.h : Likewise.
3430         * include/bits/ostream.tcc: Likewise.
3431         * include/bits/stl_algo.h: Likewise.
3432         * include/bits/stl_bvector.h: Likewise.
3433         * include/bits/stl_deque.h: Likewise.
3434         * include/bits/stl_list.h: Likewise.
3435         * include/bits/stl_tree.h: Likewise.
3436         * include/bits/stl_vector.h: Likewise.
3437         * include/bits/vector.tcc: Likewise.
3438         * include/ext/rope: Likewise.
3439         * include/ext/ropeimpl.h: Likewise.
3440         * include/ext/stdio_filebuf.h: Likewise.
3442 2003-07-11  Jerry Quinn  <jlquinn@optonline.net>
3444         * include/bits/basic_ios.h (copyfmt): Document.
3445         * include/bits/ios_base.h (event, event_callback, register_callback,
3446         xalloc, iword, pword):  Document.
3447         (imbue, ~ios_base): Update docs on callbacks.
3449 2003-07-11  Phil Edwards  <pme@gcc.gnu.org>
3451         * acinclude.m4 (GLIBCC_ENABLE_SYMVERS):  Tweak comments.  Add
3452         warning messages if the environment cannot support symbol versioning.
3453         (port_specific_symbol_file):  It's plural, add an 's' on the end.
3454         * configure.host:  Likewise.
3455         * src/Makefile.am:  Likewise.
3456         * config/linker-map.gnu:  Remove one semicolon, heh.
3457         * scripts/extract_symvers:  Don't assume useful 'export' syntax.
3458         Set LANG as well as LC_ALL for possibly-broken sort(1)s.
3459         * aclocal.m4, configure, src/Makefile.in:  Regenerated.
3461 2003-07-09  Benjamin Kosnik  <bkoz@redhat.com>
3463         * include/bits/locale_facets.tcc: Use function object for
3464         __use_cache instead of template function. Partially specialize for
3465         __numpunct<_CharT>.
3466         * include/bits/locale_classes.h: Update friend declaration for
3467         __use_cache.
3468         (_M_install_cache): No throw exception specs.
3469         * src/locale.cc: Remove __use_cache specializations.
3470         * include/ext/pod_char_traits.h (length): Tweak.
3471         * include/bits/locale_facets.h (__numpunct_cache): Remove
3472         char_type typedef.
3473         * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
3474         (pod_long): Remove.
3475         * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
3476         * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
3477         * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
3478         * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
3479         * testsuite/22_locale/numpunct/members/pod/1.cc: New.
3480         * testsuite/22_locale/numpunct/members/pod/2.cc: New.
3482 2003-07-09  Jerry Quinn  <jlquinn@optonline.net>
3484         * src/ios.cc (_M_grow_words):  Fix spelling.
3486 2003-07-09  Gawain Bolton  <gp.bolton@computer.org>
3488         * include/bits/stl_tree.h: Move larger member functions in
3489         _Rb_tree_base_iterator and _Rb_tree_node to...
3490         * src/stl_tree.cc: Here.
3491         * src/Makefile.in: Add stl_tree.cc.
3492         * src/Makefile.in: Regenerated.
3493         * config/linker-map.gnu: Add symbols here.
3495 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
3497         * testsuite/ext/pod_char_traits.cc: New.
3498         * include/ext/pod_char_traits.h: New.
3499         * include/Makefile.am (ext_headers): Add pod_char_traits.h.
3500         * include/Makefile.in: Regenerate.
3501         * docs/html/21_strings/howto.html: Update.
3503 2003-07-08  Gawain Bolton  <gp.bolton@computer.org>
3505         * testsuite/performance/list_create_fill_sort.cc: New.
3507 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
3509         * config/locale/generic/numeric_members.cc: Correct type info.
3510         * config/locale/gnu/numeric_members.cc: Same.
3511         * include/bits/locale_facets.h: Same.
3513         * include/bits/char_traits.h: Correct spacing.
3515         * src/locale.cc: Wrap to 80 col.
3517 2003-07-07  Paolo Carlini  <pcarlini@unitus.it>
3519         * include/std/std_complex.h: Partially revert last
3520         changes: cmath functions must not be qualified.
3522 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
3524         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Do not test for binutils
3525         2.11 with globbing backport fix.
3526         * aclocal.m4, configure:  Regenerated.
3528 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
3530         * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
3531         if output is at all possible (!_M_reading), cannot be active.
3533         * include/std/std_fstream.h: Tweak comments to doxygen style.
3535 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
3537         * include/bits/locale_classes.h: Fully qualify standard
3538         functions with std::, thus avoiding Koenig lookup.
3539         * include/bits/locale_facets.tcc: Likewise.
3540         * src/locale.cc: Likewise.
3541         * src/localename.cc: Likewise.
3543 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
3545         * include/bits/allocator_traits.h:  Fix doxygen markup.
3546         * include/ext/mt_allocator.h:  Likewise.
3548 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
3550         * testsuite/testsuite_hooks.h:  Guard against a missing unlink().
3552 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
3554         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Bump minimal version
3555         requirement.  Add port_specific_symbol_file variable.
3556         * configure.host:  Add docs for port_specific_symbol_file.
3557         Clean up try_cpu block for x86.
3558         * config/linker-map.gnu:  No more "last symbol can't have a
3559         semicolon" kaka.  Add hook for port-specific symbols.
3560         * src/Makefile.am:  Remove trailing whitespace.
3561         (libstdc++-symbol.ver):  Detect the presence of port-specific
3562         symbols, and add them accordingly.
3564         * docs/html/17_intro/porting.texi:  Bring up to date.
3566         * src/Makefile.in, aclocal.m4, configure,
3567         docs/html/17_intro/porting.html:  Regenerated.
3569 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
3571         * scripts/create_testsuite_files:  New file.
3572         * testsuite/Makefile.am (all-local, check-performance):  Use it.
3573         * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests):  Remove.
3574         * testsuite/Makefile.in:  Regenerated.
3576         * testsuite/performance/filebuf_sputc.cc:  Remove the temporary
3577         files at the end.
3578         * testsuite/performance/fstream_seek_write.cc:  Likewise.
3579         * testsuite/performance/ofstream_insert_float.cc:  Likewise.
3580         * testsuite/performance/ofstream_insert_int.cc:  Likewise.
3581         * testsuite/abi_check.cc (main):  Nicer spacing in usage output.
3583 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
3585         * include/bits/stl_list.h: Performance and memory usage
3586         improvements. In particular, the behaviour of the constructor and
3587         destructor as the list header node is no longer dynamically
3588         allocated/de-allocated.
3589         * include/bits/list.tcc: Likewise.
3591 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
3593         * include/std/std_complex.h: Fully qualify standard
3594         functions with std::, thus avoiding Koenig lookup.
3595         * include/std/std_memory.h: Likewise.
3596         * include/std/std_valarray.h: Likewise.
3598 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
3600         * include/bits/stl_tree.h: _Rb_tree_rebalance():  Add local
3601           variable for grandparent and use const
3603 2003-07-05  David Billinghurst <David.Billinghurst@riotinto.com>
3605         * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
3606         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
3607         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
3608         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
3609         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
3610         * testsuite/27_io/objects/char/7.cc: Ditto
3611         * testsuite/27_io/objects/char/9661-1.cc: Ditto
3613 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
3615         * include/std/std_bitset.h: Fully qualify standard
3616         functions with std::, thus avoiding Koenig lookup.
3618         * include/std/std_fstream.h: Change comment to doxygen style.
3620 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
3622         * include/std/std_limits.h:  More CPP->CXX changes.
3623         * scripts/check_survey.in:  Likewise.
3625 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
3627         Move from CPP to CXX.
3628         * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
3629         * testsuite/Makefile.am: Same.
3630         * testsuite/Makefile.in: Regenerate.
3631         * po/Makefile.am: Same.
3632         * po/Makefile.in: Regenerate.
3633         * libsupc++/Makefile.am: Same.
3634         * libsupc++/Makefile.in: Regenerate.
3635         * libmath/Makefile.am: Same.
3636         * libmath/Makefile.in: Regenerate.
3637         * include/Makefile.am: Same.
3638         * include/Makefile.in: Regenerate.
3639         * src/Makefile.am: Same.
3640         * src/Makefile.in: Regenerate.
3641         * acconfig.h: Same.
3642         * configure.host: Same.
3643         * configure.in: Same.
3644         * configure: Regenerate.
3645         * acinclude.m4: Same.
3646         * aclocal.m4: Same.
3647         * src: Change all files in this directory.
3648         * testsuite: Same.
3649         * include: Same, standardize include guards.
3650         * config: Same.
3651         * libsupc++: Same.
3653 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
3655         * testsuite/22_locale/collate/compare/wchar_t/2.cc
3656         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
3657         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
3658         * testsuite/22_locale/collate/hash/wchar_t/2.cc
3659         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
3660         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
3661         * testsuite/22_locale/collate/transform/wchar_t/2.cc
3662         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
3663         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3664         XFAIL on all targets.
3666 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
3668         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
3669         * aclocal.m4: Regenerate.
3670         * configure: Regenerate.
3672 2003-07-04  Jerry Quinn  <jlquinn@optonline.net>
3674         * include/bits/locale_facets.tcc (__int_to_char): Move common case
3675         to the top.
3677 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
3678             Petur Runolfsson  <peturr02@ru.is>
3680         * config/io/basic_file_stdio.cc: Revert.
3682 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
3684         * include/bits/deque.tcc: Fully qualify standard
3685         functions with std::, thus avoiding Koenig lookup.
3686         * include/bits/gslice_array.h: Likewise.
3687         * include/bits/indirect_array.h: Likewise.
3688         * include/bits/list.tcc: Likewise.
3689         * include/bits/mask_array.h: Likewise.
3690         * include/bits/slice_array.h: Likewise.
3692 2003-07-04  Gawain Bolton  <gbolton@free.fr>
3694         * include/bits/stl_tree.h: Performance and memory usage
3695         improvements.
3697 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
3699         * Makefile.am: Replace PWD with PWD_COMMAND.
3700         * Makefile.in: Regenerated.
3701         * docs/html/Makefile: Likewise.
3703 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
3705         * include/bits/valarray_array.h: Fully qualify standard
3706         functions with std::, thus avoiding Koenig lookup.
3707         * include/bits/vector.tcc: Likewise.
3709 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
3711         * include/Makefile.am: Update target_ to host_.
3712         * include/Makefile.in: Regenerate.
3713         * src/Makefile.am: Same.
3714         * src/Makefile.in: Regenerate.
3716         * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
3718 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
3720         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
3721         --enable-libstdcxx-debug-flags.
3722         (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
3723         (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
3724         * aclocal.m4: Regenerate.
3725         * configure: Same.
3726         * docs/html/configopts.html: Update.
3728 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
3730         Revert the fix for libstdc++/11378.
3732 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
3734         PR libstdc++/11378
3735         * include/std/std_fstream.h (xsputn): In the unbuffered case,
3736         provided always_noconv(), issue directly _M_file.xsputn.
3737         * testsuite/performance/filebuf_unbuf_sputn.cc: New.
3739 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
3741         * include/bits/stl_list.h: Fully qualify standard
3742         functions with std::, thus avoiding Koenig lookup.
3743         * include/bits/stl_queue.h: Likewise.
3744         * include/bits/stl_raw_storage_iter.h: Likewise.
3745         * include/bits/stl_tempbuf.h: Likewise.
3746         * include/bits/stl_tree.h: Likewise.
3747         * include/bits/stl_uninitialized.h: Likewise.
3748         * include/bits/stl_vector.h: Likewise.
3749         * include/ext/rope: Change includes order.
3751 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
3753         * configure.host (fpos_include_dir): Fix.
3755 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
3757         * include/bits/stl_heap.h: Fully qualify standard
3758         functions with std::, thus avoiding Koenig lookup.
3759         * include/bits/stl_iterator_base_funcs.h: Likewise.
3761         * include/bits/stl_algo.h: Qualify __iterator_category too.
3762         * include/bits/stl_algobase.h: Likewise.
3763         * include/bits/stl_bvector.h: Likewise.
3765         * include/bits/stl_algo.h: Don't qualify the pair type.
3767 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
3769         * include/Makefile.am (target_headers): Add fpos.h
3770         (bits_headers): Remove.
3771         * include/Makefile.in: Regenerate.
3772         * configure.in: Add FPOS_INC_SRCDIR, substitute it.
3773         * configure: Regenerate.
3774         * configure.host: Add fpos_include_dir.
3775         * config/os/gnu-linux/fpos.h: New.
3776         * config/os/generic/fpos.h: Add.
3777         * include/bits/fpos.h: Remove.
3779         * config/io/c_io_stdio.h: Remove fpos_t typedef.
3781         * include/bits/fstream.tcc: Tweaks.
3782         * include/std/std_fstream.h: Same.
3784         * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
3785         * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
3786         * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
3787         * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
3788         * testsuite/27_io/fpos/1.cc: New.
3790 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
3791             Petur Runolfsson  <peturr02@ru.is>
3793         * include/std/std_streambuf.h: Remove _M_pos.
3794         * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
3795         * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
3796         use fread/fwrite instead of read/write.
3797         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
3798         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
3799         before reading again.
3800         * testsuite/27_io/objects/char/6.cc: Tweak.
3802 2003-07-03  David Edelsohn  <edelsohn@gnu.org>
3804         * testsuite/22_locale/num_put/put/char/7.cc: Guard with
3805         _GLIBCPP_USE_WCHAR_T.
3807 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
3809         * include/bits/basic_string.tcc (_M_replace_aux): Constify
3810         __n1 and __off1.
3812 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
3814         * include/bits/stl_bvector.h: Fully qualify standard
3815         functions with std::, thus avoiding Koenig lookup.
3816         * include/bits/stl_construct.h: Likewise.
3817         * include/bits/stl_deque.h: Likewise.
3819 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
3821         * testsuite/22_locale/num_put/put/char/7.cc: Include
3822         <testsuite_hooks.h>, tweak.
3823         * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
3825 2003-07-01  Phil Edwards  <pme@gcc.gnu.org>
3827         * testsuite/Makefile.am (AM_MAKEFLAGS):  Set to -j1 (affects
3828         check* targets, but not libs/programs).
3829         * testsuite/Makefile.in:  Regenerate.
3831 2003-07-01  Roger Sayle  <roger@eyesopen.com>
3833         * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
3834         (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
3835         * aclocal.m4: Regenerate.
3836         * configure: Regenerate.
3838 2003-07-01  Benjamin Kosnik  <bkoz@redhat.com>
3840         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
3841         * aclocal.m4: Regenerated.
3842         * configure: Regenerated.
3844 2003-07-01  Paolo Carlini  <pcarlini@unitus.it>
3846         PR libstdc++/11389
3847         * include/bits/fstream.tcc (underflow): For encoding() == 0
3848         don't read more than __buflen chars.
3849         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
3850         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
3851         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
3852         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
3854 2003-07-01  Jerry Quinn  <jlquinn@optonline.net>
3856         * 22_locale/num_put/put/char/7.cc: New.
3857         * 22_locale/num_put/put/wchar_t/7.cc: New.
3859 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
3861         * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
3862         * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
3864 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
3866         * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
3867         * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
3868         * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
3869         * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
3870         * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
3871         * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
3872         * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
3873         * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
3874         * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
3875         * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
3876         * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
3877         * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
3878         * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
3879         * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
3880         * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
3881         * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
3882         * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
3883         * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
3884         * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
3885         * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
3886         * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
3887         * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
3888         * data/seekoff-1.tst: Remove.
3889         * data/seekoff-1io.tst: New.
3890         * data/seekoff-1out.tst: New.
3891         * data/seekoff-2.tst: Remove.
3892         * data/seekoff-2io.tst: New.
3893         * data/seekoff-2out.tst: New.
3894         * data/seekoff.txt
3895         * data/seekpos-1.tst: Remove.
3896         * data/seekpos-1io.tst: New.
3897         * data/seekpos-1out.tst: New.
3898         * data/seekpos-2.tst: Remove.
3899         * data/seekpos-2io.tst: New.
3900         * data/seekpos-2out.tst: New.
3901         * data/seekpos.txt: New.
3903 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
3905         * src/locale.cc (__use_cache<numpunct>): Move from here ...
3906         * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
3907         here.
3909 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
3911         * include/bits/stl_algobase.h: Fully qualify standard
3912         functions with std::, thus avoiding Koenig lookup.
3914 2003-06-30  Doug Gregor <dgregor@apple.com>
3916         * include/bits/locale_facets.tcc (money_get::do_get): Avoid
3917         subscripting empty string.
3919 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
3921         * testsuite/Makefile.am (check-am):  Do not override.
3922         (baseline_symbols):  Declare as PHONY, so no need to 'touch' it.
3923         * testsuite/Makefile.in:  Regenerate.
3925 2003-06-30  Doug Gregor <dgregor@apple.com>
3927         * testsuite/24_iterators/insert_iterator.cc (test01, test02):
3928         Don't initialize an insert_iterator with a singular iterator.
3930 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
3932         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
3933         * aclocal.m4: Regenerate.
3934         * configure.in (GLIBCPP_CHECK_PCH): Move, change to
3935         GLIBCPP_ENABLE_PCH, default to yes.
3936         * configure: Regenerate.
3937         * docs/html/configopts.html: Add --enable-pch.
3939 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
3941         * testsuite/lib/libstdc++-v3-dg.exp:  Add comments.
3942         (libstdc++-v3-init):  Also set LD_RUN_PATH.
3944 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
3946         * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
3947         from here to filebuf and stringbuf.
3948         (~basic_streambuf()): Don't set _M_mode.
3949         (basic_streambuf()): Don't set _M_mode.
3950         * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
3951         (~basic_filebuf()): Clean up.
3952         * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
3953         * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
3954         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
3955         * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
3956         * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
3957         * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
3958         * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
3960 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
3962         * include/std/std_fstream.h (_M_underflow): Remove.
3963         (uflow): Remove, inherited from streambuf.
3964         (underflow): Only declare.
3965         * include/bits/fstream.tcc (_M_underflow): Rename to
3966         underflow, to which is equivalent for __bump == false,
3967         simplify.
3968         * include/std/std_sstream.h (_M_underflow): Remove.
3969         (uflow): Remove, inherited from streambuf.
3970         (underflow): Only declare.
3971         * include/bits/sstream.tcc (_M_underflow): Rename to
3972         underflow, to which is equivalent for __bump == false,
3973         simplify.
3975 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
3977         * include/bits/stl_algo.h: Fully qualify standard functions
3978         with std::, thus avoiding Koenig lookup.
3980 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
3982         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
3983         Improve type correctness-wise.
3984         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
3985         Likewise.
3986         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
3987         Likewise.
3988         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
3989         Likewise.
3991 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
3993         * include/std/std_streambuf.h (uflow): According to
3994         27.5.2.4.3,p16, don't check gptr() < egptr().
3996 2003-06-28  Paolo Carlini  <pcarlini@unitus.it>
3998         PR libstdc++/9875
3999         * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
4000         (seekpos): Likewise.
4001         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
4002         New test.
4003         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
4004         New test.
4006 2003-06-27  Benjamin Kosnik  <bkoz@redhat.com>
4008         * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
4009         output name to libstdc++-v3-performance.sum.
4010         * testsuite/Makefile.am (CLEANFILES): Remove .performance.
4011         * testsuite/Makefile.in: Regenerate.
4013 2003-06-27  Matthias Klose  <doko@debian.org>
4015         * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
4016         output of abi-check in libstdc++-v3-abi.sum.
4017         * testsuite/Makefile.in: Regenerate.
4019 2003-06-27  Krister Walfridsson  <cato@df.lth.se>
4021         * config/os/bsd/netbsd/ctype_noninline.h
4022         (_C_ctype_): Declare.
4023         (ctype<char>::classic_table): Return _C_ctype_ + 1.
4024         (ctype<char>::ctype): Use classic_table.
4026 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
4027             Nathan C. Myers  <ncm-nospam@cantrip.org>
4029         PR libstdc++/9178
4030         * include/bits/fstream.tcc (_M_underflow): Properly estimate
4031         the worst-case number of external bytes for a given get area.
4032         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
4034 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
4035             Petur Runolfsson  <peturr02@ru.is>
4037         PR libstdc++/11305
4038         * include/bits/fstream.tcc (overflow): Properly estimate the
4039         worst-case number of external bytes for a given put area
4040         (by using codecvt::max_length()).
4041         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
4042         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
4043         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
4044         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
4046 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
4048         * config/linker-map.gnu: Remove ; after __numpunct_cache.
4050 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
4052         * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
4053         to the imbued locale.
4054         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
4055         _M_getloc.
4056         (num_put::_M_convert_float): Use.
4058 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
4059             Jerry Quinn  <jlquinn@optonline.net>
4061         * config/linker-map.gnu: Add __numpunct_cache.
4062         * config/locale/gnu/numeric_members.cc
4063         (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
4064         all elements for "C" locale.
4065         (numpunct::~numpunct): Delete _M_data.
4066         * config/locale/generic/numeric_members.cc: Same.
4067         * include/bits/basic_ios.tcc
4068         (basic_ios::init): Remove __locale_cache bits.
4069         (basic_ios::_M_cache_locale): Same.
4070         * include/bits/ios_base.h: Same. Tweaks.
4071         * include/bits/locale_classes.h: Tweaks. Reorder classes.
4072         (__use_cache): Make friends with _Impl, locale.
4073         (_Impl::_M_caches): Add.
4074         (_Impl::_M_install_cache): Add.
4075         * include/bits/locale_facets.h (__numpunct_cache): New.
4076         (numpunct): Encapsulate data members in __numpunct_cache member,
4077         _M_data. Adjust virtuals.
4078         (numpunct::numpunct): New ctor for the same.
4079         (__locale_cache_base): Remove.
4080         (__locale_cache): Remove.
4081         * include/bits/locale_facets.tcc (__use_cache): New function,
4082         specializations.
4083         (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
4084         * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
4085         * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
4086         * src/locale-inst.cc: Same. Add __numpunct_cache.
4087         * src/locale.cc: Tweak inlines.
4088         (__use_cache): Define specializations.
4089         * src/localename.cc: Use global bits.
4090         (_Impl::~Impl): Deal with __numpunct_cache destruction.
4091         (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
4092         (_Impl::_M_init_facet): Take into account __numpunct_cache.
4093         * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
4094         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4096 2003-06-26  Nathan C. Myers  <ncm-nospam@cantrip.org>
4097             Paolo Carlini  <pcarlini@unitus.it>
4099         * testsuite/performance/filebuf_copy.cc: New, testing char
4100         by char file copy.
4102 2003-06-26  Paolo Carlini  <pcarlini@unitus.it>
4103             Nathan C. Myers  <ncm-nospam@cantrip.org>
4105         * include/bits/fstream.tcc (_M_underflow): When the actual
4106         end of file is reached, set 'uncommitted' mode to allow a
4107         next write without an intervening seek (see C++98 27.8.1.1,2
4108         and C89 7.9.5.3).
4109         * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
4111 2003-06-25  Nathan C. Myers  <ncm-nospam@cantrip.org>
4113         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
4114         sputc): Move inline, from here...
4115         * include/std/std_streambuf.h: ... to here.
4117         * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
4118         sputbackc, sungetc, sputc): Use __builtin_expect.
4120 2003-06-24  Phil Edwards  <pme@gcc.gnu.org>
4122         * docs/doxygen/mainpage.html:  Use a useful title.
4124 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
4126         * docs/html/documentation.html: Remove assignment info.
4127         * docs/html/17_intro/contribute.html: Edits.
4128         * docs/html/17_intro/libstdc++-assign.tx: Remove.
4130         * docs/html/test.html: Update.
4132         * README: Update.
4134 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
4135             Ulrich Drepper  <drepper@redhat.com>
4137         * testsuite/testsuite_performance.h: Tweak mallinfo.
4139 2003-06-24  Paolo Carlini  <pcarlini@unitus.it>
4140             Nathan C. Myers  <ncm-nospam@cantrip.org>
4142         * include/std/std_fstream.h (_M_filepos): Remove.
4143         (_M_reading, _M_writing): New, encode the various I/O modes:
4144         'read', 'write' and 'uncommitted'.
4145         (sync): If there is something to flush, do it, then go to
4146         'uncommitted' mode.
4147         * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
4148         with three different cases: __off > 0 (upon underflow),
4149         __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
4150         seekoff/pos).
4151         (_M_underflow): Don't call overflow, set _M_reading to true
4152         on success, tweak.
4153         (pbackfail): Set _M_reading to true on pback creation, tweak.
4154         (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
4155         set _M_writing to true on success, tweak.
4156         (seekoff): Simplify, set _M_reading, _M_writing to false, call
4157         _M_set_buffer(-1) ('uncommitted').
4158         (open, close, setbuf): Set _M_reading, _M_writing to false and
4159         call _M_set_buffer(-1), tweak.
4160         (basic_filebuf): Don't set _M_buf_unified.
4161         (_M_destroy_internal_buffer): Don't call setg and setp.
4162         * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
4163         _M_writing and _M_set_buffer(-1).
4164         * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
4165         _M_out_lim, _M_buf_unified): Remove.
4166         (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
4167         (setp): Don't set _M_out_lim.
4168         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
4169         the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
4170         upon open the mode is 'uncommitted' and therefore the put area
4171         pointers are null.
4172         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
4173         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
4174         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
4175         * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
4176         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
4177         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
4178         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
4179         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
4180         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
4181         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
4182         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
4183         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
4184         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
4185         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
4186         * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
4187         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
4188         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
4189         * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
4190         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
4191         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
4193         * include/bits/fstream.tcc (showmanyc): Use only the
4194         documented derivation interface to basic_streambuf (gptr(),
4195         setg(), etc.) to work right with user specializations.
4196         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
4197         sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
4198         * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
4199         Likewise.
4200         * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
4201         xsgetn): Likewise.
4203 2003-06-23  Loren J. Rittle  <ljrittle@acm.org>
4205         * configure.host (freebsd*): Set abi_baseline_pair.
4206         * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
4207         (at or near first release) to 3.3.
4208         * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
4209         * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
4210         * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
4212         * include/ext/mt_allocator.h: Portability.
4213         * testsuite/testsuite_performance.h: Likewise.
4215 2003-06-23  Benjamin Kosnik  <bkoz@redhat.com>
4217         * docs/html/17_intro/libstdc++-assign.txt: Update address.
4219         * testsuite/performance/ifstream_getline.cc: Fix.
4221 2003-06-23  Doug Gregor <dgregor@apple.com>
4223         * include/bits/boost_concept_check.h: Don't use _D or _R for type
4224         names.
4226 2003-06-22  Paolo Carlini  <pcarlini@unitus.it>
4227             Nathan C. Myers  <ncm-nospam@cantrip.org>
4229         * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
4230         is now used only for filebuf, when _M_buf_unified is true.
4231         epgtr() plays the role of _M_out_lim but it's only updated
4232         upon overflow, underflow, uflow, seekoff/pos.
4233         * include/bits/sstream.tcc (_M_underflow): New, implements
4234         stringbuf::underflow and uflow.
4235         (seekoff, seekpos): Tweak, use  _M_update_egptr.
4236         * include/std/std_sstream.h (str): Rewrote, deal correctly
4237         with the new logic, in particular, when pptr() > egptr().
4238         (_M_sync): When __testout && !__testin set all the get area
4239         pointers to the current string end.
4240         (_M_update_egptr): New, internal function updating egptr()
4241         to the actual string end.
4242         (_M_underflow): New, declare.
4243         (underflow): Dispatch to _M_underflow(false).
4244         (uflow): Dispatch to _M_underflow(true).
4246         * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
4247         seekpos): Use only the documented derivation interface to
4248         basic_streambuf (gptr(), setg(), etc.) to work right with
4249         user specializations.
4250         * include/std/std_sstream.h (str, _M_sync): Likewise.
4252 2003-06-20  Doug Gregor <dgregor@apple.com>
4254         * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
4255         * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
4256         dereference end iterator.
4257         * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
4258         * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
4259         index equal to the length of a string.
4260         * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
4261         * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
4262         * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
4263         * testsuite/22_locale/ctype/widen/char/1.cc: Same.
4264         * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
4265         * testsuite/23_containers/list_modifiers.cc: Don't dereference
4266         singular reverse iterator.
4267         * testsuite/23_containers/vector_bool.cc: Don't increment singular
4268         iterator.
4269         * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
4271 2003-06-20  Doug Gregor <dgregor@apple.com>
4273         * include/bits/basic_string.h (basic_string::replace): Dispatch
4274         _InputIterator version based on _Is_integer.
4275         * include/bits/basic_string.tcc (basic_string::replace):
4276         Renamed replace(iterator, iterator, size_type, _CharT) to
4277         _M_replace_aux.
4278         * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
4279         Test basic_string::assign(_InputIterator, _InputIterator),
4280         which calls basic_string::replace(iterator, iterator,
4281         _Input_iterator, _InputIterator).
4283 2003-06-20  Benjamin Kosnik  <bkoz@redhat.com>
4285         * testsuite/testsuite_performance.h (resource_counter): Don't use
4286         mallinfo at the moment.
4288 2003-06-20  Matthias Klose  <doko@debian.org>
4290         * configure.host: Set try_cpu to target_cpu for existing
4291         baseline files.
4293 2003-06-19  Andreas Jaeger  <aj@suse.de>
4295         * testsuite/Makefile.am (extract_symvers): Revert accidental
4296         change.
4297         * testsuite/Makefile.in: Regenerate.
4299         * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
4300         * configure: Regenerated.
4302 2003-06-19  Paolo Carlini  <pcarlini@unitus.it>
4304         * include/std/std_sstream.h (_M_sync): Make non virtual.
4306 2003-06-18  Benjamin Kosnik  <bkoz@redhat.com>
4308         * testsuite/testsuite_performance.h (time_counter): New.
4309         (resource_counter): New.
4310         (report_performance): New.
4311         (start_counters): New.
4312         (stop_counters): New.
4313         (clear_counters): New.
4314         * testsuite/performance/allocator.cc: Instrument.
4315         * testsuite/performance/cout_insert_int.cc: Same.
4316         * testsuite/performance/complex_norm.cc: Same.
4317         * testsuite/performance/filebuf_sputc.cc: New.
4318         * testsuite/performance/fstream_seek_write.cc: Same.
4319         * testsuite/performance/ifstream_getline.cc: Same.
4320         * testsuite/performance/map_create_fill.cc: Same.
4321         * testsuite/performance/ofstream_insert_float.cc: Same.
4322         * testsuite/performance/ofstream_insert_int.cc: Same.
4323         * testsuite/performance/string_append.cc: Convert.
4324         * scripts/check_performance: New.
4325         * testsuite/Makefile.am (check-performance): New.
4326         (CLEANFILES): Add.
4328 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
4329             Benjamin Kosnik  <bkoz@redhat.com>
4331         * include/std/std_sstream.h (setbuf): Check __n >= 0.
4332         * include/bits/fstream.tcc (setbuf): Tweak.
4334 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
4336         * include/bits/sstream.tcc (seekoff): We can't seek beyond
4337         _M_out_lim, therefore _M_move_out_cur boils down to simply
4338         updating _M_out_cur.
4339         (seekpos): Likewise, clean up.
4341 2003-06-18  Nathan C. Myers  <ncm-nospam@cantrip.org>
4342             Paolo Carlini  <pcarlini@unitus.it>
4344         * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
4345         simply equivalent to the unbuffered case (0, 0) as far as
4346         _M_buf_size is concerned.
4348 2003-06-18  Andreas Jaeger  <aj@suse.de>
4350         * testsuite/Makefile.am (new-abi-baseline): Create baseline
4351         directory.
4352         (baseline_file): Use baseline_dir.
4353         (baseline_dir): New.
4354         (mkinstalldirs): New.
4356         * acinclude.m4: Rename baseline_file to baseline_dir, strip
4357         filename from baseline_dir.
4359         * testsuite/Makefile.in: Regenerated.
4360         * Makefile.in: Regenerated.
4361         * aclocal.m4: Regenerated.
4362         * configure: Regenerated.
4364 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
4366         * configure.in: Missed check_survey bit.
4367         * configure: Regenerated.
4369 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
4371         * scripts: New.
4372         * config/abi/extract_symvers: Move to...
4373         * scripts/extract_symvers: ...here.
4374         * mkcheck.in: Move to..
4375         * scripts/check_survey.in: ...here.
4376         * testsuite_flags.in: Move to..
4377         * scripts/testsuite_flags.in: ...here.
4378         * configure.in: Change check and testsuite_flags locations.
4379         * configure: Regenerate.
4380         * testsuite/Makefile.am (current_symbols.txt): Change location.
4381         * testsuite/Makefile.in: Regenerate.
4382         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
4383         location of testsuite_flags.
4384         * Makefile.am (check-script): Move..
4385         (check-script-install): Move...
4386         * testsuite/Makefile.am: ... here.
4387         * testsuite/Makefile.in: Regenerate.
4388         * Makefile.in: Regenerate.
4390 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
4392         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
4394 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
4396         * Makefile.am (check-abi): Move...
4397         (new-abi-baseline): Move...
4398         * testsuite/Makefile.am: ...here.
4399         (new-abi-baseline): Conditionalize.
4400         (check-abi): Conditionalize.
4401         (check-abi-verbose): New.
4402         * Makefile.in: Regenerate.
4403         * testsuite/Makefile.in: Regenerate.
4404         * configure.in: Consolidate testsuite configure bits.
4405         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
4406         * configure: Regenerate.
4407         * aclocal.m4: Regenerate.
4408         * testsuite/abi_check.cc: Add --check-verbose.
4409         Only output detailed information if --check-verbose.
4411 2003-06-16  Andreas Jaeger  <aj@suse.de>
4413         * testsuite/abi_check.cc: Create summary report.
4415 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
4417         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
4418         for systems with BUFSIZ != 8192.
4419         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
4420         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
4421         Minor tweaks.
4423 2003-06-16  Andreas Jaeger  <aj@suse.de>
4425         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
4426         check-abi multilib aware.
4427         * aclocal.m4: Regenerate.
4428         * configure: Regenerate.
4430 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
4431             Andreas Jaeger  <aj@suse.de>
4433         * configure.host: Set x86_64 abi_baseline pair correctly.
4435 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
4437         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
4438         fix for missing seeks between gets and puts into...
4439         * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
4440         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
4441         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
4442         * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
4443         * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
4444         * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
4446 2003-06-15  Richard Henderson  <rth@redhat.com>
4448         * config/linker-map.gnu: Export virtual function thunks for
4449         64-bit systems too.
4451 2003-06-13  Benjamin Kosnik  <bkoz@redhat.com>
4453         * config/abi/i686-pc-linux-gnu: To..
4454         * config/abi/i486-linux-gnu: ...this.
4455         * config/abi/alphaev67-unknown-linux-gnu: To..
4456         * config/abi/alpha-linux-gnu: ...this.
4457         * config/abi/ia64-unknown-linux-gnu: To...
4458         * config/abi/ia64-linux-gnu: ...this.
4459         * config/abi/x86_64-unknown-linux-gnu: To...
4460         * config/abi/x86_64-linux-gnu: ...this.
4461         * config/abi/i386-unknown-freebsd4: To...
4462         * config/abi/i386-freebsd4: ...this.
4463         * config/linker-map.gnu: Cleanups, move libsupc++ bits into
4464         CXXABI.
4465         * configure.host: abi_baseline_triplet to abi_baseline_pair.
4466         Simplify cpu bits so that abi_baseline_pair can use the same
4467         cpu configuration.
4468         * acinclude.m4: Same.
4469         * aclocal.m4: Regenerate.
4470         * configure.in: Can't get enable_abi_check to yes unless native.
4471         * configure: Regenerate.
4473 2003-06-13  Paolo Carlini  <pcarlini@unitus.it>
4475         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
4476         fix for missing seeks between gets and puts into...
4477         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
4478         * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
4479         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
4480         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
4481         * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
4482         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
4483         for missing seeks between gets and puts.
4484         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
4485         * testsuite/data/seekoff-1.tst: New.
4486         * testsuite/data/seekoff-2.tst: New.
4487         * testsuite/data/seekpos-1.tst: New.
4488         * testsuite/data/seekpos-2.tst: New.
4490 2003-06-13  Nathan C. Myers <ncm-nospam@cantrip.org>
4492         Avoid multi-processor bus contention on increment/decrement-and-
4493         test of the reference count in the empty-string object, by comparing
4494         addresses first, and never touching the reference count of the empty-
4495         string object.
4496         * include/bits/basic_string.h:
4497         (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
4498         members.
4499         (_Rep::_S_empty_rep()): New accessor.
4500         (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
4501         a base class _Rep_base.
4502         (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
4503         (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
4504         since no longer must increment its refcount.
4505         * include/bits/basic_string.tcc:
4506         (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
4507         return immediately.  The former might be unnecessary.  The latter
4508         prevents begin() and end() from cloning it unnecessarily.
4509         (_S_construct(_InIterator, _InIterator, const _Alloc&,
4510         input_iterator_tag), _S_construct(_InIterator, _InIterator,
4511         const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
4512         const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
4513         (_M_mutate): Check for the empty string and treat it as shared.
4514         This is necessary here because _M_mutate is sometimes called with
4515         all-zero arguments; in all other uses of _M_is_shared, the test comes
4516         out right anyhow.
4518 2003-06-12  Benjamin Kosnik  <bkoz@redhat.com>
4520         * src/allocator-inst.cc: Explicitly instantiate.
4521         * include/ext/pool_allocator.h: Inhibit implicit instantiations.
4522         Tweaks.
4523         * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
4525 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
4527         * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
4528         * aclocal.m4: Regenerate.
4529         * Makefile.am (SUBDIRS): Remove libio.
4530         * Makefile.in: Regenerate.
4531         * configure.in: Same.
4532         * configure: Regenerate.
4533         * config/io/basic_file_libio.cc: Remove.
4534         * config/io/basic_file_libio.h: Remove.
4535         * config/io/c_io_libio_codecvt.c: Remove.
4536         * config/io/c_io_libio.h: Remove.
4537         * libio/*: Remove.
4538         * src/Makefile.am: Same.
4539         * src/Makefile.in: Regenerate.
4540         * docs/html/configopts.html: Edits.
4541         * docs/html/explanations.html: Edits.
4543 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
4545         * include/bits/stl_alloc.h (__debug_alloc): Move out.
4546         (__malloc_alloc): Same.
4547         (__pool_alloc): Same.
4548         (__new_alloc): Same.
4549         Rename to..
4550         * include/bits/allocator.h: ...this.
4551         * include/bits/stl_deque.h: Modify comment.
4552         * include/bits/stl_tree.h: Modify include.
4553         * include/std/std_memory.h: Same.
4554         * include/ext/rope: Same.
4555         * include/ext/slist: Same.
4556         * include/std/std_vector.h: Same.
4557         * include/std/std_stack.h: Same.
4558         * include/std/std_queue.h: Same.
4559         * include/std/std_list.h: Same.
4560         * include/std/std_deque.h: Same.
4561         * include/backward/alloc.h: Same.
4562         * include/ext/debug_allocator.h: New.
4563         * include/ext/malloc_allocator.h: New.
4564         * include/ext/pool_allocator.h: New.
4565         * include/ext/new_allocator.h: New.
4566         * include/bits/pthread_allocimpl.h: Remove.
4567         * include/bits/stl_pthread_alloc.h: Remove.
4568         * include/Makefile.am (ext_headers): Add.
4569         * include/Makefile.in: Regenerate.
4570         * src/stl-inst.cc: Use __gnu_cxx namespace.
4571         * src/stl-inst.cc: Move to...
4572         * src/allocator-inst.cc: Here.
4573         * src/Makefile.am (sources): Update.
4574         * src/Makefile.in: Regenerate.
4575         * config/linker-map.gnu: Remove __pool_alloc bits.
4576         * testsuite/ext/headers.cc: Add.
4577         * testsuite/ext/allocators.cc: Fixup.
4579 2003-06-11  Stefan Olsson  <stefan@snon.net>
4580             Ola Rönnerup  <fnolis@home.se>
4582         * include/Makefile.am (ext_headers): Add.
4583         * include/Makefile.in: Regenerate.
4584         * include/ext/mt_allocator.h: New file.
4586 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
4588         * include/bits/fstream.tcc (close): Clean up a bit.
4590         * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
4592         * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
4593         - the saved _M_in_cur, that is - cannot be null.
4594         (sync): Constify a variable.
4596         * include/std/std_streambuf.h: Tweak a comment.
4597         (in_avail): Constify a variable.
4599 2003-06-10  Phil Edwards  <pme@gcc.gnu.org>
4601         * docs/html/17_intro/BUGS:  Update from 2.90.8 snapshot.
4602         * docs/html/17_intro/CHECKLIST:  Bring up to date with respect to
4603         correctness of container::iterator typedefs.  Fix whitespace.
4604         * docs/html/20_util/howto.html, docs/html/ext/howto.html:  Add links
4605         to allocator docs.
4606         * docs/html/documentation.html:  Regenerate.
4608         * include/bits/basic_string.h, include/bits/basic_string.tcc,
4609         include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
4610         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4611         include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
4612         include/bits/stl_list.h, include/bits/stl_uninitialized.h,
4613         include/bits/stl_vector.h, include/bits/vector.tcc,
4614         include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
4615         Change _Iter names to _Iterator, and __pos to __position.
4617         * include/bits/stl_relops.h, include/bits/stl_numeric.h,
4618         include/bits/stl_multiset.h, include/bits/stl_set.h:
4619         Remove emacs markers.
4621         * include/bits/stl_threads.h (_STL_auto_lock):  Add __unused__.
4623 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
4625         * include/bits/fstream.tcc (overflow): According to
4626         27.5.2.4.5, overflow() returns not_eof(eof()).
4627         * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
4628         * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
4630 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
4632         * include/bits/fstream.tcc (_M_underflow): Check overflow return
4633         value; tweak slightly.
4635 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
4637         * include/bits/fstream.tcc (_M_underflow): Do not special
4638         case the unbuffered case, which really means simply a one char
4639         get area.
4640         (basic_filebuf): Initialize _M_buf_size.
4641         (setbuf): Unbuffered means _M_buf_size == 1, since only
4642         _M_buf_size - 1 == 0 chars are going to be used for the
4643         put area and 1 for the get area.
4644         * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
4645         (~basic_streambuf): Tweak.
4646         (basic_streambuf): Do not initialize _M_buf_size.
4647         * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
4648         (~basic_filebuf): Tweak.
4649         (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
4650         unbuffered situation (i.e., put area pointers NULL).
4651         * include/bits/streambuf.tcc (sbumpc): Clean up.
4652         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
4653         * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
4654         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
4655         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
4656         * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
4657         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
4658         * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
4660 2003-06-09  Phil Edwards  <pme@gcc.gnu.org>
4662         * acinclude.m4:  Move all AM_CONDITIONAL calls out.
4663         (GLIBCPP_CONFIGURE):  Set defaults for variables used in AM_CONDITIONAL
4664         statements.
4665         * configure.in:  Centralize AM_CONDITIONALs so that they are always
4666         run.  Make use of GLIBCPP_IS_CROSS_COMPILING.
4667         * aclocal.m4, configure:  Regenerated.
4669 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
4671         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 235.
4673 2003-06-06  Nathan Myers  <ncm-nospam@cantrip.org>
4675         * include/bits/stl_iterator.h
4676         (reverse_iterator::reverse_iterator()): Apply DR235: default
4677         constructor default-initializes data member.  Instantiated on a
4678         pointer type, the member has to end up equal to zero.
4680 2003-06-06  Benjamin Kosnik  <bkoz@redhat.com>
4682         * include/bits/stl_alloc.h: Cleanups.
4683         * include/ext/functional: Same.
4684         * include/ext/hash_map: Same.
4685         * include/ext/hash_set: Same.
4686         * include/ext/iterator: Same.
4687         * include/ext/memory: Same.
4688         * include/ext/numeric: Same.
4689         * include/ext/rb_tree: Same.
4690         * include/ext/ropeimpl.h: Same.
4691         * include/ext/slist: Same.
4692         * include/ext/stdio_filebuf.h: Same.
4693         * include/ext/stdio_sync_filebuf.h: Same.
4694         * include/ext/stl_rope.h: Move to...
4695         * include/ext/rope: ...here.
4696         * include/ext/stl_hash_fun.h: Move to...
4697         * include/ext/hash_fun.h: ...here.
4698         * include/ext/stl_hashtable.h: Move to...
4699         * include/ext/hashtable.h: ...here.
4700         * include/backward/hashtable.h: Reflect new names.
4701         * include/Makefile.am: Same.
4702         * include/Makefile.in: Regenerated.
4704 2003-06-05  Benjamin Kosnik  <bkoz@redhat.com>
4706         PR libstdc++/9024
4707         * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
4708         * include/bits/stl_algobase.h: Tweak.
4709         * include/std/std_fstream.h: Move _M_buf_size to...
4710         * include/std/std_streambuf.h: ...here. Modify.
4711         * include/bits/streambuf.tcc: Same.
4712         * testsuite/testsuite_hooks.h: Tweak.
4713         * testsuite/testsuite_io.h (constraint_filebuf): New.
4714         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
4715         * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
4716         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
4717         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
4718         * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
4719         * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
4720         * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
4721         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
4722         * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
4723         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
4724         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
4725         * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
4726         * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
4727         * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
4728         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
4729         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
4730         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
4731         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
4732         * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
4733         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
4734         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
4735         * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
4736         * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
4737         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
4738         * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
4739         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
4740         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
4741         * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
4742         * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
4743         * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
4744         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
4745         * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
4746         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
4747         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
4748         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
4749         * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
4750         * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
4751         * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
4752         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
4753         * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
4754         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
4755         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
4756         * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
4757         * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
4758         * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
4759         * testsuite/data/sgetc.txt: New.
4760         * testsuite/data/sgetn.txt: New.
4762 2003-06-05  Paolo Carlini  <pcarlini@unitus.it>
4764         PR libstdc++/11095
4765         * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
4766         Deal with width() smaller than zero.
4767         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
4768         operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
4769         _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
4770         char*), operator<<(basic_ostream<char, _Traits>&, const char*),
4771         operator<<(basic_ostream, const basic_string&)): Likewise.
4773         * testsuite/27_io/basic_istream/extractors_character/char/
4774         (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
4775         * testsuite/27_io/basic_ostream/inserters_character/char/
4776         (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
4777         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
4778         (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
4780 2003-06-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4782         * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
4783         .gch compilation works.
4784         * aclocal.m4, configure: Regenerate.
4785         * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
4786         initialize PCHFLAGS.
4788 2003-06-04  Paolo Carlini  <pcarlini@unitus.it>
4790         * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
4791         erase(iterator), erase(iterator, iterator), c_str,
4792         compare(const basic_string&)): Constify various variables.
4793         * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
4794         const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
4795         _S_create, resize, _M_replace, _M_replace_safe,
4796         append(const basic_string&), append(const basic_string&, size_type,
4797         size_type), append(const _CharT*, size_type), append(size_type,
4798         _CharT), operator+(const _CharT*, const basic_string&),
4799         operator+(_CharT, const basic_string&), replace(iterator, iterator,
4800         size_type, _CharT), find(const _CharT*, size_type, size_type),
4801         find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
4802         rfind(_CharT, size_type), compare(size_type, size_type,
4803         const basic_string&), compare(size_type, size_type,
4804         const basic_string&, size_type, size_type), compare(const _CharT*),
4805         compare(size_type, size_type, const _CharT*), compare(size_type,
4806         size_type, const _CharT*, size_type)): Likewise.
4808 2003-06-03  Benjamin Kosnik  <bkoz@redhat.com>
4810         * include/bits/fstream.tcc (pbackfail): Make a rarely taken
4811         'if' branch less obscure.
4813 2003-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
4815         PR libstdc++/9815
4816         * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
4817         asm case to asm.
4818         * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
4819         (__atomic_add): likewise.
4821 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
4823         * include/bits/sstream.tcc (pbackfail): Minor clean up and
4824         reformatting, consistent with basic_filebuf::pbackfail.
4826 2003-06-02  Richard Kreckel  <Richard.Kreckel@GiNaC.DE>
4828         PR libstdc++/11062
4829         * config/cpu/mips/atomicity.h:  Change __attribute__ ((unused)) to
4830         __attribute__ ((__unused__)).
4831         * config/os/aix/atomicity.h:  Likewise.
4833 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
4835         PR libstdc++/9761
4836         * include/bits/fstream.tcc (pbackfail): If the pback buffer
4837         is already active don't try to store in it a second char.
4838         * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
4840         * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
4842 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
4844         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
4845         line spacing.
4847 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
4849         * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
4850         instead of unnecessarily taking the address of _M_pback.
4851         (xsgetn): Simplify slightly for a single char pback buffer.
4853 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
4855         * include/bits/sstream.tcc (seekoff): Remove four unnecessary
4856         variables and two 'if', clean up.
4858 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
4860         * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
4861         not _M_out_end, since the former actually points to the string
4862         end (vs buffer end).
4863         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
4865 2003-05-30  Phil Edwards  <pme@gcc.gnu.org>
4867         * docs/doxygen/filter:  New file.
4868         * docs/doxygen/filter.sed:  New file.
4869         * docs/doxygen/run_doxygen:  Add g flag to sed substitutions.  Duh.
4870         * docs/doxygen/user.cfg.in (INPUT_FILTER):  Point to new filter.
4871         * docs/html/documentation.html:  Fix links to doxygen pages.
4873 2003-05-30  Paolo Carlini  <pcarlini@unitus.it>
4875         * include/bits/fstream.tcc (_M_convert_to_external): Don't
4876         check for __ilen > 0.
4878 2003-05-29  Sylvain Pion  <Sylvain.Pion@mpi-sb.mpg.de>
4880         PR libstdc++/10783
4881         * include/bits/stl_iterator.h (class __normal_iterator):
4882         Don't inherit from iterator, add missing typedefs.
4884 2003-05-29  Paolo Carlini <pcarlini@unitus.it>
4886         * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
4887         * testsuite/24_iterators/reverse_iterator/1.cc: New.
4888         * testsuite/24_iterators/reverse_iterator/2.cc: New.
4889         * testsuite/24_iterators/reverse_iterator/3.cc: New, from
4890         PR libstdc++/10783.
4892 2003-05-27  Steve Ellcey  <sje@cup.hp.com>
4894         * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
4895         on IA64 HP-UX.
4896         * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
4897         _LIBUNWIND_STD_ABI is set.
4899 2003-05-26  Brendan Kehoe  <brendan@zen.org>
4901         * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
4902         make sure the number of digits required after the decimal-point
4903         (if any) is exactly the value returned by frac_digits().
4904         * testsuite/22_locale/money_get/get/char/9.cc: New.
4905         * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
4907 2003-05-27  Jonathan Wakely  <redi@gcc.gnu.org>
4909         * include/std/std_istream.h, include/std/std_ostream.h: Typo in
4910         comment.
4912 2003-05-26  Benjamin Kosnik  <bkoz@redhat.com>
4914         PR libstdc++/9339
4915         * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
4916         (_M_pback): No array necessary.
4917         * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
4918         unbuffered case, coalesec into ...
4919         (basic_filebuf::overflow): ...this.
4920         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
4921         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
4923 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
4925         * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
4926         libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
4927         libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
4928         libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
4929         libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
4930         libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
4931         libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
4932         libsupc++/eh_unex_handler.cc, libsupc++/exception,
4933         libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
4934         libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
4935         libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
4936         libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
4937         Replace "GNU CC" with "GCC".
4939         * include/backward/new.h: Replace "GNU CC" with "GCC".
4941 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
4943         PR libstdc++/3066.
4944         * configure.in: Switch target to host, don't assume newlib.
4945         (target_alias): Remove.
4946         * configure: Regenerate.
4947         * acinclude.m4: Same.
4948         * aclocal.m4: Regenerate.
4949         * configure.target: Same. Rename to...
4950         * configure.host: This.
4952 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
4954         * include/std/std_fstream.h (_S_pback_size): Remove definition.
4955         (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
4956         pback buffer.
4957         * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
4958         * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
4959         of _S_pback_size for systems with no COMDAT or weak support.
4960         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
4961         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
4962         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
4963         * testsuite/27_io/basic_fstream/3.cc: Likewise.
4964         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
4965         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
4966         * testsuite/27_io/basic_ofstream/3.cc: Likewise.
4967         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
4968         * testsuite/27_io/basic_streambuf/3.cc: Likewise.
4970 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
4972         * include/bits/fstream.tcc (_M_underflow): Simplify:
4973         !__testout implies _M_filepos == _M_in_end, therefore
4974         the first _M_file.seekoff call is never issued.
4976 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
4978         * configure.in: Sort cross table.
4979         * configure: Regenerate.
4981 2003-05-22  Brad Spencer  <spencer@infointeractive.com>
4983         PR libstdc++/10106
4984         * configure.in: Add Solaris cross bits.
4986 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
4988         * libstdc++-v3/config/os/mingw32/os_defines.h
4989         (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
4990         (NOMINMAX): Define.  Update copyright year.
4992 2003-05-21  Paolo Carlini  <pcarlini@unitus.it>
4994         * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
4996 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
4998         * docs/html/faq/index.html: Fix typo.
4999         * docs/html/faq/index.txt: Regenerate.
5001 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
5003         * docs/html/test.html: Fix markup.
5005 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
5007         * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
5008         zero.
5009         Update copyright year.
5011 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
5013         * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
5015 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
5017         * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
5018         further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
5020 2003-05-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5022         * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
5023         Cast via void* to avoid -Wcast-align warnings.
5024         (__default_alloc_template::_S_refill): Likewise.
5026 2003-05-20  Benjamin Kosnik  <bkoz@redhat.com>
5028         * testsuite/README: Move to...
5029         * docs/html/test.html: ...here. Add documentation.
5030         * docs/html/install.html: Move testing bits out..
5031         * docs/html/documentation.html: Add separate testing link.
5032         * testsuite/performance: Add.
5033         * testsuite/performance/allocator.cc: New.
5034         * testsuite/performance/complex_norm.cc: New.
5035         * testsuite/performance/cout_insert_int.cc: New.
5036         * testsuite/performance/fstream_seek_write.cc: New.
5037         * testsuite/performance/ifstream_getline.cc: New.
5038         * testsuite/performance/map_create_fill.cc: New.
5039         * testsuite/performance/ofstream_insert_float.cc: New.
5040         * testsuite/performance/ofstream_insert_int.cc: New.
5041         * testsuite/performance/string_append.cc: New.
5042         * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
5043         performance tests.
5045 2003-05-20  Gabriel Dos Reis <gdr@integrable-solutions.net>
5047         PR libstdc++/10689
5048         * include/std/std_complex.h (pow): Tidy.
5050 2003-05-19  Paolo Carlini  <pcarlini@unitus.it>
5052         * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
5053         that upon filebuf::close() 27.8.1.1,3 is enforced.
5055 2003-05-15  Loren J. Rittle  <ljrittle@acm.org>
5057         * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
5059 2003-05-15  Paolo Carlini  <pcarlini@unitus.it>
5060             Nathan Myers  <ncm@cantrip.org>
5062         * include/bits/fstream.tcc (_M_overflow): Rewrote to call
5063         _M_convert_to_external only once (_M_buf_size is now the size of
5064         the put area + 1 for the overflow char of a full area); call
5065         _M_set_buffer instead of _M_set_indeterminate.
5066         (setbuf): Don't accept a buffer smaller than 2 chars.
5067         (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
5068         instead of _M_set_determinate.
5069         (open): Call _M_set_buffer, instead of _M_set_indeterminate.
5070         (seekoff): Likewise.
5071         * include/ext/stdio_filebuf.h (stdio_filebuf(int,
5072         std::ios_base::openmode, bool, size_t),
5073         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
5074         Likewise.
5075         * include/std/std_fstream.h (_M_set_indeterminate): Remove.
5076         (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
5077         _M_buf_size - 1.
5078         * include/std/std_streambuf.h: Tweak _M_out_lim comment.
5079         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
5080         into account that, for _M_buf_size == BUFSIZ == 8192, the size of
5081         the put area is now BUFSIZ - 1.
5082         * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
5083         that now the smallest _M_buf_size is 2 (still fails, for the same
5084         reason, with 3.2.3)
5086 2003-05-14  Loren J. Rittle  <ljrittle@acm.org>
5088         * testsuite/thread/pthread4.cc: Tweak test.
5090 2003-05-13  Benjamin Kosnik  <bkoz@redhat.com>
5092         * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
5093         excess errors dg marker, use dg-errors instead.
5094         * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
5095         * testsuite/20_util/auto_ptr_neg.cc: Same.
5097 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
5099         * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
5100         cached member.
5101         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
5102         Initialize _M_codecvt.
5103         (basic_filebuf::imbue): Same.
5104         (basic_filebuf::showmanyc): Use it.
5105         (basic_filebuf::underflow): Use it.
5106         (basic_filebuf::_M_convert_to_external): Use it.
5107         (basic_filebuf::seekoff): Use it.
5108         (basic_filebuf::imbue): Use it, tweaks.
5109         * include/bits/localefwd.h (__check_facet): New.
5110         * include/bits/locale_classes.h: Tweaks.
5111         * include/bits/locale_facets.tcc: Tweaks.
5112         * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
5113         _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
5114         _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
5115         * include/bits/basic_ios.tcc: Same.
5116         * include/bits/istream.tcc: Same.
5117         * include/bits/ostream.tcc: Same.
5118         * include/std/std_streambuf.h: Same.
5119         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
5120         * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
5121         * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
5122         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
5123         * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
5124         * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
5126 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
5128         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
5129         unnecessary includes and unused string literals.
5130         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
5131         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
5132         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
5133         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
5135 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
5137         * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
5139 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
5141         * include/std/std_fstream.h (_M_convert_to_external): Change
5142         to return bool, take two less streamsize parameters.
5143         * include/bits/fstream.tcc (_M_convert_to_external): Tweak
5144         consistently definition.
5145         (_M_overflow): Adjust call points.
5147 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
5149         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
5151 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
5153         * testsuite/Makefile.am:  Properly quote /both/ LD_RUN_PATHs.
5154         * testsuite/Makefile.in:  Regenerate.
5156 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
5158         * testsuite/Makefile.am:  Properly quote LD_RUN_PATH.
5159         * testsuite/Makefile.in:  Regenerate.
5161 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
5163         PR libstdc++/3181
5164         * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
5165         (acos): Handle integer argument.
5166         (asin): Likewise.
5167         (atan): Likewise.
5168         (atan2): Likewise.
5169         (ceil): Likewise.
5170         (cos): Likewise.
5171         (cosh): Likewise.
5172         (exp): Likewise.
5173         (fabs): Likewise.
5174         (floor): Likewise.
5175         (frexp): Likewise.
5176         (ldexp): Likewise.
5177         (log): Likewise.
5178         (log10): Likewise.
5179         (sin): Likewise.
5180         (sinh): Likewise.
5181         (sqrt): Likewise.
5182         (tan): Likewise.
5183         (tanh): Likewise.
5184         * include/bits/cpp_type_traits.h (__are_same<>): New traits.
5185         (__enable_if): Likewise.
5186         * testsuite/26_numerics/cmath/overloads.C: New test.
5188 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
5190         PR libstdc++/9027
5191         PR libstdc++/9520
5192         PR libstdc++/10096
5193         * include/bits/fstream.tcc (basic_file::_M_underflow):  Add generic
5194         implementation, based on old wchar_t specialization, add support
5195         for codecvt::in() return value of codecvt_base::noconv, remove
5196         _M_file.sys_ungetc() call.
5197         * include/std/std_fstream.h (basic_file::underflow,
5198         basic_file::uflow, basic_file::_M_underflow):  Remove
5199         specialization declarations, call _M_underflow from generic versions
5200         of underflow and uflow.
5201         * src/fstream.cc (basic_file::underflow, basic_file::uflow,
5202         basic_file::_M_underflow):  Remove specializations.
5203         * src/Makefile.am (sources):  Remove fstream.cc.
5204         * src/Makefile.in:  Regenerated.
5205         * testsuite/27_io/basic_filebuf/underflow/10096.cc:  New test.
5206         * testsuite/27_io/basic_filebuf/underflow/char/1.cc:  New test.
5207         * testsuite/27_io/basic_filebuf/underflow/char/9027.cc:  New test.
5208         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc:  New test.
5210 2003-05-10  Benjamin Kosnik  <bkoz@redhat.com>
5212         * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
5213         buffer.
5214         * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
5215         unbuffered bits.
5216         (__basic_file::xsputn): Same.
5217         (__basic_file::seekoff): Same.
5218         (__basic_file::seekpos): Same.
5219         (__basic_file::showmanyc): Same.
5220         * config/io/basic_file_stdio.cc: Same.
5221         * include/std/std_fstream.h: Same.
5222         * include/bits/fstream.tcc: Same.
5223         * src/fstream.cc: Same.
5224         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
5226 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
5228         PR libstdc++/9520
5229         PR libstdc++/9661
5230         PR libstdc++/9662
5231         * include/ext/stdio_sync_filebuf.h:  New file.
5232         (basic_stdiobuf):  New.
5233         * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
5234         * include/Makefile.in: Regenerate.
5235         * include/bits/ios_base.h (Init::_S_create_buffers,
5236         Init::_S_destroy_buffers):  Remove declarations.
5237         * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
5238         buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync):  Define.
5239         * src/ios.cc (Init::_S_create_buffers,
5240         Init::_S_destroy_buffers):  Remove.
5241         (Init::Init):  Create and use syncronized buffers.
5242         (ios_base::sync_with_stdio):  Destroy syncronized buffers,
5243         create and install unsyncronized buffers.
5244         * testsuite/27_io/objects/char/10.cc:  New test.
5245         * testsuite/27_io/objects/char/9.cc:  New test.
5246         * testsuite/27_io/objects/char/9661-1.cc:  New test.
5247         * testsuite/27_io/objects/char/9661-2_xin.cc:  New test.
5248         * testsuite/27_io/objects/char/9661-2_xin.in:  New.
5249         * testsuite/27_io/objects/wchar_t/1.cc:  New test.
5250         * testsuite/27_io/objects/wchar_t/10.cc:  New test.
5251         * testsuite/27_io/objects/wchar_t/2.cc:  New test.
5252         * testsuite/27_io/objects/wchar_t/2523-1_xin.cc:  New test.
5253         * testsuite/27_io/objects/wchar_t/2523-1_xin.in:  New.
5254         * testsuite/27_io/objects/wchar_t/2523-2_xin.cc:  New test.
5255         * testsuite/27_io/objects/wchar_t/2523-2_xin.in:  New.
5256         * testsuite/27_io/objects/wchar_t/3045.cc:  New test.
5257         * testsuite/27_io/objects/wchar_t/3647.cc:  New test.
5258         * testsuite/27_io/objects/wchar_t/3_xin.cc:  New test.
5259         * testsuite/27_io/objects/wchar_t/3_xin.in:  New.
5260         * testsuite/27_io/objects/wchar_t/4_xin.cc:  New test.
5261         * testsuite/27_io/objects/wchar_t/4_xin.in:  New.
5262         * testsuite/27_io/objects/wchar_t/5.cc:  New test.
5263         * testsuite/27_io/objects/wchar_t/5268.cc:  New test.
5264         * testsuite/27_io/objects/wchar_t/5280_xin.cc:  New test.
5265         * testsuite/27_io/objects/wchar_t/5280_xin.in:  New.
5266         * testsuite/27_io/objects/wchar_t/6.cc:  New test.
5267         * testsuite/27_io/objects/wchar_t/6548_xin.cc:  New test.
5268         * testsuite/27_io/objects/wchar_t/6548_xin.in:  New.
5269         * testsuite/27_io/objects/wchar_t/6648-1_xin.cc:  New test.
5270         * testsuite/27_io/objects/wchar_t/6648-1_xin.in:  New.
5271         * testsuite/27_io/objects/wchar_t/6648-2_xin.cc:  New test.
5272         * testsuite/27_io/objects/wchar_t/6648-2_xin.in:  New.
5273         * testsuite/27_io/objects/wchar_t/7.cc:  New test.
5274         * testsuite/27_io/objects/wchar_t/7744_xin.cc:  New test.
5275         * testsuite/27_io/objects/wchar_t/7744_xin.in:  New.
5276         * testsuite/27_io/objects/wchar_t/8.cc:  New test.
5277         * testsuite/27_io/objects/wchar_t/9_xin.cc:  New test.
5278         * testsuite/27_io/objects/wchar_t/9_xin.in:  New.
5279         * testsuite/27_io/objects/wchar_t/9520.cc:  New test.
5280         * testsuite/27_io/objects/wchar_t/9661-1.cc:  New test.
5281         * testsuite/27_io/objects/wchar_t/9661-2_xin.cc:  New test.
5282         * testsuite/27_io/objects/wchar_t/9661-2_xin.in:  New.
5283         * testsuite/27_io/objects/wchar_t/9662.cc:  New test.
5284         * testsuite/ext/stdiobuf_char.cc:  New test.
5285         * testsuite/ext/stdiobuf_wchar_t.cc:  New test.
5287 2003-05-10  Paolo Carlini  <pcarlini@unitus.it>
5289         * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
5290         unnecessary includes and unused string literals.
5291         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
5293 2003-05-08  Paolo Carlini  <pcarlini@unitus.it>
5295         * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
5297 2003-05-07  Richard Henderson  <rth@redhat.com>
5299         PR c++/10570
5300         * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
5301         (__cxa_end_catch): Likewise.
5302         * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise.  Use
5303         _Unwind_Resume_or_Rethrow.
5304         * libsupc++/eh_personality.cc (empty_exception_spec): New.
5305         (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
5306         for _UA_FORCE_UNWIND.  Honor empty filter spec for foreign
5307         exceptions.  Don't push terminate/unexpected to cxa functions.
5308         (__cxa_call_unexpected): Remove foreign exception fixmes.
5310 2003-05-07  Benjamin Kosnik  <bkoz@redhat.com>
5312         * testsuite/27_io/ios_base/cons: New.
5313         * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
5314         * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
5316 2003-05-07  Paolo Carlini  <pcarlini@unitus.it>
5318         * include/std/std_fstream.h (_M_is_indeterminate): Remove.
5319         * src/fstream.cc
5320         (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
5321         there is no buffer or __testget == !__testinit.
5323         * src/fstream.cc
5324         (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
5325         automatically sets, if appropriate, _M_out_cur == _M_in_cur.
5327         * include/std/std_fstream.h (_M_destroy_pback): Don't set
5328         unnecessarily _M_pback_cur_save and _M_pback_end_save.
5330         * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
5332         * include/std/std_sstream.h (_M_sync): Minor tweak.
5334         * include/bits/fstream.tcc (close): No need to call
5335         _M_destroy_pback, setting _M_pback_init to false suffices
5336         to clean up.
5338 2003-05-06  Benjamin Kosnik  <bkoz@redhat.com>
5340         * include/bits/stl_algo.h: Enums as _S_.
5341         * include/bits/stl_tree.h: Same.
5342         * include/bits/stl_bvector.h: Same.
5343         * include/bits/ios_base.h: Same.
5344         * include/bits/stl_alloc.h: Same.
5345         * include/ext/stl_hashtable.h: Same.
5346         * src/ios.cc: And here.
5348         * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
5349         * include/bits/sstream.tcc: Same.
5351         * include/bits/basic_ios.h: Correct spacing for '< ctype'.
5353         * include/bits/locale_facets.tcc: Replace __temp to __tmp.
5355         * include/bits/locale_facets.h (__num_base): Remove protected.
5356         Use _S_[io]* names for enumerations.
5357         (_S_format_int): Remove.
5358         * include/bits/locale_facets.tcc: Same.
5359         * src/locale.cc: Same.
5361         * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
5363 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
5365         * docs/html/faq/index.html (3.10):  Add note about mips atomicity.h.
5366         * docs/html/faq/index.txt:  Regenerated.
5368 2003-05-06  Michael Ritzert <Ritzert@t-online.de>
5369             Matt Kraai <kraai@alumni.cmu.edu>
5371         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
5372         And retweak.
5374 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
5376         * configure.target (mips*): Use the generic atomicity.h by default.
5378 2003-05-05  Loren J. Rittle  <ljrittle@acm.org>
5379             (Inspired by an alternate patch from Danny Smith.)
5381         * include/bits/stl_threads.h (_Atomic_swap): Kill it...
5382         (_Swap_lock_struct<>): ...and the horse it rode in on.
5383         * src/globals.cc (_Swap_lock_struct<>): Likewise.
5384         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
5385         member to support...
5386         * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
5387         visibility rules related to POSIX threads.
5388         * testsuite/thread/pthread7-rope.cc: New test.
5390 2003-05-04  Paolo Carlini  <pcarlini@unitus.it>
5392         * testsuite/21_strings/basic_string/find/char/3.cc: New
5393         file, testing basic_string<char>::find_first_not_of.
5394         * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
5395         Likewise for basic_string<wchar_t>.
5397 2003-05-03  Loren J. Rittle  <ljrittle@acm.org>
5399         * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
5401 2003-05-02  Benjamin Kosnik  <bkoz@redhat.com>
5403         * include/Makefile.am (CLEANFILES): Remove PCH files in target
5404         directory.
5405         * include/Makefile.in: Regenerate.
5407 2003-05-02  Paolo Carlini  <pcarlini@unitus.it>
5409         * include/std/std_sstream.h (str()): Tidy.
5411 2003-05-02  Nathan Myers  <ncm@cantrip.org>
5412             Paolo Carlini  <pcarlini@unitus.it>
5414         * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
5416 2003-05-02  Jonathan Wakely  <redi@gcc.gnu.org>
5418         * include/bits/basic_string.h (swap): Remove redundant template
5419         parameters from declaration of non-template member function.
5421 2003-05-01  Phil Edwards  <pme@gcc.gnu.org>
5423         * acconfig.h (_GLIBCPP_USE_NLS):  New symbol.
5424         * configure.in:  Move libintl.h header test...
5425         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  ...to here.  Gather all
5426         the NLS-related test results into one symbol.
5427         * src/functexcept.cc:  Use it here.
5428         * aclocal.m4, config.h.in, configure:  Regenerated.
5430 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
5432         * include/bits/sstream.tcc (overflow): Instead of calling
5433         str(), then _M_string.reserve, thus copying the contents
5434         of the current buffer two times, just copy the latter in
5435         a temporary, then use the 'swap trick'.
5437 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
5439         * include/std/std_sstream.h (str()): Revert the best of the
5440         previous 'improvement', incorrect due to the COW nature of
5441         v3 basic_string; simplify.
5443 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
5445         * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
5446         type of __avail to ptrdiff_t to avoid signed-unsigned warning.
5448 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
5450         * testsuite/abi_check.cc (check_version): Update known versions.
5451         Check added symbols for version_name != base version. Add missing
5452         symbols to incompatible list.
5454 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
5456         * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
5457         * aclocal.m4: Regenerated.
5458         * configure: Regenerated.
5460 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
5462         * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
5463         Const-ify some variables.
5464         (basic_streambuf::xsputn): Likewise; change the type of some
5465         variables to size_t.
5466         (__copy_streambufs): Change some variables to size_t.
5468 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
5470         * include/std/std_sstream.h (str()): Avoid constructing
5471         a basic_string temporary not only when it would turn out
5472         to be zero-sized but also when identical to the current
5473         _M_string buffer.
5475 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
5477         * include/ext/stdio_filebuf.h
5478         (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
5479         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
5480         Shorten a bit (-10 lines) by factoring out some code.
5482 2003-04-30  Phil Edwards  <pme@gcc.gnu.org>
5484         * acinclude.m4:  Add bit missing from previous patch.
5485         * aclocal.m4, configure:  Regenerated.
5487 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
5489         * docs/doxygen/mainpage.html:  Bring up to date.
5490         * docs/doxygen/run_doxygen:  Cosmetic tweaks.  Work around a bug
5491         in Doxygen.
5492         * docs/doxygen/user.cfg.in:  Scanning the precompiled headers
5493         breaks everything.  Don't scan them.
5494         * docs/html/documentation.html:  Point to "Write after approval"
5495         notes.
5497 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
5499         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  Search for gettext outside
5500         of libc if message translations are being used.  Fix info text in
5501         xieee_1003.1-2001 case.
5502         * aclocal.m4, configure:  Regenerate.
5504 2003-04-29 Joel Sherrill  <joel.sherrill@OARcorp.com>
5505            Loren J. Rittle <ljrittle@acm.org>
5506            Martin v. Loewis  <martin@v.loewis.de>
5508         * config/cpu/i386/atomicity.h: New file.
5510 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
5512         * include/bits/fstream.tcc (open): Change to single return.
5514 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
5516         * include/std/std_sstream.h (underflow): Change to single return.
5518 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
5520         * include/std/std_streambuf.h (_M_buf): is currently
5521         used only for basic_filebuf, therefore move it there.
5522         (basic_streambuf(), ~basic_streambuf()): Adjust.
5523         * include/std/std_fstream.h (_M_buf): Moved here.
5524         * include/std/std_sstream.h (setbuf): Don't set _M_buf,
5525         is actually redundant for basic_stringbuf.
5526         (_M_really_sync): Likewise.
5527         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
5528         * include/bits/sstream.tcc (seekoff): Adjust.
5530 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
5532         * src/localename.cc: Standardize exception strings.
5533         * src/locale.cc: Same.
5534         * src/ios.cc: Same.
5535         * include/bits/basic_string.tcc: Same.
5536         * include/bits/basic_ios.tcc: Same.
5537         * include/std/std_bitset.h: Same.
5538         * include/ext/ropeimpl.h: Same.
5539         * include/bits/stl_vector.h: Same.
5540         * include/bits/stl_deque.h: Same.
5541         * include/bits/stl_bvector.h: Same.
5542         * config/locale/generic/c_locale.cc: Same.
5543         * config/locale/gnu/c_locale.cc: Same.
5544         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
5546         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
5548 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
5550         * include/std/std_streambuf.h (_M_buf_size): is currently
5551         used only for basic_filebuf, therefore move it there.
5552         (basic_streambuf(), ~basic_streambuf()): Adjust.
5553         * include/std/std_fstream.h (_M_buf_size): Moved here.
5554         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
5556 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
5558         * include/bits/streambuf.tcc (__copy_streambufs): Don't use
5559         _M_buf_size (synced input is now correctly dealt with
5560         elsewhere); when the output buffer is full don't fall back
5561         to a snextc-sputc loop, call overflow instead.
5563 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
5565         * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
5566         the innermost 'if' by factoring out some code.
5568 2003-04-28  Phil Edwards  <pme@gcc.gnu.org>
5570         * configure.in:  Test for libintl.h.
5571         * include/bits/c++config:  Define __N for everybody.
5572         * include/bits/basic_string.h, include/bits/stl_bvector.h,
5573         include/bits/stl_deque.h, include/bits/stl_vector.h,
5574         include/std/std_bitset.h:  Wrap all __throw* text with __N.
5575         * po/Makefile.am (pot):  New rule, mostly working.
5576         * src/functexcept.cc:  Call gettext on all __throw* arguments when
5577         -fexceptions is in effect.
5578         * po/Makefile.in, config.h.in, configure:  Regenerate.
5580 2003-04-28  Petur Runolfsson  <peturr02@ru.is>
5582         PR libstdc++/9523
5583         * include/bits/ios_base.h (Init::_S_ios_create,
5584         Init::_S_ios_destroy):  Remove declarations.
5585         (Init::_S_create_buffers,
5586         Init::_S_destroy_buffers):  Declare
5587         * src/ios.cc (Init::_S_ios_create):  Remove
5588         (Init::_S_create_buffers):  Create buffers and add to streams.
5589         (Init::_S_ios_destroy):  Rename to...
5590         (Init::_S_destroy_buffers):  this.
5591         (Init::Init):  Only construct streams once.
5592         (Init::~Init):  Flush streams, don't destroy them.
5593         (ios_base::sync_with_stdio):  Don't destroy streams, only buffers.
5594         * testsuite/27_io/ios_base/sync_with_stdio/9523.cc:  New test.
5595         * testsuite/27_io/objects/char/5.cc:  New test.
5596         * testsuite/27_io/objects/char/5268.cc:  Avoid undefined behavior.
5597         * testsuite/27_io/objects/char/6.cc:  New test.
5598         * testsuite/27_io/objects/char/7.cc:  New test.
5600 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
5602         * testsuite/27_io/objects/char/8.cc:  New test.
5604 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
5606         * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
5607         * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
5609 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
5611         * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
5612         _M_destroy_pback. _M_pback_create to
5613         _M_create_pback. _M_underflow_common to
5614         _M_underflow. _M_really_overflow to _M_overflow.
5615         * include/bits/fstream.tcc: Same.
5616         * src/fstream.cc: Same.
5617         * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
5618         _M_move_in_cur.  _M_out_cur_move to _M_move_out_cur.
5619         * include/bits/streambuf.tcc: Same.
5620         * include/bits/fstream.tcc: Same.
5621         * include/bits/sstream.tcc: Same.
5623 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
5625         * include/bits/locale_classes.h (locale::_Impl): Change _M_names
5626         from fixed size array.
5627         (locale): Change _S_categories as well.
5628         Formatting tweaks.
5629         * include/bits/locale_facets.tcc: Tweak.
5630         * config/locale/gnu/c_locale.cc: Assign _S_categories.
5631         * config/locale/generic/c_locale.cc: Same.
5632         * src/locale.cc: Tweak.
5633         * src/globals.cc: Change facet_name to name_vec, add names_c.
5634         * src/localename.cc: Use them.
5635         (locale::_Impl::~_Impl): Destroy _M_names.
5636         (locale::_Impl::_Impl): Create _M_names.
5638 2003-04-27  Andreas Schwab  <schwab@suse.de>
5640         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
5641         (__enc_traits): Use __ibom and __ebom instead of ignoring them.
5643 2003-04-27  Nathan Myers  <ncm@cantrip.org>
5645         Move some basic_string members out of line because
5646         they are too big to reasonably be inline.
5647         * include/bits/basic_string.h
5648         (assign(const basic_string&, size_type, size_type),
5649         assign(const _CharT*, size_type),
5650         insert(size_type, const basic_string&, size_type, size_type),
5651         insert(size_type, const _CharT*, size_type),
5652         replace(size_type, size_type, const _CharT*, size_type)):
5653         Move from here to...
5654         * include/bits/basic_string.tcc: ...here.
5656 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
5658         * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
5659         the innermost 'if' by factoring out some code.
5661 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
5663         * include/bits/streambuf.tcc (__copy_streambufs): Don't
5664         use in_avail(), simplify.
5666 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
5668         * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
5669         in basic_stringbuf it's unused.
5671         * include/std/std_sstream.h (underflow): consistently use
5672         _M_in_cur, not gptr().
5674 2003-04-25  Ranjit Mathew  <rmathew@hotmail.com>
5675             Phil Edwards  <pme@gcc.gnu.org>
5677         * testsuite_flags.in: Guard against the possibility
5678         of having "xgcc" as a part of a folder name in the
5679         path to the GCC build folder.
5680         * testsuite/Makefile.am: Likewise.
5681         * testsuite/Makefile.in: Regenerated.
5683 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
5685         PR libstdc++/10132
5686         * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
5687         exception specifications.
5688         (basic_filebuf::close): Same.
5689         (basic_filebuf::_M_pback_destroy): Same.
5690         (basic_filebuf::_M_destroy_internal_buffer): Same.
5691         (basic_filebuf): Remove __res_type typedef.
5692         * src/fstream.cc: Same.
5693         * include/bits/fstream.tcc
5694         (basic_filebuf::_M_convert_to_external): Simplify.
5695         (basic_filebuf::seekoff): Use has_facet before use_facet.
5696         (basic_filebuf::close): Add exception specification of throw().
5697         * testsuite/27_io/basic_filebuf/cons: New.
5698         * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
5699         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
5700         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
5701         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
5703 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
5705         * include/bits/locale_classes.h
5706         (locale::_S_extra_categories_size): Remove.
5707         * src/locale.cc: Remove _S_extra_categories_size.
5708         * src/localename.cc: Same.
5709         * config/locale/gnu/c_locale.cc: Same.
5710         * config/locale/generic/c_locale.cc: Same.
5712 2003-04-24  Richard Sandiford  <rsandifo@redhat.com>
5714         * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
5716 2003-04-24  Phil Edwards  <pme@gcc.gnu.org>
5718         * docs/html/17_intro/howto.html:  Update some links.
5719         * docs/html/18_support/howto.html:  Link doxygen numeric_limits notes.
5720         * docs/html/27_io/howto.html:  Link doxygen stdio_filebuf notes.
5721         * docs/html/ext/howto.html:  Link to demangler notes and API.
5722         * docs/html/faq/index.html:  Remove trailing whitespace.
5723         (1.4, 2.4, 3.8, 4.1):  Bring up to date.
5724         (5.6):  Change to a bulleted list.
5726         * docs/html/faq/index.txt, docs/html/documentation.html,
5727         docs/html/17_intro/porting.html:  Regenerate.
5729 2003-04-23  Paolo Carlini  <pcarlini@unitus.it>
5731         * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
5732         belongs to basic_filebuf.
5733         * testsuite/27_io/basic_fstream/3.cc: Likewise.
5734         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
5735         * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
5736         instantiation (now belongs to basic_filebuf).
5737         * testsuite/27_io/basic_iostream/3.cc: Likewise.
5738         * testsuite/27_io/basic_istream/3.cc: Likewise.
5739         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
5740         _S_pback_size now belongs to basic_filebuf.
5741         * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
5742         instantiation (now belongs to basic_filebuf).
5743         * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
5744         belongs to basic_filebuf.
5745         * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
5746         instantiation (now belongs to basic_filebuf).
5747         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
5748         _S_pback_size now belongs to basic_filebuf.
5749         * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
5750         instantiation (now belongs to basic_filebuf).
5751         * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
5752         to basic_filebuf.
5753         * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
5754         instantiation (now belongs to basic_filebuf).
5755         * testsuite/27_io/basic_stringstream/3.cc: Likewise.
5757 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
5759         * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
5760         * configure: Regenerated.
5762 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
5764         * config/locale/generic/c_locale.h (__convert_from_v): Use
5765         attribute unused.
5767 2003-04-23  Phil Edwards  <pme@gcc.gnu.org>
5769         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 60, partial
5770         implementation only.
5771         * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
5772         Comment and change to comply with DR 60 and the effect on gcount().
5773         * include/std/std_istream.h:  Update comments.
5774         * testsuite/27_io/basic_istream/putback/char/1.cc (test01):  Add
5775         comments about reasons for tests.  Test sync() against gcount().
5776         * testsuite/27_io/basic_istream/seekg/char/2.cc:  New file, test
5777         for effect on gcount().
5778         * testsuite/27_io/basic_istream/tellg/char/2.cc:  New file, test
5779         for effect on gcount().
5781 2003-04-22  Loren J. Rittle  <ljrittle@acm.org>
5783         * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
5784         Adjust timing.
5786 2003-04-22  Paolo Carlini  <pcarlini@unitus.it>
5788         * include/std/std_streambuf.h (_S_pback_size, _M_pback,
5789         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
5790         _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
5791         (basic_streambuf::basic_streambuf()): Adjust.
5792         * include/std/std_fstream.h (_S_pback_size, _M_pback,
5793         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
5794         _M_pback_create(), _M_pback_destroy()): Moved here
5795         from basic_streambuf.
5796         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
5797         Adjust.
5798         (basic_filebuf::_S_pback_size): Add declaration.
5799         * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
5800         Remove declaration.
5802 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
5804         Consistently use _M_in_beg instead of eback(), _M_in_cur
5805         instead of gptr(), and so on.
5806         * include/bits/fstream.tcc (pbackfail, imbue): Here.
5807         * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
5808         * include/bits/streambuf.tcc (sbumpc, sputbackc,
5809         __copy_streambufs): Ditto.
5810         * include/std/std_streambuf.h (sgetc): Ditto.
5812 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
5814         * include/bits/sstream.tcc (pbackfail, overflow):
5815         Formatting fixes.
5817 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
5819         * include/std/std_streambuf.h (uflow()): It's used only by
5820         basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
5821         therefore do not consider the _M_buf_unified == true case.
5823         * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
5825 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
5827         * docs/html/ext/howto.html ('LWG Issues'):
5828         Add issues 19, 90, 171, 231, 271.
5830 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
5832         * include/bits/sstream.tcc (pbackfail): Remove redundant
5833         NULL pointer check from test involving _M_in_*.
5834         (overflow, seekoff, seekpos): Const qualify bool variables.
5835         * include/std/std_sstream.h (underflow): Remove redundant
5836         NULL pointer check from test involving _M_in_*.
5837         (_M_really_sync): Const qualify bool variables.
5838         * src/fstream.cc (_M_underflow_common): Remove redundant
5839         NULL pointer check from test involving _M_in_*, const qualify
5840         bool variables.
5842         * include/std/std_streambuf.h (sgetc): Remove redundant
5843         variable.
5845 2003-04-18  Paolo Carlini  <pcarlini@unitus.it>
5847         According to 5.9 para 2 (second bullet) for pointers p, q
5848         pointing to the same type, with  p == 0 and q == 0, (p < q)
5849         is false.
5850         * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
5851         seekoff): Remove redundant NULL pointer checks from tests
5852         involving _M_out_* and _M_in_*, const qualify bool variables.
5853         (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
5854         qualify bool variables.
5855         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
5856         Remove redundant NULL pointer checks from tests involving
5857         _M_out_* and _M_in_*, const qualify bool variables.
5858         * include/std/std_fstream.h (sync): Likewise.
5859         (_M_is_indeterminate): Const qualify bool variables.
5860         * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
5861         NULL pointer checks from tests involving _M_out_* and _M_in_*,
5862         const qualify bool variables.
5863         (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
5864         variables.
5866 2003-04-18  Loren J. Rittle  <ljrittle@acm.org>
5868         * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
5869         C99 FP macros, if actually captured.
5871         * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
5872         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
5873         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
5874         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
5875         * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
5876         New macro.
5877         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
5878         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
5879         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
5880         * include/c_std/std_cstdlib.h: Use new macros.
5881         * include/c_std/std_cstdio.h: Use new macros.
5882         * include/c_std/std_cwchar.h: Use new macros.
5884 2003-04-17  Benjamin Kosnik  <bkoz@redhat.com>
5886         PR libstdc++/9555
5887         * include/bits/ostream.tcc: Catch all exceptions for formatted
5888         output, instead of std::exception and derivatives.
5889         * include/bits/istream.tcc: Same.
5890         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
5891         * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
5892         * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
5893         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
5894         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
5895         * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
5896         New.
5898 2003-04-17  Phil Edwards  <pme@gcc.gnu.org>
5900         * include/bits/c++config:  Minor cosmetic tweaks.
5902 2003-04-17  Loren J. Rittle  <ljrittle@acm.org>
5904         * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
5905         * include/Makefile.am (pch_input): Find in ${target_builddir}.
5906         (pch_output): Rename to...
5907         (pch_output_builddir): ..this.  Find in ${target_builddir}.
5908         (pch_source): Tweak.
5909         (pch_build): Key off a built file.
5910         (pch_output rule): Rename to...
5911         (pch_input rule): ...this.  Produce ${pch_output_builddir}
5912         instead of ${pch_output}.
5913         (install-pch rule): Install ${pch_output_builddir}.
5914         * include/Makefile.in: Regenerated.
5916 2003-04-17  Paolo Carlini  <pcarlini@unitus.it>
5918         * include/std/std_streambuf.h (setp): _M_out_lim, being
5919         the end limit of used put area, is set equal to _M_out_beg.
5921 2003-04-16  Benjamin Kosnik  <bkoz@redhat.com>
5923         * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
5924         * aclocal.m4: Regenerated.
5925         * configure.in: Remove old demangler bits.
5926         Call pch checks.
5927         * configure: Regenerate.
5928         * config.h.in: Regenerate.
5929         * include/Makefile.am (allstamps): Now allstamped.
5930         (allcreated): Define this.
5931         (all-local): Use 'em.
5932         Conditionally define pch_build, pch_install based on
5933         GLIBCPP_BUILD_PCH.
5934         (${pch_output}): New rule.
5935         (install-pch): New rule.
5936         (install-headers): New rule.
5937         (install-data-local): Install headers and conditionally pch.
5938         * include/Makefile.in: Regenerate.
5939         * testsuite_flags.in (--build-cxx): Use pch file.
5941 2003-04-16  Jonathan Wakely  <redi@gcc.gnu.org>
5943         * docs/html/ext/sgiexts.html: Fix path to stylesheet.
5945 2003-04-15  Benjamin Kosnik  <bkoz at redhat dot com>
5946             Paolo Carlini  <pcarlini at unitus dot it>
5948         PR libstdc++/9423
5949         * docs/html/27_io/howto.html
5950         ('The buffering is screwing up my program!'): Explain that
5951         opening counts as an I/O operation.
5953 2003-04-15  Andreas Tobler  <a.tobler@schweiz.ch>
5955         * testsuite/thread/pthread1.cc: Enable for darwin test.
5956         * testsuite/thread/pthread2.cc: Same.
5957         * testsuite/thread/pthread3.cc: Same.
5958         * testsuite/thread/pthread4.cc: Same.
5959         * testsuite/thread/pthread5.cc: Same.
5960         * testsuite/thread/pthread6.cc: Same.
5962 2003-04-15  Loren J. Rittle  <ljrittle@acm.org>
5964         libstdc++/7680
5965         * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
5966         Populate it with multiple legal ways to obtain the C99 float
5967         transcendentals.  Use them instead of direct global reference.
5968         (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
5969         * docs/html/17_intro/porting.texi
5970         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
5971         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
5972         (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
5973         * config/os/bsd/freebsd/os_defines.h
5974         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
5975         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
5976         * testsuite/26_numerics/c_math_dynamic.cc: New file.
5978 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
5979             Benjamin Kosnik  <bkoz@redhat.com>
5981         * config/os/generic/ctype_inline.h: Fix.
5983 2003-04-14  Benjamin Kosnik  <bkoz@redhat.com>
5985         * testsuite/testsuite_hooks.h
5986         (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
5987         Change to try_named_locale.
5988         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
5990         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
5991         try_named_locale.
5992         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
5993         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
5994         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
5995         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
5996         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
5997         * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
5998         * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
5999         * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
6000         * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
6001         * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
6002         * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
6003         * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
6004         * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
6005         * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
6006         * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
6007         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
6008         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
6009         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
6010         * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
6011         * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
6012         * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
6013         * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
6014         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
6015         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
6016         * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
6017         * testsuite/22_locale/collate/compare/char/1.cc: Same.
6018         * testsuite/22_locale/collate/compare/char/2.cc: Same.
6019         * testsuite/22_locale/collate/compare/char/3.cc: Same.
6020         * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
6021         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
6022         * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
6023         * testsuite/22_locale/collate/hash/char/2.cc: Same.
6024         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
6025         * testsuite/22_locale/collate/transform/char/2.cc: Same.
6026         * testsuite/22_locale/collate/transform/char/3.cc: Same.
6027         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
6028         * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
6029         * testsuite/22_locale/collate_byname/1.cc: Same.
6030         * testsuite/22_locale/ctype/is/char/2.cc: Same.
6031         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
6032         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
6033         * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
6034         * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
6035         * testsuite/22_locale/facet/2.cc: Same.
6036         * testsuite/22_locale/locale/cons/2.cc: Same.
6037         * testsuite/22_locale/locale/cons/4.cc: Same.
6038         * testsuite/22_locale/locale/cons/5.cc: Same.
6039         * testsuite/22_locale/locale/cons/7.cc: Same.
6040         * testsuite/22_locale/locale/cons/7222-c.cc: Same.
6041         * testsuite/22_locale/locale/cons/7222-env.cc: Same.
6042         * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
6043         * testsuite/22_locale/messages/members/char/1.cc: Same.
6044         * testsuite/22_locale/messages/members/char/2.cc: Same.
6045         * testsuite/22_locale/messages/members/char/3.cc: Same.
6046         * testsuite/22_locale/messages_byname/1.cc: Same.
6047         * testsuite/22_locale/money_get/get/char/1.cc: Same.
6048         * testsuite/22_locale/money_get/get/char/2.cc: Same.
6049         * testsuite/22_locale/money_get/get/char/3.cc: Same.
6050         * testsuite/22_locale/money_get/get/char/4.cc: Same.
6051         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
6052         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
6053         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
6054         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
6055         * testsuite/22_locale/money_put/put/char/1.cc: Same.
6056         * testsuite/22_locale/money_put/put/char/2.cc: Same.
6057         * testsuite/22_locale/money_put/put/char/3.cc: Same.
6058         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
6059         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
6060         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
6061         * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
6062         * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
6063         * testsuite/22_locale/moneypunct_byname/1.cc: Same.
6064         * testsuite/22_locale/num_get/get/char/1.cc: Same.
6065         * testsuite/22_locale/num_get/get/char/2.cc: Same.
6066         * testsuite/22_locale/num_get/get/char/3.cc: Same.
6067         * testsuite/22_locale/num_get/get/char/5.cc: Same.
6068         * testsuite/22_locale/num_get/get/char/6.cc: Same.
6069         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
6070         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
6071         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
6072         * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
6073         * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
6074         * testsuite/22_locale/num_put/put/char/1.cc: Same.
6075         * testsuite/22_locale/num_put/put/char/2.cc: Same.
6076         * testsuite/22_locale/num_put/put/char/3.cc: Same.
6077         * testsuite/22_locale/num_put/put/char/5.cc: Same.
6078         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
6079         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
6080         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
6081         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
6082         * testsuite/22_locale/numpunct/members/char/1.cc: Same.
6083         * testsuite/22_locale/numpunct/members/char/2.cc: Same.
6084         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
6085         * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
6086         * testsuite/22_locale/numpunct_byname/1.cc: Same.
6087         * testsuite/22_locale/numpunct_byname/2.cc: Same.
6088         * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
6089         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
6090         * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
6091         * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
6092         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
6093         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
6094         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
6095         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
6096         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
6097         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
6098         * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
6099         * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
6100         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
6101         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
6102         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
6103         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
6104         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
6105         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
6106         * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
6107         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
6108         * testsuite/22_locale/time_put/put/char/1.cc: Same.
6109         * testsuite/22_locale/time_put/put/char/2.cc: Same.
6110         * testsuite/22_locale/time_put/put/char/3.cc: Same.
6111         * testsuite/22_locale/time_put/put/char/4.cc: Same.
6112         * testsuite/22_locale/time_put/put/char/5.cc: Same.
6113         * testsuite/22_locale/time_put/put/char/6.cc: Same.
6114         * testsuite/22_locale/time_put/put/char/7.cc: Same.
6115         * testsuite/22_locale/time_put/put/char/8.cc: Same.
6116         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
6117         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
6118         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
6119         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
6120         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
6121         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
6122         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
6123         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
6124         * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
6125         * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
6126         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
6127         * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
6128         * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
6130 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
6132         * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
6133         solaris includes, not generic.
6135 2003-04-14  Loren J. Rittle  <ljrittle@acm.org>
6137         * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
6139         * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
6140         * include/bits/concept_check.h: Fix multi-line comment.
6141         * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
6142         when target is *-*-freebsd*.
6144 2003-04-14  Nathan Myers  <ncm@cantrip.org>
6145             Paolo Carlini  <pcarlini@unitus.it>
6147         PR libstdc++/9701 (in_avail())
6148         * include/std/std_streambuf.h (in_avail): Simplify, in_avail
6149         doesn't care if there is anything in some putback cell.
6150         * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
6152         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
6153         unused string literals.
6155 2003-04-14  Paolo Carlini  <pcarlini@unitus.it>
6157         * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
6158         _M_out_end, _M_set_indeterminate() does it.
6160 2003-04-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6162         * os/hpux/ctype_inline.h: Replace with gnu-linux version.
6164 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
6166         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
6167         Change basic_streambuf instantiation to "unsigned char".
6168         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
6170 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
6172         Remove _M_buf_size_opt, use directly _M_buf_size instead.
6173         * include/bits/fstream.tcc
6174         (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
6175         references to _M_buf_size_opt.
6176         * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
6177         * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
6178         __bufsize to __in_avail and __size_opt to __buf_size.
6179         * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
6180         * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
6181         * include/std/std_streambuf.h (~basic_streambuf(),
6182         basic_streambuf()): Likewise, remove _M_buf_size_opt member.
6183         * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
6184         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
6185         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
6186         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
6187         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
6188         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
6189         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
6190         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
6191         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
6192         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
6193         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
6194         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
6196 2003-04-12  Paolo Carlini  <pcarlini at unitus dot it>
6198         * include/ext/stdio_filebuf.h
6199         (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
6200         stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
6201         _M_buf_size_opt == 0 only means "not to use an allocated buffer"
6202         since a stack-based buffer is used for small values of the size_t
6203         parameter.
6204         * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
6205         If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
6206         * testsuite/ext/stdio_filebuf_2.cc: New testfile.
6208 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
6210         PR libstdc++/9533
6211         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
6212         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
6214 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
6216         * testsuite/22_locale/locale/cons/3.cc: Split.
6217         * testsuite/22_locale/locale/cons/7222-c.cc: New.
6218         * testsuite/22_locale/locale/cons/7222-env.cc: New.
6219         Check before trying to create a locale from the environment.
6220         * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
6221         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
6222         Adjust includes.
6224 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
6226         * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
6227         locale to construct this hybrid locale, not the global locale.
6229 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
6231         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
6232         instantiation for AIX.
6233         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
6234         * testsuite/25_algorithms/min_max.cc: Same.
6236 2003-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6238         * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
6239         twice.  Always set _M_cfile to 0 when stream was open.
6241 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
6243         Reshuffle 27_io testsuite.  
6244         * testsuite/27_io/filebuf.cc,
6245         filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
6246         filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
6247         filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
6248         filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
6249         ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
6250         ifstream_members.cc, instantiations.cc, ios.cc,
6251         ios_base_callbacks.cc, ios_base_members_static-1.tst,
6252         ios_base_members_static.cc, ios_base_storage.cc,
6253         ios_base_types.cc, ios_ctor.cc, ios_init.cc,
6254         ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
6255         iostream.cc, iostream_members.cc, istream.cc,
6256         istream_exception.cc, istream_extractor_char.cc,
6257         istream_extractor_other-1.tst, istream_extractor_other-1.txt,
6258         istream_extractor_other-2.tst, istream_extractor_other.cc,
6259         istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
6260         istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
6261         istream_sentry.cc, istream_unformatted-1.tst,
6262         istream_unformatted-1.txt, istream_unformatted.cc,
6263         istringstream.cc, istringstream_members.cc,
6264         narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
6265         ofstream_members.cc, ostream.cc, ostream_exception.cc,
6266         ostream_fail.cc, ostream_inserter_arith.cc,
6267         ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
6268         ostream_inserter_char.cc, ostream_inserter_other-1.tst,
6269         ostream_inserter_other-2.tst, ostream_inserter_other.cc,
6270         ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
6271         ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
6272         ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
6273         streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
6274         stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
6275         wide_stream_objects.cc, istream_extractor_arith/01.cc,
6276         istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
6277         istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
6278         istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
6279         istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
6280         istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
6281         Split into...
6282         * 27_io/basic_filebuf/1.cc: New.
6283         * 27_io/basic_filebuf/2.cc: New.
6284         * 27_io/basic_filebuf/3.cc: New.
6285         * 27_io/basic_filebuf/4.cc: New.
6286         * 27_io/basic_filebuf/close/char/1.cc: New.
6287         * 27_io/basic_filebuf/close/char/2.cc: New.
6288         * 27_io/basic_filebuf/close/char/3.cc: New.
6289         * 27_io/basic_filebuf/close/char/4879.cc: New.
6290         * 27_io/basic_filebuf/close/char/9964.cc: New.
6291         * 27_io/basic_filebuf/imbue/char/1.cc: New.
6292         * 27_io/basic_filebuf/imbue/char/9322.cc: New.
6293         * 27_io/basic_filebuf/in_avail/char/1.cc: New.
6294         * 27_io/basic_filebuf/is_open/char/1.cc: New.
6295         * 27_io/basic_filebuf/open/char/1.cc: New.
6296         * 27_io/basic_filebuf/open/char/2.cc: New.
6297         * 27_io/basic_filebuf/open/char/3.cc: New.
6298         * 27_io/basic_filebuf/open/char/9507.cc: New.
6299         * 27_io/basic_filebuf/overflow/char/1.cc: New.
6300         * 27_io/basic_filebuf/overflow/char/3599.cc: New.
6301         * 27_io/basic_filebuf/overflow/char/9169.cc: New.
6302         * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
6303         * 27_io/basic_filebuf/overflow/char/9988.cc: New.
6304         * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
6305         * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
6306         * 27_io/basic_filebuf/seekoff/char/1.cc: New.
6307         * 27_io/basic_filebuf/seekoff/char/2.cc: New.
6308         * 27_io/basic_filebuf/seekpos/char/1.cc: New.
6309         * 27_io/basic_filebuf/seekpos/char/2.cc: New.
6310         * 27_io/basic_filebuf/setbuf/char/1.cc: New.
6311         * 27_io/basic_filebuf/setbuf/char/2.cc: New.
6312         * 27_io/basic_filebuf/setbuf/char/3.cc: New.
6313         * 27_io/basic_filebuf/sgetc/char/1.cc: New.
6314         * 27_io/basic_filebuf/sgetn/char/1.cc: New.
6315         * 27_io/basic_filebuf/sgetn/char/2.cc: New.
6316         * 27_io/basic_filebuf/snextc/char/1.cc: New.
6317         * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
6318         * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
6319         * 27_io/basic_filebuf/sputc/char/1.cc: New.
6320         * 27_io/basic_filebuf/sputc/char/1057.cc: New.
6321         * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
6322         * 27_io/basic_filebuf/sputn/char/1.cc: New.
6323         * 27_io/basic_filebuf/sputn/char/1057.cc: New.
6324         * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
6325         * 27_io/basic_filebuf/sungetc/char/1.cc: New.
6326         * 27_io/basic_filebuf/sync/char/1057.cc: New.
6327         * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
6328         * 27_io/basic_filebuf/underflow/char/10097.cc: New.
6329         * 27_io/basic_fstream/1.cc: New.
6330         * 27_io/basic_fstream/2.cc: New.
6331         * 27_io/basic_fstream/3.cc: New.
6332         * 27_io/basic_fstream/4.cc: New.
6333         * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
6334         * 27_io/basic_ifstream/1.cc: New.
6335         * 27_io/basic_ifstream/2.cc: New.
6336         * 27_io/basic_ifstream/3.cc: New.
6337         * 27_io/basic_ifstream/4.cc: New.
6338         * 27_io/basic_ifstream/cons/char/1.cc: New.
6339         * 27_io/basic_ifstream/open/char/1.cc: New.
6340         * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
6341         * 27_io/basic_ios/1.cc: New.
6342         * 27_io/basic_ios/2.cc: New.
6343         * 27_io/basic_ios/3.cc: New.
6344         * 27_io/basic_ios/4.cc: New.
6345         * 27_io/basic_ios/clear/char/1.cc: New.
6346         * 27_io/basic_ios/cons/char/1.cc: New.
6347         * 27_io/basic_ios/cons/char/2.cc: New.
6348         * 27_io/basic_ios/cons/char/3.cc: New.
6349         * 27_io/basic_ios/copyfmt/char/1.cc: New.
6350         * 27_io/basic_ios/copyfmt/char/2.cc: New.
6351         * 27_io/basic_ios/exceptions/char/1.cc: New.
6352         * 27_io/basic_ios/locales/char/1.cc: New.
6353         * 27_io/basic_iostream/1.cc: New.
6354         * 27_io/basic_iostream/2.cc: New.
6355         * 27_io/basic_iostream/3.cc: New.
6356         * 27_io/basic_iostream/4.cc: New.
6357         * 27_io/basic_istream/1.cc: New.
6358         * 27_io/basic_istream/2.cc: New.
6359         * 27_io/basic_istream/3.cc: New.
6360         * 27_io/basic_istream/4.cc: New.
6361         * 27_io/basic_istream/exceptions/char/9561.cc: New.
6362         * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
6363         * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
6364         * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
6365         * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
6366         * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
6367         * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
6368         * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
6369         * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
6370         * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
6371         * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
6372         * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
6373         * 27_io/basic_istream/extractors_character/char/1.cc: New.
6374         * 27_io/basic_istream/extractors_character/char/2.cc: New.
6375         * 27_io/basic_istream/extractors_character/char/3.cc: New.
6376         * 27_io/basic_istream/extractors_character/char/9826.cc: New.
6377         * 27_io/basic_istream/extractors_other/char/1.cc: New.
6378         * 27_io/basic_istream/extractors_other/char/2.cc: New.
6379         * 27_io/basic_istream/extractors_other/char/3.cc: New.
6380         * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
6381         * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
6382         * 27_io/basic_istream/get/char/1.cc: New.
6383         * 27_io/basic_istream/get/char/2.cc: New.
6384         * 27_io/basic_istream/getline/char/1.cc: New.
6385         * 27_io/basic_istream/getline/char/2.cc: New.
6386         * 27_io/basic_istream/getline/char/3.cc: New.
6387         * 27_io/basic_istream/ignore/char/1.cc: New.
6388         * 27_io/basic_istream/ignore/char/6360.cc: New.
6389         * 27_io/basic_istream/ignore/char/7220.cc: New.
6390         * 27_io/basic_istream/peek/char/1.cc: New.
6391         * 27_io/basic_istream/peek/char/6414.cc: New.
6392         * 27_io/basic_istream/putback/char/1.cc: New.
6393         * 27_io/basic_istream/read/char/1.cc: New.
6394         * 27_io/basic_istream/read/char/2.cc: New.
6395         * 27_io/basic_istream/read/char/3.cc: New.
6396         * 27_io/basic_istream/readsome/char/6746-1.cc: New.
6397         * 27_io/basic_istream/readsome/char/6746-2.cc: New.
6398         * 27_io/basic_istream/readsome/char/8258.cc: New.
6399         * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
6400         * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
6401         * 27_io/basic_istream/seekg/char/8348-1.cc: New.
6402         * 27_io/basic_istream/seekg/char/8348-2.cc: New.
6403         * 27_io/basic_istream/seekg/char/fstream.cc: New.
6404         * 27_io/basic_istream/seekg/char/sstream.cc: New.
6405         * 27_io/basic_istream/sentry/char/1.cc: New.
6406         * 27_io/basic_istream/sentry/char/2.cc: New.
6407         * 27_io/basic_istream/sentry/char/3.cc: New.
6408         * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
6409         * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
6410         * 27_io/basic_istream/tellg/char/1.cc: New.
6411         * 27_io/basic_istream/tellg/char/8348.cc: New.
6412         * 27_io/basic_istream/tellg/char/fstream.cc: New.
6413         * 27_io/basic_istream/tellg/char/sstream.cc: New.
6414         * 27_io/basic_istream/ws/char/1.cc: New.
6415         * 27_io/basic_istringstream/1.cc: New.
6416         * 27_io/basic_istringstream/2.cc: New.
6417         * 27_io/basic_istringstream/3.cc: New.
6418         * 27_io/basic_istringstream/4.cc: New.
6419         * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
6420         * 27_io/basic_istringstream/str/char/1.cc: New.
6421         * 27_io/basic_ofstream/1.cc: New.
6422         * 27_io/basic_ofstream/2.cc: New.
6423         * 27_io/basic_ofstream/3.cc: New.
6424         * 27_io/basic_ofstream/4.cc: New.
6425         * 27_io/basic_ofstream/cons/char/2.cc: New.
6426         * 27_io/basic_ofstream/open/char/1.cc: New.
6427         * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
6428         * 27_io/basic_ostream/1.cc: New.
6429         * 27_io/basic_ostream/2.cc: New.
6430         * 27_io/basic_ostream/3.cc: New.
6431         * 27_io/basic_ostream/4.cc: New.
6432         * 27_io/basic_ostream/cons/char/9827.cc: New.
6433         * 27_io/basic_ostream/endl/char/1.cc: New.
6434         * 27_io/basic_ostream/ends/char/1.cc: New.
6435         * 27_io/basic_ostream/ends/char/2.cc: New.
6436         * 27_io/basic_ostream/exceptions/char/9561.cc: New.
6437         * 27_io/basic_ostream/flush/char/1.cc: New.
6438         * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
6439         * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
6440         * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
6441         * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
6442         * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
6443         * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
6444         * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
6445         * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
6446         * 27_io/basic_ostream/inserters_character/char/1.cc: New.
6447         * 27_io/basic_ostream/inserters_character/char/2.cc: New.
6448         * 27_io/basic_ostream/inserters_character/char/3.cc: New.
6449         * 27_io/basic_ostream/inserters_character/char/4.cc: New.
6450         * 27_io/basic_ostream/inserters_character/char/5.cc: New.
6451         * 27_io/basic_ostream/inserters_character/char/6.cc: New.
6452         * 27_io/basic_ostream/inserters_character/char/8.cc: New.
6453         * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
6454         * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
6455         * 27_io/basic_ostream/inserters_other/char/1.cc: New.
6456         * 27_io/basic_ostream/inserters_other/char/2.cc: New.
6457         * 27_io/basic_ostream/inserters_other/char/3.cc: New.
6458         * 27_io/basic_ostream/inserters_other/char/4.cc: New.
6459         * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
6460         * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
6461         * 27_io/basic_ostream/sentry/char/1.cc: New.
6462         * 27_io/basic_ostream/sentry/char/2.cc: New.
6463         * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
6464         * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
6465         * 27_io/basic_ostream/tellp/char/1.cc: New.
6466         * 27_io/basic_ostream/tellp/char/2.cc: New.
6467         * 27_io/basic_ostringstream/1.cc: New.
6468         * 27_io/basic_ostringstream/2.cc: New.
6469         * 27_io/basic_ostringstream/3.cc: New.
6470         * 27_io/basic_ostringstream/4.cc: New.
6471         * 27_io/basic_ostringstream/cons/char/3.cc: New.
6472         * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
6473         * 27_io/basic_ostringstream/str/char/1.cc: New.
6474         * 27_io/basic_ostringstream/str/char/2.cc: New.
6475         * 27_io/basic_streambuf/1.cc: New.
6476         * 27_io/basic_streambuf/2.cc: New.
6477         * 27_io/basic_streambuf/3.cc: New.
6478         * 27_io/basic_streambuf/cons/char/1.cc: New.
6479         * 27_io/basic_streambuf/imbue/char/1.cc: New.
6480         * 27_io/basic_streambuf/imbue/char/9322.cc: New.
6481         * 27_io/basic_streambuf/overflow/char/1.cc: New.
6482         * 27_io/basic_streambuf/overflow/char/2.cc: New.
6483         * 27_io/basic_streambuf/overflow/char/3599.cc: New.
6484         * 27_io/basic_streambuf/sgetc/char/1.cc: New.
6485         * 27_io/basic_streambuf/sgetn/char/1.cc: New.
6486         * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
6487         * 27_io/basic_streambuf/sputc/char/1057.cc: New.
6488         * 27_io/basic_streambuf/sputn/char/1.cc: New.
6489         * 27_io/basic_streambuf/sputn/char/1057.cc: New.
6490         * 27_io/basic_streambuf/sync/char/1057.cc: New.
6491         * 27_io/basic_stringbuf/1.cc: New.
6492         * 27_io/basic_stringbuf/2.cc: New.
6493         * 27_io/basic_stringbuf/3.cc: New.
6494         * 27_io/basic_stringbuf/4.cc: New.
6495         * 27_io/basic_stringbuf/5.cc: New.
6496         * 27_io/basic_stringbuf/imbue/char/1.cc: New.
6497         * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
6498         * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
6499         * 27_io/basic_stringbuf/overflow/char/2.cc: New.
6500         * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
6501         * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
6502         * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
6503         * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
6504         * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
6505         * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
6506         * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
6507         * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
6508         * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
6509         * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
6510         * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
6511         * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
6512         * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
6513         * 27_io/basic_stringbuf/snextc/char/1.cc: New.
6514         * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
6515         * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
6516         * 27_io/basic_stringbuf/sputc/char/1.cc: New.
6517         * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
6518         * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
6519         * 27_io/basic_stringbuf/sputn/char/1.cc: New.
6520         * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
6521         * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
6522         * 27_io/basic_stringbuf/str/char/1.cc: New.
6523         * 27_io/basic_stringbuf/str/char/2.cc: New.
6524         * 27_io/basic_stringbuf/str/char/3.cc: New.
6525         * 27_io/basic_stringbuf/str/char/3955.cc: New.
6526         * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
6527         * 27_io/basic_stringbuf/sync/char/1057.cc: New.
6528         * 27_io/basic_stringstream/1.cc: New.
6529         * 27_io/basic_stringstream/2.cc: New.
6530         * 27_io/basic_stringstream/3.cc: New.
6531         * 27_io/basic_stringstream/4.cc: New.
6532         * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
6533         * 27_io/basic_stringstream/str/char/1.cc: New.
6534         * 27_io/basic_stringstream/str/char/2.cc: New.
6535         * 27_io/basic_stringstream/str/char/3.cc: New.
6536         * 27_io/basic_stringstream/str/char/4.cc: New.
6537         * 27_io/fpos/1.cc: New.
6538         * 27_io/fpos/2.cc: New.
6539         * 27_io/fpos/3.cc: New.
6540         * 27_io/ios_base/callbacks/1.cc: New.
6541         * 27_io/ios_base/state/1.cc: New.
6542         * 27_io/ios_base/storage/1.cc: New.
6543         * 27_io/ios_base/storage/2.cc: New.
6544         * 27_io/ios_base/storage/3.cc: New.
6545         * 27_io/ios_base/sync_with_stdio/1.cc: New.
6546         * 27_io/ios_base/sync_with_stdio/2.cc: New.
6547         * 27_io/manipulators/adjustfield/char/1.cc: New.
6548         * 27_io/manipulators/adjustfield/char/2.cc: New.
6549         * 27_io/manipulators/basefield/char/1.cc: New.
6550         * 27_io/manipulators/standard/char/1.cc: New.
6551         * 27_io/manipulators/standard/char/2.cc: New.
6552         * 27_io/objects/char/1.cc: New.
6553         * 27_io/objects/char/2.cc: New.
6554         * 27_io/objects/char/2523-1_xin.cc: New.
6555         * 27_io/objects/char/2523-1_xin.in: New.
6556         * 27_io/objects/char/2523-2_xin.cc: New.
6557         * 27_io/objects/char/2523-2_xin.in: New.
6558         * 27_io/objects/char/3045.cc: New.
6559         * 27_io/objects/char/3647.cc: New.
6560         * 27_io/objects/char/3_xin.cc: New.
6561         * 27_io/objects/char/3_xin.in: New.
6562         * 27_io/objects/char/4_xin.cc: New.
6563         * 27_io/objects/char/4_xin.in: New.
6564         * 27_io/objects/char/5268.cc: New.
6565         * 27_io/objects/char/5280_xin.cc: New.
6566         * 27_io/objects/char/5280_xin.in: New.
6567         * 27_io/objects/char/6548_xin.cc: New.
6568         * 27_io/objects/char/6548_xin.in: New.
6569         * 27_io/objects/char/6648-1_xin.cc: New.
6570         * 27_io/objects/char/6648-1_xin.in: New.
6571         * 27_io/objects/char/6648-2_xin.cc: New.
6572         * 27_io/objects/char/6648-2_xin.in: New.
6573         * 27_io/objects/char/7744_xin.cc: New.
6574         * 27_io/objects/char/7744_xin.in: New.
6575         * 27_io/objects/wchar_t/1.cc: New.
6576         * 27_io/types/1.cc: New.
6577         * 27_io/types/2.cc: New.
6578         * data/filebuf_members-1.tst: New.
6579         * data/filebuf_members-1.txt: New.
6580         * data/filebuf_virtuals-1.tst: New.
6581         * data/filebuf_virtuals-1.txt: New.
6582         * data/filebuf_virtuals-2.tst: New.
6583         * data/filebuf_virtuals-3.tst: New.
6584         * data/ifstream_members-1.tst: New.
6585         * data/ifstream_members-1.txt: New.
6586         * data/ios_base_members_static-1.tst: New.
6587         * data/istream_extractor_other-1.tst: New.
6588         * data/istream_extractor_other-1.txt: New.
6589         * data/istream_extractor_other-2.tst: New.
6590         * data/istream_seeks-1.tst: New.
6591         * data/istream_seeks-1.txt: New.
6592         * data/istream_seeks-2.tst: New.
6593         * data/istream_seeks-3.tst: New.
6594         * data/istream_unformatted-1.tst: New.
6595         * data/istream_unformatted-1.txt: New.
6596         * data/ofstream_members-1.tst: New.
6597         * data/ostream_inserter_char-1.tst: New.
6598         * data/ostream_inserter_char-1.txt: New.
6599         * data/ostream_inserter_other-1.tst: New.
6600         * data/ostream_inserter_other-2.tst: New.
6601         * data/ostream_seeks-1.tst: New.
6603 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
6605         * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
6606         requirement that __mode must be strict input or output.
6608         * include/std/std_streambuf.h (basic_streambuf::setp): Set
6609         _M_out_lim.
6611         * include/std/std_sstream.h (basic_strinbuf::str): Zero length
6612         output string shouldn't core.
6613         (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
6614         type.
6615         * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
6617         * include/bits/istream.tcc (basic_istream::putback): Set gcount to
6618         zero.
6620 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
6622         * testsuite/data: New directory.
6623         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
6624         to copy files from the testsuite data directory.
6625         (libstdc++-v3-list-sourcefiles): Add another test list filter, for
6626         testfiles containing _xin, which now means this is an interactive
6627         test and should be run with the interactive dejagnu hooks.
6628         * testsuite/Makefile.am: Remove testsuite_* files.
6629         * testsuite/Makefile.in: Regenerate.
6631 2003-04-09  Zack Weinberg  <zack@codesourcery.com>
6633         * docs/html/install.html: Document complete list of locales
6634         required by test suite.  Document procedure for installing
6635         said locales under Debian.  Solicit instructions for other
6636         operating systems.
6638 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
6640         * include/bits/sstream.tcc (overflow): Make sure operands of min
6641         and max have the same type.
6643 2003-04-04  Jerry Quinn  <jlquinn@optonline.net>
6645         PR libstdc++/10276
6646         * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
6647         initialization.
6649 2003-03-31  Paolo Carlini  <pcarlini@unitus.it>
6651         * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
6652         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
6653         Don't set _M_out_end.
6654         (basic_filebuf::overflow): Replace _M_out_buf_size() with
6655         this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
6656         * include/bits/sstream.tcc (basic_stringbuf::overflow):
6657         Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
6658         * include/bits/streambuf.tcc (basic_streambuf::sputc):
6659         Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
6660         (basic_streambuf::xsputn): Replace _M_out_buf_size() with
6661         _M_out_end - _M_out_cur.
6662         (__copy_streambufs): Likewise.
6663         * include/std/std_fstream.h (_M_set_determinate): Set
6664         _M_out_end here.
6666 2003-03-30  Paolo Carlini  <pcarlini@unitus.it>
6668         * include/bits/fstream.tcc (basic_filebuf::showmanyc,
6669         _M_convert_to_external, _M_really_overflow, seekoff): Fix
6670         test for synced buffer.
6671         * include/std/std_fstream.h (sync): Likewise.
6672         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
6673         basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
6675 2003-03-28  Benjamin Kosnik  <bkoz@redhat.com>
6677         * include/std/std_sstream.h (basic_istringstream): Adjust
6678         initialization.
6679         (basic_ostringstream): Same.
6680         (basic_stringstream): Same.
6681         * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
6682         (basic_ofstream): Same.
6683         (basic_fstream): Same.
6684         * include/std/std_ostream.h (basic_ostrem): Add protected ctor
6685         that does not call init.
6686         * include/std/std_istream.h (basic_istream): Same.
6687         (basic_iostream): Construct istream, ostream uninitialized, use
6688         init to initialize just once. Add protected ctor that does not
6689         call init.
6691 2003-03-28  Paolo Carlini  <pcarlini@unitus.it>
6692             Nathan Myers  <ncm@cantrip.org>
6694         PR libstdc++/9533
6695         * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
6696         call underflow().
6697         (basic_filebuf<>::showmanyc): Use the information provided
6698         by codecvt and __basic_file<>::showmanyc_helper to implement
6699         a non-trivial showmanyc.
6700         * config/io/basic_file_stdio.h
6701         (__basic_file<>::showmanyc_helper): New, declare.
6702         * config/io/basic_file_stdio.cc
6703         (__basic_file<>::showmanyc_helper): Define.
6704         (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
6705         (__basic_file<char>::open): Don't call fcntl().
6706         * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
6707         GLIBCPP_CHECK_POLL): New macros.
6708         * configure.in: Call here.
6709         * acconfig.h: Add #undefs for the corresponding symbols.
6710         * aclocal.m4: Regenerate.
6711         * configure: Regenerate.
6712         * config.h.in: Regenerate.
6714 2003-03-24  Benjamin Kosnik  <bkoz@redhat.com>
6716         * config/linker-map.gnu: Remove string export restrictions.
6718 2003-03-24  Paolo Carlini  <pcarlini@unitus.it>
6720         * testsuite/21_strings/basic_string/find/char/1.cc: Remove
6721         find_first_of, find_last_of and find_last_not_of tests.
6722         * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
6723         tests here, new file.
6724         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
6725         remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
6726         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
6727         wchar_t find_first_of tests here, new file.
6728         * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
6729         tests here.
6730         * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
6731         tests here.
6732         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
6733         wchar_t find_last_of tests here.
6734         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
6735         wchar_t find_last_not_of tests here.
6737 2003-03-22  Loren J. Rittle  <ljrittle@acm.org>
6739         * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
6740         Correct return value.
6742 2003-03-21  Jerry Quinn  <jlquinn@optonline.net>
6744         PR libstdc++/5730
6745         * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
6746         * include/std/std_complex.h (norm):  Use faster,
6747         less accurate computation for builtin float types under --fast-math.
6749 2003-03-21  Magnus Fromreide  <gnats@magfr.user.lysator.liu.se>
6751         * testsuite/testsuite_hooks.h: Fix warning nits.
6753 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
6755         * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
6756         Only .set mips2 for the o32 ABI.
6758 2003-03-19  Paolo Carlini  <pcarlini@unitus.it>
6760         * testsuite/21_strings/char_traits/requirements/char/1.cc:
6761         Test char not wchar_t.
6763 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
6765         * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
6766         Correct size, taking into account sizeof(wchar_t).
6768 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
6770         Reshuffle 21_strings testsuite.
6771         * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
6772         assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
6773         element_access.cc, operations.cc, char_traits_requirements.cc,
6774         find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
6775         compare.cc, inserters_extractors.cc, substr.cc: Split up, add
6776         wchar_t tests as follows.
6777         * 21_strings/basic_string/append/char/1.cc: New.
6778         * 21_strings/basic_string/append/wchar_t/1.cc: New.
6779         * 21_strings/basic_string/assign/char/1.cc: New.
6780         * 21_strings/basic_string/assign/char/2.cc: New.
6781         * 21_strings/basic_string/assign/char/3.cc: New.
6782         * 21_strings/basic_string/assign/wchar_t/1.cc: New.
6783         * 21_strings/basic_string/assign/wchar_t/2.cc: New.
6784         * 21_strings/basic_string/assign/wchar_t/3.cc: New.
6785         * 21_strings/basic_string/capacity/1.cc: New.
6786         * 21_strings/basic_string/capacity/char/1.cc: New.
6787         * 21_strings/basic_string/capacity/char/2.cc: New.
6788         * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
6789         * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
6790         * 21_strings/basic_string/compare/char/1.cc: New.
6791         * 21_strings/basic_string/compare/wchar_t/1.cc: New.
6792         * 21_strings/basic_string/cons/char/1.cc: New.
6793         * 21_strings/basic_string/cons/char/2.cc: New.
6794         * 21_strings/basic_string/cons/char/3.cc: New.
6795         * 21_strings/basic_string/cons/char/4.cc: New.
6796         * 21_strings/basic_string/cons/char/5.cc: New.
6797         * 21_strings/basic_string/cons/wchar_t/1.cc: New.
6798         * 21_strings/basic_string/cons/wchar_t/2.cc: New.
6799         * 21_strings/basic_string/cons/wchar_t/3.cc: New.
6800         * 21_strings/basic_string/cons/wchar_t/4.cc: New.
6801         * 21_strings/basic_string/cons/wchar_t/5.cc: New.
6802         * 21_strings/basic_string/element_access/char/1.cc: New.
6803         * 21_strings/basic_string/element_access/char/2.cc: New.
6804         * 21_strings/basic_string/element_access/char/3.cc: New.
6805         * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
6806         * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
6807         * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
6808         * 21_strings/basic_string/find/char/1.cc: New.
6809         * 21_strings/basic_string/find/wchar_t/1.cc: New.
6810         * 21_strings/basic_string/insert/char/1.cc: New.
6811         * 21_strings/basic_string/insert/char/2.cc: New.
6812         * 21_strings/basic_string/insert/wchar_t/1.cc: New.
6813         * 21_strings/basic_string/insert/wchar_t/2.cc: New.
6814         * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
6815         * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
6816         * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
6817         * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
6818         * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
6819         * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
6820         * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
6821         * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
6822         * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
6823         * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
6824         * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
6825         * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
6826         * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
6827         * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
6828         * 21_strings/basic_string/operators/char/1.cc: New.
6829         * 21_strings/basic_string/operators/char/2.cc: New.
6830         * 21_strings/basic_string/operators/wchar_t/1.cc: New.
6831         * 21_strings/basic_string/operators/wchar_t/2.cc: New.
6832         * 21_strings/basic_string/replace/char/1.cc: New.
6833         * 21_strings/basic_string/replace/char/2.cc: New.
6834         * 21_strings/basic_string/replace/char/3.cc: New.
6835         * 21_strings/basic_string/replace/char/4.cc: New.
6836         * 21_strings/basic_string/replace/char/5.cc: New.
6837         * 21_strings/basic_string/replace/wchar_t/1.cc: New.
6838         * 21_strings/basic_string/replace/wchar_t/2.cc: New.
6839         * 21_strings/basic_string/replace/wchar_t/3.cc: New.
6840         * 21_strings/basic_string/replace/wchar_t/4.cc: New.
6841         * 21_strings/basic_string/replace/wchar_t/5.cc: New.
6842         * 21_strings/basic_string/rfind/char/1.cc: New.
6843         * 21_strings/basic_string/rfind/char/2.cc: New.
6844         * 21_strings/basic_string/rfind/char/3.cc: New.
6845         * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
6846         * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
6847         * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
6848         * 21_strings/basic_string/substr/char/1.cc: New.
6849         * 21_strings/basic_string/substr/wchar_t/1.cc: New.
6850         * 21_strings/c_strings/char/1.cc: New.
6851         * 21_strings/c_strings/char/2.cc: New.
6852         * 21_strings/c_strings/wchar_t/1.cc: New.
6853         * 21_strings/c_strings/wchar_t/2.cc: New.
6854         * 21_strings/char_traits/requirements/char/1.cc: New.
6855         * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
6856         * 21_strings/char_traits/typedefs/char/1.cc: New.
6858 2003-03-17  Paolo Carlini  <pcarlini@unitus.it>
6859             Petur Runolfsson  <peturr02@ru.is>
6861         PR libstdc++/10097
6862         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
6863         basic_filebuf<wchar_t>::_M_underflow_common):
6864         if (gptr() < egptr()) return *gptr().
6865         * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
6867         * testsuite/27_io/filebuf_members.cc (test_04): Minor
6868         changes: unlink fifo before making it, fix spelling error.
6870 2003-03-17  Benjamin Kosnik  <bkoz@redhat.com>
6872         * testsuite/Makefile.am (CLEANFILES): Add tmp*.
6873         * testsuite/Makefile.in: Regenerate.
6874         * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
6875         Cleanups.
6877 2003-03-17  Petur Runolfsson  <peturr02@ru.is>
6879         PR libstdc++/9964
6880         * include/bits/fstream.tcc (basic_filebuf::close):
6881         Always close file, even when write fails.
6882         * testsuite/27_io/filebuf_members.cc (test_07):  New test.
6884 2003-03-17  Danny Smith  <dannysmith@users.sourceforge.net>
6886         * libsupc++/Makefile.am (C_COMPILE): Remove.
6887         (LTCOMPILE): Likewise.
6888         * libsupc++/Makefile.in: Regenerate.
6890 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
6892         * testsuite/23_containers/bitset_members.cc: Add test variable.
6893         * testsuite/23_containers/map_insert.cc: Same.
6894         * testsuite/22_locale/ctype/cons/char/1.cc: Same.
6895         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
6896         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
6897         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
6898         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
6899         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
6900         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
6901         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
6902         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
6903         * testsuite/27_io/istream_exception.cc: Same.
6904         * testsuite/27_io/filebuf_virtuals.cc: Same.
6905         * testsuite/27_io/stringbuf_virtuals.cc: Same.
6906         * testsuite/27_io/ostream_inserter_arith.cc: Same.
6907         * testsuite/26_numerics/valarray_operators.cc: Same.
6908         * testsuite/26_numerics/slice.cc: Same.
6909         * testsuite/26_numerics/slice_array_assignment.cc: Same.
6910         * testsuite/24_iterators/istream_iterator.cc: Same.
6911         * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
6913 2003-03-14  Petur Runolfsson  <peturr02@ru.is>
6915         PR libstdc++/9581
6916         PR libstdc++/9870
6917         * config/locale/generic/ctype_members.cc,
6918         * config/locale/gnu/ctype_members.cc
6919         (ctype<wchar_t>::do_widen(char)):  Cast argument to
6920         unsigned char before passing to btowc.
6921         (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
6922         Convert characters with btowc instead of mbsrtowcs.
6923         (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
6924         char, char*):
6925         Convert characters with wctob instead of wcsrtombs.
6926         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc:  New test.
6927         * testsuite/22_locale/ctype/widen/wchar_t/2.cc:  New test.
6928         * testsuite/22_locale/ctype/widen/wchar_t/3.cc:  New test.
6930 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
6932         * include/stdc++.h: New.
6933         * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
6934         * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
6935         * include/Makefile.in: Regenerate.
6936         * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
6937         (--cxxflags): Put -g -O2 here.
6938         * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
6940 2003-03-14  Loren J. Rittle  <ljrittle@acm.org>
6942         * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
6943         missing named locale.
6945 2003-03-14  Andreas Schwab  <schwab@suse.de>
6947         * configure.in: Only append to makefiles that are newly created to
6948         avoid multiple multi-do/multi-clean rules.
6949         * configure: Rebuilt.
6951 2003-03-13  Jonathan Wakely  <redi@gcc.gnu.org>
6953         * docs/html/configopts.html, docs/html/documentation.html,
6954         docs/html/explanations.html, docs/html/install.html,
6955         docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
6956         invalid XHTML and make page header style consistent.
6958 2003-03-12  Jonathan Wakely  <redi@gcc.gnu.org>
6960         * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
6961         * docs/html/faq/index.txt: Regenerate.
6962         * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
6964 2003-03-12  Andreas Schwab  <schwab@suse.de>
6966         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
6967         glibcpp_toolexeclibdir.
6968         * aclocal.m4, configure: Rebuilt.
6970 2003-03-11  Jonathan Wakely  <redi@gcc.gnu.org>
6972         * docs/html/faq/index.html: Update text about location of headers.
6973         * docs/html/faq/index.txt: Regenerate.
6975 2003-03-11  Carlo Wood  <carlo@alinoe.com>
6977         * include/bits/demangle.h: Prepend accessors of
6978         class qualifier with 'get_' in order to fix warnings
6979         when compiling with -Wshadow.
6981 2003-03-11  Loren J. Rittle  <ljrittle@acm.org>
6983         * config/os/bsd/freebsd/ctype_inline.h:  Support _M_table
6984         when so installed.
6985         * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
6987         * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
6988         report lack of setenv().
6990 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
6992         * config/io/basic_file_stdio.cc: include <unistd.h>.
6994 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
6995             Nathan Myers  <ncm@cantrip.org>
6997         PR libstdc++/7744
6998         * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
6999         seekoff, seekpos): Add a boolean parameter __stdio.
7000         * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
7001         seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
7002         fseek/ftell, respectively), otherwise read (write, lseek, lseek,
7003         respectively).
7004         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
7005         _M_really_overflow, seekoff): Use the boolean parameter in the calls.
7006         * include/std/std_fstream.h (sync): Likewise.
7007         * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
7008         * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
7009         libstdc++/8399 commit involving isatty(0).
7010         * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
7011         (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
7012         * configure.in: Remove call.
7013         * aclocal.m4: Regenerate.
7014         * config.h.in: Regenerate.
7015         * configure: Regenerate.
7016         * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
7018 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
7020         PR libstdc++/9988
7021         * include/bits/fstream.tcc (overflow): don't write EOF to file.
7022         * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
7024 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
7026         PR libstdc++/9561
7027         * include/bits/basic_ios.h (_M_setstate): New.
7028         * include/bits/ostream.tcc (operator<<): Use it.
7029         * include/bits/istream.tcc (operator>>): Use it.
7030         * include/std/std_ostream.h (operator<<): Make friends.
7031         * include/std/std_istream.h (operator>>): Make friends.
7032         * testsuite/27_io/ostream_exception.cc,
7033         testsuite/27_io/istream_exception.cc: New tests.
7035 2003-03-08  Benjamin Kosnik  <bkoz@redhat.com>
7037         * include/bits/locale_facets.tcc: Fix typo.
7039 2003-03-08  Loren J. Rittle  <ljrittle@acm.org>
7041         * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
7043         * config/locale/generic/c_locale.cc
7044         (locale::facet::_S_create_c_locale): Throw runtime exception when
7045         unsupported language is specified.
7046         * testsuite/testsuite_hooks.h
7047         (run_test_wrapped_generic_locale_exception_catcher): New function.
7048         * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
7049         Suppress runtime exception thrown by generic implementation.
7050         (run_tests_wrapped_env): Likewise.
7051         (run_test_wrapped_generic_locale_exception_catcher): New function.
7052         * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
7053         * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
7054         * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
7055         * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
7056         * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
7057         * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
7058         * testsuite/22_locale/collate_byname/1.cc: New test wrap.
7059         * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
7060         * testsuite/22_locale/facet/2.cc: New test wrap.
7061         * testsuite/22_locale/locale/cons/4.cc: New test wrap.
7062         * testsuite/22_locale/locale/cons/5.cc: New test wrap.
7063         * testsuite/22_locale/locale/cons/7.cc: New test wrap.
7064         * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
7065         * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
7066         * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
7067         * testsuite/22_locale/messages_byname/1.cc: New test wrap.
7068         * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
7069         * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
7070         * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
7071         * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
7072         * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
7073         * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
7074         * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
7075         * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
7076         * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
7077         * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
7078         * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
7079         * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
7080         * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
7081         * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
7082         * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
7083         * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
7084         * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
7085         * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
7086         * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
7087         * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
7088         * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
7089         * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
7090         * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
7091         * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
7092         * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
7093         * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
7094         * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
7095         * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
7096         * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
7097         * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
7098         * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
7099         * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
7100         * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
7101         * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
7102         * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
7103         * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
7104         * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
7105         * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
7106         * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
7107         * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
7108         * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
7109         * testsuite/27_io/ios_members.cc: New test wrap.
7110         * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
7111         New test wrap.
7112         * testsuite/27_io/streambuf_members.cc: New test wrap.
7113         * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
7115 2003-03-08  Paolo Carlini <pcarlini@unitus.it>
7116             Petur Runolfsson  <peturr02@ru.is>
7118         PR libstdc++/9424
7119         * include/bits/streambuf.tcc (__copy_streambufs): Use
7120         sgetn-sputn only when sputn cannot fail, otherwise fall back
7121         to safe snextc-sputc.
7122         * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
7124 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
7126         * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
7127         locale cache for truename and falsename.
7129 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
7131         * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
7132         _M_word_size initialization.
7134 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
7136         * include/bits/fstream.tcc (_M_convert_to_external):
7137         Set __elen to zero if codecvt::out eventually fails.
7139 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
7141         PR libstdc++/9182
7142         * include/bits/fstream.tcc (_M_really_overflow): Check
7143         for _M_convert_to_external possible failures.
7144         * include/std/std_fstream.h (sync): Check _M_really_overflow
7145         return value and return -1 in case of failure.
7146         * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
7148 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
7150         PR libstdc++/9826
7151         * include/bits/istream.tcc (operator>>(_CharT*),
7152         operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
7153         * testsuite/27_io/stringstream.cc (test02): Add.
7155         * include/bits/istream.tcc (operator>>(_CharT*)):
7156         Assign a char_type to *__s.
7158 2003-03-07  Petur Runolfsson  <peturr02@ru.is>
7160         PR libstdc++/9817
7161         * include/bits/locale_facets.tcc
7162         (collate::do_compare, collate::do_transform):
7163         Handle nul characters in input.
7164         * testsuite/22_locale/collate/compare/char/3.cc:  New test.
7165         * testsuite/22_locale/collate/compare/wchar_t/3.cc:  New test.
7166         * testsuite/22_locale/collate/transform/char/3.cc:  New test.
7167         * testsuite/22_locale/collate/transform/wchar_t/3.cc:  New test.
7169 2003-03-07  Jerry Quinn  <jlquinn@optonline.net>
7171         * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
7172         sputn fails.
7173         * testsuite/27_io/ostream_fail.cc: New test.
7175 2003-03-07  Matthias Klose  <doko@debian.org>
7177         * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
7178         FLAGS_TO_PASS: Set to AM_MAKEFLAGS
7179         * Makefile.in: Regenerate.
7180         * libsupc++/Makefile.am: Express glibcppinstalldir in terms
7181         of gxx_include_dir.
7182         AM_MAKEFLAGS: Pass gxx_include_dir.
7183         * libsupc++/Makefile.in: Regenerate.
7185 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
7187         * testsuite/27_io/ios_base_storage.cc (test02): Set exception
7188         mask.  Test setting small-numbered pword and iword slots.  Test
7189         behavior at limit of numeric_limits::max.  Check that values are
7190         still good after failures.
7192 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
7194         * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
7195         (ios_base::ios_base): Set _M_word, _M_word_size.
7196         (ios_base::~ios_base): Remove redundant test.
7197         * testsuite/27_io/ios_base_storage.cc (test03): New.
7199 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
7201         * src/strstream.cc, include/bits/basic_string.tcc: Remove
7202         incorrect whitespace added in my previous change.
7204 2003-03-05  Carlo Wood  <carlo@alinoe.com>
7206         * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
7207         _S_initialized() in order to allow debugging libraries to detect
7208         when the std streams are initialized from an overloaded operator
7209         new.
7211 2003-03-05  Benjamin Kosnik  <bkoz@redhat.com>
7213         * libsupc++/demangle.h: Move to..
7214         * include/bits/demangle.h: ...here.
7215         * src/demangle.cc: Adjust include.
7216         * include/Makefile.am (bits_headers): Add.
7217         * include/Makefile.in: Regenerate.
7219 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
7221         * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
7223         * config/linker-map.gnu: Filter typeinfo and vtable info.
7225 2003-03-04  Jerry Quinn  <jlquinn@optonline.net>
7227         * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
7228         new failure.  Throw exception if badbit and exception mask when ix
7229         >= numeric_limits<int>::max().
7231 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
7233         * src/strstream.cc (strstreambuf::overflow): Make sure operands of
7234         min and max have the same type.
7235         * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
7237 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
7239         * include/Makefile.am (allstamps): Remove stamp-std-precompile.
7240         * include/Makefile.in: Regenerate.
7242 2003-03-03  Benjamin Kosnik  <bkoz@redhat.com>
7244         * testsuite/abi_check.cc (report_symbol_info): Add version info.
7246         * config/linker-map.gnu: Hide more stuff.
7247         * include/Makefile.am: Cleanups.
7248         * include/Makefile.in: Regenerate.
7250 2003-02-27  Jerry Quinn  <jlquinn@optonline.net>
7252         * config/locale/generic/messages_members.h (messages::messages):
7253         Remove name from unused parameter.
7255 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
7257         * src/Makefile.am (sources): Add demangle.cc.
7258         (demangle.o): Add.
7259         (demangle.lo): Add.
7260         * src/Makefile.in: Regenerate.
7261         * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
7262         * libsupc++/Makefile.in: Regenerate.
7264         * testsuite/testsuite_hooks.h
7265         (__gnu_cxx_test::verify_demangle): New.
7266         * testsuite/testsuite_hooks.cc: Define.
7268 2003-02-27  Carlo Wood  <carlo@alinoe.com>
7270         * src/demangle.cc: New.
7271         * libsupc++/demangle.h: New.
7273 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
7274             Carlo Wood  <carlo@alinoe.com>
7276         * testsuite/demangle/abi_examples/01.cc: New.
7277         * testsuite/demangle/abi_examples/02.cc: New.
7278         * testsuite/demangle/abi_examples/03.cc: New.
7279         * testsuite/demangle/abi_examples/04.cc: New.
7280         * testsuite/demangle/abi_examples/05.cc: New.
7281         * testsuite/demangle/abi_examples/06.cc: New.
7282         * testsuite/demangle/abi_examples/07.cc: New.
7283         * testsuite/demangle/abi_examples/08.cc: New.
7284         * testsuite/demangle/abi_examples/09.cc: New.
7285         * testsuite/demangle/abi_examples/10.cc: New.
7286         * testsuite/demangle/abi_examples/11.cc: New.
7287         * testsuite/demangle/abi_examples/12.cc: New.
7288         * testsuite/demangle/abi_examples/13.cc: New.
7289         * testsuite/demangle/abi_examples/14.cc: New.
7290         * testsuite/demangle/abi_examples/15.cc: New.
7291         * testsuite/demangle/abi_examples/16.cc: New.
7292         * testsuite/demangle/abi_examples/17.cc: New.
7293         * testsuite/demangle/abi_examples/18.cc: New.
7294         * testsuite/demangle/abi_examples/19.cc: New.
7295         * testsuite/demangle/abi_examples/20.cc: New.
7296         * testsuite/demangle/abi_examples/21.cc: New.
7297         * testsuite/demangle/abi_examples/22.cc: New.
7298         * testsuite/demangle/abi_examples/23.cc: New.
7299         * testsuite/demangle/abi_examples/24.cc: New.
7300         * testsuite/demangle/abi_examples/25.cc: New.
7301         * testsuite/demangle/abi_examples/26.cc: New.
7302         * testsuite/demangle/abi_text/01.cc: New.
7303         * testsuite/demangle/abi_text/02.cc: New.
7304         * testsuite/demangle/abi_text/03.cc: New.
7305         * testsuite/demangle/abi_text/04.cc: New.
7306         * testsuite/demangle/abi_text/05.cc: New.
7307         * testsuite/demangle/abi_text/06.cc: New.
7308         * testsuite/demangle/abi_text/07.cc: New.
7309         * testsuite/demangle/abi_text/08.cc: New.
7310         * testsuite/demangle/abi_text/09.cc: New.
7311         * testsuite/demangle/abi_text/10.cc: New.
7312         * testsuite/demangle/abi_text/11.cc: New.
7313         * testsuite/demangle/abi_text/12.cc: New.
7314         * testsuite/demangle/abi_text/13.cc: New.
7315         * testsuite/demangle/abi_text/14.cc: New.
7316         * testsuite/demangle/regression/3111-1.cc: New.
7317         * testsuite/demangle/regression/3111-2.cc: New.
7318         * testsuite/demangle/regression/7986-01.cc: New.
7319         * testsuite/demangle/regression/7986-02.cc: New.
7320         * testsuite/demangle/regression/7986-03.cc: New.
7321         * testsuite/demangle/regression/7986-04.cc: New.
7322         * testsuite/demangle/regression/7986-05.cc: New.
7323         * testsuite/demangle/regression/7986-06.cc: New.
7324         * testsuite/demangle/regression/7986-07.cc: New.
7325         * testsuite/demangle/regression/7986-08.cc: New.
7326         * testsuite/demangle/regression/7986-09.cc: New.
7327         * testsuite/demangle/regression/7986-10.cc: New.
7328         * testsuite/demangle/regression/7986-11.cc: New.
7329         * testsuite/demangle/regression/7986-12.cc: New.
7330         * testsuite/demangle/regression/7986.cc: New.
7331         * testsuite/demangle/regression/8897.cc: New.
7332         * testsuite/demangle/regression/cw-01.cc: New.
7333         * testsuite/demangle/regression/cw-02.cc: New.
7334         * testsuite/demangle/regression/cw-03.cc: New.
7335         * testsuite/demangle/regression/cw-04.cc: New.
7336         * testsuite/demangle/regression/cw-05.cc: New.
7337         * testsuite/demangle/regression/cw-06.cc: New.
7338         * testsuite/demangle/regression/cw-07.cc: New.
7339         * testsuite/demangle/regression/cw-08.cc: New.
7340         * testsuite/demangle/regression/cw-09.cc: New.
7341         * testsuite/demangle/regression/cw-10.cc: New.
7342         * testsuite/demangle/regression/cw-11.cc: New.
7343         * testsuite/demangle/regression/cw-12.cc: New.
7344         * testsuite/demangle/regression/cw-13.cc: New.
7345         * testsuite/demangle/regression/cw-14.cc: New.
7346         * testsuite/demangle/regression/old.cc: New.
7348 2003-02-25  Phil Edwards  <pme@gcc.gnu.org>
7350         * docs/doxygen/Intro.3:  Update with new (proper) names.
7351         * docs/doxygen/TODO:  Update.
7352         * docs/doxygen/run_doxygen:  More comments, fix up man pages.
7353         Fake entries for standard typedefs.
7354         * docs/doxygen/user.cfg.in:  Turn INLINE_INHERITED_MEMB back on.
7355         * docs/html/documentation.html:  Top-level man page is now called
7356         C++Intro.
7357         * include/std/std_limits.h:  Doxygenate.
7359 2003-02-25  Scott Snyder  <snyder@fnal.gov>
7361         PR libstdc++/9811
7362         * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
7363         Correct documentation.
7364         * include/bits/stl_multimap.h (lower_bound, upper_bound,
7365         equal_range): Likewise.
7367 2003-02-24  Paolo Carlini  <pcarlini@unitus.it>
7369         PR libstdc++/9825
7370         * src/fstream.cc
7371         (basic_filebuf<char/wchar_t>::_M_underflow_common): When
7372         __bump is true (uflow), always increment the read pointer
7373         (_M_in_cur) before returning successfully.
7374         * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
7376 2003-02-24  Paolo Carlini <pcarlini@unitus.it>
7377             Nathan Myers <ncm@cantrip.org>
7379         PR libstdc++/9404, PR libstdc++/9701 (partial)
7380         (aka pptr == epptr implies overflow)
7381         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
7382         Consistently, _M_out_end points to the end of the buffer just
7383         created.
7384         (overflow): Tweak to use _M_out_buf_size().
7385         (_M_convert_to_external): The role of the old _M_out_end is
7386         now played by _M_out_lim.
7387         (_M_really_overflow): Likewise.
7388         (seekoff): Likewise.
7389         (setbuf): _M_out_end points to the end of the external buffer.
7390         * include/bits/sstream.tcc (overflow): Rewrote, taking into
7391         account the resolution of DR 169 (TC).
7392         (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
7393         (seekpos): Use _M_string.capacity(); tweak.
7394         * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
7395         * include/std/std_fstream.h (sync): The role of the old
7396         _M_out_end is now played by _M_out_lim.
7397         (_M_set_indeterminate): Use _M_set_determinate.
7398         (_M_set_determinate): _M_out_end is now _M_out_lim.
7399         (_M_is_indeterminate): Likewise.
7400         * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
7401         (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
7402         which have the information readily available as _M_string.capacity();
7403         for ate and app modes, pass the string size to _M_really_sync.
7404         (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
7405         point to the end of the buffer (i.e., epptr) and to the string end,
7406         respectively.
7407         * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
7408         which points to the right limit of the used put area.
7409         (_M_out_cur_move): The role of the old _M_out_end is now played
7410         by _M_out_lim.
7411         (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
7412         _M_out_end  - _M_out_cur (i.e., pptr), _very_ close to the letter
7413         of the standard.
7414         (basic_streambuf()): Initialize _M_out_lim too.
7415         * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
7416         * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
7417         * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
7419 2003-02-24  Benjamin Kosnik  <bkoz@redhat.com>
7421         * testsuite/27_io/ios_base_storage.cc (main): Call
7422         set_memory_limits.
7424 2003-02-21  Jerry Quinn  <jlquinn@optonline.net>
7426         * include/bits/locale_facets.tcc (_M_convert_float): Replace
7427         numpunct facet accesses with data from __locale_cache.
7429 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
7431         * docs/html/faq/index.html (3.9):  New note, wchar_t on FreeBSD.
7432         * docs/html/faq/index.txt:  Regenerate.
7434 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
7436         * config/linker-map.gnu:  Also export locking symbols needed for the
7437         generic atomicity.h case.
7439 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
7441         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
7442         config.status.
7443         * configure: Rebuilt.
7445 2003-02-19  Paolo Carlini  <pcarlini@unitus.it>
7447         * include/bits/sstream.tcc (overflow): According to
7448         27.7.1.3, p5, actual output is performed by sputc(c).
7450 2003-02-19  Phil Edwards  <pme@gcc.gnu.org>
7452         PR libstdc++/9582
7453         * include/bits/stl_alloc.h:  Remove all traces of assert().
7455 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
7457         * include/std/std_sstream.h (str()): the size of the
7458         current string may be different from the initial one
7459         whenever _M_out_end > _M_out_beg.
7460         * testsuite/27_io/stringbuf_members.cc (test07): Add.
7462 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
7464         PR libstdc++/9582
7465         * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
7467 2003-02-17  Benjamin Kosnik  <bkoz@redhat.com>
7469         * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
7470         * testsuite/27_io/ios_members.cc (test03): New.
7472 2003-02-17  Jerry Quinn  <jlquinn@optonline.net>
7474         * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
7475         (basic_ios::_M_cache_facets): Move into above.
7476         * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
7477         cache.
7478         (basic_ios::imbue): Force locale cache to be built.
7479         (basic_ios::_M_init): Create and initialize locale cache.
7480         * include/bits/ios_base.h (__locale_cache_base): Declare.
7481         (ios_base::_M_locale_cache): New.
7482         (ios_base::_M_cache): Define.
7483         * include/bits/locale_facets.h: (__num_base): Fix comment.  Add
7484         _S_end.
7485         (__locale_cache_base,__locale_cache<_CharT>):  New classes.
7486         (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
7487         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
7488         cache literal string, grouping flag, thousands separator.
7489         (__locale_cache<_CharT>::__locale_cache): New.
7490         (__locale_cache<_CharT>::_M_init): New.
7491         * src/ios.cc: Clear _M_locale_cache in constructor.
7492         * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
7493         New.
7495 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
7497         * src/locale-inst.cc: Do not include <cassert>.
7498         * src/locale.cc: Likewise.
7500 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
7502         PR libstdc++/9580
7503         * include/std/std_fstream.h: Declare underflow and uflow
7504         specializations, change generic definitions to do nothing.
7505         * src/fstream.cc: Add underflow and uflow specializations.
7507 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
7509         PR libstdc++/9169
7510         * include/bits/fstream.tcc (_M_convert_to_external):
7511         Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
7512         * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
7514 2003-02-13  Benjamin Kosnik  <bkoz@redhat.com>
7516         * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
7517         * include/bits/basic_ios.tcc: Guard use of extern template.
7518         * include/std/std_iomanip.h: Same.
7519         * include/bits/streambuf.tcc: Same.
7520         * include/bits/stl_alloc.h: Same.
7521         * include/bits/locale_facets.tcc: Same.
7522         * include/bits/ostream.tcc: Same.
7523         * include/bits/istream.tcc: Same.
7524         * include/bits/fstream.tcc: Same.
7525         * include/bits/basic_string.tcc: Same.
7527 2003-02-13  Paolo Carlini  <pcarlini@unitus.it>
7529         * include/bits/ostream.tcc (sentry::sentry): Improve
7530         performance-wise the fix for libstdc++/9563.
7532 2003-02-12  Phil Edwards  <pme@gcc.gnu.org>
7534         * config/cpu/generic/atomicity.h (_Atomic_add_mutex):  Fix declaration.
7535         (_GLIBCPP_NEED_GENERIC_MUTEX):  Define for this file.
7536         (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once):  Declare
7537         when we don't have static mutex initialization.
7538         (__exchange_and_add):  Use _Atomic_add_mutex_once.
7539         * src/misc-inst.cc:  Definitions of all the above.
7541 2003-02-12  Paolo Carlini  <pcarlini@unitus.it>
7543         PR libstdc++/9563
7544         * include/bits/ostream.tcc (sentry::sentry): Check
7545         the state of the stream after the preparation.
7546         * testsuite/27_io/ostream_sentry.cc (test02): Add.
7548 2003-02-11  Benjamin Kosnik  <bkoz@redhat.com>
7550         * include/Makefile.am (stamp-std-precompile): Add rule.
7551         * include/Makefile.in: Regenerated.
7553 2003-02-11 Jerry Quinn  <jlquinn@optonline.net>
7554            Benjamin Kosnik  <benjamin@redhat.com>
7556         * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
7557         Add indexes into this array.
7558         (__num_base::_S_atoms): To _S_atoms_in.
7559         (num_put::_M_insert): Rename to _M_pad.
7560         (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
7561         (num_put::_M_widen_int): Rename to _M_group_int.
7562         (num_put::_M_widen_float): Rename to _M_group_float.
7563         * include/bits/locale_facets.tcc (__int_to_char): New inline
7564         function and adapter functions.
7565         (num_put::_M_group_int): Streamline.
7566         (num_put::_M_group_float): Streamline.
7567         (num_put::_M_convert_int): Remove unused parameter names. Choose
7568         large enough buffer for text.  Use __int_to_char instead of
7569         __convert_from_v.  Formatted text is now at the end of the buffer.
7570         (num_put::_M_convert_float): Preliminary fixups.
7571         * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
7572         (__int_to_char<unsigned long long>): Same.
7573         (__int_to_char<char, unsigned long>): New.
7574         (__int_to_char<char, unsigned long long>): New.
7575         (__int_to_char<wchar_t, unsigned long>): New.
7576         (__int_to_char<wchar_t, unsigned long long>): New.
7578 2003-02-11  Scott Snyder  <snyder@fnal.gov>
7580         PR libstdc++/9659
7581         * include/bits/fstream.tcc (seekoff): Avoid operator+
7582         for pos_type.
7584 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
7586         PR libstdc++/9320
7587         * include/ext/stdio_filebuf.h
7588         (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
7589         stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
7590         Change to take a __size parameter of type size_t, not
7591         of type (template parameter dependent) int_type.
7592         * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
7593         size vars to size_t.
7594         * testsuite/ext/stdio_filebuf.cc: Add.
7596 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
7597             Petur Runolfsson  <peturr02@ru.is>
7599         PR libstdc++/9318
7600         * include/bits/streambuf.tcc (__copy_streambufs):
7601         Don't conditionalize the copy to __testput.
7602         * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
7604 2002-02-11  DJ Delorie  <dj@redhat.com>
7606         * acinclude.m4: Check for native targets that can't link at
7607         this point in the build.
7608         * aclocal.m4: Regenerate.
7609         * configure: Regenerate.
7611 2003-02-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7613         * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
7614         Correct alignment.
7615         (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
7616         lock.
7618 2003-02-07  Paolo Carlini  <pcarlini@unitus.it>
7620         * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
7621         unsigned char platforms.
7623 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
7625         PR libstdc++/9562
7626         * include/std/std_istream.h
7627         (basic_istream::sentry::operator bool()): Make const.
7628         * include/std/std_ostream.h
7629         (basic_ostream::sentry::operator bool()): Likewise.
7630         * testsuite/27_io/istream_sentry.cc (test03): Add.
7631         * testsuite/27_io/ostream_sentry.cc: Add.
7633 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
7635         PR libstdc++/9548
7636         Implement resolution of DR 231 (Ready)
7637         * include/bits/locale_facets.h (__num_base::_S_format_float):
7638         Change declaration: return void, remove __prec parameter.
7639         * src/locale.cc (__num_base::_S_format_float): Implement
7640         resolution of DR 231.
7641         * include/bits/locale_facets.tcc (num_put::_M_convert_float):
7642         Tweak uses. Check for negative precision.
7643         * testsuite/22_locale/num_put/put/char/6.cc: Add
7644         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
7646 2003-02-06  Peter Soetens  <peter.soetens@mech.kuleuven.ac.be>
7648         * config/io/basic_file_libio.h: Fixups.
7649         * config/io/c_io_libio.h: Same.
7650         * libio/Makefile.am: Same.
7651         * libio/Makefile.in: Regenerated.
7653 2003-02-06  Benjamin Kosnik  <bkoz@redhat.com>
7655         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
7656         Explicitly use the "C" locale.
7657         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
7659 2003-02-06  Petur Runolfsson  <peturr02@ru.is>
7661         DR 75
7662         DR 305
7663         PR libstdc++/9028 (partial)
7664         PR libstdc++/9224
7665         PR libstdc++/9246
7666         PR libstdc++/9247
7668         * src/codecvt.cc
7669         (codecvt<wchar_t, char, mbstate_t>::do_encoding,
7670         codecvt<wchar_t, char, mbstate_t>::do_length,
7671         codecvt<wchar_t, char, mbstate_t>::do_max_length):
7672         Move...
7673         * config/locale/generic/codecvt_members.cc:  ...here.
7674         * config/locale/gnu/codecvt_members.cc:  ...and here.
7676         * config/locale/generic/codecvt_members.cc,
7677         * config/locale/gnu/codecvt_members.cc
7678         (codecvt<wchar_t, char, mbstate_t>::do_encoding
7679         codecvt<wchar_t, char, mbstate_t>::do_in,
7680         codecvt<wchar_t, char, mbstate_t>::do_length,
7681         codecvt<wchar_t, char, mbstate_t>::do_max_length,
7682         codecvt<wchar_t, char, mbstate_t>::do_out):
7683         New implementation that handles stateless encodings,
7684         including UTF-8.
7686         * config/locale/generic/codecvt_members.cc,
7687         * config/locale/gnu/codecvt_members.cc,
7688         * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
7689         * include/bits/codecvt.h,
7690         * src/codecvt.cc
7691         (codecvt::length, codecvt::do_length):
7692         Change type of first argument of length and do_length from
7693         'const state_type&' to 'state_type&' according to DR 75.
7695         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc:  Cleanup.
7696         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc:  New test.
7697         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc:  New test.
7698         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc:  New test.
7699         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
7700         Cleanup and check for correct return value from encoding
7701         for "C" locale.
7702         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc:  New test.
7703         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc:  New test.
7704         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc:  New test.
7705         * testsuite/22_locale/codecvt/in/wchar_t/1.cc:  Cleanup.
7706         * testsuite/22_locale/codecvt/in/wchar_t/2.cc:  New test.
7707         * testsuite/22_locale/codecvt/in/wchar_t/3.cc:  New test.
7708         * testsuite/22_locale/codecvt/in/wchar_t/4.cc:  New test.
7709         * testsuite/22_locale/codecvt/in/wchar_t/5.cc:  New test.
7710         * testsuite/22_locale/codecvt/in/wchar_t/6.cc:  New test.
7711         * testsuite/22_locale/codecvt/in/wchar_t/7.cc:  New test.
7712         * testsuite/22_locale/codecvt/in/wchar_t/8.cc:  New test.
7713         * testsuite/22_locale/codecvt/in/wchar_t/9.cc:  New test.
7714         * testsuite/22_locale/codecvt/length/char/1.cc:  Cleanup.
7715         * testsuite/22_locale/codecvt/length/char/2.cc:  New test.
7716         * testsuite/22_locale/codecvt/length/wchar_t/1.cc:  Cleanup.
7717         * testsuite/22_locale/codecvt/length/wchar_t/2.cc:  New test.
7718         * testsuite/22_locale/codecvt/length/wchar_t/3.cc:  New test.
7719         * testsuite/22_locale/codecvt/length/wchar_t/4.cc:  New test.
7720         * testsuite/22_locale/codecvt/length/wchar_t/5.cc:  New test.
7721         * testsuite/22_locale/codecvt/length/wchar_t/6.cc:  New test.
7722         * testsuite/22_locale/codecvt/length/wchar_t/7.cc:  New test.
7723         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc:  Cleanup.
7724         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc:  New test.
7725         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc:  New test.
7726         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc:  New test.
7727         * testsuite/22_locale/codecvt/out/wchar_t/1.cc:  Cleanup.
7728         * testsuite/22_locale/codecvt/out/wchar_t/2.cc:  New test.
7729         * testsuite/22_locale/codecvt/out/wchar_t/3.cc:  New test.
7730         * testsuite/22_locale/codecvt/out/wchar_t/4.cc:  New test.
7731         * testsuite/22_locale/codecvt/out/wchar_t/5.cc:  New test.
7732         * testsuite/22_locale/codecvt/out/wchar_t/6.cc:  New test.
7733         * testsuite/22_locale/codecvt/out/wchar_t/7.cc:  New test.
7734         * testsuite/22_locale/codecvt/unicode/1.cc:  New test.
7735         * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc:  Cleanup.
7736         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc:  New test.
7737         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc:  New test.
7738         * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc:  New test.
7740 2003-02-05  Benjamin Kosnik  <bkoz@redhat.com>
7742         * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
7743         (money_put::do_put): Same.
7745 2003-02-05  Jerry Quinn  <jlquinn@optonline.net>
7747         * include/bits/ios_base.h (ios_base): Document reserved storage.
7749         * include/bits/locale_facets.h: (struct __pad): Comment on
7750         implementation.
7751         (__verify_grouping): Same.
7752         (__add_grouping): Same.
7753         * include/bits/locale_facets.tcc (__verify_grouping): Move
7754         comments to declaration.
7755         (__add_grouping): Same.
7757         * include/bits/locale_facets.tcc:
7758         (__write<_CharT, _OutIter>): New function.
7759         (__write<_CharT>): New function specialization.
7760         (num_put::_M_insert): Remove explicit loop over iterator.  Use
7761         __write.
7762         (num_put::_M_widen_float): Remove __basefield.
7763         (num_put::_M_widen_int): Move __basefield to within grouping block.
7765         * include/bits/streambuf_iterator.h: Include <streambuf>.
7766         (ostreambuf_iterator::_M_put): Add.
7768 2003-02-05  Paolo Carlini  <pcarlini@unitus.it>
7770         * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
7772 2003-02-04  Nathan Myers  <ncm@cantrip.org>
7774         * testsuite/25_algorithms/min_max.cc (test02): Add.
7776 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
7778         PR libstdc++/9439, PR libstdc++/9425
7779         * config/io/basic_file_stdio.cc
7780         (__basic_file<char>::seekoff, seekpos): Return -1L if
7781         fseek fails.
7782         * include/bits/fstream.tcc (basic_filebuf::seekoff):
7783         Check _M_file.seekoff return value; always return
7784         pos_type(off_type(-1)) in case of failure.
7785         (basic_filebuf::pbackfail): Check this->seekoff return
7786         value and return traits_type::eof() in case of failure.
7787         * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
7789 2003-02-04  Jerry Quinn  <jlquinn@optonline.net>
7791         * include/std/std_ostream.h (ostream::_M_write): Declare.
7792         * ostream.tcc (ostream::_M_write): Define.
7793         (basic_ostream::write): Use it.
7794         (operator<<(basic_ostream, _CharT)): Ditto.
7795         (operator<<(basic_ostream, char)): Ditto.
7796         (operator<<(basic_ostream, _CharT*)): Ditto.
7797         (operator<<(basic_ostream, char*)): Ditto.
7798         (operator<<(basic_ostream, basic_string)): Ditto.
7800 2003-02-04  Benjamin Kosnik  <bkoz@redhat.com>
7802         * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
7804 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
7806         * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
7807         add HTML comment about updating links if numbering changes.
7809 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
7811         PR libstdc++/9538
7812         * include/bits/streambuf.tcc (sputbackc): Access
7813         this->gptr()[-1] only if _M_in_beg < _M_in_cur.
7814         * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
7816 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
7818         PR libstdc++/9507
7819         * include/bits/fstream.tcc (open): If the 'ate' repositioning
7820         operation fails, calls close _and_ returns a null pointer
7821         to indicate failure (27.8.1.3,4).
7822         * testsuite/27_io/filebuf_members.cc (test_06): Add.
7824 2003-02-04  Petur Runolfsson  <peturr02@ru.is>
7826         * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
7828 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
7830         * docs/html/27_io/howto.html: New section on stdio_filebuf.
7831         * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
7832         * docs/html/documentation.html: Regenerate.
7834 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
7836         * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
7837         * docs/html/17_intro/porting.html: Regenerate.
7839 2003-02-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
7840             Phil Edwards  <pme@gcc.gnu.org>
7842         * include/std/std_bitset.h:  Replace CHAR_BIT with __CHAR_BIT__, use
7843         numeric_limits for bits-per-word values.
7844         (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
7845         Use __builtin_popcountl instead.
7846         (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
7847         _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
7848         Use __builtin_ctzl instead.
7849         (_S_bit_count, _S_first_one):  Remove.
7850         * config/linker-map.gnu (GLIBCPP_3.4):  Remove std::_S_bit_count.
7851         * src/Makefile.am (sources):  Remove bitset.cc.
7852         * src/bitset.cc:  Delete file.
7853         * src/Makefile.in:  Regenerate.
7855 2003-02-03  Phil Edwards  <pme@gcc.gnu.org>
7857         PR libstdc++/9527, PR libstdc++/8713
7858         * docs/html/install.html:  Mention glibc version requirement.
7859         * docs/html/faq/index.html (3.8):  New note, glibc 2.2.5+ is needed
7860         with 3.2.1+ (formatting bugfixes).
7861         * docs/html/faq/index.txt:  Regenerate.
7863 2003-02-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7865         PR libstdc++/9234
7866         * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
7867         operator.
7869         * include/bits/valarray_before.h (__not_equal_to): Use != instead
7870         of ==.
7872         * testsuite/26_numerics/valarray_operators.cc: New test.
7874 2003-02-01  Phil Edwards  <pme@gcc.gnu.org>
7876         * docs/html/faq/index.html:  Correct link to libg++ information.
7877         * docs/html/faq/index.txt:  Regenerated.
7879 2003-02-01  Paolo Carlini  <pcarlini@unitus.it>
7880             Benjamin Kosnik  <bkoz@redhat.com>
7882         Const correctness issue:
7883         http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
7884         * include/bits/locale_classes.h
7885         (locale::_Impl::_M_facets): Change type to const facet**.
7886         (locale::_Impl::_M_install_facet): Change declaration to
7887         take const facet*.
7888         (locale::facet::_M_references): Make mutable.
7889         (locale::facet::_M_add_reference): Declare const.
7890         (locale::facet::_M_remove_reference): Likewise.
7891         * include/bits/locale_facets.tcc
7892         (use_facet(const locale&)): Tweak for const facet** _M_facets.
7893         (has_facet(const locale&)): Likewise.
7894         * src/locale.cc
7895         (locale::facet::_M_add_reference): Adjust definition.
7896         (locale::facet::_M_remove_reference): Likewise.
7897         * src/localename.cc
7898         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
7899         const facet** _M_facets.
7900         (locale::_Impl::_Impl(const char*, size_t)): Likewise.
7901         (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
7902         (locale::_Impl::_M_install_facet): Adjust definition to take
7903         const facet* and for const facet** _M_facets.
7904         * testsuite/22_locale/locale/cons/8.cc: Add.
7906 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
7908         * include/std/std_limits.h (numeric_limits<float>::has_infinity):
7909         Use __FLT_HAS_INIFINITY__ to initialize.
7910         (numeric_limits<float>::has_quiet_NaN): Likewise.
7911         (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
7912         to initialize.
7913         (numeric_limits<double>::has_quiet_NaN): Likewise.
7914         (numeric_limits<long double>::has_infinity): Use
7915         __LDBL_HAS_INIFINITY__ to initialize.
7916         (numeric_limits<long_double>::has_quiet_NaN): Likewise.
7918 2003-01-28  Nathan Sidwell  <nathan@codesourcery.com>
7920         PR c++/9433
7921         * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
7922         with bases which are very ambiguous.
7924 2003-01-28  Danny Smith  <dannysmith@users.sourceforge.net>
7926         * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
7927         @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
7928         * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
7929         * src/Makefile.in: Regenerate.
7930         * libsupc++/Makefile.in: Regenerate.
7932 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
7934         * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
7935         $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
7936         version_specific_libs is enabled.
7937         * aclocal.m4, configure: Rebuilt.
7939 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
7941         * include/bits/valarray_meta.h: Remove, split into ...
7942         * include/bits/valarray_before.h: ... this, and ...
7943         * include/bits/valarray_after.h: ... this.
7944         * include/std/std_valarray.h: Adjust.
7945         * include/Makefile.am (bits_headers): Adjust.
7946         * include/Makefile.in: Regenerate.
7948 2003-01-24  Andreas Schwab  <schwab@suse.de>
7950         * config/linker-map.gnu: Fix for size_t variance.
7952 2003-01-23  Petur Runolfsson  <peturr02@ru.is>
7954         PR libstdc++/9322
7955         * include/std/std_streambuf.h
7956         (basic_streambuf::basic_streambuf,
7957         basic_streambuf::~basic_streambuf,
7958         basic_streambuf::getloc, basic_streambuf::imbue):
7959         Remove _M_buf_locale_init
7960         * include/bits/fstream.tcc (basic_filebuf::imbue):  Likewise
7961         * testsuite/27_io/filebuf_virtuals.cc (test08):  Add.
7962         * testsuite/27_io/streambuf_members.cc (test08):  Add.
7963         * testsuite/27_io/stringbuf_virtuals.cc (test08):  Add.
7965 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
7967         Revert include ordering.
7968         * config/locale/generic/c_locale.h: Add include guards.
7969         * config/locale/gnu/c_locale.h: Same.
7970         * include/bits/locale_classes.h: Remove cctype include.
7971         * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
7972         * include/std/std_fstream.h: Remove streambuf include.
7973         * include/std/std_sstream.h: Remove streambuf include.
7975 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
7977         * configure.in (libtool_VERSION): To 6:0:0.
7978         * configure: Regenerated.
7979         * config/linker-map.gnu: Clean.
7981         * src/misc-inst.cc: Remove instantiations.
7983         * include/bits/stl_alloc.h (__malloc_alloc_template):
7984         To __malloc_alloc.
7985         (__default_alloc_template): To __pool_alloc.
7986         * src/stl-inst.cc: Same.
7987         * include/backward/alloc.h: Update.
7988         * testsuite/ext/allocators.cc: Update.
7990         * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
7991         really try to remove these if possible.
7992         * src/locale.cc (std): Same.
7994         * testsuite/abi_check.cc (check_version): Add.
7996 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
7997             Sysoltsev Slawa  <Vyatcheslav.Sysoltsev@intel.com>
7998             Mark Mitchell  <mark@codesourcery.com>
8000         PR libstdc++/9269
8001         * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
8002         (basic_filebuf::underflow): Declare.
8003         Move definitions.
8005 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
8007         * include/bits/locale_facets.h: Move non-facet classes requiring
8008         <string> to...
8009         * include/bits/locale_classes.h: New.
8010         * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
8011         * include/bits/Makefile.in: Regenerate.
8013         * include/bits/locale_facets.tcc (__convert_from_v): Move to...
8014         * config/locale/gnu/c_locale.h: ...here.
8015         * config/locale/generic/c_locale.h: Same.
8017         * include/bits/locale_facets.tcc: Move declarations to...
8018         * include/bits/locale_facets.h: ...here.
8019         * include/bits/basic_ios.h: Tweak includes accordingly.
8020         * include/std/std_sstream.h: Add streambuf include.
8021         * include/std/std_fstream.h: Ditto.
8022         * include/std/std_locale.h: Add locale_classes.h include.
8023         * include/std/std_iosfwd.h: Tweak.
8024         * src/concept-inst.cc: Add iterator include.
8026         * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
8027         bits as unexported in the future.
8029 2003-01-21  Benjamin Kosnik  <bkoz@redhat.com>
8031         Reshuffle 22_locale testsuite.
8032         * 22_locale/(codecvt.cc money_get.cc
8033         codecvt_members_char_char.cc money_get_members_char.cc
8034         codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
8035         codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
8036         codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
8037         moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
8038         collate_members_char.cc money_put.cc collate_members_wchar_t.cc
8039         money_put_members_char.cc ctor_copy_dtor.cc
8040         money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
8041         num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
8042         ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
8043         numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
8044         ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
8045         num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
8046         ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
8047         operators.cc ctype_widen_char.cc static_members.cc
8048         ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
8049         global_templates.cc time_get_members_wchar_t.cc, members.cc,
8050         time_put.cc, messages_byname.cc, time_put_members_char.cc,
8051         messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
8052         Split up into individual test cases...
8053         * 22_locale/codecvt/1.cc: New.
8054         * 22_locale/codecvt/2.cc: New.
8055         * 22_locale/codecvt/always_noconv/char/1.cc: New.
8056         * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
8057         * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
8058         * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
8059         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
8060         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
8061         * 22_locale/codecvt/encoding/char/1.cc: New.
8062         * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
8063         * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
8064         * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
8065         * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
8066         * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
8067         * 22_locale/codecvt/in/char/1.cc: New.
8068         * 22_locale/codecvt/in/char/wrapped_env.cc: New.
8069         * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
8070         * 22_locale/codecvt/in/wchar_t/1.cc: New.
8071         * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
8072         * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
8073         * 22_locale/codecvt/length/char/1.cc: New.
8074         * 22_locale/codecvt/length/char/wrapped_env.cc: New.
8075         * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
8076         * 22_locale/codecvt/length/wchar_t/1.cc: New.
8077         * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
8078         * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
8079         * 22_locale/codecvt/max_length/char/1.cc: New.
8080         * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
8081         * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
8082         * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
8083         * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
8084         * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
8085         * 22_locale/codecvt/out/char/1.cc: New.
8086         * 22_locale/codecvt/out/char/wrapped_env.cc: New.
8087         * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
8088         * 22_locale/codecvt/out/wchar_t/1.cc: New.
8089         * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
8090         * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
8091         * 22_locale/codecvt/unicode/char.cc: New.
8092         * 22_locale/codecvt/unicode/wchar_t.cc: New.
8093         * 22_locale/codecvt/unshift/char/1.cc: New.
8094         * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
8095         * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
8096         * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
8097         * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
8098         * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
8099         * 22_locale/collate/1.cc: New.
8100         * 22_locale/collate/2.cc: New.
8101         * 22_locale/collate/compare/char/1.cc: New.
8102         * 22_locale/collate/compare/char/2.cc: New.
8103         * 22_locale/collate/compare/char/wrapped_env.cc: New.
8104         * 22_locale/collate/compare/char/wrapped_locale.cc: New.
8105         * 22_locale/collate/compare/wchar_t/1.cc: New.
8106         * 22_locale/collate/compare/wchar_t/2.cc: New.
8107         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
8108         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
8109         * 22_locale/collate/hash/char/1.cc: New.
8110         * 22_locale/collate/hash/char/2.cc: New.
8111         * 22_locale/collate/hash/char/wrapped_env.cc: New.
8112         * 22_locale/collate/hash/char/wrapped_locale.cc: New.
8113         * 22_locale/collate/hash/wchar_t/1.cc: New.
8114         * 22_locale/collate/hash/wchar_t/2.cc: New.
8115         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
8116         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
8117         * 22_locale/collate/transform/char/2.cc: New.
8118         * 22_locale/collate/transform/char/wrapped_env.cc: New.
8119         * 22_locale/collate/transform/char/wrapped_locale.cc: New.
8120         * 22_locale/collate/transform/wchar_t/2.cc: New.
8121         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
8122         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
8123         * 22_locale/collate_byname/1.cc: New.
8124         * 22_locale/ctype/1.cc: New.
8125         * 22_locale/ctype/2.cc: New.
8126         * 22_locale/ctype/cons/char/1.cc: New.
8127         * 22_locale/ctype/cons/char/wrapped_env.cc: New.
8128         * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
8129         * 22_locale/ctype/is/char/1.cc: New.
8130         * 22_locale/ctype/is/char/2.cc: New.
8131         * 22_locale/ctype/is/char/3.cc: New.
8132         * 22_locale/ctype/is/char/wrapped_env.cc: New.
8133         * 22_locale/ctype/is/char/wrapped_locale.cc: New.
8134         * 22_locale/ctype/is/wchar_t/1.cc: New.
8135         * 22_locale/ctype/is/wchar_t/2.cc: New.
8136         * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
8137         * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
8138         * 22_locale/ctype/narrow/char/1.cc: New.
8139         * 22_locale/ctype/narrow/char/2.cc: New.
8140         * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
8141         * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
8142         * 22_locale/ctype/narrow/wchar_t/1.cc: New.
8143         * 22_locale/ctype/narrow/wchar_t/2.cc: New.
8144         * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
8145         * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
8146         * 22_locale/ctype/scan/char/1.cc: New.
8147         * 22_locale/ctype/scan/char/wrapped_env.cc: New.
8148         * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
8149         * 22_locale/ctype/scan/wchar_t/1.cc: New.
8150         * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
8151         * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
8152         * 22_locale/ctype/to/char/1.cc: New.
8153         * 22_locale/ctype/to/char/wrapped_env.cc: New.
8154         * 22_locale/ctype/to/char/wrapped_locale.cc: New.
8155         * 22_locale/ctype/to/wchar_t/1.cc: New.
8156         * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
8157         * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
8158         * 22_locale/ctype/widen/char/1.cc: New.
8159         * 22_locale/ctype/widen/char/wrapped_env.cc: New.
8160         * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
8161         * 22_locale/ctype/widen/wchar_t/1.cc: New.
8162         * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
8163         * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
8164         * 22_locale/facet/1.cc: New.
8165         * 22_locale/facet/2.cc: New.
8166         * 22_locale/global_templates/1.cc: New.
8167         * 22_locale/locale/cons/1.cc: New.
8168         * 22_locale/locale/cons/2.cc: New.
8169         * 22_locale/locale/cons/3.cc: New.
8170         * 22_locale/locale/cons/4.cc: New.
8171         * 22_locale/locale/cons/5.cc: New.
8172         * 22_locale/locale/cons/6.cc: New.
8173         * 22_locale/locale/cons/7.cc: New.
8174         * 22_locale/locale/global_locale_objects/1.cc: New.
8175         * 22_locale/locale/global_locale_objects/2.cc: New.
8176         * 22_locale/locale/global_locale_objects/3.cc: New.
8177         * 22_locale/locale/operations/1.cc: New.
8178         * 22_locale/locale/operations/2.cc: New.
8179         * 22_locale/messages/1.cc: New.
8180         * 22_locale/messages/2.cc: New.
8181         * 22_locale/messages/members/char/1.cc: New.
8182         * 22_locale/messages/members/char/2.cc: New.
8183         * 22_locale/messages/members/char/3.cc: New.
8184         * 22_locale/messages/members/char/wrapped_env.cc: New.
8185         * 22_locale/messages/members/char/wrapped_locale.cc: New.
8186         * 22_locale/messages_byname/1.cc: New.
8187         * 22_locale/money_get/1.cc: New.
8188         * 22_locale/money_get/2.cc: New.
8189         * 22_locale/money_get/get/char/1.cc: New.
8190         * 22_locale/money_get/get/char/2.cc: New.
8191         * 22_locale/money_get/get/char/3.cc: New.
8192         * 22_locale/money_get/get/char/4.cc: New.
8193         * 22_locale/money_get/get/char/5.cc: New.
8194         * 22_locale/money_get/get/char/6.cc: New.
8195         * 22_locale/money_get/get/char/7.cc: New.
8196         * 22_locale/money_get/get/char/8.cc: New.
8197         * 22_locale/money_get/get/char/wrapped_env.cc: New.
8198         * 22_locale/money_get/get/char/wrapped_locale.cc: New.
8199         * 22_locale/money_get/get/wchar_t/1.cc: New.
8200         * 22_locale/money_get/get/wchar_t/2.cc: New.
8201         * 22_locale/money_get/get/wchar_t/3.cc: New.
8202         * 22_locale/money_get/get/wchar_t/4.cc: New.
8203         * 22_locale/money_get/get/wchar_t/5.cc: New.
8204         * 22_locale/money_get/get/wchar_t/6.cc: New.
8205         * 22_locale/money_get/get/wchar_t/7.cc: New.
8206         * 22_locale/money_get/get/wchar_t/8.cc: New.
8207         * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
8208         * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
8209         * 22_locale/money_put/1.cc: New.
8210         * 22_locale/money_put/2.cc: New.
8211         * 22_locale/money_put/put/char/1.cc: New.
8212         * 22_locale/money_put/put/char/2.cc: New.
8213         * 22_locale/money_put/put/char/3.cc: New.
8214         * 22_locale/money_put/put/char/4.cc: New.
8215         * 22_locale/money_put/put/char/5.cc: New.
8216         * 22_locale/money_put/put/char/6.cc: New.
8217         * 22_locale/money_put/put/char/wrapped_env.cc: New.
8218         * 22_locale/money_put/put/char/wrapped_locale.cc: New.
8219         * 22_locale/money_put/put/wchar_t/1.cc: New.
8220         * 22_locale/money_put/put/wchar_t/2.cc: New.
8221         * 22_locale/money_put/put/wchar_t/3.cc: New.
8222         * 22_locale/money_put/put/wchar_t/4.cc: New.
8223         * 22_locale/money_put/put/wchar_t/5.cc: New.
8224         * 22_locale/money_put/put/wchar_t/6.cc: New.
8225         * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
8226         * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
8227         * 22_locale/moneypunct/1.cc: New.
8228         * 22_locale/moneypunct/2.cc: New.
8229         * 22_locale/moneypunct/3.cc: New.
8230         * 22_locale/moneypunct/members/char/1.cc: New.
8231         * 22_locale/moneypunct/members/char/2.cc: New.
8232         * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
8233         * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
8234         * 22_locale/moneypunct/members/wchar_t/1.cc: New.
8235         * 22_locale/moneypunct/members/wchar_t/2.cc: New.
8236         * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
8237         * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
8238         * 22_locale/moneypunct_byname/1.cc: New.
8239         * 22_locale/num_get/1.cc: New.
8240         * 22_locale/num_get/2.cc: New.
8241         * 22_locale/num_get/get/char/1.cc: New.
8242         * 22_locale/num_get/get/char/2.cc: New.
8243         * 22_locale/num_get/get/char/3.cc: New.
8244         * 22_locale/num_get/get/char/4.cc: New.
8245         * 22_locale/num_get/get/char/5.cc: New.
8246         * 22_locale/num_get/get/char/6.cc: New.
8247         * 22_locale/num_get/get/char/wrapped_env.cc: New.
8248         * 22_locale/num_get/get/char/wrapped_locale.cc: New.
8249         * 22_locale/num_get/get/wchar_t/1.cc: New.
8250         * 22_locale/num_get/get/wchar_t/2.cc: New.
8251         * 22_locale/num_get/get/wchar_t/3.cc: New.
8252         * 22_locale/num_get/get/wchar_t/4.cc: New.
8253         * 22_locale/num_get/get/wchar_t/5.cc: New.
8254         * 22_locale/num_get/get/wchar_t/6.cc: New.
8255         * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
8256         * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
8257         * 22_locale/num_put/1.cc: New.
8258         * 22_locale/num_put/2.cc: New.
8259         * 22_locale/num_put/put/char/1.cc: New.
8260         * 22_locale/num_put/put/char/2.cc: New.
8261         * 22_locale/num_put/put/char/3.cc: New.
8262         * 22_locale/num_put/put/char/4.cc: New.
8263         * 22_locale/num_put/put/char/5.cc: New.
8264         * 22_locale/num_put/put/char/wrapped_env.cc: New.
8265         * 22_locale/num_put/put/char/wrapped_locale.cc: New.
8266         * 22_locale/num_put/put/wchar_t/1.cc: New.
8267         * 22_locale/num_put/put/wchar_t/2.cc: New.
8268         * 22_locale/num_put/put/wchar_t/3.cc: New.
8269         * 22_locale/num_put/put/wchar_t/4.cc: New.
8270         * 22_locale/num_put/put/wchar_t/5.cc: New.
8271         * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
8272         * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
8273         * 22_locale/numpunct/1.cc: New.
8274         * 22_locale/numpunct/2.cc: New.
8275         * 22_locale/numpunct/members/char/1.cc: New.
8276         * 22_locale/numpunct/members/char/2.cc: New.
8277         * 22_locale/numpunct/members/char/wrapped_env.cc: New.
8278         * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
8279         * 22_locale/numpunct/members/wchar_t/1.cc: New.
8280         * 22_locale/numpunct/members/wchar_t/2.cc: New.
8281         * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
8282         * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
8283         * 22_locale/numpunct_byname/1.cc: New.
8284         * 22_locale/numpunct_byname/2.cc: New.
8285         * 22_locale/time_get/1.cc: New.
8286         * 22_locale/time_get/2.cc: New.
8287         * 22_locale/time_get/date_order/char/1.cc: New.
8288         * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
8289         * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
8290         * 22_locale/time_get/date_order/wchar_t/1.cc: New.
8291         * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
8292         * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
8293         * 22_locale/time_get/get_date/char/1.cc: New.
8294         * 22_locale/time_get/get_date/char/2.cc: New.
8295         * 22_locale/time_get/get_date/char/3.cc: New.
8296         * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
8297         * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
8298         * 22_locale/time_get/get_date/wchar_t/1.cc: New.
8299         * 22_locale/time_get/get_date/wchar_t/2.cc: New.
8300         * 22_locale/time_get/get_date/wchar_t/3.cc: New.
8301         * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
8302         * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
8303         * 22_locale/time_get/get_monthname/char/1.cc: New.
8304         * 22_locale/time_get/get_monthname/char/2.cc: New.
8305         * 22_locale/time_get/get_monthname/char/3.cc: New.
8306         * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
8307         * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
8308         * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
8309         * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
8310         * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
8311         * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
8312         * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
8313         * 22_locale/time_get/get_time/char/1.cc: New.
8314         * 22_locale/time_get/get_time/char/2.cc: New.
8315         * 22_locale/time_get/get_time/char/3.cc: New.
8316         * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
8317         * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
8318         * 22_locale/time_get/get_time/wchar_t/1.cc: New.
8319         * 22_locale/time_get/get_time/wchar_t/2.cc: New.
8320         * 22_locale/time_get/get_time/wchar_t/3.cc: New.
8321         * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
8322         * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
8323         * 22_locale/time_get/get_weekday/char/1.cc: New.
8324         * 22_locale/time_get/get_weekday/char/2.cc: New.
8325         * 22_locale/time_get/get_weekday/char/3.cc: New.
8326         * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
8327         * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
8328         * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
8329         * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
8330         * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
8331         * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
8332         * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
8333         * 22_locale/time_get/get_year/char/1.cc: New.
8334         * 22_locale/time_get/get_year/char/3.cc: New.
8335         * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
8336         * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
8337         * 22_locale/time_get/get_year/wchar_t/1.cc: New.
8338         * 22_locale/time_get/get_year/wchar_t/3.cc: New.
8339         * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
8340         * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
8341         * 22_locale/time_put/1.cc: New.
8342         * 22_locale/time_put/2.cc: New.
8343         * 22_locale/time_put/put/char/1.cc: New.
8344         * 22_locale/time_put/put/char/10.cc: New.
8345         * 22_locale/time_put/put/char/2.cc: New.
8346         * 22_locale/time_put/put/char/3.cc: New.
8347         * 22_locale/time_put/put/char/4.cc: New.
8348         * 22_locale/time_put/put/char/5.cc: New.
8349         * 22_locale/time_put/put/char/6.cc: New.
8350         * 22_locale/time_put/put/char/7.cc: New.
8351         * 22_locale/time_put/put/char/8.cc: New.
8352         * 22_locale/time_put/put/char/9.cc: New.
8353         * 22_locale/time_put/put/char/wrapped_env.cc: New.
8354         * 22_locale/time_put/put/char/wrapped_locale.cc: New.
8355         * 22_locale/time_put/put/wchar_t/1.cc: New.
8356         * 22_locale/time_put/put/wchar_t/10.cc: New.
8357         * 22_locale/time_put/put/wchar_t/2.cc: New.
8358         * 22_locale/time_put/put/wchar_t/3.cc: New.
8359         * 22_locale/time_put/put/wchar_t/4.cc: New.
8360         * 22_locale/time_put/put/wchar_t/5.cc: New.
8361         * 22_locale/time_put/put/wchar_t/6.cc: New.
8362         * 22_locale/time_put/put/wchar_t/7.cc: New.
8363         * 22_locale/time_put/put/wchar_t/8.cc: New.
8364         * 22_locale/time_put/put/wchar_t/9.cc: New.
8365         * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
8366         * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
8368 2003-01-16  Jeffrey D. Oldham  <oldham@codesourcery.com>
8370         * config/locale/generic/messages_members.h
8371         (messages_byname<_CharT>::messages_byname): Use this-> to refer to
8372         unqualified members of base clasess.
8374 2003-01-16  Mark Mitchell  <mark@codesourcery.com>
8375             Jeffrey Oldham <oldham@codesourcery.com>
8377         * config/locale/gnu/messages_members.h: Use this-> to refer to
8378         unqualified members of base clasess.
8379         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
8380         * include/bits/codecvt.h: Likewise.
8381         * include/bits/deque.tcc: Likewise.
8382         * include/bits/fstream.tcc: Likewise.
8383         * include/bits/istream.tcc: Likewise.
8384         * include/bits/list.tcc: Likewise.
8385         * include/bits/locale_facets.h: Likewise.
8386         * include/bits/ostream.tcc: Likewise.
8387         * include/bits/sstream.tcc: Likewise.
8388         * include/bits/stl_bvector.h: Likewise.
8389         * include/bits/stl_deque.h: Likewise.
8390         * include/bits/stl_list.h: Likewise.
8391         * include/bits/stl_tree.h: Likewise.
8392         * include/bits/stl_vector.h: Likewise.
8393         * include/bits/vector.tcc: Likewise.
8394         * include/ext/ropeimpl.h: Likewise.
8395         * include/ext/stdio_filebuf.h: Likewise.
8396         * include/ext/stl_rope.h: Likewise.
8397         * include/std/std_fstream.h: Likewise.
8398         * include/std/std_sstream.h: Likewise.
8400 2003-01-15  Phil Edwards  <pme@gcc.gnu.org>
8402         * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
8404 2003-01-15  Benjamin Kosnik  <bkoz@redhat.com>
8406         * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
8407         GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
8408         * aclocal.m4: Regenerate.
8409         * configure: Regenerate.
8410         * testsuite/Makefile.am (all-local): Add conditional rule to
8411         generate testsuite_wchar_t.
8412         * testsuite/Makefile.in: Regenerate.
8413         * testsuite/lib/libstdc++-v3-dg.exp
8414         (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
8415         testsuite_wchar_t is not present in the build directory.
8416         * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
8417         Remove setulimit bits.
8418         * testsuite/26_numerics/complex_value.cc: Set to noopts.
8419         * testsuite/Makefile.am (CLEANFILES): Add.
8420         * testsuite/Makefile.in: Regenerate.
8422 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8424         * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
8425         __hppa__.
8427 2003-01-14  Jeffrey D. Oldham  <oldham@codesourcery.com>
8429         Further conform g++'s __vmi_class_type_info to the C++ ABI
8430         specification.
8431         * libsupc++/cxxabi.h
8432         (__vmi_class_type_info::__flags_masks): Remove enumerations not
8433         required by the specification.
8435 2003-01-12  Benjamin Kosnik  <bkoz@redhat.com>
8437         Renames, namespaces for testsuite utilities.
8438         * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
8439         (gnu_allocator_tracker): Rename to allocation_tracker.
8440         (gnu_new_allocator): Rename to tracker_alloc.
8441         (__set_testsuite_memlimit): Rename to set_memory_limits.
8442         (gnu_assignment_operator): Rename to assignment_operator.
8443         (gnu_destructor): Rename to destructor.
8444         (gnu_copy_tracker): Rename to copy_tracker.
8445         (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
8446         (run_tests_wrapped_locale): New.
8447         (run_tests_wrapped_env): New.
8448         * testsuite/testsuite_hooks.cc: Same.
8449         (class locale_data): Add.
8450         (class enviornment_variable): Add.
8451         (class not_found): Add.
8452         * testsuite/testsuite_allocator.h: Same.
8453         * testsuite/testsuite_allocator.cc: Same.
8454         * testsuite/23_containers/deque_ctor.cc
8455         (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
8456         allocation_tracker.
8457         Change gnu_new_allocator to tracker_alloc.
8458         Change gnu_counting_struct to counter.
8459         Change gnu_copy_tracker to copy_tracker.
8460         Change gnu_copy_constructor to copy_constructor.
8461         Change gnu_assignment_operator to assignment_operator.
8462         Inject.
8463         * testsuite/23_containers/vector_capacity.cc: Same.
8464         * testsuite/23_containers/vector_ctor.cc (test01): Same.
8465         * testsuite/23_containers/list_modifiers.cc: Change
8466         gnu_copy_tracker to copy_tracker.
8467         * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
8468         __set_testsuite_memlimit to set_memory_limits.
8469         * testsuite/21_strings/insert.cc (main): Same.
8470         * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
8471         * testsuite/27_io/stringstream.cc: Same.
8472         * testsuite/27_io/stringbuf.cc: Same.
8473         * testsuite/27_io/streambuf.cc: Same.
8474         * testsuite/27_io/ostream.cc: Same.
8475         * testsuite/27_io/istream.cc: Same.
8476         * testsuite/27_io/fstream.cc: Same.
8477         * testsuite/lib/libstdc++-v3-dg.exp
8478         (libstdc++-v3-list-sourcefiles): Additionally handle files two and
8479         three levels deeper in glob patterns.
8481 2003-01-11  Phil Edwards  <pme@gcc.gnu.org>
8483         * docs/doxygen/tables.html:  Finished now.
8484         * docs/doxygen/user.cfg.in:  Update to latest version of Doxygen.
8485         * include/bits/basic_ios.h (basic_ios::rdbuf):  Add example to
8486         comments.
8488         * include/bits/deque.tcc, include/bits/stl_alloc.h,
8489         include/bits/stl_deque.h, include/bits/stl_list.h,
8490         include/bits/stl_vector.h:  Remove _GLIBCPP_DEPRECATED bits scheduled
8491         for 3.4 removal.
8493 2003-01-09  Benjamin Kosnik  <bkoz@redhat.com>
8495         * configure.in: Revert.
8496         * configure: Regenerate.
8498 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
8500         * include/Makefile.am (install-data-local): Prepend
8501         $(DESTDIR) to destination paths in all (un)installation
8502         commands.  Use ${c_base_builddir} and ${std_builddir}
8503         as destination subdirectories to achieve consistency with
8504         preceding mkinstalldirs commands.  No effect because both
8505         variables contain "." only.
8506         * include/Makefile.in: Regenerate.
8508 2003-01-08  Benjamin Kosnik  <bkoz@redhat.com>
8510         * include/Makefile.am (stamp-*): Add checks for existing stamps.
8511         * include/Makefile.in: Regenerate.
8513         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
8514         * aclocal.m4: Regenerate.
8516         * configure.in: Don't add new multi-do rules every time the
8517         directory is reconfigured.
8518         * configure: Regenerate.
8520 2003-01-08  Brad Spencer  <spencer@infointeractive.com>
8521             Nathan Myers  <ncm@cantrip.org>
8523         * src/Makefile.am (stamp-debug): Clean.
8524         * src/Makefile.in: Regenerate.
8526 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
8528         PR libstdc++/8707
8529         * Makefile.am (distclean-multi): Fix.
8530         * Makefile.in: Regenerate.
8532 2003-01-06  Benjamin Kosnik  <bkoz@redhat.com>
8534         * include/bits/locale_facets.h (messages): Move ctor, dtor
8535         definitions to..
8536         (__timepunct): Same.
8537         * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
8538         definitions. Conditionalize for GNU systems.
8539         * config/locale/generic/messages_members.h (messages): Add dtor, ctor
8540         definitions.
8541         * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
8542         definitions. Conditionalize for GNU systems.
8543         * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
8544         definitions.
8545         * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
8546         * src/locale.cc: Define.
8547         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
8548         Use it.
8549         * config/locale/gnu/time_members.h: Use it.
8550         * config/locale/gnu/messages_members.h: Use it.
8551         * config/linker-map.gnu: Add locale::facets details.
8552         * include/Makefile.am (target_headers_extra): Add time_members.h.
8553         * include/Makefile.in: Regenerate.
8554         * acinclude.m4: Export CTIME_H.
8555         * aclocal.m4: Regenerate.
8556         * configure: Regnerate.
8558 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
8560         * src/codecvt.cc
8561         (codecvt<char, char, mbstate_t>::do_in, do_out):
8562         Tweak parameters to avoid unused parameter warnings.
8564 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
8566         PR libstdc++/9151
8567         * include/bits/locale_facets.cc (num_put::_M_convert_float):
8568         Limit __prec to digits10 + 2, not digits10 + 1, taking into
8569         account the possibility of %{g,G} conversion specifiers
8570         inside _S_format_float.
8571         * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
8573 2003-01-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8575         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
8576         libstdc++-v3-list-sourcefiles): Additionally handle files one
8577         level deeper in glob patterns.
8579         * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
8580         * testsuite/27_io/istream_extractor_arith/01.cc,
8581         testsuite/27_io/istream_extractor_arith/02.cc,
8582         testsuite/27_io/istream_extractor_arith/03.cc,
8583         testsuite/27_io/istream_extractor_arith/06.cc,
8584         testsuite/27_io/istream_extractor_arith/07.cc,
8585         testsuite/27_io/istream_extractor_arith/08.cc,
8586         testsuite/27_io/istream_extractor_arith/09.cc,
8587         testsuite/27_io/istream_extractor_arith/10.cc,
8588         testsuite/27_io/istream_extractor_arith/11.cc,
8589         testsuite/27_io/istream_extractor_arith/12.cc,
8590         testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
8591         * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
8592         sparc*-*-solaris2*.
8594 2003-01-05  Paolo Carlini <pcarlini@unitus.it>
8596         PR libstdc++/9168
8597         * src/codecvt.cc
8598         (codecvt<char, char, mbstate_t>::do_in, do_out):
8599         Implement the resolution of DR19 (TC).
8600         * testsuite/22_locale/codecvt_members_char_char.cc
8601         (test01): Tweak.
8603 2003-01-02  Jason Merrill  <jason@redhat.com>
8605         * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
8606         *__mem is also an output.
8607         * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.