OSDN Git Service

2003-07-28 Phil Edwards <pme@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
2
3         * README:  Update.
4
5 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
6
7         * testsuite/22_locale/messages/members/char/1.cc,
8         testsuite/22_locale/messages/members/char/2.cc,
9         testsuite/22_locale/messages/members/char/3.cc,
10         testsuite/22_locale/messages_byname/1.cc:  Update comment regarding
11         the origin of LOCALEDIR.
12         * testsuite/lib/libstdc++-v3.exp:  New file.
13
14 2003-07-25  Benjamin Kosnik  <bkoz@redhat.com>
15
16         * include/bits/char_traits.h: Update copyright, tweak.
17         * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
18         std types.
19
20 2003-07-24  Matt Austern  <austern@apple.com>
21
22         * /include/bits/char_traits.h (class char_traits): Put all the
23         real work into the new class template __gnu_cxx::char_traits.
24         Gave generic definitions for member functions.  Types are taken
25         from the new class template __gnu_cxx::_Char_types.
26         * testsuite/21_strings/char_traits/requirements/short/1.cc: New
27         file.  Test of std::char_traits<short>, which serves as a test of
28         the char_traits primary template.
29
30 2003-07-24  Benjamin Kosnik  <bkoz@redhat.com>
31
32         * testsuite/*: Change __gnu_cxx_test to __gnu_test.
33
34 2003-07-24  Nathan Myers  <ncm-nospam@cantrip.org>
35
36         * testsuite/23_containers/map_operators.cc: Conform to 
37         container requirement as value must be Assignable.
38
39 2003-07-23  Alexandre Oliva  <aoliva@redhat.com>
40
41         * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
42         tests not only generation of pch files, but also their use.
43         * aclocal.m4, configure: Rebuilt.
44
45 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
46
47         * config/cpu/hppa/atomicity.h: Change
48         _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
49         to match misc-inst.cc
50
51 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
52
53         * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
54         * include/c_std/std_cctype.h: Ditto.
55         * include/c_std/std_cerrno.h: Ditto.
56         * include/c_std/std_cfloat.h: Ditto.
57         * include/c_std/std_climits.h: Ditto.
58         * include/c_std/std_clocale.h: Ditto.
59         * include/c_std/std_cmath.h: Ditto.
60         * include/c_std/std_csetjmp.h: Ditto.
61         * include/c_std/std_csignal.h: Ditto.
62         * include/c_std/std_cstdarg.h: Ditto.
63         * include/c_std/std_cstddef.h: Ditto.
64         * include/c_std/std_cstdio.h: Ditto.
65         * include/c_std/std_cstdlib.h: Ditto.
66         * include/c_std/std_cstring.h: Ditto.
67         * include/c_std/std_ctime.h: Ditto.
68         * include/c_std/std_cwchar.h: Ditto.
69         * include/c_std/std_cwctype.h: Ditto.
70         * include/std/std_algorithm.h: Ditto.
71         * include/std/std_bitset.h: Ditto.
72         * include/std/std_complex.h: Ditto.
73         * include/std/std_deque.h: Ditto.
74         * include/std/std_fstream.h: Ditto.
75         * include/std/std_functional.h: Ditto.
76         * include/std/std_iomanip.h: Ditto.
77         * include/std/std_ios.h: Ditto.
78         * include/std/std_iosfwd.h: Ditto.
79         * include/std/std_iostream.h: Ditto.
80         * include/std/std_istream.h: Ditto.
81         * include/std/std_iterator.h: Ditto.
82         * include/std/std_limits.h: Ditto.
83         * include/std/std_list.h: Ditto.
84         * include/std/std_locale.h: Ditto.
85         * include/std/std_map.h: Ditto.
86         * include/std/std_memory.h: Ditto.
87         * include/std/std_numeric.h: Ditto.
88         * include/std/std_ostream.h: Ditto.
89         * include/std/std_queue.h: Ditto.
90         * include/std/std_set.h: Ditto.
91         * include/std/std_sstream.h: Ditto.
92         * include/std/std_stack.h: Ditto.
93         * include/std/std_stdexcept.h: Ditto.
94         * include/std/std_streambuf.h: Ditto.
95         * include/std/std_string.h: Ditto.
96         * include/std/std_utility.h: Ditto.
97         * include/std/std_valarray.h: Ditto.
98         * include/std/std_vector.h: Ditto.
99
100 2003-07-22  Doug Gregor  <dgregor@apple.com>
101
102         * include/bits/basic_string.h (basic_string::insert): Deprecate
103         GNU extension.
104
105 2003-07-21  Benjamin Kosnik  <bkoz@redhat.com>
106
107         * scripts/testsuite_flags.in (--build-includes): Remove extraneous
108         paths for libio.
109         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
110         (test03): Include typeinfo for bad_cast.
111         * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
112         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
113         * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
114
115 2003-07-21  Doug Gregor  <dgregor@apple.com>
116
117         * include/bits/boost_concept_check.h:
118         (_EqualityComparableConcept::__constraints): Remove != from the 
119         list of constraints; it is not listed in Table 28 of the C++98 
120         standard.
121
122 2003-07-18  Andreas Jaeger  <aj@suse.de>
123
124         * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
125         * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
126         * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
127         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
128
129 2003-07-17  Benjamin Kosnik  <bkoz@redhat.com>
130         
131         * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
132         * config/locale/generic/messages_members.h: Tweaks.
133         * config/locale/generic/monetary_members.cc
134         (moneypunct::_M_initialize_moneypunct): Use cache.
135         (moneypunct::~moneypunct): Delete cache.
136         * config/locale/generic/time_members.cc:
137         (__timepunct::_M_initialize_timepunct): Use cache.
138         * config/locale/generic/time_members.h:
139         (__timepunct::~__timepunct): Delete cache.
140         (__timepunct::__timepunct): Set cache.
141         * config/locale/gnu/messages_members.h: Tweaks.
142         * config/locale/gnu/monetary_members.cc:
143         (moneypunct::_M_initialize_moneypunct): Use cache.
144         (moneypunct::~moneypunct): Delete cache.
145         * config/locale/gnu/time_members.cc:
146         (__timepunct::_M_initialize_timepunct): Use cache.
147         * config/locale/gnu/time_members.h:
148         (__timepunct::~__timepunct): Delete cache.
149         (__timepunct::__timepunct): Set cache.
150         * include/bits/locale_facets.h (__timepunct_cache): New.
151         (__moneypunct_cache): New.
152         * include/bits/locale_facets.tcc: Tweak.
153         * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
154         * src/locale-inst.cc: Instantiate caches.
155         * src/globals.cc: Add "C" caches.
156         * src/localename.cc: Use external "C" caches.
157
158 2003-07-17  Phil Edwards  <pme@gcc.gnu.org>
159
160         * docs/doxygen/guide.html:  Fix typo.
161
162 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
163
164         * include/ext/pod_char_traits.h: Add state template argument.
165
166 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
167
168         * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
169         (num_get::_M_convert_int): To _M_insert_int.
170         (num_get::_M_convert_float): To _M_insert_float.        
171         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
172         Use caches for ctype, num_get.
173         (num_get::_M_extract_int): Same.
174         (num_get::get(bool)): Same.
175         (__verify_grouping): Use size_t.
176         * src/locale-inst.cc: Update.
177         * src/locale.cc: Adjust _S_atoms_in.
178
179 2003-07-16  Phil Edwards  <pme@gcc.gnu.org>
180
181         * docs/doxygen/mainpage.html:  Move building/writing instructions...
182         * docs/doxygen/guide.html:  ...to here.  New file.
183
184 2003-07-16  Jonathan Wakely  <redi@gcc.gnu.org>
185
186         * docs/html/ext/howto.html: Update URL for SGI STL docs.
187         * docs/html/faq/index.html: Same.
188         * docs/html/faq/index.txt: Regenerate.
189
190 2003-07-16  Paolo Carlini  <pcarlini@unitus.it>
191
192         PR libstdc++/11528
193         * include/bits/locale_facets.tcc (money_get::do_get):
194         Strip only _leading_ zeros.
195         * testsuite/22_locale/money_get/get/char/11528.cc: Add.
196         * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
197
198 2003-07-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
199
200         * include/ext/hash_map (class hash_multimap): Remove extra
201         semicolons from __glibcxx_class_requires3 entries.
202         * include/ext/hash_set (class hash_set): Ditto.
203         (class hash_multiset): Ditto.
204
205 2003-07-15  Petur Runolfsson  <peturr02@ru.is>
206
207         * include/bits/char_traits.h (char_traits<wchar_t>::move):
208         Change last parameter from int_type to size_t.
209
210 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
211
212         * include/bits/stl_algo.h (includes, set_union, set_intersection,
213         set_difference, set_symmetric_difference, max_element, min_element,
214         next_permutation, prev_permutation, find_first_of, find_end):
215         Document.
216         * include/bits/stl_algobase.h (copy,copy_backward):  Clarify overlap
217         restrictions in docs.
218         * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
219         Document.
220         * docs/doxygen/doxygroups.cc (setoperations):  New group.
221
222 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
223
224         * include/bits/basic_string.h:  Document public functions.
225         * docs/doxygen/TODO:  Update c21 todo.
226
227 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
228
229         * include/bits/stl_list.h:  Document more functions.
230         * docs/doxygen/TODO:  Update c23 todo.
231
232 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
233
234         * config/locale/gnu/c_locale.h (__convert_from_v): One more
235         qualification.
236
237 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
238
239         * include/bits/stl_tempbuf.h: Qualify free with std::.
240         * src/locale.cc: Include <cstdlib>, qualify getenv.
241
242 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
243
244         * config/locale/gnu/c_locale.h (__convert_from_v): Include
245         <cstdio>. Qualify names.
246         * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
247
248 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
249             Nathan C. Myers  <ncm-nospam@cantrip.org>
250
251         PR libstdc++/11378
252         * include/std/std_fstream.h (xsputn): Declare only.
253         * include/bits/fstream.tcc (xsputn): Define, optimize for the
254         always_noconv() case: when __n is sufficiently large flush 
255         the buffer and issue a direct write, if possible combining the
256         two with writev in __basic_file<>::xsputn_2.
257         * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
258         New, declare.
259         * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
260         Define.
261         * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
262         the availability of writev in <sys/uio.h>.
263         * configure.in: Call here.
264         * acconfig.h: Add undef for the corresponding symbol.
265         * aclocal.m4: Regenerate.
266         * configure: Regenerate.
267         * config.h.in: Regenerate.
268         * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
269
270         * include/std/std_fstream.h (sync): Constify a variable.
271
272 2003-07-14  Benjamin Kosnik  <bkoz@redhat.com>
273
274         * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
275         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
276         
277 2003-07-14  Gabriel Dos Reis  <gcc@integrable-solutions.net>
278
279         * config/locale/gnu/c_locale.h (__convert_from_v): Include
280         <cstring> and <cstdlib>. Qualify names.
281
282 2003-07-13  Mark Mitchell  <mark@codesourcery.com>
283
284         * config/locale/generic/c_locale.h: Include <cstdlib> and
285         <cstring>.
286         * include/bits/boost_concept_check.h: Add this-> to unqualified
287         method calls.
288         * include/bits/deque.tcc: Likewise.
289         * include/bits/locale_facets.h : Likewise.
290         * include/bits/ostream.tcc: Likewise.
291         * include/bits/stl_algo.h: Likewise.
292         * include/bits/stl_bvector.h: Likewise.
293         * include/bits/stl_deque.h: Likewise.
294         * include/bits/stl_list.h: Likewise.
295         * include/bits/stl_tree.h: Likewise.
296         * include/bits/stl_vector.h: Likewise.
297         * include/bits/vector.tcc: Likewise.
298         * include/ext/rope: Likewise.
299         * include/ext/ropeimpl.h: Likewise.
300         * include/ext/stdio_filebuf.h: Likewise.
301
302 2003-07-11  Jerry Quinn  <jlquinn@optonline.net>
303
304         * include/bits/basic_ios.h (copyfmt): Document.
305         * include/bits/ios_base.h (event, event_callback, register_callback,
306         xalloc, iword, pword):  Document.
307         (imbue, ~ios_base): Update docs on callbacks.
308
309 2003-07-11  Phil Edwards  <pme@gcc.gnu.org>
310
311         * acinclude.m4 (GLIBCC_ENABLE_SYMVERS):  Tweak comments.  Add
312         warning messages if the environment cannot support symbol versioning.
313         (port_specific_symbol_file):  It's plural, add an 's' on the end.
314         * configure.host:  Likewise.
315         * src/Makefile.am:  Likewise.
316         * config/linker-map.gnu:  Remove one semicolon, heh.
317         * scripts/extract_symvers:  Don't assume useful 'export' syntax.
318         Set LANG as well as LC_ALL for possibly-broken sort(1)s.
319         * aclocal.m4, configure, src/Makefile.in:  Regenerated.
320
321 2003-07-09  Benjamin Kosnik  <bkoz@redhat.com>
322
323         * include/bits/locale_facets.tcc: Use function object for
324         __use_cache instead of template function. Partially specialize for 
325         __numpunct<_CharT>.
326         * include/bits/locale_classes.h: Update friend declaration for
327         __use_cache.
328         (_M_install_cache): No throw exception specs.
329         * src/locale.cc: Remove __use_cache specializations.
330         * include/ext/pod_char_traits.h (length): Tweak.
331         * include/bits/locale_facets.h (__numpunct_cache): Remove
332         char_type typedef.
333         * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
334         (pod_long): Remove.
335         * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
336         * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
337         * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
338         * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
339         * testsuite/22_locale/numpunct/members/pod/1.cc: New.
340         * testsuite/22_locale/numpunct/members/pod/2.cc: New.
341         
342 2003-07-09  Jerry Quinn  <jlquinn@optonline.net>
343
344         * src/ios.cc (_M_grow_words):  Fix spelling.
345
346 2003-07-09  Gawain Bolton  <gp.bolton@computer.org>
347
348         * include/bits/stl_tree.h: Move larger member functions in
349         _Rb_tree_base_iterator and _Rb_tree_node to...
350         * src/stl_tree.cc: Here.
351         * src/Makefile.in: Add stl_tree.cc.
352         * src/Makefile.in: Regenerated.
353         * config/linker-map.gnu: Add symbols here.
354
355 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
356
357         * testsuite/ext/pod_char_traits.cc: New.
358         * include/ext/pod_char_traits.h: New.
359         * include/Makefile.am (ext_headers): Add pod_char_traits.h.
360         * include/Makefile.in: Regenerate.
361         * docs/html/21_strings/howto.html: Update.
362                 
363 2003-07-08  Gawain Bolton  <gp.bolton@computer.org>
364
365         * testsuite/performance/list_create_fill_sort.cc: New.
366
367 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
368
369         * config/locale/generic/numeric_members.cc: Correct type info.
370         * config/locale/gnu/numeric_members.cc: Same.
371         * include/bits/locale_facets.h: Same.
372         
373         * include/bits/char_traits.h: Correct spacing.
374
375         * src/locale.cc: Wrap to 80 col.
376         
377 2003-07-07  Paolo Carlini  <pcarlini@unitus.it>
378
379         * include/std/std_complex.h: Partially revert last
380         changes: cmath functions must not be qualified.
381
382 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
383
384         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Do not test for binutils
385         2.11 with globbing backport fix.
386         * aclocal.m4, configure:  Regenerated.
387
388 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
389
390         * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
391         if output is at all possible (!_M_reading), cannot be active.
392
393         * include/std/std_fstream.h: Tweak comments to doxygen style.
394
395 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
396
397         * include/bits/locale_classes.h: Fully qualify standard
398         functions with std::, thus avoiding Koenig lookup.
399         * include/bits/locale_facets.tcc: Likewise.
400         * src/locale.cc: Likewise.
401         * src/localename.cc: Likewise.
402
403 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
404
405         * include/bits/allocator_traits.h:  Fix doxygen markup.
406         * include/ext/mt_allocator.h:  Likewise.
407
408 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
409
410         * testsuite/testsuite_hooks.h:  Guard against a missing unlink().
411
412 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
413
414         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Bump minimal version
415         requirement.  Add port_specific_symbol_file variable.
416         * configure.host:  Add docs for port_specific_symbol_file.
417         Clean up try_cpu block for x86.
418         * config/linker-map.gnu:  No more "last symbol can't have a
419         semicolon" kaka.  Add hook for port-specific symbols.
420         * src/Makefile.am:  Remove trailing whitespace.
421         (libstdc++-symbol.ver):  Detect the presence of port-specific
422         symbols, and add them accordingly.
423
424         * docs/html/17_intro/porting.texi:  Bring up to date.
425
426         * src/Makefile.in, aclocal.m4, configure,
427         docs/html/17_intro/porting.html:  Regenerated.
428
429 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
430
431         * scripts/create_testsuite_files:  New file.
432         * testsuite/Makefile.am (all-local, check-performance):  Use it.
433         * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests):  Remove.
434         * testsuite/Makefile.in:  Regenerated.
435
436         * testsuite/performance/filebuf_sputc.cc:  Remove the temporary
437         files at the end.
438         * testsuite/performance/fstream_seek_write.cc:  Likewise.
439         * testsuite/performance/ofstream_insert_float.cc:  Likewise.
440         * testsuite/performance/ofstream_insert_int.cc:  Likewise.
441         * testsuite/abi_check.cc (main):  Nicer spacing in usage output.
442
443 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
444
445         * include/bits/stl_list.h: Performance and memory usage
446         improvements. In particular, the behaviour of the constructor and
447         destructor as the list header node is no longer dynamically
448         allocated/de-allocated.
449         * include/bits/list.tcc: Likewise.
450
451 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
452
453         * include/std/std_complex.h: Fully qualify standard
454         functions with std::, thus avoiding Koenig lookup.
455         * include/std/std_memory.h: Likewise.
456         * include/std/std_valarray.h: Likewise.
457
458 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
459
460         * include/bits/stl_tree.h: _Rb_tree_rebalance():  Add local
461           variable for grandparent and use const
462
463 2003-07-05  David Billinghurst <David.Billinghurst@riotinto.com>
464
465         * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
466         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
467         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
468         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
469         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
470         * testsuite/27_io/objects/char/7.cc: Ditto
471         * testsuite/27_io/objects/char/9661-1.cc: Ditto
472
473 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
474
475         * include/std/std_bitset.h: Fully qualify standard
476         functions with std::, thus avoiding Koenig lookup.
477
478         * include/std/std_fstream.h: Change comment to doxygen style.
479
480 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
481
482         * include/std/std_limits.h:  More CPP->CXX changes.
483         * scripts/check_survey.in:  Likewise.
484
485 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
486
487         Move from CPP to CXX.
488         * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
489         * testsuite/Makefile.am: Same.
490         * testsuite/Makefile.in: Regenerate.
491         * po/Makefile.am: Same.
492         * po/Makefile.in: Regenerate.   
493         * libsupc++/Makefile.am: Same.
494         * libsupc++/Makefile.in: Regenerate.    
495         * libmath/Makefile.am: Same.
496         * libmath/Makefile.in: Regenerate.      
497         * include/Makefile.am: Same.
498         * include/Makefile.in: Regenerate.      
499         * src/Makefile.am: Same.
500         * src/Makefile.in: Regenerate.  
501         * acconfig.h: Same.
502         * configure.host: Same.
503         * configure.in: Same.
504         * configure: Regenerate.
505         * acinclude.m4: Same.
506         * aclocal.m4: Same.
507         * src: Change all files in this directory.
508         * testsuite: Same.
509         * include: Same, standardize include guards.
510         * config: Same.
511         * libsupc++: Same.
512         
513 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
514
515         * testsuite/22_locale/collate/compare/wchar_t/2.cc
516         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
517         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
518         * testsuite/22_locale/collate/hash/wchar_t/2.cc
519         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
520         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
521         * testsuite/22_locale/collate/transform/wchar_t/2.cc
522         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
523         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
524         XFAIL on all targets.
525
526 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
527
528         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
529         * aclocal.m4: Regenerate.
530         * configure: Regenerate.
531
532 2003-07-04  Jerry Quinn  <jlquinn@optonline.net>
533
534         * include/bits/locale_facets.tcc (__int_to_char): Move common case
535         to the top.
536
537 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
538             Petur Runolfsson  <peturr02@ru.is>
539
540         * config/io/basic_file_stdio.cc: Revert.
541
542 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
543
544         * include/bits/deque.tcc: Fully qualify standard
545         functions with std::, thus avoiding Koenig lookup.
546         * include/bits/gslice_array.h: Likewise.
547         * include/bits/indirect_array.h: Likewise.
548         * include/bits/list.tcc: Likewise.
549         * include/bits/mask_array.h: Likewise.
550         * include/bits/slice_array.h: Likewise.
551
552 2003-07-04  Gawain Bolton  <gbolton@free.fr>
553
554         * include/bits/stl_tree.h: Performance and memory usage
555         improvements.
556
557 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
558
559         * Makefile.am: Replace PWD with PWD_COMMAND.
560         * Makefile.in: Regenerated.
561         * docs/html/Makefile: Likewise.
562
563 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
564
565         * include/bits/valarray_array.h: Fully qualify standard
566         functions with std::, thus avoiding Koenig lookup.
567         * include/bits/vector.tcc: Likewise.
568
569 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
570
571         * include/Makefile.am: Update target_ to host_.
572         * include/Makefile.in: Regenerate.
573         * src/Makefile.am: Same.
574         * src/Makefile.in: Regenerate.
575
576         * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
577
578 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
579
580         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
581         --enable-libstdcxx-debug-flags.
582         (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
583         (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
584         * aclocal.m4: Regenerate.
585         * configure: Same.
586         * docs/html/configopts.html: Update.
587
588 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
589
590         Revert the fix for libstdc++/11378.
591
592 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
593
594         PR libstdc++/11378
595         * include/std/std_fstream.h (xsputn): In the unbuffered case,
596         provided always_noconv(), issue directly _M_file.xsputn.
597         * testsuite/performance/filebuf_unbuf_sputn.cc: New.
598
599 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
600
601         * include/bits/stl_list.h: Fully qualify standard
602         functions with std::, thus avoiding Koenig lookup.
603         * include/bits/stl_queue.h: Likewise.
604         * include/bits/stl_raw_storage_iter.h: Likewise.
605         * include/bits/stl_tempbuf.h: Likewise.
606         * include/bits/stl_tree.h: Likewise.
607         * include/bits/stl_uninitialized.h: Likewise.
608         * include/bits/stl_vector.h: Likewise.
609         * include/ext/rope: Change includes order.
610
611 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
612
613         * configure.host (fpos_include_dir): Fix.
614
615 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
616
617         * include/bits/stl_heap.h: Fully qualify standard
618         functions with std::, thus avoiding Koenig lookup.
619         * include/bits/stl_iterator_base_funcs.h: Likewise.
620
621         * include/bits/stl_algo.h: Qualify __iterator_category too.
622         * include/bits/stl_algobase.h: Likewise.
623         * include/bits/stl_bvector.h: Likewise.
624
625         * include/bits/stl_algo.h: Don't qualify the pair type.
626
627 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
628
629         * include/Makefile.am (target_headers): Add fpos.h
630         (bits_headers): Remove.
631         * include/Makefile.in: Regenerate.
632         * configure.in: Add FPOS_INC_SRCDIR, substitute it.
633         * configure: Regenerate.
634         * configure.host: Add fpos_include_dir.
635         * config/os/gnu-linux/fpos.h: New.
636         * config/os/generic/fpos.h: Add.
637         * include/bits/fpos.h: Remove.
638
639         * config/io/c_io_stdio.h: Remove fpos_t typedef.
640
641         * include/bits/fstream.tcc: Tweaks.
642         * include/std/std_fstream.h: Same.
643
644         * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
645         * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
646         * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
647         * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
648         * testsuite/27_io/fpos/1.cc: New.
649
650 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
651             Petur Runolfsson  <peturr02@ru.is>
652
653         * include/std/std_streambuf.h: Remove _M_pos.
654         * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
655         * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
656         use fread/fwrite instead of read/write.
657         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
658         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
659         before reading again.
660         * testsuite/27_io/objects/char/6.cc: Tweak.
661
662 2003-07-03  David Edelsohn  <edelsohn@gnu.org>
663
664         * testsuite/22_locale/num_put/put/char/7.cc: Guard with
665         _GLIBCPP_USE_WCHAR_T.
666
667 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
668
669         * include/bits/basic_string.tcc (_M_replace_aux): Constify
670         __n1 and __off1.
671
672 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
673
674         * include/bits/stl_bvector.h: Fully qualify standard
675         functions with std::, thus avoiding Koenig lookup.
676         * include/bits/stl_construct.h: Likewise.
677         * include/bits/stl_deque.h: Likewise.
678
679 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
680
681         * testsuite/22_locale/num_put/put/char/7.cc: Include
682         <testsuite_hooks.h>, tweak.
683         * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
684
685 2003-07-01  Phil Edwards  <pme@gcc.gnu.org>
686
687         * testsuite/Makefile.am (AM_MAKEFLAGS):  Set to -j1 (affects
688         check* targets, but not libs/programs).
689         * testsuite/Makefile.in:  Regenerate.
690
691 2003-07-01  Roger Sayle  <roger@eyesopen.com>
692
693         * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
694         (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
695         * aclocal.m4: Regenerate.
696         * configure: Regenerate.
697
698 2003-07-01  Benjamin Kosnik  <bkoz@redhat.com>
699
700         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
701         * aclocal.m4: Regenerated.
702         * configure: Regenerated.
703
704 2003-07-01  Paolo Carlini  <pcarlini@unitus.it>
705
706         PR libstdc++/11389
707         * include/bits/fstream.tcc (underflow): For encoding() == 0
708         don't read more than __buflen chars.
709         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
710         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
711         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
712         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
713
714 2003-07-01  Jerry Quinn  <jlquinn@optonline.net>
715
716         * 22_locale/num_put/put/char/7.cc: New.
717         * 22_locale/num_put/put/wchar_t/7.cc: New.
718
719 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
720
721         * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
722         * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
723
724 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
725
726         * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
727         * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
728         * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
729         * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
730         * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
731         * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
732         * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
733         * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
734         * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
735         * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
736         * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
737         * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
738         * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
739         * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
740         * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
741         * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
742         * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
743         * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
744         * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
745         * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
746         * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
747         * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
748         * data/seekoff-1.tst: Remove.
749         * data/seekoff-1io.tst: New.
750         * data/seekoff-1out.tst: New.
751         * data/seekoff-2.tst: Remove.
752         * data/seekoff-2io.tst: New.
753         * data/seekoff-2out.tst: New.
754         * data/seekoff.txt
755         * data/seekpos-1.tst: Remove.
756         * data/seekpos-1io.tst: New.
757         * data/seekpos-1out.tst: New.
758         * data/seekpos-2.tst: Remove.
759         * data/seekpos-2io.tst: New.
760         * data/seekpos-2out.tst: New.
761         * data/seekpos.txt: New.
762
763 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
764
765         * src/locale.cc (__use_cache<numpunct>): Move from here ...
766         * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
767         here.
768
769 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
770
771         * include/bits/stl_algobase.h: Fully qualify standard
772         functions with std::, thus avoiding Koenig lookup.
773
774 2003-06-30  Doug Gregor <dgregor@apple.com>
775
776         * include/bits/locale_facets.tcc (money_get::do_get): Avoid
777         subscripting empty string.
778
779 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
780
781         * testsuite/Makefile.am (check-am):  Do not override.
782         (baseline_symbols):  Declare as PHONY, so no need to 'touch' it.
783         * testsuite/Makefile.in:  Regenerate.
784
785 2003-06-30  Doug Gregor <dgregor@apple.com>
786
787         * testsuite/24_iterators/insert_iterator.cc (test01, test02):
788         Don't initialize an insert_iterator with a singular iterator.
789
790 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
791
792         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
793         * aclocal.m4: Regenerate.
794         * configure.in (GLIBCPP_CHECK_PCH): Move, change to
795         GLIBCPP_ENABLE_PCH, default to yes.
796         * configure: Regenerate.
797         * docs/html/configopts.html: Add --enable-pch.
798
799 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
800
801         * testsuite/lib/libstdc++-v3-dg.exp:  Add comments.
802         (libstdc++-v3-init):  Also set LD_RUN_PATH.
803
804 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
805
806         * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
807         from here to filebuf and stringbuf.
808         (~basic_streambuf()): Don't set _M_mode.
809         (basic_streambuf()): Don't set _M_mode.
810         * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
811         (~basic_filebuf()): Clean up.
812         * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
813         * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
814         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
815         * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
816         * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
817         * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
818         * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
819
820 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
821
822         * include/std/std_fstream.h (_M_underflow): Remove.
823         (uflow): Remove, inherited from streambuf.
824         (underflow): Only declare.
825         * include/bits/fstream.tcc (_M_underflow): Rename to
826         underflow, to which is equivalent for __bump == false,
827         simplify.
828         * include/std/std_sstream.h (_M_underflow): Remove.
829         (uflow): Remove, inherited from streambuf.
830         (underflow): Only declare.
831         * include/bits/sstream.tcc (_M_underflow): Rename to
832         underflow, to which is equivalent for __bump == false,
833         simplify.
834
835 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
836
837         * include/bits/stl_algo.h: Fully qualify standard functions
838         with std::, thus avoiding Koenig lookup.
839
840 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
841
842         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
843         Improve type correctness-wise.
844         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
845         Likewise.
846         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
847         Likewise.
848         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
849         Likewise.
850
851 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
852
853         * include/std/std_streambuf.h (uflow): According to
854         27.5.2.4.3,p16, don't check gptr() < egptr().
855
856 2003-06-28  Paolo Carlini  <pcarlini@unitus.it>
857
858         PR libstdc++/9875
859         * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
860         (seekpos): Likewise.
861         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
862         New test.
863         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
864         New test.
865
866 2003-06-27  Benjamin Kosnik  <bkoz@redhat.com>
867
868         * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
869         output name to libstdc++-v3-performance.sum.
870         * testsuite/Makefile.am (CLEANFILES): Remove .performance.
871         * testsuite/Makefile.in: Regenerate.
872
873 2003-06-27  Matthias Klose  <doko@debian.org>
874
875         * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
876         output of abi-check in libstdc++-v3-abi.sum.
877         * testsuite/Makefile.in: Regenerate.
878
879 2003-06-27  Krister Walfridsson  <cato@df.lth.se>
880
881         * config/os/bsd/netbsd/ctype_noninline.h
882         (_C_ctype_): Declare.
883         (ctype<char>::classic_table): Return _C_ctype_ + 1.
884         (ctype<char>::ctype): Use classic_table.
885
886 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
887             Nathan C. Myers  <ncm-nospam@cantrip.org>
888
889         PR libstdc++/9178
890         * include/bits/fstream.tcc (_M_underflow): Properly estimate
891         the worst-case number of external bytes for a given get area.
892         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
893
894 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
895             Petur Runolfsson  <peturr02@ru.is>
896
897         PR libstdc++/11305
898         * include/bits/fstream.tcc (overflow): Properly estimate the
899         worst-case number of external bytes for a given put area
900         (by using codecvt::max_length()).
901         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
902         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
903         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
904         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
905
906 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
907
908         * config/linker-map.gnu: Remove ; after __numpunct_cache.
909
910 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
911
912         * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
913         to the imbued locale.
914         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
915         _M_getloc.
916         (num_put::_M_convert_float): Use.
917
918 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
919             Jerry Quinn  <jlquinn@optonline.net>
920
921         * config/linker-map.gnu: Add __numpunct_cache.
922         * config/locale/gnu/numeric_members.cc
923         (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
924         all elements for "C" locale.
925         (numpunct::~numpunct): Delete _M_data.
926         * config/locale/generic/numeric_members.cc: Same.
927         * include/bits/basic_ios.tcc
928         (basic_ios::init): Remove __locale_cache bits.
929         (basic_ios::_M_cache_locale): Same.
930         * include/bits/ios_base.h: Same. Tweaks.
931         * include/bits/locale_classes.h: Tweaks. Reorder classes.
932         (__use_cache): Make friends with _Impl, locale.
933         (_Impl::_M_caches): Add.
934         (_Impl::_M_install_cache): Add.
935         * include/bits/locale_facets.h (__numpunct_cache): New.
936         (numpunct): Encapsulate data members in __numpunct_cache member,
937         _M_data. Adjust virtuals.
938         (numpunct::numpunct): New ctor for the same.
939         (__locale_cache_base): Remove.
940         (__locale_cache): Remove.
941         * include/bits/locale_facets.tcc (__use_cache): New function,
942         specializations.
943         (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
944         * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
945         * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
946         * src/locale-inst.cc: Same. Add __numpunct_cache.
947         * src/locale.cc: Tweak inlines.
948         (__use_cache): Define specializations.
949         * src/localename.cc: Use global bits.
950         (_Impl::~Impl): Deal with __numpunct_cache destruction.
951         (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
952         (_Impl::_M_init_facet): Take into account __numpunct_cache.
953         * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
954         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
955
956 2003-06-26  Nathan C. Myers  <ncm-nospam@cantrip.org>
957             Paolo Carlini  <pcarlini@unitus.it>
958
959         * testsuite/performance/filebuf_copy.cc: New, testing char
960         by char file copy.
961
962 2003-06-26  Paolo Carlini  <pcarlini@unitus.it>
963             Nathan C. Myers  <ncm-nospam@cantrip.org>
964
965         * include/bits/fstream.tcc (_M_underflow): When the actual
966         end of file is reached, set 'uncommitted' mode to allow a
967         next write without an intervening seek (see C++98 27.8.1.1,2
968         and C89 7.9.5.3).
969         * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
970
971 2003-06-25  Nathan C. Myers  <ncm-nospam@cantrip.org>
972
973         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
974         sputc): Move inline, from here...
975         * include/std/std_streambuf.h: ... to here.
976
977         * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
978         sputbackc, sungetc, sputc): Use __builtin_expect.
979
980 2003-06-24  Phil Edwards  <pme@gcc.gnu.org>
981
982         * docs/doxygen/mainpage.html:  Use a useful title.
983
984 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
985
986         * docs/html/documentation.html: Remove assignment info.
987         * docs/html/17_intro/contribute.html: Edits.
988         * docs/html/17_intro/libstdc++-assign.tx: Remove.
989
990         * docs/html/test.html: Update.
991
992         * README: Update.
993
994 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
995             Ulrich Drepper  <drepper@redhat.com>
996
997         * testsuite/testsuite_performance.h: Tweak mallinfo.
998
999 2003-06-24  Paolo Carlini  <pcarlini@unitus.it>
1000             Nathan C. Myers  <ncm-nospam@cantrip.org>
1001
1002         * include/std/std_fstream.h (_M_filepos): Remove.
1003         (_M_reading, _M_writing): New, encode the various I/O modes:
1004         'read', 'write' and 'uncommitted'.
1005         (sync): If there is something to flush, do it, then go to
1006         'uncommitted' mode.
1007         * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
1008         with three different cases: __off > 0 (upon underflow),
1009         __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
1010         seekoff/pos).
1011         (_M_underflow): Don't call overflow, set _M_reading to true
1012         on success, tweak.
1013         (pbackfail): Set _M_reading to true on pback creation, tweak.
1014         (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
1015         set _M_writing to true on success, tweak.
1016         (seekoff): Simplify, set _M_reading, _M_writing to false, call
1017         _M_set_buffer(-1) ('uncommitted').
1018         (open, close, setbuf): Set _M_reading, _M_writing to false and
1019         call _M_set_buffer(-1), tweak.
1020         (basic_filebuf): Don't set _M_buf_unified.
1021         (_M_destroy_internal_buffer): Don't call setg and setp.
1022         * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
1023         _M_writing and _M_set_buffer(-1).
1024         * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
1025         _M_out_lim, _M_buf_unified): Remove.
1026         (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
1027         (setp): Don't set _M_out_lim.
1028         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
1029         the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
1030         upon open the mode is 'uncommitted' and therefore the put area
1031         pointers are null.
1032         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
1033         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
1034         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
1035         * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
1036         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
1037         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
1038         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1039         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
1040         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
1041         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
1042         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
1043         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
1044         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
1045         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
1046         * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
1047         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
1048         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
1049         * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
1050         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
1051         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
1052
1053         * include/bits/fstream.tcc (showmanyc): Use only the
1054         documented derivation interface to basic_streambuf (gptr(),
1055         setg(), etc.) to work right with user specializations.
1056         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1057         sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
1058         * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
1059         Likewise.
1060         * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
1061         xsgetn): Likewise.
1062
1063 2003-06-23  Loren J. Rittle  <ljrittle@acm.org>
1064
1065         * configure.host (freebsd*): Set abi_baseline_pair.
1066         * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
1067         (at or near first release) to 3.3.
1068         * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
1069         * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
1070         * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
1071
1072         * include/ext/mt_allocator.h: Portability.
1073         * testsuite/testsuite_performance.h: Likewise.
1074
1075 2003-06-23  Benjamin Kosnik  <bkoz@redhat.com>
1076
1077         * docs/html/17_intro/libstdc++-assign.txt: Update address.
1078
1079         * testsuite/performance/ifstream_getline.cc: Fix.
1080
1081 2003-06-23  Doug Gregor <dgregor@apple.com>
1082
1083         * include/bits/boost_concept_check.h: Don't use _D or _R for type
1084         names.
1085
1086 2003-06-22  Paolo Carlini  <pcarlini@unitus.it>
1087             Nathan C. Myers  <ncm-nospam@cantrip.org>
1088
1089         * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
1090         is now used only for filebuf, when _M_buf_unified is true.
1091         epgtr() plays the role of _M_out_lim but it's only updated
1092         upon overflow, underflow, uflow, seekoff/pos.
1093         * include/bits/sstream.tcc (_M_underflow): New, implements
1094         stringbuf::underflow and uflow.
1095         (seekoff, seekpos): Tweak, use  _M_update_egptr.
1096         * include/std/std_sstream.h (str): Rewrote, deal correctly
1097         with the new logic, in particular, when pptr() > egptr().
1098         (_M_sync): When __testout && !__testin set all the get area
1099         pointers to the current string end.
1100         (_M_update_egptr): New, internal function updating egptr()
1101         to the actual string end.
1102         (_M_underflow): New, declare.
1103         (underflow): Dispatch to _M_underflow(false).
1104         (uflow): Dispatch to _M_underflow(true).
1105
1106         * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
1107         seekpos): Use only the documented derivation interface to
1108         basic_streambuf (gptr(), setg(), etc.) to work right with
1109         user specializations.
1110         * include/std/std_sstream.h (str, _M_sync): Likewise.
1111
1112 2003-06-20  Doug Gregor <dgregor@apple.com>
1113
1114         * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
1115         * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
1116         dereference end iterator.
1117         * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
1118         * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
1119         index equal to the length of a string.
1120         * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
1121         * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
1122         * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
1123         * testsuite/22_locale/ctype/widen/char/1.cc: Same.
1124         * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
1125         * testsuite/23_containers/list_modifiers.cc: Don't dereference
1126         singular reverse iterator.
1127         * testsuite/23_containers/vector_bool.cc: Don't increment singular
1128         iterator.
1129         * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
1130
1131 2003-06-20  Doug Gregor <dgregor@apple.com>
1132
1133         * include/bits/basic_string.h (basic_string::replace): Dispatch
1134         _InputIterator version based on _Is_integer.
1135         * include/bits/basic_string.tcc (basic_string::replace):
1136         Renamed replace(iterator, iterator, size_type, _CharT) to
1137         _M_replace_aux.
1138         * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
1139         Test basic_string::assign(_InputIterator, _InputIterator),
1140         which calls basic_string::replace(iterator, iterator,
1141         _Input_iterator, _InputIterator).
1142
1143 2003-06-20  Benjamin Kosnik  <bkoz@redhat.com>
1144
1145         * testsuite/testsuite_performance.h (resource_counter): Don't use
1146         mallinfo at the moment.
1147
1148 2003-06-20  Matthias Klose  <doko@debian.org>
1149
1150         * configure.host: Set try_cpu to target_cpu for existing
1151         baseline files.
1152
1153 2003-06-19  Andreas Jaeger  <aj@suse.de>
1154
1155         * testsuite/Makefile.am (extract_symvers): Revert accidental
1156         change.
1157         * testsuite/Makefile.in: Regenerate.
1158
1159         * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
1160         * configure: Regenerated.
1161
1162 2003-06-19  Paolo Carlini  <pcarlini@unitus.it>
1163
1164         * include/std/std_sstream.h (_M_sync): Make non virtual.
1165
1166 2003-06-18  Benjamin Kosnik  <bkoz@redhat.com>
1167
1168         * testsuite/testsuite_performance.h (time_counter): New.
1169         (resource_counter): New.
1170         (report_performance): New.
1171         (start_counters): New.
1172         (stop_counters): New.
1173         (clear_counters): New.
1174         * testsuite/performance/allocator.cc: Instrument.
1175         * testsuite/performance/cout_insert_int.cc: Same.
1176         * testsuite/performance/complex_norm.cc: Same.
1177         * testsuite/performance/filebuf_sputc.cc: New.
1178         * testsuite/performance/fstream_seek_write.cc: Same.
1179         * testsuite/performance/ifstream_getline.cc: Same.
1180         * testsuite/performance/map_create_fill.cc: Same.
1181         * testsuite/performance/ofstream_insert_float.cc: Same.
1182         * testsuite/performance/ofstream_insert_int.cc: Same.
1183         * testsuite/performance/string_append.cc: Convert.
1184         * scripts/check_performance: New.
1185         * testsuite/Makefile.am (check-performance): New.
1186         (CLEANFILES): Add.
1187
1188 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
1189             Benjamin Kosnik  <bkoz@redhat.com>
1190
1191         * include/std/std_sstream.h (setbuf): Check __n >= 0.
1192         * include/bits/fstream.tcc (setbuf): Tweak.
1193
1194 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
1195
1196         * include/bits/sstream.tcc (seekoff): We can't seek beyond
1197         _M_out_lim, therefore _M_move_out_cur boils down to simply
1198         updating _M_out_cur.
1199         (seekpos): Likewise, clean up.
1200
1201 2003-06-18  Nathan C. Myers  <ncm-nospam@cantrip.org>
1202             Paolo Carlini  <pcarlini@unitus.it>
1203
1204         * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
1205         simply equivalent to the unbuffered case (0, 0) as far as
1206         _M_buf_size is concerned.
1207
1208 2003-06-18  Andreas Jaeger  <aj@suse.de>
1209
1210         * testsuite/Makefile.am (new-abi-baseline): Create baseline
1211         directory.
1212         (baseline_file): Use baseline_dir.
1213         (baseline_dir): New.
1214         (mkinstalldirs): New.
1215
1216         * acinclude.m4: Rename baseline_file to baseline_dir, strip
1217         filename from baseline_dir.
1218
1219         * testsuite/Makefile.in: Regenerated.
1220         * Makefile.in: Regenerated.
1221         * aclocal.m4: Regenerated.
1222         * configure: Regenerated.
1223
1224 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
1225
1226         * configure.in: Missed check_survey bit.
1227         * configure: Regenerated.
1228
1229 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
1230
1231         * scripts: New.
1232         * config/abi/extract_symvers: Move to...
1233         * scripts/extract_symvers: ...here.
1234         * mkcheck.in: Move to..
1235         * scripts/check_survey.in: ...here.
1236         * testsuite_flags.in: Move to..
1237         * scripts/testsuite_flags.in: ...here.
1238         * configure.in: Change check and testsuite_flags locations.
1239         * configure: Regenerate.
1240         * testsuite/Makefile.am (current_symbols.txt): Change location.
1241         * testsuite/Makefile.in: Regenerate.
1242         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
1243         location of testsuite_flags.
1244         * Makefile.am (check-script): Move..
1245         (check-script-install): Move...
1246         * testsuite/Makefile.am: ... here.
1247         * testsuite/Makefile.in: Regenerate.
1248         * Makefile.in: Regenerate.
1249
1250 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
1251
1252         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
1253
1254 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
1255
1256         * Makefile.am (check-abi): Move...
1257         (new-abi-baseline): Move...
1258         * testsuite/Makefile.am: ...here.
1259         (new-abi-baseline): Conditionalize.
1260         (check-abi): Conditionalize.
1261         (check-abi-verbose): New.
1262         * Makefile.in: Regenerate.
1263         * testsuite/Makefile.in: Regenerate.
1264         * configure.in: Consolidate testsuite configure bits.
1265         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
1266         * configure: Regenerate.
1267         * aclocal.m4: Regenerate.
1268         * testsuite/abi_check.cc: Add --check-verbose.
1269         Only output detailed information if --check-verbose.
1270
1271 2003-06-16  Andreas Jaeger  <aj@suse.de>
1272
1273         * testsuite/abi_check.cc: Create summary report.
1274
1275 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
1276
1277         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
1278         for systems with BUFSIZ != 8192.
1279         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1280         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
1281         Minor tweaks.
1282
1283 2003-06-16  Andreas Jaeger  <aj@suse.de>
1284
1285         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
1286         check-abi multilib aware.
1287         * aclocal.m4: Regenerate.
1288         * configure: Regenerate.
1289
1290 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
1291             Andreas Jaeger  <aj@suse.de>
1292
1293         * configure.host: Set x86_64 abi_baseline pair correctly.
1294
1295 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
1296
1297         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
1298         fix for missing seeks between gets and puts into...
1299         * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
1300         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
1301         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
1302         * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
1303         * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
1304         * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
1305
1306 2003-06-15  Richard Henderson  <rth@redhat.com>
1307
1308         * config/linker-map.gnu: Export virtual function thunks for
1309         64-bit systems too.
1310
1311 2003-06-13  Benjamin Kosnik  <bkoz@redhat.com>
1312
1313         * config/abi/i686-pc-linux-gnu: To..
1314         * config/abi/i486-linux-gnu: ...this.
1315         * config/abi/alphaev67-unknown-linux-gnu: To..
1316         * config/abi/alpha-linux-gnu: ...this.
1317         * config/abi/ia64-unknown-linux-gnu: To...
1318         * config/abi/ia64-linux-gnu: ...this.
1319         * config/abi/x86_64-unknown-linux-gnu: To...
1320         * config/abi/x86_64-linux-gnu: ...this.
1321         * config/abi/i386-unknown-freebsd4: To...
1322         * config/abi/i386-freebsd4: ...this.
1323         * config/linker-map.gnu: Cleanups, move libsupc++ bits into
1324         CXXABI.
1325         * configure.host: abi_baseline_triplet to abi_baseline_pair.
1326         Simplify cpu bits so that abi_baseline_pair can use the same
1327         cpu configuration.
1328         * acinclude.m4: Same.
1329         * aclocal.m4: Regenerate.
1330         * configure.in: Can't get enable_abi_check to yes unless native.
1331         * configure: Regenerate.
1332
1333 2003-06-13  Paolo Carlini  <pcarlini@unitus.it>
1334
1335         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
1336         fix for missing seeks between gets and puts into...
1337         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
1338         * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
1339         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
1340         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
1341         * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
1342         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
1343         for missing seeks between gets and puts.
1344         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
1345         * testsuite/data/seekoff-1.tst: New.
1346         * testsuite/data/seekoff-2.tst: New.
1347         * testsuite/data/seekpos-1.tst: New.
1348         * testsuite/data/seekpos-2.tst: New.
1349
1350 2003-06-13  Nathan C. Myers <ncm-nospam@cantrip.org>
1351
1352         Avoid multi-processor bus contention on increment/decrement-and-
1353         test of the reference count in the empty-string object, by comparing
1354         addresses first, and never touching the reference count of the empty-
1355         string object.
1356         * include/bits/basic_string.h:
1357         (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
1358         members.
1359         (_Rep::_S_empty_rep()): New accessor.
1360         (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
1361         a base class _Rep_base.
1362         (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
1363         (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
1364         since no longer must increment its refcount.
1365         * include/bits/basic_string.tcc:
1366         (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
1367         return immediately.  The former might be unnecessary.  The latter
1368         prevents begin() and end() from cloning it unnecessarily.
1369         (_S_construct(_InIterator, _InIterator, const _Alloc&,
1370         input_iterator_tag), _S_construct(_InIterator, _InIterator,
1371         const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
1372         const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
1373         (_M_mutate): Check for the empty string and treat it as shared.
1374         This is necessary here because _M_mutate is sometimes called with
1375         all-zero arguments; in all other uses of _M_is_shared, the test comes
1376         out right anyhow.
1377
1378 2003-06-12  Benjamin Kosnik  <bkoz@redhat.com>
1379
1380         * src/allocator-inst.cc: Explicitly instantiate.
1381         * include/ext/pool_allocator.h: Inhibit implicit instantiations.
1382         Tweaks.
1383         * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
1384
1385 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
1386
1387         * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
1388         * aclocal.m4: Regenerate.
1389         * Makefile.am (SUBDIRS): Remove libio.
1390         * Makefile.in: Regenerate.
1391         * configure.in: Same.
1392         * configure: Regenerate.
1393         * config/io/basic_file_libio.cc: Remove.
1394         * config/io/basic_file_libio.h: Remove.
1395         * config/io/c_io_libio_codecvt.c: Remove.
1396         * config/io/c_io_libio.h: Remove.
1397         * libio/*: Remove.
1398         * src/Makefile.am: Same.
1399         * src/Makefile.in: Regenerate.
1400         * docs/html/configopts.html: Edits.
1401         * docs/html/explanations.html: Edits.
1402
1403 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
1404
1405         * include/bits/stl_alloc.h (__debug_alloc): Move out.
1406         (__malloc_alloc): Same.
1407         (__pool_alloc): Same.
1408         (__new_alloc): Same.
1409         Rename to..
1410         * include/bits/allocator.h: ...this.
1411         * include/bits/stl_deque.h: Modify comment.
1412         * include/bits/stl_tree.h: Modify include.
1413         * include/std/std_memory.h: Same.
1414         * include/ext/rope: Same.
1415         * include/ext/slist: Same.
1416         * include/std/std_vector.h: Same.
1417         * include/std/std_stack.h: Same.
1418         * include/std/std_queue.h: Same.
1419         * include/std/std_list.h: Same.
1420         * include/std/std_deque.h: Same.
1421         * include/backward/alloc.h: Same.
1422         * include/ext/debug_allocator.h: New.
1423         * include/ext/malloc_allocator.h: New.
1424         * include/ext/pool_allocator.h: New.
1425         * include/ext/new_allocator.h: New.
1426         * include/bits/pthread_allocimpl.h: Remove.
1427         * include/bits/stl_pthread_alloc.h: Remove.
1428         * include/Makefile.am (ext_headers): Add.
1429         * include/Makefile.in: Regenerate.
1430         * src/stl-inst.cc: Use __gnu_cxx namespace.
1431         * src/stl-inst.cc: Move to...
1432         * src/allocator-inst.cc: Here.
1433         * src/Makefile.am (sources): Update.
1434         * src/Makefile.in: Regenerate.
1435         * config/linker-map.gnu: Remove __pool_alloc bits.
1436         * testsuite/ext/headers.cc: Add.
1437         * testsuite/ext/allocators.cc: Fixup.
1438
1439 2003-06-11  Stefan Olsson  <stefan@snon.net>
1440             Ola Rönnerup  <fnolis@home.se>
1441
1442         * include/Makefile.am (ext_headers): Add.
1443         * include/Makefile.in: Regenerate.
1444         * include/ext/mt_allocator.h: New file.
1445
1446 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
1447
1448         * include/bits/fstream.tcc (close): Clean up a bit.
1449
1450         * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
1451
1452         * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
1453         - the saved _M_in_cur, that is - cannot be null.
1454         (sync): Constify a variable.
1455
1456         * include/std/std_streambuf.h: Tweak a comment.
1457         (in_avail): Constify a variable.
1458
1459 2003-06-10  Phil Edwards  <pme@gcc.gnu.org>
1460
1461         * docs/html/17_intro/BUGS:  Update from 2.90.8 snapshot.
1462         * docs/html/17_intro/CHECKLIST:  Bring up to date with respect to
1463         correctness of container::iterator typedefs.  Fix whitespace.
1464         * docs/html/20_util/howto.html, docs/html/ext/howto.html:  Add links
1465         to allocator docs.
1466         * docs/html/documentation.html:  Regenerate.
1467
1468         * include/bits/basic_string.h, include/bits/basic_string.tcc,
1469         include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
1470         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
1471         include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
1472         include/bits/stl_list.h, include/bits/stl_uninitialized.h,
1473         include/bits/stl_vector.h, include/bits/vector.tcc,
1474         include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
1475         Change _Iter names to _Iterator, and __pos to __position.
1476
1477         * include/bits/stl_relops.h, include/bits/stl_numeric.h,
1478         include/bits/stl_multiset.h, include/bits/stl_set.h:
1479         Remove emacs markers.
1480
1481         * include/bits/stl_threads.h (_STL_auto_lock):  Add __unused__.
1482
1483 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
1484
1485         * include/bits/fstream.tcc (overflow): According to
1486         27.5.2.4.5, overflow() returns not_eof(eof()).
1487         * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
1488         * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
1489
1490 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
1491
1492         * include/bits/fstream.tcc (_M_underflow): Check overflow return
1493         value; tweak slightly.
1494
1495 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
1496
1497         * include/bits/fstream.tcc (_M_underflow): Do not special
1498         case the unbuffered case, which really means simply a one char
1499         get area.
1500         (basic_filebuf): Initialize _M_buf_size.
1501         (setbuf): Unbuffered means _M_buf_size == 1, since only
1502         _M_buf_size - 1 == 0 chars are going to be used for the
1503         put area and 1 for the get area.
1504         * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
1505         (~basic_streambuf): Tweak.
1506         (basic_streambuf): Do not initialize _M_buf_size.
1507         * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
1508         (~basic_filebuf): Tweak.
1509         (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
1510         unbuffered situation (i.e., put area pointers NULL).
1511         * include/bits/streambuf.tcc (sbumpc): Clean up.
1512         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
1513         * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
1514         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
1515         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
1516         * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
1517         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
1518         * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
1519
1520 2003-06-09  Phil Edwards  <pme@gcc.gnu.org>
1521
1522         * acinclude.m4:  Move all AM_CONDITIONAL calls out.
1523         (GLIBCPP_CONFIGURE):  Set defaults for variables used in AM_CONDITIONAL
1524         statements.
1525         * configure.in:  Centralize AM_CONDITIONALs so that they are always
1526         run.  Make use of GLIBCPP_IS_CROSS_COMPILING.
1527         * aclocal.m4, configure:  Regenerated.
1528
1529 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
1530
1531         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 235.
1532
1533 2003-06-06  Nathan Myers  <ncm-nospam@cantrip.org>
1534
1535         * include/bits/stl_iterator.h
1536         (reverse_iterator::reverse_iterator()): Apply DR235: default
1537         constructor default-initializes data member.  Instantiated on a
1538         pointer type, the member has to end up equal to zero.
1539
1540 2003-06-06  Benjamin Kosnik  <bkoz@redhat.com>
1541
1542         * include/bits/stl_alloc.h: Cleanups.
1543         * include/ext/functional: Same.
1544         * include/ext/hash_map: Same.
1545         * include/ext/hash_set: Same.
1546         * include/ext/iterator: Same.
1547         * include/ext/memory: Same.
1548         * include/ext/numeric: Same.
1549         * include/ext/rb_tree: Same.
1550         * include/ext/ropeimpl.h: Same.
1551         * include/ext/slist: Same.
1552         * include/ext/stdio_filebuf.h: Same.
1553         * include/ext/stdio_sync_filebuf.h: Same.
1554         * include/ext/stl_rope.h: Move to...
1555         * include/ext/rope: ...here.
1556         * include/ext/stl_hash_fun.h: Move to...
1557         * include/ext/hash_fun.h: ...here.
1558         * include/ext/stl_hashtable.h: Move to...
1559         * include/ext/hashtable.h: ...here.
1560         * include/backward/hashtable.h: Reflect new names.
1561         * include/Makefile.am: Same.
1562         * include/Makefile.in: Regenerated.
1563
1564 2003-06-05  Benjamin Kosnik  <bkoz@redhat.com>
1565
1566         PR libstdc++/9024
1567         * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
1568         * include/bits/stl_algobase.h: Tweak.
1569         * include/std/std_fstream.h: Move _M_buf_size to...
1570         * include/std/std_streambuf.h: ...here. Modify.
1571         * include/bits/streambuf.tcc: Same.
1572         * testsuite/testsuite_hooks.h: Tweak.
1573         * testsuite/testsuite_io.h (constraint_filebuf): New.
1574         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
1575         * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
1576         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
1577         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
1578         * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
1579         * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
1580         * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
1581         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
1582         * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
1583         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
1584         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
1585         * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
1586         * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
1587         * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
1588         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
1589         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
1590         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
1591         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
1592         * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
1593         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
1594         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
1595         * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
1596         * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
1597         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
1598         * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
1599         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
1600         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
1601         * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
1602         * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
1603         * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
1604         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
1605         * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
1606         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
1607         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
1608         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
1609         * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
1610         * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
1611         * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
1612         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
1613         * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
1614         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
1615         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
1616         * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
1617         * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
1618         * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
1619         * testsuite/data/sgetc.txt: New.
1620         * testsuite/data/sgetn.txt: New.
1621
1622 2003-06-05  Paolo Carlini  <pcarlini@unitus.it>
1623
1624         PR libstdc++/11095
1625         * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
1626         Deal with width() smaller than zero.
1627         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
1628         operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
1629         _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
1630         char*), operator<<(basic_ostream<char, _Traits>&, const char*),
1631         operator<<(basic_ostream, const basic_string&)): Likewise.
1632
1633         * testsuite/27_io/basic_istream/extractors_character/char/
1634         (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
1635         * testsuite/27_io/basic_ostream/inserters_character/char/
1636         (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
1637         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
1638         (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
1639
1640 2003-06-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1641
1642         * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
1643         .gch compilation works.
1644         * aclocal.m4, configure: Regenerate.
1645         * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
1646         initialize PCHFLAGS.
1647
1648 2003-06-04  Paolo Carlini  <pcarlini@unitus.it>
1649
1650         * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
1651         erase(iterator), erase(iterator, iterator), c_str,
1652         compare(const basic_string&)): Constify various variables.
1653         * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
1654         const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
1655         _S_create, resize, _M_replace, _M_replace_safe,
1656         append(const basic_string&), append(const basic_string&, size_type,
1657         size_type), append(const _CharT*, size_type), append(size_type,
1658         _CharT), operator+(const _CharT*, const basic_string&),
1659         operator+(_CharT, const basic_string&), replace(iterator, iterator,
1660         size_type, _CharT), find(const _CharT*, size_type, size_type),
1661         find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
1662         rfind(_CharT, size_type), compare(size_type, size_type,
1663         const basic_string&), compare(size_type, size_type,
1664         const basic_string&, size_type, size_type), compare(const _CharT*),
1665         compare(size_type, size_type, const _CharT*), compare(size_type,
1666         size_type, const _CharT*, size_type)): Likewise.
1667
1668 2003-06-03  Benjamin Kosnik  <bkoz@redhat.com>
1669
1670         * include/bits/fstream.tcc (pbackfail): Make a rarely taken
1671         'if' branch less obscure.
1672
1673 2003-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
1674
1675         PR libstdc++/9815
1676         * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
1677         asm case to asm.
1678         * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
1679         (__atomic_add): likewise.
1680
1681 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1682
1683         * include/bits/sstream.tcc (pbackfail): Minor clean up and
1684         reformatting, consistent with basic_filebuf::pbackfail.
1685
1686 2003-06-02  Richard Kreckel  <Richard.Kreckel@GiNaC.DE>
1687
1688         PR libstdc++/11062
1689         * config/cpu/mips/atomicity.h:  Change __attribute__ ((unused)) to
1690         __attribute__ ((__unused__)).
1691         * config/os/aix/atomicity.h:  Likewise.
1692
1693 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1694
1695         PR libstdc++/9761
1696         * include/bits/fstream.tcc (pbackfail): If the pback buffer
1697         is already active don't try to store in it a second char.
1698         * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
1699
1700         * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
1701
1702 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1703
1704         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
1705         line spacing.
1706
1707 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1708
1709         * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
1710         instead of unnecessarily taking the address of _M_pback.
1711         (xsgetn): Simplify slightly for a single char pback buffer.
1712
1713 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1714
1715         * include/bits/sstream.tcc (seekoff): Remove four unnecessary
1716         variables and two 'if', clean up.
1717
1718 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1719
1720         * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
1721         not _M_out_end, since the former actually points to the string
1722         end (vs buffer end).
1723         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
1724
1725 2003-05-30  Phil Edwards  <pme@gcc.gnu.org>
1726
1727         * docs/doxygen/filter:  New file.
1728         * docs/doxygen/filter.sed:  New file.
1729         * docs/doxygen/run_doxygen:  Add g flag to sed substitutions.  Duh.
1730         * docs/doxygen/user.cfg.in (INPUT_FILTER):  Point to new filter.
1731         * docs/html/documentation.html:  Fix links to doxygen pages.
1732
1733 2003-05-30  Paolo Carlini  <pcarlini@unitus.it>
1734
1735         * include/bits/fstream.tcc (_M_convert_to_external): Don't
1736         check for __ilen > 0.
1737
1738 2003-05-29  Sylvain Pion  <Sylvain.Pion@mpi-sb.mpg.de>
1739
1740         PR libstdc++/10783
1741         * include/bits/stl_iterator.h (class __normal_iterator):
1742         Don't inherit from iterator, add missing typedefs.
1743
1744 2003-05-29  Paolo Carlini <pcarlini@unitus.it>
1745
1746         * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
1747         * testsuite/24_iterators/reverse_iterator/1.cc: New.
1748         * testsuite/24_iterators/reverse_iterator/2.cc: New.
1749         * testsuite/24_iterators/reverse_iterator/3.cc: New, from
1750         PR libstdc++/10783.
1751
1752 2003-05-27  Steve Ellcey  <sje@cup.hp.com>
1753
1754         * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
1755         on IA64 HP-UX.
1756         * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
1757         _LIBUNWIND_STD_ABI is set.
1758
1759 2003-05-26  Brendan Kehoe  <brendan@zen.org>
1760
1761         * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
1762         make sure the number of digits required after the decimal-point
1763         (if any) is exactly the value returned by frac_digits().
1764         * testsuite/22_locale/money_get/get/char/9.cc: New.
1765         * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
1766
1767 2003-05-27  Jonathan Wakely  <redi@gcc.gnu.org>
1768
1769         * include/std/std_istream.h, include/std/std_ostream.h: Typo in
1770         comment.
1771
1772 2003-05-26  Benjamin Kosnik  <bkoz@redhat.com>
1773
1774         PR libstdc++/9339
1775         * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
1776         (_M_pback): No array necessary.
1777         * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
1778         unbuffered case, coalesec into ...
1779         (basic_filebuf::overflow): ...this.
1780         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
1781         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
1782
1783 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
1784
1785         * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
1786         libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
1787         libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
1788         libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
1789         libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
1790         libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
1791         libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
1792         libsupc++/eh_unex_handler.cc, libsupc++/exception,
1793         libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
1794         libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
1795         libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
1796         libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
1797         Replace "GNU CC" with "GCC".
1798
1799         * include/backward/new.h: Replace "GNU CC" with "GCC".
1800
1801 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1802
1803         PR libstdc++/3066.
1804         * configure.in: Switch target to host, don't assume newlib.
1805         (target_alias): Remove.
1806         * configure: Regenerate.
1807         * acinclude.m4: Same.
1808         * aclocal.m4: Regenerate.
1809         * configure.target: Same. Rename to...
1810         * configure.host: This.
1811
1812 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
1813
1814         * include/std/std_fstream.h (_S_pback_size): Remove definition.
1815         (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
1816         pback buffer.
1817         * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
1818         * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
1819         of _S_pback_size for systems with no COMDAT or weak support.
1820         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
1821         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
1822         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
1823         * testsuite/27_io/basic_fstream/3.cc: Likewise.
1824         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
1825         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
1826         * testsuite/27_io/basic_ofstream/3.cc: Likewise.
1827         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
1828         * testsuite/27_io/basic_streambuf/3.cc: Likewise.
1829
1830 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
1831
1832         * include/bits/fstream.tcc (_M_underflow): Simplify:
1833         !__testout implies _M_filepos == _M_in_end, therefore
1834         the first _M_file.seekoff call is never issued.
1835
1836 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1837
1838         * configure.in: Sort cross table.
1839         * configure: Regenerate.
1840
1841 2003-05-22  Brad Spencer  <spencer@infointeractive.com>
1842
1843         PR libstdc++/10106
1844         * configure.in: Add Solaris cross bits.
1845
1846 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
1847
1848         * libstdc++-v3/config/os/mingw32/os_defines.h
1849         (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
1850         (NOMINMAX): Define.  Update copyright year.
1851
1852 2003-05-21  Paolo Carlini  <pcarlini@unitus.it>
1853
1854         * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
1855
1856 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
1857
1858         * docs/html/faq/index.html: Fix typo.
1859         * docs/html/faq/index.txt: Regenerate.
1860
1861 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
1862
1863         * docs/html/test.html: Fix markup.
1864
1865 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
1866
1867         * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
1868         zero.
1869         Update copyright year.
1870
1871 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
1872
1873         * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
1874
1875 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
1876
1877         * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
1878         further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
1879
1880 2003-05-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1881
1882         * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
1883         Cast via void* to avoid -Wcast-align warnings.
1884         (__default_alloc_template::_S_refill): Likewise.
1885
1886 2003-05-20  Benjamin Kosnik  <bkoz@redhat.com>
1887
1888         * testsuite/README: Move to...
1889         * docs/html/test.html: ...here. Add documentation.
1890         * docs/html/install.html: Move testing bits out..
1891         * docs/html/documentation.html: Add separate testing link.
1892         * testsuite/performance: Add.
1893         * testsuite/performance/allocator.cc: New.
1894         * testsuite/performance/complex_norm.cc: New.
1895         * testsuite/performance/cout_insert_int.cc: New.
1896         * testsuite/performance/fstream_seek_write.cc: New.
1897         * testsuite/performance/ifstream_getline.cc: New.
1898         * testsuite/performance/map_create_fill.cc: New.
1899         * testsuite/performance/ofstream_insert_float.cc: New.
1900         * testsuite/performance/ofstream_insert_int.cc: New.
1901         * testsuite/performance/string_append.cc: New.
1902         * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
1903         performance tests.
1904
1905 2003-05-20  Gabriel Dos Reis <gdr@integrable-solutions.net>
1906
1907         PR libstdc++/10689
1908         * include/std/std_complex.h (pow): Tidy.
1909
1910 2003-05-19  Paolo Carlini  <pcarlini@unitus.it>
1911
1912         * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
1913         that upon filebuf::close() 27.8.1.1,3 is enforced.
1914
1915 2003-05-15  Loren J. Rittle  <ljrittle@acm.org>
1916
1917         * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
1918
1919 2003-05-15  Paolo Carlini  <pcarlini@unitus.it>
1920             Nathan Myers  <ncm@cantrip.org>
1921
1922         * include/bits/fstream.tcc (_M_overflow): Rewrote to call
1923         _M_convert_to_external only once (_M_buf_size is now the size of
1924         the put area + 1 for the overflow char of a full area); call
1925         _M_set_buffer instead of _M_set_indeterminate.
1926         (setbuf): Don't accept a buffer smaller than 2 chars.
1927         (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
1928         instead of _M_set_determinate.
1929         (open): Call _M_set_buffer, instead of _M_set_indeterminate.
1930         (seekoff): Likewise.
1931         * include/ext/stdio_filebuf.h (stdio_filebuf(int,
1932         std::ios_base::openmode, bool, size_t),
1933         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
1934         Likewise.
1935         * include/std/std_fstream.h (_M_set_indeterminate): Remove.
1936         (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
1937         _M_buf_size - 1.
1938         * include/std/std_streambuf.h: Tweak _M_out_lim comment.
1939         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
1940         into account that, for _M_buf_size == BUFSIZ == 8192, the size of
1941         the put area is now BUFSIZ - 1.
1942         * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
1943         that now the smallest _M_buf_size is 2 (still fails, for the same
1944         reason, with 3.2.3)
1945
1946 2003-05-14  Loren J. Rittle  <ljrittle@acm.org>
1947
1948         * testsuite/thread/pthread4.cc: Tweak test.
1949
1950 2003-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1951
1952         * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
1953         excess errors dg marker, use dg-errors instead.
1954         * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
1955         * testsuite/20_util/auto_ptr_neg.cc: Same.
1956
1957 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
1958
1959         * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
1960         cached member.
1961         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
1962         Initialize _M_codecvt.
1963         (basic_filebuf::imbue): Same.
1964         (basic_filebuf::showmanyc): Use it.
1965         (basic_filebuf::underflow): Use it.
1966         (basic_filebuf::_M_convert_to_external): Use it.
1967         (basic_filebuf::seekoff): Use it.
1968         (basic_filebuf::imbue): Use it, tweaks.
1969         * include/bits/localefwd.h (__check_facet): New.
1970         * include/bits/locale_classes.h: Tweaks.
1971         * include/bits/locale_facets.tcc: Tweaks.
1972         * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
1973         _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
1974         _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
1975         * include/bits/basic_ios.tcc: Same.
1976         * include/bits/istream.tcc: Same.
1977         * include/bits/ostream.tcc: Same.
1978         * include/std/std_streambuf.h: Same.
1979         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
1980         * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
1981         * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
1982         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
1983         * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
1984         * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
1985
1986 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
1987
1988         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
1989         unnecessary includes and unused string literals.
1990         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
1991         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
1992         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
1993         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
1994
1995 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
1996
1997         * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
1998
1999 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
2000
2001         * include/std/std_fstream.h (_M_convert_to_external): Change
2002         to return bool, take two less streamsize parameters.
2003         * include/bits/fstream.tcc (_M_convert_to_external): Tweak
2004         consistently definition.
2005         (_M_overflow): Adjust call points.
2006
2007 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
2008
2009         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
2010
2011 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
2012
2013         * testsuite/Makefile.am:  Properly quote /both/ LD_RUN_PATHs.
2014         * testsuite/Makefile.in:  Regenerate.
2015
2016 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
2017
2018         * testsuite/Makefile.am:  Properly quote LD_RUN_PATH.
2019         * testsuite/Makefile.in:  Regenerate.
2020
2021 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
2022
2023         PR libstdc++/3181
2024         * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
2025         (acos): Handle integer argument.
2026         (asin): Likewise.
2027         (atan): Likewise.
2028         (atan2): Likewise.
2029         (ceil): Likewise.
2030         (cos): Likewise.
2031         (cosh): Likewise.
2032         (exp): Likewise.
2033         (fabs): Likewise.
2034         (floor): Likewise.
2035         (frexp): Likewise.
2036         (ldexp): Likewise.
2037         (log): Likewise.
2038         (log10): Likewise.
2039         (sin): Likewise.
2040         (sinh): Likewise.
2041         (sqrt): Likewise.
2042         (tan): Likewise.
2043         (tanh): Likewise.
2044         * include/bits/cpp_type_traits.h (__are_same<>): New traits.
2045         (__enable_if): Likewise.
2046         * testsuite/26_numerics/cmath/overloads.C: New test.
2047
2048 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
2049
2050         PR libstdc++/9027
2051         PR libstdc++/9520
2052         PR libstdc++/10096
2053         * include/bits/fstream.tcc (basic_file::_M_underflow):  Add generic
2054         implementation, based on old wchar_t specialization, add support
2055         for codecvt::in() return value of codecvt_base::noconv, remove
2056         _M_file.sys_ungetc() call.
2057         * include/std/std_fstream.h (basic_file::underflow,
2058         basic_file::uflow, basic_file::_M_underflow):  Remove
2059         specialization declarations, call _M_underflow from generic versions
2060         of underflow and uflow.
2061         * src/fstream.cc (basic_file::underflow, basic_file::uflow,
2062         basic_file::_M_underflow):  Remove specializations.
2063         * src/Makefile.am (sources):  Remove fstream.cc.
2064         * src/Makefile.in:  Regenerated.
2065         * testsuite/27_io/basic_filebuf/underflow/10096.cc:  New test.
2066         * testsuite/27_io/basic_filebuf/underflow/char/1.cc:  New test.
2067         * testsuite/27_io/basic_filebuf/underflow/char/9027.cc:  New test.
2068         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc:  New test.
2069
2070 2003-05-10  Benjamin Kosnik  <bkoz@redhat.com>
2071
2072         * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
2073         buffer.
2074         * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
2075         unbuffered bits.
2076         (__basic_file::xsputn): Same.
2077         (__basic_file::seekoff): Same.
2078         (__basic_file::seekpos): Same.
2079         (__basic_file::showmanyc): Same.
2080         * config/io/basic_file_stdio.cc: Same.
2081         * include/std/std_fstream.h: Same.
2082         * include/bits/fstream.tcc: Same.
2083         * src/fstream.cc: Same.
2084         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
2085
2086 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
2087
2088         PR libstdc++/9520
2089         PR libstdc++/9661
2090         PR libstdc++/9662
2091         * include/ext/stdio_sync_filebuf.h:  New file.
2092         (basic_stdiobuf):  New.
2093         * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
2094         * include/Makefile.in: Regenerate.
2095         * include/bits/ios_base.h (Init::_S_create_buffers,
2096         Init::_S_destroy_buffers):  Remove declarations.
2097         * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
2098         buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync):  Define.
2099         * src/ios.cc (Init::_S_create_buffers,
2100         Init::_S_destroy_buffers):  Remove.
2101         (Init::Init):  Create and use syncronized buffers.
2102         (ios_base::sync_with_stdio):  Destroy syncronized buffers,
2103         create and install unsyncronized buffers.
2104         * testsuite/27_io/objects/char/10.cc:  New test.
2105         * testsuite/27_io/objects/char/9.cc:  New test.
2106         * testsuite/27_io/objects/char/9661-1.cc:  New test.
2107         * testsuite/27_io/objects/char/9661-2_xin.cc:  New test.
2108         * testsuite/27_io/objects/char/9661-2_xin.in:  New.
2109         * testsuite/27_io/objects/wchar_t/1.cc:  New test.
2110         * testsuite/27_io/objects/wchar_t/10.cc:  New test.
2111         * testsuite/27_io/objects/wchar_t/2.cc:  New test.
2112         * testsuite/27_io/objects/wchar_t/2523-1_xin.cc:  New test.
2113         * testsuite/27_io/objects/wchar_t/2523-1_xin.in:  New.
2114         * testsuite/27_io/objects/wchar_t/2523-2_xin.cc:  New test.
2115         * testsuite/27_io/objects/wchar_t/2523-2_xin.in:  New.
2116         * testsuite/27_io/objects/wchar_t/3045.cc:  New test.
2117         * testsuite/27_io/objects/wchar_t/3647.cc:  New test.
2118         * testsuite/27_io/objects/wchar_t/3_xin.cc:  New test.
2119         * testsuite/27_io/objects/wchar_t/3_xin.in:  New.
2120         * testsuite/27_io/objects/wchar_t/4_xin.cc:  New test.
2121         * testsuite/27_io/objects/wchar_t/4_xin.in:  New.
2122         * testsuite/27_io/objects/wchar_t/5.cc:  New test.
2123         * testsuite/27_io/objects/wchar_t/5268.cc:  New test.
2124         * testsuite/27_io/objects/wchar_t/5280_xin.cc:  New test.
2125         * testsuite/27_io/objects/wchar_t/5280_xin.in:  New.
2126         * testsuite/27_io/objects/wchar_t/6.cc:  New test.
2127         * testsuite/27_io/objects/wchar_t/6548_xin.cc:  New test.
2128         * testsuite/27_io/objects/wchar_t/6548_xin.in:  New.
2129         * testsuite/27_io/objects/wchar_t/6648-1_xin.cc:  New test.
2130         * testsuite/27_io/objects/wchar_t/6648-1_xin.in:  New.
2131         * testsuite/27_io/objects/wchar_t/6648-2_xin.cc:  New test.
2132         * testsuite/27_io/objects/wchar_t/6648-2_xin.in:  New.
2133         * testsuite/27_io/objects/wchar_t/7.cc:  New test.
2134         * testsuite/27_io/objects/wchar_t/7744_xin.cc:  New test.
2135         * testsuite/27_io/objects/wchar_t/7744_xin.in:  New.
2136         * testsuite/27_io/objects/wchar_t/8.cc:  New test.
2137         * testsuite/27_io/objects/wchar_t/9_xin.cc:  New test.
2138         * testsuite/27_io/objects/wchar_t/9_xin.in:  New.
2139         * testsuite/27_io/objects/wchar_t/9520.cc:  New test.
2140         * testsuite/27_io/objects/wchar_t/9661-1.cc:  New test.
2141         * testsuite/27_io/objects/wchar_t/9661-2_xin.cc:  New test.
2142         * testsuite/27_io/objects/wchar_t/9661-2_xin.in:  New.
2143         * testsuite/27_io/objects/wchar_t/9662.cc:  New test.
2144         * testsuite/ext/stdiobuf_char.cc:  New test.
2145         * testsuite/ext/stdiobuf_wchar_t.cc:  New test.
2146
2147 2003-05-10  Paolo Carlini  <pcarlini@unitus.it>
2148
2149         * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
2150         unnecessary includes and unused string literals.
2151         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
2152
2153 2003-05-08  Paolo Carlini  <pcarlini@unitus.it>
2154
2155         * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
2156
2157 2003-05-07  Richard Henderson  <rth@redhat.com>
2158
2159         PR c++/10570
2160         * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
2161         (__cxa_end_catch): Likewise.
2162         * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise.  Use
2163         _Unwind_Resume_or_Rethrow.
2164         * libsupc++/eh_personality.cc (empty_exception_spec): New.
2165         (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
2166         for _UA_FORCE_UNWIND.  Honor empty filter spec for foreign
2167         exceptions.  Don't push terminate/unexpected to cxa functions.
2168         (__cxa_call_unexpected): Remove foreign exception fixmes.
2169
2170 2003-05-07  Benjamin Kosnik  <bkoz@redhat.com>
2171
2172         * testsuite/27_io/ios_base/cons: New.
2173         * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
2174         * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
2175
2176 2003-05-07  Paolo Carlini  <pcarlini@unitus.it>
2177
2178         * include/std/std_fstream.h (_M_is_indeterminate): Remove.
2179         * src/fstream.cc
2180         (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
2181         there is no buffer or __testget == !__testinit.
2182
2183         * src/fstream.cc
2184         (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
2185         automatically sets, if appropriate, _M_out_cur == _M_in_cur.
2186
2187         * include/std/std_fstream.h (_M_destroy_pback): Don't set
2188         unnecessarily _M_pback_cur_save and _M_pback_end_save.
2189
2190         * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
2191
2192         * include/std/std_sstream.h (_M_sync): Minor tweak.
2193
2194         * include/bits/fstream.tcc (close): No need to call
2195         _M_destroy_pback, setting _M_pback_init to false suffices
2196         to clean up.
2197
2198 2003-05-06  Benjamin Kosnik  <bkoz@redhat.com>
2199
2200         * include/bits/stl_algo.h: Enums as _S_.
2201         * include/bits/stl_tree.h: Same.
2202         * include/bits/stl_bvector.h: Same.
2203         * include/bits/ios_base.h: Same.
2204         * include/bits/stl_alloc.h: Same.
2205         * include/ext/stl_hashtable.h: Same.
2206         * src/ios.cc: And here.
2207
2208         * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
2209         * include/bits/sstream.tcc: Same.
2210
2211         * include/bits/basic_ios.h: Correct spacing for '< ctype'.
2212
2213         * include/bits/locale_facets.tcc: Replace __temp to __tmp.
2214
2215         * include/bits/locale_facets.h (__num_base): Remove protected.
2216         Use _S_[io]* names for enumerations.
2217         (_S_format_int): Remove.
2218         * include/bits/locale_facets.tcc: Same.
2219         * src/locale.cc: Same.
2220
2221         * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
2222
2223 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
2224
2225         * docs/html/faq/index.html (3.10):  Add note about mips atomicity.h.
2226         * docs/html/faq/index.txt:  Regenerated.
2227
2228 2003-05-06  Michael Ritzert <Ritzert@t-online.de>
2229             Matt Kraai <kraai@alumni.cmu.edu>
2230
2231         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
2232         And retweak.
2233
2234 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
2235
2236         * configure.target (mips*): Use the generic atomicity.h by default.
2237
2238 2003-05-05  Loren J. Rittle  <ljrittle@acm.org>
2239             (Inspired by an alternate patch from Danny Smith.)
2240
2241         * include/bits/stl_threads.h (_Atomic_swap): Kill it...
2242         (_Swap_lock_struct<>): ...and the horse it rode in on.
2243         * src/globals.cc (_Swap_lock_struct<>): Likewise.
2244         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
2245         member to support...
2246         * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
2247         visibility rules related to POSIX threads.
2248         * testsuite/thread/pthread7-rope.cc: New test.
2249
2250 2003-05-04  Paolo Carlini  <pcarlini@unitus.it>
2251
2252         * testsuite/21_strings/basic_string/find/char/3.cc: New
2253         file, testing basic_string<char>::find_first_not_of.
2254         * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
2255         Likewise for basic_string<wchar_t>.
2256
2257 2003-05-03  Loren J. Rittle  <ljrittle@acm.org>
2258
2259         * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
2260
2261 2003-05-02  Benjamin Kosnik  <bkoz@redhat.com>
2262
2263         * include/Makefile.am (CLEANFILES): Remove PCH files in target
2264         directory.
2265         * include/Makefile.in: Regenerate.
2266
2267 2003-05-02  Paolo Carlini  <pcarlini@unitus.it>
2268
2269         * include/std/std_sstream.h (str()): Tidy.
2270
2271 2003-05-02  Nathan Myers  <ncm@cantrip.org>
2272             Paolo Carlini  <pcarlini@unitus.it>
2273
2274         * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
2275
2276 2003-05-02  Jonathan Wakely  <redi@gcc.gnu.org>
2277
2278         * include/bits/basic_string.h (swap): Remove redundant template
2279         parameters from declaration of non-template member function.
2280
2281 2003-05-01  Phil Edwards  <pme@gcc.gnu.org>
2282
2283         * acconfig.h (_GLIBCPP_USE_NLS):  New symbol.
2284         * configure.in:  Move libintl.h header test...
2285         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  ...to here.  Gather all
2286         the NLS-related test results into one symbol.
2287         * src/functexcept.cc:  Use it here.
2288         * aclocal.m4, config.h.in, configure:  Regenerated.
2289
2290 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2291
2292         * include/bits/sstream.tcc (overflow): Instead of calling
2293         str(), then _M_string.reserve, thus copying the contents
2294         of the current buffer two times, just copy the latter in
2295         a temporary, then use the 'swap trick'.
2296
2297 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2298
2299         * include/std/std_sstream.h (str()): Revert the best of the
2300         previous 'improvement', incorrect due to the COW nature of
2301         v3 basic_string; simplify.
2302
2303 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2304
2305         * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
2306         type of __avail to ptrdiff_t to avoid signed-unsigned warning.
2307
2308 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
2309
2310         * testsuite/abi_check.cc (check_version): Update known versions.
2311         Check added symbols for version_name != base version. Add missing
2312         symbols to incompatible list.
2313
2314 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
2315
2316         * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
2317         * aclocal.m4: Regenerated.
2318         * configure: Regenerated.
2319
2320 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2321
2322         * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
2323         Const-ify some variables.
2324         (basic_streambuf::xsputn): Likewise; change the type of some
2325         variables to size_t.
2326         (__copy_streambufs): Change some variables to size_t.
2327
2328 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2329
2330         * include/std/std_sstream.h (str()): Avoid constructing
2331         a basic_string temporary not only when it would turn out
2332         to be zero-sized but also when identical to the current
2333         _M_string buffer.
2334
2335 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2336
2337         * include/ext/stdio_filebuf.h
2338         (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
2339         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
2340         Shorten a bit (-10 lines) by factoring out some code.
2341
2342 2003-04-30  Phil Edwards  <pme@gcc.gnu.org>
2343
2344         * acinclude.m4:  Add bit missing from previous patch.
2345         * aclocal.m4, configure:  Regenerated.
2346
2347 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
2348
2349         * docs/doxygen/mainpage.html:  Bring up to date.
2350         * docs/doxygen/run_doxygen:  Cosmetic tweaks.  Work around a bug
2351         in Doxygen.
2352         * docs/doxygen/user.cfg.in:  Scanning the precompiled headers
2353         breaks everything.  Don't scan them.
2354         * docs/html/documentation.html:  Point to "Write after approval"
2355         notes.
2356
2357 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
2358
2359         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  Search for gettext outside
2360         of libc if message translations are being used.  Fix info text in
2361         xieee_1003.1-2001 case.
2362         * aclocal.m4, configure:  Regenerate.
2363
2364 2003-04-29 Joel Sherrill  <joel.sherrill@OARcorp.com>
2365            Loren J. Rittle <ljrittle@acm.org>
2366            Martin v. Loewis  <martin@v.loewis.de>
2367
2368         * config/cpu/i386/atomicity.h: New file.
2369
2370 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
2371
2372         * include/bits/fstream.tcc (open): Change to single return.
2373
2374 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
2375
2376         * include/std/std_sstream.h (underflow): Change to single return.
2377
2378 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
2379
2380         * include/std/std_streambuf.h (_M_buf): is currently
2381         used only for basic_filebuf, therefore move it there.
2382         (basic_streambuf(), ~basic_streambuf()): Adjust.
2383         * include/std/std_fstream.h (_M_buf): Moved here.
2384         * include/std/std_sstream.h (setbuf): Don't set _M_buf,
2385         is actually redundant for basic_stringbuf.
2386         (_M_really_sync): Likewise.
2387         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2388         * include/bits/sstream.tcc (seekoff): Adjust.
2389
2390 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
2391
2392         * src/localename.cc: Standardize exception strings.
2393         * src/locale.cc: Same.
2394         * src/ios.cc: Same.
2395         * include/bits/basic_string.tcc: Same.
2396         * include/bits/basic_ios.tcc: Same.
2397         * include/std/std_bitset.h: Same.
2398         * include/ext/ropeimpl.h: Same.
2399         * include/bits/stl_vector.h: Same.
2400         * include/bits/stl_deque.h: Same.
2401         * include/bits/stl_bvector.h: Same.
2402         * config/locale/generic/c_locale.cc: Same.
2403         * config/locale/gnu/c_locale.cc: Same.
2404         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
2405
2406         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
2407
2408 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
2409
2410         * include/std/std_streambuf.h (_M_buf_size): is currently
2411         used only for basic_filebuf, therefore move it there.
2412         (basic_streambuf(), ~basic_streambuf()): Adjust.
2413         * include/std/std_fstream.h (_M_buf_size): Moved here.
2414         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2415
2416 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
2417
2418         * include/bits/streambuf.tcc (__copy_streambufs): Don't use
2419         _M_buf_size (synced input is now correctly dealt with
2420         elsewhere); when the output buffer is full don't fall back
2421         to a snextc-sputc loop, call overflow instead.
2422
2423 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
2424
2425         * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
2426         the innermost 'if' by factoring out some code.
2427
2428 2003-04-28  Phil Edwards  <pme@gcc.gnu.org>
2429
2430         * configure.in:  Test for libintl.h.
2431         * include/bits/c++config:  Define __N for everybody.
2432         * include/bits/basic_string.h, include/bits/stl_bvector.h,
2433         include/bits/stl_deque.h, include/bits/stl_vector.h,
2434         include/std/std_bitset.h:  Wrap all __throw* text with __N.
2435         * po/Makefile.am (pot):  New rule, mostly working.
2436         * src/functexcept.cc:  Call gettext on all __throw* arguments when
2437         -fexceptions is in effect.
2438         * po/Makefile.in, config.h.in, configure:  Regenerate.
2439
2440 2003-04-28  Petur Runolfsson  <peturr02@ru.is>
2441
2442         PR libstdc++/9523
2443         * include/bits/ios_base.h (Init::_S_ios_create,
2444         Init::_S_ios_destroy):  Remove declarations.
2445         (Init::_S_create_buffers,
2446         Init::_S_destroy_buffers):  Declare
2447         * src/ios.cc (Init::_S_ios_create):  Remove
2448         (Init::_S_create_buffers):  Create buffers and add to streams.
2449         (Init::_S_ios_destroy):  Rename to...
2450         (Init::_S_destroy_buffers):  this.
2451         (Init::Init):  Only construct streams once.
2452         (Init::~Init):  Flush streams, don't destroy them.
2453         (ios_base::sync_with_stdio):  Don't destroy streams, only buffers.
2454         * testsuite/27_io/ios_base/sync_with_stdio/9523.cc:  New test.
2455         * testsuite/27_io/objects/char/5.cc:  New test.
2456         * testsuite/27_io/objects/char/5268.cc:  Avoid undefined behavior.
2457         * testsuite/27_io/objects/char/6.cc:  New test.
2458         * testsuite/27_io/objects/char/7.cc:  New test.
2459
2460 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
2461
2462         * testsuite/27_io/objects/char/8.cc:  New test.
2463
2464 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
2465
2466         * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
2467         * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
2468
2469 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
2470
2471         * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
2472         _M_destroy_pback. _M_pback_create to
2473         _M_create_pback. _M_underflow_common to
2474         _M_underflow. _M_really_overflow to _M_overflow.
2475         * include/bits/fstream.tcc: Same.
2476         * src/fstream.cc: Same.
2477         * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
2478         _M_move_in_cur.  _M_out_cur_move to _M_move_out_cur.
2479         * include/bits/streambuf.tcc: Same.
2480         * include/bits/fstream.tcc: Same.
2481         * include/bits/sstream.tcc: Same.
2482
2483 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
2484
2485         * include/bits/locale_classes.h (locale::_Impl): Change _M_names
2486         from fixed size array.
2487         (locale): Change _S_categories as well.
2488         Formatting tweaks.
2489         * include/bits/locale_facets.tcc: Tweak.
2490         * config/locale/gnu/c_locale.cc: Assign _S_categories.
2491         * config/locale/generic/c_locale.cc: Same.
2492         * src/locale.cc: Tweak.
2493         * src/globals.cc: Change facet_name to name_vec, add names_c.
2494         * src/localename.cc: Use them.
2495         (locale::_Impl::~_Impl): Destroy _M_names.
2496         (locale::_Impl::_Impl): Create _M_names.
2497
2498 2003-04-27  Andreas Schwab  <schwab@suse.de>
2499
2500         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2501         (__enc_traits): Use __ibom and __ebom instead of ignoring them.
2502
2503 2003-04-27  Nathan Myers  <ncm@cantrip.org>
2504
2505         Move some basic_string members out of line because
2506         they are too big to reasonably be inline.
2507         * include/bits/basic_string.h
2508         (assign(const basic_string&, size_type, size_type),
2509         assign(const _CharT*, size_type),
2510         insert(size_type, const basic_string&, size_type, size_type),
2511         insert(size_type, const _CharT*, size_type),
2512         replace(size_type, size_type, const _CharT*, size_type)):
2513         Move from here to...
2514         * include/bits/basic_string.tcc: ...here.
2515
2516 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
2517
2518         * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
2519         the innermost 'if' by factoring out some code.
2520
2521 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
2522
2523         * include/bits/streambuf.tcc (__copy_streambufs): Don't
2524         use in_avail(), simplify.
2525
2526 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
2527
2528         * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
2529         in basic_stringbuf it's unused.
2530
2531         * include/std/std_sstream.h (underflow): consistently use
2532         _M_in_cur, not gptr().
2533
2534 2003-04-25  Ranjit Mathew  <rmathew@hotmail.com>
2535             Phil Edwards  <pme@gcc.gnu.org>
2536
2537         * testsuite_flags.in: Guard against the possibility
2538         of having "xgcc" as a part of a folder name in the
2539         path to the GCC build folder.
2540         * testsuite/Makefile.am: Likewise.
2541         * testsuite/Makefile.in: Regenerated.
2542
2543 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
2544
2545         PR libstdc++/10132
2546         * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
2547         exception specifications.
2548         (basic_filebuf::close): Same.
2549         (basic_filebuf::_M_pback_destroy): Same.
2550         (basic_filebuf::_M_destroy_internal_buffer): Same.
2551         (basic_filebuf): Remove __res_type typedef.
2552         * src/fstream.cc: Same.
2553         * include/bits/fstream.tcc
2554         (basic_filebuf::_M_convert_to_external): Simplify.
2555         (basic_filebuf::seekoff): Use has_facet before use_facet.
2556         (basic_filebuf::close): Add exception specification of throw().
2557         * testsuite/27_io/basic_filebuf/cons: New.
2558         * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
2559         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
2560         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
2561         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
2562
2563 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
2564
2565         * include/bits/locale_classes.h
2566         (locale::_S_extra_categories_size): Remove.
2567         * src/locale.cc: Remove _S_extra_categories_size.
2568         * src/localename.cc: Same.
2569         * config/locale/gnu/c_locale.cc: Same.
2570         * config/locale/generic/c_locale.cc: Same.
2571
2572 2003-04-24  Richard Sandiford  <rsandifo@redhat.com>
2573
2574         * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
2575
2576 2003-04-24  Phil Edwards  <pme@gcc.gnu.org>
2577
2578         * docs/html/17_intro/howto.html:  Update some links.
2579         * docs/html/18_support/howto.html:  Link doxygen numeric_limits notes.
2580         * docs/html/27_io/howto.html:  Link doxygen stdio_filebuf notes.
2581         * docs/html/ext/howto.html:  Link to demangler notes and API.
2582         * docs/html/faq/index.html:  Remove trailing whitespace.
2583         (1.4, 2.4, 3.8, 4.1):  Bring up to date.
2584         (5.6):  Change to a bulleted list.
2585
2586         * docs/html/faq/index.txt, docs/html/documentation.html,
2587         docs/html/17_intro/porting.html:  Regenerate.
2588
2589 2003-04-23  Paolo Carlini  <pcarlini@unitus.it>
2590
2591         * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
2592         belongs to basic_filebuf.
2593         * testsuite/27_io/basic_fstream/3.cc: Likewise.
2594         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
2595         * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
2596         instantiation (now belongs to basic_filebuf).
2597         * testsuite/27_io/basic_iostream/3.cc: Likewise.
2598         * testsuite/27_io/basic_istream/3.cc: Likewise.
2599         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
2600         _S_pback_size now belongs to basic_filebuf.
2601         * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
2602         instantiation (now belongs to basic_filebuf).
2603         * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
2604         belongs to basic_filebuf.
2605         * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
2606         instantiation (now belongs to basic_filebuf).
2607         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
2608         _S_pback_size now belongs to basic_filebuf.
2609         * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
2610         instantiation (now belongs to basic_filebuf).
2611         * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
2612         to basic_filebuf.
2613         * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
2614         instantiation (now belongs to basic_filebuf).
2615         * testsuite/27_io/basic_stringstream/3.cc: Likewise.
2616
2617 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
2618
2619         * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
2620         * configure: Regenerated.
2621
2622 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
2623
2624         * config/locale/generic/c_locale.h (__convert_from_v): Use
2625         attribute unused.
2626
2627 2003-04-23  Phil Edwards  <pme@gcc.gnu.org>
2628
2629         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 60, partial
2630         implementation only.
2631         * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
2632         Comment and change to comply with DR 60 and the effect on gcount().
2633         * include/std/std_istream.h:  Update comments.
2634         * testsuite/27_io/basic_istream/putback/char/1.cc (test01):  Add
2635         comments about reasons for tests.  Test sync() against gcount().
2636         * testsuite/27_io/basic_istream/seekg/char/2.cc:  New file, test
2637         for effect on gcount().
2638         * testsuite/27_io/basic_istream/tellg/char/2.cc:  New file, test
2639         for effect on gcount().
2640
2641 2003-04-22  Loren J. Rittle  <ljrittle@acm.org>
2642
2643         * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
2644         Adjust timing.
2645
2646 2003-04-22  Paolo Carlini  <pcarlini@unitus.it>
2647
2648         * include/std/std_streambuf.h (_S_pback_size, _M_pback,
2649         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
2650         _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
2651         (basic_streambuf::basic_streambuf()): Adjust.
2652         * include/std/std_fstream.h (_S_pback_size, _M_pback,
2653         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
2654         _M_pback_create(), _M_pback_destroy()): Moved here
2655         from basic_streambuf.
2656         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
2657         Adjust.
2658         (basic_filebuf::_S_pback_size): Add declaration.
2659         * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
2660         Remove declaration.
2661
2662 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
2663
2664         Consistently use _M_in_beg instead of eback(), _M_in_cur
2665         instead of gptr(), and so on.
2666         * include/bits/fstream.tcc (pbackfail, imbue): Here.
2667         * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
2668         * include/bits/streambuf.tcc (sbumpc, sputbackc,
2669         __copy_streambufs): Ditto.
2670         * include/std/std_streambuf.h (sgetc): Ditto.
2671
2672 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
2673
2674         * include/bits/sstream.tcc (pbackfail, overflow):
2675         Formatting fixes.
2676
2677 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
2678
2679         * include/std/std_streambuf.h (uflow()): It's used only by
2680         basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
2681         therefore do not consider the _M_buf_unified == true case.
2682
2683         * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
2684
2685 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
2686
2687         * docs/html/ext/howto.html ('LWG Issues'):
2688         Add issues 19, 90, 171, 231, 271.
2689
2690 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
2691
2692         * include/bits/sstream.tcc (pbackfail): Remove redundant
2693         NULL pointer check from test involving _M_in_*.
2694         (overflow, seekoff, seekpos): Const qualify bool variables.
2695         * include/std/std_sstream.h (underflow): Remove redundant
2696         NULL pointer check from test involving _M_in_*.
2697         (_M_really_sync): Const qualify bool variables.
2698         * src/fstream.cc (_M_underflow_common): Remove redundant
2699         NULL pointer check from test involving _M_in_*, const qualify
2700         bool variables.
2701
2702         * include/std/std_streambuf.h (sgetc): Remove redundant
2703         variable.
2704
2705 2003-04-18  Paolo Carlini  <pcarlini@unitus.it>
2706
2707         According to 5.9 para 2 (second bullet) for pointers p, q
2708         pointing to the same type, with  p == 0 and q == 0, (p < q)
2709         is false.
2710         * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
2711         seekoff): Remove redundant NULL pointer checks from tests
2712         involving _M_out_* and _M_in_*, const qualify bool variables.
2713         (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
2714         qualify bool variables.
2715         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
2716         Remove redundant NULL pointer checks from tests involving
2717         _M_out_* and _M_in_*, const qualify bool variables.
2718         * include/std/std_fstream.h (sync): Likewise.
2719         (_M_is_indeterminate): Const qualify bool variables.
2720         * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
2721         NULL pointer checks from tests involving _M_out_* and _M_in_*,
2722         const qualify bool variables.
2723         (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
2724         variables.
2725
2726 2003-04-18  Loren J. Rittle  <ljrittle@acm.org>
2727
2728         * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
2729         C99 FP macros, if actually captured.
2730
2731         * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
2732         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
2733         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
2734         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
2735         * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
2736         New macro.
2737         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
2738         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
2739         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
2740         * include/c_std/std_cstdlib.h: Use new macros.
2741         * include/c_std/std_cstdio.h: Use new macros.
2742         * include/c_std/std_cwchar.h: Use new macros.
2743
2744 2003-04-17  Benjamin Kosnik  <bkoz@redhat.com>
2745
2746         PR libstdc++/9555
2747         * include/bits/ostream.tcc: Catch all exceptions for formatted
2748         output, instead of std::exception and derivatives.
2749         * include/bits/istream.tcc: Same.
2750         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
2751         * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
2752         * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
2753         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
2754         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2755         * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
2756         New.
2757
2758 2003-04-17  Phil Edwards  <pme@gcc.gnu.org>
2759
2760         * include/bits/c++config:  Minor cosmetic tweaks.
2761
2762 2003-04-17  Loren J. Rittle  <ljrittle@acm.org>
2763
2764         * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
2765         * include/Makefile.am (pch_input): Find in ${target_builddir}.
2766         (pch_output): Rename to...
2767         (pch_output_builddir): ..this.  Find in ${target_builddir}.
2768         (pch_source): Tweak.
2769         (pch_build): Key off a built file.
2770         (pch_output rule): Rename to...
2771         (pch_input rule): ...this.  Produce ${pch_output_builddir}
2772         instead of ${pch_output}.
2773         (install-pch rule): Install ${pch_output_builddir}.
2774         * include/Makefile.in: Regenerated.
2775
2776 2003-04-17  Paolo Carlini  <pcarlini@unitus.it>
2777
2778         * include/std/std_streambuf.h (setp): _M_out_lim, being
2779         the end limit of used put area, is set equal to _M_out_beg.
2780
2781 2003-04-16  Benjamin Kosnik  <bkoz@redhat.com>
2782
2783         * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
2784         * aclocal.m4: Regenerated.
2785         * configure.in: Remove old demangler bits.
2786         Call pch checks.
2787         * configure: Regenerate.
2788         * config.h.in: Regenerate.
2789         * include/Makefile.am (allstamps): Now allstamped.
2790         (allcreated): Define this.
2791         (all-local): Use 'em.
2792         Conditionally define pch_build, pch_install based on
2793         GLIBCPP_BUILD_PCH.
2794         (${pch_output}): New rule.
2795         (install-pch): New rule.
2796         (install-headers): New rule.
2797         (install-data-local): Install headers and conditionally pch.
2798         * include/Makefile.in: Regenerate.
2799         * testsuite_flags.in (--build-cxx): Use pch file.
2800
2801 2003-04-16  Jonathan Wakely  <redi@gcc.gnu.org>
2802
2803         * docs/html/ext/sgiexts.html: Fix path to stylesheet.
2804
2805 2003-04-15  Benjamin Kosnik  <bkoz at redhat dot com>
2806             Paolo Carlini  <pcarlini at unitus dot it>
2807
2808         PR libstdc++/9423
2809         * docs/html/27_io/howto.html
2810         ('The buffering is screwing up my program!'): Explain that
2811         opening counts as an I/O operation.
2812
2813 2003-04-15  Andreas Tobler  <a.tobler@schweiz.ch>
2814
2815         * testsuite/thread/pthread1.cc: Enable for darwin test.
2816         * testsuite/thread/pthread2.cc: Same.
2817         * testsuite/thread/pthread3.cc: Same.
2818         * testsuite/thread/pthread4.cc: Same.
2819         * testsuite/thread/pthread5.cc: Same.
2820         * testsuite/thread/pthread6.cc: Same.
2821
2822 2003-04-15  Loren J. Rittle  <ljrittle@acm.org>
2823
2824         libstdc++/7680
2825         * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
2826         Populate it with multiple legal ways to obtain the C99 float
2827         transcendentals.  Use them instead of direct global reference.
2828         (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
2829         * docs/html/17_intro/porting.texi
2830         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
2831         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
2832         (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
2833         * config/os/bsd/freebsd/os_defines.h
2834         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
2835         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
2836         * testsuite/26_numerics/c_math_dynamic.cc: New file.
2837
2838 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
2839             Benjamin Kosnik  <bkoz@redhat.com>
2840
2841         * config/os/generic/ctype_inline.h: Fix.
2842
2843 2003-04-14  Benjamin Kosnik  <bkoz@redhat.com>
2844
2845         * testsuite/testsuite_hooks.h
2846         (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
2847         Change to try_named_locale.
2848         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
2849
2850         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
2851         try_named_locale.
2852         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
2853         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
2854         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
2855         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
2856         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
2857         * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
2858         * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
2859         * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
2860         * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
2861         * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
2862         * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
2863         * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
2864         * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
2865         * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
2866         * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
2867         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
2868         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
2869         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
2870         * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
2871         * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
2872         * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
2873         * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
2874         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
2875         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
2876         * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
2877         * testsuite/22_locale/collate/compare/char/1.cc: Same.
2878         * testsuite/22_locale/collate/compare/char/2.cc: Same.
2879         * testsuite/22_locale/collate/compare/char/3.cc: Same.
2880         * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
2881         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
2882         * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
2883         * testsuite/22_locale/collate/hash/char/2.cc: Same.
2884         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
2885         * testsuite/22_locale/collate/transform/char/2.cc: Same.
2886         * testsuite/22_locale/collate/transform/char/3.cc: Same.
2887         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
2888         * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
2889         * testsuite/22_locale/collate_byname/1.cc: Same.
2890         * testsuite/22_locale/ctype/is/char/2.cc: Same.
2891         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2892         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
2893         * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
2894         * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
2895         * testsuite/22_locale/facet/2.cc: Same.
2896         * testsuite/22_locale/locale/cons/2.cc: Same.
2897         * testsuite/22_locale/locale/cons/4.cc: Same.
2898         * testsuite/22_locale/locale/cons/5.cc: Same.
2899         * testsuite/22_locale/locale/cons/7.cc: Same.
2900         * testsuite/22_locale/locale/cons/7222-c.cc: Same.
2901         * testsuite/22_locale/locale/cons/7222-env.cc: Same.
2902         * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
2903         * testsuite/22_locale/messages/members/char/1.cc: Same.
2904         * testsuite/22_locale/messages/members/char/2.cc: Same.
2905         * testsuite/22_locale/messages/members/char/3.cc: Same.
2906         * testsuite/22_locale/messages_byname/1.cc: Same.
2907         * testsuite/22_locale/money_get/get/char/1.cc: Same.
2908         * testsuite/22_locale/money_get/get/char/2.cc: Same.
2909         * testsuite/22_locale/money_get/get/char/3.cc: Same.
2910         * testsuite/22_locale/money_get/get/char/4.cc: Same.
2911         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
2912         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
2913         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
2914         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
2915         * testsuite/22_locale/money_put/put/char/1.cc: Same.
2916         * testsuite/22_locale/money_put/put/char/2.cc: Same.
2917         * testsuite/22_locale/money_put/put/char/3.cc: Same.
2918         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
2919         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
2920         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
2921         * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
2922         * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
2923         * testsuite/22_locale/moneypunct_byname/1.cc: Same.
2924         * testsuite/22_locale/num_get/get/char/1.cc: Same.
2925         * testsuite/22_locale/num_get/get/char/2.cc: Same.
2926         * testsuite/22_locale/num_get/get/char/3.cc: Same.
2927         * testsuite/22_locale/num_get/get/char/5.cc: Same.
2928         * testsuite/22_locale/num_get/get/char/6.cc: Same.
2929         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
2930         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
2931         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
2932         * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
2933         * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
2934         * testsuite/22_locale/num_put/put/char/1.cc: Same.
2935         * testsuite/22_locale/num_put/put/char/2.cc: Same.
2936         * testsuite/22_locale/num_put/put/char/3.cc: Same.
2937         * testsuite/22_locale/num_put/put/char/5.cc: Same.
2938         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
2939         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
2940         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
2941         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
2942         * testsuite/22_locale/numpunct/members/char/1.cc: Same.
2943         * testsuite/22_locale/numpunct/members/char/2.cc: Same.
2944         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
2945         * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
2946         * testsuite/22_locale/numpunct_byname/1.cc: Same.
2947         * testsuite/22_locale/numpunct_byname/2.cc: Same.
2948         * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
2949         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
2950         * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
2951         * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
2952         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
2953         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
2954         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
2955         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
2956         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
2957         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
2958         * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
2959         * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
2960         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
2961         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
2962         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
2963         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
2964         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
2965         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
2966         * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
2967         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
2968         * testsuite/22_locale/time_put/put/char/1.cc: Same.
2969         * testsuite/22_locale/time_put/put/char/2.cc: Same.
2970         * testsuite/22_locale/time_put/put/char/3.cc: Same.
2971         * testsuite/22_locale/time_put/put/char/4.cc: Same.
2972         * testsuite/22_locale/time_put/put/char/5.cc: Same.
2973         * testsuite/22_locale/time_put/put/char/6.cc: Same.
2974         * testsuite/22_locale/time_put/put/char/7.cc: Same.
2975         * testsuite/22_locale/time_put/put/char/8.cc: Same.
2976         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
2977         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
2978         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
2979         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
2980         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
2981         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
2982         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
2983         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
2984         * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
2985         * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
2986         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
2987         * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
2988         * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
2989
2990 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
2991
2992         * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
2993         solaris includes, not generic.
2994
2995 2003-04-14  Loren J. Rittle  <ljrittle@acm.org>
2996
2997         * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
2998
2999         * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
3000         * include/bits/concept_check.h: Fix multi-line comment.
3001         * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
3002         when target is *-*-freebsd*.
3003
3004 2003-04-14  Nathan Myers  <ncm@cantrip.org>
3005             Paolo Carlini  <pcarlini@unitus.it>
3006
3007         PR libstdc++/9701 (in_avail())
3008         * include/std/std_streambuf.h (in_avail): Simplify, in_avail
3009         doesn't care if there is anything in some putback cell.
3010         * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
3011
3012         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
3013         unused string literals.
3014
3015 2003-04-14  Paolo Carlini  <pcarlini@unitus.it>
3016
3017         * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
3018         _M_out_end, _M_set_indeterminate() does it.
3019
3020 2003-04-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3021
3022         * os/hpux/ctype_inline.h: Replace with gnu-linux version.
3023
3024 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
3025
3026         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
3027         Change basic_streambuf instantiation to "unsigned char".
3028         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3029
3030 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
3031
3032         Remove _M_buf_size_opt, use directly _M_buf_size instead.
3033         * include/bits/fstream.tcc
3034         (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
3035         references to _M_buf_size_opt.
3036         * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
3037         * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
3038         __bufsize to __in_avail and __size_opt to __buf_size.
3039         * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
3040         * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
3041         * include/std/std_streambuf.h (~basic_streambuf(),
3042         basic_streambuf()): Likewise, remove _M_buf_size_opt member.
3043         * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
3044         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
3045         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
3046         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
3047         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
3048         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
3049         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
3050         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
3051         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
3052         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
3053         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
3054         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
3055
3056 2003-04-12  Paolo Carlini  <pcarlini at unitus dot it>
3057
3058         * include/ext/stdio_filebuf.h
3059         (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
3060         stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
3061         _M_buf_size_opt == 0 only means "not to use an allocated buffer"
3062         since a stack-based buffer is used for small values of the size_t
3063         parameter.
3064         * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
3065         If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
3066         * testsuite/ext/stdio_filebuf_2.cc: New testfile.
3067
3068 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
3069
3070         PR libstdc++/9533
3071         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
3072         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
3073
3074 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
3075
3076         * testsuite/22_locale/locale/cons/3.cc: Split.
3077         * testsuite/22_locale/locale/cons/7222-c.cc: New.
3078         * testsuite/22_locale/locale/cons/7222-env.cc: New.
3079         Check before trying to create a locale from the environment.
3080         * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
3081         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3082         Adjust includes.
3083
3084 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
3085
3086         * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
3087         locale to construct this hybrid locale, not the global locale.
3088
3089 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
3090
3091         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
3092         instantiation for AIX.
3093         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3094         * testsuite/25_algorithms/min_max.cc: Same.
3095
3096 2003-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3097
3098         * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
3099         twice.  Always set _M_cfile to 0 when stream was open.
3100
3101 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
3102
3103         Reshuffle 27_io testsuite.  * testsuite/27_io/filebuf.cc,
3104         filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
3105         filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
3106         filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
3107         filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
3108         ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
3109         ifstream_members.cc, instantiations.cc, ios.cc,
3110         ios_base_callbacks.cc, ios_base_members_static-1.tst,
3111         ios_base_members_static.cc, ios_base_storage.cc,
3112         ios_base_types.cc, ios_ctor.cc, ios_init.cc,
3113         ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
3114         iostream.cc, iostream_members.cc, istream.cc,
3115         istream_exception.cc, istream_extractor_char.cc,
3116         istream_extractor_other-1.tst, istream_extractor_other-1.txt,
3117         istream_extractor_other-2.tst, istream_extractor_other.cc,
3118         istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
3119         istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
3120         istream_sentry.cc, istream_unformatted-1.tst,
3121         istream_unformatted-1.txt, istream_unformatted.cc,
3122         istringstream.cc, istringstream_members.cc,
3123         narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
3124         ofstream_members.cc, ostream.cc, ostream_exception.cc,
3125         ostream_fail.cc, ostream_inserter_arith.cc,
3126         ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
3127         ostream_inserter_char.cc, ostream_inserter_other-1.tst,
3128         ostream_inserter_other-2.tst, ostream_inserter_other.cc,
3129         ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
3130         ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
3131         ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
3132         streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
3133         stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
3134         wide_stream_objects.cc, istream_extractor_arith/01.cc,
3135         istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
3136         istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
3137         istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
3138         istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
3139         istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
3140         Split into...
3141         * 27_io/basic_filebuf/1.cc: New.
3142         * 27_io/basic_filebuf/2.cc: New.
3143         * 27_io/basic_filebuf/3.cc: New.
3144         * 27_io/basic_filebuf/4.cc: New.
3145         * 27_io/basic_filebuf/close/char/1.cc: New.
3146         * 27_io/basic_filebuf/close/char/2.cc: New.
3147         * 27_io/basic_filebuf/close/char/3.cc: New.
3148         * 27_io/basic_filebuf/close/char/4879.cc: New.
3149         * 27_io/basic_filebuf/close/char/9964.cc: New.
3150         * 27_io/basic_filebuf/imbue/char/1.cc: New.
3151         * 27_io/basic_filebuf/imbue/char/9322.cc: New.
3152         * 27_io/basic_filebuf/in_avail/char/1.cc: New.
3153         * 27_io/basic_filebuf/is_open/char/1.cc: New.
3154         * 27_io/basic_filebuf/open/char/1.cc: New.
3155         * 27_io/basic_filebuf/open/char/2.cc: New.
3156         * 27_io/basic_filebuf/open/char/3.cc: New.
3157         * 27_io/basic_filebuf/open/char/9507.cc: New.
3158         * 27_io/basic_filebuf/overflow/char/1.cc: New.
3159         * 27_io/basic_filebuf/overflow/char/3599.cc: New.
3160         * 27_io/basic_filebuf/overflow/char/9169.cc: New.
3161         * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
3162         * 27_io/basic_filebuf/overflow/char/9988.cc: New.
3163         * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
3164         * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
3165         * 27_io/basic_filebuf/seekoff/char/1.cc: New.
3166         * 27_io/basic_filebuf/seekoff/char/2.cc: New.
3167         * 27_io/basic_filebuf/seekpos/char/1.cc: New.
3168         * 27_io/basic_filebuf/seekpos/char/2.cc: New.
3169         * 27_io/basic_filebuf/setbuf/char/1.cc: New.
3170         * 27_io/basic_filebuf/setbuf/char/2.cc: New.
3171         * 27_io/basic_filebuf/setbuf/char/3.cc: New.
3172         * 27_io/basic_filebuf/sgetc/char/1.cc: New.
3173         * 27_io/basic_filebuf/sgetn/char/1.cc: New.
3174         * 27_io/basic_filebuf/sgetn/char/2.cc: New.
3175         * 27_io/basic_filebuf/snextc/char/1.cc: New.
3176         * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
3177         * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
3178         * 27_io/basic_filebuf/sputc/char/1.cc: New.
3179         * 27_io/basic_filebuf/sputc/char/1057.cc: New.
3180         * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
3181         * 27_io/basic_filebuf/sputn/char/1.cc: New.
3182         * 27_io/basic_filebuf/sputn/char/1057.cc: New.
3183         * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
3184         * 27_io/basic_filebuf/sungetc/char/1.cc: New.
3185         * 27_io/basic_filebuf/sync/char/1057.cc: New.
3186         * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
3187         * 27_io/basic_filebuf/underflow/char/10097.cc: New.
3188         * 27_io/basic_fstream/1.cc: New.
3189         * 27_io/basic_fstream/2.cc: New.
3190         * 27_io/basic_fstream/3.cc: New.
3191         * 27_io/basic_fstream/4.cc: New.
3192         * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
3193         * 27_io/basic_ifstream/1.cc: New.
3194         * 27_io/basic_ifstream/2.cc: New.
3195         * 27_io/basic_ifstream/3.cc: New.
3196         * 27_io/basic_ifstream/4.cc: New.
3197         * 27_io/basic_ifstream/cons/char/1.cc: New.
3198         * 27_io/basic_ifstream/open/char/1.cc: New.
3199         * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
3200         * 27_io/basic_ios/1.cc: New.
3201         * 27_io/basic_ios/2.cc: New.
3202         * 27_io/basic_ios/3.cc: New.
3203         * 27_io/basic_ios/4.cc: New.
3204         * 27_io/basic_ios/clear/char/1.cc: New.
3205         * 27_io/basic_ios/cons/char/1.cc: New.
3206         * 27_io/basic_ios/cons/char/2.cc: New.
3207         * 27_io/basic_ios/cons/char/3.cc: New.
3208         * 27_io/basic_ios/copyfmt/char/1.cc: New.
3209         * 27_io/basic_ios/copyfmt/char/2.cc: New.
3210         * 27_io/basic_ios/exceptions/char/1.cc: New.
3211         * 27_io/basic_ios/locales/char/1.cc: New.
3212         * 27_io/basic_iostream/1.cc: New.
3213         * 27_io/basic_iostream/2.cc: New.
3214         * 27_io/basic_iostream/3.cc: New.
3215         * 27_io/basic_iostream/4.cc: New.
3216         * 27_io/basic_istream/1.cc: New.
3217         * 27_io/basic_istream/2.cc: New.
3218         * 27_io/basic_istream/3.cc: New.
3219         * 27_io/basic_istream/4.cc: New.
3220         * 27_io/basic_istream/exceptions/char/9561.cc: New.
3221         * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
3222         * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
3223         * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
3224         * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
3225         * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
3226         * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
3227         * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
3228         * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
3229         * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
3230         * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
3231         * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
3232         * 27_io/basic_istream/extractors_character/char/1.cc: New.
3233         * 27_io/basic_istream/extractors_character/char/2.cc: New.
3234         * 27_io/basic_istream/extractors_character/char/3.cc: New.
3235         * 27_io/basic_istream/extractors_character/char/9826.cc: New.
3236         * 27_io/basic_istream/extractors_other/char/1.cc: New.
3237         * 27_io/basic_istream/extractors_other/char/2.cc: New.
3238         * 27_io/basic_istream/extractors_other/char/3.cc: New.
3239         * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
3240         * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
3241         * 27_io/basic_istream/get/char/1.cc: New.
3242         * 27_io/basic_istream/get/char/2.cc: New.
3243         * 27_io/basic_istream/getline/char/1.cc: New.
3244         * 27_io/basic_istream/getline/char/2.cc: New.
3245         * 27_io/basic_istream/getline/char/3.cc: New.
3246         * 27_io/basic_istream/ignore/char/1.cc: New.
3247         * 27_io/basic_istream/ignore/char/6360.cc: New.
3248         * 27_io/basic_istream/ignore/char/7220.cc: New.
3249         * 27_io/basic_istream/peek/char/1.cc: New.
3250         * 27_io/basic_istream/peek/char/6414.cc: New.
3251         * 27_io/basic_istream/putback/char/1.cc: New.
3252         * 27_io/basic_istream/read/char/1.cc: New.
3253         * 27_io/basic_istream/read/char/2.cc: New.
3254         * 27_io/basic_istream/read/char/3.cc: New.
3255         * 27_io/basic_istream/readsome/char/6746-1.cc: New.
3256         * 27_io/basic_istream/readsome/char/6746-2.cc: New.
3257         * 27_io/basic_istream/readsome/char/8258.cc: New.
3258         * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
3259         * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
3260         * 27_io/basic_istream/seekg/char/8348-1.cc: New.
3261         * 27_io/basic_istream/seekg/char/8348-2.cc: New.
3262         * 27_io/basic_istream/seekg/char/fstream.cc: New.
3263         * 27_io/basic_istream/seekg/char/sstream.cc: New.
3264         * 27_io/basic_istream/sentry/char/1.cc: New.
3265         * 27_io/basic_istream/sentry/char/2.cc: New.
3266         * 27_io/basic_istream/sentry/char/3.cc: New.
3267         * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
3268         * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
3269         * 27_io/basic_istream/tellg/char/1.cc: New.
3270         * 27_io/basic_istream/tellg/char/8348.cc: New.
3271         * 27_io/basic_istream/tellg/char/fstream.cc: New.
3272         * 27_io/basic_istream/tellg/char/sstream.cc: New.
3273         * 27_io/basic_istream/ws/char/1.cc: New.
3274         * 27_io/basic_istringstream/1.cc: New.
3275         * 27_io/basic_istringstream/2.cc: New.
3276         * 27_io/basic_istringstream/3.cc: New.
3277         * 27_io/basic_istringstream/4.cc: New.
3278         * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
3279         * 27_io/basic_istringstream/str/char/1.cc: New.
3280         * 27_io/basic_ofstream/1.cc: New.
3281         * 27_io/basic_ofstream/2.cc: New.
3282         * 27_io/basic_ofstream/3.cc: New.
3283         * 27_io/basic_ofstream/4.cc: New.
3284         * 27_io/basic_ofstream/cons/char/2.cc: New.
3285         * 27_io/basic_ofstream/open/char/1.cc: New.
3286         * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
3287         * 27_io/basic_ostream/1.cc: New.
3288         * 27_io/basic_ostream/2.cc: New.