1 2003-07-24 Matt Austern <austern@apple.com>
3 * /include/bits/char_traits.h (class char_traits): Put all the
4 real work into the new class template __gnu_cxx::char_traits.
5 Gave generic definitions for member functions. Types are taken
6 from the new class template __gnu_cxx::_Char_types.
7 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
8 file. Test of std::char_traits<short>, which serves as a test of
9 the char_traits primary template.
11 2003-07-24 Benjamin Kosnik <bkoz@redhat.com>
13 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
15 2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
17 * testsuite/23_containers/map_operators.cc: Conform to
18 container requirement as value must be Assignable.
20 2003-07-23 Alexandre Oliva <aoliva@redhat.com>
22 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
23 tests not only generation of pch files, but also their use.
24 * aclocal.m4, configure: Rebuilt.
26 2003-07-23 Steve Ellcey <sje@cup.hp.com>
28 * config/cpu/hppa/atomicity.h: Change
29 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
32 2003-07-23 Steve Ellcey <sje@cup.hp.com>
34 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
35 * include/c_std/std_cctype.h: Ditto.
36 * include/c_std/std_cerrno.h: Ditto.
37 * include/c_std/std_cfloat.h: Ditto.
38 * include/c_std/std_climits.h: Ditto.
39 * include/c_std/std_clocale.h: Ditto.
40 * include/c_std/std_cmath.h: Ditto.
41 * include/c_std/std_csetjmp.h: Ditto.
42 * include/c_std/std_csignal.h: Ditto.
43 * include/c_std/std_cstdarg.h: Ditto.
44 * include/c_std/std_cstddef.h: Ditto.
45 * include/c_std/std_cstdio.h: Ditto.
46 * include/c_std/std_cstdlib.h: Ditto.
47 * include/c_std/std_cstring.h: Ditto.
48 * include/c_std/std_ctime.h: Ditto.
49 * include/c_std/std_cwchar.h: Ditto.
50 * include/c_std/std_cwctype.h: Ditto.
51 * include/std/std_algorithm.h: Ditto.
52 * include/std/std_bitset.h: Ditto.
53 * include/std/std_complex.h: Ditto.
54 * include/std/std_deque.h: Ditto.
55 * include/std/std_fstream.h: Ditto.
56 * include/std/std_functional.h: Ditto.
57 * include/std/std_iomanip.h: Ditto.
58 * include/std/std_ios.h: Ditto.
59 * include/std/std_iosfwd.h: Ditto.
60 * include/std/std_iostream.h: Ditto.
61 * include/std/std_istream.h: Ditto.
62 * include/std/std_iterator.h: Ditto.
63 * include/std/std_limits.h: Ditto.
64 * include/std/std_list.h: Ditto.
65 * include/std/std_locale.h: Ditto.
66 * include/std/std_map.h: Ditto.
67 * include/std/std_memory.h: Ditto.
68 * include/std/std_numeric.h: Ditto.
69 * include/std/std_ostream.h: Ditto.
70 * include/std/std_queue.h: Ditto.
71 * include/std/std_set.h: Ditto.
72 * include/std/std_sstream.h: Ditto.
73 * include/std/std_stack.h: Ditto.
74 * include/std/std_stdexcept.h: Ditto.
75 * include/std/std_streambuf.h: Ditto.
76 * include/std/std_string.h: Ditto.
77 * include/std/std_utility.h: Ditto.
78 * include/std/std_valarray.h: Ditto.
79 * include/std/std_vector.h: Ditto.
81 2003-07-22 Doug Gregor <dgregor@apple.com>
83 * include/bits/basic_string.h (basic_string::insert): Deprecate
86 2003-07-21 Benjamin Kosnik <bkoz@redhat.com>
88 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
90 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
91 (test03): Include typeinfo for bad_cast.
92 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
93 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
94 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
96 2003-07-21 Doug Gregor <dgregor@apple.com>
98 * include/bits/boost_concept_check.h:
99 (_EqualityComparableConcept::__constraints): Remove != from the
100 list of constraints; it is not listed in Table 28 of the C++98
103 2003-07-18 Andreas Jaeger <aj@suse.de>
105 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
106 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
107 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
108 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
110 2003-07-17 Benjamin Kosnik <bkoz@redhat.com>
112 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
113 * config/locale/generic/messages_members.h: Tweaks.
114 * config/locale/generic/monetary_members.cc
115 (moneypunct::_M_initialize_moneypunct): Use cache.
116 (moneypunct::~moneypunct): Delete cache.
117 * config/locale/generic/time_members.cc:
118 (__timepunct::_M_initialize_timepunct): Use cache.
119 * config/locale/generic/time_members.h:
120 (__timepunct::~__timepunct): Delete cache.
121 (__timepunct::__timepunct): Set cache.
122 * config/locale/gnu/messages_members.h: Tweaks.
123 * config/locale/gnu/monetary_members.cc:
124 (moneypunct::_M_initialize_moneypunct): Use cache.
125 (moneypunct::~moneypunct): Delete cache.
126 * config/locale/gnu/time_members.cc:
127 (__timepunct::_M_initialize_timepunct): Use cache.
128 * config/locale/gnu/time_members.h:
129 (__timepunct::~__timepunct): Delete cache.
130 (__timepunct::__timepunct): Set cache.
131 * include/bits/locale_facets.h (__timepunct_cache): New.
132 (__moneypunct_cache): New.
133 * include/bits/locale_facets.tcc: Tweak.
134 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
135 * src/locale-inst.cc: Instantiate caches.
136 * src/globals.cc: Add "C" caches.
137 * src/localename.cc: Use external "C" caches.
139 2003-07-17 Phil Edwards <pme@gcc.gnu.org>
141 * docs/doxygen/guide.html: Fix typo.
143 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
145 * include/ext/pod_char_traits.h: Add state template argument.
147 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
149 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
150 (num_get::_M_convert_int): To _M_insert_int.
151 (num_get::_M_convert_float): To _M_insert_float.
152 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
153 Use caches for ctype, num_get.
154 (num_get::_M_extract_int): Same.
155 (num_get::get(bool)): Same.
156 (__verify_grouping): Use size_t.
157 * src/locale-inst.cc: Update.
158 * src/locale.cc: Adjust _S_atoms_in.
160 2003-07-16 Phil Edwards <pme@gcc.gnu.org>
162 * docs/doxygen/mainpage.html: Move building/writing instructions...
163 * docs/doxygen/guide.html: ...to here. New file.
165 2003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
167 * docs/html/ext/howto.html: Update URL for SGI STL docs.
168 * docs/html/faq/index.html: Same.
169 * docs/html/faq/index.txt: Regenerate.
171 2003-07-16 Paolo Carlini <pcarlini@unitus.it>
174 * include/bits/locale_facets.tcc (money_get::do_get):
175 Strip only _leading_ zeros.
176 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
177 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
179 2003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
181 * include/ext/hash_map (class hash_multimap): Remove extra
182 semicolons from __glibcxx_class_requires3 entries.
183 * include/ext/hash_set (class hash_set): Ditto.
184 (class hash_multiset): Ditto.
186 2003-07-15 Petur Runolfsson <peturr02@ru.is>
188 * include/bits/char_traits.h (char_traits<wchar_t>::move):
189 Change last parameter from int_type to size_t.
191 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
193 * include/bits/stl_algo.h (includes, set_union, set_intersection,
194 set_difference, set_symmetric_difference, max_element, min_element,
195 next_permutation, prev_permutation, find_first_of, find_end):
197 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
198 restrictions in docs.
199 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
201 * docs/doxygen/doxygroups.cc (setoperations): New group.
203 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
205 * include/bits/basic_string.h: Document public functions.
206 * docs/doxygen/TODO: Update c21 todo.
208 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
210 * include/bits/stl_list.h: Document more functions.
211 * docs/doxygen/TODO: Update c23 todo.
213 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
215 * config/locale/gnu/c_locale.h (__convert_from_v): One more
218 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
220 * include/bits/stl_tempbuf.h: Qualify free with std::.
221 * src/locale.cc: Include <cstdlib>, qualify getenv.
223 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
225 * config/locale/gnu/c_locale.h (__convert_from_v): Include
226 <cstdio>. Qualify names.
227 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
229 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
230 Nathan C. Myers <ncm-nospam@cantrip.org>
233 * include/std/std_fstream.h (xsputn): Declare only.
234 * include/bits/fstream.tcc (xsputn): Define, optimize for the
235 always_noconv() case: when __n is sufficiently large flush
236 the buffer and issue a direct write, if possible combining the
237 two with writev in __basic_file<>::xsputn_2.
238 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
240 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
242 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
243 the availability of writev in <sys/uio.h>.
244 * configure.in: Call here.
245 * acconfig.h: Add undef for the corresponding symbol.
246 * aclocal.m4: Regenerate.
247 * configure: Regenerate.
248 * config.h.in: Regenerate.
249 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
251 * include/std/std_fstream.h (sync): Constify a variable.
253 2003-07-14 Benjamin Kosnik <bkoz@redhat.com>
255 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
256 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
258 2003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
260 * config/locale/gnu/c_locale.h (__convert_from_v): Include
261 <cstring> and <cstdlib>. Qualify names.
263 2003-07-13 Mark Mitchell <mark@codesourcery.com>
265 * config/locale/generic/c_locale.h: Include <cstdlib> and
267 * include/bits/boost_concept_check.h: Add this-> to unqualified
269 * include/bits/deque.tcc: Likewise.
270 * include/bits/locale_facets.h : Likewise.
271 * include/bits/ostream.tcc: Likewise.
272 * include/bits/stl_algo.h: Likewise.
273 * include/bits/stl_bvector.h: Likewise.
274 * include/bits/stl_deque.h: Likewise.
275 * include/bits/stl_list.h: Likewise.
276 * include/bits/stl_tree.h: Likewise.
277 * include/bits/stl_vector.h: Likewise.
278 * include/bits/vector.tcc: Likewise.
279 * include/ext/rope: Likewise.
280 * include/ext/ropeimpl.h: Likewise.
281 * include/ext/stdio_filebuf.h: Likewise.
283 2003-07-11 Jerry Quinn <jlquinn@optonline.net>
285 * include/bits/basic_ios.h (copyfmt): Document.
286 * include/bits/ios_base.h (event, event_callback, register_callback,
287 xalloc, iword, pword): Document.
288 (imbue, ~ios_base): Update docs on callbacks.
290 2003-07-11 Phil Edwards <pme@gcc.gnu.org>
292 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
293 warning messages if the environment cannot support symbol versioning.
294 (port_specific_symbol_file): It's plural, add an 's' on the end.
295 * configure.host: Likewise.
296 * src/Makefile.am: Likewise.
297 * config/linker-map.gnu: Remove one semicolon, heh.
298 * scripts/extract_symvers: Don't assume useful 'export' syntax.
299 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
300 * aclocal.m4, configure, src/Makefile.in: Regenerated.
302 2003-07-09 Benjamin Kosnik <bkoz@redhat.com>
304 * include/bits/locale_facets.tcc: Use function object for
305 __use_cache instead of template function. Partially specialize for
307 * include/bits/locale_classes.h: Update friend declaration for
309 (_M_install_cache): No throw exception specs.
310 * src/locale.cc: Remove __use_cache specializations.
311 * include/ext/pod_char_traits.h (length): Tweak.
312 * include/bits/locale_facets.h (__numpunct_cache): Remove
314 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
316 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
317 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
318 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
319 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
320 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
321 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
323 2003-07-09 Jerry Quinn <jlquinn@optonline.net>
325 * src/ios.cc (_M_grow_words): Fix spelling.
327 2003-07-09 Gawain Bolton <gp.bolton@computer.org>
329 * include/bits/stl_tree.h: Move larger member functions in
330 _Rb_tree_base_iterator and _Rb_tree_node to...
331 * src/stl_tree.cc: Here.
332 * src/Makefile.in: Add stl_tree.cc.
333 * src/Makefile.in: Regenerated.
334 * config/linker-map.gnu: Add symbols here.
336 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
338 * testsuite/ext/pod_char_traits.cc: New.
339 * include/ext/pod_char_traits.h: New.
340 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
341 * include/Makefile.in: Regenerate.
342 * docs/html/21_strings/howto.html: Update.
344 2003-07-08 Gawain Bolton <gp.bolton@computer.org>
346 * testsuite/performance/list_create_fill_sort.cc: New.
348 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
350 * config/locale/generic/numeric_members.cc: Correct type info.
351 * config/locale/gnu/numeric_members.cc: Same.
352 * include/bits/locale_facets.h: Same.
354 * include/bits/char_traits.h: Correct spacing.
356 * src/locale.cc: Wrap to 80 col.
358 2003-07-07 Paolo Carlini <pcarlini@unitus.it>
360 * include/std/std_complex.h: Partially revert last
361 changes: cmath functions must not be qualified.
363 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
365 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
366 2.11 with globbing backport fix.
367 * aclocal.m4, configure: Regenerated.
369 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
371 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
372 if output is at all possible (!_M_reading), cannot be active.
374 * include/std/std_fstream.h: Tweak comments to doxygen style.
376 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
378 * include/bits/locale_classes.h: Fully qualify standard
379 functions with std::, thus avoiding Koenig lookup.
380 * include/bits/locale_facets.tcc: Likewise.
381 * src/locale.cc: Likewise.
382 * src/localename.cc: Likewise.
384 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
386 * include/bits/allocator_traits.h: Fix doxygen markup.
387 * include/ext/mt_allocator.h: Likewise.
389 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
391 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
393 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
395 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
396 requirement. Add port_specific_symbol_file variable.
397 * configure.host: Add docs for port_specific_symbol_file.
398 Clean up try_cpu block for x86.
399 * config/linker-map.gnu: No more "last symbol can't have a
400 semicolon" kaka. Add hook for port-specific symbols.
401 * src/Makefile.am: Remove trailing whitespace.
402 (libstdc++-symbol.ver): Detect the presence of port-specific
403 symbols, and add them accordingly.
405 * docs/html/17_intro/porting.texi: Bring up to date.
407 * src/Makefile.in, aclocal.m4, configure,
408 docs/html/17_intro/porting.html: Regenerated.
410 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
412 * scripts/create_testsuite_files: New file.
413 * testsuite/Makefile.am (all-local, check-performance): Use it.
414 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
415 * testsuite/Makefile.in: Regenerated.
417 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
419 * testsuite/performance/fstream_seek_write.cc: Likewise.
420 * testsuite/performance/ofstream_insert_float.cc: Likewise.
421 * testsuite/performance/ofstream_insert_int.cc: Likewise.
422 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
424 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
426 * include/bits/stl_list.h: Performance and memory usage
427 improvements. In particular, the behaviour of the constructor and
428 destructor as the list header node is no longer dynamically
429 allocated/de-allocated.
430 * include/bits/list.tcc: Likewise.
432 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
434 * include/std/std_complex.h: Fully qualify standard
435 functions with std::, thus avoiding Koenig lookup.
436 * include/std/std_memory.h: Likewise.
437 * include/std/std_valarray.h: Likewise.
439 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
441 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
442 variable for grandparent and use const
444 2003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
446 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
447 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
448 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
449 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
450 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
451 * testsuite/27_io/objects/char/7.cc: Ditto
452 * testsuite/27_io/objects/char/9661-1.cc: Ditto
454 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
456 * include/std/std_bitset.h: Fully qualify standard
457 functions with std::, thus avoiding Koenig lookup.
459 * include/std/std_fstream.h: Change comment to doxygen style.
461 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
463 * include/std/std_limits.h: More CPP->CXX changes.
464 * scripts/check_survey.in: Likewise.
466 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
468 Move from CPP to CXX.
469 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
470 * testsuite/Makefile.am: Same.
471 * testsuite/Makefile.in: Regenerate.
472 * po/Makefile.am: Same.
473 * po/Makefile.in: Regenerate.
474 * libsupc++/Makefile.am: Same.
475 * libsupc++/Makefile.in: Regenerate.
476 * libmath/Makefile.am: Same.
477 * libmath/Makefile.in: Regenerate.
478 * include/Makefile.am: Same.
479 * include/Makefile.in: Regenerate.
480 * src/Makefile.am: Same.
481 * src/Makefile.in: Regenerate.
483 * configure.host: Same.
484 * configure.in: Same.
485 * configure: Regenerate.
486 * acinclude.m4: Same.
488 * src: Change all files in this directory.
490 * include: Same, standardize include guards.
494 2003-07-04 Zack Weinberg <zack@codesourcery.com>
496 * testsuite/22_locale/collate/compare/wchar_t/2.cc
497 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
498 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
499 * testsuite/22_locale/collate/hash/wchar_t/2.cc
500 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
501 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
502 * testsuite/22_locale/collate/transform/wchar_t/2.cc
503 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
504 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
505 XFAIL on all targets.
507 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
509 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
510 * aclocal.m4: Regenerate.
511 * configure: Regenerate.
513 2003-07-04 Jerry Quinn <jlquinn@optonline.net>
515 * include/bits/locale_facets.tcc (__int_to_char): Move common case
518 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
519 Petur Runolfsson <peturr02@ru.is>
521 * config/io/basic_file_stdio.cc: Revert.
523 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
525 * include/bits/deque.tcc: Fully qualify standard
526 functions with std::, thus avoiding Koenig lookup.
527 * include/bits/gslice_array.h: Likewise.
528 * include/bits/indirect_array.h: Likewise.
529 * include/bits/list.tcc: Likewise.
530 * include/bits/mask_array.h: Likewise.
531 * include/bits/slice_array.h: Likewise.
533 2003-07-04 Gawain Bolton <gbolton@free.fr>
535 * include/bits/stl_tree.h: Performance and memory usage
538 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
540 * Makefile.am: Replace PWD with PWD_COMMAND.
541 * Makefile.in: Regenerated.
542 * docs/html/Makefile: Likewise.
544 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
546 * include/bits/valarray_array.h: Fully qualify standard
547 functions with std::, thus avoiding Koenig lookup.
548 * include/bits/vector.tcc: Likewise.
550 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
552 * include/Makefile.am: Update target_ to host_.
553 * include/Makefile.in: Regenerate.
554 * src/Makefile.am: Same.
555 * src/Makefile.in: Regenerate.
557 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
559 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
561 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
562 --enable-libstdcxx-debug-flags.
563 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
564 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
565 * aclocal.m4: Regenerate.
567 * docs/html/configopts.html: Update.
569 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
571 Revert the fix for libstdc++/11378.
573 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
576 * include/std/std_fstream.h (xsputn): In the unbuffered case,
577 provided always_noconv(), issue directly _M_file.xsputn.
578 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
580 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
582 * include/bits/stl_list.h: Fully qualify standard
583 functions with std::, thus avoiding Koenig lookup.
584 * include/bits/stl_queue.h: Likewise.
585 * include/bits/stl_raw_storage_iter.h: Likewise.
586 * include/bits/stl_tempbuf.h: Likewise.
587 * include/bits/stl_tree.h: Likewise.
588 * include/bits/stl_uninitialized.h: Likewise.
589 * include/bits/stl_vector.h: Likewise.
590 * include/ext/rope: Change includes order.
592 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
594 * configure.host (fpos_include_dir): Fix.
596 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
598 * include/bits/stl_heap.h: Fully qualify standard
599 functions with std::, thus avoiding Koenig lookup.
600 * include/bits/stl_iterator_base_funcs.h: Likewise.
602 * include/bits/stl_algo.h: Qualify __iterator_category too.
603 * include/bits/stl_algobase.h: Likewise.
604 * include/bits/stl_bvector.h: Likewise.
606 * include/bits/stl_algo.h: Don't qualify the pair type.
608 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
610 * include/Makefile.am (target_headers): Add fpos.h
611 (bits_headers): Remove.
612 * include/Makefile.in: Regenerate.
613 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
614 * configure: Regenerate.
615 * configure.host: Add fpos_include_dir.
616 * config/os/gnu-linux/fpos.h: New.
617 * config/os/generic/fpos.h: Add.
618 * include/bits/fpos.h: Remove.
620 * config/io/c_io_stdio.h: Remove fpos_t typedef.
622 * include/bits/fstream.tcc: Tweaks.
623 * include/std/std_fstream.h: Same.
625 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
626 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
627 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
628 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
629 * testsuite/27_io/fpos/1.cc: New.
631 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
632 Petur Runolfsson <peturr02@ru.is>
634 * include/std/std_streambuf.h: Remove _M_pos.
635 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
636 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
637 use fread/fwrite instead of read/write.
638 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
639 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
640 before reading again.
641 * testsuite/27_io/objects/char/6.cc: Tweak.
643 2003-07-03 David Edelsohn <edelsohn@gnu.org>
645 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
646 _GLIBCPP_USE_WCHAR_T.
648 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
650 * include/bits/basic_string.tcc (_M_replace_aux): Constify
653 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
655 * include/bits/stl_bvector.h: Fully qualify standard
656 functions with std::, thus avoiding Koenig lookup.
657 * include/bits/stl_construct.h: Likewise.
658 * include/bits/stl_deque.h: Likewise.
660 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
662 * testsuite/22_locale/num_put/put/char/7.cc: Include
663 <testsuite_hooks.h>, tweak.
664 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
666 2003-07-01 Phil Edwards <pme@gcc.gnu.org>
668 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
669 check* targets, but not libs/programs).
670 * testsuite/Makefile.in: Regenerate.
672 2003-07-01 Roger Sayle <roger@eyesopen.com>
674 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
675 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
676 * aclocal.m4: Regenerate.
677 * configure: Regenerate.
679 2003-07-01 Benjamin Kosnik <bkoz@redhat.com>
681 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
682 * aclocal.m4: Regenerated.
683 * configure: Regenerated.
685 2003-07-01 Paolo Carlini <pcarlini@unitus.it>
688 * include/bits/fstream.tcc (underflow): For encoding() == 0
689 don't read more than __buflen chars.
690 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
691 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
692 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
693 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
695 2003-07-01 Jerry Quinn <jlquinn@optonline.net>
697 * 22_locale/num_put/put/char/7.cc: New.
698 * 22_locale/num_put/put/wchar_t/7.cc: New.
700 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
702 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
703 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
705 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
707 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
708 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
709 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
710 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
711 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
712 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
713 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
714 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
715 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
716 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
717 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
718 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
719 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
720 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
721 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
722 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
723 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
724 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
725 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
726 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
727 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
728 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
729 * data/seekoff-1.tst: Remove.
730 * data/seekoff-1io.tst: New.
731 * data/seekoff-1out.tst: New.
732 * data/seekoff-2.tst: Remove.
733 * data/seekoff-2io.tst: New.
734 * data/seekoff-2out.tst: New.
736 * data/seekpos-1.tst: Remove.
737 * data/seekpos-1io.tst: New.
738 * data/seekpos-1out.tst: New.
739 * data/seekpos-2.tst: Remove.
740 * data/seekpos-2io.tst: New.
741 * data/seekpos-2out.tst: New.
742 * data/seekpos.txt: New.
744 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
746 * src/locale.cc (__use_cache<numpunct>): Move from here ...
747 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
750 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
752 * include/bits/stl_algobase.h: Fully qualify standard
753 functions with std::, thus avoiding Koenig lookup.
755 2003-06-30 Doug Gregor <dgregor@apple.com>
757 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
758 subscripting empty string.
760 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
762 * testsuite/Makefile.am (check-am): Do not override.
763 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
764 * testsuite/Makefile.in: Regenerate.
766 2003-06-30 Doug Gregor <dgregor@apple.com>
768 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
769 Don't initialize an insert_iterator with a singular iterator.
771 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
773 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
774 * aclocal.m4: Regenerate.
775 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
776 GLIBCPP_ENABLE_PCH, default to yes.
777 * configure: Regenerate.
778 * docs/html/configopts.html: Add --enable-pch.
780 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
782 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
783 (libstdc++-v3-init): Also set LD_RUN_PATH.
785 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
787 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
788 from here to filebuf and stringbuf.
789 (~basic_streambuf()): Don't set _M_mode.
790 (basic_streambuf()): Don't set _M_mode.
791 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
792 (~basic_filebuf()): Clean up.
793 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
794 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
795 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
796 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
797 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
798 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
799 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
801 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
803 * include/std/std_fstream.h (_M_underflow): Remove.
804 (uflow): Remove, inherited from streambuf.
805 (underflow): Only declare.
806 * include/bits/fstream.tcc (_M_underflow): Rename to
807 underflow, to which is equivalent for __bump == false,
809 * include/std/std_sstream.h (_M_underflow): Remove.
810 (uflow): Remove, inherited from streambuf.
811 (underflow): Only declare.
812 * include/bits/sstream.tcc (_M_underflow): Rename to
813 underflow, to which is equivalent for __bump == false,
816 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
818 * include/bits/stl_algo.h: Fully qualify standard functions
819 with std::, thus avoiding Koenig lookup.
821 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
823 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
824 Improve type correctness-wise.
825 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
827 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
829 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
832 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
834 * include/std/std_streambuf.h (uflow): According to
835 27.5.2.4.3,p16, don't check gptr() < egptr().
837 2003-06-28 Paolo Carlini <pcarlini@unitus.it>
840 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
842 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
844 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
847 2003-06-27 Benjamin Kosnik <bkoz@redhat.com>
849 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
850 output name to libstdc++-v3-performance.sum.
851 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
852 * testsuite/Makefile.in: Regenerate.
854 2003-06-27 Matthias Klose <doko@debian.org>
856 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
857 output of abi-check in libstdc++-v3-abi.sum.
858 * testsuite/Makefile.in: Regenerate.
860 2003-06-27 Krister Walfridsson <cato@df.lth.se>
862 * config/os/bsd/netbsd/ctype_noninline.h
863 (_C_ctype_): Declare.
864 (ctype<char>::classic_table): Return _C_ctype_ + 1.
865 (ctype<char>::ctype): Use classic_table.
867 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
868 Nathan C. Myers <ncm-nospam@cantrip.org>
871 * include/bits/fstream.tcc (_M_underflow): Properly estimate
872 the worst-case number of external bytes for a given get area.
873 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
875 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
876 Petur Runolfsson <peturr02@ru.is>
879 * include/bits/fstream.tcc (overflow): Properly estimate the
880 worst-case number of external bytes for a given put area
881 (by using codecvt::max_length()).
882 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
883 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
884 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
885 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
887 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
889 * config/linker-map.gnu: Remove ; after __numpunct_cache.
891 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
893 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
894 to the imbued locale.
895 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
897 (num_put::_M_convert_float): Use.
899 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
900 Jerry Quinn <jlquinn@optonline.net>
902 * config/linker-map.gnu: Add __numpunct_cache.
903 * config/locale/gnu/numeric_members.cc
904 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
905 all elements for "C" locale.
906 (numpunct::~numpunct): Delete _M_data.
907 * config/locale/generic/numeric_members.cc: Same.
908 * include/bits/basic_ios.tcc
909 (basic_ios::init): Remove __locale_cache bits.
910 (basic_ios::_M_cache_locale): Same.
911 * include/bits/ios_base.h: Same. Tweaks.
912 * include/bits/locale_classes.h: Tweaks. Reorder classes.
913 (__use_cache): Make friends with _Impl, locale.
914 (_Impl::_M_caches): Add.
915 (_Impl::_M_install_cache): Add.
916 * include/bits/locale_facets.h (__numpunct_cache): New.
917 (numpunct): Encapsulate data members in __numpunct_cache member,
918 _M_data. Adjust virtuals.
919 (numpunct::numpunct): New ctor for the same.
920 (__locale_cache_base): Remove.
921 (__locale_cache): Remove.
922 * include/bits/locale_facets.tcc (__use_cache): New function,
924 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
925 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
926 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
927 * src/locale-inst.cc: Same. Add __numpunct_cache.
928 * src/locale.cc: Tweak inlines.
929 (__use_cache): Define specializations.
930 * src/localename.cc: Use global bits.
931 (_Impl::~Impl): Deal with __numpunct_cache destruction.
932 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
933 (_Impl::_M_init_facet): Take into account __numpunct_cache.
934 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
935 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
937 2003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
938 Paolo Carlini <pcarlini@unitus.it>
940 * testsuite/performance/filebuf_copy.cc: New, testing char
943 2003-06-26 Paolo Carlini <pcarlini@unitus.it>
944 Nathan C. Myers <ncm-nospam@cantrip.org>
946 * include/bits/fstream.tcc (_M_underflow): When the actual
947 end of file is reached, set 'uncommitted' mode to allow a
948 next write without an intervening seek (see C++98 27.8.1.1,2
950 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
952 2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
954 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
955 sputc): Move inline, from here...
956 * include/std/std_streambuf.h: ... to here.
958 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
959 sputbackc, sungetc, sputc): Use __builtin_expect.
961 2003-06-24 Phil Edwards <pme@gcc.gnu.org>
963 * docs/doxygen/mainpage.html: Use a useful title.
965 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
967 * docs/html/documentation.html: Remove assignment info.
968 * docs/html/17_intro/contribute.html: Edits.
969 * docs/html/17_intro/libstdc++-assign.tx: Remove.
971 * docs/html/test.html: Update.
975 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
976 Ulrich Drepper <drepper@redhat.com>
978 * testsuite/testsuite_performance.h: Tweak mallinfo.
980 2003-06-24 Paolo Carlini <pcarlini@unitus.it>
981 Nathan C. Myers <ncm-nospam@cantrip.org>
983 * include/std/std_fstream.h (_M_filepos): Remove.
984 (_M_reading, _M_writing): New, encode the various I/O modes:
985 'read', 'write' and 'uncommitted'.
986 (sync): If there is something to flush, do it, then go to
988 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
989 with three different cases: __off > 0 (upon underflow),
990 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
992 (_M_underflow): Don't call overflow, set _M_reading to true
994 (pbackfail): Set _M_reading to true on pback creation, tweak.
995 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
996 set _M_writing to true on success, tweak.
997 (seekoff): Simplify, set _M_reading, _M_writing to false, call
998 _M_set_buffer(-1) ('uncommitted').
999 (open, close, setbuf): Set _M_reading, _M_writing to false and
1000 call _M_set_buffer(-1), tweak.
1001 (basic_filebuf): Don't set _M_buf_unified.
1002 (_M_destroy_internal_buffer): Don't call setg and setp.
1003 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
1004 _M_writing and _M_set_buffer(-1).
1005 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
1006 _M_out_lim, _M_buf_unified): Remove.
1007 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
1008 (setp): Don't set _M_out_lim.
1009 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
1010 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
1011 upon open the mode is 'uncommitted' and therefore the put area
1013 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
1014 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
1015 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
1016 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
1017 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
1018 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
1019 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1020 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
1021 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
1022 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
1023 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
1024 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
1025 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
1026 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
1027 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
1028 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
1029 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
1030 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
1031 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
1032 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
1034 * include/bits/fstream.tcc (showmanyc): Use only the
1035 documented derivation interface to basic_streambuf (gptr(),
1036 setg(), etc.) to work right with user specializations.
1037 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1038 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
1039 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
1041 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
1044 2003-06-23 Loren J. Rittle <ljrittle@acm.org>
1046 * configure.host (freebsd*): Set abi_baseline_pair.
1047 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
1048 (at or near first release) to 3.3.
1049 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
1050 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
1051 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
1053 * include/ext/mt_allocator.h: Portability.
1054 * testsuite/testsuite_performance.h: Likewise.
1056 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
1058 * docs/html/17_intro/libstdc++-assign.txt: Update address.
1060 * testsuite/performance/ifstream_getline.cc: Fix.
1062 2003-06-23 Doug Gregor <dgregor@apple.com>
1064 * include/bits/boost_concept_check.h: Don't use _D or _R for type
1067 2003-06-22 Paolo Carlini <pcarlini@unitus.it>
1068 Nathan C. Myers <ncm-nospam@cantrip.org>
1070 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
1071 is now used only for filebuf, when _M_buf_unified is true.
1072 epgtr() plays the role of _M_out_lim but it's only updated
1073 upon overflow, underflow, uflow, seekoff/pos.
1074 * include/bits/sstream.tcc (_M_underflow): New, implements
1075 stringbuf::underflow and uflow.
1076 (seekoff, seekpos): Tweak, use _M_update_egptr.
1077 * include/std/std_sstream.h (str): Rewrote, deal correctly
1078 with the new logic, in particular, when pptr() > egptr().
1079 (_M_sync): When __testout && !__testin set all the get area
1080 pointers to the current string end.
1081 (_M_update_egptr): New, internal function updating egptr()
1082 to the actual string end.
1083 (_M_underflow): New, declare.
1084 (underflow): Dispatch to _M_underflow(false).
1085 (uflow): Dispatch to _M_underflow(true).
1087 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
1088 seekpos): Use only the documented derivation interface to
1089 basic_streambuf (gptr(), setg(), etc.) to work right with
1090 user specializations.
1091 * include/std/std_sstream.h (str, _M_sync): Likewise.
1093 2003-06-20 Doug Gregor <dgregor@apple.com>
1095 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
1096 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
1097 dereference end iterator.
1098 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
1099 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
1100 index equal to the length of a string.
1101 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
1102 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
1103 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
1104 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
1105 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
1106 * testsuite/23_containers/list_modifiers.cc: Don't dereference
1107 singular reverse iterator.
1108 * testsuite/23_containers/vector_bool.cc: Don't increment singular
1110 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
1112 2003-06-20 Doug Gregor <dgregor@apple.com>
1114 * include/bits/basic_string.h (basic_string::replace): Dispatch
1115 _InputIterator version based on _Is_integer.
1116 * include/bits/basic_string.tcc (basic_string::replace):
1117 Renamed replace(iterator, iterator, size_type, _CharT) to
1119 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
1120 Test basic_string::assign(_InputIterator, _InputIterator),
1121 which calls basic_string::replace(iterator, iterator,
1122 _Input_iterator, _InputIterator).
1124 2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
1126 * testsuite/testsuite_performance.h (resource_counter): Don't use
1127 mallinfo at the moment.
1129 2003-06-20 Matthias Klose <doko@debian.org>
1131 * configure.host: Set try_cpu to target_cpu for existing
1134 2003-06-19 Andreas Jaeger <aj@suse.de>
1136 * testsuite/Makefile.am (extract_symvers): Revert accidental
1138 * testsuite/Makefile.in: Regenerate.
1140 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
1141 * configure: Regenerated.
1143 2003-06-19 Paolo Carlini <pcarlini@unitus.it>
1145 * include/std/std_sstream.h (_M_sync): Make non virtual.
1147 2003-06-18 Benjamin Kosnik <bkoz@redhat.com>
1149 * testsuite/testsuite_performance.h (time_counter): New.
1150 (resource_counter): New.
1151 (report_performance): New.
1152 (start_counters): New.
1153 (stop_counters): New.
1154 (clear_counters): New.
1155 * testsuite/performance/allocator.cc: Instrument.
1156 * testsuite/performance/cout_insert_int.cc: Same.
1157 * testsuite/performance/complex_norm.cc: Same.
1158 * testsuite/performance/filebuf_sputc.cc: New.
1159 * testsuite/performance/fstream_seek_write.cc: Same.
1160 * testsuite/performance/ifstream_getline.cc: Same.
1161 * testsuite/performance/map_create_fill.cc: Same.
1162 * testsuite/performance/ofstream_insert_float.cc: Same.
1163 * testsuite/performance/ofstream_insert_int.cc: Same.
1164 * testsuite/performance/string_append.cc: Convert.
1165 * scripts/check_performance: New.
1166 * testsuite/Makefile.am (check-performance): New.
1169 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
1170 Benjamin Kosnik <bkoz@redhat.com>
1172 * include/std/std_sstream.h (setbuf): Check __n >= 0.
1173 * include/bits/fstream.tcc (setbuf): Tweak.
1175 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
1177 * include/bits/sstream.tcc (seekoff): We can't seek beyond
1178 _M_out_lim, therefore _M_move_out_cur boils down to simply
1179 updating _M_out_cur.
1180 (seekpos): Likewise, clean up.
1182 2003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
1183 Paolo Carlini <pcarlini@unitus.it>
1185 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
1186 simply equivalent to the unbuffered case (0, 0) as far as
1187 _M_buf_size is concerned.
1189 2003-06-18 Andreas Jaeger <aj@suse.de>
1191 * testsuite/Makefile.am (new-abi-baseline): Create baseline
1193 (baseline_file): Use baseline_dir.
1194 (baseline_dir): New.
1195 (mkinstalldirs): New.
1197 * acinclude.m4: Rename baseline_file to baseline_dir, strip
1198 filename from baseline_dir.
1200 * testsuite/Makefile.in: Regenerated.
1201 * Makefile.in: Regenerated.
1202 * aclocal.m4: Regenerated.
1203 * configure: Regenerated.
1205 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1207 * configure.in: Missed check_survey bit.
1208 * configure: Regenerated.
1210 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1213 * config/abi/extract_symvers: Move to...
1214 * scripts/extract_symvers: ...here.
1215 * mkcheck.in: Move to..
1216 * scripts/check_survey.in: ...here.
1217 * testsuite_flags.in: Move to..
1218 * scripts/testsuite_flags.in: ...here.
1219 * configure.in: Change check and testsuite_flags locations.
1220 * configure: Regenerate.
1221 * testsuite/Makefile.am (current_symbols.txt): Change location.
1222 * testsuite/Makefile.in: Regenerate.
1223 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
1224 location of testsuite_flags.
1225 * Makefile.am (check-script): Move..
1226 (check-script-install): Move...
1227 * testsuite/Makefile.am: ... here.
1228 * testsuite/Makefile.in: Regenerate.
1229 * Makefile.in: Regenerate.
1231 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1233 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
1235 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
1237 * Makefile.am (check-abi): Move...
1238 (new-abi-baseline): Move...
1239 * testsuite/Makefile.am: ...here.
1240 (new-abi-baseline): Conditionalize.
1241 (check-abi): Conditionalize.
1242 (check-abi-verbose): New.
1243 * Makefile.in: Regenerate.
1244 * testsuite/Makefile.in: Regenerate.
1245 * configure.in: Consolidate testsuite configure bits.
1246 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
1247 * configure: Regenerate.
1248 * aclocal.m4: Regenerate.
1249 * testsuite/abi_check.cc: Add --check-verbose.
1250 Only output detailed information if --check-verbose.
1252 2003-06-16 Andreas Jaeger <aj@suse.de>
1254 * testsuite/abi_check.cc: Create summary report.
1256 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
1258 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
1259 for systems with BUFSIZ != 8192.
1260 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1261 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
1264 2003-06-16 Andreas Jaeger <aj@suse.de>
1266 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
1267 check-abi multilib aware.
1268 * aclocal.m4: Regenerate.
1269 * configure: Regenerate.
1271 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
1272 Andreas Jaeger <aj@suse.de>
1274 * configure.host: Set x86_64 abi_baseline pair correctly.
1276 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
1278 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
1279 fix for missing seeks between gets and puts into...
1280 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
1281 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
1282 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
1283 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
1284 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
1285 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
1287 2003-06-15 Richard Henderson <rth@redhat.com>
1289 * config/linker-map.gnu: Export virtual function thunks for
1292 2003-06-13 Benjamin Kosnik <bkoz@redhat.com>
1294 * config/abi/i686-pc-linux-gnu: To..
1295 * config/abi/i486-linux-gnu: ...this.
1296 * config/abi/alphaev67-unknown-linux-gnu: To..
1297 * config/abi/alpha-linux-gnu: ...this.
1298 * config/abi/ia64-unknown-linux-gnu: To...
1299 * config/abi/ia64-linux-gnu: ...this.
1300 * config/abi/x86_64-unknown-linux-gnu: To...
1301 * config/abi/x86_64-linux-gnu: ...this.
1302 * config/abi/i386-unknown-freebsd4: To...
1303 * config/abi/i386-freebsd4: ...this.
1304 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
1306 * configure.host: abi_baseline_triplet to abi_baseline_pair.
1307 Simplify cpu bits so that abi_baseline_pair can use the same
1309 * acinclude.m4: Same.
1310 * aclocal.m4: Regenerate.
1311 * configure.in: Can't get enable_abi_check to yes unless native.
1312 * configure: Regenerate.
1314 2003-06-13 Paolo Carlini <pcarlini@unitus.it>
1316 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
1317 fix for missing seeks between gets and puts into...
1318 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
1319 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
1320 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
1321 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
1322 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
1323 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
1324 for missing seeks between gets and puts.
1325 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
1326 * testsuite/data/seekoff-1.tst: New.
1327 * testsuite/data/seekoff-2.tst: New.
1328 * testsuite/data/seekpos-1.tst: New.
1329 * testsuite/data/seekpos-2.tst: New.
1331 2003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
1333 Avoid multi-processor bus contention on increment/decrement-and-
1334 test of the reference count in the empty-string object, by comparing
1335 addresses first, and never touching the reference count of the empty-
1337 * include/bits/basic_string.h:
1338 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
1340 (_Rep::_S_empty_rep()): New accessor.
1341 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
1342 a base class _Rep_base.
1343 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
1344 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
1345 since no longer must increment its refcount.
1346 * include/bits/basic_string.tcc:
1347 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
1348 return immediately. The former might be unnecessary. The latter
1349 prevents begin() and end() from cloning it unnecessarily.
1350 (_S_construct(_InIterator, _InIterator, const _Alloc&,
1351 input_iterator_tag), _S_construct(_InIterator, _InIterator,
1352 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
1353 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
1354 (_M_mutate): Check for the empty string and treat it as shared.
1355 This is necessary here because _M_mutate is sometimes called with
1356 all-zero arguments; in all other uses of _M_is_shared, the test comes
1359 2003-06-12 Benjamin Kosnik <bkoz@redhat.com>
1361 * src/allocator-inst.cc: Explicitly instantiate.
1362 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
1364 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
1366 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
1368 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
1369 * aclocal.m4: Regenerate.
1370 * Makefile.am (SUBDIRS): Remove libio.
1371 * Makefile.in: Regenerate.
1372 * configure.in: Same.
1373 * configure: Regenerate.
1374 * config/io/basic_file_libio.cc: Remove.
1375 * config/io/basic_file_libio.h: Remove.
1376 * config/io/c_io_libio_codecvt.c: Remove.
1377 * config/io/c_io_libio.h: Remove.
1379 * src/Makefile.am: Same.
1380 * src/Makefile.in: Regenerate.
1381 * docs/html/configopts.html: Edits.
1382 * docs/html/explanations.html: Edits.
1384 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
1386 * include/bits/stl_alloc.h (__debug_alloc): Move out.
1387 (__malloc_alloc): Same.
1388 (__pool_alloc): Same.
1389 (__new_alloc): Same.
1391 * include/bits/allocator.h: ...this.
1392 * include/bits/stl_deque.h: Modify comment.
1393 * include/bits/stl_tree.h: Modify include.
1394 * include/std/std_memory.h: Same.
1395 * include/ext/rope: Same.
1396 * include/ext/slist: Same.
1397 * include/std/std_vector.h: Same.
1398 * include/std/std_stack.h: Same.
1399 * include/std/std_queue.h: Same.
1400 * include/std/std_list.h: Same.
1401 * include/std/std_deque.h: Same.
1402 * include/backward/alloc.h: Same.
1403 * include/ext/debug_allocator.h: New.
1404 * include/ext/malloc_allocator.h: New.
1405 * include/ext/pool_allocator.h: New.
1406 * include/ext/new_allocator.h: New.
1407 * include/bits/pthread_allocimpl.h: Remove.
1408 * include/bits/stl_pthread_alloc.h: Remove.
1409 * include/Makefile.am (ext_headers): Add.
1410 * include/Makefile.in: Regenerate.
1411 * src/stl-inst.cc: Use __gnu_cxx namespace.
1412 * src/stl-inst.cc: Move to...
1413 * src/allocator-inst.cc: Here.
1414 * src/Makefile.am (sources): Update.
1415 * src/Makefile.in: Regenerate.
1416 * config/linker-map.gnu: Remove __pool_alloc bits.
1417 * testsuite/ext/headers.cc: Add.
1418 * testsuite/ext/allocators.cc: Fixup.
1420 2003-06-11 Stefan Olsson <stefan@snon.net>
1421 Ola Rönnerup <fnolis@home.se>
1423 * include/Makefile.am (ext_headers): Add.
1424 * include/Makefile.in: Regenerate.
1425 * include/ext/mt_allocator.h: New file.
1427 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
1429 * include/bits/fstream.tcc (close): Clean up a bit.
1431 * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
1433 * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
1434 - the saved _M_in_cur, that is - cannot be null.
1435 (sync): Constify a variable.
1437 * include/std/std_streambuf.h: Tweak a comment.
1438 (in_avail): Constify a variable.
1440 2003-06-10 Phil Edwards <pme@gcc.gnu.org>
1442 * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot.
1443 * docs/html/17_intro/CHECKLIST: Bring up to date with respect to
1444 correctness of container::iterator typedefs. Fix whitespace.
1445 * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links
1447 * docs/html/documentation.html: Regenerate.
1449 * include/bits/basic_string.h, include/bits/basic_string.tcc,
1450 include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
1451 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
1452 include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
1453 include/bits/stl_list.h, include/bits/stl_uninitialized.h,
1454 include/bits/stl_vector.h, include/bits/vector.tcc,
1455 include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
1456 Change _Iter names to _Iterator, and __pos to __position.
1458 * include/bits/stl_relops.h, include/bits/stl_numeric.h,
1459 include/bits/stl_multiset.h, include/bits/stl_set.h:
1460 Remove emacs markers.
1462 * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__.
1464 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
1466 * include/bits/fstream.tcc (overflow): According to
1467 27.5.2.4.5, overflow() returns not_eof(eof()).
1468 * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
1469 * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
1471 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
1473 * include/bits/fstream.tcc (_M_underflow): Check overflow return
1474 value; tweak slightly.
1476 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
1478 * include/bits/fstream.tcc (_M_underflow): Do not special
1479 case the unbuffered case, which really means simply a one char
1481 (basic_filebuf): Initialize _M_buf_size.
1482 (setbuf): Unbuffered means _M_buf_size == 1, since only
1483 _M_buf_size - 1 == 0 chars are going to be used for the
1484 put area and 1 for the get area.
1485 * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
1486 (~basic_streambuf): Tweak.
1487 (basic_streambuf): Do not initialize _M_buf_size.
1488 * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
1489 (~basic_filebuf): Tweak.
1490 (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
1491 unbuffered situation (i.e., put area pointers NULL).
1492 * include/bits/streambuf.tcc (sbumpc): Clean up.
1493 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
1494 * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
1495 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
1496 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
1497 * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
1498 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
1499 * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
1501 2003-06-09 Phil Edwards <pme@gcc.gnu.org>
1503 * acinclude.m4: Move all AM_CONDITIONAL calls out.
1504 (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL
1506 * configure.in: Centralize AM_CONDITIONALs so that they are always
1507 run. Make use of GLIBCPP_IS_CROSS_COMPILING.
1508 * aclocal.m4, configure: Regenerated.
1510 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
1512 * docs/html/ext/howto.html ('LWG Issues'): Add issue 235.
1514 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
1516 * include/bits/stl_iterator.h
1517 (reverse_iterator::reverse_iterator()): Apply DR235: default
1518 constructor default-initializes data member. Instantiated on a
1519 pointer type, the member has to end up equal to zero.
1521 2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
1523 * include/bits/stl_alloc.h: Cleanups.
1524 * include/ext/functional: Same.
1525 * include/ext/hash_map: Same.
1526 * include/ext/hash_set: Same.
1527 * include/ext/iterator: Same.
1528 * include/ext/memory: Same.
1529 * include/ext/numeric: Same.
1530 * include/ext/rb_tree: Same.
1531 * include/ext/ropeimpl.h: Same.
1532 * include/ext/slist: Same.
1533 * include/ext/stdio_filebuf.h: Same.
1534 * include/ext/stdio_sync_filebuf.h: Same.
1535 * include/ext/stl_rope.h: Move to...
1536 * include/ext/rope: ...here.
1537 * include/ext/stl_hash_fun.h: Move to...
1538 * include/ext/hash_fun.h: ...here.
1539 * include/ext/stl_hashtable.h: Move to...
1540 * include/ext/hashtable.h: ...here.
1541 * include/backward/hashtable.h: Reflect new names.
1542 * include/Makefile.am: Same.
1543 * include/Makefile.in: Regenerated.
1545 2003-06-05 Benjamin Kosnik <bkoz@redhat.com>
1548 * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
1549 * include/bits/stl_algobase.h: Tweak.
1550 * include/std/std_fstream.h: Move _M_buf_size to...
1551 * include/std/std_streambuf.h: ...here. Modify.
1552 * include/bits/streambuf.tcc: Same.
1553 * testsuite/testsuite_hooks.h: Tweak.
1554 * testsuite/testsuite_io.h (constraint_filebuf): New.
1555 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
1556 * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
1557 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
1558 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
1559 * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
1560 * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
1561 * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
1562 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
1563 * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
1564 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
1565 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
1566 * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
1567 * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
1568 * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
1569 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
1570 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
1571 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
1572 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
1573 * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
1574 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
1575 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
1576 * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
1577 * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
1578 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
1579 * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
1580 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
1581 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
1582 * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
1583 * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
1584 * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
1585 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
1586 * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
1587 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
1588 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
1589 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
1590 * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
1591 * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
1592 * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
1593 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
1594 * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
1595 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
1596 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
1597 * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
1598 * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
1599 * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
1600 * testsuite/data/sgetc.txt: New.
1601 * testsuite/data/sgetn.txt: New.
1603 2003-06-05 Paolo Carlini <pcarlini@unitus.it>
1606 * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
1607 Deal with width() smaller than zero.
1608 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
1609 operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
1610 _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
1611 char*), operator<<(basic_ostream<char, _Traits>&, const char*),
1612 operator<<(basic_ostream, const basic_string&)): Likewise.
1614 * testsuite/27_io/basic_istream/extractors_character/char/
1615 (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
1616 * testsuite/27_io/basic_ostream/inserters_character/char/
1617 (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
1618 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
1619 (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
1621 2003-06-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1623 * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
1624 .gch compilation works.
1625 * aclocal.m4, configure: Regenerate.
1626 * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
1627 initialize PCHFLAGS.
1629 2003-06-04 Paolo Carlini <pcarlini@unitus.it>
1631 * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
1632 erase(iterator), erase(iterator, iterator), c_str,
1633 compare(const basic_string&)): Constify various variables.
1634 * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
1635 const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
1636 _S_create, resize, _M_replace, _M_replace_safe,
1637 append(const basic_string&), append(const basic_string&, size_type,
1638 size_type), append(const _CharT*, size_type), append(size_type,
1639 _CharT), operator+(const _CharT*, const basic_string&),
1640 operator+(_CharT, const basic_string&), replace(iterator, iterator,
1641 size_type, _CharT), find(const _CharT*, size_type, size_type),
1642 find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
1643 rfind(_CharT, size_type), compare(size_type, size_type,
1644 const basic_string&), compare(size_type, size_type,
1645 const basic_string&, size_type, size_type), compare(const _CharT*),
1646 compare(size_type, size_type, const _CharT*), compare(size_type,
1647 size_type, const _CharT*, size_type)): Likewise.
1649 2003-06-03 Benjamin Kosnik <bkoz@redhat.com>
1651 * include/bits/fstream.tcc (pbackfail): Make a rarely taken
1652 'if' branch less obscure.
1654 2003-06-02 Andrew Pinski <pinskia@physics.uc.edu>
1657 * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
1659 * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
1660 (__atomic_add): likewise.
1662 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
1664 * include/bits/sstream.tcc (pbackfail): Minor clean up and
1665 reformatting, consistent with basic_filebuf::pbackfail.
1667 2003-06-02 Richard Kreckel <Richard.Kreckel@GiNaC.DE>
1670 * config/cpu/mips/atomicity.h: Change __attribute__ ((unused)) to
1671 __attribute__ ((__unused__)).
1672 * config/os/aix/atomicity.h: Likewise.
1674 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
1677 * include/bits/fstream.tcc (pbackfail): If the pback buffer
1678 is already active don't try to store in it a second char.
1679 * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
1681 * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
1683 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
1685 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
1688 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
1690 * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
1691 instead of unnecessarily taking the address of _M_pback.
1692 (xsgetn): Simplify slightly for a single char pback buffer.
1694 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
1696 * include/bits/sstream.tcc (seekoff): Remove four unnecessary
1697 variables and two 'if', clean up.
1699 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
1701 * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
1702 not _M_out_end, since the former actually points to the string
1703 end (vs buffer end).
1704 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
1706 2003-05-30 Phil Edwards <pme@gcc.gnu.org>
1708 * docs/doxygen/filter: New file.
1709 * docs/doxygen/filter.sed: New file.
1710 * docs/doxygen/run_doxygen: Add g flag to sed substitutions. Duh.
1711 * docs/doxygen/user.cfg.in (INPUT_FILTER): Point to new filter.
1712 * docs/html/documentation.html: Fix links to doxygen pages.
1714 2003-05-30 Paolo Carlini <pcarlini@unitus.it>
1716 * include/bits/fstream.tcc (_M_convert_to_external): Don't
1717 check for __ilen > 0.
1719 2003-05-29 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
1722 * include/bits/stl_iterator.h (class __normal_iterator):
1723 Don't inherit from iterator, add missing typedefs.
1725 2003-05-29 Paolo Carlini <pcarlini@unitus.it>
1727 * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
1728 * testsuite/24_iterators/reverse_iterator/1.cc: New.
1729 * testsuite/24_iterators/reverse_iterator/2.cc: New.
1730 * testsuite/24_iterators/reverse_iterator/3.cc: New, from
1733 2003-05-27 Steve Ellcey <sje@cup.hp.com>
1735 * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
1737 * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
1738 _LIBUNWIND_STD_ABI is set.
1740 2003-05-26 Brendan Kehoe <brendan@zen.org>
1742 * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
1743 make sure the number of digits required after the decimal-point
1744 (if any) is exactly the value returned by frac_digits().
1745 * testsuite/22_locale/money_get/get/char/9.cc: New.
1746 * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
1748 2003-05-27 Jonathan Wakely <redi@gcc.gnu.org>
1750 * include/std/std_istream.h, include/std/std_ostream.h: Typo in
1753 2003-05-26 Benjamin Kosnik <bkoz@redhat.com>
1756 * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
1757 (_M_pback): No array necessary.
1758 * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
1759 unbuffered case, coalesec into ...
1760 (basic_filebuf::overflow): ...this.
1761 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
1762 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
1764 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
1766 * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
1767 libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
1768 libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
1769 libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
1770 libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
1771 libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
1772 libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
1773 libsupc++/eh_unex_handler.cc, libsupc++/exception,
1774 libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
1775 libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
1776 libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
1777 libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
1778 Replace "GNU CC" with "GCC".
1780 * include/backward/new.h: Replace "GNU CC" with "GCC".
1782 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
1785 * configure.in: Switch target to host, don't assume newlib.
1786 (target_alias): Remove.
1787 * configure: Regenerate.
1788 * acinclude.m4: Same.
1789 * aclocal.m4: Regenerate.
1790 * configure.target: Same. Rename to...
1791 * configure.host: This.
1793 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
1795 * include/std/std_fstream.h (_S_pback_size): Remove definition.
1796 (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
1798 * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
1799 * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
1800 of _S_pback_size for systems with no COMDAT or weak support.
1801 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
1802 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
1803 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
1804 * testsuite/27_io/basic_fstream/3.cc: Likewise.
1805 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
1806 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
1807 * testsuite/27_io/basic_ofstream/3.cc: Likewise.
1808 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
1809 * testsuite/27_io/basic_streambuf/3.cc: Likewise.
1811 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
1813 * include/bits/fstream.tcc (_M_underflow): Simplify:
1814 !__testout implies _M_filepos == _M_in_end, therefore
1815 the first _M_file.seekoff call is never issued.
1817 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
1819 * configure.in: Sort cross table.
1820 * configure: Regenerate.
1822 2003-05-22 Brad Spencer <spencer@infointeractive.com>
1825 * configure.in: Add Solaris cross bits.
1827 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1829 * libstdc++-v3/config/os/mingw32/os_defines.h
1830 (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
1831 (NOMINMAX): Define. Update copyright year.
1833 2003-05-21 Paolo Carlini <pcarlini@unitus.it>
1835 * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
1837 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
1839 * docs/html/faq/index.html: Fix typo.
1840 * docs/html/faq/index.txt: Regenerate.
1842 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
1844 * docs/html/test.html: Fix markup.
1846 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1848 * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
1850 Update copyright year.
1852 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
1854 * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
1856 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
1858 * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
1859 further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
1861 2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1863 * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
1864 Cast via void* to avoid -Wcast-align warnings.
1865 (__default_alloc_template::_S_refill): Likewise.
1867 2003-05-20 Benjamin Kosnik <bkoz@redhat.com>
1869 * testsuite/README: Move to...
1870 * docs/html/test.html: ...here. Add documentation.
1871 * docs/html/install.html: Move testing bits out..
1872 * docs/html/documentation.html: Add separate testing link.
1873 * testsuite/performance: Add.
1874 * testsuite/performance/allocator.cc: New.
1875 * testsuite/performance/complex_norm.cc: New.
1876 * testsuite/performance/cout_insert_int.cc: New.
1877 * testsuite/performance/fstream_seek_write.cc: New.
1878 * testsuite/performance/ifstream_getline.cc: New.
1879 * testsuite/performance/map_create_fill.cc: New.
1880 * testsuite/performance/ofstream_insert_float.cc: New.
1881 * testsuite/performance/ofstream_insert_int.cc: New.
1882 * testsuite/performance/string_append.cc: New.
1883 * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
1886 2003-05-20 Gabriel Dos Reis <gdr@integrable-solutions.net>
1889 * include/std/std_complex.h (pow): Tidy.
1891 2003-05-19 Paolo Carlini <pcarlini@unitus.it>
1893 * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
1894 that upon filebuf::close() 27.8.1.1,3 is enforced.
1896 2003-05-15 Loren J. Rittle <ljrittle@acm.org>
1898 * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
1900 2003-05-15 Paolo Carlini <pcarlini@unitus.it>
1901 Nathan Myers <ncm@cantrip.org>
1903 * include/bits/fstream.tcc (_M_overflow): Rewrote to call
1904 _M_convert_to_external only once (_M_buf_size is now the size of
1905 the put area + 1 for the overflow char of a full area); call
1906 _M_set_buffer instead of _M_set_indeterminate.
1907 (setbuf): Don't accept a buffer smaller than 2 chars.
1908 (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
1909 instead of _M_set_determinate.
1910 (open): Call _M_set_buffer, instead of _M_set_indeterminate.
1911 (seekoff): Likewise.
1912 * include/ext/stdio_filebuf.h (stdio_filebuf(int,
1913 std::ios_base::openmode, bool, size_t),
1914 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
1916 * include/std/std_fstream.h (_M_set_indeterminate): Remove.
1917 (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
1919 * include/std/std_streambuf.h: Tweak _M_out_lim comment.
1920 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
1921 into account that, for _M_buf_size == BUFSIZ == 8192, the size of
1922 the put area is now BUFSIZ - 1.
1923 * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
1924 that now the smallest _M_buf_size is 2 (still fails, for the same
1927 2003-05-14 Loren J. Rittle <ljrittle@acm.org>
1929 * testsuite/thread/pthread4.cc: Tweak test.
1931 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
1933 * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
1934 excess errors dg marker, use dg-errors instead.
1935 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
1936 * testsuite/20_util/auto_ptr_neg.cc: Same.
1938 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
1940 * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
1942 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
1943 Initialize _M_codecvt.
1944 (basic_filebuf::imbue): Same.
1945 (basic_filebuf::showmanyc): Use it.
1946 (basic_filebuf::underflow): Use it.
1947 (basic_filebuf::_M_convert_to_external): Use it.
1948 (basic_filebuf::seekoff): Use it.
1949 (basic_filebuf::imbue): Use it, tweaks.
1950 * include/bits/localefwd.h (__check_facet): New.
1951 * include/bits/locale_classes.h: Tweaks.
1952 * include/bits/locale_facets.tcc: Tweaks.
1953 * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
1954 _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
1955 _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
1956 * include/bits/basic_ios.tcc: Same.
1957 * include/bits/istream.tcc: Same.
1958 * include/bits/ostream.tcc: Same.
1959 * include/std/std_streambuf.h: Same.
1960 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
1961 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
1962 * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
1963 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
1964 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
1965 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
1967 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
1969 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
1970 unnecessary includes and unused string literals.
1971 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
1972 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
1973 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
1974 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
1976 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
1978 * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
1980 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
1982 * include/std/std_fstream.h (_M_convert_to_external): Change
1983 to return bool, take two less streamsize parameters.
1984 * include/bits/fstream.tcc (_M_convert_to_external): Tweak
1985 consistently definition.
1986 (_M_overflow): Adjust call points.
1988 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
1990 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
1992 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
1994 * testsuite/Makefile.am: Properly quote /both/ LD_RUN_PATHs.
1995 * testsuite/Makefile.in: Regenerate.
1997 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
1999 * testsuite/Makefile.am: Properly quote LD_RUN_PATH.
2000 * testsuite/Makefile.in: Regenerate.
2002 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
2005 * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
2006 (acos): Handle integer argument.
2025 * include/bits/cpp_type_traits.h (__are_same<>): New traits.
2026 (__enable_if): Likewise.
2027 * testsuite/26_numerics/cmath/overloads.C: New test.
2029 2003-05-10 Petur Runolfsson <peturr02@ru.is>
2034 * include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
2035 implementation, based on old wchar_t specialization, add support
2036 for codecvt::in() return value of codecvt_base::noconv, remove
2037 _M_file.sys_ungetc() call.
2038 * include/std/std_fstream.h (basic_file::underflow,
2039 basic_file::uflow, basic_file::_M_underflow): Remove
2040 specialization declarations, call _M_underflow from generic versions
2041 of underflow and uflow.
2042 * src/fstream.cc (basic_file::underflow, basic_file::uflow,
2043 basic_file::_M_underflow): Remove specializations.
2044 * src/Makefile.am (sources): Remove fstream.cc.
2045 * src/Makefile.in: Regenerated.
2046 * testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
2047 * testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
2048 * testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
2049 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
2051 2003-05-10 Benjamin Kosnik <bkoz@redhat.com>
2053 * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
2055 * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
2057 (__basic_file::xsputn): Same.
2058 (__basic_file::seekoff): Same.
2059 (__basic_file::seekpos): Same.
2060 (__basic_file::showmanyc): Same.
2061 * config/io/basic_file_stdio.cc: Same.
2062 * include/std/std_fstream.h: Same.
2063 * include/bits/fstream.tcc: Same.
2064 * src/fstream.cc: Same.
2065 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
2067 2003-05-10 Petur Runolfsson <peturr02@ru.is>
2072 * include/ext/stdio_sync_filebuf.h: New file.
2073 (basic_stdiobuf): New.
2074 * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
2075 * include/Makefile.in: Regenerate.
2076 * include/bits/ios_base.h (Init::_S_create_buffers,
2077 Init::_S_destroy_buffers): Remove declarations.
2078 * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
2079 buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define.
2080 * src/ios.cc (Init::_S_create_buffers,
2081 Init::_S_destroy_buffers): Remove.
2082 (Init::Init): Create and use syncronized buffers.
2083 (ios_base::sync_with_stdio): Destroy syncronized buffers,
2084 create and install unsyncronized buffers.
2085 * testsuite/27_io/objects/char/10.cc: New test.
2086 * testsuite/27_io/objects/char/9.cc: New test.
2087 * testsuite/27_io/objects/char/9661-1.cc: New test.
2088 * testsuite/27_io/objects/char/9661-2_xin.cc: New test.
2089 * testsuite/27_io/objects/char/9661-2_xin.in: New.
2090 * testsuite/27_io/objects/wchar_t/1.cc: New test.
2091 * testsuite/27_io/objects/wchar_t/10.cc: New test.
2092 * testsuite/27_io/objects/wchar_t/2.cc: New test.
2093 * testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test.
2094 * testsuite/27_io/objects/wchar_t/2523-1_xin.in: New.
2095 * testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test.
2096 * testsuite/27_io/objects/wchar_t/2523-2_xin.in: New.
2097 * testsuite/27_io/objects/wchar_t/3045.cc: New test.
2098 * testsuite/27_io/objects/wchar_t/3647.cc: New test.
2099 * testsuite/27_io/objects/wchar_t/3_xin.cc: New test.
2100 * testsuite/27_io/objects/wchar_t/3_xin.in: New.
2101 * testsuite/27_io/objects/wchar_t/4_xin.cc: New test.
2102 * testsuite/27_io/objects/wchar_t/4_xin.in: New.
2103 * testsuite/27_io/objects/wchar_t/5.cc: New test.
2104 * testsuite/27_io/objects/wchar_t/5268.cc: New test.
2105 * testsuite/27_io/objects/wchar_t/5280_xin.cc: New test.
2106 * testsuite/27_io/objects/wchar_t/5280_xin.in: New.
2107 * testsuite/27_io/objects/wchar_t/6.cc: New test.
2108 * testsuite/27_io/objects/wchar_t/6548_xin.cc: New test.
2109 * testsuite/27_io/objects/wchar_t/6548_xin.in: New.
2110 * testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test.
2111 * testsuite/27_io/objects/wchar_t/6648-1_xin.in: New.
2112 * testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test.
2113 * testsuite/27_io/objects/wchar_t/6648-2_xin.in: New.
2114 * testsuite/27_io/objects/wchar_t/7.cc: New test.
2115 * testsuite/27_io/objects/wchar_t/7744_xin.cc: New test.
2116 * testsuite/27_io/objects/wchar_t/7744_xin.in: New.
2117 * testsuite/27_io/objects/wchar_t/8.cc: New test.
2118 * testsuite/27_io/objects/wchar_t/9_xin.cc: New test.
2119 * testsuite/27_io/objects/wchar_t/9_xin.in: New.
2120 * testsuite/27_io/objects/wchar_t/9520.cc: New test.
2121 * testsuite/27_io/objects/wchar_t/9661-1.cc: New test.
2122 * testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test.
2123 * testsuite/27_io/objects/wchar_t/9661-2_xin.in: New.
2124 * testsuite/27_io/objects/wchar_t/9662.cc: New test.
2125 * testsuite/ext/stdiobuf_char.cc: New test.
2126 * testsuite/ext/stdiobuf_wchar_t.cc: New test.
2128 2003-05-10 Paolo Carlini <pcarlini@unitus.it>
2130 * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
2131 unnecessary includes and unused string literals.
2132 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
2134 2003-05-08 Paolo Carlini <pcarlini@unitus.it>
2136 * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
2138 2003-05-07 Richard Henderson <rth@redhat.com>
2141 * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
2142 (__cxa_end_catch): Likewise.
2143 * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise. Use
2144 _Unwind_Resume_or_Rethrow.
2145 * libsupc++/eh_personality.cc (empty_exception_spec): New.
2146 (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
2147 for _UA_FORCE_UNWIND. Honor empty filter spec for foreign
2148 exceptions. Don't push terminate/unexpected to cxa functions.
2149 (__cxa_call_unexpected): Remove foreign exception fixmes.
2151 2003-05-07 Benjamin Kosnik <bkoz@redhat.com>
2153 * testsuite/27_io/ios_base/cons: New.
2154 * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
2155 * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
2157 2003-05-07 Paolo Carlini <pcarlini@unitus.it>
2159 * include/std/std_fstream.h (_M_is_indeterminate): Remove.
2161 (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
2162 there is no buffer or __testget == !__testinit.
2165 (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
2166 automatically sets, if appropriate, _M_out_cur == _M_in_cur.
2168 * include/std/std_fstream.h (_M_destroy_pback): Don't set
2169 unnecessarily _M_pback_cur_save and _M_pback_end_save.
2171 * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
2173 * include/std/std_sstream.h (_M_sync): Minor tweak.
2175 * include/bits/fstream.tcc (close): No need to call
2176 _M_destroy_pback, setting _M_pback_init to false suffices
2179 2003-05-06 Benjamin Kosnik <bkoz@redhat.com>
2181 * include/bits/stl_algo.h: Enums as _S_.
2182 * include/bits/stl_tree.h: Same.
2183 * include/bits/stl_bvector.h: Same.
2184 * include/bits/ios_base.h: Same.
2185 * include/bits/stl_alloc.h: Same.
2186 * include/ext/stl_hashtable.h: Same.
2187 * src/ios.cc: And here.
2189 * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
2190 * include/bits/sstream.tcc: Same.
2192 * include/bits/basic_ios.h: Correct spacing for '< ctype'.
2194 * include/bits/locale_facets.tcc: Replace __temp to __tmp.
2196 * include/bits/locale_facets.h (__num_base): Remove protected.
2197 Use _S_[io]* names for enumerations.
2198 (_S_format_int): Remove.
2199 * include/bits/locale_facets.tcc: Same.
2200 * src/locale.cc: Same.
2202 * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
2204 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
2206 * docs/html/faq/index.html (3.10): Add note about mips atomicity.h.
2207 * docs/html/faq/index.txt: Regenerated.
2209 2003-05-06 Michael Ritzert <Ritzert@t-online.de>
2210 Matt Kraai <kraai@alumni.cmu.edu>
2212 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
2215 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
2217 * configure.target (mips*): Use the generic atomicity.h by default.
2219 2003-05-05 Loren J. Rittle <ljrittle@acm.org>
2220 (Inspired by an alternate patch from Danny Smith.)
2222 * include/bits/stl_threads.h (_Atomic_swap): Kill it...
2223 (_Swap_lock_struct<>): ...and the horse it rode in on.
2224 * src/globals.cc (_Swap_lock_struct<>): Likewise.
2225 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
2226 member to support...
2227 * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
2228 visibility rules related to POSIX threads.
2229 * testsuite/thread/pthread7-rope.cc: New test.
2231 2003-05-04 Paolo Carlini <pcarlini@unitus.it>
2233 * testsuite/21_strings/basic_string/find/char/3.cc: New
2234 file, testing basic_string<char>::find_first_not_of.
2235 * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
2236 Likewise for basic_string<wchar_t>.
2238 2003-05-03 Loren J. Rittle <ljrittle@acm.org>
2240 * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
2242 2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
2244 * include/Makefile.am (CLEANFILES): Remove PCH files in target
2246 * include/Makefile.in: Regenerate.
2248 2003-05-02 Paolo Carlini <pcarlini@unitus.it>
2250 * include/std/std_sstream.h (str()): Tidy.
2252 2003-05-02 Nathan Myers <ncm@cantrip.org>
2253 Paolo Carlini <pcarlini@unitus.it>
2255 * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
2257 2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
2259 * include/bits/basic_string.h (swap): Remove redundant template
2260 parameters from declaration of non-template member function.
2262 2003-05-01 Phil Edwards <pme@gcc.gnu.org>
2264 * acconfig.h (_GLIBCPP_USE_NLS): New symbol.
2265 * configure.in: Move libintl.h header test...
2266 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): ...to here. Gather all
2267 the NLS-related test results into one symbol.
2268 * src/functexcept.cc: Use it here.
2269 * aclocal.m4, config.h.in, configure: Regenerated.
2271 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2273 * include/bits/sstream.tcc (overflow): Instead of calling
2274 str(), then _M_string.reserve, thus copying the contents
2275 of the current buffer two times, just copy the latter in
2276 a temporary, then use the 'swap trick'.
2278 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2280 * include/std/std_sstream.h (str()): Revert the best of the
2281 previous 'improvement', incorrect due to the COW nature of
2282 v3 basic_string; simplify.
2284 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2286 * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
2287 type of __avail to ptrdiff_t to avoid signed-unsigned warning.
2289 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
2291 * testsuite/abi_check.cc (check_version): Update known versions.
2292 Check added symbols for version_name != base version. Add missing
2293 symbols to incompatible list.
2295 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
2297 * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
2298 * aclocal.m4: Regenerated.
2299 * configure: Regenerated.
2301 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2303 * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
2304 Const-ify some variables.
2305 (basic_streambuf::xsputn): Likewise; change the type of some
2306 variables to size_t.
2307 (__copy_streambufs): Change some variables to size_t.
2309 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2311 * include/std/std_sstream.h (str()): Avoid constructing
2312 a basic_string temporary not only when it would turn out
2313 to be zero-sized but also when identical to the current
2316 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2318 * include/ext/stdio_filebuf.h
2319 (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
2320 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
2321 Shorten a bit (-10 lines) by factoring out some code.
2323 2003-04-30 Phil Edwards <pme@gcc.gnu.org>
2325 * acinclude.m4: Add bit missing from previous patch.
2326 * aclocal.m4, configure: Regenerated.
2328 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
2330 * docs/doxygen/mainpage.html: Bring up to date.
2331 * docs/doxygen/run_doxygen: Cosmetic tweaks. Work around a bug
2333 * docs/doxygen/user.cfg.in: Scanning the precompiled headers
2334 breaks everything. Don't scan them.
2335 * docs/html/documentation.html: Point to "Write after approval"
2338 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
2340 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Search for gettext outside
2341 of libc if message translations are being used. Fix info text in
2342 xieee_1003.1-2001 case.
2343 * aclocal.m4, configure: Regenerate.
2345 2003-04-29 Joel Sherrill <joel.sherrill@OARcorp.com>
2346 Loren J. Rittle <ljrittle@acm.org>
2347 Martin v. Loewis <martin@v.loewis.de>
2349 * config/cpu/i386/atomicity.h: New file.
2351 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
2353 * include/bits/fstream.tcc (open): Change to single return.
2355 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
2357 * include/std/std_sstream.h (underflow): Change to single return.
2359 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2361 * include/std/std_streambuf.h (_M_buf): is currently
2362 used only for basic_filebuf, therefore move it there.
2363 (basic_streambuf(), ~basic_streambuf()): Adjust.
2364 * include/std/std_fstream.h (_M_buf): Moved here.
2365 * include/std/std_sstream.h (setbuf): Don't set _M_buf,
2366 is actually redundant for basic_stringbuf.
2367 (_M_really_sync): Likewise.
2368 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2369 * include/bits/sstream.tcc (seekoff): Adjust.
2371 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
2373 * src/localename.cc: Standardize exception strings.
2374 * src/locale.cc: Same.
2376 * include/bits/basic_string.tcc: Same.
2377 * include/bits/basic_ios.tcc: Same.
2378 * include/std/std_bitset.h: Same.
2379 * include/ext/ropeimpl.h: Same.
2380 * include/bits/stl_vector.h: Same.
2381 * include/bits/stl_deque.h: Same.
2382 * include/bits/stl_bvector.h: Same.
2383 * config/locale/generic/c_locale.cc: Same.
2384 * config/locale/gnu/c_locale.cc: Same.
2385 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
2387 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
2389 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2391 * include/std/std_streambuf.h (_M_buf_size): is currently
2392 used only for basic_filebuf, therefore move it there.
2393 (basic_streambuf(), ~basic_streambuf()): Adjust.
2394 * include/std/std_fstream.h (_M_buf_size): Moved here.
2395 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2397 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2399 * include/bits/streambuf.tcc (__copy_streambufs): Don't use
2400 _M_buf_size (synced input is now correctly dealt with
2401 elsewhere); when the output buffer is full don't fall back
2402 to a snextc-sputc loop, call overflow instead.
2404 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2406 * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
2407 the innermost 'if' by factoring out some code.
2409 2003-04-28 Phil Edwards <pme@gcc.gnu.org>
2411 * configure.in: Test for libintl.h.
2412 * include/bits/c++config: Define __N for everybody.
2413 * include/bits/basic_string.h, include/bits/stl_bvector.h,
2414 include/bits/stl_deque.h, include/bits/stl_vector.h,
2415 include/std/std_bitset.h: Wrap all __throw* text with __N.
2416 * po/Makefile.am (pot): New rule, mostly working.
2417 * src/functexcept.cc: Call gettext on all __throw* arguments when
2418 -fexceptions is in effect.
2419 * po/Makefile.in, config.h.in, configure: Regenerate.
2421 2003-04-28 Petur Runolfsson <peturr02@ru.is>
2424 * include/bits/ios_base.h (Init::_S_ios_create,
2425 Init::_S_ios_destroy): Remove declarations.
2426 (Init::_S_create_buffers,
2427 Init::_S_destroy_buffers): Declare
2428 * src/ios.cc (Init::_S_ios_create): Remove
2429 (Init::_S_create_buffers): Create buffers and add to streams.
2430 (Init::_S_ios_destroy): Rename to...
2431 (Init::_S_destroy_buffers): this.
2432 (Init::Init): Only construct streams once.
2433 (Init::~Init): Flush streams, don't destroy them.
2434 (ios_base::sync_with_stdio): Don't destroy streams, only buffers.
2435 * testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test.
2436 * testsuite/27_io/objects/char/5.cc: New test.
2437 * testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior.
2438 * testsuite/27_io/objects/char/6.cc: New test.
2439 * testsuite/27_io/objects/char/7.cc: New test.
2441 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
2443 * testsuite/27_io/objects/char/8.cc: New test.
2445 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
2447 * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
2448 * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
2450 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
2452 * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
2453 _M_destroy_pback. _M_pback_create to
2454 _M_create_pback. _M_underflow_common to
2455 _M_underflow. _M_really_overflow to _M_overflow.
2456 * include/bits/fstream.tcc: Same.
2457 * src/fstream.cc: Same.
2458 * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
2459 _M_move_in_cur. _M_out_cur_move to _M_move_out_cur.
2460 * include/bits/streambuf.tcc: Same.
2461 * include/bits/fstream.tcc: Same.
2462 * include/bits/sstream.tcc: Same.
2464 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
2466 * include/bits/locale_classes.h (locale::_Impl): Change _M_names
2467 from fixed size array.
2468 (locale): Change _S_categories as well.
2470 * include/bits/locale_facets.tcc: Tweak.
2471 * config/locale/gnu/c_locale.cc: Assign _S_categories.
2472 * config/locale/generic/c_locale.cc: Same.
2473 * src/locale.cc: Tweak.
2474 * src/globals.cc: Change facet_name to name_vec, add names_c.
2475 * src/localename.cc: Use them.
2476 (locale::_Impl::~_Impl): Destroy _M_names.
2477 (locale::_Impl::_Impl): Create _M_names.
2479 2003-04-27 Andreas Schwab <schwab@suse.de>
2481 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2482 (__enc_traits): Use __ibom and __ebom instead of ignoring them.
2484 2003-04-27 Nathan Myers <ncm@cantrip.org>
2486 Move some basic_string members out of line because
2487 they are too big to reasonably be inline.
2488 * include/bits/basic_string.h
2489 (assign(const basic_string&, size_type, size_type),
2490 assign(const _CharT*, size_type),
2491 insert(size_type, const basic_string&, size_type, size_type),
2492 insert(size_type, const _CharT*, size_type),
2493 replace(size_type, size_type, const _CharT*, size_type)):
2494 Move from here to...
2495 * include/bits/basic_string.tcc: ...here.
2497 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
2499 * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
2500 the innermost 'if' by factoring out some code.
2502 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
2504 * include/bits/streambuf.tcc (__copy_streambufs): Don't
2505 use in_avail(), simplify.
2507 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
2509 * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
2510 in basic_stringbuf it's unused.
2512 * include/std/std_sstream.h (underflow): consistently use
2513 _M_in_cur, not gptr().
2515 2003-04-25 Ranjit Mathew <rmathew@hotmail.com>
2516 Phil Edwards <pme@gcc.gnu.org>
2518 * testsuite_flags.in: Guard against the possibility
2519 of having "xgcc" as a part of a folder name in the
2520 path to the GCC build folder.
2521 * testsuite/Makefile.am: Likewise.
2522 * testsuite/Makefile.in: Regenerated.
2524 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
2527 * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
2528 exception specifications.
2529 (basic_filebuf::close): Same.
2530 (basic_filebuf::_M_pback_destroy): Same.
2531 (basic_filebuf::_M_destroy_internal_buffer): Same.
2532 (basic_filebuf): Remove __res_type typedef.
2533 * src/fstream.cc: Same.
2534 * include/bits/fstream.tcc
2535 (basic_filebuf::_M_convert_to_external): Simplify.
2536 (basic_filebuf::seekoff): Use has_facet before use_facet.
2537 (basic_filebuf::close): Add exception specification of throw().
2538 * testsuite/27_io/basic_filebuf/cons: New.
2539 * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
2540 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
2541 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
2542 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
2544 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
2546 * include/bits/locale_classes.h
2547 (locale::_S_extra_categories_size): Remove.
2548 * src/locale.cc: Remove _S_extra_categories_size.
2549 * src/localename.cc: Same.
2550 * config/locale/gnu/c_locale.cc: Same.
2551 * config/locale/generic/c_locale.cc: Same.
2553 2003-04-24 Richard Sandiford <rsandifo@redhat.com>
2555 * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
2557 2003-04-24 Phil Edwards <pme@gcc.gnu.org>
2559 * docs/html/17_intro/howto.html: Update some links.
2560 * docs/html/18_support/howto.html: Link doxygen numeric_limits notes.
2561 * docs/html/27_io/howto.html: Link doxygen stdio_filebuf notes.
2562 * docs/html/ext/howto.html: Link to demangler notes and API.
2563 * docs/html/faq/index.html: Remove trailing whitespace.
2564 (1.4, 2.4, 3.8, 4.1): Bring up to date.
2565 (5.6): Change to a bulleted list.
2567 * docs/html/faq/index.txt, docs/html/documentation.html,
2568 docs/html/17_intro/porting.html: Regenerate.
2570 2003-04-23 Paolo Carlini <pcarlini@unitus.it>
2572 * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
2573 belongs to basic_filebuf.
2574 * testsuite/27_io/basic_fstream/3.cc: Likewise.
2575 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
2576 * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
2577 instantiation (now belongs to basic_filebuf).
2578 * testsuite/27_io/basic_iostream/3.cc: Likewise.
2579 * testsuite/27_io/basic_istream/3.cc: Likewise.
2580 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
2581 _S_pback_size now belongs to basic_filebuf.
2582 * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
2583 instantiation (now belongs to basic_filebuf).
2584 * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
2585 belongs to basic_filebuf.
2586 * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
2587 instantiation (now belongs to basic_filebuf).
2588 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
2589 _S_pback_size now belongs to basic_filebuf.
2590 * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
2591 instantiation (now belongs to basic_filebuf).
2592 * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
2594 * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
2595 instantiation (now belongs to basic_filebuf).
2596 * testsuite/27_io/basic_stringstream/3.cc: Likewise.
2598 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
2600 * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
2601 * configure: Regenerated.
2603 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
2605 * config/locale/generic/c_locale.h (__convert_from_v): Use
2608 2003-04-23 Phil Edwards <pme@gcc.gnu.org>
2610 * docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial
2611 implementation only.
2612 * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
2613 Comment and change to comply with DR 60 and the effect on gcount().
2614 * include/std/std_istream.h: Update comments.
2615 * testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add
2616 comments about reasons for tests. Test sync() against gcount().
2617 * testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test
2618 for effect on gcount().
2619 * testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test
2620 for effect on gcount().
2622 2003-04-22 Loren J. Rittle <ljrittle@acm.org>
2624 * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
2627 2003-04-22 Paolo Carlini <pcarlini@unitus.it>
2629 * include/std/std_streambuf.h (_S_pback_size, _M_pback,
2630 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
2631 _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
2632 (basic_streambuf::basic_streambuf()): Adjust.
2633 * include/std/std_fstream.h (_S_pback_size, _M_pback,
2634 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
2635 _M_pback_create(), _M_pback_destroy()): Moved here
2636 from basic_streambuf.
2637 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
2639 (basic_filebuf::_S_pback_size): Add declaration.
2640 * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
2643 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
2645 Consistently use _M_in_beg instead of eback(), _M_in_cur
2646 instead of gptr(), and so on.
2647 * include/bits/fstream.tcc (pbackfail, imbue): Here.
2648 * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
2649 * include/bits/streambuf.tcc (sbumpc, sputbackc,
2650 __copy_streambufs): Ditto.
2651 * include/std/std_streambuf.h (sgetc): Ditto.
2653 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
2655 * include/bits/sstream.tcc (pbackfail, overflow):
2658 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
2660 * include/std/std_streambuf.h (uflow()): It's used only by
2661 basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
2662 therefore do not consider the _M_buf_unified == true case.
2664 * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
2666 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
2668 * docs/html/ext/howto.html ('LWG Issues'):
2669 Add issues 19, 90, 171, 231, 271.
2671 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
2673 * include/bits/sstream.tcc (pbackfail): Remove redundant
2674 NULL pointer check from test involving _M_in_*.
2675 (overflow, seekoff, seekpos): Const qualify bool variables.
2676 * include/std/std_sstream.h (underflow): Remove redundant
2677 NULL pointer check from test involving _M_in_*.
2678 (_M_really_sync): Const qualify bool variables.
2679 * src/fstream.cc (_M_underflow_common): Remove redundant
2680 NULL pointer check from test involving _M_in_*, const qualify
2683 * include/std/std_streambuf.h (sgetc): Remove redundant
2686 2003-04-18 Paolo Carlini <pcarlini@unitus.it>
2688 According to 5.9 para 2 (second bullet) for pointers p, q
2689 pointing to the same type, with p == 0 and q == 0, (p < q)
2691 * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
2692 seekoff): Remove redundant NULL pointer checks from tests
2693 involving _M_out_* and _M_in_*, const qualify bool variables.
2694 (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
2695 qualify bool variables.
2696 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
2697 Remove redundant NULL pointer checks from tests involving
2698 _M_out_* and _M_in_*, const qualify bool variables.
2699 * include/std/std_fstream.h (sync): Likewise.
2700 (_M_is_indeterminate): Const qualify bool variables.
2701 * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
2702 NULL pointer checks from tests involving _M_out_* and _M_in_*,
2703 const qualify bool variables.
2704 (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
2707 2003-04-18 Loren J. Rittle <ljrittle@acm.org>
2709 * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
2710 C99 FP macros, if actually captured.
2712 * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
2713 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
2714 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
2715 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
2716 * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
2718 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
2719 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
2720 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
2721 * include/c_std/std_cstdlib.h: Use new macros.
2722 * include/c_std/std_cstdio.h: Use new macros.
2723 * include/c_std/std_cwchar.h: Use new macros.
2725 2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
2728 * include/bits/ostream.tcc: Catch all exceptions for formatted
2729 output, instead of std::exception and derivatives.
2730 * include/bits/istream.tcc: Same.
2731 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
2732 * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
2733 * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
2734 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
2735 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2736 * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
2739 2003-04-17 Phil Edwards <pme@gcc.gnu.org>
2741 * include/bits/c++config: Minor cosmetic tweaks.
2743 2003-04-17 Loren J. Rittle <ljrittle@acm.org>
2745 * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
2746 * include/Makefile.am (pch_input): Find in ${target_builddir}.
2747 (pch_output): Rename to...
2748 (pch_output_builddir): ..this. Find in ${target_builddir}.
2749 (pch_source): Tweak.
2750 (pch_build): Key off a built file.
2751 (pch_output rule): Rename to...
2752 (pch_input rule): ...this. Produce ${pch_output_builddir}
2753 instead of ${pch_output}.
2754 (install-pch rule): Install ${pch_output_builddir}.
2755 * include/Makefile.in: Regenerated.
2757 2003-04-17 Paolo Carlini <pcarlini@unitus.it>
2759 * include/std/std_streambuf.h (setp): _M_out_lim, being
2760 the end limit of used put area, is set equal to _M_out_beg.
2762 2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
2764 * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
2765 * aclocal.m4: Regenerated.
2766 * configure.in: Remove old demangler bits.
2768 * configure: Regenerate.
2769 * config.h.in: Regenerate.
2770 * include/Makefile.am (allstamps): Now allstamped.
2771 (allcreated): Define this.
2772 (all-local): Use 'em.
2773 Conditionally define pch_build, pch_install based on
2775 (${pch_output}): New rule.
2776 (install-pch): New rule.
2777 (install-headers): New rule.
2778 (install-data-local): Install headers and conditionally pch.
2779 * include/Makefile.in: Regenerate.
2780 * testsuite_flags.in (--build-cxx): Use pch file.
2782 2003-04-16 Jonathan Wakely <redi@gcc.gnu.org>
2784 * docs/html/ext/sgiexts.html: Fix path to stylesheet.
2786 2003-04-15 Benjamin Kosnik <bkoz at redhat dot com>
2787 Paolo Carlini <pcarlini at unitus dot it>
2790 * docs/html/27_io/howto.html
2791 ('The buffering is screwing up my program!'): Explain that
2792 opening counts as an I/O operation.
2794 2003-04-15 Andreas Tobler <a.tobler@schweiz.ch>
2796 * testsuite/thread/pthread1.cc: Enable for darwin test.
2797 * testsuite/thread/pthread2.cc: Same.
2798 * testsuite/thread/pthread3.cc: Same.
2799 * testsuite/thread/pthread4.cc: Same.
2800 * testsuite/thread/pthread5.cc: Same.
2801 * testsuite/thread/pthread6.cc: Same.
2803 2003-04-15 Loren J. Rittle <ljrittle@acm.org>
2806 * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
2807 Populate it with multiple legal ways to obtain the C99 float
2808 transcendentals. Use them instead of direct global reference.
2809 (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
2810 * docs/html/17_intro/porting.texi
2811 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
2812 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
2813 (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
2814 * config/os/bsd/freebsd/os_defines.h
2815 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
2816 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
2817 * testsuite/26_numerics/c_math_dynamic.cc: New file.
2819 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
2820 Benjamin Kosnik <bkoz@redhat.com>
2822 * config/os/generic/ctype_inline.h: Fix.
2824 2003-04-14 Benjamin Kosnik <bkoz@redhat.com>
2826 * testsuite/testsuite_hooks.h
2827 (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
2828 Change to try_named_locale.
2829 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
2831 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
2833 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
2834 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
2835 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
2836 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
2837 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
2838 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
2839 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
2840 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
2841 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
2842 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
2843 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
2844 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
2845 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
2846 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
2847 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
2848 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
2849 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
2850 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
2851 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
2852 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
2853 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
2854 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
2855 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
2856 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
2857 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
2858 * testsuite/22_locale/collate/compare/char/1.cc: Same.
2859 * testsuite/22_locale/collate/compare/char/2.cc: Same.
2860 * testsuite/22_locale/collate/compare/char/3.cc: Same.
2861 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
2862 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
2863 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
2864 * testsuite/22_locale/collate/hash/char/2.cc: Same.
2865 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
2866 * testsuite/22_locale/collate/transform/char/2.cc: Same.
2867 * testsuite/22_locale/collate/transform/char/3.cc: Same.
2868 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
2869 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
2870 * testsuite/22_locale/collate_byname/1.cc: Same.
2871 * testsuite/22_locale/ctype/is/char/2.cc: Same.
2872 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2873 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
2874 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
2875 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
2876 * testsuite/22_locale/facet/2.cc: Same.
2877 * testsuite/22_locale/locale/cons/2.cc: Same.
2878 * testsuite/22_locale/locale/cons/4.cc: Same.
2879 * testsuite/22_locale/locale/cons/5.cc: Same.
2880 * testsuite/22_locale/locale/cons/7.cc: Same.
2881 * testsuite/22_locale/locale/cons/7222-c.cc: Same.
2882 * testsuite/22_locale/locale/cons/7222-env.cc: Same.
2883 * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
2884 * testsuite/22_locale/messages/members/char/1.cc: Same.
2885 * testsuite/22_locale/messages/members/char/2.cc: Same.
2886 * testsuite/22_locale/messages/members/char/3.cc: Same.
2887 * testsuite/22_locale/messages_byname/1.cc: Same.
2888 * testsuite/22_locale/money_get/get/char/1.cc: Same.
2889 * testsuite/22_locale/money_get/get/char/2.cc: Same.
2890 * testsuite/22_locale/money_get/get/char/3.cc: Same.
2891 * testsuite/22_locale/money_get/get/char/4.cc: Same.
2892 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
2893 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
2894 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
2895 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
2896 * testsuite/22_locale/money_put/put/char/1.cc: Same.
2897 * testsuite/22_locale/money_put/put/char/2.cc: Same.
2898 * testsuite/22_locale/money_put/put/char/3.cc: Same.
2899 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
2900 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
2901 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
2902 * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
2903 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
2904 * testsuite/22_locale/moneypunct_byname/1.cc: Same.
2905 * testsuite/22_locale/num_get/get/char/1.cc: Same.
2906 * testsuite/22_locale/num_get/get/char/2.cc: Same.
2907 * testsuite/22_locale/num_get/get/char/3.cc: Same.
2908 * testsuite/22_locale/num_get/get/char/5.cc: Same.
2909 * testsuite/22_locale/num_get/get/char/6.cc: Same.
2910 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
2911 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
2912 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
2913 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
2914 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
2915 * testsuite/22_locale/num_put/put/char/1.cc: Same.
2916 * testsuite/22_locale/num_put/put/char/2.cc: Same.
2917 * testsuite/22_locale/num_put/put/char/3.cc: Same.
2918 * testsuite/22_locale/num_put/put/char/5.cc: Same.
2919 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
2920 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
2921 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
2922 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
2923 * testsuite/22_locale/numpunct/members/char/1.cc: Same.
2924 * testsuite/22_locale/numpunct/members/char/2.cc: Same.
2925 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
2926 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
2927 * testsuite/22_locale/numpunct_byname/1.cc: Same.
2928 * testsuite/22_locale/numpunct_byname/2.cc: Same.
2929 * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
2930 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
2931 * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
2932 * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
2933 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
2934 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
2935 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
2936 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
2937 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
2938 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
2939 * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
2940 * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
2941 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
2942 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
2943 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
2944 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
2945 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
2946 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
2947 * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
2948 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
2949 * testsuite/22_locale/time_put/put/char/1.cc: Same.
2950 * testsuite/22_locale/time_put/put/char/2.cc: Same.
2951 * testsuite/22_locale/time_put/put/char/3.cc: Same.
2952 * testsuite/22_locale/time_put/put/char/4.cc: Same.
2953 * testsuite/22_locale/time_put/put/char/5.cc: Same.
2954 * testsuite/22_locale/time_put/put/char/6.cc: Same.
2955 * testsuite/22_locale/time_put/put/char/7.cc: Same.
2956 * testsuite/22_locale/time_put/put/char/8.cc: Same.
2957 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
2958 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
2959 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
2960 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
2961 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
2962 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
2963 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
2964 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
2965 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
2966 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
2967 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
2968 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
2969 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
2971 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
2973 * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
2974 solaris includes, not generic.
2976 2003-04-14 Loren J. Rittle <ljrittle@acm.org>
2978 * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
2980 * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
2981 * include/bits/concept_check.h: Fix multi-line comment.
2982 * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
2983 when target is *-*-freebsd*.
2985 2003-04-14 Nathan Myers <ncm@cantrip.org>
2986 Paolo Carlini <pcarlini@unitus.it>
2988 PR libstdc++/9701 (in_avail())
2989 * include/std/std_streambuf.h (in_avail): Simplify, in_avail
2990 doesn't care if there is anything in some putback cell.
2991 * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
2993 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
2994 unused string literals.
2996 2003-04-14 Paolo Carlini <pcarlini@unitus.it>
2998 * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
2999 _M_out_end, _M_set_indeterminate() does it.
3001 2003-04-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3003 * os/hpux/ctype_inline.h: Replace with gnu-linux version.
3005 2003-04-12 David Edelsohn <edelsohn@gnu.org>
3007 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
3008 Change basic_streambuf instantiation to "unsigned char".
3009 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3011 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
3013 Remove _M_buf_size_opt, use directly _M_buf_size instead.
3014 * include/bits/fstream.tcc
3015 (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
3016 references to _M_buf_size_opt.
3017 * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
3018 * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
3019 __bufsize to __in_avail and __size_opt to __buf_size.
3020 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
3021 * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
3022 * include/std/std_streambuf.h (~basic_streambuf(),
3023 basic_streambuf()): Likewise, remove _M_buf_size_opt member.
3024 * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
3025 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
3026 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
3027 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
3028 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
3029 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
3030 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
3031 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
3032 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
3033 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
3034 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
3035 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
3037 2003-04-12 Paolo Carlini <pcarlini at unitus dot it>
3039 * include/ext/stdio_filebuf.h
3040 (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
3041 stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
3042 _M_buf_size_opt == 0 only means "not to use an allocated buffer"
3043 since a stack-based buffer is used for small values of the size_t
3045 * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
3046 If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
3047 * testsuite/ext/stdio_filebuf_2.cc: New testfile.
3049 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
3052 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
3053 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
3055 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
3057 * testsuite/22_locale/locale/cons/3.cc: Split.
3058 * testsuite/22_locale/locale/cons/7222-c.cc: New.
3059 * testsuite/22_locale/locale/cons/7222-env.cc: New.
3060 Check before trying to create a locale from the environment.
3061 * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
3062 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3065 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
3067 * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
3068 locale to construct this hybrid locale, not the global locale.
3070 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
3072 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
3073 instantiation for AIX.
3074 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3075 * testsuite/25_algorithms/min_max.cc: Same.
3077 2003-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3079 * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
3080 twice. Always set _M_cfile to 0 when stream was open.
3082 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
3084 Reshuffle 27_io testsuite. * testsuite/27_io/filebuf.cc,
3085 filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
3086 filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
3087 filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
3088 filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
3089 ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
3090 ifstream_members.cc, instantiations.cc, ios.cc,
3091 ios_base_callbacks.cc, ios_base_members_static-1.tst,
3092 ios_base_members_static.cc, ios_base_storage.cc,
3093 ios_base_types.cc, ios_ctor.cc, ios_init.cc,
3094 ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
3095 iostream.cc, iostream_members.cc, istream.cc,
3096 istream_exception.cc, istream_extractor_char.cc,
3097 istream_extractor_other-1.tst, istream_extractor_other-1.txt,
3098 istream_extractor_other-2.tst, istream_extractor_other.cc,
3099 istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
3100 istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
3101 istream_sentry.cc, istream_unformatted-1.tst,
3102 istream_unformatted-1.txt, istream_unformatted.cc,
3103 istringstream.cc, istringstream_members.cc,
3104 narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
3105 ofstream_members.cc, ostream.cc, ostream_exception.cc,
3106 ostream_fail.cc, ostream_inserter_arith.cc,
3107 ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
3108 ostream_inserter_char.cc, ostream_inserter_other-1.tst,
3109 ostream_inserter_other-2.tst, ostream_inserter_other.cc,
3110 ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
3111 ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
3112 ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
3113 streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
3114 stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
3115 wide_stream_objects.cc, istream_extractor_arith/01.cc,
3116 istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
3117 istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
3118 istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
3119 istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
3120 istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
3122 * 27_io/basic_filebuf/1.cc: New.
3123 * 27_io/basic_filebuf/2.cc: New.
3124 * 27_io/basic_filebuf/3.cc: New.
3125 * 27_io/basic_filebuf/4.cc: New.
3126 * 27_io/basic_filebuf/close/char/1.cc: New.
3127 * 27_io/basic_filebuf/close/char/2.cc: New.
3128 * 27_io/basic_filebuf/close/char/3.cc: New.
3129 * 27_io/basic_filebuf/close/char/4879.cc: New.
3130 * 27_io/basic_filebuf/close/char/9964.cc: New.
3131 * 27_io/basic_filebuf/imbue/char/1.cc: New.
3132 * 27_io/basic_filebuf/imbue/char/9322.cc: New.
3133 * 27_io/basic_filebuf/in_avail/char/1.cc: New.
3134 * 27_io/basic_filebuf/is_open/char/1.cc: New.
3135 * 27_io/basic_filebuf/open/char/1.cc: New.
3136 * 27_io/basic_filebuf/open/char/2.cc: New.
3137 * 27_io/basic_filebuf/open/char/3.cc: New.
3138 * 27_io/basic_filebuf/open/char/9507.cc: New.
3139 * 27_io/basic_filebuf/overflow/char/1.cc: New.
3140 * 27_io/basic_filebuf/overflow/char/3599.cc: New.
3141 * 27_io/basic_filebuf/overflow/char/9169.cc: New.
3142 * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
3143 * 27_io/basic_filebuf/overflow/char/9988.cc: New.
3144 * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
3145 * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
3146 * 27_io/basic_filebuf/seekoff/char/1.cc: New.
3147 * 27_io/basic_filebuf/seekoff/char/2.cc: New.
3148 * 27_io/basic_filebuf/seekpos/char/1.cc: New.
3149 * 27_io/basic_filebuf/seekpos/char/2.cc: New.
3150 * 27_io/basic_filebuf/setbuf/char/1.cc: New.
3151 * 27_io/basic_filebuf/setbuf/char/2.cc: New.
3152 * 27_io/basic_filebuf/setbuf/char/3.cc: New.
3153 * 27_io/basic_filebuf/sgetc/char/1.cc: New.
3154 * 27_io/basic_filebuf/sgetn/char/1.cc: New.
3155 * 27_io/basic_filebuf/sgetn/char/2.cc: New.
3156 * 27_io/basic_filebuf/snextc/char/1.cc: New.
3157 * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
3158 * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
3159 * 27_io/basic_filebuf/sputc/char/1.cc: New.
3160 * 27_io/basic_filebuf/sputc/char/1057.cc: New.
3161 * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
3162 * 27_io/basic_filebuf/sputn/char/1.cc: New.
3163 * 27_io/basic_filebuf/sputn/char/1057.cc: New.
3164 * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
3165 * 27_io/basic_filebuf/sungetc/char/1.cc: New.
3166 * 27_io/basic_filebuf/sync/char/1057.cc: New.
3167 * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
3168 * 27_io/basic_filebuf/underflow/char/10097.cc: New.
3169 * 27_io/basic_fstream/1.cc: New.
3170 * 27_io/basic_fstream/2.cc: New.
3171 * 27_io/basic_fstream/3.cc: New.
3172 * 27_io/basic_fstream/4.cc: New.
3173 * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
3174 * 27_io/basic_ifstream/1.cc: New.
3175 * 27_io/basic_ifstream/2.cc: New.
3176 * 27_io/basic_ifstream/3.cc: New.
3177 * 27_io/basic_ifstream/4.cc: New.
3178 * 27_io/basic_ifstream/cons/char/1.cc: New.
3179 * 27_io/basic_ifstream/open/char/1.cc: New.
3180 * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
3181 * 27_io/basic_ios/1.cc: New.
3182 * 27_io/basic_ios/2.cc: New.
3183 * 27_io/basic_ios/3.cc: New.
3184 * 27_io/basic_ios/4.cc: New.
3185 * 27_io/basic_ios/clear/char/1.cc: New.
3186 * 27_io/basic_ios/cons/char/1.cc: New.
3187 * 27_io/basic_ios/cons/char/2.cc: New.
3188 * 27_io/basic_ios/cons/char/3.cc: New.
3189 * 27_io/basic_ios/copyfmt/char/1.cc: New.
3190 * 27_io/basic_ios/copyfmt/char/2.cc: New.
3191 * 27_io/basic_ios/exceptions/char/1.cc: New.
3192 * 27_io/basic_ios/locales/char/1.cc: New.
3193 * 27_io/basic_iostream/1.cc: New.
3194 * 27_io/basic_iostream/2.cc: New.
3195 * 27_io/basic_iostream/3.cc: New.
3196 * 27_io/basic_iostream/4.cc: New.
3197 * 27_io/basic_istream/1.cc: New.
3198 * 27_io/basic_istream/2.cc: New.
3199 * 27_io/basic_istream/3.cc: New.
3200 * 27_io/basic_istream/4.cc: New.
3201 * 27_io/basic_istream/exceptions/char/9561.cc: New.
3202 * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
3203 * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
3204 * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
3205 * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
3206 * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
3207 * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
3208 * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
3209 * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
3210 * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
3211 * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
3212 * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
3213 * 27_io/basic_istream/extractors_character/char/1.cc: New.
3214 * 27_io/basic_istream/extractors_character/char/2.cc: New.
3215 * 27_io/basic_istream/extractors_character/char/3.cc: New.
3216 * 27_io/basic_istream/extractors_character/char/9826.cc: New.
3217 * 27_io/basic_istream/extractors_other/char/1.cc: New.
3218 * 27_io/basic_istream/extractors_other/char/2.cc: New.
3219 * 27_io/basic_istream/extractors_other/char/3.cc: New.
3220 * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
3221 * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
3222 * 27_io/basic_istream/get/char/1.cc: New.
3223 * 27_io/basic_istream/get/char/2.cc: New.
3224 * 27_io/basic_istream/getline/char/1.cc: New.
3225 * 27_io/basic_istream/getline/char/2.cc: New.
3226 * 27_io/basic_istream/getline/char/3.cc: New.
3227 * 27_io/basic_istream/ignore/char/1.cc: New.
3228 * 27_io/basic_istream/ignore/char/6360.cc: New.
3229 * 27_io/basic_istream/ignore/char/7220.cc: New.
3230 * 27_io/basic_istream/peek/char/1.cc: New.
3231 * 27_io/basic_istream/peek/char/6414.cc: New.
3232 * 27_io/basic_istream/putback/char/1.cc: New.
3233 * 27_io/basic_istream/read/char/1.cc: New.
3234 * 27_io/basic_istream/read/char/2.cc: New.
3235 * 27_io/basic_istream/read/char/3.cc: New.
3236 * 27_io/basic_istream/readsome/char/6746-1.cc: New.
3237 * 27_io/basic_istream/readsome/char/6746-2.cc: New.
3238 * 27_io/basic_istream/readsome/char/8258.cc: New.
3239 * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
3240 * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
3241 * 27_io/basic_istream/seekg/char/8348-1.cc: New.
3242 * 27_io/basic_istream/seekg/char/8348-2.cc: New.
3243 * 27_io/basic_istream/seekg/char/fstream.cc: New.
3244 * 27_io/basic_istream/seekg/char/sstream.cc: New.
3245 * 27_io/basic_istream/sentry/char/1.cc: New.
3246 * 27_io/basic_istream/sentry/char/2.cc: New.
3247 * 27_io/basic_istream/sentry/char/3.cc: New.
3248 * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
3249 * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
3250 * 27_io/basic_istream/tellg/char/1.cc: New.
3251 * 27_io/basic_istream/tellg/char/8348.cc: New.
3252 * 27_io/basic_istream/tellg/char/fstream.cc: New.
3253 * 27_io/basic_istream/tellg/char/sstream.cc: New.
3254 * 27_io/basic_istream/ws/char/1.cc: New.
3255 * 27_io/basic_istringstream/1.cc: New.
3256 * 27_io/basic_istringstream/2.cc: New.
3257 * 27_io/basic_istringstream/3.cc: New.
3258 * 27_io/basic_istringstream/4.cc: New.
3259 * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
3260 * 27_io/basic_istringstream/str/char/1.cc: New.
3261 * 27_io/basic_ofstream/1.cc: New.
3262 * 27_io/basic_ofstream/2.cc: New.
3263 * 27_io/basic_ofstream/3.cc: New.
3264 * 27_io/basic_ofstream/4.cc: New.
3265 * 27_io/basic_ofstream/cons/char/2.cc: New.
3266 * 27_io/basic_ofstream/open/char/1.cc: New.
3267 * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
3268 * 27_io/basic_ostream/1.cc: New.
3269 * 27_io/basic_ostream/2.cc: New.
3270 * 27_io/basic_ostream/3.cc: New.
3271 * 27_io/basic_ostream/4.cc: New.
3272 * 27_io/basic_ostream/cons/char/9827.cc: New.
3273 * 27_io/basic_ostream/endl/char/1.cc: New.
3274 * 27_io/basic_ostream/ends/char/1.cc: New.
3275 * 27_io/basic_ostream/ends/char/2.cc: New.
3276 * 27_io/basic_ostream/exceptions/char/9561.cc: New.
3277 * 27_io/basic_ostream/flush/char/1.cc: New.
3278 * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
3279 * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
3280 * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
3281 * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
3282 * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
3283 * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
3284 * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
3285 * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
3286 * 27_io/basic_ostream/inserters_character/char/1.cc: New.
3287 * 27_io/basic_ostream/inserters_character/char/2.cc: New.
3288 * 27_io/basic_ostream/inserters_character/char/3.cc: New.
3289 * 27_io/basic_ostream/inserters_character/char/4.cc: New.
3290 * 27_io/basic_ostream/inserters_character/char/5.cc: New.
3291 * 27_io/basic_ostream/inserters_character/char/6.cc: New.
3292 * 27_io/basic_ostream/inserters_character/char/8.cc: New.
3293 * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
3294 * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
3295 * 27_io/basic_ostream/inserters_other/char/1.cc: New.
3296 * 27_io/basic_ostream/inserters_other/char/2.cc: New.
3297 * 27_io/basic_ostream/inserters_other/char/3.cc: New.
3298 * 27_io/basic_ostream/inserters_other/char/4.cc: New.
3299 * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
3300 * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
3301 * 27_io/basic_ostream/sentry/char/1.cc: New.
3302 * 27_io/basic_ostream/sentry/char/2.cc: New.
3303 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
3304 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
3305 * 27_io/basic_ostream/tellp/char/1.cc: New.
3306 * 27_io/basic_ostream/tellp/char/2.cc: New.
3307 * 27_io/basic_ostringstream/1.cc: New.
3308 * 27_io/basic_ostringstream/2.cc: New.
3309 * 27_io/basic_ostringstream/3.cc: New.
3310 * 27_io/basic_ostringstream/4.cc: New.
3311 * 27_io/basic_ostringstream/cons/char/3.cc: New.
3312 * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
3313 * 27_io/basic_ostringstream/str/char/1.cc: New.
3314 * 27_io/basic_ostringstream/str/char/2.cc: New.
3315 * 27_io/basic_streambuf/1.cc: New.
3316 * 27_io/basic_streambuf/2.cc: New.
3317 * 27_io/basic_streambuf/3.cc: New.
3318 * 27_io/basic_streambuf/cons/char/1.cc: New.
3319 * 27_io/basic_streambuf/imbue/char/1.cc: New.
3320 * 27_io/basic_streambuf/imbue/char/9322.cc: New.
3321 * 27_io/basic_streambuf/overflow/char/1.cc: New.
3322 * 27_io/basic_streambuf/overflow/char/2.cc: New.
3323 * 27_io/basic_streambuf/overflow/char/3599.cc: New.
3324 * 27_io/basic_streambuf/sgetc/char/1.cc: New.
3325 * 27_io/basic_streambuf/sgetn/char/1.cc: New.
3326 * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
3327 * 27_io/basic_streambuf/sputc/char/1057.cc: New.
3328 * 27_io/basic_streambuf/sputn/char/1.cc: New.
3329 * 27_io/basic_streambuf/sputn/char/1057.cc: New.
3330 * 27_io/basic_streambuf/sync/char/1057.cc: New.
3331 * 27_io/basic_stringbuf/1.cc: New.
3332 * 27_io/basic_stringbuf/2.cc: New.
3333 * 27_io/basic_stringbuf/3.cc: New.
3334 * 27_io/basic_stringbuf/4.cc: New.
3335 * 27_io/basic_stringbuf/5.cc: New.
3336 * 27_io/basic_stringbuf/imbue/char/1.cc: New.
3337 * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
3338 * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
3339 * 27_io/basic_stringbuf/overflow/char/2.cc: New.
3340 * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
3341 * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
3342 * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
3343 * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
3344 * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
3345 * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
3346 * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
3347 * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
3348 * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
3349 * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
3350 * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
3351 * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
3352 * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
3353 * 27_io/basic_stringbuf/snextc/char/1.cc: New.
3354 * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
3355 * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
3356 * 27_io/basic_stringbuf/sputc/char/1.cc: New.
3357 * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
3358 * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
3359 * 27_io/basic_stringbuf/sputn/char/1.cc: New.
3360 * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
3361 * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
3362 * 27_io/basic_stringbuf/str/char/1.cc: New.
3363 * 27_io/basic_stringbuf/str/char/2.cc: New.
3364 * 27_io/basic_stringbuf/str/char/3.cc: New.
3365 * 27_io/basic_stringbuf/str/char/3955.cc: New.
3366 * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
3367 * 27_io/basic_stringbuf/sync/char/1057.cc: New.
3368 * 27_io/basic_stringstream/1.cc: New.
3369 * 27_io/basic_stringstream/2.cc: New.
3370 * 27_io/basic_stringstream/3.cc: New.
3371 * 27_io/basic_stringstream/4.cc: New.
3372 * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
3373 * 27_io/basic_stringstream/str/char/1.cc: New.
3374 * 27_io/basic_stringstream/str/char/2.cc: New.
3375 * 27_io/basic_stringstream/str/char/3.cc: New.
3376 * 27_io/basic_stringstream/str/char/4.cc: New.
3377 * 27_io/fpos/1.cc: New.
3378 * 27_io/fpos/2.cc: New.
3379 * 27_io/fpos/3.cc: New.
3380 * 27_io/ios_base/callbacks/1.cc: New.
3381 * 27_io/ios_base/state/1.cc: New.
3382 * 27_io/ios_base/storage/1.cc: New.
3383 * 27_io/ios_base/storage/2.cc: New.
3384 * 27_io/ios_base/storage/3.cc: New.
3385 * 27_io/ios_base/sync_with_stdio/1.cc: New.
3386 * 27_io/ios_base/sync_with_stdio/2.cc: New.
3387 * 27_io/manipulators/adjustfield/char/1.cc: New.
3388 * 27_io/manipulators/adjustfield/char/2.cc: New.
3389 * 27_io/manipulators/basefield/char/1.cc: New.
3390 * 27_io/manipulators/standard/char/1.cc: New.
3391 * 27_io/manipulators/standard/char/2.cc: New.
3392 * 27_io/objects/char/1.cc: New.
3393 * 27_io/objects/char/2.cc: New.
3394 * 27_io/objects/char/2523-1_xin.cc: New.
3395 * 27_io/objects/char/2523-1_xin.in: New.
3396 * 27_io/objects/char/2523-2_xin.cc: New.
3397 * 27_io/objects/char/2523-2_xin.in: New.
3398 * 27_io/objects/char/3045.cc: New.
3399 * 27_io/objects/char/3647.cc: New.
3400 * 27_io/objects/char/3_xin.cc: New.
3401 * 27_io/objects/char/3_xin.in: New.
3402 * 27_io/objects/char/4_xin.cc: New.
3403 * 27_io/objects/char/4_xin.in: New.
3404 * 27_io/objects/char/5268.cc: New.
3405 * 27_io/objects/char/5280_xin.cc: New.
3406 * 27_io/objects/char/5280_xin.in: New.
3407 * 27_io/objects/char/6548_xin.cc: New.
3408 * 27_io/objects/char/6548_xin.in: New.
3409 * 27_io/objects/char/6648-1_xin.cc: New.
3410 * 27_io/objects/char/6648-1_xin.in: New.
3411 * 27_io/objects/char/6648-2_xin.cc: New.
3412 * 27_io/objects/char/6648-2_xin.in: New.
3413 * 27_io/objects/char/7744_xin.cc: New.
3414 * 27_io/objects/char/7744_xin.in: New.
3415 * 27_io/objects/wchar_t/1.cc: New.
3416 * 27_io/types/1.cc: New.
3417 * 27_io/types/2.cc: New.
3418 * data/filebuf_members-1.tst: New.
3419 * data/filebuf_members-1.txt: New.
3420 * data/filebuf_virtuals-1.tst: New.
3421 * data/filebuf_virtuals-1.txt: New.
3422 * data/filebuf_virtuals-2.tst: New.
3423 * data/filebuf_virtuals-3.tst: New.
3424 * data/ifstream_members-1.tst: New.
3425 * data/ifstream_members-1.txt: New.
3426 * data/ios_base_members_static-1.tst: New.
3427 * data/istream_extractor_other-1.tst: New.
3428 * data/istream_extractor_other-1.txt: New.
3429 * data/istream_extractor_other-2.tst: New.
3430 * data/istream_seeks-1.tst: New.
3431 * data/istream_seeks-1.txt: New.
3432 * data/istream_seeks-2.tst: New.
3433 * data/istream_seeks-3.tst: New.
3434 * data/istream_unformatted-1.tst: New.
3435 * data/istream_unformatted-1.txt: New.
3436 * data/ofstream_members-1.tst: New.
3437 * data/ostream_inserter_char-1.tst: New.
3438 * data/ostream_inserter_char-1.txt: New.
3439 * data/ostream_inserter_other-1.tst: New.
3440 * data/ostream_inserter_other-2.tst: New.
3441 * data/ostream_seeks-1.tst: New.
3443 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
3445 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
3446 requirement that __mode must be strict input or output.
3448 * include/std/std_streambuf.h (basic_streambuf::setp): Set
3451 * include/std/std_sstream.h (basic_strinbuf::str): Zero length
3452 output string shouldn't core.
3453 (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
3455 * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
3457 * include/bits/istream.tcc (basic_istream::putback): Set gcount to
3460 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
3462 * testsuite/data: New directory.
3463 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
3464 to copy files from the testsuite data directory.
3465 (libstdc++-v3-list-sourcefiles): Add another test list filter, for
3466 testfiles containing _xin, which now means this is an interactive
3467 test and should be run with the interactive dejagnu hooks.
3468 * testsuite/Makefile.am: Remove testsuite_* files.
3469 * testsuite/Makefile.in: Regenerate.
3471 2003-04-09 Zack Weinberg <zack@codesourcery.com>
3473 * docs/html/install.html: Document complete list of locales
3474 required by test suite. Document procedure for installing
3475 said locales under Debian. Solicit instructions for other
3478 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
3480 * include/bits/sstream.tcc (overflow): Make sure operands of min
3481 and max have the same type.
3483 2003-04-04 Jerry Quinn <jlquinn@optonline.net>
3486 * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
3489 2003-03-31 Paolo Carlini <pcarlini@unitus.it>
3491 * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
3492 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
3493 Don't set _M_out_end.
3494 (basic_filebuf::overflow): Replace _M_out_buf_size() with
3495 this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
3496 * include/bits/sstream.tcc (basic_stringbuf::overflow):
3497 Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
3498 * include/bits/streambuf.tcc (basic_streambuf::sputc):
3499 Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
3500 (basic_streambuf::xsputn): Replace _M_out_buf_size() with
3501 _M_out_end - _M_out_cur.
3502 (__copy_streambufs): Likewise.
3503 * include/std/std_fstream.h (_M_set_determinate): Set
3506 2003-03-30 Paolo Carlini <pcarlini@unitus.it>
3508 * include/bits/fstream.tcc (basic_filebuf::showmanyc,
3509 _M_convert_to_external, _M_really_overflow, seekoff): Fix
3510 test for synced buffer.
3511 * include/std/std_fstream.h (sync): Likewise.
3512 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
3513 basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
3515 2003-03-28 Benjamin Kosnik <bkoz@redhat.com>
3517 * include/std/std_sstream.h (basic_istringstream): Adjust
3519 (basic_ostringstream): Same.
3520 (basic_stringstream): Same.
3521 * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
3522 (basic_ofstream): Same.
3523 (basic_fstream): Same.
3524 * include/std/std_ostream.h (basic_ostrem): Add protected ctor
3525 that does not call init.
3526 * include/std/std_istream.h (basic_istream): Same.
3527 (basic_iostream): Construct istream, ostream uninitialized, use
3528 init to initialize just once. Add protected ctor that does not
3531 2003-03-28 Paolo Carlini <pcarlini@unitus.it>
3532 Nathan Myers <ncm@cantrip.org>
3535 * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
3537 (basic_filebuf<>::showmanyc): Use the information provided
3538 by codecvt and __basic_file<>::showmanyc_helper to implement
3539 a non-trivial showmanyc.
3540 * config/io/basic_file_stdio.h
3541 (__basic_file<>::showmanyc_helper): New, declare.
3542 * config/io/basic_file_stdio.cc
3543 (__basic_file<>::showmanyc_helper): Define.
3544 (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
3545 (__basic_file<char>::open): Don't call fcntl().
3546 * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
3547 GLIBCPP_CHECK_POLL): New macros.
3548 * configure.in: Call here.
3549 * acconfig.h: Add #undefs for the corresponding symbols.
3550 * aclocal.m4: Regenerate.
3551 * configure: Regenerate.
3552 * config.h.in: Regenerate.
3554 2003-03-24 Benjamin Kosnik <bkoz@redhat.com>
3556 * config/linker-map.gnu: Remove string export restrictions.
3558 2003-03-24 Paolo Carlini <pcarlini@unitus.it>
3560 * testsuite/21_strings/basic_string/find/char/1.cc: Remove
3561 find_first_of, find_last_of and find_last_not_of tests.
3562 * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
3563 tests here, new file.
3564 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
3565 remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
3566 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
3567 wchar_t find_first_of tests here, new file.
3568 * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
3570 * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
3572 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
3573 wchar_t find_last_of tests here.
3574 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
3575 wchar_t find_last_not_of tests here.
3577 2003-03-22 Loren J. Rittle <ljrittle@acm.org>
3579 * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
3580 Correct return value.
3582 2003-03-21 Jerry Quinn <jlquinn@optonline.net>
3585 * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
3586 * include/std/std_complex.h (norm): Use faster,
3587 less accurate computation for builtin float types under --fast-math.
3589 2003-03-21 Magnus Fromreide <gnats@magfr.user.lysator.liu.se>
3591 * testsuite/testsuite_hooks.h: Fix warning nits.
3593 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
3595 * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
3596 Only .set mips2 for the o32 ABI.
3598 2003-03-19 Paolo Carlini <pcarlini@unitus.it>
3600 * testsuite/21_strings/char_traits/requirements/char/1.cc:
3601 Test char not wchar_t.
3603 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
3605 * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
3606 Correct size, taking into account sizeof(wchar_t).
3608 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
3610 Reshuffle 21_strings testsuite.
3611 * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
3612 assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
3613 element_access.cc, operations.cc, char_traits_requirements.cc,
3614 find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
3615 compare.cc, inserters_extractors.cc, substr.cc: Split up, add
3616 wchar_t tests as follows.
3617 * 21_strings/basic_string/append/char/1.cc: New.
3618 * 21_strings/basic_string/append/wchar_t/1.cc: New.
3619 * 21_strings/basic_string/assign/char/1.cc: New.
3620 * 21_strings/basic_string/assign/char/2.cc: New.
3621 * 21_strings/basic_string/assign/char/3.cc: New.
3622 * 21_strings/basic_string/assign/wchar_t/1.cc: New.
3623 * 21_strings/basic_string/assign/wchar_t/2.cc: New.
3624 * 21_strings/basic_string/assign/wchar_t/3.cc: New.
3625 * 21_strings/basic_string/capacity/1.cc: New.
3626 * 21_strings/basic_string/capacity/char/1.cc: New.
3627 * 21_strings/basic_string/capacity/char/2.cc: New.
3628 * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
3629 * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
3630 * 21_strings/basic_string/compare/char/1.cc: New.
3631 * 21_strings/basic_string/compare/wchar_t/1.cc: New.
3632 * 21_strings/basic_string/cons/char/1.cc: New.
3633 * 21_strings/basic_string/cons/char/2.cc: New.
3634 * 21_strings/basic_string/cons/char/3.cc: New.
3635 * 21_strings/basic_string/cons/char/4.cc: New.
3636 * 21_strings/basic_string/cons/char/5.cc: New.
3637 * 21_strings/basic_string/cons/wchar_t/1.cc: New.
3638 * 21_strings/basic_string/cons/wchar_t/2.cc: New.
3639 * 21_strings/basic_string/cons/wchar_t/3.cc: New.
3640 * 21_strings/basic_string/cons/wchar_t/4.cc: New.
3641 * 21_strings/basic_string/cons/wchar_t/5.cc: New.
3642 * 21_strings/basic_string/element_access/char/1.cc: New.
3643 * 21_strings/basic_string/element_access/char/2.cc: New.
3644 * 21_strings/basic_string/element_access/char/3.cc: New.
3645 * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
3646 * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
3647 * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
3648 * 21_strings/basic_string/find/char/1.cc: New.
3649 * 21_strings/basic_string/find/wchar_t/1.cc: New.
3650 * 21_strings/basic_string/insert/char/1.cc: New.
3651 * 21_strings/basic_string/insert/char/2.cc: New.
3652 * 21_strings/basic_string/insert/wchar_t/1.cc: New.
3653 * 21_strings/basic_string/insert/wchar_t/2.cc: New.
3654 * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
3655 * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
3656 * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
3657 * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
3658 * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
3659 * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
3660 * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
3661 * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
3662 * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
3663 * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
3664 * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
3665 * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
3666 * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
3667 * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
3668 * 21_strings/basic_string/operators/char/1.cc: New.
3669 * 21_strings/basic_string/operators/char/2.cc: New.
3670 * 21_strings/basic_string/operators/wchar_t/1.cc: New.
3671 * 21_strings/basic_string/operators/wchar_t/2.cc: New.
3672 * 21_strings/basic_string/replace/char/1.cc: New.
3673 * 21_strings/basic_string/replace/char/2.cc: New.
3674 * 21_strings/basic_string/replace/char/3.cc: New.
3675 * 21_strings/basic_string/replace/char/4.cc: New.
3676 * 21_strings/basic_string/replace/char/5.cc: New.
3677 * 21_strings/basic_string/replace/wchar_t/1.cc: New.
3678 * 21_strings/basic_string/replace/wchar_t/2.cc: New.
3679 * 21_strings/basic_string/replace/wchar_t/3.cc: New.
3680 * 21_strings/basic_string/replace/wchar_t/4.cc: New.
3681 * 21_strings/basic_string/replace/wchar_t/5.cc: New.
3682 * 21_strings/basic_string/rfind/char/1.cc: New.
3683 * 21_strings/basic_string/rfind/char/2.cc: New.
3684 * 21_strings/basic_string/rfind/char/3.cc: New.
3685 * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
3686 * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
3687 * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
3688 * 21_strings/basic_string/substr/char/1.cc: New.
3689 * 21_strings/basic_string/substr/wchar_t/1.cc: New.
3690 * 21_strings/c_strings/char/1.cc: New.
3691 * 21_strings/c_strings/char/2.cc: New.
3692 * 21_strings/c_strings/wchar_t/1.cc: New.
3693 * 21_strings/c_strings/wchar_t/2.cc: New.
3694 * 21_strings/char_traits/requirements/char/1.cc: New.
3695 * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
3696 * 21_strings/char_traits/typedefs/char/1.cc: New.
3698 2003-03-17 Paolo Carlini <pcarlini@unitus.it>
3699 Petur Runolfsson <peturr02@ru.is>
3702 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
3703 basic_filebuf<wchar_t>::_M_underflow_common):
3704 if (gptr() < egptr()) return *gptr().
3705 * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
3707 * testsuite/27_io/filebuf_members.cc (test_04): Minor
3708 changes: unlink fifo before making it, fix spelling error.
3710 2003-03-17 Benjamin Kosnik <bkoz@redhat.com>
3712 * testsuite/Makefile.am (CLEANFILES): Add tmp*.
3713 * testsuite/Makefile.in: Regenerate.
3714 * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
3717 2003-03-17 Petur Runolfsson <peturr02@ru.is>
3720 * include/bits/fstream.tcc (basic_filebuf::close):
3721 Always close file, even when write fails.
3722 * testsuite/27_io/filebuf_members.cc (test_07): New test.
3724 2003-03-17 Danny Smith <dannysmith@users.sourceforge.net>
3726 * libsupc++/Makefile.am (C_COMPILE): Remove.
3727 (LTCOMPILE): Likewise.
3728 * libsupc++/Makefile.in: Regenerate.
3730 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
3732 * testsuite/23_containers/bitset_members.cc: Add test variable.
3733 * testsuite/23_containers/map_insert.cc: Same.
3734 * testsuite/22_locale/ctype/cons/char/1.cc: Same.
3735 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
3736 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
3737 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
3738 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
3739 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
3740 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
3741 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
3742 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
3743 * testsuite/27_io/istream_exception.cc: Same.
3744 * testsuite/27_io/filebuf_virtuals.cc: Same.
3745 * testsuite/27_io/stringbuf_virtuals.cc: Same.
3746 * testsuite/27_io/ostream_inserter_arith.cc: Same.
3747 * testsuite/26_numerics/valarray_operators.cc: Same.
3748 * testsuite/26_numerics/slice.cc: Same.
3749 * testsuite/26_numerics/slice_array_assignment.cc: Same.
3750 * testsuite/24_iterators/istream_iterator.cc: Same.
3751 * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
3753 2003-03-14 Petur Runolfsson <peturr02@ru.is>
3757 * config/locale/generic/ctype_members.cc,
3758 * config/locale/gnu/ctype_members.cc
3759 (ctype<wchar_t>::do_widen(char)): Cast argument to
3760 unsigned char before passing to btowc.
3761 (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
3762 Convert characters with btowc instead of mbsrtowcs.
3763 (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
3765 Convert characters with wctob instead of wcsrtombs.
3766 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: New test.
3767 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: New test.
3768 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: New test.
3770 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
3772 * include/stdc++.h: New.
3773 * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
3774 * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
3775 * include/Makefile.in: Regenerate.
3776 * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
3777 (--cxxflags): Put -g -O2 here.
3778 * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
3780 2003-03-14 Loren J. Rittle <ljrittle@acm.org>
3782 * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
3783 missing named locale.
3785 2003-03-14 Andreas Schwab <schwab@suse.de>
3787 * configure.in: Only append to makefiles that are newly created to
3788 avoid multiple multi-do/multi-clean rules.
3789 * configure: Rebuilt.
3791 2003-03-13 Jonathan Wakely <redi@gcc.gnu.org>
3793 * docs/html/configopts.html, docs/html/documentation.html,
3794 docs/html/explanations.html, docs/html/install.html,
3795 docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
3796 invalid XHTML and make page header style consistent.
3798 2003-03-12 Jonathan Wakely <redi@gcc.gnu.org>
3800 * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
3801 * docs/html/faq/index.txt: Regenerate.
3802 * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
3804 2003-03-12 Andreas Schwab <schwab@suse.de>
3806 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
3807 glibcpp_toolexeclibdir.
3808 * aclocal.m4, configure: Rebuilt.
3810 2003-03-11 Jonathan Wakely <redi@gcc.gnu.org>
3812 * docs/html/faq/index.html: Update text about location of headers.
3813 * docs/html/faq/index.txt: Regenerate.
3815 2003-03-11 Carlo Wood <carlo@alinoe.com>
3817 * include/bits/demangle.h: Prepend accessors of
3818 class qualifier with 'get_' in order to fix warnings
3819 when compiling with -Wshadow.
3821 2003-03-11 Loren J. Rittle <ljrittle@acm.org>
3823 * config/os/bsd/freebsd/ctype_inline.h: Support _M_table
3825 * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
3827 * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
3828 report lack of setenv().
3830 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
3832 * config/io/basic_file_stdio.cc: include <unistd.h>.
3834 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
3835 Nathan Myers <ncm@cantrip.org>
3838 * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
3839 seekoff, seekpos): Add a boolean parameter __stdio.
3840 * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
3841 seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
3842 fseek/ftell, respectively), otherwise read (write, lseek, lseek,
3844 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
3845 _M_really_overflow, seekoff): Use the boolean parameter in the calls.
3846 * include/std/std_fstream.h (sync): Likewise.
3847 * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
3848 * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
3849 libstdc++/8399 commit involving isatty(0).
3850 * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
3851 (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
3852 * configure.in: Remove call.
3853 * aclocal.m4: Regenerate.
3854 * config.h.in: Regenerate.
3855 * configure: Regenerate.
3856 * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
3858 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
3861 * include/bits/fstream.tcc (overflow): don't write EOF to file.
3862 * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
3864 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
3867 * include/bits/basic_ios.h (_M_setstate): New.
3868 * include/bits/ostream.tcc (operator<<): Use it.
3869 * include/bits/istream.tcc (operator>>): Use it.
3870 * include/std/std_ostream.h (operator<<): Make friends.
3871 * include/std/std_istream.h (operator>>): Make friends.
3872 * testsuite/27_io/ostream_exception.cc,
3873 testsuite/27_io/istream_exception.cc: New tests.
3875 2003-03-08 Benjamin Kosnik <bkoz@redhat.com>
3877 * include/bits/locale_facets.tcc: Fix typo.
3879 2003-03-08 Loren J. Rittle <ljrittle@acm.org>
3881 * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
3883 * config/locale/generic/c_locale.cc
3884 (locale::facet::_S_create_c_locale): Throw runtime exception when
3885 unsupported language is specified.
3886 * testsuite/testsuite_hooks.h
3887 (run_test_wrapped_generic_locale_exception_catcher): New function.
3888 * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
3889 Suppress runtime exception thrown by generic implementation.
3890 (run_tests_wrapped_env): Likewise.
3891 (run_test_wrapped_generic_locale_exception_catcher): New function.
3892 * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
3893 * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
3894 * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
3895 * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
3896 * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
3897 * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
3898 * testsuite/22_locale/collate_byname/1.cc: New test wrap.
3899 * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
3900 * testsuite/22_locale/facet/2.cc: New test wrap.
3901 * testsuite/22_locale/locale/cons/4.cc: New test wrap.
3902 * testsuite/22_locale/locale/cons/5.cc: New test wrap.
3903 * testsuite/22_locale/locale/cons/7.cc: New test wrap.
3904 * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
3905 * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
3906 * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
3907 * testsuite/22_locale/messages_byname/1.cc: New test wrap.
3908 * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
3909 * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
3910 * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
3911 * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
3912 * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
3913 * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
3914 * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
3915 * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
3916 * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
3917 * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
3918 * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
3919 * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
3920 * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
3921 * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
3922 * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
3923 * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
3924 * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
3925 * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
3926 * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
3927 * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
3928 * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
3929 * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
3930 * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
3931 * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
3932 * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
3933 * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
3934 * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
3935 * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
3936 * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
3937 * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
3938 * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
3939 * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
3940 * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
3941 * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
3942 * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
3943 * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
3944 * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
3945 * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
3946 * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
3947 * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
3948 * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
3949 * testsuite/27_io/ios_members.cc: New test wrap.
3950 * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
3952 * testsuite/27_io/streambuf_members.cc: New test wrap.
3953 * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
3955 2003-03-08 Paolo Carlini <pcarlini@unitus.it>
3956 Petur Runolfsson <peturr02@ru.is>
3959 * include/bits/streambuf.tcc (__copy_streambufs): Use
3960 sgetn-sputn only when sputn cannot fail, otherwise fall back
3961 to safe snextc-sputc.
3962 * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
3964 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
3966 * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
3967 locale cache for truename and falsename.
3969 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
3971 * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
3972 _M_word_size initialization.
3974 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
3976 * include/bits/fstream.tcc (_M_convert_to_external):
3977 Set __elen to zero if codecvt::out eventually fails.
3979 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
3982 * include/bits/fstream.tcc (_M_really_overflow): Check
3983 for _M_convert_to_external possible failures.
3984 * include/std/std_fstream.h (sync): Check _M_really_overflow
3985 return value and return -1 in case of failure.
3986 * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
3988 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
3991 * include/bits/istream.tcc (operator>>(_CharT*),
3992 operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
3993 * testsuite/27_io/stringstream.cc (test02): Add.
3995 * include/bits/istream.tcc (operator>>(_CharT*)):
3996 Assign a char_type to *__s.
3998 2003-03-07 Petur Runolfsson <peturr02@ru.is>
4001 * include/bits/locale_facets.tcc
4002 (collate::do_compare, collate::do_transform):
4003 Handle nul characters in input.
4004 * testsuite/22_locale/collate/compare/char/3.cc: New test.
4005 * testsuite/22_locale/collate/compare/wchar_t/3.cc: New test.
4006 * testsuite/22_locale/collate/transform/char/3.cc: New test.
4007 * testsuite/22_locale/collate/transform/wchar_t/3.cc: New test.
4009 2003-03-07 Jerry Quinn <jlquinn@optonline.net>
4011 * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
4013 * testsuite/27_io/ostream_fail.cc: New test.
4015 2003-03-07 Matthias Klose <doko@debian.org>
4017 * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
4018 FLAGS_TO_PASS: Set to AM_MAKEFLAGS
4019 * Makefile.in: Regenerate.
4020 * libsupc++/Makefile.am: Express glibcppinstalldir in terms
4022 AM_MAKEFLAGS: Pass gxx_include_dir.
4023 * libsupc++/Makefile.in: Regenerate.
4025 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
4027 * testsuite/27_io/ios_base_storage.cc (test02): Set exception
4028 mask. Test setting small-numbered pword and iword slots. Test
4029 behavior at limit of numeric_limits::max. Check that values are
4030 still good after failures.
4032 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
4034 * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
4035 (ios_base::ios_base): Set _M_word, _M_word_size.
4036 (ios_base::~ios_base): Remove redundant test.
4037 * testsuite/27_io/ios_base_storage.cc (test03): New.
4039 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
4041 * src/strstream.cc, include/bits/basic_string.tcc: Remove
4042 incorrect whitespace added in my previous change.
4044 2003-03-05 Carlo Wood <carlo@alinoe.com>
4046 * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
4047 _S_initialized() in order to allow debugging libraries to detect
4048 when the std streams are initialized from an overloaded operator
4051 2003-03-05 Benjamin Kosnik <bkoz@redhat.com>
4053 * libsupc++/demangle.h: Move to..
4054 * include/bits/demangle.h: ...here.
4055 * src/demangle.cc: Adjust include.
4056 * include/Makefile.am (bits_headers): Add.
4057 * include/Makefile.in: Regenerate.
4059 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
4061 * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
4063 * config/linker-map.gnu: Filter typeinfo and vtable info.
4065 2003-03-04 Jerry Quinn <jlquinn@optonline.net>
4067 * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
4068 new failure. Throw exception if badbit and exception mask when ix
4069 >= numeric_limits<int>::max().
4071 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
4073 * src/strstream.cc (strstreambuf::overflow): Make sure operands of
4074 min and max have the same type.
4075 * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
4077 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
4079 * include/Makefile.am (allstamps): Remove stamp-std-precompile.
4080 * include/Makefile.in: Regenerate.
4082 2003-03-03 Benjamin Kosnik <bkoz@redhat.com>
4084 * testsuite/abi_check.cc (report_symbol_info): Add version info.
4086 * config/linker-map.gnu: Hide more stuff.
4087 * include/Makefile.am: Cleanups.
4088 * include/Makefile.in: Regenerate.
4090 2003-02-27 Jerry Quinn <jlquinn@optonline.net>
4092 * config/locale/generic/messages_members.h (messages::messages):
4093 Remove name from unused parameter.
4095 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
4097 * src/Makefile.am (sources): Add demangle.cc.
4100 * src/Makefile.in: Regenerate.
4101 * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
4102 * libsupc++/Makefile.in: Regenerate.
4104 * testsuite/testsuite_hooks.h
4105 (__gnu_cxx_test::verify_demangle): New.
4106 * testsuite/testsuite_hooks.cc: Define.
4108 2003-02-27 Carlo Wood <carlo@alinoe.com>
4110 * src/demangle.cc: New.
4111 * libsupc++/demangle.h: New.
4113 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
4114 Carlo Wood <carlo@alinoe.com>
4116 * testsuite/demangle/abi_examples/01.cc: New.
4117 * testsuite/demangle/abi_examples/02.cc: New.
4118 * testsuite/demangle/abi_examples/03.cc: New.
4119 * testsuite/demangle/abi_examples/04.cc: New.
4120 * testsuite/demangle/abi_examples/05.cc: New.
4121 * testsuite/demangle/abi_examples/06.cc: New.
4122 * testsuite/demangle/abi_examples/07.cc: New.
4123 * testsuite/demangle/abi_examples/08.cc: New.
4124 * testsuite/demangle/abi_examples/09.cc: New.
4125 * testsuite/demangle/abi_examples/10.cc: New.
4126 * testsuite/demangle/abi_examples/11.cc: New.
4127 * testsuite/demangle/abi_examples/12.cc: New.
4128 * testsuite/demangle/abi_examples/13.cc: New.
4129 * testsuite/demangle/abi_examples/14.cc: New.
4130 * testsuite/demangle/abi_examples/15.cc: New.
4131 * testsuite/demangle/abi_examples/16.cc: New.
4132 * testsuite/demangle/abi_examples/17.cc: New.
4133 * testsuite/demangle/abi_examples/18.cc: New.
4134 * testsuite/demangle/abi_examples/19.cc: New.
4135 * testsuite/demangle/abi_examples/20.cc: New.
4136 * testsuite/demangle/abi_examples/21.cc: New.
4137 * testsuite/demangle/abi_examples/22.cc: New.
4138 * testsuite/demangle/abi_examples/23.cc: New.
4139 * testsuite/demangle/abi_examples/24.cc: New.
4140 * testsuite/demangle/abi_examples/25.cc: New.
4141 * testsuite/demangle/abi_examples/26.cc: New.
4142 * testsuite/demangle/abi_text/01.cc: New.
4143 * testsuite/demangle/abi_text/02.cc: New.
4144 * testsuite/demangle/abi_text/03.cc: New.
4145 * testsuite/demangle/abi_text/04.cc: New.
4146 * testsuite/demangle/abi_text/05.cc: New.
4147 * testsuite/demangle/abi_text/06.cc: New.
4148 * testsuite/demangle/abi_text/07.cc: New.
4149 * testsuite/demangle/abi_text/08.cc: New.
4150 * testsuite/demangle/abi_text/09.cc: New.
4151 * testsuite/demangle/abi_text/10.cc: New.
4152 * testsuite/demangle/abi_text/11.cc: New.
4153 * testsuite/demangle/abi_text/12.cc: New.
4154 * testsuite/demangle/abi_text/13.cc: New.
4155 * testsuite/demangle/abi_text/14.cc: New.
4156 * testsuite/demangle/regression/3111-1.cc: New.
4157 * testsuite/demangle/regression/3111-2.cc: New.
4158 * testsuite/demangle/regression/7986-01.cc: New.
4159 * testsuite/demangle/regression/7986-02.cc: New.
4160 * testsuite/demangle/regression/7986-03.cc: New.
4161 * testsuite/demangle/regression/7986-04.cc: New.
4162 * testsuite/demangle/regression/7986-05.cc: New.
4163 * testsuite/demangle/regression/7986-06.cc: New.
4164 * testsuite/demangle/regression/7986-07.cc: New.
4165 * testsuite/demangle/regression/7986-08.cc: New.
4166 * testsuite/demangle/regression/7986-09.cc: New.
4167 * testsuite/demangle/regression/7986-10.cc: New.
4168 * testsuite/demangle/regression/7986-11.cc: New.
4169 * testsuite/demangle/regression/7986-12.cc: New.
4170 * testsuite/demangle/regression/7986.cc: New.
4171 * testsuite/demangle/regression/8897.cc: New.
4172 * testsuite/demangle/regression/cw-01.cc: New.
4173 * testsuite/demangle/regression/cw-02.cc: New.
4174 * testsuite/demangle/regression/cw-03.cc: New.
4175 * testsuite/demangle/regression/cw-04.cc: New.
4176 * testsuite/demangle/regression/cw-05.cc: New.
4177 * testsuite/demangle/regression/cw-06.cc: New.
4178 * testsuite/demangle/regression/cw-07.cc: New.
4179 * testsuite/demangle/regression/cw-08.cc: New.
4180 * testsuite/demangle/regression/cw-09.cc: New.
4181 * testsuite/demangle/regression/cw-10.cc: New.
4182 * testsuite/demangle/regression/cw-11.cc: New.
4183 * testsuite/demangle/regression/cw-12.cc: New.
4184 * testsuite/demangle/regression/cw-13.cc: New.
4185 * testsuite/demangle/regression/cw-14.cc: New.
4186 * testsuite/demangle/regression/old.cc: New.
4188 2003-02-25 Phil Edwards <pme@gcc.gnu.org>
4190 * docs/doxygen/Intro.3: Update with new (proper) names.
4191 * docs/doxygen/TODO: Update.
4192 * docs/doxygen/run_doxygen: More comments, fix up man pages.
4193 Fake entries for standard typedefs.
4194 * docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on.
4195 * docs/html/documentation.html: Top-level man page is now called
4197 * include/std/std_limits.h: Doxygenate.
4199 2003-02-25 Scott Snyder <snyder@fnal.gov>
4202 * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
4203 Correct documentation.
4204 * include/bits/stl_multimap.h (lower_bound, upper_bound,
4205 equal_range): Likewise.
4207 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
4211 (basic_filebuf<char/wchar_t>::_M_underflow_common): When
4212 __bump is true (uflow), always increment the read pointer
4213 (_M_in_cur) before returning successfully.
4214 * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
4216 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
4217 Nathan Myers <ncm@cantrip.org>
4219 PR libstdc++/9404, PR libstdc++/9701 (partial)
4220 (aka pptr == epptr implies overflow)
4221 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
4222 Consistently, _M_out_end points to the end of the buffer just
4224 (overflow): Tweak to use _M_out_buf_size().
4225 (_M_convert_to_external): The role of the old _M_out_end is
4226 now played by _M_out_lim.
4227 (_M_really_overflow): Likewise.
4228 (seekoff): Likewise.
4229 (setbuf): _M_out_end points to the end of the external buffer.
4230 * include/bits/sstream.tcc (overflow): Rewrote, taking into
4231 account the resolution of DR 169 (TC).
4232 (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
4233 (seekpos): Use _M_string.capacity(); tweak.
4234 * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
4235 * include/std/std_fstream.h (sync): The role of the old
4236 _M_out_end is now played by _M_out_lim.
4237 (_M_set_indeterminate): Use _M_set_determinate.
4238 (_M_set_determinate): _M_out_end is now _M_out_lim.
4239 (_M_is_indeterminate): Likewise.
4240 * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
4241 (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
4242 which have the information readily available as _M_string.capacity();
4243 for ate and app modes, pass the string size to _M_really_sync.
4244 (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
4245 point to the end of the buffer (i.e., epptr) and to the string end,
4247 * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
4248 which points to the right limit of the used put area.
4249 (_M_out_cur_move): The role of the old _M_out_end is now played
4251 (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
4252 _M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter
4254 (basic_streambuf()): Initialize _M_out_lim too.
4255 * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
4256 * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
4257 * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
4259 2003-02-24 Benjamin Kosnik <bkoz@redhat.com>
4261 * testsuite/27_io/ios_base_storage.cc (main): Call
4264 2003-02-21 Jerry Quinn <jlquinn@optonline.net>
4266 * include/bits/locale_facets.tcc (_M_convert_float): Replace
4267 numpunct facet accesses with data from __locale_cache.
4269 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
4271 * docs/html/faq/index.html (3.9): New note, wchar_t on FreeBSD.
4272 * docs/html/faq/index.txt: Regenerate.
4274 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
4276 * config/linker-map.gnu: Also export locking symbols needed for the
4277 generic atomicity.h case.
4279 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
4281 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
4283 * configure: Rebuilt.
4285 2003-02-19 Paolo Carlini <pcarlini@unitus.it>
4287 * include/bits/sstream.tcc (overflow): According to
4288 27.7.1.3, p5, actual output is performed by sputc(c).
4290 2003-02-19 Phil Edwards <pme@gcc.gnu.org>
4293 * include/bits/stl_alloc.h: Remove all traces of assert().
4295 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
4297 * include/std/std_sstream.h (str()): the size of the
4298 current string may be different from the initial one
4299 whenever _M_out_end > _M_out_beg.
4300 * testsuite/27_io/stringbuf_members.cc (test07): Add.
4302 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
4305 * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
4307 2003-02-17 Benjamin Kosnik <bkoz@redhat.com>
4309 * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
4310 * testsuite/27_io/ios_members.cc (test03): New.
4312 2003-02-17 Jerry Quinn <jlquinn@optonline.net>
4314 * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
4315 (basic_ios::_M_cache_facets): Move into above.
4316 * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
4318 (basic_ios::imbue): Force locale cache to be built.
4319 (basic_ios::_M_init): Create and initialize locale cache.
4320 * include/bits/ios_base.h (__locale_cache_base): Declare.
4321 (ios_base::_M_locale_cache): New.
4322 (ios_base::_M_cache): Define.
4323 * include/bits/locale_facets.h: (__num_base): Fix comment. Add
4325 (__locale_cache_base,__locale_cache<_CharT>): New classes.
4326 (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
4327 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
4328 cache literal string, grouping flag, thousands separator.
4329 (__locale_cache<_CharT>::__locale_cache): New.
4330 (__locale_cache<_CharT>::_M_init): New.
4331 * src/ios.cc: Clear _M_locale_cache in constructor.
4332 * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
4335 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
4337 * src/locale-inst.cc: Do not include <cassert>.
4338 * src/locale.cc: Likewise.
4340 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
4343 * include/std/std_fstream.h: Declare underflow and uflow
4344 specializations, change generic definitions to do nothing.
4345 * src/fstream.cc: Add underflow and uflow specializations.
4347 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
4350 * include/bits/fstream.tcc (_M_convert_to_external):
4351 Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
4352 * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
4354 2003-02-13 Benjamin Kosnik <bkoz@redhat.com>
4356 * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
4357 * include/bits/basic_ios.tcc: Guard use of extern template.
4358 * include/std/std_iomanip.h: Same.
4359 * include/bits/streambuf.tcc: Same.
4360 * include/bits/stl_alloc.h: Same.
4361 * include/bits/locale_facets.tcc: Same.
4362 * include/bits/ostream.tcc: Same.
4363 * include/bits/istream.tcc: Same.
4364 * include/bits/fstream.tcc: Same.
4365 * include/bits/basic_string.tcc: Same.
4367 2003-02-13 Paolo Carlini <pcarlini@unitus.it>
4369 * include/bits/ostream.tcc (sentry::sentry): Improve
4370 performance-wise the fix for libstdc++/9563.
4372 2003-02-12 Phil Edwards <pme@gcc.gnu.org>
4374 * config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration.
4375 (_GLIBCPP_NEED_GENERIC_MUTEX): Define for this file.
4376 (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once): Declare
4377 when we don't have static mutex initialization.
4378 (__exchange_and_add): Use _Atomic_add_mutex_once.
4379 * src/misc-inst.cc: Definitions of all the above.
4381 2003-02-12 Paolo Carlini <pcarlini@unitus.it>
4384 * include/bits/ostream.tcc (sentry::sentry): Check
4385 the state of the stream after the preparation.
4386 * testsuite/27_io/ostream_sentry.cc (test02): Add.
4388 2003-02-11 Benjamin Kosnik <bkoz@redhat.com>
4390 * include/Makefile.am (stamp-std-precompile): Add rule.
4391 * include/Makefile.in: Regenerated.
4393 2003-02-11 Jerry Quinn <jlquinn@optonline.net>
4394 Benjamin Kosnik <benjamin@redhat.com>
4396 * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
4397 Add indexes into this array.
4398 (__num_base::_S_atoms): To _S_atoms_in.
4399 (num_put::_M_insert): Rename to _M_pad.
4400 (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
4401 (num_put::_M_widen_int): Rename to _M_group_int.
4402 (num_put::_M_widen_float): Rename to _M_group_float.
4403 * include/bits/locale_facets.tcc (__int_to_char): New inline
4404 function and adapter functions.
4405 (num_put::_M_group_int): Streamline.
4406 (num_put::_M_group_float): Streamline.
4407 (num_put::_M_convert_int): Remove unused parameter names. Choose
4408 large enough buffer for text. Use __int_to_char instead of
4409 __convert_from_v. Formatted text is now at the end of the buffer.
4410 (num_put::_M_convert_float): Preliminary fixups.
4411 * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
4412 (__int_to_char<unsigned long long>): Same.
4413 (__int_to_char<char, unsigned long>): New.
4414 (__int_to_char<char, unsigned long long>): New.
4415 (__int_to_char<wchar_t, unsigned long>): New.
4416 (__int_to_char<wchar_t, unsigned long long>): New.
4418 2003-02-11 Scott Snyder <snyder@fnal.gov>
4421 * include/bits/fstream.tcc (seekoff): Avoid operator+
4424 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
4427 * include/ext/stdio_filebuf.h
4428 (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
4429 stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
4430 Change to take a __size parameter of type size_t, not
4431 of type (template parameter dependent) int_type.
4432 * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
4433 size vars to size_t.
4434 * testsuite/ext/stdio_filebuf.cc: Add.
4436 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
4437 Petur Runolfsson <peturr02@ru.is>
4440 * include/bits/streambuf.tcc (__copy_streambufs):
4441 Don't conditionalize the copy to __testput.
4442 * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
4444 2002-02-11 DJ Delorie <dj@redhat.com>
4446 * acinclude.m4: Check for native targets that can't link at
4447 this point in the build.
4448 * aclocal.m4: Regenerate.
4449 * configure: Regenerate.
4451 2003-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4453 * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
4455 (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
4458 2003-02-07 Paolo Carlini <pcarlini@unitus.it>
4460 * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
4461 unsigned char platforms.
4463 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
4466 * include/std/std_istream.h
4467 (basic_istream::sentry::operator bool()): Make const.
4468 * include/std/std_ostream.h
4469 (basic_ostream::sentry::operator bool()): Likewise.
4470 * testsuite/27_io/istream_sentry.cc (test03): Add.
4471 * testsuite/27_io/ostream_sentry.cc: Add.
4473 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
4476 Implement resolution of DR 231 (Ready)
4477 * include/bits/locale_facets.h (__num_base::_S_format_float):
4478 Change declaration: return void, remove __prec parameter.
4479 * src/locale.cc (__num_base::_S_format_float): Implement
4480 resolution of DR 231.
4481 * include/bits/locale_facets.tcc (num_put::_M_convert_float):
4482 Tweak uses. Check for negative precision.
4483 * testsuite/22_locale/num_put/put/char/6.cc: Add
4484 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
4486 2003-02-06 Peter Soetens <peter.soetens@mech.kuleuven.ac.be>
4488 * config/io/basic_file_libio.h: Fixups.
4489 * config/io/c_io_libio.h: Same.
4490 * libio/Makefile.am: Same.
4491 * libio/Makefile.in: Regenerated.
4493 2003-02-06 Benjamin Kosnik <bkoz@redhat.com>
4495 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
4496 Explicitly use the "C" locale.
4497 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
4499 2003-02-06 Petur Runolfsson <peturr02@ru.is>
4503 PR libstdc++/9028 (partial)
4509 (codecvt<wchar_t, char, mbstate_t>::do_encoding,
4510 codecvt<wchar_t, char, mbstate_t>::do_length,
4511 codecvt<wchar_t, char, mbstate_t>::do_max_length):
4513 * config/locale/generic/codecvt_members.cc: ...here.
4514 * config/locale/gnu/codecvt_members.cc: ...and here.
4516 * config/locale/generic/codecvt_members.cc,
4517 * config/locale/gnu/codecvt_members.cc
4518 (codecvt<wchar_t, char, mbstate_t>::do_encoding
4519 codecvt<wchar_t, char, mbstate_t>::do_in,
4520 codecvt<wchar_t, char, mbstate_t>::do_length,
4521 codecvt<wchar_t, char, mbstate_t>::do_max_length,
4522 codecvt<wchar_t, char, mbstate_t>::do_out):
4523 New implementation that handles stateless encodings,
4526 * config/locale/generic/codecvt_members.cc,
4527 * config/locale/gnu/codecvt_members.cc,
4528 * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
4529 * include/bits/codecvt.h,
4531 (codecvt::length, codecvt::do_length):
4532 Change type of first argument of length and do_length from
4533 'const state_type&' to 'state_type&' according to DR 75.
4535 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Cleanup.
4536 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: New test.
4537 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: New test.
4538 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: New test.
4539 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
4540 Cleanup and check for correct return value from encoding
4542 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: New test.
4543 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: New test.
4544 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: New test.
4545 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Cleanup.
4546 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: New test.
4547 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: New test.
4548 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: New test.
4549 * testsuite/22_locale/codecvt/in/wchar_t/5.cc: New test.
4550 * testsuite/22_locale/codecvt/in/wchar_t/6.cc: New test.
4551 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: New test.
4552 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: New test.
4553 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: New test.
4554 * testsuite/22_locale/codecvt/length/char/1.cc: Cleanup.
4555 * testsuite/22_locale/codecvt/length/char/2.cc: New test.
4556 * testsuite/22_locale/codecvt/length/wchar_t/1.cc: Cleanup.
4557 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: New test.
4558 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: New test.
4559 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: New test.
4560 * testsuite/22_locale/codecvt/length/wchar_t/5.cc: New test.
4561 * testsuite/22_locale/codecvt/length/wchar_t/6.cc: New test.
4562 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: New test.
4563 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Cleanup.
4564 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: New test.
4565 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: New test.
4566 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: New test.
4567 * testsuite/22_locale/codecvt/out/wchar_t/1.cc: Cleanup.
4568 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: New test.
4569 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: New test.
4570 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: New test.
4571 * testsuite/22_locale/codecvt/out/wchar_t/5.cc: New test.
4572 * testsuite/22_locale/codecvt/out/wchar_t/6.cc: New test.
4573 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: New test.
4574 * testsuite/22_locale/codecvt/unicode/1.cc: New test.
4575 * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc: Cleanup.
4576 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: New test.
4577 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: New test.
4578 * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc: New test.
4580 2003-02-05 Benjamin Kosnik <bkoz@redhat.com>
4582 * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
4583 (money_put::do_put): Same.
4585 2003-02-05 Jerry Quinn <jlquinn@optonline.net>
4587 * include/bits/ios_base.h (ios_base): Document reserved storage.
4589 * include/bits/locale_facets.h: (struct __pad): Comment on
4591 (__verify_grouping): Same.
4592 (__add_grouping): Same.
4593 * include/bits/locale_facets.tcc (__verify_grouping): Move
4594 comments to declaration.
4595 (__add_grouping): Same.
4597 * include/bits/locale_facets.tcc:
4598 (__write<_CharT, _OutIter>): New function.
4599 (__write<_CharT>): New function specialization.
4600 (num_put::_M_insert): Remove explicit loop over iterator. Use
4602 (num_put::_M_widen_float): Remove __basefield.
4603 (num_put::_M_widen_int): Move __basefield to within grouping block.
4605 * include/bits/streambuf_iterator.h: Include <streambuf>.
4606 (ostreambuf_iterator::_M_put): Add.
4608 2003-02-05 Paolo Carlini <pcarlini@unitus.it>
4610 * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
4612 2003-02-04 Nathan Myers <ncm@cantrip.org>
4614 * testsuite/25_algorithms/min_max.cc (test02): Add.
4616 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
4618 PR libstdc++/9439, PR libstdc++/9425
4619 * config/io/basic_file_stdio.cc
4620 (__basic_file<char>::seekoff, seekpos): Return -1L if
4622 * include/bits/fstream.tcc (basic_filebuf::seekoff):
4623 Check _M_file.seekoff return value; always return
4624 pos_type(off_type(-1)) in case of failure.
4625 (basic_filebuf::pbackfail): Check this->seekoff return
4626 value and return traits_type::eof() in case of failure.
4627 * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
4629 2003-02-04 Jerry Quinn <jlquinn@optonline.net>
4631 * include/std/std_ostream.h (ostream::_M_write): Declare.
4632 * ostream.tcc (ostream::_M_write): Define.
4633 (basic_ostream::write): Use it.
4634 (operator<<(basic_ostream, _CharT)): Ditto.
4635 (operator<<(basic_ostream, char)): Ditto.
4636 (operator<<(basic_ostream, _CharT*)): Ditto.
4637 (operator<<(basic_ostream, char*)): Ditto.
4638 (operator<<(basic_ostream, basic_string)): Ditto.
4640 2003-02-04 Benjamin Kosnik <bkoz@redhat.com>
4642 * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
4644 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
4646 * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
4647 add HTML comment about updating links if numbering changes.
4649 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
4652 * include/bits/streambuf.tcc (sputbackc): Access
4653 this->gptr()[-1] only if _M_in_beg < _M_in_cur.
4654 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
4656 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
4659 * include/bits/fstream.tcc (open): If the 'ate' repositioning
4660 operation fails, calls close _and_ returns a null pointer
4661 to indicate failure (27.8.1.3,4).
4662 * testsuite/27_io/filebuf_members.cc (test_06): Add.
4664 2003-02-04 Petur Runolfsson <peturr02@ru.is>
4666 * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
4668 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
4670 * docs/html/27_io/howto.html: New section on stdio_filebuf.
4671 * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
4672 * docs/html/documentation.html: Regenerate.
4674 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
4676 * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
4677 * docs/html/17_intro/porting.html: Regenerate.
4679 2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
4680 Phil Edwards <pme@gcc.gnu.org>
4682 * include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
4683 numeric_limits for bits-per-word values.
4684 (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
4685 Use __builtin_popcountl instead.
4686 (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
4687 _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
4688 Use __builtin_ctzl instead.
4689 (_S_bit_count, _S_first_one): Remove.
4690 * config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
4691 * src/Makefile.am (sources): Remove bitset.cc.
4692 * src/bitset.cc: Delete file.
4693 * src/Makefile.in: Regenerate.
4695 2003-02-03 Phil Edwards <pme@gcc.gnu.org>
4697 PR libstdc++/9527, PR libstdc++/8713
4698 * docs/html/install.html: Mention glibc version requirement.
4699 * docs/html/faq/index.html (3.8): New note, glibc 2.2.5+ is needed
4700 with 3.2.1+ (formatting bugfixes).
4701 * docs/html/faq/index.txt: Regenerate.
4703 2003-02-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4706 * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
4709 * include/bits/valarray_before.h (__not_equal_to): Use != instead
4712 * testsuite/26_numerics/valarray_operators.cc: New test.
4714 2003-02-01 Phil Edwards <pme@gcc.gnu.org>
4716 * docs/html/faq/index.html: Correct link to libg++ information.
4717 * docs/html/faq/index.txt: Regenerated.
4719 2003-02-01 Paolo Carlini <pcarlini@unitus.it>
4720 Benjamin Kosnik <bkoz@redhat.com>
4722 Const correctness issue:
4723 http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
4724 * include/bits/locale_classes.h
4725 (locale::_Impl::_M_facets): Change type to const facet**.
4726 (locale::_Impl::_M_install_facet): Change declaration to
4728 (locale::facet::_M_references): Make mutable.
4729 (locale::facet::_M_add_reference): Declare const.
4730 (locale::facet::_M_remove_reference): Likewise.
4731 * include/bits/locale_facets.tcc
4732 (use_facet(const locale&)): Tweak for const facet** _M_facets.
4733 (has_facet(const locale&)): Likewise.
4735 (locale::facet::_M_add_reference): Adjust definition.
4736 (locale::facet::_M_remove_reference): Likewise.
4738 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
4739 const facet** _M_facets.
4740 (locale::_Impl::_Impl(const char*, size_t)): Likewise.
4741 (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
4742 (locale::_Impl::_M_install_facet): Adjust definition to take
4743 const facet* and for const facet** _M_facets.
4744 * testsuite/22_locale/locale/cons/8.cc: Add.
4746 2003-01-29 Mark Mitchell <mark@codesourcery.com>
4748 * include/std/std_limits.h (numeric_limits<float>::has_infinity):
4749 Use __FLT_HAS_INIFINITY__ to initialize.
4750 (numeric_limits<float>::has_quiet_NaN): Likewise.
4751 (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
4753 (numeric_limits<double>::has_quiet_NaN): Likewise.
4754 (numeric_limits<long double>::has_infinity): Use
4755 __LDBL_HAS_INIFINITY__ to initialize.
4756 (numeric_limits<long_double>::has_quiet_NaN): Likewise.
4758 2003-01-28 Nathan Sidwell <nathan@codesourcery.com>
4761 * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
4762 with bases which are very ambiguous.
4764 2003-01-28 Danny Smith <dannysmith@users.sourceforge.net>
4766 * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
4767 @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
4768 * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
4769 * src/Makefile.in: Regenerate.
4770 * libsupc++/Makefile.in: Regenerate.
4772 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
4774 * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
4775 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
4776 version_specific_libs is enabled.
4777 * aclocal.m4, configure: Rebuilt.
4779 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
4781 * include/bits/valarray_meta.h: Remove, split into ...
4782 * include/bits/valarray_before.h: ... this, and ...
4783 * include/bits/valarray_after.h: ... this.
4784 * include/std/std_valarray.h: Adjust.
4785 * include/Makefile.am (bits_headers): Adjust.
4786 * include/Makefile.in: Regenerate.
4788 2003-01-24 Andreas Schwab <schwab@suse.de>
4790 * config/linker-map.gnu: Fix for size_t variance.
4792 2003-01-23 Petur Runolfsson <peturr02@ru.is>
4795 * include/std/std_streambuf.h
4796 (basic_streambuf::basic_streambuf,
4797 basic_streambuf::~basic_streambuf,
4798 basic_streambuf::getloc, basic_streambuf::imbue):
4799 Remove _M_buf_locale_init
4800 * include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
4801 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
4802 * testsuite/27_io/streambuf_members.cc (test08): Add.
4803 * testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
4805 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
4807 Revert include ordering.
4808 * config/locale/generic/c_locale.h: Add include guards.
4809 * config/locale/gnu/c_locale.h: Same.
4810 * include/bits/locale_classes.h: Remove cctype include.
4811 * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
4812 * include/std/std_fstream.h: Remove streambuf include.
4813 * include/std/std_sstream.h: Remove streambuf include.
4815 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
4817 * configure.in (libtool_VERSION): To 6:0:0.
4818 * configure: Regenerated.
4819 * config/linker-map.gnu: Clean.
4821 * src/misc-inst.cc: Remove instantiations.
4823 * include/bits/stl_alloc.h (__malloc_alloc_template):
4825 (__default_alloc_template): To __pool_alloc.
4826 * src/stl-inst.cc: Same.
4827 * include/backward/alloc.h: Update.
4828 * testsuite/ext/allocators.cc: Update.
4830 * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
4831 really try to remove these if possible.
4832 * src/locale.cc (std): Same.
4834 * testsuite/abi_check.cc (check_version): Add.
4836 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
4837 Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
4838 Mark Mitchell <mark@codesourcery.com>
4841 * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
4842 (basic_filebuf::underflow): Declare.
4845 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
4847 * include/bits/locale_facets.h: Move non-facet classes requiring
4849 * include/bits/locale_classes.h: New.
4850 * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
4851 * include/bits/Makefile.in: Regenerate.
4853 * include/bits/locale_facets.tcc (__convert_from_v): Move to...
4854 * config/locale/gnu/c_locale.h: ...here.
4855 * config/locale/generic/c_locale.h: Same.
4857 * include/bits/locale_facets.tcc: Move declarations to...
4858 * include/bits/locale_facets.h: ...here.
4859 * include/bits/basic_ios.h: Tweak includes accordingly.
4860 * include/std/std_sstream.h: Add streambuf include.
4861 * include/std/std_fstream.h: Ditto.
4862 * include/std/std_locale.h: Add locale_classes.h include.
4863 * include/std/std_iosfwd.h: Tweak.
4864 * src/concept-inst.cc: Add iterator include.
4866 * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
4867 bits as unexported in the future.
4869 2003-01-21 Benjamin Kosnik <bkoz@redhat.com>
4871 Reshuffle 22_locale testsuite.
4872 * 22_locale/(codecvt.cc money_get.cc
4873 codecvt_members_char_char.cc money_get_members_char.cc
4874 codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
4875 codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
4876 codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
4877 moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
4878 collate_members_char.cc money_put.cc collate_members_wchar_t.cc
4879 money_put_members_char.cc ctor_copy_dtor.cc
4880 money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
4881 num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
4882 ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
4883 numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
4884 ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
4885 num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
4886 ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
4887 operators.cc ctype_widen_char.cc static_members.cc
4888 ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
4889 global_templates.cc time_get_members_wchar_t.cc, members.cc,
4890 time_put.cc, messages_byname.cc, time_put_members_char.cc,
4891 messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
4892 Split up into individual test cases...
4893 * 22_locale/codecvt/1.cc: New.
4894 * 22_locale/codecvt/2.cc: New.
4895 * 22_locale/codecvt/always_noconv/char/1.cc: New.
4896 * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
4897 * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
4898 * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
4899 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
4900 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
4901 * 22_locale/codecvt/encoding/char/1.cc: New.
4902 * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
4903 * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
4904 * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
4905 * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
4906 * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
4907 * 22_locale/codecvt/in/char/1.cc: New.
4908 * 22_locale/codecvt/in/char/wrapped_env.cc: New.
4909 * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
4910 * 22_locale/codecvt/in/wchar_t/1.cc: New.
4911 * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
4912 * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
4913 * 22_locale/codecvt/length/char/1.cc: New.
4914 * 22_locale/codecvt/length/char/wrapped_env.cc: New.
4915 * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
4916 * 22_locale/codecvt/length/wchar_t/1.cc: New.
4917 * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
4918 * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
4919 * 22_locale/codecvt/max_length/char/1.cc: New.
4920 * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
4921 * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
4922 * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
4923 * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
4924 * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
4925 * 22_locale/codecvt/out/char/1.cc: New.
4926 * 22_locale/codecvt/out/char/wrapped_env.cc: New.
4927 * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
4928 * 22_locale/codecvt/out/wchar_t/1.cc: New.
4929 * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
4930 * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
4931 * 22_locale/codecvt/unicode/char.cc: New.
4932 * 22_locale/codecvt/unicode/wchar_t.cc: New.
4933 * 22_locale/codecvt/unshift/char/1.cc: New.
4934 * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
4935 * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
4936 * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
4937 * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
4938 * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
4939 * 22_locale/collate/1.cc: New.
4940 * 22_locale/collate/2.cc: New.
4941 * 22_locale/collate/compare/char/1.cc: New.
4942 * 22_locale/collate/compare/char/2.cc: New.
4943 * 22_locale/collate/compare/char/wrapped_env.cc: New.
4944 * 22_locale/collate/compare/char/wrapped_locale.cc: New.
4945 * 22_locale/collate/compare/wchar_t/1.cc: New.
4946 * 22_locale/collate/compare/wchar_t/2.cc: New.
4947 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
4948 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
4949 * 22_locale/collate/hash/char/1.cc: New.
4950 * 22_locale/collate/hash/char/2.cc: New.
4951 * 22_locale/collate/hash/char/wrapped_env.cc: New.
4952 * 22_locale/collate/hash/char/wrapped_locale.cc: New.
4953 * 22_locale/collate/hash/wchar_t/1.cc: New.
4954 * 22_locale/collate/hash/wchar_t/2.cc: New.
4955 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
4956 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
4957 * 22_locale/collate/transform/char/2.cc: New.
4958 * 22_locale/collate/transform/char/wrapped_env.cc: New.
4959 * 22_locale/collate/transform/char/wrapped_locale.cc: New.
4960 * 22_locale/collate/transform/wchar_t/2.cc: New.
4961 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
4962 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
4963 * 22_locale/collate_byname/1.cc: New.
4964 * 22_locale/ctype/1.cc: New.
4965 * 22_locale/ctype/2.cc: New.
4966 * 22_locale/ctype/cons/char/1.cc: New.
4967 * 22_locale/ctype/cons/char/wrapped_env.cc: New.
4968 * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
4969 * 22_locale/ctype/is/char/1.cc: New.
4970 * 22_locale/ctype/is/char/2.cc: New.
4971 * 22_locale/ctype/is/char/3.cc: New.
4972 * 22_locale/ctype/is/char/wrapped_env.cc: New.
4973 * 22_locale/ctype/is/char/wrapped_locale.cc: New.
4974 * 22_locale/ctype/is/wchar_t/1.cc: New.
4975 * 22_locale/ctype/is/wchar_t/2.cc: New.
4976 * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
4977 * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
4978 * 22_locale/ctype/narrow/char/1.cc: New.
4979 * 22_locale/ctype/narrow/char/2.cc: New.
4980 * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
4981 * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
4982 * 22_locale/ctype/narrow/wchar_t/1.cc: New.
4983 * 22_locale/ctype/narrow/wchar_t/2.cc: New.
4984 * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
4985 * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
4986 * 22_locale/ctype/scan/char/1.cc: New.
4987 * 22_locale/ctype/scan/char/wrapped_env.cc: New.
4988 * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
4989 * 22_locale/ctype/scan/wchar_t/1.cc: New.
4990 * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
4991 * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
4992 * 22_locale/ctype/to/char/1.cc: New.
4993 * 22_locale/ctype/to/char/wrapped_env.cc: New.
4994 * 22_locale/ctype/to/char/wrapped_locale.cc: New.
4995 * 22_locale/ctype/to/wchar_t/1.cc: New.
4996 * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
4997 * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
4998 * 22_locale/ctype/widen/char/1.cc: New.
4999 * 22_locale/ctype/widen/char/wrapped_env.cc: New.
5000 * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
5001 * 22_locale/ctype/widen/wchar_t/1.cc: New.
5002 * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
5003 * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
5004 * 22_locale/facet/1.cc: New.
5005 * 22_locale/facet/2.cc: New.
5006 * 22_locale/global_templates/1.cc: New.
5007 * 22_locale/locale/cons/1.cc: New.
5008 * 22_locale/locale/cons/2.cc: New.
5009 * 22_locale/locale/cons/3.cc: New.
5010 * 22_locale/locale/cons/4.cc: New.
5011 * 22_locale/locale/cons/5.cc: New.
5012 * 22_locale/locale/cons/6.cc: New.
5013 * 22_locale/locale/cons/7.cc: New.
5014 * 22_locale/locale/global_locale_objects/1.cc: New.
5015 * 22_locale/locale/global_locale_objects/2.cc: New.
5016 * 22_locale/locale/global_locale_objects/3.cc: New.
5017 * 22_locale/locale/operations/1.cc: New.
5018 * 22_locale/locale/operations/2.cc: New.
5019 * 22_locale/messages/1.cc: New.
5020 * 22_locale/messages/2.cc: New.
5021 * 22_locale/messages/members/char/1.cc: New.
5022 * 22_locale/messages/members/char/2.cc: New.
5023 * 22_locale/messages/members/char/3.cc: New.
5024 * 22_locale/messages/members/char/wrapped_env.cc: New.
5025 * 22_locale/messages/members/char/wrapped_locale.cc: New.
5026 * 22_locale/messages_byname/1.cc: New.
5027 * 22_locale/money_get/1.cc: New.
5028 * 22_locale/money_get/2.cc: New.
5029 * 22_locale/money_get/get/char/1.cc: New.
5030 * 22_locale/money_get/get/char/2.cc: New.
5031 * 22_locale/money_get/get/char/3.cc: New.
5032 * 22_locale/money_get/get/char/4.cc: New.
5033 * 22_locale/money_get/get/char/5.cc: New.
5034 * 22_locale/money_get/get/char/6.cc: New.
5035 * 22_locale/money_get/get/char/7.cc: New.
5036 * 22_locale/money_get/get/char/8.cc: New.
5037 * 22_locale/money_get/get/char/wrapped_env.cc: New.
5038 * 22_locale/money_get/get/char/wrapped_locale.cc: New.
5039 * 22_locale/money_get/get/wchar_t/1.cc: New.
5040 * 22_locale/money_get/get/wchar_t/2.cc: New.
5041 * 22_locale/money_get/get/wchar_t/3.cc: New.
5042 * 22_locale/money_get/get/wchar_t/4.cc: New.
5043 * 22_locale/money_get/get/wchar_t/5.cc: New.
5044 * 22_locale/money_get/get/wchar_t/6.cc: New.
5045 * 22_locale/money_get/get/wchar_t/7.cc: New.
5046 * 22_locale/money_get/get/wchar_t/8.cc: New.
5047 * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
5048 * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
5049 * 22_locale/money_put/1.cc: New.
5050 * 22_locale/money_put/2.cc: New.
5051 * 22_locale/money_put/put/char/1.cc: New.
5052 * 22_locale/money_put/put/char/2.cc: New.
5053 * 22_locale/money_put/put/char/3.cc: New.
5054 * 22_locale/money_put/put/char/4.cc: New.
5055 * 22_locale/money_put/put/char/5.cc: New.
5056 * 22_locale/money_put/put/char/6.cc: New.
5057 * 22_locale/money_put/put/char/wrapped_env.cc: New.
5058 * 22_locale/money_put/put/char/wrapped_locale.cc: New.
5059 * 22_locale/money_put/put/wchar_t/1.cc: New.
5060 * 22_locale/money_put/put/wchar_t/2.cc: New.
5061 * 22_locale/money_put/put/wchar_t/3.cc: New.
5062 * 22_locale/money_put/put/wchar_t/4.cc: New.
5063 * 22_locale/money_put/put/wchar_t/5.cc: New.
5064 * 22_locale/money_put/put/wchar_t/6.cc: New.
5065 * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
5066 * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
5067 * 22_locale/moneypunct/1.cc: New.
5068 * 22_locale/moneypunct/2.cc: New.
5069 * 22_locale/moneypunct/3.cc: New.
5070 * 22_locale/moneypunct/members/char/1.cc: New.
5071 * 22_locale/moneypunct/members/char/2.cc: New.
5072 * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
5073 * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
5074 * 22_locale/moneypunct/members/wchar_t/1.cc: New.
5075 * 22_locale/moneypunct/members/wchar_t/2.cc: New.
5076 * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
5077 * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
5078 * 22_locale/moneypunct_byname/1.cc: New.
5079 * 22_locale/num_get/1.cc: New.
5080 * 22_locale/num_get/2.cc: New.
5081 * 22_locale/num_get/get/char/1.cc: New.
5082 * 22_locale/num_get/get/char/2.cc: New.
5083 * 22_locale/num_get/get/char/3.cc: New.
5084 * 22_locale/num_get/get/char/4.cc: New.
5085 * 22_locale/num_get/get/char/5.cc: New.
5086 * 22_locale/num_get/get/char/6.cc: New.
5087 * 22_locale/num_get/get/char/wrapped_env.cc: New.
5088 * 22_locale/num_get/get/char/wrapped_locale.cc: New.
5089 * 22_locale/num_get/get/wchar_t/1.cc: New.
5090 * 22_locale/num_get/get/wchar_t/2.cc: New.
5091 * 22_locale/num_get/get/wchar_t/3.cc: New.
5092 * 22_locale/num_get/get/wchar_t/4.cc: New.
5093 * 22_locale/num_get/get/wchar_t/5.cc: New.
5094 * 22_locale/num_get/get/wchar_t/6.cc: New.
5095 * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
5096 * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
5097 * 22_locale/num_put/1.cc: New.
5098 * 22_locale/num_put/2.cc: New.
5099 * 22_locale/num_put/put/char/1.cc: New.
5100 * 22_locale/num_put/put/char/2.cc: New.
5101 * 22_locale/num_put/put/char/3.cc: New.
5102 * 22_locale/num_put/put/char/4.cc: New.
5103 * 22_locale/num_put/put/char/5.cc: New.
5104 * 22_locale/num_put/put/char/wrapped_env.cc: New.
5105 * 22_locale/num_put/put/char/wrapped_locale.cc: New.
5106 * 22_locale/num_put/put/wchar_t/1.cc: New.
5107 * 22_locale/num_put/put/wchar_t/2.cc: New.
5108 * 22_locale/num_put/put/wchar_t/3.cc: New.
5109 * 22_locale/num_put/put/wchar_t/4.cc: New.
5110 * 22_locale/num_put/put/wchar_t/5.cc: New.
5111 * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
5112 * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
5113 * 22_locale/numpunct/1.cc: New.
5114 * 22_locale/numpunct/2.cc: New.
5115 * 22_locale/numpunct/members/char/1.cc: New.
5116 * 22_locale/numpunct/members/char/2.cc: New.
5117 * 22_locale/numpunct/members/char/wrapped_env.cc: New.
5118 * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
5119 * 22_locale/numpunct/members/wchar_t/1.cc: New.
5120 * 22_locale/numpunct/members/wchar_t/2.cc: New.
5121 * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
5122 * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
5123 * 22_locale/numpunct_byname/1.cc: New.
5124 * 22_locale/numpunct_byname/2.cc: New.
5125 * 22_locale/time_get/1.cc: New.
5126 * 22_locale/time_get/2.cc: New.
5127 * 22_locale/time_get/date_order/char/1.cc: New.
5128 * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
5129 * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
5130 * 22_locale/time_get/date_order/wchar_t/1.cc: New.
5131 * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
5132 * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
5133 * 22_locale/time_get/get_date/char/1.cc: New.
5134 * 22_locale/time_get/get_date/char/2.cc: New.
5135 * 22_locale/time_get/get_date/char/3.cc: New.
5136 * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
5137 * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
5138 * 22_locale/time_get/get_date/wchar_t/1.cc: New.
5139 * 22_locale/time_get/get_date/wchar_t/2.cc: New.
5140 * 22_locale/time_get/get_date/wchar_t/3.cc: New.
5141 * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
5142 * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
5143 * 22_locale/time_get/get_monthname/char/1.cc: New.
5144 * 22_locale/time_get/get_monthname/char/2.cc: New.
5145 * 22_locale/time_get/get_monthname/char/3.cc: New.
5146 * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
5147 * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
5148 * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
5149 * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
5150 * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
5151 * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
5152 * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
5153 * 22_locale/time_get/get_time/char/1.cc: New.
5154 * 22_locale/time_get/get_time/char/2.cc: New.
5155 * 22_locale/time_get/get_time/char/3.cc: New.
5156 * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
5157 * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
5158 * 22_locale/time_get/get_time/wchar_t/1.cc: New.
5159 * 22_locale/time_get/get_time/wchar_t/2.cc: New.
5160 * 22_locale/time_get/get_time/wchar_t/3.cc: New.
5161 * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
5162 * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
5163 * 22_locale/time_get/get_weekday/char/1.cc: New.
5164 * 22_locale/time_get/get_weekday/char/2.cc: New.
5165 * 22_locale/time_get/get_weekday/char/3.cc: New.
5166 * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
5167 * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
5168 * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
5169 * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
5170 * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
5171 * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
5172 * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
5173 * 22_locale/time_get/get_year/char/1.cc: New.
5174 * 22_locale/time_get/get_year/char/3.cc: New.
5175 * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
5176 * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
5177 * 22_locale/time_get/get_year/wchar_t/1.cc: New.
5178 * 22_locale/time_get/get_year/wchar_t/3.cc: New.
5179 * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
5180 * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
5181 * 22_locale/time_put/1.cc: New.
5182 * 22_locale/time_put/2.cc: New.
5183 * 22_locale/time_put/put/char/1.cc: New.
5184 * 22_locale/time_put/put/char/10.cc: New.
5185 * 22_locale/time_put/put/char/2.cc: New.
5186 * 22_locale/time_put/put/char/3.cc: New.
5187 * 22_locale/time_put/put/char/4.cc: New.
5188 * 22_locale/time_put/put/char/5.cc: New.
5189 * 22_locale/time_put/put/char/6.cc: New.
5190 * 22_locale/time_put/put/char/7.cc: New.
5191 * 22_locale/time_put/put/char/8.cc: New.
5192 * 22_locale/time_put/put/char/9.cc: New.
5193 * 22_locale/time_put/put/char/wrapped_env.cc: New.
5194 * 22_locale/time_put/put/char/wrapped_locale.cc: New.
5195 * 22_locale/time_put/put/wchar_t/1.cc: New.
5196 * 22_locale/time_put/put/wchar_t/10.cc: New.
5197 * 22_locale/time_put/put/wchar_t/2.cc: New.
5198 * 22_locale/time_put/put/wchar_t/3.cc: New.
5199 * 22_locale/time_put/put/wchar_t/4.cc: New.
5200 * 22_locale/time_put/put/wchar_t/5.cc: New.
5201 * 22_locale/time_put/put/wchar_t/6.cc: New.
5202 * 22_locale/time_put/put/wchar_t/7.cc: New.
5203 * 22_locale/time_put/put/wchar_t/8.cc: New.
5204 * 22_locale/time_put/put/wchar_t/9.cc: New.
5205 * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
5206 * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
5208 2003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
5210 * config/locale/generic/messages_members.h
5211 (messages_byname<_CharT>::messages_byname): Use this-> to refer to
5212 unqualified members of base clasess.
5214 2003-01-16 Mark Mitchell <mark@codesourcery.com>
5215 Jeffrey Oldham <oldham@codesourcery.com>
5217 * config/locale/gnu/messages_members.h: Use this-> to refer to
5218 unqualified members of base clasess.
5219 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
5220 * include/bits/codecvt.h: Likewise.
5221 * include/bits/deque.tcc: Likewise.
5222 * include/bits/fstream.tcc: Likewise.
5223 * include/bits/istream.tcc: Likewise.
5224 * include/bits/list.tcc: Likewise.
5225 * include/bits/locale_facets.h: Likewise.
5226 * include/bits/ostream.tcc: Likewise.
5227 * include/bits/sstream.tcc: Likewise.
5228 * include/bits/stl_bvector.h: Likewise.
5229 * include/bits/stl_deque.h: Likewise.
5230 * include/bits/stl_list.h: Likewise.
5231 * include/bits/stl_tree.h: Likewise.
5232 * include/bits/stl_vector.h: Likewise.
5233 * include/bits/vector.tcc: Likewise.
5234 * include/ext/ropeimpl.h: Likewise.
5235 * include/ext/stdio_filebuf.h: Likewise.
5236 * include/ext/stl_rope.h: Likewise.
5237 * include/std/std_fstream.h: Likewise.
5238 * include/std/std_sstream.h: Likewise.
5240 2003-01-15 Phil Edwards <pme@gcc.gnu.org>
5242 * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
5244 2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
5246 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
5247 GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
5248 * aclocal.m4: Regenerate.
5249 * configure: Regenerate.
5250 * testsuite/Makefile.am (all-local): Add conditional rule to
5251 generate testsuite_wchar_t.
5252 * testsuite/Makefile.in: Regenerate.
5253 * testsuite/lib/libstdc++-v3-dg.exp
5254 (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
5255 testsuite_wchar_t is not present in the build directory.
5256 * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
5257 Remove setulimit bits.
5258 * testsuite/26_numerics/complex_value.cc: Set to noopts.
5259 * testsuite/Makefile.am (CLEANFILES): Add.
5260 * testsuite/Makefile.in: Regenerate.
5262 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
5264 * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
5267 2003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
5269 Further conform g++'s __vmi_class_type_info to the C++ ABI
5271 * libsupc++/cxxabi.h
5272 (__vmi_class_type_info::__flags_masks): Remove enumerations not
5273 required by the specification.
5275 2003-01-12 Benjamin Kosnik <bkoz@redhat.com>
5277 Renames, namespaces for testsuite utilities.
5278 * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
5279 (gnu_allocator_tracker): Rename to allocation_tracker.
5280 (gnu_new_allocator): Rename to tracker_alloc.
5281 (__set_testsuite_memlimit): Rename to set_memory_limits.
5282 (gnu_assignment_operator): Rename to assignment_operator.
5283 (gnu_destructor): Rename to destructor.
5284 (gnu_copy_tracker): Rename to copy_tracker.
5285 (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
5286 (run_tests_wrapped_locale): New.
5287 (run_tests_wrapped_env): New.
5288 * testsuite/testsuite_hooks.cc: Same.
5289 (class locale_data): Add.
5290 (class enviornment_variable): Add.
5291 (class not_found): Add.
5292 * testsuite/testsuite_allocator.h: Same.
5293 * testsuite/testsuite_allocator.cc: Same.
5294 * testsuite/23_containers/deque_ctor.cc
5295 (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
5297 Change gnu_new_allocator to tracker_alloc.
5298 Change gnu_counting_struct to counter.
5299 Change gnu_copy_tracker to copy_tracker.
5300 Change gnu_copy_constructor to copy_constructor.
5301 Change gnu_assignment_operator to assignment_operator.
5303 * testsuite/23_containers/vector_capacity.cc: Same.
5304 * testsuite/23_containers/vector_ctor.cc (test01): Same.
5305 * testsuite/23_containers/list_modifiers.cc: Change
5306 gnu_copy_tracker to copy_tracker.
5307 * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
5308 __set_testsuite_memlimit to set_memory_limits.
5309 * testsuite/21_strings/insert.cc (main): Same.
5310 * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
5311 * testsuite/27_io/stringstream.cc: Same.
5312 * testsuite/27_io/stringbuf.cc: Same.
5313 * testsuite/27_io/streambuf.cc: Same.
5314 * testsuite/27_io/ostream.cc: Same.
5315 * testsuite/27_io/istream.cc: Same.
5316 * testsuite/27_io/fstream.cc: Same.
5317 * testsuite/lib/libstdc++-v3-dg.exp
5318 (libstdc++-v3-list-sourcefiles): Additionally handle files two and
5319 three levels deeper in glob patterns.
5321 2003-01-11 Phil Edwards <pme@gcc.gnu.org>
5323 * docs/doxygen/tables.html: Finished now.
5324 * docs/doxygen/user.cfg.in: Update to latest version of Doxygen.
5325 * include/bits/basic_ios.h (basic_ios::rdbuf): Add example to
5328 * include/bits/deque.tcc, include/bits/stl_alloc.h,
5329 include/bits/stl_deque.h, include/bits/stl_list.h,
5330 include/bits/stl_vector.h: Remove _GLIBCPP_DEPRECATED bits scheduled
5333 2003-01-09 Benjamin Kosnik <bkoz@redhat.com>
5335 * configure.in: Revert.
5336 * configure: Regenerate.
5338 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
5340 * include/Makefile.am (install-data-local): Prepend
5341 $(DESTDIR) to destination paths in all (un)installation
5342 commands. Use ${c_base_builddir} and ${std_builddir}
5343 as destination subdirectories to achieve consistency with
5344 preceding mkinstalldirs commands. No effect because both
5345 variables contain "." only.
5346 * include/Makefile.in: Regenerate.
5348 2003-01-08 Benjamin Kosnik <bkoz@redhat.com>
5350 * include/Makefile.am (stamp-*): Add checks for existing stamps.
5351 * include/Makefile.in: Regenerate.
5353 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
5354 * aclocal.m4: Regenerate.
5356 * configure.in: Don't add new multi-do rules every time the
5357 directory is reconfigured.
5358 * configure: Regenerate.
5360 2003-01-08 Brad Spencer <spencer@infointeractive.com>
5361 Nathan Myers <ncm@cantrip.org>
5363 * src/Makefile.am (stamp-debug): Clean.
5364 * src/Makefile.in: Regenerate.
5366 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
5369 * Makefile.am (distclean-multi): Fix.
5370 * Makefile.in: Regenerate.
5372 2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
5374 * include/bits/locale_facets.h (messages): Move ctor, dtor
5376 (__timepunct): Same.
5377 * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
5378 definitions. Conditionalize for GNU systems.
5379 * config/locale/generic/messages_members.h (messages): Add dtor, ctor
5381 * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
5382 definitions. Conditionalize for GNU systems.
5383 * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
5385 * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
5386 * src/locale.cc: Define.
5387 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
5389 * config/locale/gnu/time_members.h: Use it.
5390 * config/locale/gnu/messages_members.h: Use it.
5391 * config/linker-map.gnu: Add locale::facets details.
5392 * include/Makefile.am (target_headers_extra): Add time_members.h.
5393 * include/Makefile.in: Regenerate.
5394 * acinclude.m4: Export CTIME_H.
5395 * aclocal.m4: Regenerate.
5396 * configure: Regnerate.
5398 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
5401 (codecvt<char, char, mbstate_t>::do_in, do_out):
5402 Tweak parameters to avoid unused parameter warnings.
5404 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
5407 * include/bits/locale_facets.cc (num_put::_M_convert_float):
5408 Limit __prec to digits10 + 2, not digits10 + 1, taking into
5409 account the possibility of %{g,G} conversion specifiers
5410 inside _S_format_float.
5411 * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
5413 2003-01-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5415 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
5416 libstdc++-v3-list-sourcefiles): Additionally handle files one
5417 level deeper in glob patterns.
5419 * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
5420 * testsuite/27_io/istream_extractor_arith/01.cc,
5421 testsuite/27_io/istream_extractor_arith/02.cc,
5422 testsuite/27_io/istream_extractor_arith/03.cc,
5423 testsuite/27_io/istream_extractor_arith/06.cc,
5424 testsuite/27_io/istream_extractor_arith/07.cc,
5425 testsuite/27_io/istream_extractor_arith/08.cc,
5426 testsuite/27_io/istream_extractor_arith/09.cc,
5427 testsuite/27_io/istream_extractor_arith/10.cc,
5428 testsuite/27_io/istream_extractor_arith/11.cc,
5429 testsuite/27_io/istream_extractor_arith/12.cc,
5430 testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
5431 * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
5434 2003-01-05 Paolo Carlini <pcarlini@unitus.it>
5438 (codecvt<char, char, mbstate_t>::do_in, do_out):
5439 Implement the resolution of DR19 (TC).
5440 * testsuite/22_locale/codecvt_members_char_char.cc
5443 2003-01-02 Jason Merrill <jason@redhat.com>
5445 * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
5446 *__mem is also an output.
5447 * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.