Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob03af623e4ae65a600e34aa5b86d2369d67fd69aa
1 2003-07-28  Benjamin Kosnik  <bkoz@redhat.com>
3         * testsuite/testsuite_hooks.h: Remove list include.
4         (func_callback): Define as unique type, not std::list.
5         Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
6         * testsuite/libstdc++-v3.dg/dg.exp: Same.
7         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
8         * testsuite/23_containers/bitset_ctor.cc: 
9         * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
10         * testsuite/18_support/numeric_limits.cc: Same.
11         * testsuite/21_strings/basic_string/append/char/1.cc: Same.
12         * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
13         * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
14         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
15         * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
16         * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
17         * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
18         * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
19         * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
20         * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
21         * testsuite/21_strings/basic_string/find/char/1.cc: Same.
22         * testsuite/21_strings/basic_string/find/char/2.cc: Same.
23         * testsuite/21_strings/basic_string/find/char/3.cc: Same.
24         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
25         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
26         * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
27         * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
28         * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
29         * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
30         * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
31         * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc: 
32         * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc: 
33         * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc: 
34         * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc: 
35         * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc: 
36         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc: 
37         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc: 
38         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc: 
39         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc: 
40         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc: 
41         * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
42         * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
43         * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
44         * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
45         * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
46         * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
47         * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
48         * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
49         * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
50         * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
51         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
52         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
53         * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
54         * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
55         * testsuite/23_containers/bitset_ctor.cc: Same.
56         * testsuite/23_containers/bitset_shift.cc: Same.
57         * testsuite/23_containers/vector_ctor.cc: Same.
58         * testsuite/23_containers/vector_element_access.cc: Same.
59         * testsuite/24_iterators/istreambuf_iterator.cc: Same.
60         * testsuite/24_iterators/iterator.cc: Same.
61         * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
62         * testsuite/25_algorithms/lower_bound.cc: Same.
63         * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
64         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
65         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
66         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
67         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
68         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
69         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
70         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
71         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
72         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
73         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: 
74         Same.
75         
76 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
78         * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
79         docs/html/test.html, docs/html/17_intro/headers_cc.txt,
80         docs/html/17_intro/howto.html, docs/html/ext/howto.html:  Change
81         GLIBCPP to GLIBCXX (and explain as needed).
83 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
85         * README:  Update.
87 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
89         * testsuite/22_locale/messages/members/char/1.cc,
90         testsuite/22_locale/messages/members/char/2.cc,
91         testsuite/22_locale/messages/members/char/3.cc,
92         testsuite/22_locale/messages_byname/1.cc:  Update comment regarding
93         the origin of LOCALEDIR.
94         * testsuite/lib/libstdc++-v3.exp:  New file.
96 2003-07-25  Benjamin Kosnik  <bkoz@redhat.com>
98         * include/bits/char_traits.h: Update copyright, tweak.
99         * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
100         std types.
102 2003-07-24  Matt Austern  <austern@apple.com>
104         * /include/bits/char_traits.h (class char_traits): Put all the
105         real work into the new class template __gnu_cxx::char_traits.
106         Gave generic definitions for member functions.  Types are taken
107         from the new class template __gnu_cxx::_Char_types.
108         * testsuite/21_strings/char_traits/requirements/short/1.cc: New
109         file.  Test of std::char_traits<short>, which serves as a test of
110         the char_traits primary template.
112 2003-07-24  Benjamin Kosnik  <bkoz@redhat.com>
114         * testsuite/*: Change __gnu_cxx_test to __gnu_test.
116 2003-07-24  Nathan Myers  <ncm-nospam@cantrip.org>
118         * testsuite/23_containers/map_operators.cc: Conform to 
119         container requirement as value must be Assignable.
121 2003-07-23  Alexandre Oliva  <aoliva@redhat.com>
123         * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
124         tests not only generation of pch files, but also their use.
125         * aclocal.m4, configure: Rebuilt.
127 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
129         * config/cpu/hppa/atomicity.h: Change
130         _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
131         to match misc-inst.cc
133 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
135         * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
136         * include/c_std/std_cctype.h: Ditto.
137         * include/c_std/std_cerrno.h: Ditto.
138         * include/c_std/std_cfloat.h: Ditto.
139         * include/c_std/std_climits.h: Ditto.
140         * include/c_std/std_clocale.h: Ditto.
141         * include/c_std/std_cmath.h: Ditto.
142         * include/c_std/std_csetjmp.h: Ditto.
143         * include/c_std/std_csignal.h: Ditto.
144         * include/c_std/std_cstdarg.h: Ditto.
145         * include/c_std/std_cstddef.h: Ditto.
146         * include/c_std/std_cstdio.h: Ditto.
147         * include/c_std/std_cstdlib.h: Ditto.
148         * include/c_std/std_cstring.h: Ditto.
149         * include/c_std/std_ctime.h: Ditto.
150         * include/c_std/std_cwchar.h: Ditto.
151         * include/c_std/std_cwctype.h: Ditto.
152         * include/std/std_algorithm.h: Ditto.
153         * include/std/std_bitset.h: Ditto.
154         * include/std/std_complex.h: Ditto.
155         * include/std/std_deque.h: Ditto.
156         * include/std/std_fstream.h: Ditto.
157         * include/std/std_functional.h: Ditto.
158         * include/std/std_iomanip.h: Ditto.
159         * include/std/std_ios.h: Ditto.
160         * include/std/std_iosfwd.h: Ditto.
161         * include/std/std_iostream.h: Ditto.
162         * include/std/std_istream.h: Ditto.
163         * include/std/std_iterator.h: Ditto.
164         * include/std/std_limits.h: Ditto.
165         * include/std/std_list.h: Ditto.
166         * include/std/std_locale.h: Ditto.
167         * include/std/std_map.h: Ditto.
168         * include/std/std_memory.h: Ditto.
169         * include/std/std_numeric.h: Ditto.
170         * include/std/std_ostream.h: Ditto.
171         * include/std/std_queue.h: Ditto.
172         * include/std/std_set.h: Ditto.
173         * include/std/std_sstream.h: Ditto.
174         * include/std/std_stack.h: Ditto.
175         * include/std/std_stdexcept.h: Ditto.
176         * include/std/std_streambuf.h: Ditto.
177         * include/std/std_string.h: Ditto.
178         * include/std/std_utility.h: Ditto.
179         * include/std/std_valarray.h: Ditto.
180         * include/std/std_vector.h: Ditto.
182 2003-07-22  Doug Gregor  <dgregor@apple.com>
184         * include/bits/basic_string.h (basic_string::insert): Deprecate
185         GNU extension.
187 2003-07-21  Benjamin Kosnik  <bkoz@redhat.com>
189         * scripts/testsuite_flags.in (--build-includes): Remove extraneous
190         paths for libio.
191         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
192         (test03): Include typeinfo for bad_cast.
193         * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
194         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
195         * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
197 2003-07-21  Doug Gregor  <dgregor@apple.com>
199         * include/bits/boost_concept_check.h:
200         (_EqualityComparableConcept::__constraints): Remove != from the 
201         list of constraints; it is not listed in Table 28 of the C++98 
202         standard.
204 2003-07-18  Andreas Jaeger  <aj@suse.de>
206         * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
207         * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
208         * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
209         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
211 2003-07-17  Benjamin Kosnik  <bkoz@redhat.com>
212         
213         * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
214         * config/locale/generic/messages_members.h: Tweaks.
215         * config/locale/generic/monetary_members.cc
216         (moneypunct::_M_initialize_moneypunct): Use cache.
217         (moneypunct::~moneypunct): Delete cache.
218         * config/locale/generic/time_members.cc:
219         (__timepunct::_M_initialize_timepunct): Use cache.
220         * config/locale/generic/time_members.h:
221         (__timepunct::~__timepunct): Delete cache.
222         (__timepunct::__timepunct): Set cache.
223         * config/locale/gnu/messages_members.h: Tweaks.
224         * config/locale/gnu/monetary_members.cc:
225         (moneypunct::_M_initialize_moneypunct): Use cache.
226         (moneypunct::~moneypunct): Delete cache.
227         * config/locale/gnu/time_members.cc:
228         (__timepunct::_M_initialize_timepunct): Use cache.
229         * config/locale/gnu/time_members.h:
230         (__timepunct::~__timepunct): Delete cache.
231         (__timepunct::__timepunct): Set cache.
232         * include/bits/locale_facets.h (__timepunct_cache): New.
233         (__moneypunct_cache): New.
234         * include/bits/locale_facets.tcc: Tweak.
235         * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
236         * src/locale-inst.cc: Instantiate caches.
237         * src/globals.cc: Add "C" caches.
238         * src/localename.cc: Use external "C" caches.
240 2003-07-17  Phil Edwards  <pme@gcc.gnu.org>
242         * docs/doxygen/guide.html:  Fix typo.
244 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
246         * include/ext/pod_char_traits.h: Add state template argument.
248 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
250         * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
251         (num_get::_M_convert_int): To _M_insert_int.
252         (num_get::_M_convert_float): To _M_insert_float.        
253         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
254         Use caches for ctype, num_get.
255         (num_get::_M_extract_int): Same.
256         (num_get::get(bool)): Same.
257         (__verify_grouping): Use size_t.
258         * src/locale-inst.cc: Update.
259         * src/locale.cc: Adjust _S_atoms_in.
261 2003-07-16  Phil Edwards  <pme@gcc.gnu.org>
263         * docs/doxygen/mainpage.html:  Move building/writing instructions...
264         * docs/doxygen/guide.html:  ...to here.  New file.
266 2003-07-16  Jonathan Wakely  <redi@gcc.gnu.org>
268         * docs/html/ext/howto.html: Update URL for SGI STL docs.
269         * docs/html/faq/index.html: Same.
270         * docs/html/faq/index.txt: Regenerate.
272 2003-07-16  Paolo Carlini  <pcarlini@unitus.it>
274         PR libstdc++/11528
275         * include/bits/locale_facets.tcc (money_get::do_get):
276         Strip only _leading_ zeros.
277         * testsuite/22_locale/money_get/get/char/11528.cc: Add.
278         * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
280 2003-07-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
282         * include/ext/hash_map (class hash_multimap): Remove extra
283         semicolons from __glibcxx_class_requires3 entries.
284         * include/ext/hash_set (class hash_set): Ditto.
285         (class hash_multiset): Ditto.
287 2003-07-15  Petur Runolfsson  <peturr02@ru.is>
289         * include/bits/char_traits.h (char_traits<wchar_t>::move):
290         Change last parameter from int_type to size_t.
292 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
294         * include/bits/stl_algo.h (includes, set_union, set_intersection,
295         set_difference, set_symmetric_difference, max_element, min_element,
296         next_permutation, prev_permutation, find_first_of, find_end):
297         Document.
298         * include/bits/stl_algobase.h (copy,copy_backward):  Clarify overlap
299         restrictions in docs.
300         * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
301         Document.
302         * docs/doxygen/doxygroups.cc (setoperations):  New group.
304 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
306         * include/bits/basic_string.h:  Document public functions.
307         * docs/doxygen/TODO:  Update c21 todo.
309 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
311         * include/bits/stl_list.h:  Document more functions.
312         * docs/doxygen/TODO:  Update c23 todo.
314 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
316         * config/locale/gnu/c_locale.h (__convert_from_v): One more
317         qualification.
319 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
321         * include/bits/stl_tempbuf.h: Qualify free with std::.
322         * src/locale.cc: Include <cstdlib>, qualify getenv.
324 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
326         * config/locale/gnu/c_locale.h (__convert_from_v): Include
327         <cstdio>. Qualify names.
328         * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
330 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
331             Nathan C. Myers  <ncm-nospam@cantrip.org>
333         PR libstdc++/11378
334         * include/std/std_fstream.h (xsputn): Declare only.
335         * include/bits/fstream.tcc (xsputn): Define, optimize for the
336         always_noconv() case: when __n is sufficiently large flush 
337         the buffer and issue a direct write, if possible combining the
338         two with writev in __basic_file<>::xsputn_2.
339         * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
340         New, declare.
341         * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
342         Define.
343         * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
344         the availability of writev in <sys/uio.h>.
345         * configure.in: Call here.
346         * acconfig.h: Add undef for the corresponding symbol.
347         * aclocal.m4: Regenerate.
348         * configure: Regenerate.
349         * config.h.in: Regenerate.
350         * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
352         * include/std/std_fstream.h (sync): Constify a variable.
354 2003-07-14  Benjamin Kosnik  <bkoz@redhat.com>
356         * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
357         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
358         
359 2003-07-14  Gabriel Dos Reis  <gcc@integrable-solutions.net>
361         * config/locale/gnu/c_locale.h (__convert_from_v): Include
362         <cstring> and <cstdlib>. Qualify names.
364 2003-07-13  Mark Mitchell  <mark@codesourcery.com>
366         * config/locale/generic/c_locale.h: Include <cstdlib> and
367         <cstring>.
368         * include/bits/boost_concept_check.h: Add this-> to unqualified
369         method calls.
370         * include/bits/deque.tcc: Likewise.
371         * include/bits/locale_facets.h : Likewise.
372         * include/bits/ostream.tcc: Likewise.
373         * include/bits/stl_algo.h: Likewise.
374         * include/bits/stl_bvector.h: Likewise.
375         * include/bits/stl_deque.h: Likewise.
376         * include/bits/stl_list.h: Likewise.
377         * include/bits/stl_tree.h: Likewise.
378         * include/bits/stl_vector.h: Likewise.
379         * include/bits/vector.tcc: Likewise.
380         * include/ext/rope: Likewise.
381         * include/ext/ropeimpl.h: Likewise.
382         * include/ext/stdio_filebuf.h: Likewise.
384 2003-07-11  Jerry Quinn  <jlquinn@optonline.net>
386         * include/bits/basic_ios.h (copyfmt): Document.
387         * include/bits/ios_base.h (event, event_callback, register_callback,
388         xalloc, iword, pword):  Document.
389         (imbue, ~ios_base): Update docs on callbacks.
391 2003-07-11  Phil Edwards  <pme@gcc.gnu.org>
393         * acinclude.m4 (GLIBCC_ENABLE_SYMVERS):  Tweak comments.  Add
394         warning messages if the environment cannot support symbol versioning.
395         (port_specific_symbol_file):  It's plural, add an 's' on the end.
396         * configure.host:  Likewise.
397         * src/Makefile.am:  Likewise.
398         * config/linker-map.gnu:  Remove one semicolon, heh.
399         * scripts/extract_symvers:  Don't assume useful 'export' syntax.
400         Set LANG as well as LC_ALL for possibly-broken sort(1)s.
401         * aclocal.m4, configure, src/Makefile.in:  Regenerated.
403 2003-07-09  Benjamin Kosnik  <bkoz@redhat.com>
405         * include/bits/locale_facets.tcc: Use function object for
406         __use_cache instead of template function. Partially specialize for 
407         __numpunct<_CharT>.
408         * include/bits/locale_classes.h: Update friend declaration for
409         __use_cache.
410         (_M_install_cache): No throw exception specs.
411         * src/locale.cc: Remove __use_cache specializations.
412         * include/ext/pod_char_traits.h (length): Tweak.
413         * include/bits/locale_facets.h (__numpunct_cache): Remove
414         char_type typedef.
415         * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
416         (pod_long): Remove.
417         * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
418         * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
419         * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
420         * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
421         * testsuite/22_locale/numpunct/members/pod/1.cc: New.
422         * testsuite/22_locale/numpunct/members/pod/2.cc: New.
423         
424 2003-07-09  Jerry Quinn  <jlquinn@optonline.net>
426         * src/ios.cc (_M_grow_words):  Fix spelling.
428 2003-07-09  Gawain Bolton  <gp.bolton@computer.org>
430         * include/bits/stl_tree.h: Move larger member functions in
431         _Rb_tree_base_iterator and _Rb_tree_node to...
432         * src/stl_tree.cc: Here.
433         * src/Makefile.in: Add stl_tree.cc.
434         * src/Makefile.in: Regenerated.
435         * config/linker-map.gnu: Add symbols here.
437 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
439         * testsuite/ext/pod_char_traits.cc: New.
440         * include/ext/pod_char_traits.h: New.
441         * include/Makefile.am (ext_headers): Add pod_char_traits.h.
442         * include/Makefile.in: Regenerate.
443         * docs/html/21_strings/howto.html: Update.
444                 
445 2003-07-08  Gawain Bolton  <gp.bolton@computer.org>
447         * testsuite/performance/list_create_fill_sort.cc: New.
449 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
451         * config/locale/generic/numeric_members.cc: Correct type info.
452         * config/locale/gnu/numeric_members.cc: Same.
453         * include/bits/locale_facets.h: Same.
454         
455         * include/bits/char_traits.h: Correct spacing.
457         * src/locale.cc: Wrap to 80 col.
458         
459 2003-07-07  Paolo Carlini  <pcarlini@unitus.it>
461         * include/std/std_complex.h: Partially revert last
462         changes: cmath functions must not be qualified.
464 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
466         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Do not test for binutils
467         2.11 with globbing backport fix.
468         * aclocal.m4, configure:  Regenerated.
470 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
472         * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
473         if output is at all possible (!_M_reading), cannot be active.
475         * include/std/std_fstream.h: Tweak comments to doxygen style.
477 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
479         * include/bits/locale_classes.h: Fully qualify standard
480         functions with std::, thus avoiding Koenig lookup.
481         * include/bits/locale_facets.tcc: Likewise.
482         * src/locale.cc: Likewise.
483         * src/localename.cc: Likewise.
485 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
487         * include/bits/allocator_traits.h:  Fix doxygen markup.
488         * include/ext/mt_allocator.h:  Likewise.
490 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
492         * testsuite/testsuite_hooks.h:  Guard against a missing unlink().
494 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
496         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Bump minimal version
497         requirement.  Add port_specific_symbol_file variable.
498         * configure.host:  Add docs for port_specific_symbol_file.
499         Clean up try_cpu block for x86.
500         * config/linker-map.gnu:  No more "last symbol can't have a
501         semicolon" kaka.  Add hook for port-specific symbols.
502         * src/Makefile.am:  Remove trailing whitespace.
503         (libstdc++-symbol.ver):  Detect the presence of port-specific
504         symbols, and add them accordingly.
506         * docs/html/17_intro/porting.texi:  Bring up to date.
508         * src/Makefile.in, aclocal.m4, configure,
509         docs/html/17_intro/porting.html:  Regenerated.
511 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
513         * scripts/create_testsuite_files:  New file.
514         * testsuite/Makefile.am (all-local, check-performance):  Use it.
515         * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests):  Remove.
516         * testsuite/Makefile.in:  Regenerated.
518         * testsuite/performance/filebuf_sputc.cc:  Remove the temporary
519         files at the end.
520         * testsuite/performance/fstream_seek_write.cc:  Likewise.
521         * testsuite/performance/ofstream_insert_float.cc:  Likewise.
522         * testsuite/performance/ofstream_insert_int.cc:  Likewise.
523         * testsuite/abi_check.cc (main):  Nicer spacing in usage output.
525 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
527         * include/bits/stl_list.h: Performance and memory usage
528         improvements. In particular, the behaviour of the constructor and
529         destructor as the list header node is no longer dynamically
530         allocated/de-allocated.
531         * include/bits/list.tcc: Likewise.
533 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
535         * include/std/std_complex.h: Fully qualify standard
536         functions with std::, thus avoiding Koenig lookup.
537         * include/std/std_memory.h: Likewise.
538         * include/std/std_valarray.h: Likewise.
540 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
542         * include/bits/stl_tree.h: _Rb_tree_rebalance():  Add local
543           variable for grandparent and use const
545 2003-07-05  David Billinghurst <David.Billinghurst@riotinto.com>
547         * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
548         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
549         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
550         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
551         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
552         * testsuite/27_io/objects/char/7.cc: Ditto
553         * testsuite/27_io/objects/char/9661-1.cc: Ditto
555 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
557         * include/std/std_bitset.h: Fully qualify standard
558         functions with std::, thus avoiding Koenig lookup.
560         * include/std/std_fstream.h: Change comment to doxygen style.
562 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
564         * include/std/std_limits.h:  More CPP->CXX changes.
565         * scripts/check_survey.in:  Likewise.
567 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
569         Move from CPP to CXX.
570         * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
571         * testsuite/Makefile.am: Same.
572         * testsuite/Makefile.in: Regenerate.
573         * po/Makefile.am: Same.
574         * po/Makefile.in: Regenerate.   
575         * libsupc++/Makefile.am: Same.
576         * libsupc++/Makefile.in: Regenerate.    
577         * libmath/Makefile.am: Same.
578         * libmath/Makefile.in: Regenerate.      
579         * include/Makefile.am: Same.
580         * include/Makefile.in: Regenerate.      
581         * src/Makefile.am: Same.
582         * src/Makefile.in: Regenerate.  
583         * acconfig.h: Same.
584         * configure.host: Same.
585         * configure.in: Same.
586         * configure: Regenerate.
587         * acinclude.m4: Same.
588         * aclocal.m4: Same.
589         * src: Change all files in this directory.
590         * testsuite: Same.
591         * include: Same, standardize include guards.
592         * config: Same.
593         * libsupc++: Same.
594         
595 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
597         * testsuite/22_locale/collate/compare/wchar_t/2.cc
598         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
599         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
600         * testsuite/22_locale/collate/hash/wchar_t/2.cc
601         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
602         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
603         * testsuite/22_locale/collate/transform/wchar_t/2.cc
604         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
605         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
606         XFAIL on all targets.
608 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
610         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
611         * aclocal.m4: Regenerate.
612         * configure: Regenerate.
614 2003-07-04  Jerry Quinn  <jlquinn@optonline.net>
616         * include/bits/locale_facets.tcc (__int_to_char): Move common case
617         to the top.
619 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
620             Petur Runolfsson  <peturr02@ru.is>
622         * config/io/basic_file_stdio.cc: Revert.
624 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
626         * include/bits/deque.tcc: Fully qualify standard
627         functions with std::, thus avoiding Koenig lookup.
628         * include/bits/gslice_array.h: Likewise.
629         * include/bits/indirect_array.h: Likewise.
630         * include/bits/list.tcc: Likewise.
631         * include/bits/mask_array.h: Likewise.
632         * include/bits/slice_array.h: Likewise.
634 2003-07-04  Gawain Bolton  <gbolton@free.fr>
636         * include/bits/stl_tree.h: Performance and memory usage
637         improvements.
639 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
641         * Makefile.am: Replace PWD with PWD_COMMAND.
642         * Makefile.in: Regenerated.
643         * docs/html/Makefile: Likewise.
645 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
647         * include/bits/valarray_array.h: Fully qualify standard
648         functions with std::, thus avoiding Koenig lookup.
649         * include/bits/vector.tcc: Likewise.
651 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
653         * include/Makefile.am: Update target_ to host_.
654         * include/Makefile.in: Regenerate.
655         * src/Makefile.am: Same.
656         * src/Makefile.in: Regenerate.
658         * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
660 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
662         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
663         --enable-libstdcxx-debug-flags.
664         (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
665         (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
666         * aclocal.m4: Regenerate.
667         * configure: Same.
668         * docs/html/configopts.html: Update.
670 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
672         Revert the fix for libstdc++/11378.
674 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
676         PR libstdc++/11378
677         * include/std/std_fstream.h (xsputn): In the unbuffered case,
678         provided always_noconv(), issue directly _M_file.xsputn.
679         * testsuite/performance/filebuf_unbuf_sputn.cc: New.
681 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
683         * include/bits/stl_list.h: Fully qualify standard
684         functions with std::, thus avoiding Koenig lookup.
685         * include/bits/stl_queue.h: Likewise.
686         * include/bits/stl_raw_storage_iter.h: Likewise.
687         * include/bits/stl_tempbuf.h: Likewise.
688         * include/bits/stl_tree.h: Likewise.
689         * include/bits/stl_uninitialized.h: Likewise.
690         * include/bits/stl_vector.h: Likewise.
691         * include/ext/rope: Change includes order.
693 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
695         * configure.host (fpos_include_dir): Fix.
697 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
699         * include/bits/stl_heap.h: Fully qualify standard
700         functions with std::, thus avoiding Koenig lookup.
701         * include/bits/stl_iterator_base_funcs.h: Likewise.
703         * include/bits/stl_algo.h: Qualify __iterator_category too.
704         * include/bits/stl_algobase.h: Likewise.
705         * include/bits/stl_bvector.h: Likewise.
707         * include/bits/stl_algo.h: Don't qualify the pair type.
709 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
711         * include/Makefile.am (target_headers): Add fpos.h
712         (bits_headers): Remove.
713         * include/Makefile.in: Regenerate.
714         * configure.in: Add FPOS_INC_SRCDIR, substitute it.
715         * configure: Regenerate.
716         * configure.host: Add fpos_include_dir.
717         * config/os/gnu-linux/fpos.h: New.
718         * config/os/generic/fpos.h: Add.
719         * include/bits/fpos.h: Remove.
721         * config/io/c_io_stdio.h: Remove fpos_t typedef.
723         * include/bits/fstream.tcc: Tweaks.
724         * include/std/std_fstream.h: Same.
726         * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
727         * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
728         * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
729         * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
730         * testsuite/27_io/fpos/1.cc: New.
732 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
733             Petur Runolfsson  <peturr02@ru.is>
735         * include/std/std_streambuf.h: Remove _M_pos.
736         * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
737         * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
738         use fread/fwrite instead of read/write.
739         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
740         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
741         before reading again.
742         * testsuite/27_io/objects/char/6.cc: Tweak.
744 2003-07-03  David Edelsohn  <edelsohn@gnu.org>
746         * testsuite/22_locale/num_put/put/char/7.cc: Guard with
747         _GLIBCPP_USE_WCHAR_T.
749 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
751         * include/bits/basic_string.tcc (_M_replace_aux): Constify
752         __n1 and __off1.
754 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
756         * include/bits/stl_bvector.h: Fully qualify standard
757         functions with std::, thus avoiding Koenig lookup.
758         * include/bits/stl_construct.h: Likewise.
759         * include/bits/stl_deque.h: Likewise.
761 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
763         * testsuite/22_locale/num_put/put/char/7.cc: Include
764         <testsuite_hooks.h>, tweak.
765         * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
767 2003-07-01  Phil Edwards  <pme@gcc.gnu.org>
769         * testsuite/Makefile.am (AM_MAKEFLAGS):  Set to -j1 (affects
770         check* targets, but not libs/programs).
771         * testsuite/Makefile.in:  Regenerate.
773 2003-07-01  Roger Sayle  <roger@eyesopen.com>
775         * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
776         (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
777         * aclocal.m4: Regenerate.
778         * configure: Regenerate.
780 2003-07-01  Benjamin Kosnik  <bkoz@redhat.com>
782         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
783         * aclocal.m4: Regenerated.
784         * configure: Regenerated.
786 2003-07-01  Paolo Carlini  <pcarlini@unitus.it>
788         PR libstdc++/11389
789         * include/bits/fstream.tcc (underflow): For encoding() == 0
790         don't read more than __buflen chars.
791         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
792         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
793         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
794         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
796 2003-07-01  Jerry Quinn  <jlquinn@optonline.net>
798         * 22_locale/num_put/put/char/7.cc: New.
799         * 22_locale/num_put/put/wchar_t/7.cc: New.
801 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
803         * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
804         * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
806 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
808         * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
809         * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
810         * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
811         * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
812         * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
813         * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
814         * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
815         * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
816         * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
817         * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
818         * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
819         * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
820         * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
821         * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
822         * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
823         * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
824         * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
825         * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
826         * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
827         * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
828         * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
829         * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
830         * data/seekoff-1.tst: Remove.
831         * data/seekoff-1io.tst: New.
832         * data/seekoff-1out.tst: New.
833         * data/seekoff-2.tst: Remove.
834         * data/seekoff-2io.tst: New.
835         * data/seekoff-2out.tst: New.
836         * data/seekoff.txt
837         * data/seekpos-1.tst: Remove.
838         * data/seekpos-1io.tst: New.
839         * data/seekpos-1out.tst: New.
840         * data/seekpos-2.tst: Remove.
841         * data/seekpos-2io.tst: New.
842         * data/seekpos-2out.tst: New.
843         * data/seekpos.txt: New.
845 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
847         * src/locale.cc (__use_cache<numpunct>): Move from here ...
848         * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
849         here.
851 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
853         * include/bits/stl_algobase.h: Fully qualify standard
854         functions with std::, thus avoiding Koenig lookup.
856 2003-06-30  Doug Gregor <dgregor@apple.com>
858         * include/bits/locale_facets.tcc (money_get::do_get): Avoid
859         subscripting empty string.
861 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
863         * testsuite/Makefile.am (check-am):  Do not override.
864         (baseline_symbols):  Declare as PHONY, so no need to 'touch' it.
865         * testsuite/Makefile.in:  Regenerate.
867 2003-06-30  Doug Gregor <dgregor@apple.com>
869         * testsuite/24_iterators/insert_iterator.cc (test01, test02):
870         Don't initialize an insert_iterator with a singular iterator.
872 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
874         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
875         * aclocal.m4: Regenerate.
876         * configure.in (GLIBCPP_CHECK_PCH): Move, change to
877         GLIBCPP_ENABLE_PCH, default to yes.
878         * configure: Regenerate.
879         * docs/html/configopts.html: Add --enable-pch.
881 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
883         * testsuite/lib/libstdc++-v3-dg.exp:  Add comments.
884         (libstdc++-v3-init):  Also set LD_RUN_PATH.
886 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
888         * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
889         from here to filebuf and stringbuf.
890         (~basic_streambuf()): Don't set _M_mode.
891         (basic_streambuf()): Don't set _M_mode.
892         * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
893         (~basic_filebuf()): Clean up.
894         * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
895         * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
896         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
897         * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
898         * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
899         * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
900         * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
902 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
904         * include/std/std_fstream.h (_M_underflow): Remove.
905         (uflow): Remove, inherited from streambuf.
906         (underflow): Only declare.
907         * include/bits/fstream.tcc (_M_underflow): Rename to
908         underflow, to which is equivalent for __bump == false,
909         simplify.
910         * include/std/std_sstream.h (_M_underflow): Remove.
911         (uflow): Remove, inherited from streambuf.
912         (underflow): Only declare.
913         * include/bits/sstream.tcc (_M_underflow): Rename to
914         underflow, to which is equivalent for __bump == false,
915         simplify.
917 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
919         * include/bits/stl_algo.h: Fully qualify standard functions
920         with std::, thus avoiding Koenig lookup.
922 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
924         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
925         Improve type correctness-wise.
926         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
927         Likewise.
928         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
929         Likewise.
930         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
931         Likewise.
933 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
935         * include/std/std_streambuf.h (uflow): According to
936         27.5.2.4.3,p16, don't check gptr() < egptr().
938 2003-06-28  Paolo Carlini  <pcarlini@unitus.it>
940         PR libstdc++/9875
941         * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
942         (seekpos): Likewise.
943         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
944         New test.
945         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
946         New test.
948 2003-06-27  Benjamin Kosnik  <bkoz@redhat.com>
950         * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
951         output name to libstdc++-v3-performance.sum.
952         * testsuite/Makefile.am (CLEANFILES): Remove .performance.
953         * testsuite/Makefile.in: Regenerate.
955 2003-06-27  Matthias Klose  <doko@debian.org>
957         * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
958         output of abi-check in libstdc++-v3-abi.sum.
959         * testsuite/Makefile.in: Regenerate.
961 2003-06-27  Krister Walfridsson  <cato@df.lth.se>
963         * config/os/bsd/netbsd/ctype_noninline.h
964         (_C_ctype_): Declare.
965         (ctype<char>::classic_table): Return _C_ctype_ + 1.
966         (ctype<char>::ctype): Use classic_table.
968 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
969             Nathan C. Myers  <ncm-nospam@cantrip.org>
971         PR libstdc++/9178
972         * include/bits/fstream.tcc (_M_underflow): Properly estimate
973         the worst-case number of external bytes for a given get area.
974         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
976 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
977             Petur Runolfsson  <peturr02@ru.is>
979         PR libstdc++/11305
980         * include/bits/fstream.tcc (overflow): Properly estimate the
981         worst-case number of external bytes for a given put area
982         (by using codecvt::max_length()).
983         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
984         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
985         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
986         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
988 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
990         * config/linker-map.gnu: Remove ; after __numpunct_cache.
992 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
994         * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
995         to the imbued locale.
996         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
997         _M_getloc.
998         (num_put::_M_convert_float): Use.
1000 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
1001             Jerry Quinn  <jlquinn@optonline.net>
1003         * config/linker-map.gnu: Add __numpunct_cache.
1004         * config/locale/gnu/numeric_members.cc
1005         (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
1006         all elements for "C" locale.
1007         (numpunct::~numpunct): Delete _M_data.
1008         * config/locale/generic/numeric_members.cc: Same.
1009         * include/bits/basic_ios.tcc
1010         (basic_ios::init): Remove __locale_cache bits.
1011         (basic_ios::_M_cache_locale): Same.
1012         * include/bits/ios_base.h: Same. Tweaks.
1013         * include/bits/locale_classes.h: Tweaks. Reorder classes.
1014         (__use_cache): Make friends with _Impl, locale.
1015         (_Impl::_M_caches): Add.
1016         (_Impl::_M_install_cache): Add.
1017         * include/bits/locale_facets.h (__numpunct_cache): New.
1018         (numpunct): Encapsulate data members in __numpunct_cache member,
1019         _M_data. Adjust virtuals.
1020         (numpunct::numpunct): New ctor for the same.
1021         (__locale_cache_base): Remove.
1022         (__locale_cache): Remove.
1023         * include/bits/locale_facets.tcc (__use_cache): New function,
1024         specializations.
1025         (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
1026         * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
1027         * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
1028         * src/locale-inst.cc: Same. Add __numpunct_cache.
1029         * src/locale.cc: Tweak inlines.
1030         (__use_cache): Define specializations.
1031         * src/localename.cc: Use global bits.
1032         (_Impl::~Impl): Deal with __numpunct_cache destruction.
1033         (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
1034         (_Impl::_M_init_facet): Take into account __numpunct_cache.
1035         * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
1036         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1038 2003-06-26  Nathan C. Myers  <ncm-nospam@cantrip.org>
1039             Paolo Carlini  <pcarlini@unitus.it>
1041         * testsuite/performance/filebuf_copy.cc: New, testing char
1042         by char file copy.
1044 2003-06-26  Paolo Carlini  <pcarlini@unitus.it>
1045             Nathan C. Myers  <ncm-nospam@cantrip.org>
1047         * include/bits/fstream.tcc (_M_underflow): When the actual
1048         end of file is reached, set 'uncommitted' mode to allow a
1049         next write without an intervening seek (see C++98 27.8.1.1,2
1050         and C89 7.9.5.3).
1051         * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
1053 2003-06-25  Nathan C. Myers  <ncm-nospam@cantrip.org>
1055         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1056         sputc): Move inline, from here...
1057         * include/std/std_streambuf.h: ... to here.
1059         * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
1060         sputbackc, sungetc, sputc): Use __builtin_expect.
1062 2003-06-24  Phil Edwards  <pme@gcc.gnu.org>
1064         * docs/doxygen/mainpage.html:  Use a useful title.
1066 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
1068         * docs/html/documentation.html: Remove assignment info.
1069         * docs/html/17_intro/contribute.html: Edits.
1070         * docs/html/17_intro/libstdc++-assign.tx: Remove.
1072         * docs/html/test.html: Update.
1074         * README: Update.
1076 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
1077             Ulrich Drepper  <drepper@redhat.com>
1079         * testsuite/testsuite_performance.h: Tweak mallinfo.
1081 2003-06-24  Paolo Carlini  <pcarlini@unitus.it>
1082             Nathan C. Myers  <ncm-nospam@cantrip.org>
1084         * include/std/std_fstream.h (_M_filepos): Remove.
1085         (_M_reading, _M_writing): New, encode the various I/O modes:
1086         'read', 'write' and 'uncommitted'.
1087         (sync): If there is something to flush, do it, then go to
1088         'uncommitted' mode.
1089         * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
1090         with three different cases: __off > 0 (upon underflow),
1091         __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
1092         seekoff/pos).
1093         (_M_underflow): Don't call overflow, set _M_reading to true
1094         on success, tweak.
1095         (pbackfail): Set _M_reading to true on pback creation, tweak.
1096         (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
1097         set _M_writing to true on success, tweak.
1098         (seekoff): Simplify, set _M_reading, _M_writing to false, call
1099         _M_set_buffer(-1) ('uncommitted').
1100         (open, close, setbuf): Set _M_reading, _M_writing to false and
1101         call _M_set_buffer(-1), tweak.
1102         (basic_filebuf): Don't set _M_buf_unified.
1103         (_M_destroy_internal_buffer): Don't call setg and setp.
1104         * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
1105         _M_writing and _M_set_buffer(-1).
1106         * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
1107         _M_out_lim, _M_buf_unified): Remove.
1108         (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
1109         (setp): Don't set _M_out_lim.
1110         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
1111         the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
1112         upon open the mode is 'uncommitted' and therefore the put area
1113         pointers are null.
1114         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
1115         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
1116         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
1117         * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
1118         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
1119         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
1120         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1121         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
1122         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
1123         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
1124         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
1125         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
1126         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
1127         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
1128         * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
1129         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
1130         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
1131         * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
1132         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
1133         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
1135         * include/bits/fstream.tcc (showmanyc): Use only the
1136         documented derivation interface to basic_streambuf (gptr(),
1137         setg(), etc.) to work right with user specializations.
1138         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1139         sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
1140         * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
1141         Likewise.
1142         * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
1143         xsgetn): Likewise.
1145 2003-06-23  Loren J. Rittle  <ljrittle@acm.org>
1147         * configure.host (freebsd*): Set abi_baseline_pair.
1148         * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
1149         (at or near first release) to 3.3.
1150         * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
1151         * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
1152         * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
1154         * include/ext/mt_allocator.h: Portability.
1155         * testsuite/testsuite_performance.h: Likewise.
1157 2003-06-23  Benjamin Kosnik  <bkoz@redhat.com>
1159         * docs/html/17_intro/libstdc++-assign.txt: Update address.
1161         * testsuite/performance/ifstream_getline.cc: Fix.
1163 2003-06-23  Doug Gregor <dgregor@apple.com>
1165         * include/bits/boost_concept_check.h: Don't use _D or _R for type
1166         names.
1168 2003-06-22  Paolo Carlini  <pcarlini@unitus.it>
1169             Nathan C. Myers  <ncm-nospam@cantrip.org>
1171         * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
1172         is now used only for filebuf, when _M_buf_unified is true.
1173         epgtr() plays the role of _M_out_lim but it's only updated
1174         upon overflow, underflow, uflow, seekoff/pos.
1175         * include/bits/sstream.tcc (_M_underflow): New, implements
1176         stringbuf::underflow and uflow.
1177         (seekoff, seekpos): Tweak, use  _M_update_egptr.
1178         * include/std/std_sstream.h (str): Rewrote, deal correctly
1179         with the new logic, in particular, when pptr() > egptr().
1180         (_M_sync): When __testout && !__testin set all the get area
1181         pointers to the current string end.
1182         (_M_update_egptr): New, internal function updating egptr()
1183         to the actual string end.
1184         (_M_underflow): New, declare.
1185         (underflow): Dispatch to _M_underflow(false).
1186         (uflow): Dispatch to _M_underflow(true).
1188         * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
1189         seekpos): Use only the documented derivation interface to
1190         basic_streambuf (gptr(), setg(), etc.) to work right with
1191         user specializations.
1192         * include/std/std_sstream.h (str, _M_sync): Likewise.
1194 2003-06-20  Doug Gregor <dgregor@apple.com>
1196         * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
1197         * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
1198         dereference end iterator.
1199         * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
1200         * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
1201         index equal to the length of a string.
1202         * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
1203         * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
1204         * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
1205         * testsuite/22_locale/ctype/widen/char/1.cc: Same.
1206         * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
1207         * testsuite/23_containers/list_modifiers.cc: Don't dereference
1208         singular reverse iterator.
1209         * testsuite/23_containers/vector_bool.cc: Don't increment singular
1210         iterator.
1211         * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
1213 2003-06-20  Doug Gregor <dgregor@apple.com>
1215         * include/bits/basic_string.h (basic_string::replace): Dispatch
1216         _InputIterator version based on _Is_integer.
1217         * include/bits/basic_string.tcc (basic_string::replace):
1218         Renamed replace(iterator, iterator, size_type, _CharT) to
1219         _M_replace_aux.
1220         * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
1221         Test basic_string::assign(_InputIterator, _InputIterator),
1222         which calls basic_string::replace(iterator, iterator,
1223         _Input_iterator, _InputIterator).
1225 2003-06-20  Benjamin Kosnik  <bkoz@redhat.com>
1227         * testsuite/testsuite_performance.h (resource_counter): Don't use
1228         mallinfo at the moment.
1230 2003-06-20  Matthias Klose  <doko@debian.org>
1232         * configure.host: Set try_cpu to target_cpu for existing
1233         baseline files.
1235 2003-06-19  Andreas Jaeger  <aj@suse.de>
1237         * testsuite/Makefile.am (extract_symvers): Revert accidental
1238         change.
1239         * testsuite/Makefile.in: Regenerate.
1241         * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
1242         * configure: Regenerated.
1244 2003-06-19  Paolo Carlini  <pcarlini@unitus.it>
1246         * include/std/std_sstream.h (_M_sync): Make non virtual.
1248 2003-06-18  Benjamin Kosnik  <bkoz@redhat.com>
1250         * testsuite/testsuite_performance.h (time_counter): New.
1251         (resource_counter): New.
1252         (report_performance): New.
1253         (start_counters): New.
1254         (stop_counters): New.
1255         (clear_counters): New.
1256         * testsuite/performance/allocator.cc: Instrument.
1257         * testsuite/performance/cout_insert_int.cc: Same.
1258         * testsuite/performance/complex_norm.cc: Same.
1259         * testsuite/performance/filebuf_sputc.cc: New.
1260         * testsuite/performance/fstream_seek_write.cc: Same.
1261         * testsuite/performance/ifstream_getline.cc: Same.
1262         * testsuite/performance/map_create_fill.cc: Same.
1263         * testsuite/performance/ofstream_insert_float.cc: Same.
1264         * testsuite/performance/ofstream_insert_int.cc: Same.
1265         * testsuite/performance/string_append.cc: Convert.
1266         * scripts/check_performance: New.
1267         * testsuite/Makefile.am (check-performance): New.
1268         (CLEANFILES): Add.
1270 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
1271             Benjamin Kosnik  <bkoz@redhat.com>
1273         * include/std/std_sstream.h (setbuf): Check __n >= 0.
1274         * include/bits/fstream.tcc (setbuf): Tweak.
1276 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
1278         * include/bits/sstream.tcc (seekoff): We can't seek beyond
1279         _M_out_lim, therefore _M_move_out_cur boils down to simply
1280         updating _M_out_cur.
1281         (seekpos): Likewise, clean up.
1283 2003-06-18  Nathan C. Myers  <ncm-nospam@cantrip.org>
1284             Paolo Carlini  <pcarlini@unitus.it>
1286         * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
1287         simply equivalent to the unbuffered case (0, 0) as far as
1288         _M_buf_size is concerned.
1290 2003-06-18  Andreas Jaeger  <aj@suse.de>
1292         * testsuite/Makefile.am (new-abi-baseline): Create baseline
1293         directory.
1294         (baseline_file): Use baseline_dir.
1295         (baseline_dir): New.
1296         (mkinstalldirs): New.
1298         * acinclude.m4: Rename baseline_file to baseline_dir, strip
1299         filename from baseline_dir.
1301         * testsuite/Makefile.in: Regenerated.
1302         * Makefile.in: Regenerated.
1303         * aclocal.m4: Regenerated.
1304         * configure: Regenerated.
1306 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
1308         * configure.in: Missed check_survey bit.
1309         * configure: Regenerated.
1311 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
1313         * scripts: New.
1314         * config/abi/extract_symvers: Move to...
1315         * scripts/extract_symvers: ...here.
1316         * mkcheck.in: Move to..
1317         * scripts/check_survey.in: ...here.
1318         * testsuite_flags.in: Move to..
1319         * scripts/testsuite_flags.in: ...here.
1320         * configure.in: Change check and testsuite_flags locations.
1321         * configure: Regenerate.
1322         * testsuite/Makefile.am (current_symbols.txt): Change location.
1323         * testsuite/Makefile.in: Regenerate.
1324         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
1325         location of testsuite_flags.
1326         * Makefile.am (check-script): Move..
1327         (check-script-install): Move...
1328         * testsuite/Makefile.am: ... here.
1329         * testsuite/Makefile.in: Regenerate.
1330         * Makefile.in: Regenerate.
1332 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
1334         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
1336 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
1338         * Makefile.am (check-abi): Move...
1339         (new-abi-baseline): Move...
1340         * testsuite/Makefile.am: ...here.
1341         (new-abi-baseline): Conditionalize.
1342         (check-abi): Conditionalize.
1343         (check-abi-verbose): New.
1344         * Makefile.in: Regenerate.
1345         * testsuite/Makefile.in: Regenerate.
1346         * configure.in: Consolidate testsuite configure bits.
1347         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
1348         * configure: Regenerate.
1349         * aclocal.m4: Regenerate.
1350         * testsuite/abi_check.cc: Add --check-verbose.
1351         Only output detailed information if --check-verbose.
1353 2003-06-16  Andreas Jaeger  <aj@suse.de>
1355         * testsuite/abi_check.cc: Create summary report.
1357 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
1359         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
1360         for systems with BUFSIZ != 8192.
1361         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1362         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
1363         Minor tweaks.
1365 2003-06-16  Andreas Jaeger  <aj@suse.de>
1367         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
1368         check-abi multilib aware.
1369         * aclocal.m4: Regenerate.
1370         * configure: Regenerate.
1372 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
1373             Andreas Jaeger  <aj@suse.de>
1375         * configure.host: Set x86_64 abi_baseline pair correctly.
1377 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
1379         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
1380         fix for missing seeks between gets and puts into...
1381         * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
1382         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
1383         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
1384         * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
1385         * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
1386         * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
1388 2003-06-15  Richard Henderson  <rth@redhat.com>
1390         * config/linker-map.gnu: Export virtual function thunks for
1391         64-bit systems too.
1393 2003-06-13  Benjamin Kosnik  <bkoz@redhat.com>
1395         * config/abi/i686-pc-linux-gnu: To..
1396         * config/abi/i486-linux-gnu: ...this.
1397         * config/abi/alphaev67-unknown-linux-gnu: To..
1398         * config/abi/alpha-linux-gnu: ...this.
1399         * config/abi/ia64-unknown-linux-gnu: To...
1400         * config/abi/ia64-linux-gnu: ...this.
1401         * config/abi/x86_64-unknown-linux-gnu: To...
1402         * config/abi/x86_64-linux-gnu: ...this.
1403         * config/abi/i386-unknown-freebsd4: To...
1404         * config/abi/i386-freebsd4: ...this.
1405         * config/linker-map.gnu: Cleanups, move libsupc++ bits into
1406         CXXABI.
1407         * configure.host: abi_baseline_triplet to abi_baseline_pair.
1408         Simplify cpu bits so that abi_baseline_pair can use the same
1409         cpu configuration.
1410         * acinclude.m4: Same.
1411         * aclocal.m4: Regenerate.
1412         * configure.in: Can't get enable_abi_check to yes unless native.
1413         * configure: Regenerate.
1415 2003-06-13  Paolo Carlini  <pcarlini@unitus.it>
1417         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
1418         fix for missing seeks between gets and puts into...
1419         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
1420         * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
1421         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
1422         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
1423         * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
1424         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
1425         for missing seeks between gets and puts.
1426         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
1427         * testsuite/data/seekoff-1.tst: New.
1428         * testsuite/data/seekoff-2.tst: New.
1429         * testsuite/data/seekpos-1.tst: New.
1430         * testsuite/data/seekpos-2.tst: New.
1432 2003-06-13  Nathan C. Myers <ncm-nospam@cantrip.org>
1434         Avoid multi-processor bus contention on increment/decrement-and-
1435         test of the reference count in the empty-string object, by comparing
1436         addresses first, and never touching the reference count of the empty-
1437         string object.
1438         * include/bits/basic_string.h:
1439         (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
1440         members.
1441         (_Rep::_S_empty_rep()): New accessor.
1442         (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
1443         a base class _Rep_base.
1444         (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
1445         (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
1446         since no longer must increment its refcount.
1447         * include/bits/basic_string.tcc:
1448         (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
1449         return immediately.  The former might be unnecessary.  The latter
1450         prevents begin() and end() from cloning it unnecessarily.
1451         (_S_construct(_InIterator, _InIterator, const _Alloc&,
1452         input_iterator_tag), _S_construct(_InIterator, _InIterator,
1453         const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
1454         const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
1455         (_M_mutate): Check for the empty string and treat it as shared.
1456         This is necessary here because _M_mutate is sometimes called with
1457         all-zero arguments; in all other uses of _M_is_shared, the test comes
1458         out right anyhow.
1460 2003-06-12  Benjamin Kosnik  <bkoz@redhat.com>
1462         * src/allocator-inst.cc: Explicitly instantiate.
1463         * include/ext/pool_allocator.h: Inhibit implicit instantiations.
1464         Tweaks.
1465         * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
1467 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
1469         * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
1470         * aclocal.m4: Regenerate.
1471         * Makefile.am (SUBDIRS): Remove libio.
1472         * Makefile.in: Regenerate.
1473         * configure.in: Same.
1474         * configure: Regenerate.
1475         * config/io/basic_file_libio.cc: Remove.
1476         * config/io/basic_file_libio.h: Remove.
1477         * config/io/c_io_libio_codecvt.c: Remove.
1478         * config/io/c_io_libio.h: Remove.
1479         * libio/*: Remove.
1480         * src/Makefile.am: Same.
1481         * src/Makefile.in: Regenerate.
1482         * docs/html/configopts.html: Edits.
1483         * docs/html/explanations.html: Edits.
1485 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
1487         * include/bits/stl_alloc.h (__debug_alloc): Move out.
1488         (__malloc_alloc): Same.
1489         (__pool_alloc): Same.
1490         (__new_alloc): Same.
1491         Rename to..
1492         * include/bits/allocator.h: ...this.
1493         * include/bits/stl_deque.h: Modify comment.
1494         * include/bits/stl_tree.h: Modify include.
1495         * include/std/std_memory.h: Same.
1496         * include/ext/rope: Same.
1497         * include/ext/slist: Same.
1498         * include/std/std_vector.h: Same.
1499         * include/std/std_stack.h: Same.
1500         * include/std/std_queue.h: Same.
1501         * include/std/std_list.h: Same.
1502         * include/std/std_deque.h: Same.
1503         * include/backward/alloc.h: Same.
1504         * include/ext/debug_allocator.h: New.
1505         * include/ext/malloc_allocator.h: New.
1506         * include/ext/pool_allocator.h: New.
1507         * include/ext/new_allocator.h: New.
1508         * include/bits/pthread_allocimpl.h: Remove.
1509         * include/bits/stl_pthread_alloc.h: Remove.
1510         * include/Makefile.am (ext_headers): Add.
1511         * include/Makefile.in: Regenerate.
1512         * src/stl-inst.cc: Use __gnu_cxx namespace.
1513         * src/stl-inst.cc: Move to...
1514         * src/allocator-inst.cc: Here.
1515         * src/Makefile.am (sources): Update.
1516         * src/Makefile.in: Regenerate.
1517         * config/linker-map.gnu: Remove __pool_alloc bits.
1518         * testsuite/ext/headers.cc: Add.
1519         * testsuite/ext/allocators.cc: Fixup.
1521 2003-06-11  Stefan Olsson  <stefan@snon.net>
1522             Ola Rönnerup  <fnolis@home.se>
1524         * include/Makefile.am (ext_headers): Add.
1525         * include/Makefile.in: Regenerate.
1526         * include/ext/mt_allocator.h: New file.
1528 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
1530         * include/bits/fstream.tcc (close): Clean up a bit.
1532         * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
1534         * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
1535         - the saved _M_in_cur, that is - cannot be null.
1536         (sync): Constify a variable.
1538         * include/std/std_streambuf.h: Tweak a comment.
1539         (in_avail): Constify a variable.
1541 2003-06-10  Phil Edwards  <pme@gcc.gnu.org>
1543         * docs/html/17_intro/BUGS:  Update from 2.90.8 snapshot.
1544         * docs/html/17_intro/CHECKLIST:  Bring up to date with respect to
1545         correctness of container::iterator typedefs.  Fix whitespace.
1546         * docs/html/20_util/howto.html, docs/html/ext/howto.html:  Add links
1547         to allocator docs.
1548         * docs/html/documentation.html:  Regenerate.
1550         * include/bits/basic_string.h, include/bits/basic_string.tcc,
1551         include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
1552         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
1553         include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
1554         include/bits/stl_list.h, include/bits/stl_uninitialized.h,
1555         include/bits/stl_vector.h, include/bits/vector.tcc,
1556         include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
1557         Change _Iter names to _Iterator, and __pos to __position.
1559         * include/bits/stl_relops.h, include/bits/stl_numeric.h,
1560         include/bits/stl_multiset.h, include/bits/stl_set.h:
1561         Remove emacs markers.
1563         * include/bits/stl_threads.h (_STL_auto_lock):  Add __unused__.
1565 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
1567         * include/bits/fstream.tcc (overflow): According to
1568         27.5.2.4.5, overflow() returns not_eof(eof()).
1569         * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
1570         * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
1572 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
1574         * include/bits/fstream.tcc (_M_underflow): Check overflow return
1575         value; tweak slightly.
1577 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
1579         * include/bits/fstream.tcc (_M_underflow): Do not special
1580         case the unbuffered case, which really means simply a one char
1581         get area.
1582         (basic_filebuf): Initialize _M_buf_size.
1583         (setbuf): Unbuffered means _M_buf_size == 1, since only
1584         _M_buf_size - 1 == 0 chars are going to be used for the
1585         put area and 1 for the get area.
1586         * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
1587         (~basic_streambuf): Tweak.
1588         (basic_streambuf): Do not initialize _M_buf_size.
1589         * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
1590         (~basic_filebuf): Tweak.
1591         (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
1592         unbuffered situation (i.e., put area pointers NULL).
1593         * include/bits/streambuf.tcc (sbumpc): Clean up.
1594         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
1595         * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
1596         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
1597         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
1598         * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
1599         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
1600         * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
1602 2003-06-09  Phil Edwards  <pme@gcc.gnu.org>
1604         * acinclude.m4:  Move all AM_CONDITIONAL calls out.
1605         (GLIBCPP_CONFIGURE):  Set defaults for variables used in AM_CONDITIONAL
1606         statements.
1607         * configure.in:  Centralize AM_CONDITIONALs so that they are always
1608         run.  Make use of GLIBCPP_IS_CROSS_COMPILING.
1609         * aclocal.m4, configure:  Regenerated.
1611 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
1613         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 235.
1615 2003-06-06  Nathan Myers  <ncm-nospam@cantrip.org>
1617         * include/bits/stl_iterator.h
1618         (reverse_iterator::reverse_iterator()): Apply DR235: default
1619         constructor default-initializes data member.  Instantiated on a
1620         pointer type, the member has to end up equal to zero.
1622 2003-06-06  Benjamin Kosnik  <bkoz@redhat.com>
1624         * include/bits/stl_alloc.h: Cleanups.
1625         * include/ext/functional: Same.
1626         * include/ext/hash_map: Same.
1627         * include/ext/hash_set: Same.
1628         * include/ext/iterator: Same.
1629         * include/ext/memory: Same.
1630         * include/ext/numeric: Same.
1631         * include/ext/rb_tree: Same.
1632         * include/ext/ropeimpl.h: Same.
1633         * include/ext/slist: Same.
1634         * include/ext/stdio_filebuf.h: Same.
1635         * include/ext/stdio_sync_filebuf.h: Same.
1636         * include/ext/stl_rope.h: Move to...
1637         * include/ext/rope: ...here.
1638         * include/ext/stl_hash_fun.h: Move to...
1639         * include/ext/hash_fun.h: ...here.
1640         * include/ext/stl_hashtable.h: Move to...
1641         * include/ext/hashtable.h: ...here.
1642         * include/backward/hashtable.h: Reflect new names.
1643         * include/Makefile.am: Same.
1644         * include/Makefile.in: Regenerated.
1646 2003-06-05  Benjamin Kosnik  <bkoz@redhat.com>
1648         PR libstdc++/9024
1649         * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
1650         * include/bits/stl_algobase.h: Tweak.
1651         * include/std/std_fstream.h: Move _M_buf_size to...
1652         * include/std/std_streambuf.h: ...here. Modify.
1653         * include/bits/streambuf.tcc: Same.
1654         * testsuite/testsuite_hooks.h: Tweak.
1655         * testsuite/testsuite_io.h (constraint_filebuf): New.
1656         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
1657         * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
1658         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
1659         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
1660         * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
1661         * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
1662         * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
1663         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
1664         * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
1665         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
1666         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
1667         * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
1668         * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
1669         * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
1670         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
1671         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
1672         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
1673         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
1674         * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
1675         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
1676         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
1677         * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
1678         * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
1679         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
1680         * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
1681         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
1682         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
1683         * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
1684         * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
1685         * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
1686         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
1687         * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
1688         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
1689         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
1690         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
1691         * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
1692         * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
1693         * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
1694         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
1695         * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
1696         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
1697         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
1698         * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
1699         * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
1700         * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
1701         * testsuite/data/sgetc.txt: New.
1702         * testsuite/data/sgetn.txt: New.
1704 2003-06-05  Paolo Carlini  <pcarlini@unitus.it>
1706         PR libstdc++/11095
1707         * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
1708         Deal with width() smaller than zero.
1709         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
1710         operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
1711         _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
1712         char*), operator<<(basic_ostream<char, _Traits>&, const char*),
1713         operator<<(basic_ostream, const basic_string&)): Likewise.
1715         * testsuite/27_io/basic_istream/extractors_character/char/
1716         (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
1717         * testsuite/27_io/basic_ostream/inserters_character/char/
1718         (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
1719         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
1720         (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
1722 2003-06-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1724         * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
1725         .gch compilation works.
1726         * aclocal.m4, configure: Regenerate.
1727         * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
1728         initialize PCHFLAGS.
1730 2003-06-04  Paolo Carlini  <pcarlini@unitus.it>
1732         * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
1733         erase(iterator), erase(iterator, iterator), c_str,
1734         compare(const basic_string&)): Constify various variables.
1735         * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
1736         const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
1737         _S_create, resize, _M_replace, _M_replace_safe,
1738         append(const basic_string&), append(const basic_string&, size_type,
1739         size_type), append(const _CharT*, size_type), append(size_type,
1740         _CharT), operator+(const _CharT*, const basic_string&),
1741         operator+(_CharT, const basic_string&), replace(iterator, iterator,
1742         size_type, _CharT), find(const _CharT*, size_type, size_type),
1743         find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
1744         rfind(_CharT, size_type), compare(size_type, size_type,
1745         const basic_string&), compare(size_type, size_type,
1746         const basic_string&, size_type, size_type), compare(const _CharT*),
1747         compare(size_type, size_type, const _CharT*), compare(size_type,
1748         size_type, const _CharT*, size_type)): Likewise.
1750 2003-06-03  Benjamin Kosnik  <bkoz@redhat.com>
1752         * include/bits/fstream.tcc (pbackfail): Make a rarely taken
1753         'if' branch less obscure.
1755 2003-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
1757         PR libstdc++/9815
1758         * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
1759         asm case to asm.
1760         * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
1761         (__atomic_add): likewise.
1763 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1765         * include/bits/sstream.tcc (pbackfail): Minor clean up and
1766         reformatting, consistent with basic_filebuf::pbackfail.
1768 2003-06-02  Richard Kreckel  <Richard.Kreckel@GiNaC.DE>
1770         PR libstdc++/11062
1771         * config/cpu/mips/atomicity.h:  Change __attribute__ ((unused)) to
1772         __attribute__ ((__unused__)).
1773         * config/os/aix/atomicity.h:  Likewise.
1775 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1777         PR libstdc++/9761
1778         * include/bits/fstream.tcc (pbackfail): If the pback buffer
1779         is already active don't try to store in it a second char.
1780         * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
1782         * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
1784 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1786         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
1787         line spacing.
1789 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1791         * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
1792         instead of unnecessarily taking the address of _M_pback.
1793         (xsgetn): Simplify slightly for a single char pback buffer.
1795 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1797         * include/bits/sstream.tcc (seekoff): Remove four unnecessary
1798         variables and two 'if', clean up.
1800 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1802         * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
1803         not _M_out_end, since the former actually points to the string
1804         end (vs buffer end).
1805         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
1807 2003-05-30  Phil Edwards  <pme@gcc.gnu.org>
1809         * docs/doxygen/filter:  New file.
1810         * docs/doxygen/filter.sed:  New file.
1811         * docs/doxygen/run_doxygen:  Add g flag to sed substitutions.  Duh.
1812         * docs/doxygen/user.cfg.in (INPUT_FILTER):  Point to new filter.
1813         * docs/html/documentation.html:  Fix links to doxygen pages.
1815 2003-05-30  Paolo Carlini  <pcarlini@unitus.it>
1817         * include/bits/fstream.tcc (_M_convert_to_external): Don't
1818         check for __ilen > 0.
1820 2003-05-29  Sylvain Pion  <Sylvain.Pion@mpi-sb.mpg.de>
1822         PR libstdc++/10783
1823         * include/bits/stl_iterator.h (class __normal_iterator):
1824         Don't inherit from iterator, add missing typedefs.
1826 2003-05-29  Paolo Carlini <pcarlini@unitus.it>
1828         * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
1829         * testsuite/24_iterators/reverse_iterator/1.cc: New.
1830         * testsuite/24_iterators/reverse_iterator/2.cc: New.
1831         * testsuite/24_iterators/reverse_iterator/3.cc: New, from
1832         PR libstdc++/10783.
1834 2003-05-27  Steve Ellcey  <sje@cup.hp.com>
1836         * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
1837         on IA64 HP-UX.
1838         * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
1839         _LIBUNWIND_STD_ABI is set.
1841 2003-05-26  Brendan Kehoe  <brendan@zen.org>
1843         * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
1844         make sure the number of digits required after the decimal-point
1845         (if any) is exactly the value returned by frac_digits().
1846         * testsuite/22_locale/money_get/get/char/9.cc: New.
1847         * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
1849 2003-05-27  Jonathan Wakely  <redi@gcc.gnu.org>
1851         * include/std/std_istream.h, include/std/std_ostream.h: Typo in
1852         comment.
1854 2003-05-26  Benjamin Kosnik  <bkoz@redhat.com>
1856         PR libstdc++/9339
1857         * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
1858         (_M_pback): No array necessary.
1859         * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
1860         unbuffered case, coalesec into ...
1861         (basic_filebuf::overflow): ...this.
1862         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
1863         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
1865 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
1867         * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
1868         libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
1869         libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
1870         libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
1871         libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
1872         libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
1873         libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
1874         libsupc++/eh_unex_handler.cc, libsupc++/exception,
1875         libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
1876         libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
1877         libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
1878         libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
1879         Replace "GNU CC" with "GCC".
1881         * include/backward/new.h: Replace "GNU CC" with "GCC".
1883 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1885         PR libstdc++/3066.
1886         * configure.in: Switch target to host, don't assume newlib.
1887         (target_alias): Remove.
1888         * configure: Regenerate.
1889         * acinclude.m4: Same.
1890         * aclocal.m4: Regenerate.
1891         * configure.target: Same. Rename to...
1892         * configure.host: This.
1894 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
1896         * include/std/std_fstream.h (_S_pback_size): Remove definition.
1897         (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
1898         pback buffer.
1899         * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
1900         * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
1901         of _S_pback_size for systems with no COMDAT or weak support.
1902         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
1903         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
1904         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
1905         * testsuite/27_io/basic_fstream/3.cc: Likewise.
1906         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
1907         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
1908         * testsuite/27_io/basic_ofstream/3.cc: Likewise.
1909         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
1910         * testsuite/27_io/basic_streambuf/3.cc: Likewise.
1912 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
1914         * include/bits/fstream.tcc (_M_underflow): Simplify:
1915         !__testout implies _M_filepos == _M_in_end, therefore
1916         the first _M_file.seekoff call is never issued.
1918 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1920         * configure.in: Sort cross table.
1921         * configure: Regenerate.
1923 2003-05-22  Brad Spencer  <spencer@infointeractive.com>
1925         PR libstdc++/10106
1926         * configure.in: Add Solaris cross bits.
1928 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
1930         * libstdc++-v3/config/os/mingw32/os_defines.h
1931         (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
1932         (NOMINMAX): Define.  Update copyright year.
1934 2003-05-21  Paolo Carlini  <pcarlini@unitus.it>
1936         * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
1938 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
1940         * docs/html/faq/index.html: Fix typo.
1941         * docs/html/faq/index.txt: Regenerate.
1943 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
1945         * docs/html/test.html: Fix markup.
1947 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
1949         * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
1950         zero.
1951         Update copyright year.
1953 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
1955         * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
1957 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
1959         * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
1960         further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
1962 2003-05-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1964         * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
1965         Cast via void* to avoid -Wcast-align warnings.
1966         (__default_alloc_template::_S_refill): Likewise.
1968 2003-05-20  Benjamin Kosnik  <bkoz@redhat.com>
1970         * testsuite/README: Move to...
1971         * docs/html/test.html: ...here. Add documentation.
1972         * docs/html/install.html: Move testing bits out..
1973         * docs/html/documentation.html: Add separate testing link.
1974         * testsuite/performance: Add.
1975         * testsuite/performance/allocator.cc: New.
1976         * testsuite/performance/complex_norm.cc: New.
1977         * testsuite/performance/cout_insert_int.cc: New.
1978         * testsuite/performance/fstream_seek_write.cc: New.
1979         * testsuite/performance/ifstream_getline.cc: New.
1980         * testsuite/performance/map_create_fill.cc: New.
1981         * testsuite/performance/ofstream_insert_float.cc: New.
1982         * testsuite/performance/ofstream_insert_int.cc: New.
1983         * testsuite/performance/string_append.cc: New.
1984         * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
1985         performance tests.
1987 2003-05-20  Gabriel Dos Reis <gdr@integrable-solutions.net>
1989         PR libstdc++/10689
1990         * include/std/std_complex.h (pow): Tidy.
1992 2003-05-19  Paolo Carlini  <pcarlini@unitus.it>
1994         * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
1995         that upon filebuf::close() 27.8.1.1,3 is enforced.
1997 2003-05-15  Loren J. Rittle  <ljrittle@acm.org>
1999         * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
2001 2003-05-15  Paolo Carlini  <pcarlini@unitus.it>
2002             Nathan Myers  <ncm@cantrip.org>
2004         * include/bits/fstream.tcc (_M_overflow): Rewrote to call
2005         _M_convert_to_external only once (_M_buf_size is now the size of
2006         the put area + 1 for the overflow char of a full area); call
2007         _M_set_buffer instead of _M_set_indeterminate.
2008         (setbuf): Don't accept a buffer smaller than 2 chars.
2009         (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
2010         instead of _M_set_determinate.
2011         (open): Call _M_set_buffer, instead of _M_set_indeterminate.
2012         (seekoff): Likewise.
2013         * include/ext/stdio_filebuf.h (stdio_filebuf(int,
2014         std::ios_base::openmode, bool, size_t),
2015         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
2016         Likewise.
2017         * include/std/std_fstream.h (_M_set_indeterminate): Remove.
2018         (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
2019         _M_buf_size - 1.
2020         * include/std/std_streambuf.h: Tweak _M_out_lim comment.
2021         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
2022         into account that, for _M_buf_size == BUFSIZ == 8192, the size of
2023         the put area is now BUFSIZ - 1.
2024         * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
2025         that now the smallest _M_buf_size is 2 (still fails, for the same
2026         reason, with 3.2.3)
2028 2003-05-14  Loren J. Rittle  <ljrittle@acm.org>
2030         * testsuite/thread/pthread4.cc: Tweak test.
2032 2003-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2034         * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
2035         excess errors dg marker, use dg-errors instead.
2036         * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
2037         * testsuite/20_util/auto_ptr_neg.cc: Same.
2039 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
2041         * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
2042         cached member.
2043         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
2044         Initialize _M_codecvt.
2045         (basic_filebuf::imbue): Same.
2046         (basic_filebuf::showmanyc): Use it.
2047         (basic_filebuf::underflow): Use it.
2048         (basic_filebuf::_M_convert_to_external): Use it.
2049         (basic_filebuf::seekoff): Use it.
2050         (basic_filebuf::imbue): Use it, tweaks.
2051         * include/bits/localefwd.h (__check_facet): New.
2052         * include/bits/locale_classes.h: Tweaks.
2053         * include/bits/locale_facets.tcc: Tweaks.
2054         * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
2055         _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
2056         _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
2057         * include/bits/basic_ios.tcc: Same.
2058         * include/bits/istream.tcc: Same.
2059         * include/bits/ostream.tcc: Same.
2060         * include/std/std_streambuf.h: Same.
2061         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
2062         * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
2063         * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
2064         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
2065         * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
2066         * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
2068 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
2070         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
2071         unnecessary includes and unused string literals.
2072         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
2073         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
2074         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
2075         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
2077 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
2079         * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
2081 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
2083         * include/std/std_fstream.h (_M_convert_to_external): Change
2084         to return bool, take two less streamsize parameters.
2085         * include/bits/fstream.tcc (_M_convert_to_external): Tweak
2086         consistently definition.
2087         (_M_overflow): Adjust call points.
2089 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
2091         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
2093 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
2095         * testsuite/Makefile.am:  Properly quote /both/ LD_RUN_PATHs.
2096         * testsuite/Makefile.in:  Regenerate.
2098 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
2100         * testsuite/Makefile.am:  Properly quote LD_RUN_PATH.
2101         * testsuite/Makefile.in:  Regenerate.
2103 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
2105         PR libstdc++/3181
2106         * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
2107         (acos): Handle integer argument.
2108         (asin): Likewise.
2109         (atan): Likewise.
2110         (atan2): Likewise.
2111         (ceil): Likewise.
2112         (cos): Likewise.
2113         (cosh): Likewise.
2114         (exp): Likewise.
2115         (fabs): Likewise.
2116         (floor): Likewise.
2117         (frexp): Likewise.
2118         (ldexp): Likewise.
2119         (log): Likewise.
2120         (log10): Likewise.
2121         (sin): Likewise.
2122         (sinh): Likewise.
2123         (sqrt): Likewise.
2124         (tan): Likewise.
2125         (tanh): Likewise.
2126         * include/bits/cpp_type_traits.h (__are_same<>): New traits.
2127         (__enable_if): Likewise.
2128         * testsuite/26_numerics/cmath/overloads.C: New test.
2130 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
2132         PR libstdc++/9027
2133         PR libstdc++/9520
2134         PR libstdc++/10096
2135         * include/bits/fstream.tcc (basic_file::_M_underflow):  Add generic
2136         implementation, based on old wchar_t specialization, add support
2137         for codecvt::in() return value of codecvt_base::noconv, remove
2138         _M_file.sys_ungetc() call.
2139         * include/std/std_fstream.h (basic_file::underflow,
2140         basic_file::uflow, basic_file::_M_underflow):  Remove
2141         specialization declarations, call _M_underflow from generic versions
2142         of underflow and uflow.
2143         * src/fstream.cc (basic_file::underflow, basic_file::uflow,
2144         basic_file::_M_underflow):  Remove specializations.
2145         * src/Makefile.am (sources):  Remove fstream.cc.
2146         * src/Makefile.in:  Regenerated.
2147         * testsuite/27_io/basic_filebuf/underflow/10096.cc:  New test.
2148         * testsuite/27_io/basic_filebuf/underflow/char/1.cc:  New test.
2149         * testsuite/27_io/basic_filebuf/underflow/char/9027.cc:  New test.
2150         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc:  New test.
2152 2003-05-10  Benjamin Kosnik  <bkoz@redhat.com>
2154         * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
2155         buffer.
2156         * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
2157         unbuffered bits.
2158         (__basic_file::xsputn): Same.
2159         (__basic_file::seekoff): Same.
2160         (__basic_file::seekpos): Same.
2161         (__basic_file::showmanyc): Same.
2162         * config/io/basic_file_stdio.cc: Same.
2163         * include/std/std_fstream.h: Same.
2164         * include/bits/fstream.tcc: Same.
2165         * src/fstream.cc: Same.
2166         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
2168 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
2170         PR libstdc++/9520
2171         PR libstdc++/9661
2172         PR libstdc++/9662
2173         * include/ext/stdio_sync_filebuf.h:  New file.
2174         (basic_stdiobuf):  New.
2175         * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
2176         * include/Makefile.in: Regenerate.
2177         * include/bits/ios_base.h (Init::_S_create_buffers,
2178         Init::_S_destroy_buffers):  Remove declarations.
2179         * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
2180         buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync):  Define.
2181         * src/ios.cc (Init::_S_create_buffers,
2182         Init::_S_destroy_buffers):  Remove.
2183         (Init::Init):  Create and use syncronized buffers.
2184         (ios_base::sync_with_stdio):  Destroy syncronized buffers,
2185         create and install unsyncronized buffers.
2186         * testsuite/27_io/objects/char/10.cc:  New test.
2187         * testsuite/27_io/objects/char/9.cc:  New test.
2188         * testsuite/27_io/objects/char/9661-1.cc:  New test.
2189         * testsuite/27_io/objects/char/9661-2_xin.cc:  New test.
2190         * testsuite/27_io/objects/char/9661-2_xin.in:  New.
2191         * testsuite/27_io/objects/wchar_t/1.cc:  New test.
2192         * testsuite/27_io/objects/wchar_t/10.cc:  New test.
2193         * testsuite/27_io/objects/wchar_t/2.cc:  New test.
2194         * testsuite/27_io/objects/wchar_t/2523-1_xin.cc:  New test.
2195         * testsuite/27_io/objects/wchar_t/2523-1_xin.in:  New.
2196         * testsuite/27_io/objects/wchar_t/2523-2_xin.cc:  New test.
2197         * testsuite/27_io/objects/wchar_t/2523-2_xin.in:  New.
2198         * testsuite/27_io/objects/wchar_t/3045.cc:  New test.
2199         * testsuite/27_io/objects/wchar_t/3647.cc:  New test.
2200         * testsuite/27_io/objects/wchar_t/3_xin.cc:  New test.
2201         * testsuite/27_io/objects/wchar_t/3_xin.in:  New.
2202         * testsuite/27_io/objects/wchar_t/4_xin.cc:  New test.
2203         * testsuite/27_io/objects/wchar_t/4_xin.in:  New.
2204         * testsuite/27_io/objects/wchar_t/5.cc:  New test.
2205         * testsuite/27_io/objects/wchar_t/5268.cc:  New test.
2206         * testsuite/27_io/objects/wchar_t/5280_xin.cc:  New test.
2207         * testsuite/27_io/objects/wchar_t/5280_xin.in:  New.
2208         * testsuite/27_io/objects/wchar_t/6.cc:  New test.
2209         * testsuite/27_io/objects/wchar_t/6548_xin.cc:  New test.
2210         * testsuite/27_io/objects/wchar_t/6548_xin.in:  New.
2211         * testsuite/27_io/objects/wchar_t/6648-1_xin.cc:  New test.
2212         * testsuite/27_io/objects/wchar_t/6648-1_xin.in:  New.
2213         * testsuite/27_io/objects/wchar_t/6648-2_xin.cc:  New test.
2214         * testsuite/27_io/objects/wchar_t/6648-2_xin.in:  New.
2215         * testsuite/27_io/objects/wchar_t/7.cc:  New test.
2216         * testsuite/27_io/objects/wchar_t/7744_xin.cc:  New test.
2217         * testsuite/27_io/objects/wchar_t/7744_xin.in:  New.
2218         * testsuite/27_io/objects/wchar_t/8.cc:  New test.
2219         * testsuite/27_io/objects/wchar_t/9_xin.cc:  New test.
2220         * testsuite/27_io/objects/wchar_t/9_xin.in:  New.
2221         * testsuite/27_io/objects/wchar_t/9520.cc:  New test.
2222         * testsuite/27_io/objects/wchar_t/9661-1.cc:  New test.
2223         * testsuite/27_io/objects/wchar_t/9661-2_xin.cc:  New test.
2224         * testsuite/27_io/objects/wchar_t/9661-2_xin.in:  New.
2225         * testsuite/27_io/objects/wchar_t/9662.cc:  New test.
2226         * testsuite/ext/stdiobuf_char.cc:  New test.
2227         * testsuite/ext/stdiobuf_wchar_t.cc:  New test.
2229 2003-05-10  Paolo Carlini  <pcarlini@unitus.it>
2231         * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
2232         unnecessary includes and unused string literals.
2233         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
2235 2003-05-08  Paolo Carlini  <pcarlini@unitus.it>
2237         * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
2239 2003-05-07  Richard Henderson  <rth@redhat.com>
2241         PR c++/10570
2242         * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
2243         (__cxa_end_catch): Likewise.
2244         * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise.  Use
2245         _Unwind_Resume_or_Rethrow.
2246         * libsupc++/eh_personality.cc (empty_exception_spec): New.
2247         (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
2248         for _UA_FORCE_UNWIND.  Honor empty filter spec for foreign
2249         exceptions.  Don't push terminate/unexpected to cxa functions.
2250         (__cxa_call_unexpected): Remove foreign exception fixmes.
2252 2003-05-07  Benjamin Kosnik  <bkoz@redhat.com>
2254         * testsuite/27_io/ios_base/cons: New.
2255         * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
2256         * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
2258 2003-05-07  Paolo Carlini  <pcarlini@unitus.it>
2260         * include/std/std_fstream.h (_M_is_indeterminate): Remove.
2261         * src/fstream.cc
2262         (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
2263         there is no buffer or __testget == !__testinit.
2265         * src/fstream.cc
2266         (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
2267         automatically sets, if appropriate, _M_out_cur == _M_in_cur.
2269         * include/std/std_fstream.h (_M_destroy_pback): Don't set
2270         unnecessarily _M_pback_cur_save and _M_pback_end_save.
2272         * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
2274         * include/std/std_sstream.h (_M_sync): Minor tweak.
2276         * include/bits/fstream.tcc (close): No need to call
2277         _M_destroy_pback, setting _M_pback_init to false suffices
2278         to clean up.
2280 2003-05-06  Benjamin Kosnik  <bkoz@redhat.com>
2282         * include/bits/stl_algo.h: Enums as _S_.
2283         * include/bits/stl_tree.h: Same.
2284         * include/bits/stl_bvector.h: Same.
2285         * include/bits/ios_base.h: Same.
2286         * include/bits/stl_alloc.h: Same.
2287         * include/ext/stl_hashtable.h: Same.
2288         * src/ios.cc: And here.
2290         * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
2291         * include/bits/sstream.tcc: Same.
2293         * include/bits/basic_ios.h: Correct spacing for '< ctype'.
2295         * include/bits/locale_facets.tcc: Replace __temp to __tmp.
2297         * include/bits/locale_facets.h (__num_base): Remove protected.
2298         Use _S_[io]* names for enumerations.
2299         (_S_format_int): Remove.
2300         * include/bits/locale_facets.tcc: Same.
2301         * src/locale.cc: Same.
2303         * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
2305 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
2307         * docs/html/faq/index.html (3.10):  Add note about mips atomicity.h.
2308         * docs/html/faq/index.txt:  Regenerated.
2310 2003-05-06  Michael Ritzert <Ritzert@t-online.de>
2311             Matt Kraai <kraai@alumni.cmu.edu>
2313         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
2314         And retweak.
2316 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
2318         * configure.target (mips*): Use the generic atomicity.h by default.
2320 2003-05-05  Loren J. Rittle  <ljrittle@acm.org>
2321             (Inspired by an alternate patch from Danny Smith.)
2323         * include/bits/stl_threads.h (_Atomic_swap): Kill it...
2324         (_Swap_lock_struct<>): ...and the horse it rode in on.
2325         * src/globals.cc (_Swap_lock_struct<>): Likewise.
2326         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
2327         member to support...
2328         * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
2329         visibility rules related to POSIX threads.
2330         * testsuite/thread/pthread7-rope.cc: New test.
2332 2003-05-04  Paolo Carlini  <pcarlini@unitus.it>
2334         * testsuite/21_strings/basic_string/find/char/3.cc: New
2335         file, testing basic_string<char>::find_first_not_of.
2336         * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
2337         Likewise for basic_string<wchar_t>.
2339 2003-05-03  Loren J. Rittle  <ljrittle@acm.org>
2341         * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
2343 2003-05-02  Benjamin Kosnik  <bkoz@redhat.com>
2345         * include/Makefile.am (CLEANFILES): Remove PCH files in target
2346         directory.
2347         * include/Makefile.in: Regenerate.
2349 2003-05-02  Paolo Carlini  <pcarlini@unitus.it>
2351         * include/std/std_sstream.h (str()): Tidy.
2353 2003-05-02  Nathan Myers  <ncm@cantrip.org>
2354             Paolo Carlini  <pcarlini@unitus.it>
2356         * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
2358 2003-05-02  Jonathan Wakely  <redi@gcc.gnu.org>
2360         * include/bits/basic_string.h (swap): Remove redundant template
2361         parameters from declaration of non-template member function.
2363 2003-05-01  Phil Edwards  <pme@gcc.gnu.org>
2365         * acconfig.h (_GLIBCPP_USE_NLS):  New symbol.
2366         * configure.in:  Move libintl.h header test...
2367         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  ...to here.  Gather all
2368         the NLS-related test results into one symbol.
2369         * src/functexcept.cc:  Use it here.
2370         * aclocal.m4, config.h.in, configure:  Regenerated.
2372 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2374         * include/bits/sstream.tcc (overflow): Instead of calling
2375         str(), then _M_string.reserve, thus copying the contents
2376         of the current buffer two times, just copy the latter in
2377         a temporary, then use the 'swap trick'.
2379 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2381         * include/std/std_sstream.h (str()): Revert the best of the
2382         previous 'improvement', incorrect due to the COW nature of
2383         v3 basic_string; simplify.
2385 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2387         * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
2388         type of __avail to ptrdiff_t to avoid signed-unsigned warning.
2390 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
2392         * testsuite/abi_check.cc (check_version): Update known versions.
2393         Check added symbols for version_name != base version. Add missing
2394         symbols to incompatible list.
2396 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
2398         * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
2399         * aclocal.m4: Regenerated.
2400         * configure: Regenerated.
2402 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2404         * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
2405         Const-ify some variables.
2406         (basic_streambuf::xsputn): Likewise; change the type of some
2407         variables to size_t.
2408         (__copy_streambufs): Change some variables to size_t.
2410 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2412         * include/std/std_sstream.h (str()): Avoid constructing
2413         a basic_string temporary not only when it would turn out
2414         to be zero-sized but also when identical to the current
2415         _M_string buffer.
2417 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2419         * include/ext/stdio_filebuf.h
2420         (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
2421         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
2422         Shorten a bit (-10 lines) by factoring out some code.
2424 2003-04-30  Phil Edwards  <pme@gcc.gnu.org>
2426         * acinclude.m4:  Add bit missing from previous patch.
2427         * aclocal.m4, configure:  Regenerated.
2429 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
2431         * docs/doxygen/mainpage.html:  Bring up to date.
2432         * docs/doxygen/run_doxygen:  Cosmetic tweaks.  Work around a bug
2433         in Doxygen.
2434         * docs/doxygen/user.cfg.in:  Scanning the precompiled headers
2435         breaks everything.  Don't scan them.
2436         * docs/html/documentation.html:  Point to "Write after approval"
2437         notes.
2439 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
2441         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  Search for gettext outside
2442         of libc if message translations are being used.  Fix info text in
2443         xieee_1003.1-2001 case.
2444         * aclocal.m4, configure:  Regenerate.
2446 2003-04-29 Joel Sherrill  <joel.sherrill@OARcorp.com>
2447            Loren J. Rittle <ljrittle@acm.org>
2448            Martin v. Loewis  <martin@v.loewis.de>
2450         * config/cpu/i386/atomicity.h: New file.
2452 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
2454         * include/bits/fstream.tcc (open): Change to single return.
2456 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
2458         * include/std/std_sstream.h (underflow): Change to single return.
2460 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
2462         * include/std/std_streambuf.h (_M_buf): is currently
2463         used only for basic_filebuf, therefore move it there.
2464         (basic_streambuf(), ~basic_streambuf()): Adjust.
2465         * include/std/std_fstream.h (_M_buf): Moved here.
2466         * include/std/std_sstream.h (setbuf): Don't set _M_buf,
2467         is actually redundant for basic_stringbuf.
2468         (_M_really_sync): Likewise.
2469         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2470         * include/bits/sstream.tcc (seekoff): Adjust.
2472 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
2474         * src/localename.cc: Standardize exception strings.
2475         * src/locale.cc: Same.
2476         * src/ios.cc: Same.
2477         * include/bits/basic_string.tcc: Same.
2478         * include/bits/basic_ios.tcc: Same.
2479         * include/std/std_bitset.h: Same.
2480         * include/ext/ropeimpl.h: Same.
2481         * include/bits/stl_vector.h: Same.
2482         * include/bits/stl_deque.h: Same.
2483         * include/bits/stl_bvector.h: Same.
2484         * config/locale/generic/c_locale.cc: Same.
2485         * config/locale/gnu/c_locale.cc: Same.
2486         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
2488         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
2490 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
2492         * include/std/std_streambuf.h (_M_buf_size): is currently
2493         used only for basic_filebuf, therefore move it there.
2494         (basic_streambuf(), ~basic_streambuf()): Adjust.
2495         * include/std/std_fstream.h (_M_buf_size): Moved here.
2496         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2498 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
2500         * include/bits/streambuf.tcc (__copy_streambufs): Don't use
2501         _M_buf_size (synced input is now correctly dealt with
2502         elsewhere); when the output buffer is full don't fall back
2503         to a snextc-sputc loop, call overflow instead.
2505 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
2507         * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
2508         the innermost 'if' by factoring out some code.
2510 2003-04-28  Phil Edwards  <pme@gcc.gnu.org>
2512         * configure.in:  Test for libintl.h.
2513         * include/bits/c++config:  Define __N for everybody.
2514         * include/bits/basic_string.h, include/bits/stl_bvector.h,
2515         include/bits/stl_deque.h, include/bits/stl_vector.h,
2516         include/std/std_bitset.h:  Wrap all __throw* text with __N.
2517         * po/Makefile.am (pot):  New rule, mostly working.
2518         * src/functexcept.cc:  Call gettext on all __throw* arguments when
2519         -fexceptions is in effect.
2520         * po/Makefile.in, config.h.in, configure:  Regenerate.
2522 2003-04-28  Petur Runolfsson  <peturr02@ru.is>
2524         PR libstdc++/9523
2525         * include/bits/ios_base.h (Init::_S_ios_create,
2526         Init::_S_ios_destroy):  Remove declarations.
2527         (Init::_S_create_buffers,
2528         Init::_S_destroy_buffers):  Declare
2529         * src/ios.cc (Init::_S_ios_create):  Remove
2530         (Init::_S_create_buffers):  Create buffers and add to streams.
2531         (Init::_S_ios_destroy):  Rename to...
2532         (Init::_S_destroy_buffers):  this.
2533         (Init::Init):  Only construct streams once.
2534         (Init::~Init):  Flush streams, don't destroy them.
2535         (ios_base::sync_with_stdio):  Don't destroy streams, only buffers.
2536         * testsuite/27_io/ios_base/sync_with_stdio/9523.cc:  New test.
2537         * testsuite/27_io/objects/char/5.cc:  New test.
2538         * testsuite/27_io/objects/char/5268.cc:  Avoid undefined behavior.
2539         * testsuite/27_io/objects/char/6.cc:  New test.
2540         * testsuite/27_io/objects/char/7.cc:  New test.
2542 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
2544         * testsuite/27_io/objects/char/8.cc:  New test.
2546 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
2548         * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
2549         * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
2551 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
2553         * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
2554         _M_destroy_pback. _M_pback_create to
2555         _M_create_pback. _M_underflow_common to
2556         _M_underflow. _M_really_overflow to _M_overflow.
2557         * include/bits/fstream.tcc: Same.
2558         * src/fstream.cc: Same.
2559         * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
2560         _M_move_in_cur.  _M_out_cur_move to _M_move_out_cur.
2561         * include/bits/streambuf.tcc: Same.
2562         * include/bits/fstream.tcc: Same.
2563         * include/bits/sstream.tcc: Same.
2565 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
2567         * include/bits/locale_classes.h (locale::_Impl): Change _M_names
2568         from fixed size array.
2569         (locale): Change _S_categories as well.
2570         Formatting tweaks.
2571         * include/bits/locale_facets.tcc: Tweak.
2572         * config/locale/gnu/c_locale.cc: Assign _S_categories.
2573         * config/locale/generic/c_locale.cc: Same.
2574         * src/locale.cc: Tweak.
2575         * src/globals.cc: Change facet_name to name_vec, add names_c.
2576         * src/localename.cc: Use them.
2577         (locale::_Impl::~_Impl): Destroy _M_names.
2578         (locale::_Impl::_Impl): Create _M_names.
2580 2003-04-27  Andreas Schwab  <schwab@suse.de>
2582         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2583         (__enc_traits): Use __ibom and __ebom instead of ignoring them.
2585 2003-04-27  Nathan Myers  <ncm@cantrip.org>
2587         Move some basic_string members out of line because
2588         they are too big to reasonably be inline.
2589         * include/bits/basic_string.h
2590         (assign(const basic_string&, size_type, size_type),
2591         assign(const _CharT*, size_type),
2592         insert(size_type, const basic_string&, size_type, size_type),
2593         insert(size_type, const _CharT*, size_type),
2594         replace(size_type, size_type, const _CharT*, size_type)):
2595         Move from here to...
2596         * include/bits/basic_string.tcc: ...here.
2598 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
2600         * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
2601         the innermost 'if' by factoring out some code.
2603 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
2605         * include/bits/streambuf.tcc (__copy_streambufs): Don't
2606         use in_avail(), simplify.
2608 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
2610         * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
2611         in basic_stringbuf it's unused.
2613         * include/std/std_sstream.h (underflow): consistently use
2614         _M_in_cur, not gptr().
2616 2003-04-25  Ranjit Mathew  <rmathew@hotmail.com>
2617             Phil Edwards  <pme@gcc.gnu.org>
2619         * testsuite_flags.in: Guard against the possibility
2620         of having "xgcc" as a part of a folder name in the
2621         path to the GCC build folder.
2622         * testsuite/Makefile.am: Likewise.
2623         * testsuite/Makefile.in: Regenerated.
2625 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
2627         PR libstdc++/10132
2628         * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
2629         exception specifications.
2630         (basic_filebuf::close): Same.
2631         (basic_filebuf::_M_pback_destroy): Same.
2632         (basic_filebuf::_M_destroy_internal_buffer): Same.
2633         (basic_filebuf): Remove __res_type typedef.
2634         * src/fstream.cc: Same.
2635         * include/bits/fstream.tcc
2636         (basic_filebuf::_M_convert_to_external): Simplify.
2637         (basic_filebuf::seekoff): Use has_facet before use_facet.
2638         (basic_filebuf::close): Add exception specification of throw().
2639         * testsuite/27_io/basic_filebuf/cons: New.
2640         * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
2641         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
2642         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
2643         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
2645 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
2647         * include/bits/locale_classes.h
2648         (locale::_S_extra_categories_size): Remove.
2649         * src/locale.cc: Remove _S_extra_categories_size.
2650         * src/localename.cc: Same.
2651         * config/locale/gnu/c_locale.cc: Same.
2652         * config/locale/generic/c_locale.cc: Same.
2654 2003-04-24  Richard Sandiford  <rsandifo@redhat.com>
2656         * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
2658 2003-04-24  Phil Edwards  <pme@gcc.gnu.org>
2660         * docs/html/17_intro/howto.html:  Update some links.
2661         * docs/html/18_support/howto.html:  Link doxygen numeric_limits notes.
2662         * docs/html/27_io/howto.html:  Link doxygen stdio_filebuf notes.
2663         * docs/html/ext/howto.html:  Link to demangler notes and API.
2664         * docs/html/faq/index.html:  Remove trailing whitespace.
2665         (1.4, 2.4, 3.8, 4.1):  Bring up to date.
2666         (5.6):  Change to a bulleted list.
2668         * docs/html/faq/index.txt, docs/html/documentation.html,
2669         docs/html/17_intro/porting.html:  Regenerate.
2671 2003-04-23  Paolo Carlini  <pcarlini@unitus.it>
2673         * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
2674         belongs to basic_filebuf.
2675         * testsuite/27_io/basic_fstream/3.cc: Likewise.
2676         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
2677         * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
2678         instantiation (now belongs to basic_filebuf).
2679         * testsuite/27_io/basic_iostream/3.cc: Likewise.
2680         * testsuite/27_io/basic_istream/3.cc: Likewise.
2681         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
2682         _S_pback_size now belongs to basic_filebuf.
2683         * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
2684         instantiation (now belongs to basic_filebuf).
2685         * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
2686         belongs to basic_filebuf.
2687         * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
2688         instantiation (now belongs to basic_filebuf).
2689         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
2690         _S_pback_size now belongs to basic_filebuf.
2691         * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
2692         instantiation (now belongs to basic_filebuf).
2693         * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
2694         to basic_filebuf.
2695         * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
2696         instantiation (now belongs to basic_filebuf).
2697         * testsuite/27_io/basic_stringstream/3.cc: Likewise.
2699 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
2701         * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
2702         * configure: Regenerated.
2704 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
2706         * config/locale/generic/c_locale.h (__convert_from_v): Use
2707         attribute unused.
2709 2003-04-23  Phil Edwards  <pme@gcc.gnu.org>
2711         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 60, partial
2712         implementation only.
2713         * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
2714         Comment and change to comply with DR 60 and the effect on gcount().
2715         * include/std/std_istream.h:  Update comments.
2716         * testsuite/27_io/basic_istream/putback/char/1.cc (test01):  Add
2717         comments about reasons for tests.  Test sync() against gcount().
2718         * testsuite/27_io/basic_istream/seekg/char/2.cc:  New file, test
2719         for effect on gcount().
2720         * testsuite/27_io/basic_istream/tellg/char/2.cc:  New file, test
2721         for effect on gcount().
2723 2003-04-22  Loren J. Rittle  <ljrittle@acm.org>
2725         * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
2726         Adjust timing.
2728 2003-04-22  Paolo Carlini  <pcarlini@unitus.it>
2730         * include/std/std_streambuf.h (_S_pback_size, _M_pback,
2731         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
2732         _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
2733         (basic_streambuf::basic_streambuf()): Adjust.
2734         * include/std/std_fstream.h (_S_pback_size, _M_pback,
2735         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
2736         _M_pback_create(), _M_pback_destroy()): Moved here
2737         from basic_streambuf.
2738         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
2739         Adjust.
2740         (basic_filebuf::_S_pback_size): Add declaration.
2741         * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
2742         Remove declaration.
2744 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
2746         Consistently use _M_in_beg instead of eback(), _M_in_cur
2747         instead of gptr(), and so on.
2748         * include/bits/fstream.tcc (pbackfail, imbue): Here.
2749         * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
2750         * include/bits/streambuf.tcc (sbumpc, sputbackc,
2751         __copy_streambufs): Ditto.
2752         * include/std/std_streambuf.h (sgetc): Ditto.
2754 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
2756         * include/bits/sstream.tcc (pbackfail, overflow):
2757         Formatting fixes.
2759 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
2761         * include/std/std_streambuf.h (uflow()): It's used only by
2762         basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
2763         therefore do not consider the _M_buf_unified == true case.
2765         * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
2767 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
2769         * docs/html/ext/howto.html ('LWG Issues'):
2770         Add issues 19, 90, 171, 231, 271.
2772 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
2774         * include/bits/sstream.tcc (pbackfail): Remove redundant
2775         NULL pointer check from test involving _M_in_*.
2776         (overflow, seekoff, seekpos): Const qualify bool variables.
2777         * include/std/std_sstream.h (underflow): Remove redundant
2778         NULL pointer check from test involving _M_in_*.
2779         (_M_really_sync): Const qualify bool variables.
2780         * src/fstream.cc (_M_underflow_common): Remove redundant
2781         NULL pointer check from test involving _M_in_*, const qualify
2782         bool variables.
2784         * include/std/std_streambuf.h (sgetc): Remove redundant
2785         variable.
2787 2003-04-18  Paolo Carlini  <pcarlini@unitus.it>
2789         According to 5.9 para 2 (second bullet) for pointers p, q
2790         pointing to the same type, with  p == 0 and q == 0, (p < q)
2791         is false.
2792         * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
2793         seekoff): Remove redundant NULL pointer checks from tests
2794         involving _M_out_* and _M_in_*, const qualify bool variables.
2795         (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
2796         qualify bool variables.
2797         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
2798         Remove redundant NULL pointer checks from tests involving
2799         _M_out_* and _M_in_*, const qualify bool variables.
2800         * include/std/std_fstream.h (sync): Likewise.
2801         (_M_is_indeterminate): Const qualify bool variables.
2802         * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
2803         NULL pointer checks from tests involving _M_out_* and _M_in_*,
2804         const qualify bool variables.
2805         (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
2806         variables.
2808 2003-04-18  Loren J. Rittle  <ljrittle@acm.org>
2810         * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
2811         C99 FP macros, if actually captured.
2813         * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
2814         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
2815         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
2816         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
2817         * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
2818         New macro.
2819         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
2820         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
2821         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
2822         * include/c_std/std_cstdlib.h: Use new macros.
2823         * include/c_std/std_cstdio.h: Use new macros.
2824         * include/c_std/std_cwchar.h: Use new macros.
2826 2003-04-17  Benjamin Kosnik  <bkoz@redhat.com>
2828         PR libstdc++/9555
2829         * include/bits/ostream.tcc: Catch all exceptions for formatted
2830         output, instead of std::exception and derivatives.
2831         * include/bits/istream.tcc: Same.
2832         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
2833         * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
2834         * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
2835         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
2836         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2837         * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
2838         New.
2840 2003-04-17  Phil Edwards  <pme@gcc.gnu.org>
2842         * include/bits/c++config:  Minor cosmetic tweaks.
2844 2003-04-17  Loren J. Rittle  <ljrittle@acm.org>
2846         * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
2847         * include/Makefile.am (pch_input): Find in ${target_builddir}.
2848         (pch_output): Rename to...
2849         (pch_output_builddir): ..this.  Find in ${target_builddir}.
2850         (pch_source): Tweak.
2851         (pch_build): Key off a built file.
2852         (pch_output rule): Rename to...
2853         (pch_input rule): ...this.  Produce ${pch_output_builddir}
2854         instead of ${pch_output}.
2855         (install-pch rule): Install ${pch_output_builddir}.
2856         * include/Makefile.in: Regenerated.
2858 2003-04-17  Paolo Carlini  <pcarlini@unitus.it>
2860         * include/std/std_streambuf.h (setp): _M_out_lim, being
2861         the end limit of used put area, is set equal to _M_out_beg.
2863 2003-04-16  Benjamin Kosnik  <bkoz@redhat.com>
2865         * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
2866         * aclocal.m4: Regenerated.
2867         * configure.in: Remove old demangler bits.
2868         Call pch checks.
2869         * configure: Regenerate.
2870         * config.h.in: Regenerate.
2871         * include/Makefile.am (allstamps): Now allstamped.
2872         (allcreated): Define this.
2873         (all-local): Use 'em.
2874         Conditionally define pch_build, pch_install based on
2875         GLIBCPP_BUILD_PCH.
2876         (${pch_output}): New rule.
2877         (install-pch): New rule.
2878         (install-headers): New rule.
2879         (install-data-local): Install headers and conditionally pch.
2880         * include/Makefile.in: Regenerate.
2881         * testsuite_flags.in (--build-cxx): Use pch file.
2883 2003-04-16  Jonathan Wakely  <redi@gcc.gnu.org>
2885         * docs/html/ext/sgiexts.html: Fix path to stylesheet.
2887 2003-04-15  Benjamin Kosnik  <bkoz at redhat dot com>
2888             Paolo Carlini  <pcarlini at unitus dot it>
2890         PR libstdc++/9423
2891         * docs/html/27_io/howto.html
2892         ('The buffering is screwing up my program!'): Explain that
2893         opening counts as an I/O operation.
2895 2003-04-15  Andreas Tobler  <a.tobler@schweiz.ch>
2897         * testsuite/thread/pthread1.cc: Enable for darwin test.
2898         * testsuite/thread/pthread2.cc: Same.
2899         * testsuite/thread/pthread3.cc: Same.
2900         * testsuite/thread/pthread4.cc: Same.
2901         * testsuite/thread/pthread5.cc: Same.
2902         * testsuite/thread/pthread6.cc: Same.
2904 2003-04-15  Loren J. Rittle  <ljrittle@acm.org>
2906         libstdc++/7680
2907         * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
2908         Populate it with multiple legal ways to obtain the C99 float
2909         transcendentals.  Use them instead of direct global reference.
2910         (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
2911         * docs/html/17_intro/porting.texi
2912         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
2913         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
2914         (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
2915         * config/os/bsd/freebsd/os_defines.h
2916         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
2917         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
2918         * testsuite/26_numerics/c_math_dynamic.cc: New file.
2920 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
2921             Benjamin Kosnik  <bkoz@redhat.com>
2923         * config/os/generic/ctype_inline.h: Fix.
2925 2003-04-14  Benjamin Kosnik  <bkoz@redhat.com>
2927         * testsuite/testsuite_hooks.h
2928         (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
2929         Change to try_named_locale.
2930         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
2932         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
2933         try_named_locale.
2934         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
2935         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
2936         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
2937         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
2938         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
2939         * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
2940         * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
2941         * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
2942         * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
2943         * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
2944         * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
2945         * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
2946         * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
2947         * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
2948         * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
2949         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
2950         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
2951         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
2952         * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
2953         * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
2954         * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
2955         * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
2956         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
2957         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
2958         * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
2959         * testsuite/22_locale/collate/compare/char/1.cc: Same.
2960         * testsuite/22_locale/collate/compare/char/2.cc: Same.
2961         * testsuite/22_locale/collate/compare/char/3.cc: Same.
2962         * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
2963         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
2964         * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
2965         * testsuite/22_locale/collate/hash/char/2.cc: Same.
2966         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
2967         * testsuite/22_locale/collate/transform/char/2.cc: Same.
2968         * testsuite/22_locale/collate/transform/char/3.cc: Same.
2969         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
2970         * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
2971         * testsuite/22_locale/collate_byname/1.cc: Same.
2972         * testsuite/22_locale/ctype/is/char/2.cc: Same.
2973         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2974         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
2975         * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
2976         * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
2977         * testsuite/22_locale/facet/2.cc: Same.
2978         * testsuite/22_locale/locale/cons/2.cc: Same.
2979         * testsuite/22_locale/locale/cons/4.cc: Same.
2980         * testsuite/22_locale/locale/cons/5.cc: Same.
2981         * testsuite/22_locale/locale/cons/7.cc: Same.
2982         * testsuite/22_locale/locale/cons/7222-c.cc: Same.
2983         * testsuite/22_locale/locale/cons/7222-env.cc: Same.
2984         * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
2985         * testsuite/22_locale/messages/members/char/1.cc: Same.
2986         * testsuite/22_locale/messages/members/char/2.cc: Same.
2987         * testsuite/22_locale/messages/members/char/3.cc: Same.
2988         * testsuite/22_locale/messages_byname/1.cc: Same.
2989         * testsuite/22_locale/money_get/get/char/1.cc: Same.
2990         * testsuite/22_locale/money_get/get/char/2.cc: Same.
2991         * testsuite/22_locale/money_get/get/char/3.cc: Same.
2992         * testsuite/22_locale/money_get/get/char/4.cc: Same.
2993         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
2994         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
2995         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
2996         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
2997         * testsuite/22_locale/money_put/put/char/1.cc: Same.
2998         * testsuite/22_locale/money_put/put/char/2.cc: Same.
2999         * testsuite/22_locale/money_put/put/char/3.cc: Same.
3000         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
3001         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
3002         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
3003         * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
3004         * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
3005         * testsuite/22_locale/moneypunct_byname/1.cc: Same.
3006         * testsuite/22_locale/num_get/get/char/1.cc: Same.
3007         * testsuite/22_locale/num_get/get/char/2.cc: Same.
3008         * testsuite/22_locale/num_get/get/char/3.cc: Same.
3009         * testsuite/22_locale/num_get/get/char/5.cc: Same.
3010         * testsuite/22_locale/num_get/get/char/6.cc: Same.
3011         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
3012         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
3013         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
3014         * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
3015         * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
3016         * testsuite/22_locale/num_put/put/char/1.cc: Same.
3017         * testsuite/22_locale/num_put/put/char/2.cc: Same.
3018         * testsuite/22_locale/num_put/put/char/3.cc: Same.
3019         * testsuite/22_locale/num_put/put/char/5.cc: Same.
3020         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
3021         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
3022         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
3023         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
3024         * testsuite/22_locale/numpunct/members/char/1.cc: Same.
3025         * testsuite/22_locale/numpunct/members/char/2.cc: Same.
3026         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
3027         * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
3028         * testsuite/22_locale/numpunct_byname/1.cc: Same.
3029         * testsuite/22_locale/numpunct_byname/2.cc: Same.
3030         * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
3031         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
3032         * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
3033         * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
3034         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
3035         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
3036         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
3037         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
3038         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
3039         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
3040         * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
3041         * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
3042         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
3043         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
3044         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
3045         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
3046         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
3047         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
3048         * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
3049         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
3050         * testsuite/22_locale/time_put/put/char/1.cc: Same.
3051         * testsuite/22_locale/time_put/put/char/2.cc: Same.
3052         * testsuite/22_locale/time_put/put/char/3.cc: Same.
3053         * testsuite/22_locale/time_put/put/char/4.cc: Same.
3054         * testsuite/22_locale/time_put/put/char/5.cc: Same.
3055         * testsuite/22_locale/time_put/put/char/6.cc: Same.
3056         * testsuite/22_locale/time_put/put/char/7.cc: Same.
3057         * testsuite/22_locale/time_put/put/char/8.cc: Same.
3058         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
3059         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
3060         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
3061         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
3062         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
3063         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
3064         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
3065         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
3066         * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
3067         * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
3068         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
3069         * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
3070         * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
3072 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
3074         * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
3075         solaris includes, not generic.
3077 2003-04-14  Loren J. Rittle  <ljrittle@acm.org>
3079         * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
3081         * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
3082         * include/bits/concept_check.h: Fix multi-line comment.
3083         * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
3084         when target is *-*-freebsd*.
3086 2003-04-14  Nathan Myers  <ncm@cantrip.org>
3087             Paolo Carlini  <pcarlini@unitus.it>
3089         PR libstdc++/9701 (in_avail())
3090         * include/std/std_streambuf.h (in_avail): Simplify, in_avail
3091         doesn't care if there is anything in some putback cell.
3092         * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
3094         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
3095         unused string literals.
3097 2003-04-14  Paolo Carlini  <pcarlini@unitus.it>
3099         * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
3100         _M_out_end, _M_set_indeterminate() does it.
3102 2003-04-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3104         * os/hpux/ctype_inline.h: Replace with gnu-linux version.
3106 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
3108         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
3109         Change basic_streambuf instantiation to "unsigned char".
3110         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3112 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
3114         Remove _M_buf_size_opt, use directly _M_buf_size instead.
3115         * include/bits/fstream.tcc
3116         (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
3117         references to _M_buf_size_opt.
3118         * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
3119         * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
3120         __bufsize to __in_avail and __size_opt to __buf_size.
3121         * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
3122         * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
3123         * include/std/std_streambuf.h (~basic_streambuf(),
3124         basic_streambuf()): Likewise, remove _M_buf_size_opt member.
3125         * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
3126         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
3127         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
3128         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
3129         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
3130         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
3131         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
3132         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
3133         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
3134         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
3135         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
3136         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
3138 2003-04-12  Paolo Carlini  <pcarlini at unitus dot it>
3140         * include/ext/stdio_filebuf.h
3141         (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
3142         stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
3143         _M_buf_size_opt == 0 only means "not to use an allocated buffer"
3144         since a stack-based buffer is used for small values of the size_t
3145         parameter.
3146         * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
3147         If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
3148         * testsuite/ext/stdio_filebuf_2.cc: New testfile.
3150 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
3152         PR libstdc++/9533
3153         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
3154         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
3156 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
3158         * testsuite/22_locale/locale/cons/3.cc: Split.
3159         * testsuite/22_locale/locale/cons/7222-c.cc: New.
3160         * testsuite/22_locale/locale/cons/7222-env.cc: New.
3161         Check before trying to create a locale from the environment.
3162         * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
3163         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3164         Adjust includes.
3166 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
3168         * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
3169         locale to construct this hybrid locale, not the global locale.
3171 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
3173         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
3174         instantiation for AIX.
3175         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3176         * testsuite/25_algorithms/min_max.cc: Same.
3178 2003-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3180         * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
3181         twice.  Always set _M_cfile to 0 when stream was open.
3183 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
3185         Reshuffle 27_io testsuite.  * testsuite/27_io/filebuf.cc,
3186         filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
3187         filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
3188         filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
3189         filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
3190         ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
3191         ifstream_members.cc, instantiations.cc, ios.cc,
3192         ios_base_callbacks.cc, ios_base_members_static-1.tst,
3193         ios_base_members_static.cc, ios_base_storage.cc,
3194         ios_base_types.cc, ios_ctor.cc, ios_init.cc,
3195         ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
3196         iostream.cc, iostream_members.cc, istream.cc,
3197         istream_exception.cc, istream_extractor_char.cc,
3198         istream_extractor_other-1.tst, istream_extractor_other-1.txt,
3199         istream_extractor_other-2.tst, istream_extractor_other.cc,
3200         istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
3201         istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
3202         istream_sentry.cc, istream_unformatted-1.tst,
3203         istream_unformatted-1.txt, istream_unformatted.cc,
3204         istringstream.cc, istringstream_members.cc,
3205         narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
3206         ofstream_members.cc, ostream.cc, ostream_exception.cc,
3207         ostream_fail.cc, ostream_inserter_arith.cc,
3208         ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
3209         ostream_inserter_char.cc, ostream_inserter_other-1.tst,
3210         ostream_inserter_other-2.tst, ostream_inserter_other.cc,
3211         ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
3212         ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
3213         ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
3214         streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
3215         stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
3216         wide_stream_objects.cc, istream_extractor_arith/01.cc,
3217         istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
3218         istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
3219         istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
3220         istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
3221         istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
3222         Split into...
3223         * 27_io/basic_filebuf/1.cc: New.
3224         * 27_io/basic_filebuf/2.cc: New.
3225         * 27_io/basic_filebuf/3.cc: New.
3226         * 27_io/basic_filebuf/4.cc: New.
3227         * 27_io/basic_filebuf/close/char/1.cc: New.
3228         * 27_io/basic_filebuf/close/char/2.cc: New.
3229         * 27_io/basic_filebuf/close/char/3.cc: New.
3230         * 27_io/basic_filebuf/close/char/4879.cc: New.
3231         * 27_io/basic_filebuf/close/char/9964.cc: New.
3232         * 27_io/basic_filebuf/imbue/char/1.cc: New.
3233         * 27_io/basic_filebuf/imbue/char/9322.cc: New.
3234         * 27_io/basic_filebuf/in_avail/char/1.cc: New.
3235         * 27_io/basic_filebuf/is_open/char/1.cc: New.
3236         * 27_io/basic_filebuf/open/char/1.cc: New.
3237         * 27_io/basic_filebuf/open/char/2.cc: New.
3238         * 27_io/basic_filebuf/open/char/3.cc: New.
3239         * 27_io/basic_filebuf/open/char/9507.cc: New.
3240         * 27_io/basic_filebuf/overflow/char/1.cc: New.
3241         * 27_io/basic_filebuf/overflow/char/3599.cc: New.
3242         * 27_io/basic_filebuf/overflow/char/9169.cc: New.
3243         * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
3244         * 27_io/basic_filebuf/overflow/char/9988.cc: New.
3245         * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
3246         * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
3247         * 27_io/basic_filebuf/seekoff/char/1.cc: New.
3248         * 27_io/basic_filebuf/seekoff/char/2.cc: New.
3249         * 27_io/basic_filebuf/seekpos/char/1.cc: New.
3250         * 27_io/basic_filebuf/seekpos/char/2.cc: New.
3251         * 27_io/basic_filebuf/setbuf/char/1.cc: New.
3252         * 27_io/basic_filebuf/setbuf/char/2.cc: New.
3253         * 27_io/basic_filebuf/setbuf/char/3.cc: New.
3254         * 27_io/basic_filebuf/sgetc/char/1.cc: New.
3255         * 27_io/basic_filebuf/sgetn/char/1.cc: New.
3256         * 27_io/basic_filebuf/sgetn/char/2.cc: New.
3257         * 27_io/basic_filebuf/snextc/char/1.cc: New.
3258         * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
3259         * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
3260         * 27_io/basic_filebuf/sputc/char/1.cc: New.
3261         * 27_io/basic_filebuf/sputc/char/1057.cc: New.
3262         * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
3263         * 27_io/basic_filebuf/sputn/char/1.cc: New.
3264         * 27_io/basic_filebuf/sputn/char/1057.cc: New.
3265         * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
3266         * 27_io/basic_filebuf/sungetc/char/1.cc: New.
3267         * 27_io/basic_filebuf/sync/char/1057.cc: New.
3268         * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
3269         * 27_io/basic_filebuf/underflow/char/10097.cc: New.
3270         * 27_io/basic_fstream/1.cc: New.
3271         * 27_io/basic_fstream/2.cc: New.
3272         * 27_io/basic_fstream/3.cc: New.
3273         * 27_io/basic_fstream/4.cc: New.
3274         * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
3275         * 27_io/basic_ifstream/1.cc: New.
3276         * 27_io/basic_ifstream/2.cc: New.
3277         * 27_io/basic_ifstream/3.cc: New.
3278         * 27_io/basic_ifstream/4.cc: New.
3279         * 27_io/basic_ifstream/cons/char/1.cc: New.
3280         * 27_io/basic_ifstream/open/char/1.cc: New.
3281         * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
3282         * 27_io/basic_ios/1.cc: New.
3283         * 27_io/basic_ios/2.cc: New.
3284         * 27_io/basic_ios/3.cc: New.
3285         * 27_io/basic_ios/4.cc: New.
3286         * 27_io/basic_ios/clear/char/1.cc: New.
3287         * 27_io/basic_ios/cons/char/1.cc: New.
3288         * 27_io/basic_ios/cons/char/2.cc: New.
3289         * 27_io/basic_ios/cons/char/3.cc: New.
3290         * 27_io/basic_ios/copyfmt/char/1.cc: New.
3291         * 27_io/basic_ios/copyfmt/char/2.cc: New.
3292         * 27_io/basic_ios/exceptions/char/1.cc: New.
3293         * 27_io/basic_ios/locales/char/1.cc: New.
3294         * 27_io/basic_iostream/1.cc: New.
3295         * 27_io/basic_iostream/2.cc: New.
3296         * 27_io/basic_iostream/3.cc: New.
3297         * 27_io/basic_iostream/4.cc: New.
3298         * 27_io/basic_istream/1.cc: New.
3299         * 27_io/basic_istream/2.cc: New.
3300         * 27_io/basic_istream/3.cc: New.
3301         * 27_io/basic_istream/4.cc: New.
3302         * 27_io/basic_istream/exceptions/char/9561.cc: New.
3303         * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
3304         * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
3305         * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
3306         * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
3307         * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
3308         * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
3309         * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
3310         * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
3311         * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
3312         * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
3313         * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
3314         * 27_io/basic_istream/extractors_character/char/1.cc: New.
3315         * 27_io/basic_istream/extractors_character/char/2.cc: New.
3316         * 27_io/basic_istream/extractors_character/char/3.cc: New.
3317         * 27_io/basic_istream/extractors_character/char/9826.cc: New.
3318         * 27_io/basic_istream/extractors_other/char/1.cc: New.
3319         * 27_io/basic_istream/extractors_other/char/2.cc: New.
3320         * 27_io/basic_istream/extractors_other/char/3.cc: New.
3321         * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
3322         * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
3323         * 27_io/basic_istream/get/char/1.cc: New.
3324         * 27_io/basic_istream/get/char/2.cc: New.
3325         * 27_io/basic_istream/getline/char/1.cc: New.
3326         * 27_io/basic_istream/getline/char/2.cc: New.
3327         * 27_io/basic_istream/getline/char/3.cc: New.
3328         * 27_io/basic_istream/ignore/char/1.cc: New.
3329         * 27_io/basic_istream/ignore/char/6360.cc: New.
3330         * 27_io/basic_istream/ignore/char/7220.cc: New.
3331         * 27_io/basic_istream/peek/char/1.cc: New.
3332         * 27_io/basic_istream/peek/char/6414.cc: New.
3333         * 27_io/basic_istream/putback/char/1.cc: New.
3334         * 27_io/basic_istream/read/char/1.cc: New.
3335         * 27_io/basic_istream/read/char/2.cc: New.
3336         * 27_io/basic_istream/read/char/3.cc: New.
3337         * 27_io/basic_istream/readsome/char/6746-1.cc: New.
3338         * 27_io/basic_istream/readsome/char/6746-2.cc: New.
3339         * 27_io/basic_istream/readsome/char/8258.cc: New.
3340         * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
3341         * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
3342         * 27_io/basic_istream/seekg/char/8348-1.cc: New.
3343         * 27_io/basic_istream/seekg/char/8348-2.cc: New.
3344         * 27_io/basic_istream/seekg/char/fstream.cc: New.
3345         * 27_io/basic_istream/seekg/char/sstream.cc: New.
3346         * 27_io/basic_istream/sentry/char/1.cc: New.
3347         * 27_io/basic_istream/sentry/char/2.cc: New.
3348         * 27_io/basic_istream/sentry/char/3.cc: New.
3349         * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
3350         * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
3351         * 27_io/basic_istream/tellg/char/1.cc: New.
3352         * 27_io/basic_istream/tellg/char/8348.cc: New.
3353         * 27_io/basic_istream/tellg/char/fstream.cc: New.
3354         * 27_io/basic_istream/tellg/char/sstream.cc: New.
3355         * 27_io/basic_istream/ws/char/1.cc: New.
3356         * 27_io/basic_istringstream/1.cc: New.
3357         * 27_io/basic_istringstream/2.cc: New.
3358         * 27_io/basic_istringstream/3.cc: New.
3359         * 27_io/basic_istringstream/4.cc: New.
3360         * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
3361         * 27_io/basic_istringstream/str/char/1.cc: New.
3362         * 27_io/basic_ofstream/1.cc: New.
3363         * 27_io/basic_ofstream/2.cc: New.
3364         * 27_io/basic_ofstream/3.cc: New.
3365         * 27_io/basic_ofstream/4.cc: New.
3366         * 27_io/basic_ofstream/cons/char/2.cc: New.
3367         * 27_io/basic_ofstream/open/char/1.cc: New.
3368         * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
3369         * 27_io/basic_ostream/1.cc: New.
3370         * 27_io/basic_ostream/2.cc: New.
3371         * 27_io/basic_ostream/3.cc: New.
3372         * 27_io/basic_ostream/4.cc: New.
3373         * 27_io/basic_ostream/cons/char/9827.cc: New.
3374         * 27_io/basic_ostream/endl/char/1.cc: New.
3375         * 27_io/basic_ostream/ends/char/1.cc: New.
3376         * 27_io/basic_ostream/ends/char/2.cc: New.
3377         * 27_io/basic_ostream/exceptions/char/9561.cc: New.
3378         * 27_io/basic_ostream/flush/char/1.cc: New.
3379         * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
3380         * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
3381         * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
3382         * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
3383         * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
3384         * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
3385         * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
3386         * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
3387         * 27_io/basic_ostream/inserters_character/char/1.cc: New.
3388         * 27_io/basic_ostream/inserters_character/char/2.cc: New.
3389         * 27_io/basic_ostream/inserters_character/char/3.cc: New.
3390         * 27_io/basic_ostream/inserters_character/char/4.cc: New.
3391         * 27_io/basic_ostream/inserters_character/char/5.cc: New.
3392         * 27_io/basic_ostream/inserters_character/char/6.cc: New.
3393         * 27_io/basic_ostream/inserters_character/char/8.cc: New.
3394         * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
3395         * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
3396         * 27_io/basic_ostream/inserters_other/char/1.cc: New.
3397         * 27_io/basic_ostream/inserters_other/char/2.cc: New.
3398         * 27_io/basic_ostream/inserters_other/char/3.cc: New.
3399         * 27_io/basic_ostream/inserters_other/char/4.cc: New.
3400         * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
3401         * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
3402         * 27_io/basic_ostream/sentry/char/1.cc: New.
3403         * 27_io/basic_ostream/sentry/char/2.cc: New.
3404         * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
3405         * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
3406         * 27_io/basic_ostream/tellp/char/1.cc: New.
3407         * 27_io/basic_ostream/tellp/char/2.cc: New.
3408         * 27_io/basic_ostringstream/1.cc: New.
3409         * 27_io/basic_ostringstream/2.cc: New.
3410         * 27_io/basic_ostringstream/3.cc: New.
3411         * 27_io/basic_ostringstream/4.cc: New.
3412         * 27_io/basic_ostringstream/cons/char/3.cc: New.
3413         * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
3414         * 27_io/basic_ostringstream/str/char/1.cc: New.
3415         * 27_io/basic_ostringstream/str/char/2.cc: New.
3416         * 27_io/basic_streambuf/1.cc: New.
3417         * 27_io/basic_streambuf/2.cc: New.
3418         * 27_io/basic_streambuf/3.cc: New.
3419         * 27_io/basic_streambuf/cons/char/1.cc: New.
3420         * 27_io/basic_streambuf/imbue/char/1.cc: New.
3421         * 27_io/basic_streambuf/imbue/char/9322.cc: New.
3422         * 27_io/basic_streambuf/overflow/char/1.cc: New.
3423         * 27_io/basic_streambuf/overflow/char/2.cc: New.
3424         * 27_io/basic_streambuf/overflow/char/3599.cc: New.
3425         * 27_io/basic_streambuf/sgetc/char/1.cc: New.
3426         * 27_io/basic_streambuf/sgetn/char/1.cc: New.
3427         * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
3428         * 27_io/basic_streambuf/sputc/char/1057.cc: New.
3429         * 27_io/basic_streambuf/sputn/char/1.cc: New.
3430         * 27_io/basic_streambuf/sputn/char/1057.cc: New.
3431         * 27_io/basic_streambuf/sync/char/1057.cc: New.
3432         * 27_io/basic_stringbuf/1.cc: New.
3433         * 27_io/basic_stringbuf/2.cc: New.
3434         * 27_io/basic_stringbuf/3.cc: New.
3435         * 27_io/basic_stringbuf/4.cc: New.
3436         * 27_io/basic_stringbuf/5.cc: New.
3437         * 27_io/basic_stringbuf/imbue/char/1.cc: New.
3438         * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
3439         * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
3440         * 27_io/basic_stringbuf/overflow/char/2.cc: New.
3441         * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
3442         * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
3443         * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
3444         * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
3445         * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
3446         * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
3447         * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
3448         * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
3449         * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
3450         * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
3451         * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
3452         * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
3453         * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
3454         * 27_io/basic_stringbuf/snextc/char/1.cc: New.
3455         * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
3456         * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
3457         * 27_io/basic_stringbuf/sputc/char/1.cc: New.
3458         * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
3459         * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
3460         * 27_io/basic_stringbuf/sputn/char/1.cc: New.
3461         * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
3462         * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
3463         * 27_io/basic_stringbuf/str/char/1.cc: New.
3464         * 27_io/basic_stringbuf/str/char/2.cc: New.
3465         * 27_io/basic_stringbuf/str/char/3.cc: New.
3466         * 27_io/basic_stringbuf/str/char/3955.cc: New.
3467         * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
3468         * 27_io/basic_stringbuf/sync/char/1057.cc: New.
3469         * 27_io/basic_stringstream/1.cc: New.
3470         * 27_io/basic_stringstream/2.cc: New.
3471         * 27_io/basic_stringstream/3.cc: New.
3472         * 27_io/basic_stringstream/4.cc: New.
3473         * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
3474         * 27_io/basic_stringstream/str/char/1.cc: New.
3475         * 27_io/basic_stringstream/str/char/2.cc: New.
3476         * 27_io/basic_stringstream/str/char/3.cc: New.
3477         * 27_io/basic_stringstream/str/char/4.cc: New.
3478         * 27_io/fpos/1.cc: New.
3479         * 27_io/fpos/2.cc: New.
3480         * 27_io/fpos/3.cc: New.
3481         * 27_io/ios_base/callbacks/1.cc: New.
3482         * 27_io/ios_base/state/1.cc: New.
3483         * 27_io/ios_base/storage/1.cc: New.
3484         * 27_io/ios_base/storage/2.cc: New.
3485         * 27_io/ios_base/storage/3.cc: New.
3486         * 27_io/ios_base/sync_with_stdio/1.cc: New.
3487         * 27_io/ios_base/sync_with_stdio/2.cc: New.
3488         * 27_io/manipulators/adjustfield/char/1.cc: New.
3489         * 27_io/manipulators/adjustfield/char/2.cc: New.
3490         * 27_io/manipulators/basefield/char/1.cc: New.
3491         * 27_io/manipulators/standard/char/1.cc: New.
3492         * 27_io/manipulators/standard/char/2.cc: New.
3493         * 27_io/objects/char/1.cc: New.
3494         * 27_io/objects/char/2.cc: New.
3495         * 27_io/objects/char/2523-1_xin.cc: New.
3496         * 27_io/objects/char/2523-1_xin.in: New.
3497         * 27_io/objects/char/2523-2_xin.cc: New.
3498         * 27_io/objects/char/2523-2_xin.in: New.
3499         * 27_io/objects/char/3045.cc: New.
3500         * 27_io/objects/char/3647.cc: New.
3501         * 27_io/objects/char/3_xin.cc: New.
3502         * 27_io/objects/char/3_xin.in: New.
3503         * 27_io/objects/char/4_xin.cc: New.
3504         * 27_io/objects/char/4_xin.in: New.
3505         * 27_io/objects/char/5268.cc: New.
3506         * 27_io/objects/char/5280_xin.cc: New.
3507         * 27_io/objects/char/5280_xin.in: New.
3508         * 27_io/objects/char/6548_xin.cc: New.
3509         * 27_io/objects/char/6548_xin.in: New.
3510         * 27_io/objects/char/6648-1_xin.cc: New.
3511         * 27_io/objects/char/6648-1_xin.in: New.
3512         * 27_io/objects/char/6648-2_xin.cc: New.
3513         * 27_io/objects/char/6648-2_xin.in: New.
3514         * 27_io/objects/char/7744_xin.cc: New.
3515         * 27_io/objects/char/7744_xin.in: New.
3516         * 27_io/objects/wchar_t/1.cc: New.
3517         * 27_io/types/1.cc: New.
3518         * 27_io/types/2.cc: New.
3519         * data/filebuf_members-1.tst: New.
3520         * data/filebuf_members-1.txt: New.
3521         * data/filebuf_virtuals-1.tst: New.
3522         * data/filebuf_virtuals-1.txt: New.
3523         * data/filebuf_virtuals-2.tst: New.
3524         * data/filebuf_virtuals-3.tst: New.
3525         * data/ifstream_members-1.tst: New.
3526         * data/ifstream_members-1.txt: New.
3527         * data/ios_base_members_static-1.tst: New.
3528         * data/istream_extractor_other-1.tst: New.
3529         * data/istream_extractor_other-1.txt: New.
3530         * data/istream_extractor_other-2.tst: New.
3531         * data/istream_seeks-1.tst: New.
3532         * data/istream_seeks-1.txt: New.
3533         * data/istream_seeks-2.tst: New.
3534         * data/istream_seeks-3.tst: New.
3535         * data/istream_unformatted-1.tst: New.
3536         * data/istream_unformatted-1.txt: New.
3537         * data/ofstream_members-1.tst: New.
3538         * data/ostream_inserter_char-1.tst: New.
3539         * data/ostream_inserter_char-1.txt: New.
3540         * data/ostream_inserter_other-1.tst: New.
3541         * data/ostream_inserter_other-2.tst: New.
3542         * data/ostream_seeks-1.tst: New.
3544 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
3546         * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
3547         requirement that __mode must be strict input or output.
3549         * include/std/std_streambuf.h (basic_streambuf::setp): Set
3550         _M_out_lim.
3552         * include/std/std_sstream.h (basic_strinbuf::str): Zero length
3553         output string shouldn't core.
3554         (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
3555         type.
3556         * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
3558         * include/bits/istream.tcc (basic_istream::putback): Set gcount to
3559         zero.
3561 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
3563         * testsuite/data: New directory.
3564         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
3565         to copy files from the testsuite data directory.
3566         (libstdc++-v3-list-sourcefiles): Add another test list filter, for
3567         testfiles containing _xin, which now means this is an interactive
3568         test and should be run with the interactive dejagnu hooks.
3569         * testsuite/Makefile.am: Remove testsuite_* files.
3570         * testsuite/Makefile.in: Regenerate.
3572 2003-04-09  Zack Weinberg  <zack@codesourcery.com>
3574         * docs/html/install.html: Document complete list of locales
3575         required by test suite.  Document procedure for installing
3576         said locales under Debian.  Solicit instructions for other
3577         operating systems.
3579 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
3581         * include/bits/sstream.tcc (overflow): Make sure operands of min
3582         and max have the same type.
3584 2003-04-04  Jerry Quinn  <jlquinn@optonline.net>
3586         PR libstdc++/10276
3587         * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
3588         initialization.
3590 2003-03-31  Paolo Carlini  <pcarlini@unitus.it>
3592         * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
3593         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
3594         Don't set _M_out_end.
3595         (basic_filebuf::overflow): Replace _M_out_buf_size() with
3596         this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
3597         * include/bits/sstream.tcc (basic_stringbuf::overflow):
3598         Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
3599         * include/bits/streambuf.tcc (basic_streambuf::sputc):
3600         Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
3601         (basic_streambuf::xsputn): Replace _M_out_buf_size() with
3602         _M_out_end - _M_out_cur.
3603         (__copy_streambufs): Likewise.
3604         * include/std/std_fstream.h (_M_set_determinate): Set
3605         _M_out_end here.
3607 2003-03-30  Paolo Carlini  <pcarlini@unitus.it>
3609         * include/bits/fstream.tcc (basic_filebuf::showmanyc,
3610         _M_convert_to_external, _M_really_overflow, seekoff): Fix
3611         test for synced buffer.
3612         * include/std/std_fstream.h (sync): Likewise.
3613         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
3614         basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
3616 2003-03-28  Benjamin Kosnik  <bkoz@redhat.com>
3618         * include/std/std_sstream.h (basic_istringstream): Adjust
3619         initialization.
3620         (basic_ostringstream): Same.
3621         (basic_stringstream): Same.
3622         * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
3623         (basic_ofstream): Same.
3624         (basic_fstream): Same.
3625         * include/std/std_ostream.h (basic_ostrem): Add protected ctor
3626         that does not call init.
3627         * include/std/std_istream.h (basic_istream): Same.
3628         (basic_iostream): Construct istream, ostream uninitialized, use
3629         init to initialize just once. Add protected ctor that does not
3630         call init.
3632 2003-03-28  Paolo Carlini  <pcarlini@unitus.it>
3633             Nathan Myers  <ncm@cantrip.org>
3635         PR libstdc++/9533
3636         * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
3637         call underflow().
3638         (basic_filebuf<>::showmanyc): Use the information provided
3639         by codecvt and __basic_file<>::showmanyc_helper to implement
3640         a non-trivial showmanyc.
3641         * config/io/basic_file_stdio.h
3642         (__basic_file<>::showmanyc_helper): New, declare.
3643         * config/io/basic_file_stdio.cc
3644         (__basic_file<>::showmanyc_helper): Define.
3645         (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
3646         (__basic_file<char>::open): Don't call fcntl().
3647         * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
3648         GLIBCPP_CHECK_POLL): New macros.
3649         * configure.in: Call here.
3650         * acconfig.h: Add #undefs for the corresponding symbols.
3651         * aclocal.m4: Regenerate.
3652         * configure: Regenerate.
3653         * config.h.in: Regenerate.
3655 2003-03-24  Benjamin Kosnik  <bkoz@redhat.com>
3657         * config/linker-map.gnu: Remove string export restrictions.
3659 2003-03-24  Paolo Carlini  <pcarlini@unitus.it>
3661         * testsuite/21_strings/basic_string/find/char/1.cc: Remove
3662         find_first_of, find_last_of and find_last_not_of tests.
3663         * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
3664         tests here, new file.
3665         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
3666         remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
3667         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
3668         wchar_t find_first_of tests here, new file.
3669         * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
3670         tests here.
3671         * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
3672         tests here.
3673         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
3674         wchar_t find_last_of tests here.
3675         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
3676         wchar_t find_last_not_of tests here.
3678 2003-03-22  Loren J. Rittle  <ljrittle@acm.org>
3680         * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
3681         Correct return value.
3683 2003-03-21  Jerry Quinn  <jlquinn@optonline.net>
3685         PR libstdc++/5730
3686         * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
3687         * include/std/std_complex.h (norm):  Use faster,
3688         less accurate computation for builtin float types under --fast-math.
3690 2003-03-21  Magnus Fromreide  <gnats@magfr.user.lysator.liu.se>
3692         * testsuite/testsuite_hooks.h: Fix warning nits.
3694 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
3696         * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
3697         Only .set mips2 for the o32 ABI.
3699 2003-03-19  Paolo Carlini  <pcarlini@unitus.it>
3701         * testsuite/21_strings/char_traits/requirements/char/1.cc:
3702         Test char not wchar_t.
3704 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
3706         * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
3707         Correct size, taking into account sizeof(wchar_t).
3709 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
3711         Reshuffle 21_strings testsuite.
3712         * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
3713         assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
3714         element_access.cc, operations.cc, char_traits_requirements.cc,
3715         find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
3716         compare.cc, inserters_extractors.cc, substr.cc: Split up, add
3717         wchar_t tests as follows.
3718         * 21_strings/basic_string/append/char/1.cc: New.
3719         * 21_strings/basic_string/append/wchar_t/1.cc: New.
3720         * 21_strings/basic_string/assign/char/1.cc: New.
3721         * 21_strings/basic_string/assign/char/2.cc: New.
3722         * 21_strings/basic_string/assign/char/3.cc: New.
3723         * 21_strings/basic_string/assign/wchar_t/1.cc: New.
3724         * 21_strings/basic_string/assign/wchar_t/2.cc: New.
3725         * 21_strings/basic_string/assign/wchar_t/3.cc: New.
3726         * 21_strings/basic_string/capacity/1.cc: New.
3727         * 21_strings/basic_string/capacity/char/1.cc: New.
3728         * 21_strings/basic_string/capacity/char/2.cc: New.
3729         * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
3730         * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
3731         * 21_strings/basic_string/compare/char/1.cc: New.
3732         * 21_strings/basic_string/compare/wchar_t/1.cc: New.
3733         * 21_strings/basic_string/cons/char/1.cc: New.
3734         * 21_strings/basic_string/cons/char/2.cc: New.
3735         * 21_strings/basic_string/cons/char/3.cc: New.
3736         * 21_strings/basic_string/cons/char/4.cc: New.
3737         * 21_strings/basic_string/cons/char/5.cc: New.
3738         * 21_strings/basic_string/cons/wchar_t/1.cc: New.
3739         * 21_strings/basic_string/cons/wchar_t/2.cc: New.
3740         * 21_strings/basic_string/cons/wchar_t/3.cc: New.
3741         * 21_strings/basic_string/cons/wchar_t/4.cc: New.
3742         * 21_strings/basic_string/cons/wchar_t/5.cc: New.
3743         * 21_strings/basic_string/element_access/char/1.cc: New.
3744         * 21_strings/basic_string/element_access/char/2.cc: New.
3745         * 21_strings/basic_string/element_access/char/3.cc: New.
3746         * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
3747         * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
3748         * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
3749         * 21_strings/basic_string/find/char/1.cc: New.
3750         * 21_strings/basic_string/find/wchar_t/1.cc: New.
3751         * 21_strings/basic_string/insert/char/1.cc: New.
3752         * 21_strings/basic_string/insert/char/2.cc: New.
3753         * 21_strings/basic_string/insert/wchar_t/1.cc: New.
3754         * 21_strings/basic_string/insert/wchar_t/2.cc: New.
3755         * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
3756         * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
3757         * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
3758         * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
3759         * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
3760         * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
3761         * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
3762         * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
3763         * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
3764         * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
3765         * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
3766         * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
3767         * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
3768         * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
3769         * 21_strings/basic_string/operators/char/1.cc: New.
3770         * 21_strings/basic_string/operators/char/2.cc: New.
3771         * 21_strings/basic_string/operators/wchar_t/1.cc: New.
3772         * 21_strings/basic_string/operators/wchar_t/2.cc: New.
3773         * 21_strings/basic_string/replace/char/1.cc: New.
3774         * 21_strings/basic_string/replace/char/2.cc: New.
3775         * 21_strings/basic_string/replace/char/3.cc: New.
3776         * 21_strings/basic_string/replace/char/4.cc: New.
3777         * 21_strings/basic_string/replace/char/5.cc: New.
3778         * 21_strings/basic_string/replace/wchar_t/1.cc: New.
3779         * 21_strings/basic_string/replace/wchar_t/2.cc: New.
3780         * 21_strings/basic_string/replace/wchar_t/3.cc: New.
3781         * 21_strings/basic_string/replace/wchar_t/4.cc: New.
3782         * 21_strings/basic_string/replace/wchar_t/5.cc: New.
3783         * 21_strings/basic_string/rfind/char/1.cc: New.
3784         * 21_strings/basic_string/rfind/char/2.cc: New.
3785         * 21_strings/basic_string/rfind/char/3.cc: New.
3786         * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
3787         * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
3788         * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
3789         * 21_strings/basic_string/substr/char/1.cc: New.
3790         * 21_strings/basic_string/substr/wchar_t/1.cc: New.
3791         * 21_strings/c_strings/char/1.cc: New.
3792         * 21_strings/c_strings/char/2.cc: New.
3793         * 21_strings/c_strings/wchar_t/1.cc: New.
3794         * 21_strings/c_strings/wchar_t/2.cc: New.
3795         * 21_strings/char_traits/requirements/char/1.cc: New.
3796         * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
3797         * 21_strings/char_traits/typedefs/char/1.cc: New.
3799 2003-03-17  Paolo Carlini  <pcarlini@unitus.it>
3800             Petur Runolfsson  <peturr02@ru.is>
3802         PR libstdc++/10097
3803         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
3804         basic_filebuf<wchar_t>::_M_underflow_common):
3805         if (gptr() < egptr()) return *gptr().
3806         * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
3808         * testsuite/27_io/filebuf_members.cc (test_04): Minor
3809         changes: unlink fifo before making it, fix spelling error.
3811 2003-03-17  Benjamin Kosnik  <bkoz@redhat.com>
3813         * testsuite/Makefile.am (CLEANFILES): Add tmp*.
3814         * testsuite/Makefile.in: Regenerate.
3815         * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
3816         Cleanups.
3818 2003-03-17  Petur Runolfsson  <peturr02@ru.is>
3820         PR libstdc++/9964
3821         * include/bits/fstream.tcc (basic_filebuf::close):
3822         Always close file, even when write fails.
3823         * testsuite/27_io/filebuf_members.cc (test_07):  New test.
3825 2003-03-17  Danny Smith  <dannysmith@users.sourceforge.net>
3827         * libsupc++/Makefile.am (C_COMPILE): Remove.
3828         (LTCOMPILE): Likewise.
3829         * libsupc++/Makefile.in: Regenerate.
3831 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
3833         * testsuite/23_containers/bitset_members.cc: Add test variable.
3834         * testsuite/23_containers/map_insert.cc: Same.
3835         * testsuite/22_locale/ctype/cons/char/1.cc: Same.
3836         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
3837         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
3838         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
3839         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
3840         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
3841         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
3842         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
3843         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
3844         * testsuite/27_io/istream_exception.cc: Same.
3845         * testsuite/27_io/filebuf_virtuals.cc: Same.
3846         * testsuite/27_io/stringbuf_virtuals.cc: Same.
3847         * testsuite/27_io/ostream_inserter_arith.cc: Same.
3848         * testsuite/26_numerics/valarray_operators.cc: Same.
3849         * testsuite/26_numerics/slice.cc: Same.
3850         * testsuite/26_numerics/slice_array_assignment.cc: Same.
3851         * testsuite/24_iterators/istream_iterator.cc: Same.
3852         * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
3854 2003-03-14  Petur Runolfsson  <peturr02@ru.is>
3856         PR libstdc++/9581
3857         PR libstdc++/9870
3858         * config/locale/generic/ctype_members.cc,
3859         * config/locale/gnu/ctype_members.cc
3860         (ctype<wchar_t>::do_widen(char)):  Cast argument to
3861         unsigned char before passing to btowc.
3862         (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
3863         Convert characters with btowc instead of mbsrtowcs.
3864         (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
3865         char, char*):
3866         Convert characters with wctob instead of wcsrtombs.
3867         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc:  New test.
3868         * testsuite/22_locale/ctype/widen/wchar_t/2.cc:  New test.
3869         * testsuite/22_locale/ctype/widen/wchar_t/3.cc:  New test.
3871 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
3873         * include/stdc++.h: New.
3874         * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
3875         * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
3876         * include/Makefile.in: Regenerate.
3877         * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
3878         (--cxxflags): Put -g -O2 here.
3879         * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
3881 2003-03-14  Loren J. Rittle  <ljrittle@acm.org>
3883         * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
3884         missing named locale.
3886 2003-03-14  Andreas Schwab  <schwab@suse.de>
3888         * configure.in: Only append to makefiles that are newly created to
3889         avoid multiple multi-do/multi-clean rules.
3890         * configure: Rebuilt.
3892 2003-03-13  Jonathan Wakely  <redi@gcc.gnu.org>
3894         * docs/html/configopts.html, docs/html/documentation.html,
3895         docs/html/explanations.html, docs/html/install.html,
3896         docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
3897         invalid XHTML and make page header style consistent.
3899 2003-03-12  Jonathan Wakely  <redi@gcc.gnu.org>
3901         * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
3902         * docs/html/faq/index.txt: Regenerate.
3903         * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
3905 2003-03-12  Andreas Schwab  <schwab@suse.de>
3907         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
3908         glibcpp_toolexeclibdir.
3909         * aclocal.m4, configure: Rebuilt.
3911 2003-03-11  Jonathan Wakely  <redi@gcc.gnu.org>
3913         * docs/html/faq/index.html: Update text about location of headers.
3914         * docs/html/faq/index.txt: Regenerate.
3916 2003-03-11  Carlo Wood  <carlo@alinoe.com>
3918         * include/bits/demangle.h: Prepend accessors of
3919         class qualifier with 'get_' in order to fix warnings
3920         when compiling with -Wshadow.
3922 2003-03-11  Loren J. Rittle  <ljrittle@acm.org>
3924         * config/os/bsd/freebsd/ctype_inline.h:  Support _M_table
3925         when so installed.
3926         * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
3928         * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
3929         report lack of setenv().
3931 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
3933         * config/io/basic_file_stdio.cc: include <unistd.h>.
3935 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
3936             Nathan Myers  <ncm@cantrip.org>
3938         PR libstdc++/7744
3939         * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
3940         seekoff, seekpos): Add a boolean parameter __stdio.
3941         * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
3942         seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
3943         fseek/ftell, respectively), otherwise read (write, lseek, lseek,
3944         respectively).
3945         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
3946         _M_really_overflow, seekoff): Use the boolean parameter in the calls.
3947         * include/std/std_fstream.h (sync): Likewise.
3948         * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
3949         * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
3950         libstdc++/8399 commit involving isatty(0).
3951         * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
3952         (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
3953         * configure.in: Remove call.
3954         * aclocal.m4: Regenerate.
3955         * config.h.in: Regenerate.
3956         * configure: Regenerate.
3957         * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
3959 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
3961         PR libstdc++/9988
3962         * include/bits/fstream.tcc (overflow): don't write EOF to file.
3963         * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
3965 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
3967         PR libstdc++/9561
3968         * include/bits/basic_ios.h (_M_setstate): New.
3969         * include/bits/ostream.tcc (operator<<): Use it.
3970         * include/bits/istream.tcc (operator>>): Use it.
3971         * include/std/std_ostream.h (operator<<): Make friends.
3972         * include/std/std_istream.h (operator>>): Make friends.
3973         * testsuite/27_io/ostream_exception.cc,
3974         testsuite/27_io/istream_exception.cc: New tests.
3976 2003-03-08  Benjamin Kosnik  <bkoz@redhat.com>
3978         * include/bits/locale_facets.tcc: Fix typo.
3980 2003-03-08  Loren J. Rittle  <ljrittle@acm.org>
3982         * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
3984         * config/locale/generic/c_locale.cc
3985         (locale::facet::_S_create_c_locale): Throw runtime exception when
3986         unsupported language is specified.
3987         * testsuite/testsuite_hooks.h
3988         (run_test_wrapped_generic_locale_exception_catcher): New function.
3989         * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
3990         Suppress runtime exception thrown by generic implementation.
3991         (run_tests_wrapped_env): Likewise.
3992         (run_test_wrapped_generic_locale_exception_catcher): New function.
3993         * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
3994         * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
3995         * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
3996         * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
3997         * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
3998         * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
3999         * testsuite/22_locale/collate_byname/1.cc: New test wrap.
4000         * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
4001         * testsuite/22_locale/facet/2.cc: New test wrap.
4002         * testsuite/22_locale/locale/cons/4.cc: New test wrap.
4003         * testsuite/22_locale/locale/cons/5.cc: New test wrap.
4004         * testsuite/22_locale/locale/cons/7.cc: New test wrap.
4005         * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
4006         * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
4007         * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
4008         * testsuite/22_locale/messages_byname/1.cc: New test wrap.
4009         * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
4010         * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
4011         * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
4012         * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
4013         * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
4014         * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
4015         * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
4016         * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
4017         * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
4018         * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
4019         * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
4020         * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
4021         * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
4022         * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
4023         * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
4024         * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
4025         * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
4026         * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
4027         * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
4028         * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
4029         * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
4030         * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
4031         * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
4032         * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
4033         * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
4034         * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
4035         * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
4036         * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
4037         * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
4038         * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
4039         * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
4040         * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
4041         * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
4042         * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
4043         * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
4044         * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
4045         * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
4046         * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
4047         * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
4048         * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
4049         * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
4050         * testsuite/27_io/ios_members.cc: New test wrap.
4051         * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
4052         New test wrap.
4053         * testsuite/27_io/streambuf_members.cc: New test wrap.
4054         * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
4056 2003-03-08  Paolo Carlini <pcarlini@unitus.it>
4057             Petur Runolfsson  <peturr02@ru.is>
4059         PR libstdc++/9424
4060         * include/bits/streambuf.tcc (__copy_streambufs): Use
4061         sgetn-sputn only when sputn cannot fail, otherwise fall back
4062         to safe snextc-sputc.
4063         * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
4065 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
4067         * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
4068         locale cache for truename and falsename.
4070 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
4072         * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
4073         _M_word_size initialization.
4075 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
4077         * include/bits/fstream.tcc (_M_convert_to_external):
4078         Set __elen to zero if codecvt::out eventually fails.
4080 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
4082         PR libstdc++/9182
4083         * include/bits/fstream.tcc (_M_really_overflow): Check
4084         for _M_convert_to_external possible failures.
4085         * include/std/std_fstream.h (sync): Check _M_really_overflow
4086         return value and return -1 in case of failure.
4087         * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
4089 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
4091         PR libstdc++/9826
4092         * include/bits/istream.tcc (operator>>(_CharT*),
4093         operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
4094         * testsuite/27_io/stringstream.cc (test02): Add.
4096         * include/bits/istream.tcc (operator>>(_CharT*)):
4097         Assign a char_type to *__s.
4099 2003-03-07  Petur Runolfsson  <peturr02@ru.is>
4101         PR libstdc++/9817
4102         * include/bits/locale_facets.tcc
4103         (collate::do_compare, collate::do_transform):
4104         Handle nul characters in input.
4105         * testsuite/22_locale/collate/compare/char/3.cc:  New test.
4106         * testsuite/22_locale/collate/compare/wchar_t/3.cc:  New test.
4107         * testsuite/22_locale/collate/transform/char/3.cc:  New test.
4108         * testsuite/22_locale/collate/transform/wchar_t/3.cc:  New test.
4110 2003-03-07  Jerry Quinn  <jlquinn@optonline.net>
4112         * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
4113         sputn fails.
4114         * testsuite/27_io/ostream_fail.cc: New test.
4116 2003-03-07  Matthias Klose  <doko@debian.org>
4118         * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
4119         FLAGS_TO_PASS: Set to AM_MAKEFLAGS
4120         * Makefile.in: Regenerate.
4121         * libsupc++/Makefile.am: Express glibcppinstalldir in terms
4122         of gxx_include_dir.
4123         AM_MAKEFLAGS: Pass gxx_include_dir.
4124         * libsupc++/Makefile.in: Regenerate.
4126 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
4128         * testsuite/27_io/ios_base_storage.cc (test02): Set exception
4129         mask.  Test setting small-numbered pword and iword slots.  Test
4130         behavior at limit of numeric_limits::max.  Check that values are
4131         still good after failures.
4133 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
4135         * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
4136         (ios_base::ios_base): Set _M_word, _M_word_size.
4137         (ios_base::~ios_base): Remove redundant test.
4138         * testsuite/27_io/ios_base_storage.cc (test03): New.
4140 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
4142         * src/strstream.cc, include/bits/basic_string.tcc: Remove
4143         incorrect whitespace added in my previous change.
4145 2003-03-05  Carlo Wood  <carlo@alinoe.com>
4147         * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
4148         _S_initialized() in order to allow debugging libraries to detect
4149         when the std streams are initialized from an overloaded operator
4150         new.
4152 2003-03-05  Benjamin Kosnik  <bkoz@redhat.com>
4154         * libsupc++/demangle.h: Move to..
4155         * include/bits/demangle.h: ...here.
4156         * src/demangle.cc: Adjust include.
4157         * include/Makefile.am (bits_headers): Add.
4158         * include/Makefile.in: Regenerate.
4160 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
4162         * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
4164         * config/linker-map.gnu: Filter typeinfo and vtable info.
4166 2003-03-04  Jerry Quinn  <jlquinn@optonline.net>
4168         * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
4169         new failure.  Throw exception if badbit and exception mask when ix
4170         >= numeric_limits<int>::max().
4172 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
4174         * src/strstream.cc (strstreambuf::overflow): Make sure operands of
4175         min and max have the same type.
4176         * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
4178 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
4180         * include/Makefile.am (allstamps): Remove stamp-std-precompile.
4181         * include/Makefile.in: Regenerate.
4183 2003-03-03  Benjamin Kosnik  <bkoz@redhat.com>
4185         * testsuite/abi_check.cc (report_symbol_info): Add version info.
4187         * config/linker-map.gnu: Hide more stuff.
4188         * include/Makefile.am: Cleanups.
4189         * include/Makefile.in: Regenerate.
4191 2003-02-27  Jerry Quinn  <jlquinn@optonline.net>
4193         * config/locale/generic/messages_members.h (messages::messages):
4194         Remove name from unused parameter.
4196 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
4198         * src/Makefile.am (sources): Add demangle.cc.
4199         (demangle.o): Add.
4200         (demangle.lo): Add.
4201         * src/Makefile.in: Regenerate.
4202         * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
4203         * libsupc++/Makefile.in: Regenerate.
4205         * testsuite/testsuite_hooks.h
4206         (__gnu_cxx_test::verify_demangle): New.
4207         * testsuite/testsuite_hooks.cc: Define.
4209 2003-02-27  Carlo Wood  <carlo@alinoe.com>
4211         * src/demangle.cc: New.
4212         * libsupc++/demangle.h: New.
4214 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
4215             Carlo Wood  <carlo@alinoe.com>
4217         * testsuite/demangle/abi_examples/01.cc: New.
4218         * testsuite/demangle/abi_examples/02.cc: New.
4219         * testsuite/demangle/abi_examples/03.cc: New.
4220         * testsuite/demangle/abi_examples/04.cc: New.
4221         * testsuite/demangle/abi_examples/05.cc: New.
4222         * testsuite/demangle/abi_examples/06.cc: New.
4223         * testsuite/demangle/abi_examples/07.cc: New.
4224         * testsuite/demangle/abi_examples/08.cc: New.
4225         * testsuite/demangle/abi_examples/09.cc: New.
4226         * testsuite/demangle/abi_examples/10.cc: New.
4227         * testsuite/demangle/abi_examples/11.cc: New.
4228         * testsuite/demangle/abi_examples/12.cc: New.
4229         * testsuite/demangle/abi_examples/13.cc: New.
4230         * testsuite/demangle/abi_examples/14.cc: New.
4231         * testsuite/demangle/abi_examples/15.cc: New.
4232         * testsuite/demangle/abi_examples/16.cc: New.
4233         * testsuite/demangle/abi_examples/17.cc: New.
4234         * testsuite/demangle/abi_examples/18.cc: New.
4235         * testsuite/demangle/abi_examples/19.cc: New.
4236         * testsuite/demangle/abi_examples/20.cc: New.
4237         * testsuite/demangle/abi_examples/21.cc: New.
4238         * testsuite/demangle/abi_examples/22.cc: New.
4239         * testsuite/demangle/abi_examples/23.cc: New.
4240         * testsuite/demangle/abi_examples/24.cc: New.
4241         * testsuite/demangle/abi_examples/25.cc: New.
4242         * testsuite/demangle/abi_examples/26.cc: New.
4243         * testsuite/demangle/abi_text/01.cc: New.
4244         * testsuite/demangle/abi_text/02.cc: New.
4245         * testsuite/demangle/abi_text/03.cc: New.
4246         * testsuite/demangle/abi_text/04.cc: New.
4247         * testsuite/demangle/abi_text/05.cc: New.
4248         * testsuite/demangle/abi_text/06.cc: New.
4249         * testsuite/demangle/abi_text/07.cc: New.
4250         * testsuite/demangle/abi_text/08.cc: New.
4251         * testsuite/demangle/abi_text/09.cc: New.
4252         * testsuite/demangle/abi_text/10.cc: New.
4253         * testsuite/demangle/abi_text/11.cc: New.
4254         * testsuite/demangle/abi_text/12.cc: New.
4255         * testsuite/demangle/abi_text/13.cc: New.
4256         * testsuite/demangle/abi_text/14.cc: New.
4257         * testsuite/demangle/regression/3111-1.cc: New.
4258         * testsuite/demangle/regression/3111-2.cc: New.
4259         * testsuite/demangle/regression/7986-01.cc: New.
4260         * testsuite/demangle/regression/7986-02.cc: New.
4261         * testsuite/demangle/regression/7986-03.cc: New.
4262         * testsuite/demangle/regression/7986-04.cc: New.
4263         * testsuite/demangle/regression/7986-05.cc: New.
4264         * testsuite/demangle/regression/7986-06.cc: New.
4265         * testsuite/demangle/regression/7986-07.cc: New.
4266         * testsuite/demangle/regression/7986-08.cc: New.
4267         * testsuite/demangle/regression/7986-09.cc: New.
4268         * testsuite/demangle/regression/7986-10.cc: New.
4269         * testsuite/demangle/regression/7986-11.cc: New.
4270         * testsuite/demangle/regression/7986-12.cc: New.
4271         * testsuite/demangle/regression/7986.cc: New.
4272         * testsuite/demangle/regression/8897.cc: New.
4273         * testsuite/demangle/regression/cw-01.cc: New.
4274         * testsuite/demangle/regression/cw-02.cc: New.
4275         * testsuite/demangle/regression/cw-03.cc: New.
4276         * testsuite/demangle/regression/cw-04.cc: New.
4277         * testsuite/demangle/regression/cw-05.cc: New.
4278         * testsuite/demangle/regression/cw-06.cc: New.
4279         * testsuite/demangle/regression/cw-07.cc: New.
4280         * testsuite/demangle/regression/cw-08.cc: New.
4281         * testsuite/demangle/regression/cw-09.cc: New.
4282         * testsuite/demangle/regression/cw-10.cc: New.
4283         * testsuite/demangle/regression/cw-11.cc: New.
4284         * testsuite/demangle/regression/cw-12.cc: New.
4285         * testsuite/demangle/regression/cw-13.cc: New.
4286         * testsuite/demangle/regression/cw-14.cc: New.
4287         * testsuite/demangle/regression/old.cc: New.
4289 2003-02-25  Phil Edwards  <pme@gcc.gnu.org>
4291         * docs/doxygen/Intro.3:  Update with new (proper) names.
4292         * docs/doxygen/TODO:  Update.
4293         * docs/doxygen/run_doxygen:  More comments, fix up man pages.
4294         Fake entries for standard typedefs.
4295         * docs/doxygen/user.cfg.in:  Turn INLINE_INHERITED_MEMB back on.
4296         * docs/html/documentation.html:  Top-level man page is now called
4297         C++Intro.
4298         * include/std/std_limits.h:  Doxygenate.
4300 2003-02-25  Scott Snyder  <snyder@fnal.gov>
4302         PR libstdc++/9811
4303         * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
4304         Correct documentation.
4305         * include/bits/stl_multimap.h (lower_bound, upper_bound,
4306         equal_range): Likewise.
4308 2003-02-24  Paolo Carlini  <pcarlini@unitus.it>
4310         PR libstdc++/9825
4311         * src/fstream.cc
4312         (basic_filebuf<char/wchar_t>::_M_underflow_common): When
4313         __bump is true (uflow), always increment the read pointer
4314         (_M_in_cur) before returning successfully.
4315         * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
4317 2003-02-24  Paolo Carlini <pcarlini@unitus.it>
4318             Nathan Myers <ncm@cantrip.org>
4320         PR libstdc++/9404, PR libstdc++/9701 (partial)
4321         (aka pptr == epptr implies overflow)
4322         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
4323         Consistently, _M_out_end points to the end of the buffer just
4324         created.
4325         (overflow): Tweak to use _M_out_buf_size().
4326         (_M_convert_to_external): The role of the old _M_out_end is
4327         now played by _M_out_lim.
4328         (_M_really_overflow): Likewise.
4329         (seekoff): Likewise.
4330         (setbuf): _M_out_end points to the end of the external buffer.
4331         * include/bits/sstream.tcc (overflow): Rewrote, taking into
4332         account the resolution of DR 169 (TC).
4333         (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
4334         (seekpos): Use _M_string.capacity(); tweak.
4335         * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
4336         * include/std/std_fstream.h (sync): The role of the old
4337         _M_out_end is now played by _M_out_lim.
4338         (_M_set_indeterminate): Use _M_set_determinate.
4339         (_M_set_determinate): _M_out_end is now _M_out_lim.
4340         (_M_is_indeterminate): Likewise.
4341         * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
4342         (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
4343         which have the information readily available as _M_string.capacity();
4344         for ate and app modes, pass the string size to _M_really_sync.
4345         (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
4346         point to the end of the buffer (i.e., epptr) and to the string end,
4347         respectively.
4348         * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
4349         which points to the right limit of the used put area.
4350         (_M_out_cur_move): The role of the old _M_out_end is now played
4351         by _M_out_lim.
4352         (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
4353         _M_out_end  - _M_out_cur (i.e., pptr), _very_ close to the letter
4354         of the standard.
4355         (basic_streambuf()): Initialize _M_out_lim too.
4356         * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
4357         * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
4358         * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
4360 2003-02-24  Benjamin Kosnik  <bkoz@redhat.com>
4362         * testsuite/27_io/ios_base_storage.cc (main): Call
4363         set_memory_limits.
4365 2003-02-21  Jerry Quinn  <jlquinn@optonline.net>
4367         * include/bits/locale_facets.tcc (_M_convert_float): Replace
4368         numpunct facet accesses with data from __locale_cache.
4370 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
4372         * docs/html/faq/index.html (3.9):  New note, wchar_t on FreeBSD.
4373         * docs/html/faq/index.txt:  Regenerate.
4375 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
4377         * config/linker-map.gnu:  Also export locking symbols needed for the
4378         generic atomicity.h case.
4380 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
4382         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
4383         config.status.
4384         * configure: Rebuilt.
4386 2003-02-19  Paolo Carlini  <pcarlini@unitus.it>
4388         * include/bits/sstream.tcc (overflow): According to
4389         27.7.1.3, p5, actual output is performed by sputc(c).
4391 2003-02-19  Phil Edwards  <pme@gcc.gnu.org>
4393         PR libstdc++/9582
4394         * include/bits/stl_alloc.h:  Remove all traces of assert().
4396 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
4398         * include/std/std_sstream.h (str()): the size of the
4399         current string may be different from the initial one
4400         whenever _M_out_end > _M_out_beg.
4401         * testsuite/27_io/stringbuf_members.cc (test07): Add.
4403 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
4405         PR libstdc++/9582
4406         * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
4408 2003-02-17  Benjamin Kosnik  <bkoz@redhat.com>
4410         * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
4411         * testsuite/27_io/ios_members.cc (test03): New.
4413 2003-02-17  Jerry Quinn  <jlquinn@optonline.net>
4415         * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
4416         (basic_ios::_M_cache_facets): Move into above.
4417         * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
4418         cache.
4419         (basic_ios::imbue): Force locale cache to be built.
4420         (basic_ios::_M_init): Create and initialize locale cache.
4421         * include/bits/ios_base.h (__locale_cache_base): Declare.
4422         (ios_base::_M_locale_cache): New.
4423         (ios_base::_M_cache): Define.
4424         * include/bits/locale_facets.h: (__num_base): Fix comment.  Add
4425         _S_end.
4426         (__locale_cache_base,__locale_cache<_CharT>):  New classes.
4427         (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
4428         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
4429         cache literal string, grouping flag, thousands separator.
4430         (__locale_cache<_CharT>::__locale_cache): New.
4431         (__locale_cache<_CharT>::_M_init): New.
4432         * src/ios.cc: Clear _M_locale_cache in constructor.
4433         * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
4434         New.
4436 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
4438         * src/locale-inst.cc: Do not include <cassert>.
4439         * src/locale.cc: Likewise.
4441 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
4443         PR libstdc++/9580
4444         * include/std/std_fstream.h: Declare underflow and uflow
4445         specializations, change generic definitions to do nothing.
4446         * src/fstream.cc: Add underflow and uflow specializations.
4448 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
4450         PR libstdc++/9169
4451         * include/bits/fstream.tcc (_M_convert_to_external):
4452         Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
4453         * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
4455 2003-02-13  Benjamin Kosnik  <bkoz@redhat.com>
4457         * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
4458         * include/bits/basic_ios.tcc: Guard use of extern template.
4459         * include/std/std_iomanip.h: Same.
4460         * include/bits/streambuf.tcc: Same.
4461         * include/bits/stl_alloc.h: Same.
4462         * include/bits/locale_facets.tcc: Same.
4463         * include/bits/ostream.tcc: Same.
4464         * include/bits/istream.tcc: Same.
4465         * include/bits/fstream.tcc: Same.
4466         * include/bits/basic_string.tcc: Same.
4468 2003-02-13  Paolo Carlini  <pcarlini@unitus.it>
4470         * include/bits/ostream.tcc (sentry::sentry): Improve
4471         performance-wise the fix for libstdc++/9563.
4473 2003-02-12  Phil Edwards  <pme@gcc.gnu.org>
4475         * config/cpu/generic/atomicity.h (_Atomic_add_mutex):  Fix declaration.
4476         (_GLIBCPP_NEED_GENERIC_MUTEX):  Define for this file.
4477         (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once):  Declare
4478         when we don't have static mutex initialization.
4479         (__exchange_and_add):  Use _Atomic_add_mutex_once.
4480         * src/misc-inst.cc:  Definitions of all the above.
4482 2003-02-12  Paolo Carlini  <pcarlini@unitus.it>
4484         PR libstdc++/9563
4485         * include/bits/ostream.tcc (sentry::sentry): Check
4486         the state of the stream after the preparation.
4487         * testsuite/27_io/ostream_sentry.cc (test02): Add.
4489 2003-02-11  Benjamin Kosnik  <bkoz@redhat.com>
4491         * include/Makefile.am (stamp-std-precompile): Add rule.
4492         * include/Makefile.in: Regenerated.
4494 2003-02-11 Jerry Quinn  <jlquinn@optonline.net>
4495            Benjamin Kosnik  <benjamin@redhat.com>
4497         * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
4498         Add indexes into this array.
4499         (__num_base::_S_atoms): To _S_atoms_in.
4500         (num_put::_M_insert): Rename to _M_pad.
4501         (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
4502         (num_put::_M_widen_int): Rename to _M_group_int.
4503         (num_put::_M_widen_float): Rename to _M_group_float.
4504         * include/bits/locale_facets.tcc (__int_to_char): New inline
4505         function and adapter functions.
4506         (num_put::_M_group_int): Streamline.
4507         (num_put::_M_group_float): Streamline.
4508         (num_put::_M_convert_int): Remove unused parameter names. Choose
4509         large enough buffer for text.  Use __int_to_char instead of
4510         __convert_from_v.  Formatted text is now at the end of the buffer.
4511         (num_put::_M_convert_float): Preliminary fixups.
4512         * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
4513         (__int_to_char<unsigned long long>): Same.
4514         (__int_to_char<char, unsigned long>): New.
4515         (__int_to_char<char, unsigned long long>): New.
4516         (__int_to_char<wchar_t, unsigned long>): New.
4517         (__int_to_char<wchar_t, unsigned long long>): New.
4519 2003-02-11  Scott Snyder  <snyder@fnal.gov>
4521         PR libstdc++/9659
4522         * include/bits/fstream.tcc (seekoff): Avoid operator+
4523         for pos_type.
4525 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
4527         PR libstdc++/9320
4528         * include/ext/stdio_filebuf.h
4529         (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
4530         stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
4531         Change to take a __size parameter of type size_t, not
4532         of type (template parameter dependent) int_type.
4533         * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
4534         size vars to size_t.
4535         * testsuite/ext/stdio_filebuf.cc: Add.
4537 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
4538             Petur Runolfsson  <peturr02@ru.is>
4540         PR libstdc++/9318
4541         * include/bits/streambuf.tcc (__copy_streambufs):
4542         Don't conditionalize the copy to __testput.
4543         * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
4545 2002-02-11  DJ Delorie  <dj@redhat.com>
4547         * acinclude.m4: Check for native targets that can't link at
4548         this point in the build.
4549         * aclocal.m4: Regenerate.
4550         * configure: Regenerate.
4552 2003-02-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4554         * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
4555         Correct alignment.
4556         (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
4557         lock.
4559 2003-02-07  Paolo Carlini  <pcarlini@unitus.it>
4561         * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
4562         unsigned char platforms.
4564 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
4566         PR libstdc++/9562
4567         * include/std/std_istream.h
4568         (basic_istream::sentry::operator bool()): Make const.
4569         * include/std/std_ostream.h
4570         (basic_ostream::sentry::operator bool()): Likewise.
4571         * testsuite/27_io/istream_sentry.cc (test03): Add.
4572         * testsuite/27_io/ostream_sentry.cc: Add.
4574 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
4576         PR libstdc++/9548
4577         Implement resolution of DR 231 (Ready)
4578         * include/bits/locale_facets.h (__num_base::_S_format_float):
4579         Change declaration: return void, remove __prec parameter.
4580         * src/locale.cc (__num_base::_S_format_float): Implement
4581         resolution of DR 231.
4582         * include/bits/locale_facets.tcc (num_put::_M_convert_float):
4583         Tweak uses. Check for negative precision.
4584         * testsuite/22_locale/num_put/put/char/6.cc: Add
4585         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
4587 2003-02-06  Peter Soetens  <peter.soetens@mech.kuleuven.ac.be>
4589         * config/io/basic_file_libio.h: Fixups.
4590         * config/io/c_io_libio.h: Same.
4591         * libio/Makefile.am: Same.
4592         * libio/Makefile.in: Regenerated.
4594 2003-02-06  Benjamin Kosnik  <bkoz@redhat.com>
4596         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
4597         Explicitly use the "C" locale.
4598         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
4600 2003-02-06  Petur Runolfsson  <peturr02@ru.is>
4602         DR 75
4603         DR 305
4604         PR libstdc++/9028 (partial)
4605         PR libstdc++/9224
4606         PR libstdc++/9246
4607         PR libstdc++/9247
4609         * src/codecvt.cc
4610         (codecvt<wchar_t, char, mbstate_t>::do_encoding,
4611         codecvt<wchar_t, char, mbstate_t>::do_length,
4612         codecvt<wchar_t, char, mbstate_t>::do_max_length):
4613         Move...
4614         * config/locale/generic/codecvt_members.cc:  ...here.
4615         * config/locale/gnu/codecvt_members.cc:  ...and here.
4617         * config/locale/generic/codecvt_members.cc,
4618         * config/locale/gnu/codecvt_members.cc
4619         (codecvt<wchar_t, char, mbstate_t>::do_encoding
4620         codecvt<wchar_t, char, mbstate_t>::do_in,
4621         codecvt<wchar_t, char, mbstate_t>::do_length,
4622         codecvt<wchar_t, char, mbstate_t>::do_max_length,
4623         codecvt<wchar_t, char, mbstate_t>::do_out):
4624         New implementation that handles stateless encodings,
4625         including UTF-8.
4627         * config/locale/generic/codecvt_members.cc,
4628         * config/locale/gnu/codecvt_members.cc,
4629         * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
4630         * include/bits/codecvt.h,
4631         * src/codecvt.cc
4632         (codecvt::length, codecvt::do_length):
4633         Change type of first argument of length and do_length from
4634         'const state_type&' to 'state_type&' according to DR 75.
4636         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc:  Cleanup.
4637         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc:  New test.
4638         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc:  New test.
4639         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc:  New test.
4640         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
4641         Cleanup and check for correct return value from encoding
4642         for "C" locale.
4643         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc:  New test.
4644         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc:  New test.
4645         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc:  New test.
4646         * testsuite/22_locale/codecvt/in/wchar_t/1.cc:  Cleanup.
4647         * testsuite/22_locale/codecvt/in/wchar_t/2.cc:  New test.
4648         * testsuite/22_locale/codecvt/in/wchar_t/3.cc:  New test.
4649         * testsuite/22_locale/codecvt/in/wchar_t/4.cc:  New test.
4650         * testsuite/22_locale/codecvt/in/wchar_t/5.cc:  New test.
4651         * testsuite/22_locale/codecvt/in/wchar_t/6.cc:  New test.
4652         * testsuite/22_locale/codecvt/in/wchar_t/7.cc:  New test.
4653         * testsuite/22_locale/codecvt/in/wchar_t/8.cc:  New test.
4654         * testsuite/22_locale/codecvt/in/wchar_t/9.cc:  New test.
4655         * testsuite/22_locale/codecvt/length/char/1.cc:  Cleanup.
4656         * testsuite/22_locale/codecvt/length/char/2.cc:  New test.
4657         * testsuite/22_locale/codecvt/length/wchar_t/1.cc:  Cleanup.
4658         * testsuite/22_locale/codecvt/length/wchar_t/2.cc:  New test.
4659         * testsuite/22_locale/codecvt/length/wchar_t/3.cc:  New test.
4660         * testsuite/22_locale/codecvt/length/wchar_t/4.cc:  New test.
4661         * testsuite/22_locale/codecvt/length/wchar_t/5.cc:  New test.
4662         * testsuite/22_locale/codecvt/length/wchar_t/6.cc:  New test.
4663         * testsuite/22_locale/codecvt/length/wchar_t/7.cc:  New test.
4664         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc:  Cleanup.
4665         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc:  New test.
4666         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc:  New test.
4667         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc:  New test.
4668         * testsuite/22_locale/codecvt/out/wchar_t/1.cc:  Cleanup.
4669         * testsuite/22_locale/codecvt/out/wchar_t/2.cc:  New test.
4670         * testsuite/22_locale/codecvt/out/wchar_t/3.cc:  New test.
4671         * testsuite/22_locale/codecvt/out/wchar_t/4.cc:  New test.
4672         * testsuite/22_locale/codecvt/out/wchar_t/5.cc:  New test.
4673         * testsuite/22_locale/codecvt/out/wchar_t/6.cc:  New test.
4674         * testsuite/22_locale/codecvt/out/wchar_t/7.cc:  New test.
4675         * testsuite/22_locale/codecvt/unicode/1.cc:  New test.
4676         * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc:  Cleanup.
4677         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc:  New test.
4678         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc:  New test.
4679         * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc:  New test.
4681 2003-02-05  Benjamin Kosnik  <bkoz@redhat.com>
4683         * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
4684         (money_put::do_put): Same.
4686 2003-02-05  Jerry Quinn  <jlquinn@optonline.net>
4688         * include/bits/ios_base.h (ios_base): Document reserved storage.
4690         * include/bits/locale_facets.h: (struct __pad): Comment on
4691         implementation.
4692         (__verify_grouping): Same.
4693         (__add_grouping): Same.
4694         * include/bits/locale_facets.tcc (__verify_grouping): Move
4695         comments to declaration.
4696         (__add_grouping): Same.
4698         * include/bits/locale_facets.tcc:
4699         (__write<_CharT, _OutIter>): New function.
4700         (__write<_CharT>): New function specialization.
4701         (num_put::_M_insert): Remove explicit loop over iterator.  Use
4702         __write.
4703         (num_put::_M_widen_float): Remove __basefield.
4704         (num_put::_M_widen_int): Move __basefield to within grouping block.
4706         * include/bits/streambuf_iterator.h: Include <streambuf>.
4707         (ostreambuf_iterator::_M_put): Add.
4709 2003-02-05  Paolo Carlini  <pcarlini@unitus.it>
4711         * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
4713 2003-02-04  Nathan Myers  <ncm@cantrip.org>
4715         * testsuite/25_algorithms/min_max.cc (test02): Add.
4717 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
4719         PR libstdc++/9439, PR libstdc++/9425
4720         * config/io/basic_file_stdio.cc
4721         (__basic_file<char>::seekoff, seekpos): Return -1L if
4722         fseek fails.
4723         * include/bits/fstream.tcc (basic_filebuf::seekoff):
4724         Check _M_file.seekoff return value; always return
4725         pos_type(off_type(-1)) in case of failure.
4726         (basic_filebuf::pbackfail): Check this->seekoff return
4727         value and return traits_type::eof() in case of failure.
4728         * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
4730 2003-02-04  Jerry Quinn  <jlquinn@optonline.net>
4732         * include/std/std_ostream.h (ostream::_M_write): Declare.
4733         * ostream.tcc (ostream::_M_write): Define.
4734         (basic_ostream::write): Use it.
4735         (operator<<(basic_ostream, _CharT)): Ditto.
4736         (operator<<(basic_ostream, char)): Ditto.
4737         (operator<<(basic_ostream, _CharT*)): Ditto.
4738         (operator<<(basic_ostream, char*)): Ditto.
4739         (operator<<(basic_ostream, basic_string)): Ditto.
4741 2003-02-04  Benjamin Kosnik  <bkoz@redhat.com>
4743         * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
4745 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
4747         * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
4748         add HTML comment about updating links if numbering changes.
4750 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
4752         PR libstdc++/9538
4753         * include/bits/streambuf.tcc (sputbackc): Access
4754         this->gptr()[-1] only if _M_in_beg < _M_in_cur.
4755         * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
4757 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
4759         PR libstdc++/9507
4760         * include/bits/fstream.tcc (open): If the 'ate' repositioning
4761         operation fails, calls close _and_ returns a null pointer
4762         to indicate failure (27.8.1.3,4).
4763         * testsuite/27_io/filebuf_members.cc (test_06): Add.
4765 2003-02-04  Petur Runolfsson  <peturr02@ru.is>
4767         * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
4769 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
4771         * docs/html/27_io/howto.html: New section on stdio_filebuf.
4772         * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
4773         * docs/html/documentation.html: Regenerate.
4775 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
4777         * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
4778         * docs/html/17_intro/porting.html: Regenerate.
4780 2003-02-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
4781             Phil Edwards  <pme@gcc.gnu.org>
4783         * include/std/std_bitset.h:  Replace CHAR_BIT with __CHAR_BIT__, use
4784         numeric_limits for bits-per-word values.
4785         (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
4786         Use __builtin_popcountl instead.
4787         (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
4788         _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
4789         Use __builtin_ctzl instead.
4790         (_S_bit_count, _S_first_one):  Remove.
4791         * config/linker-map.gnu (GLIBCPP_3.4):  Remove std::_S_bit_count.
4792         * src/Makefile.am (sources):  Remove bitset.cc.
4793         * src/bitset.cc:  Delete file.
4794         * src/Makefile.in:  Regenerate.
4796 2003-02-03  Phil Edwards  <pme@gcc.gnu.org>
4798         PR libstdc++/9527, PR libstdc++/8713
4799         * docs/html/install.html:  Mention glibc version requirement.
4800         * docs/html/faq/index.html (3.8):  New note, glibc 2.2.5+ is needed
4801         with 3.2.1+ (formatting bugfixes).
4802         * docs/html/faq/index.txt:  Regenerate.
4804 2003-02-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4806         PR libstdc++/9234
4807         * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
4808         operator.
4810         * include/bits/valarray_before.h (__not_equal_to): Use != instead
4811         of ==.
4813         * testsuite/26_numerics/valarray_operators.cc: New test.
4815 2003-02-01  Phil Edwards  <pme@gcc.gnu.org>
4817         * docs/html/faq/index.html:  Correct link to libg++ information.
4818         * docs/html/faq/index.txt:  Regenerated.
4820 2003-02-01  Paolo Carlini  <pcarlini@unitus.it>
4821             Benjamin Kosnik  <bkoz@redhat.com>
4823         Const correctness issue:
4824         http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
4825         * include/bits/locale_classes.h
4826         (locale::_Impl::_M_facets): Change type to const facet**.
4827         (locale::_Impl::_M_install_facet): Change declaration to
4828         take const facet*.
4829         (locale::facet::_M_references): Make mutable.
4830         (locale::facet::_M_add_reference): Declare const.
4831         (locale::facet::_M_remove_reference): Likewise.
4832         * include/bits/locale_facets.tcc
4833         (use_facet(const locale&)): Tweak for const facet** _M_facets.
4834         (has_facet(const locale&)): Likewise.
4835         * src/locale.cc
4836         (locale::facet::_M_add_reference): Adjust definition.
4837         (locale::facet::_M_remove_reference): Likewise.
4838         * src/localename.cc
4839         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
4840         const facet** _M_facets.
4841         (locale::_Impl::_Impl(const char*, size_t)): Likewise.
4842         (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
4843         (locale::_Impl::_M_install_facet): Adjust definition to take
4844         const facet* and for const facet** _M_facets.
4845         * testsuite/22_locale/locale/cons/8.cc: Add.
4847 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
4849         * include/std/std_limits.h (numeric_limits<float>::has_infinity):
4850         Use __FLT_HAS_INIFINITY__ to initialize.
4851         (numeric_limits<float>::has_quiet_NaN): Likewise.
4852         (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
4853         to initialize.
4854         (numeric_limits<double>::has_quiet_NaN): Likewise.
4855         (numeric_limits<long double>::has_infinity): Use
4856         __LDBL_HAS_INIFINITY__ to initialize.
4857         (numeric_limits<long_double>::has_quiet_NaN): Likewise.
4859 2003-01-28  Nathan Sidwell  <nathan@codesourcery.com>
4861         PR c++/9433
4862         * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
4863         with bases which are very ambiguous.
4865 2003-01-28  Danny Smith  <dannysmith@users.sourceforge.net>
4867         * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
4868         @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
4869         * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
4870         * src/Makefile.in: Regenerate.
4871         * libsupc++/Makefile.in: Regenerate.
4873 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
4875         * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
4876         $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
4877         version_specific_libs is enabled.
4878         * aclocal.m4, configure: Rebuilt.
4880 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
4882         * include/bits/valarray_meta.h: Remove, split into ...
4883         * include/bits/valarray_before.h: ... this, and ...
4884         * include/bits/valarray_after.h: ... this.
4885         * include/std/std_valarray.h: Adjust.
4886         * include/Makefile.am (bits_headers): Adjust.
4887         * include/Makefile.in: Regenerate.
4889 2003-01-24  Andreas Schwab  <schwab@suse.de>
4891         * config/linker-map.gnu: Fix for size_t variance.
4893 2003-01-23  Petur Runolfsson  <peturr02@ru.is>
4895         PR libstdc++/9322
4896         * include/std/std_streambuf.h
4897         (basic_streambuf::basic_streambuf,
4898         basic_streambuf::~basic_streambuf,
4899         basic_streambuf::getloc, basic_streambuf::imbue):
4900         Remove _M_buf_locale_init
4901         * include/bits/fstream.tcc (basic_filebuf::imbue):  Likewise
4902         * testsuite/27_io/filebuf_virtuals.cc (test08):  Add.
4903         * testsuite/27_io/streambuf_members.cc (test08):  Add.
4904         * testsuite/27_io/stringbuf_virtuals.cc (test08):  Add.
4906 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
4908         Revert include ordering.
4909         * config/locale/generic/c_locale.h: Add include guards.
4910         * config/locale/gnu/c_locale.h: Same.
4911         * include/bits/locale_classes.h: Remove cctype include.
4912         * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
4913         * include/std/std_fstream.h: Remove streambuf include.
4914         * include/std/std_sstream.h: Remove streambuf include.
4916 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
4918         * configure.in (libtool_VERSION): To 6:0:0.
4919         * configure: Regenerated.
4920         * config/linker-map.gnu: Clean.
4922         * src/misc-inst.cc: Remove instantiations.
4924         * include/bits/stl_alloc.h (__malloc_alloc_template):
4925         To __malloc_alloc.
4926         (__default_alloc_template): To __pool_alloc.
4927         * src/stl-inst.cc: Same.
4928         * include/backward/alloc.h: Update.
4929         * testsuite/ext/allocators.cc: Update.
4931         * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
4932         really try to remove these if possible.
4933         * src/locale.cc (std): Same.
4935         * testsuite/abi_check.cc (check_version): Add.
4937 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
4938             Sysoltsev Slawa  <Vyatcheslav.Sysoltsev@intel.com>
4939             Mark Mitchell  <mark@codesourcery.com>
4941         PR libstdc++/9269
4942         * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
4943         (basic_filebuf::underflow): Declare.
4944         Move definitions.
4946 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
4948         * include/bits/locale_facets.h: Move non-facet classes requiring
4949         <string> to...
4950         * include/bits/locale_classes.h: New.
4951         * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
4952         * include/bits/Makefile.in: Regenerate.
4954         * include/bits/locale_facets.tcc (__convert_from_v): Move to...
4955         * config/locale/gnu/c_locale.h: ...here.
4956         * config/locale/generic/c_locale.h: Same.
4958         * include/bits/locale_facets.tcc: Move declarations to...
4959         * include/bits/locale_facets.h: ...here.
4960         * include/bits/basic_ios.h: Tweak includes accordingly.
4961         * include/std/std_sstream.h: Add streambuf include.
4962         * include/std/std_fstream.h: Ditto.
4963         * include/std/std_locale.h: Add locale_classes.h include.
4964         * include/std/std_iosfwd.h: Tweak.
4965         * src/concept-inst.cc: Add iterator include.
4967         * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
4968         bits as unexported in the future.
4970 2003-01-21  Benjamin Kosnik  <bkoz@redhat.com>
4972         Reshuffle 22_locale testsuite.
4973         * 22_locale/(codecvt.cc money_get.cc
4974         codecvt_members_char_char.cc money_get_members_char.cc
4975         codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
4976         codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
4977         codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
4978         moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
4979         collate_members_char.cc money_put.cc collate_members_wchar_t.cc
4980         money_put_members_char.cc ctor_copy_dtor.cc
4981         money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
4982         num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
4983         ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
4984         numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
4985         ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
4986         num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
4987         ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
4988         operators.cc ctype_widen_char.cc static_members.cc
4989         ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
4990         global_templates.cc time_get_members_wchar_t.cc, members.cc,
4991         time_put.cc, messages_byname.cc, time_put_members_char.cc,
4992         messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
4993         Split up into individual test cases...
4994         * 22_locale/codecvt/1.cc: New.
4995         * 22_locale/codecvt/2.cc: New.
4996         * 22_locale/codecvt/always_noconv/char/1.cc: New.
4997         * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
4998         * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
4999         * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
5000         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
5001         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
5002         * 22_locale/codecvt/encoding/char/1.cc: New.
5003         * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
5004         * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
5005         * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
5006         * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
5007         * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
5008         * 22_locale/codecvt/in/char/1.cc: New.
5009         * 22_locale/codecvt/in/char/wrapped_env.cc: New.
5010         * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
5011         * 22_locale/codecvt/in/wchar_t/1.cc: New.
5012         * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
5013         * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
5014         * 22_locale/codecvt/length/char/1.cc: New.
5015         * 22_locale/codecvt/length/char/wrapped_env.cc: New.
5016         * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
5017         * 22_locale/codecvt/length/wchar_t/1.cc: New.
5018         * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
5019         * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
5020         * 22_locale/codecvt/max_length/char/1.cc: New.
5021         * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
5022         * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
5023         * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
5024         * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
5025         * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
5026         * 22_locale/codecvt/out/char/1.cc: New.
5027         * 22_locale/codecvt/out/char/wrapped_env.cc: New.
5028         * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
5029         * 22_locale/codecvt/out/wchar_t/1.cc: New.
5030         * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
5031         * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
5032         * 22_locale/codecvt/unicode/char.cc: New.
5033         * 22_locale/codecvt/unicode/wchar_t.cc: New.
5034         * 22_locale/codecvt/unshift/char/1.cc: New.
5035         * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
5036         * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
5037         * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
5038         * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
5039         * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
5040         * 22_locale/collate/1.cc: New.
5041         * 22_locale/collate/2.cc: New.
5042         * 22_locale/collate/compare/char/1.cc: New.
5043         * 22_locale/collate/compare/char/2.cc: New.
5044         * 22_locale/collate/compare/char/wrapped_env.cc: New.
5045         * 22_locale/collate/compare/char/wrapped_locale.cc: New.
5046         * 22_locale/collate/compare/wchar_t/1.cc: New.
5047         * 22_locale/collate/compare/wchar_t/2.cc: New.
5048         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
5049         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
5050         * 22_locale/collate/hash/char/1.cc: New.
5051         * 22_locale/collate/hash/char/2.cc: New.
5052         * 22_locale/collate/hash/char/wrapped_env.cc: New.
5053         * 22_locale/collate/hash/char/wrapped_locale.cc: New.
5054         * 22_locale/collate/hash/wchar_t/1.cc: New.
5055         * 22_locale/collate/hash/wchar_t/2.cc: New.
5056         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
5057         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
5058         * 22_locale/collate/transform/char/2.cc: New.
5059         * 22_locale/collate/transform/char/wrapped_env.cc: New.
5060         * 22_locale/collate/transform/char/wrapped_locale.cc: New.
5061         * 22_locale/collate/transform/wchar_t/2.cc: New.
5062         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
5063         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
5064         * 22_locale/collate_byname/1.cc: New.
5065         * 22_locale/ctype/1.cc: New.
5066         * 22_locale/ctype/2.cc: New.
5067         * 22_locale/ctype/cons/char/1.cc: New.
5068         * 22_locale/ctype/cons/char/wrapped_env.cc: New.
5069         * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
5070         * 22_locale/ctype/is/char/1.cc: New.
5071         * 22_locale/ctype/is/char/2.cc: New.
5072         * 22_locale/ctype/is/char/3.cc: New.
5073         * 22_locale/ctype/is/char/wrapped_env.cc: New.
5074         * 22_locale/ctype/is/char/wrapped_locale.cc: New.
5075         * 22_locale/ctype/is/wchar_t/1.cc: New.
5076         * 22_locale/ctype/is/wchar_t/2.cc: New.
5077         * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
5078         * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
5079         * 22_locale/ctype/narrow/char/1.cc: New.
5080         * 22_locale/ctype/narrow/char/2.cc: New.
5081         * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
5082         * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
5083         * 22_locale/ctype/narrow/wchar_t/1.cc: New.
5084         * 22_locale/ctype/narrow/wchar_t/2.cc: New.
5085         * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
5086         * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
5087         * 22_locale/ctype/scan/char/1.cc: New.
5088         * 22_locale/ctype/scan/char/wrapped_env.cc: New.
5089         * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
5090         * 22_locale/ctype/scan/wchar_t/1.cc: New.
5091         * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
5092         * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
5093         * 22_locale/ctype/to/char/1.cc: New.
5094         * 22_locale/ctype/to/char/wrapped_env.cc: New.
5095         * 22_locale/ctype/to/char/wrapped_locale.cc: New.
5096         * 22_locale/ctype/to/wchar_t/1.cc: New.
5097         * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
5098         * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
5099         * 22_locale/ctype/widen/char/1.cc: New.
5100         * 22_locale/ctype/widen/char/wrapped_env.cc: New.
5101         * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
5102         * 22_locale/ctype/widen/wchar_t/1.cc: New.
5103         * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
5104         * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
5105         * 22_locale/facet/1.cc: New.
5106         * 22_locale/facet/2.cc: New.
5107         * 22_locale/global_templates/1.cc: New.
5108         * 22_locale/locale/cons/1.cc: New.
5109         * 22_locale/locale/cons/2.cc: New.
5110         * 22_locale/locale/cons/3.cc: New.
5111         * 22_locale/locale/cons/4.cc: New.
5112         * 22_locale/locale/cons/5.cc: New.
5113         * 22_locale/locale/cons/6.cc: New.
5114         * 22_locale/locale/cons/7.cc: New.
5115         * 22_locale/locale/global_locale_objects/1.cc: New.
5116         * 22_locale/locale/global_locale_objects/2.cc: New.
5117         * 22_locale/locale/global_locale_objects/3.cc: New.
5118         * 22_locale/locale/operations/1.cc: New.
5119         * 22_locale/locale/operations/2.cc: New.
5120         * 22_locale/messages/1.cc: New.
5121         * 22_locale/messages/2.cc: New.
5122         * 22_locale/messages/members/char/1.cc: New.
5123         * 22_locale/messages/members/char/2.cc: New.
5124         * 22_locale/messages/members/char/3.cc: New.
5125         * 22_locale/messages/members/char/wrapped_env.cc: New.
5126         * 22_locale/messages/members/char/wrapped_locale.cc: New.
5127         * 22_locale/messages_byname/1.cc: New.
5128         * 22_locale/money_get/1.cc: New.
5129         * 22_locale/money_get/2.cc: New.
5130         * 22_locale/money_get/get/char/1.cc: New.
5131         * 22_locale/money_get/get/char/2.cc: New.
5132         * 22_locale/money_get/get/char/3.cc: New.
5133         * 22_locale/money_get/get/char/4.cc: New.
5134         * 22_locale/money_get/get/char/5.cc: New.
5135         * 22_locale/money_get/get/char/6.cc: New.
5136         * 22_locale/money_get/get/char/7.cc: New.
5137         * 22_locale/money_get/get/char/8.cc: New.
5138         * 22_locale/money_get/get/char/wrapped_env.cc: New.
5139         * 22_locale/money_get/get/char/wrapped_locale.cc: New.
5140         * 22_locale/money_get/get/wchar_t/1.cc: New.
5141         * 22_locale/money_get/get/wchar_t/2.cc: New.
5142         * 22_locale/money_get/get/wchar_t/3.cc: New.
5143         * 22_locale/money_get/get/wchar_t/4.cc: New.
5144         * 22_locale/money_get/get/wchar_t/5.cc: New.
5145         * 22_locale/money_get/get/wchar_t/6.cc: New.
5146         * 22_locale/money_get/get/wchar_t/7.cc: New.
5147         * 22_locale/money_get/get/wchar_t/8.cc: New.
5148         * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
5149         * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
5150         * 22_locale/money_put/1.cc: New.
5151         * 22_locale/money_put/2.cc: New.
5152         * 22_locale/money_put/put/char/1.cc: New.
5153         * 22_locale/money_put/put/char/2.cc: New.
5154         * 22_locale/money_put/put/char/3.cc: New.
5155         * 22_locale/money_put/put/char/4.cc: New.
5156         * 22_locale/money_put/put/char/5.cc: New.
5157         * 22_locale/money_put/put/char/6.cc: New.
5158         * 22_locale/money_put/put/char/wrapped_env.cc: New.
5159         * 22_locale/money_put/put/char/wrapped_locale.cc: New.
5160         * 22_locale/money_put/put/wchar_t/1.cc: New.
5161         * 22_locale/money_put/put/wchar_t/2.cc: New.
5162         * 22_locale/money_put/put/wchar_t/3.cc: New.
5163         * 22_locale/money_put/put/wchar_t/4.cc: New.
5164         * 22_locale/money_put/put/wchar_t/5.cc: New.
5165         * 22_locale/money_put/put/wchar_t/6.cc: New.
5166         * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
5167         * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
5168         * 22_locale/moneypunct/1.cc: New.
5169         * 22_locale/moneypunct/2.cc: New.
5170         * 22_locale/moneypunct/3.cc: New.
5171         * 22_locale/moneypunct/members/char/1.cc: New.
5172         * 22_locale/moneypunct/members/char/2.cc: New.
5173         * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
5174         * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
5175         * 22_locale/moneypunct/members/wchar_t/1.cc: New.
5176         * 22_locale/moneypunct/members/wchar_t/2.cc: New.
5177         * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
5178         * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
5179         * 22_locale/moneypunct_byname/1.cc: New.
5180         * 22_locale/num_get/1.cc: New.
5181         * 22_locale/num_get/2.cc: New.
5182         * 22_locale/num_get/get/char/1.cc: New.
5183         * 22_locale/num_get/get/char/2.cc: New.
5184         * 22_locale/num_get/get/char/3.cc: New.
5185         * 22_locale/num_get/get/char/4.cc: New.
5186         * 22_locale/num_get/get/char/5.cc: New.
5187         * 22_locale/num_get/get/char/6.cc: New.
5188         * 22_locale/num_get/get/char/wrapped_env.cc: New.
5189         * 22_locale/num_get/get/char/wrapped_locale.cc: New.
5190         * 22_locale/num_get/get/wchar_t/1.cc: New.
5191         * 22_locale/num_get/get/wchar_t/2.cc: New.
5192         * 22_locale/num_get/get/wchar_t/3.cc: New.
5193         * 22_locale/num_get/get/wchar_t/4.cc: New.
5194         * 22_locale/num_get/get/wchar_t/5.cc: New.
5195         * 22_locale/num_get/get/wchar_t/6.cc: New.
5196         * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
5197         * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
5198         * 22_locale/num_put/1.cc: New.
5199         * 22_locale/num_put/2.cc: New.
5200         * 22_locale/num_put/put/char/1.cc: New.
5201         * 22_locale/num_put/put/char/2.cc: New.
5202         * 22_locale/num_put/put/char/3.cc: New.
5203         * 22_locale/num_put/put/char/4.cc: New.
5204         * 22_locale/num_put/put/char/5.cc: New.
5205         * 22_locale/num_put/put/char/wrapped_env.cc: New.
5206         * 22_locale/num_put/put/char/wrapped_locale.cc: New.
5207         * 22_locale/num_put/put/wchar_t/1.cc: New.
5208         * 22_locale/num_put/put/wchar_t/2.cc: New.
5209         * 22_locale/num_put/put/wchar_t/3.cc: New.
5210         * 22_locale/num_put/put/wchar_t/4.cc: New.
5211         * 22_locale/num_put/put/wchar_t/5.cc: New.
5212         * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
5213         * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
5214         * 22_locale/numpunct/1.cc: New.
5215         * 22_locale/numpunct/2.cc: New.
5216         * 22_locale/numpunct/members/char/1.cc: New.
5217         * 22_locale/numpunct/members/char/2.cc: New.
5218         * 22_locale/numpunct/members/char/wrapped_env.cc: New.
5219         * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
5220         * 22_locale/numpunct/members/wchar_t/1.cc: New.
5221         * 22_locale/numpunct/members/wchar_t/2.cc: New.
5222         * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
5223         * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
5224         * 22_locale/numpunct_byname/1.cc: New.
5225         * 22_locale/numpunct_byname/2.cc: New.
5226         * 22_locale/time_get/1.cc: New.
5227         * 22_locale/time_get/2.cc: New.
5228         * 22_locale/time_get/date_order/char/1.cc: New.
5229         * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
5230         * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
5231         * 22_locale/time_get/date_order/wchar_t/1.cc: New.
5232         * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
5233         * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
5234         * 22_locale/time_get/get_date/char/1.cc: New.
5235         * 22_locale/time_get/get_date/char/2.cc: New.
5236         * 22_locale/time_get/get_date/char/3.cc: New.
5237         * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
5238         * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
5239         * 22_locale/time_get/get_date/wchar_t/1.cc: New.
5240         * 22_locale/time_get/get_date/wchar_t/2.cc: New.
5241         * 22_locale/time_get/get_date/wchar_t/3.cc: New.
5242         * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
5243         * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
5244         * 22_locale/time_get/get_monthname/char/1.cc: New.
5245         * 22_locale/time_get/get_monthname/char/2.cc: New.
5246         * 22_locale/time_get/get_monthname/char/3.cc: New.
5247         * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
5248         * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
5249         * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
5250         * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
5251         * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
5252         * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
5253         * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
5254         * 22_locale/time_get/get_time/char/1.cc: New.
5255         * 22_locale/time_get/get_time/char/2.cc: New.
5256         * 22_locale/time_get/get_time/char/3.cc: New.
5257         * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
5258         * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
5259         * 22_locale/time_get/get_time/wchar_t/1.cc: New.
5260         * 22_locale/time_get/get_time/wchar_t/2.cc: New.
5261         * 22_locale/time_get/get_time/wchar_t/3.cc: New.
5262         * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
5263         * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
5264         * 22_locale/time_get/get_weekday/char/1.cc: New.
5265         * 22_locale/time_get/get_weekday/char/2.cc: New.
5266         * 22_locale/time_get/get_weekday/char/3.cc: New.
5267         * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
5268         * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
5269         * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
5270         * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
5271         * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
5272         * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
5273         * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
5274         * 22_locale/time_get/get_year/char/1.cc: New.
5275         * 22_locale/time_get/get_year/char/3.cc: New.
5276         * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
5277         * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
5278         * 22_locale/time_get/get_year/wchar_t/1.cc: New.
5279         * 22_locale/time_get/get_year/wchar_t/3.cc: New.
5280         * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
5281         * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
5282         * 22_locale/time_put/1.cc: New.
5283         * 22_locale/time_put/2.cc: New.
5284         * 22_locale/time_put/put/char/1.cc: New.
5285         * 22_locale/time_put/put/char/10.cc: New.
5286         * 22_locale/time_put/put/char/2.cc: New.
5287         * 22_locale/time_put/put/char/3.cc: New.
5288         * 22_locale/time_put/put/char/4.cc: New.
5289         * 22_locale/time_put/put/char/5.cc: New.
5290         * 22_locale/time_put/put/char/6.cc: New.
5291         * 22_locale/time_put/put/char/7.cc: New.
5292         * 22_locale/time_put/put/char/8.cc: New.
5293         * 22_locale/time_put/put/char/9.cc: New.
5294         * 22_locale/time_put/put/char/wrapped_env.cc: New.
5295         * 22_locale/time_put/put/char/wrapped_locale.cc: New.
5296         * 22_locale/time_put/put/wchar_t/1.cc: New.
5297         * 22_locale/time_put/put/wchar_t/10.cc: New.
5298         * 22_locale/time_put/put/wchar_t/2.cc: New.
5299         * 22_locale/time_put/put/wchar_t/3.cc: New.
5300         * 22_locale/time_put/put/wchar_t/4.cc: New.
5301         * 22_locale/time_put/put/wchar_t/5.cc: New.
5302         * 22_locale/time_put/put/wchar_t/6.cc: New.
5303         * 22_locale/time_put/put/wchar_t/7.cc: New.
5304         * 22_locale/time_put/put/wchar_t/8.cc: New.
5305         * 22_locale/time_put/put/wchar_t/9.cc: New.
5306         * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
5307         * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
5309 2003-01-16  Jeffrey D. Oldham  <oldham@codesourcery.com>
5311         * config/locale/generic/messages_members.h
5312         (messages_byname<_CharT>::messages_byname): Use this-> to refer to
5313         unqualified members of base clasess.
5315 2003-01-16  Mark Mitchell  <mark@codesourcery.com>
5316             Jeffrey Oldham <oldham@codesourcery.com>
5318         * config/locale/gnu/messages_members.h: Use this-> to refer to
5319         unqualified members of base clasess.
5320         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
5321         * include/bits/codecvt.h: Likewise.
5322         * include/bits/deque.tcc: Likewise.
5323         * include/bits/fstream.tcc: Likewise.
5324         * include/bits/istream.tcc: Likewise.
5325         * include/bits/list.tcc: Likewise.
5326         * include/bits/locale_facets.h: Likewise.
5327         * include/bits/ostream.tcc: Likewise.
5328         * include/bits/sstream.tcc: Likewise.
5329         * include/bits/stl_bvector.h: Likewise.
5330         * include/bits/stl_deque.h: Likewise.
5331         * include/bits/stl_list.h: Likewise.
5332         * include/bits/stl_tree.h: Likewise.
5333         * include/bits/stl_vector.h: Likewise.
5334         * include/bits/vector.tcc: Likewise.
5335         * include/ext/ropeimpl.h: Likewise.
5336         * include/ext/stdio_filebuf.h: Likewise.
5337         * include/ext/stl_rope.h: Likewise.
5338         * include/std/std_fstream.h: Likewise.
5339         * include/std/std_sstream.h: Likewise.
5341 2003-01-15  Phil Edwards  <pme@gcc.gnu.org>
5343         * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
5345 2003-01-15  Benjamin Kosnik  <bkoz@redhat.com>
5347         * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
5348         GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
5349         * aclocal.m4: Regenerate.
5350         * configure: Regenerate.
5351         * testsuite/Makefile.am (all-local): Add conditional rule to
5352         generate testsuite_wchar_t.
5353         * testsuite/Makefile.in: Regenerate.
5354         * testsuite/lib/libstdc++-v3-dg.exp
5355         (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
5356         testsuite_wchar_t is not present in the build directory.
5357         * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
5358         Remove setulimit bits.
5359         * testsuite/26_numerics/complex_value.cc: Set to noopts.
5360         * testsuite/Makefile.am (CLEANFILES): Add.
5361         * testsuite/Makefile.in: Regenerate.
5363 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5365         * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
5366         __hppa__.
5368 2003-01-14  Jeffrey D. Oldham  <oldham@codesourcery.com>
5370         Further conform g++'s __vmi_class_type_info to the C++ ABI
5371         specification.
5372         * libsupc++/cxxabi.h
5373         (__vmi_class_type_info::__flags_masks): Remove enumerations not
5374         required by the specification.
5376 2003-01-12  Benjamin Kosnik  <bkoz@redhat.com>
5378         Renames, namespaces for testsuite utilities.
5379         * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
5380         (gnu_allocator_tracker): Rename to allocation_tracker.
5381         (gnu_new_allocator): Rename to tracker_alloc.
5382         (__set_testsuite_memlimit): Rename to set_memory_limits.
5383         (gnu_assignment_operator): Rename to assignment_operator.
5384         (gnu_destructor): Rename to destructor.
5385         (gnu_copy_tracker): Rename to copy_tracker.
5386         (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
5387         (run_tests_wrapped_locale): New.
5388         (run_tests_wrapped_env): New.
5389         * testsuite/testsuite_hooks.cc: Same.
5390         (class locale_data): Add.
5391         (class enviornment_variable): Add.
5392         (class not_found): Add.
5393         * testsuite/testsuite_allocator.h: Same.
5394         * testsuite/testsuite_allocator.cc: Same.
5395         * testsuite/23_containers/deque_ctor.cc
5396         (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
5397         allocation_tracker.
5398         Change gnu_new_allocator to tracker_alloc.
5399         Change gnu_counting_struct to counter.
5400         Change gnu_copy_tracker to copy_tracker.
5401         Change gnu_copy_constructor to copy_constructor.
5402         Change gnu_assignment_operator to assignment_operator.
5403         Inject.
5404         * testsuite/23_containers/vector_capacity.cc: Same.
5405         * testsuite/23_containers/vector_ctor.cc (test01): Same.
5406         * testsuite/23_containers/list_modifiers.cc: Change
5407         gnu_copy_tracker to copy_tracker.
5408         * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
5409         __set_testsuite_memlimit to set_memory_limits.
5410         * testsuite/21_strings/insert.cc (main): Same.
5411         * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
5412         * testsuite/27_io/stringstream.cc: Same.
5413         * testsuite/27_io/stringbuf.cc: Same.
5414         * testsuite/27_io/streambuf.cc: Same.
5415         * testsuite/27_io/ostream.cc: Same.
5416         * testsuite/27_io/istream.cc: Same.
5417         * testsuite/27_io/fstream.cc: Same.
5418         * testsuite/lib/libstdc++-v3-dg.exp
5419         (libstdc++-v3-list-sourcefiles): Additionally handle files two and
5420         three levels deeper in glob patterns.
5422 2003-01-11  Phil Edwards  <pme@gcc.gnu.org>
5424         * docs/doxygen/tables.html:  Finished now.
5425         * docs/doxygen/user.cfg.in:  Update to latest version of Doxygen.
5426         * include/bits/basic_ios.h (basic_ios::rdbuf):  Add example to
5427         comments.
5429         * include/bits/deque.tcc, include/bits/stl_alloc.h,
5430         include/bits/stl_deque.h, include/bits/stl_list.h,
5431         include/bits/stl_vector.h:  Remove _GLIBCPP_DEPRECATED bits scheduled
5432         for 3.4 removal.
5434 2003-01-09  Benjamin Kosnik  <bkoz@redhat.com>
5436         * configure.in: Revert.
5437         * configure: Regenerate.
5439 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
5441         * include/Makefile.am (install-data-local): Prepend
5442         $(DESTDIR) to destination paths in all (un)installation
5443         commands.  Use ${c_base_builddir} and ${std_builddir}
5444         as destination subdirectories to achieve consistency with
5445         preceding mkinstalldirs commands.  No effect because both
5446         variables contain "." only.
5447         * include/Makefile.in: Regenerate.
5449 2003-01-08  Benjamin Kosnik  <bkoz@redhat.com>
5451         * include/Makefile.am (stamp-*): Add checks for existing stamps.
5452         * include/Makefile.in: Regenerate.
5454         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
5455         * aclocal.m4: Regenerate.
5457         * configure.in: Don't add new multi-do rules every time the
5458         directory is reconfigured.
5459         * configure: Regenerate.
5461 2003-01-08  Brad Spencer  <spencer@infointeractive.com>
5462             Nathan Myers  <ncm@cantrip.org>
5464         * src/Makefile.am (stamp-debug): Clean.
5465         * src/Makefile.in: Regenerate.
5467 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
5469         PR libstdc++/8707
5470         * Makefile.am (distclean-multi): Fix.
5471         * Makefile.in: Regenerate.
5473 2003-01-06  Benjamin Kosnik  <bkoz@redhat.com>
5475         * include/bits/locale_facets.h (messages): Move ctor, dtor
5476         definitions to..
5477         (__timepunct): Same.
5478         * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
5479         definitions. Conditionalize for GNU systems.
5480         * config/locale/generic/messages_members.h (messages): Add dtor, ctor
5481         definitions.
5482         * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
5483         definitions. Conditionalize for GNU systems.
5484         * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
5485         definitions.
5486         * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
5487         * src/locale.cc: Define.
5488         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
5489         Use it.
5490         * config/locale/gnu/time_members.h: Use it.
5491         * config/locale/gnu/messages_members.h: Use it.
5492         * config/linker-map.gnu: Add locale::facets details.
5493         * include/Makefile.am (target_headers_extra): Add time_members.h.
5494         * include/Makefile.in: Regenerate.
5495         * acinclude.m4: Export CTIME_H.
5496         * aclocal.m4: Regenerate.
5497         * configure: Regnerate.
5499 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
5501         * src/codecvt.cc
5502         (codecvt<char, char, mbstate_t>::do_in, do_out):
5503         Tweak parameters to avoid unused parameter warnings.
5505 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
5507         PR libstdc++/9151
5508         * include/bits/locale_facets.cc (num_put::_M_convert_float):
5509         Limit __prec to digits10 + 2, not digits10 + 1, taking into
5510         account the possibility of %{g,G} conversion specifiers
5511         inside _S_format_float.
5512         * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
5514 2003-01-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5516         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
5517         libstdc++-v3-list-sourcefiles): Additionally handle files one
5518         level deeper in glob patterns.
5520         * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
5521         * testsuite/27_io/istream_extractor_arith/01.cc,
5522         testsuite/27_io/istream_extractor_arith/02.cc,
5523         testsuite/27_io/istream_extractor_arith/03.cc,
5524         testsuite/27_io/istream_extractor_arith/06.cc,
5525         testsuite/27_io/istream_extractor_arith/07.cc,
5526         testsuite/27_io/istream_extractor_arith/08.cc,
5527         testsuite/27_io/istream_extractor_arith/09.cc,
5528         testsuite/27_io/istream_extractor_arith/10.cc,
5529         testsuite/27_io/istream_extractor_arith/11.cc,
5530         testsuite/27_io/istream_extractor_arith/12.cc,
5531         testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
5532         * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
5533         sparc*-*-solaris2*.
5535 2003-01-05  Paolo Carlini <pcarlini@unitus.it>
5537         PR libstdc++/9168
5538         * src/codecvt.cc
5539         (codecvt<char, char, mbstate_t>::do_in, do_out):
5540         Implement the resolution of DR19 (TC).
5541         * testsuite/22_locale/codecvt_members_char_char.cc
5542         (test01): Tweak.
5544 2003-01-02  Jason Merrill  <jason@redhat.com>
5546         * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
5547         *__mem is also an output.
5548         * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.