1 2003-12-29 Paolo Carlini <pcarlini@suse.de>
3 * acinclude.m4 (GLIBCXX_CHECK_LFS): Add -fno-exceptions
5 * aclocal.m4: Regenerate.
8 2003-12-29 Mark Mitchell <mark@codesourcery.com>
10 * acconfig.h: Add _GLIBCXX_USE_C99_MATH.
11 * acinclude.m4 (GLIBCXX_ENABLE_C99): Define GLIBCXX_USE_C99_MATH.
12 * configure.ac: Define HAVE_S_ISREG and HAVE_S_IFREG when
14 * aclocal.m4: Regenerated.
15 * config.h.in: Likewise.
16 * configure: Likewise.
17 * Makefile.in: Likewise.
18 * include/Makefile.in: Likewise.
19 * libmath/Makefile.in: Likewise.
20 * libsupc++/Makefile.in: Likewise.
21 * testsuite/Makefile.in: Likewise.
22 * src/Makefile.in: Likewise.
23 * po/Makefile.in: Likewise.
24 * include/c_std/std_cmath.h (_GLIBCXX_USE_C99): Replace with ...
25 (_GLIBCXX_USE_C99_MATH): ... this.
27 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL for
29 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Likewise.
30 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Likewise.
31 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Likewise.
32 * testsuite/27_io/basic_istream/readsome/char/6476-2.cc: Likewise.
33 * testsuite/27_io/objects/char/9.cc: Likewise.
34 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Likewise.
36 2003-12-28 Paolo Carlini <pcarlini@suse.de>
38 * include/ext/pool_allocator.h (class __pool_alloc): Use
39 operator new and operator delete.
41 2003-12-24 Andrew Pinski <pinskia@physics.uc.edu>
43 * config/cpu/i386/atomicity.h (__exchange_and_add): Fix output
47 * config/cpu/i386/atomicity.h: Split up read-write memory operand.
49 2003-12-23 Benjamin Kosnik <bkoz@redhat.com>
51 * include/ext/new_allocator.h (new_allocator): Proper allocator class.
52 (__new_alloc): Delete.
53 * include/ext/malloc_allocator.h (malloc_allocator): Same.
54 (__malloc_alloc): Delete.
55 * include/ext/mt_allocator.h: Same, but weakly.
56 * include/ext/debug_allocator.h: Convert to the new style.
57 * include/ext/pool_allocator.h: Use global new and delete directly.
58 * include/backward/alloc.h: Don't inject malloc_allocator, or
60 * testsuite/ext/allocators.cc: Minimal fixups for usage of new
61 classes. Comment out tests with __pool_alloc for now.
62 * testsuite/performance/allocator.cc: Same.
64 2003-12-22 Matt Austern <austern@apple.com>
66 * include/bits/stl_bvector.h (_Bvector_alloc_base): Eliminate.
67 (_Bvector_base): Inherit directly from word allocator.
68 * include/bits/stl_tree.h (_Rb_tree_alloc_base): Eliminate.
69 (_Rb_tree_base): Eliminate.
70 (_Rb_tree): Inherit directly from node allocator.
71 * include/ext/slist (_Alist_alloc_base): Eliminate.
72 (_Slist_base): Inherit direcly from node allocator.
74 2003-12-22 Benjamin Kosnik <bkoz@redhat.com>
76 * testsuite/18_support/numeric_limits.cc: Add _GLIBCXX_ASSERT to
77 dg-options in testcases that use VERIFY.
78 * testsuite/23_containers/vector/invalidation/1.cc: Same.
79 * testsuite/23_containers/vector/invalidation/2.cc: Same.
80 * testsuite/23_containers/vector/invalidation/3.cc: Same.
81 * testsuite/23_containers/vector/invalidation/4.cc: Same.
82 * testsuite/23_containers/vector/resize/1.cc: Same.
83 * testsuite/26_numerics/complex_value.cc: Same.
84 * testsuite/27_io/ios_base/storage/1.cc: Same.
85 * testsuite/27_io/ios_base/storage/2.cc: Same.
86 * testsuite/27_io/ios_base/storage/3.cc: Same.
87 * testsuite/27_io/manipulators/standard/char/2.cc: Same.
88 * testsuite/backward/11460.cc: Same.
89 * testsuite/backward/strstream_members.cc: Same.
91 * include/ext/hash_set (class hash_multiset): Fix typo.
93 2003-12-22 Benjamin Kosnik <bkoz@redhat.com>
95 * testsuite/27_io/objects/char/5.cc: Don't use stdc++.h.gch.
96 * testsuite/27_io/objects/wchar_t/5.cc: Same.
97 * docs/html/test.html: Add docs for constructing test files that
98 don't use stdc++.h.gch.
99 * scripts/testsuite_flags.in (PCHFLAGS): Move to --cxxpchflags.
100 * testsuite/libstdc++-dg/normal.exp: Compute DEFAULT_CXXFLAGS
103 * include/bits/ios_base.h (ios_base::Init::_S_initialized): Remove.
104 * src/ios_init.cc: Same.
105 * config/linker-map.gnu: Same.
106 * testsuite/27_io/ios_base/cons/copy_neg.cc: Adjust line numbers.
107 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
109 2003-12-22 Andrew Pinski <pinskia@physics.uc.edu>
112 * include/bits/stl_multiset.h (__gnu_norm::multiset): Define pointer
113 as allocator's pointer, likewise for reference, const_pointer, and
115 * include/bits/stl_set.h (__gnu_norm::set): Likewise.
116 * include/ext/hash_set (__gnu_ext::hash_set): Likewise.
117 (__gnu_ext::hash_multiset): Likewise.
119 2003-12-22 Paolo Carlini <pcarlini@suse.de>
121 * include/bits/locale_facets.tcc (num_get::_M_extract_int,
122 num_get::_M_extract_float): According to 22.2.2.1.2, p8-9,
123 first look for decimal_point and thousands_sep, when parsing
124 sign, leading zeros (and 0, Ox, 0X for integer types) too.
125 * testsuite/22_locale/num_get/get/char/12.cc: New.
126 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
128 * testsuite/22_locale/num_get/get/char/11.cc: Add a comment.
129 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
131 2003-12-20 Jason Merrill <jason@redhat.com>
133 * config/cpu/powerpc/atomicity.h: Fix oversight in previous
136 2003-12-20 Jerry Quinn <jlquinn@optonline.net>
138 * docs/doxygen/TODO: Update.
139 * include/bits/locale_classes.h (locale, facet, id): Document.
140 * include/bits/locale_facets.tcc (has_facet, use_facet): Document.
142 2003-12-19 Jason Merrill <jason@redhat.com>
144 * config/cpu/cris/atomicity.h: Remove memory clobbers.
145 * config/cpu/mips/atomicity.h: Likewise.
146 * config/cpu/i486/atomicity.h: Remove memory clobbers.
147 Split up read-write memory operand.
148 * config/cpu/m68k/atomicity.h: Likewise.
149 * config/cpu/powerpc/atomicity.h: Make memory I/O explicit.
150 * config/cpu/s390/atomicity.h: Likewise.
151 * config/cpu/sparc/atomicity.h: Likewise.
153 2003-12-20 Carlo Wood <carlo@alinoe.com>
156 namespace __gnu_cxx::demangler
157 (session<Allocator>::decode_encoding): Put the postfix
158 of the return type of (member) functions after the function
159 instead of after the return type.
161 2003-12-19 Jerry Quinn <jlquinn@optonline.net>
163 * include/bits/locale_facet.h
164 (__ctype_abstract_base,ctype<charT>,ctype<char>,ctype<wchar_t>):
167 2003-12-19 Paolo Carlini <pcarlini@suse.de>
169 * include/bits/locale_facets.tcc (num_get::_M_extract_int,
170 num_get::_M_extract_float): According to 22.2.2.1.2, p8-9,
171 first look for decimal_point and thousands_sep.
172 * testsuite/22_locale/num_get/get/char/11.cc: New.
173 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
175 2003-12-19 Paolo Carlini <pcarlini@suse.de>
177 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
178 When __found_sci becomes true stop eating thousands separators
179 and the decimal radix separator.
180 * testsuite/22_locale/num_get/get/char/9.cc: New.
181 * testsuite/22_locale/num_get/get/wchar_t/9.cc: Likewise.
183 * config/locale/generic/c_locale.cc (__convert_to_v): Don't
184 check that *__sanity == '\0': parsing may stop earlier, still
186 * config/locale/gnu/c_locale.cc: Likewise.
187 * testsuite/22_locale/num_get/get/char/10.cc: New.
188 * testsuite/22_locale/num_get/get/wchar_t/10.cc: Likewise.
189 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
190 Tweak in one place accordingly.
192 * testsuite/22_locale/money_get/get/char/1.cc: Fix typo.
193 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
195 2003-12-18 Benjamin Kosnik <bkoz@redhat.com>
197 * include/bits/stl_list.h: Formatting tweaks.
198 * include/bits/list.tcc: Same.
200 2003-12-18 Matt Austern <austern@apple.com>
202 * include/bits/demangle.h: Fix allocator type correctness,
203 i.e. make sure that when we instantiate a container with a value
204 type and an allocator, the allocator's value type matches the
206 * include/bits/stl_deque.h (_Deque_alloc_base): Eliminate.
207 (_Deque_base): inherit directly from the deque's allocator. Use
208 rebinding instead of _Alloc_traits. Pick up data members from
210 * include/bits/stl_list.h (_List_alloc_base): Eliminate.
211 (_List_base): Inherit directly from the list's allocator. Use
212 rebinding instead of _Alloc_traits. Pick up data members from
214 * include/bits/stl_vector.h (_Vector_alloc_base): Eliminate
215 (_Vector_base): Inherit directly from the vector's allocator. Use
216 rebinding instead of _Alloc_traits. Pick up data members from
218 * include/ext/hashtable.h: Fix allocator type correctness (the
219 vector of buckets must be passed an allocator for objects of
220 type _Node*). Use rebinding instead of _Alloc_traits.
222 2003-12-17 Paolo Carlini <pcarlini@suse.de>
224 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
225 Use narrow to get from __format[__i] a char __c representing a
226 formatting code, don't use it to compare *__beg to __format[__i].
227 * testsuite/22_locale/time_get/get_date/wchar_t/4.cc: New.
229 2003-12-17 Paolo Carlini <pcarlini@suse.de>
231 * testsuite/performance/container_benchmark.cc: Tweak outputs.
233 * testsuite/performance/list_create_fill_sort.cc: Shrink a
236 * testsuite/testsuite_performance.h: Widen a few output fields.
238 * testsuite/performance/ifstream_extract_int.cc: New.
240 2003-12-16 Phil Edwards <phil@codesourcery.com>
242 * configure.ac (AM_INIT_AUTOMAKE): Don't warn about GNU Make.
243 * configure: Regenerated.
244 * Makefile.am (check-%): New catch-all forwarding target.
245 * Makefile.in: Regenerated.
247 2003-12-16 Paolo Carlini <pcarlini@suse.de>
249 * testsuite/performance/container_benchmark.cc: New, a
250 benchmark developed by Bjarne Stroustrup and Alexander
251 Stepanov and made available with no restrictions.
253 * testsuite/testsuite_performance.h (report_header): New,
254 useful to produce header lines in the reports.
256 2003-12-16 Jonathan Wakely <redi@gcc.gnu.org>
258 * docs/html/21_strings/howto.html: Document shrink-to-fit reserve().
259 * docs/html/faq/index.html: Reducing vector's capacity() to size().
260 * docs/html/documentation.html, docs/html/faq/index.txt: Regenerate.
262 2003-12-16 Paolo Carlini <pcarlini@suse.de>
264 * testsuite/performance/narrow_widen_char.cc: Tweak the
265 number of iterations for each test.
266 * testsuite/performance/narrow_widen_wchar_t.cc: Add a
267 missing clear_counters.
269 2003-12-16 Paolo Carlini <pcarlini@suse.de>
272 * include/bits/locale_facets.h: Add _M_bit and _M_wmask,
273 used to speed up the computation of ctype::do_is.
274 * config/locale/generic/ctype_members.cc
275 (_M_initialize_ctype): Fill _M_bit and _M_wmask.
276 (ctype::do_is): Use _M_bit and _M_wmask.
277 * config/locale/gnu/ctype_members.cc: Likewise.
278 * testsuite/performance/is_wchar_t.cc: New.
280 * testsuite/performance/narrow_widen_wchar_t.cc: Tweak
281 string literal (incorrect citation ;)
283 * include/bits/locale_facets.h: Minor tweaks, const
284 correctness, unsigned -> size_t.
286 2003-12-16 Jerry Quinn <jlquinn@optonline.net>
288 * include/bits/locale_facets.h (widen, narrow): Uncomment the
291 2003-12-15 Jerry Quinn <jlquinn@optonline.net>
293 * config/os/aix/ctype_noninline.h,
294 config/os/bsd/freebsd/ctype_noninline.h,
295 config/os/bsd/netbsd/ctype_noninline.h,
296 config/os/djgpp/ctype_noninline.h,
297 config/os/generic/ctype_noninline.h,
298 config/os/gnu-linux/ctype_noninline.h,
299 config/os/hpux/ctype_noninline.h,
300 config/os/irix/irix5.2/ctype_noninline.h,
301 config/os/irix/irix6.5/ctype_noninline.h,
302 config/os/mingw32/ctype_noninline.h,
303 config/os/newlib/ctype_noninline.h,
304 config/os/qnx/qnx6.1/ctype_noninline.h,
305 config/os/solaris/solaris2.5/ctype_noninline.h,
306 config/os/solaris/solaris2.6/ctype_noninline.h,
307 config/os/solaris/solaris2.7/ctype_noninline.h,
308 config/os/vxworks/ctype_noninline.h,
309 config/os/windiss/ctype_noninline.h (ctype): Initialize
311 * include/bits/locale_facets.h (_M_widen, _M_widen_ok,
312 _M_narrow, _M_narrow_ok): New.
313 (widen, narrow): Use tables to bypass virtual functions.
314 (_M_widen_init, _M_narrow_init): New.
316 2003-12-15 Carlo Wood <carlo@alinoe.com>
318 * include/bits/ios_base.h (Init::_S_initialized): Change into
320 * src/ios_init.cc (Init::_S_initialized): Add definition.
322 2003-12-15 Benjamin Kosnik <bkoz@redhat.com>
325 * include/Makefile.am (bits_headers): Add concurrence.h.
326 * include/Makefile.in: Regenerated.
327 * include/bits/concurrence.h: New.
328 * src/locale_init.cc: Use it.
329 (locale::locale): Lock critical regions.
330 (locale::global): Same.
332 2003-12-15 Benjamin Kosnik <bkoz@redhat.com>
334 * include/bits/basic_string.h: Change _*_references to _*_refcount.
335 * include/bits/locale_classes.h: Same.
336 * src/locale.cc: Same.
337 * src/locale_name.cc: Same.
338 * src/locale_init.cc: Same.
340 2003-12-15 Benjamin Kosnik <bkoz@redhat.com>
343 * include/bits/ios_base.h (Init::_S_ios_base_init): Change to
344 _S_refcount, make atomic.
345 * src/ios.cc: Adjust definition.
346 * src/ios_init.cc (ios_base::Init::Init): Use __exchange_and_add,
348 (ios_base::Init::~Init): Same.
349 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
350 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
352 2003-12-15 Paolo Carlini <pcarlini@suse.de>
354 * include/bits/locale_facets.tcc (num_get::do_get(bool&)):
355 Fail as soon as the begins of both truename and falsename
356 stop to match; always leave __beg one position beyond the
357 last char successfully matched.
358 * testsuite/22_locale/num_get/get/char/8.cc: New.
359 * testsuite/22_locale/num_get/get/wchar_t/8.cc: Likewise.
361 2003-12-15 Paolo Carlini <pcarlini@suse.de>
363 * include/bits/locale_facets.h (_M_widen): Reserve space
364 for all the possible widened chars.
365 * config/locale/generic/ctype_members.cc (_M_initialize_ctype):
366 Compute at construction time all the possible widened chars.
367 (do_widen): Tweak, simplify.
368 * config/locale/gnu/ctype_members.cc: Likewise.
369 * testsuite/performance/narrow_widen_wchar_t.cc: Add tests
370 for the array versions.
372 2003-12-12 Paolo Carlini <pcarlini@suse.de>
373 Benjamin Kosnik <bkoz@redhat.com>
376 * include/bits/locale_facets.h (ctype<wchar_t>): Declare
377 _M_initialize_ctype() and _M_narrow_ok, _M_narrow and _M_widen.
378 * src/ctype.cc (ctype<wchar_t>::ctype(size_t),
379 ctype<wchar_t>::ctype(__c_locale, size_t)): Use
380 _M_initialize_ctype to fill _M_narrow and _M_widen.
381 (ctype_byname<wchar_t>::ctype_byname(const char*, size_t)):
383 * config/locale/generic/ctype_members.cc (do_narrow, do_widen)
384 Use _M_narrow and _M_widen when possible, instead of calling
385 wctob and btowc, respectively.
386 (_M_initialize_ctype): Define, it fills at construction time
387 _M_narrow and _M_widen.
388 * config/locale/gnu/ctype_members.cc: Likewise.
389 * testsuite/performance/narrow_widen_wchar_t.cc: New.
391 2003-12-12 Jonathan Wakely <redi@gcc.gnu.org>
393 * docs/html/faq/index.txt: Regenerate after adding <link> tags.
395 2003-12-11 Neil Ferguson <nferguso@eso.org>
396 Paolo Carlini <pcarlini@suse.de>
398 * include/bits/basic_string.tcc (reserve): Allow shrink-to-fit.
399 * testsuite/21_strings/basic_string/capacity/1.cc: Tweak.
400 * testsuite/21_strings/basic_string/capacity/char/1.cc: Ditto.
401 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Ditto.
403 2003-12-10 Benjamin Kosnik <bkoz@redhat.com>
406 * testsuite/lib/libstdc++.exp (v3-init): Add
407 original_ld_library_path, calculate ld_library path, set
408 LD_LIBRARY_PATH to both. Based on libjava.exp.
410 2003-12-10 Benjamin Kosnik <bkoz@redhat.com>
411 Alexandre Oliva <aoliva@redhat.com>
414 * testsuite/Makefile.am (GLIBCXX_DIR): New.
416 (CXXLINK): Use both with -R so libtool links the correct libs.
418 2003-12-10 Paolo Carlini <pcarlini@suse.de>
421 * include/bits/fstream.tcc (underflow): Deal gracefully with
422 read errors: throw ios_base::failure.
424 2003-12-10 Benjamin Kosnik <bkoz@redhat.com>
427 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Sync.
428 * testsuite/ext/stdio_filebuf/char/10063-1.cc: New.
429 * testsuite/ext/stdio_filebuf/char/10063-2.cc: New.
431 2003-12-10 Paolo Carlini <pcarlini@suse.de>
433 * include/bits/locale_facets.tcc (num_put::do_put(void*)):
434 Remove the try/catch, not necessary.
436 2003-12-10 Paolo Carlini <pcarlini@suse.de>
438 * testsuite/22_locale/locale/cons/12438.cc: Tweak memory
439 limit and iterations to avoid spurious failures on some
442 2003-12-09 Benjamin Kosnik <bkoz@redhat.com>
444 * config/linker-map.gnu: Remove private ios_base members from
447 * config/cpu/alpha/atomicity.h: Consistently format.
448 * config/cpu/cris/atomicity.h: Same.
449 * config/cpu/generic/atomicity.h: Same.
450 * config/cpu/hppa/atomicity.h: Same.
451 * config/cpu/i386/atomicity.h: Same.
452 * config/cpu/i486/atomicity.h: Same.
453 * config/cpu/ia64/atomicity.h: Same.
454 * config/cpu/m68k/atomicity.h: Same.
455 * config/cpu/mips/atomicity.h: Same.
456 * config/cpu/powerpc/atomicity.h: Same.
457 * config/cpu/s390/atomicity.h: Same.
458 * config/cpu/sparc/atomicity.h: Same.
460 2003-12-09 Benjamin Kosnik <bkoz@redhat.com>
463 * acinclude.m4 (GLIBCXX_ENABLE_LIBUNWIND_EXCEPTIONS): Remove.
464 * aclocal.m4: Regenerate.
465 * configure.ac: Remove call to GLIBCXX_ENABLE_LIBUNWIND_EXCEPTIONS.
466 * conigure: Regenerate.
467 * src/Makefile.am (libstdc___la_LDFLAGS): Remove LIBUNWIND_FLAGS.
468 * src/Makefile.in: Regenerate.
469 * docs/html/17_intro/configury.html: Modify.
471 2003-12-09 Paolo Carlini <pcaelini@suse.de>
473 * include/bits/demangle.h (struct implementation_details):
474 Keep in comments the names of the unused parameters.
476 2003-12-09 Paolo Carlini <pcaelini@suse.de>
478 * include/bits/demangle.h (struct implementation_details):
479 Fix unused parameters warning.
481 2003-12-09 Paolo Carlini <pcarlini@suse.de>
483 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
484 Slightly streamline the code dealing with overflows and the
487 2003-12-09 Bernardo Innocenti <bernie@develer.com>
489 * include/ext/algorithm, include/ext/debug_allocator.h,
490 include/ext/enc_filebuf.h, include/ext/functional,
491 include/ext/hash_fun.h, include/ext/hash_map, include/ext/hash_set,
492 include/ext/hashtable.h, include/ext/iterator,
493 include/ext/malloc_allocator.h, include/ext/memory,
494 include/ext/mt_allocator.h, include/ext/numeric,
495 include/ext/pod_char_traits.h, include/ext/pool_allocator.h,
496 include/ext/rb_tree, include/ext/rope, include/ext/ropeimpl.h,
497 include/ext/slist, include/ext/stdio_filebuf.h,
498 include/ext/stdio_sync_filebuf.h: Remove trailing whitespace.
500 2003-12-09 Bernardo Innocenti <bernie@develer.com>
502 * include/debug/bitset, include/debug/debug.h, include/debug/deque,
503 include/debug/formatter.h, include/debug/hash_map.h,
504 include/debug/hash_multimap.h, include/debug/hash_multiset.h,
505 include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
506 include/debug/map.h, include/debug/multimap.h,
507 include/debug/multiset.h, include/debug/safe_base.h,
508 include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
509 include/debug/safe_sequence.h, include/debug/set.h,
510 include/debug/string, include/debug/vector: Remove trailing whitespace.
512 2003-12-09 Bernardo Innocenti <bernie@develer.com>
514 * include/c_compatibility/iso646.h, include/c_compatibility/limits.h,
515 include/c_compatibility/locale.h, include/c_compatibility/stdio.h,
516 include/c_compatibility/string.h, include/c_compatibility/time.h,
517 include/c_compatibility/wchar.h, include/c_compatibility/wctype.h:
518 Remove trailing whitespace.
520 2003-12-09 Bernardo Innocenti <bernie@develer.com>
522 * include/c_std/cmath.tcc, include/c_std/std_cassert.h,
523 include/c_std/std_cctype.h, include/c_std/std_cmath.h,
524 include/c_std/std_cstddef.h, include/c_std/std_cstdio.h,
525 include/c_std/std_cstdlib.h, include/c_std/std_cstring.h,
526 include/c_std/std_cwchar.h, include/c_std/std_cwctype.h:
527 Remove trailing whitespace.
529 2003-12-09 Bernardo Innocenti <bernie@develer.com>
531 * include/c/std_cctype.h, include/c/std_cmath.h,
532 include/c/std_cstdlib.h include/c/std_cwchar.h,
533 include/c/std_cwctype.h: Remove trailing whitespace.
535 2003-12-09 Bernardo Innocenti <bernie@develer.com>
537 * include/backward/algo.h, include/backward/algobase.h,
538 include/backward/alloc.h, include/backward/complex.h,
539 include/backward/defalloc.h, include/backward/function.h,
540 include/backward/iterator.h, include/backward/new.h,
541 include/backward/ostream.h, include/backward/queue.h,
542 include/backward/rope.h, include/backward/stream.h,
543 include/backward/streambuf.h, include/backward/strstream,
544 include/backward/tempbuf.h, include/backward/tree.h,
545 include/backward/vector.h: Remove trailing whitespace.
547 2003-12-08 Paolo Carlini <pcarlini@suse.de>
549 * config/locale/generic/c_locale.cc (__convert_to_v(long&),
550 __convert_to_v(unsigned long&), __convert_to_v(long long&),
551 __convert_to_v(unsigned long long&): Remove.
552 (__convert_to_v(float&), __convert_to_v(double&),
553 __convert_to_v(long double&)): Remove last unused parameter.
554 * config/locale/gnu/c_locale.cc: Likewise.
555 * include/bits/locale_facets.h: Likewise.
556 (num_get::_M_extract_int): Update declaration.
557 (class __num_base): Tweak _S_ie and _S_iE according to the
559 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
560 Provide directly the final _ValueT, not a string: accumulate
561 the result checking for overflow at each digit.
562 (num_get::do_get(bool&), num_get::do_get(long&),
563 num_get::do_get(unsigned short&), num_get::do_get(unsigned int&),
564 num_get::do_get(unsigned long&), num_get::do_get(long long&),
565 num_get::do_get(unsigned long long&), num_get::do_get(void*&)):
566 Use the new _M_extract_int, simplify.
567 * src/locale-inst.cc (num_get::_M_extract_int(long&),
568 num_get::_M_extract_int(unsigned short&),
569 num_get::_M_extract_int(unsigned int&),
570 num_get::_M_extract_int(unsigned long&),
571 num_get::_M_extract_int(long long&),
572 num_get::_M_extract_int(unsigned long long&): Instantiate.
573 * src/locale_facets.cc (__num_base::_S_atoms_in): Reorder
574 the chars in the natural order: abcdefABCDEF.
576 2003-12-08 David S. Miller <davem@redhat.com>
579 * config/cpu/sparc/atomicity.h (__exchange_and_add, __atomic_add):
580 Extend increment to _Atomic_word before giving to assembler.
582 2003-12-06 Benjamin Kosnik <bkoz@redhat.com>
584 * testsuite/ext/enc_filebuf/char/13189.cc: Guard for __enc_traits.
585 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
587 2003-12-06 Benjamin Kosnik <bkoz@redhat.com>
590 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf):
591 Remove __del argument to file descriptor constructor.
592 * config/io/basic_file_stdio.h (__basic_file::sys_open): Remove
594 * config/io/basic_file_stdio.cc: Same.
596 2003-12-05 Benjamin Kosnik <bkoz@redhat.com>
599 * include/ext/enc_filebuf.h: Fix.
600 * include/bits/fstream.tcc: Tweak formatting.
601 * include/bits/postypes.h: Same.
602 * include/bits/sstream.tcc: Same.
603 * include/bits/streambuf.tcc: Same.
604 * testsuite/ext/stdio_filebuf.cc: Split.
605 * testsuite/ext/stdio_filebuf_2.cc: Split.
606 * testsuite/ext/stdio_sync_filebuf_char.cc: Split.
607 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc: Split.
608 * testsuite/ext/enc_filebuf/char/13189.cc: New.
609 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: New.
610 * testsuite/ext/stdio_filebuf/char/1.cc: New.
611 * testsuite/ext/stdio_filebuf/char/2.cc: New.
612 * testsuite/ext/stdio_sync_filebuf/char/1.cc: New.
613 * testsuite/ext/stdio_sync_filebuf/char/12048-1.cc: New.
614 * testsuite/ext/stdio_sync_filebuf/char/12048-2.cc: New.
615 * testsuite/ext/stdio_sync_filebuf/char/12048-3.cc: New.
616 * testsuite/ext/stdio_sync_filebuf/char/12048-4.cc: New.
617 * testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc: New.
618 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc: New.
619 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc: New.
620 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc: New.
621 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc: New.
623 2003-12-05 Carlo Wood <carlo@alinoe.com>
627 namespace __gnu_cxx::demangler
628 (enum substitution_nt): Removed trailing comma.
629 (implementation_details): Added.
630 (session<Allocator>::M_implementation_details): Added.
631 (session<Allocator>::session): Pass implementation_details.
632 (session<Allocator>::decode_encoding): Same.
633 (session<Allocator>::decode_real): Added.
634 (_GLIBCXX_DEMANGLER_STYLE_VOID _GLIBCXX_DEMANGLER_STYLE_LITERAL
635 _GLIBCXX_DEMANGLER_STYLE_LITERAL_INT
636 _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
637 _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Replaced with
638 implementation_details equivalent.
639 (session<Allocator>::decode_expression):
640 Use M_implementation_details instead of macros. Add extra parentheses
641 around 'larger than' operator in expressions in template arguments.
642 (session<Allocator>::decode_bare_function_type): Idem.
643 (session<Allocator>::decode_literal):
644 Idem, and call decode_real for floating literals.
645 (session<Allocator>::decode_type_with_postfix): Put the postfix
646 of the return type of (member) functions after the function
647 instead of after the return type. Also, put a space after the
648 prefix of qualified function pointers: "int (* const<space>".
649 * src/demangle.cc: include most dependent header file first.
650 * testsuite/demangle/regression/cw-16.cc: Updated two
651 and added three tests.
653 2003-12-04 Benjamin Kosnik <bkoz@redhat.com>
656 * include/bits/stl_algo.h (__random_number): Remove.
657 (random_shuffle): Use rand, as permitted by DR 395.
658 * include/ext/algorithm: Same.
659 * linkage.m4 (GLIBCXX_CHECK_STDLIB_SUPPORT): Remove lrand48.
661 * crossconfig.m4: Remove HAVE_DRAND48, HAVE_LRAND48.
662 * config.h.in: Regenerated.
666 2003-12-04 Paolo Carlini <pcarlini@suse.de>
669 * include/std/std_bitset.h (operator>>): Implement resolution
670 of DR 303 [WP]: use widen('0') and widen('1').
671 * docs/html/ext/howto.html: Add an entry for DR 303.
673 * include/std/std_bitset.h (operator>>): Implement the common
674 requirements of formatted input functions (27.6.1.2.1).
676 * include/std/std_bitset.h (operator>>): Set the failbit when
677 nothing was extracted and _Nb != 0.
678 * testsuite/23_containers/bitset/input/1.cc: New.
680 2003-12-03 Paolo Carlini <pcarlini@suse.de>
683 * include/bits/locale_facets.tcc (time_get::_M_extract_num):
684 Rewrite, stop the parsing as soon as a digit cannot possibly
685 lead to a final number within the bounds; otherwise, simplify,
686 avoiding __ctype.is() and atoi().
687 * testsuite/22_locale/time_get/get_date/char/12791.cc: New.
688 * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: New.
690 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
691 Minor tweak: a 4-digit integer cannot be bigger than 9999.
693 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Use
694 type-correct wchar_t string literals.
695 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
696 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
697 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
698 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
700 2003-12-02 Paolo Carlini <pcarlini@suse.de>
702 * include/bits/locale_facets.tcc (time_get::do_get_year):
703 Avoid using a basic_string and calling a full blown strtol
704 (via __convert_to_v) for simple 2 or 4 digits, base 10,
705 positive integers; simplify.
707 2003-12-02 Paolo Carlini <pcarlini@suse.de>
709 * config/locale/gnu/monetary_members.cc
710 (money_base::_S_construct_pattern): For case 3: and 4:
711 exchanging 'if (__precedes)' and 'if (__space)' allows
712 to factor out a few more assignments.
714 2003-12-01 Benjamin Kosnik <bkoz@redhat.com>
716 * include/bits/basic_ios.h (basic_ios::setstate): Revert.
717 * include/bits/istream.tcc: Only call setstate if __err != goodbit.
718 * include/bits/ostream.tcc: Same.
719 * testsuite/27_io/basic_ios/exceptions/char/2.cc: New.
721 * testsuite/testsuite_io.h (__gnu_test::fail_streambuf): Make
722 internal buffer non-static.
724 2003-12-01 Benjamin Kosnik <bkoz@redhat.com>
726 * docs/html/17_intro/C++STYLE: Add exception bits.
727 * include/bits/fstream.tcc: Add location info to exception strings.
729 * include/bits/stl_construct.h: Formatting tweaks.
731 2003-12-01 Paolo Carlini <pcarlini@suse.de>
734 * include/bits/allocator.h (allocator::construct): Implement
735 resolution of DR 402 [Ready] (in Revision 28).
736 * include/bits/allocator_traits.h (__allocator::construct):
738 * include/bits/stl_construct.h (_Construct): Likewise.
739 * testsuite/20_util/allocator_members.cc: Move to...
740 * testsuite/20_util/allocator/1.cc: ... here.
741 * testsuite/20_util/allocator/10378.cc: New.
742 * docs/html/ext/howto.html: Add an entry for DR 402.
744 2003-11-30 Paolo Carlini <pcarlini@suse.de>
746 * config/locale/gnu/codecvt_members.cc (codecvt::do_in,
747 codecvt::do_length): More minor tweaks.
749 2003-11-30 Paolo Carlini <pcarlini@suse.de>
751 * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
752 Minor stylistic tweak.
754 2003-11-30 Paolo Carlini <pcarlini@suse.de>
756 * include/bits/locale_facets.tcc (num_put::do_put(..., bool)):
757 Minor tweaks, consistent with the style used in other facets.
759 2003-11-29 Paolo Carlini <pcarlini@suse.de>
761 * include/bits/fstream.tcc (underflow): Minor tweaks in
762 preparation for libstdc++/13217.
764 2003-11-29 Paolo Carlini <pcarlini@suse.de>
766 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc:
767 Tweak for a few small problems (fix timings, use VERIFY..)
769 2003-11-28 Paolo Carlini <pcarlini@suse.de>
771 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: Remove.
772 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13171-3.cc: New,
773 the original third testcase for libstdc++/13171 belong here.
775 2003-11-28 Paolo Carlini <pcarlini@suse.de>
777 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc:
778 Remove extraneous wchar_t lines.
780 2003-11-27 Paolo Carlini <pcarlini@suse.de>
784 * include/bits/fstream.tcc (underflow): Throw ios_base::failure
785 upon incomplete or invalid byte sequences in the file.
786 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-1.cc: New.
787 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-2.cc: New.
788 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: New.
790 2003-11-27 Paolo Carlini <pcarlini@suse.de>
792 * include/std/std_streambuf.h (__copy_streambufs): Remove
793 the first, unused, basic_ios<> parameter.
794 * src/streambuf-inst.cc: Likewise.
795 * include/bits/streambuf.tcc: Likewise.
796 * include/bits/istream.tcc (operator>>(__streambuf_type*)):
797 Tweak accordingly the call.
798 * include/bits/ostream.tcc (operator<<(__streambuf_type*)):
801 * include/bits/streambuf.tcc (__copy_streambufs): Remove
804 2003-11-26 Benjamin Kosnik <bkoz@redhat.com>
810 * include/bits/basic_ios.h (basic_ios::setstate): Elide if goodbit.
811 (basic_ios::_M_setstate): Consolidate common error handling code.
812 * include/bits/basic_ios.tcc: Tweak.
813 * include/bits/fstream.tcc: Tweak.
814 * include/bits/istream.tcc: Use _M_setstate for common exception
815 handling. Move setstate calls after catch.
816 (basic_istream::tellg): Check for exceptions thrown by streambuf
818 (basic_istream::seekg): Same.
819 * include/bits/ostream.tcc: Same, but for ostream.
820 (basic_ostream::flush): Check for exceptions thrown by streambuf
822 (basic_istream::tellp): Same.
823 (basic_istream::seekp): Same.
824 * include/bits/locale_facets.tcc: Tweak.
825 * include/bits/streambuf.tcc: Tweak.
826 (__copy_streambufs): Propagate exceptions.
827 * testsuite/testsuite_io.h (fail_streambuf): New.
831 (underflow_error): New.
832 (overflow_error): New.
833 (positioning_error): New.
834 * testsuite/27_io/basic_istream/exceptions/char/9561.cc: Tweak.
835 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
836 exceptions_badbit_throw.cc, exceptions_failbit.cc,
837 exceptions_failbit_throw.cc: New.
838 * testsuite/27_io/basic_istream/extractors_other/char/
839 error_failbit.cc, exceptions_badbit_throw.cc,
840 exceptions_failbit_throw.cc, exceptions_null.cc: New.
841 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
843 * testsuite/27_io/basic_istream/tellg/char/exceptions_badbit_throw.cc:
845 * testsuite/27_io/basic_ostream/flush/char/exceptions_badbit_throw.cc:
847 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
848 exceptions_badbit_throw.cc, exceptions_failbit_throw.cc: New.
849 * testsuite/27_io/basic_ostream/inserters_other/char/
850 error_failbit.cc, exceptions_badbit_throw.cc,
851 exceptions_failbit_throw.cc, exceptions_null.cc: New.
852 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
854 * testsuite/27_io/basic_ostream/tellp/char/exceptions_badbit_throw.cc:
857 2003-11-26 Benjamin Kosnik <bkoz@redhat.com>
860 * include/bits/istream.tcc
861 (basic_istream::sentry::sentry): Set failbit and eofbit when eof.
862 * testsuite/27_io/basic_istream/sentry/char/12297.cc: New.
864 2003-11-26 Paolo Carlini <pcarlini@suse.de>
865 Petur Runolfsson <peturr02@ru.is>
868 * include/bits/fstream.tcc (imbue): Relax the conditions under
869 which the function succeeds: allow for two consecutive calls with
870 the same name; state dependent encodings are ok even after open
871 if at the beginning of the file; don't check seekoff return value
872 (pipes, cin, cout, etc...)
873 * testsuite/27_io/basic_filebuf/imbue/char/13171-1.cc: New.
874 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: New.
875 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: New.
876 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: New.
877 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak comment.
878 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: Likewise.
879 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Tweak comment.
880 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: Likewise.
882 * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: More
883 correctly use the UTF-8 locale appearing in the PR.
885 2003-11-26 Paolo Carlini <pcarlini@suse.de>
887 * include/bits/locale_facets.h
888 (__numpunct_cache<>::_M_cache): Avoid zeroing _M_grouping,
889 _M_truename and _M_falsename: the constructor always does
890 it immediately before the _M_cache call.
892 2003-11-25 Paolo Carlini <pcarlini@suse.de>
894 * config/locale/gnu/codecvt_members.cc (codecvt::do_length):
895 Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
896 former is very fast, but stops if encounters a NUL.
897 (codecvt::do_out): Tweaks.
898 (codecvt::do_in): Tweaks, improve the code dealing with errors.
899 * testsuite/performance/wchar_t_length.cc: New.
901 2003-11-24 Paolo Carlini <pcarlini@suse.de>
903 * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
904 Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
905 former is very fast, but stops if encounters a NUL.
906 (codecvt::do_out): Tweak.
907 * testsuite/performance/wchar_t_in.cc: New.
909 2003-11-24 Paolo Carlini <pcarlini@suse.de>
911 * include/bits/locale_facets.h
912 (__numpunct_cache<>::_M_cache): Set _M_allocated at the beginning
913 in order to avoid memory leaks; simplify a bit.
915 2003-11-24 Benjamin Kosnik <bkoz@redhat.com>
917 * include/bits/streambuf_iterator.h (ostreambuf_iterator): Remove
918 non-standard throw specs.
919 * testsuite/24_iterators/istreambuf_iterator.cc: Split into...
920 * testsuite/24_iterators/istreambuf_iterator/1.cc
921 * testsuite/24_iterators/istreambuf_iterator/2.cc
922 * testsuite/24_iterators/istreambuf_iterator/2627.cc
923 * testsuite/24_iterators/ostreambuf_iterator.cc: Split into...
924 * testsuite/24_iterators/ostreambuf_iterator/1.cc
925 * testsuite/24_iterators/ostreambuf_iterator/2.cc
927 * testsuite/24_iterators/reverse_iterator/1.cc: Just compile,
930 * include/bits/allocator.h: Formatting tweak.
932 2003-11-24 Paolo Carlini <pcarlini@suse.de>
934 * src/locale_init.cc: Cosmetic reformatting.
936 2003-11-23 Paolo Carlini <pcarlini@suse.de>
938 * include/bits/locale_facets.tcc (__add_grouping):
939 Cosmetic reformatting.
941 2003-11-23 Paolo Carlini <pcarlini@suse.de>
943 * include/bits/locale_facets.tcc (_M_extract_float,
944 _M_extract_int): Remove a wrong comment and simplify
945 the corresponding code using char_traits::find().
947 2003-11-22 Paolo Carlini <pcarlini@suse.de>
949 * config/locale/gnu/monetary_members.cc
950 (money_base::_S_construct_pattern): Factor out two assignments.
952 2003-11-22 Paolo Carlini <pcarlini@suse.de>
954 * include/bits/istream.tcc (getline(basic_string<>&)):
955 Fix error in comment of the previous commit.
957 2003-11-22 Paolo Carlini <pcarlini@suse.de>
960 * include/bits/istream.tcc (operator>>(basic_string<>&),
961 getline(basic_string<>&)): Implement resolution of DR 91 [WP];
962 fix some minor issues with the exit conditions.
963 * docs/html/ext/howto.html: Add an entry for DR 91.
965 2003-11-21 Paolo Carlini <pcarlini@suse.de>
967 * config/locale/gnu/monetary_members.cc
968 (money_base::_S_construct_pattern): Factor out an assignment.
970 2003-11-21 Paolo Carlini <pcarlini@suse.de>
972 PR libstdc++/12882 (partial)
973 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check fseeko64
975 * include/ext/stdio_sync_filebuf.h (seekoff): Use fseeko64
976 and ftello64 if available.
977 * aclocal.m4: Regenerate.
980 2003-11-20 Benjamin Kosnik <bkoz@redhat.com>
982 * include/debug/formatter.h: Use _Tp as template argument.
983 * src/debug.cc: Same, instantiate std::size_t.
985 2003-11-20 Benjamin Kosnik <bkoz@redhat.com>
988 * include/debug/formatter.h (_Error_formatter::_M_format_word): New.
989 * src/debug.cc (__gnu_debug): Format.
990 (_Error_formatter::_M_format_word): Define, use, instantiate.
992 2003-11-20 Paolo Carlini <pcarlini@suse.de>
995 * config/locale/gnu/codecvt_members.cc (codecvt::do_out):
996 Rewrite, using both wcsnrtombs and wcrtomb in a loop: the
997 former is very fast, but stops if encounters a NUL.
998 * testsuite/performance/wchar_t_out.cc: New, from the PR.
1000 2003-11-19 Paolo Carlini <pcarlini@suse.de>
1002 * config/locale/gnu/codecvt_members.cc (do_out): If
1003 we can upper bound the total number of external chars
1004 to something smaller than __to_end - __to, avoid the
1005 temporary buffer, the memcopy and simplify the loop.
1006 * config/locale/generic/codecvt_members.cc (do_out):
1009 2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
1011 * testsuite/lib/libstdc++.exp: Add DYLD_LIBRARY_PATH for darwin.
1012 * testsuite/libstdc++-dg/normal.exp: Add -multiply_defined suppress
1015 2003-11-18 Jonathan Wakely <redi@gcc.gnu.org>
1017 * docs/html/configopts.html, docs/html/debug.html,
1018 docs/html/documentation.html, docs/html/explanations.html,
1019 docs/html/install.html, docs/html/17_intro/contribute.html,
1020 docs/html/17_intro/howto.html, docs/html/17_intro/license.html,
1021 docs/html/18_support/howto.html, docs/html/19_diagnostics/howto.html,
1022 docs/html/20_util/howto.html, docs/html/21_strings/howto.html,
1023 docs/html/22_locale/codecvt.html, docs/html/22_locale/ctype.html,
1024 docs/html/22_locale/howto.html, docs/html/22_locale/locale.html,
1025 docs/html/22_locale/messages.html, docs/html/23_containers/howto.html,
1026 docs/html/24_iterators/howto.html, docs/html/25_algorithms/howto.html,
1027 docs/html/26_numerics/howto.html, docs/html/27_io/howto.html,
1028 docs/html/ext/howto.html, docs/html/ext/sgiexts.html: Add <link> tags.
1030 2003-11-18 Paolo Carlini <pcarlini@suse.de>
1033 * include/bits/fstream.tcc (imbue): For encodings != -1 it's
1034 always ok to imbue a new locale, provided seekoff(0, cur, ...)
1035 doesn't fail, of course.
1036 (underflow): In order for the above to work, deal gracefully
1037 with _M_codecvt->in returning codecvt_base::error while
1038 (__ilen = __iend - this->eback()) > 0: it just means __ilen
1039 correctly converted internal characters before an error.
1040 * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: New.
1042 2003-11-17 Paolo Carlini <pcarlini@suse.de>
1044 * include/bits/locale_facets.tcc: Fix typo in comment.
1046 2003-11-17 Paolo Carlini <pcarlini@suse.de>
1048 * testsuite/22_locale/num_put/put/char/8.cc: New test,
1049 summarizing the discussion ensuing libstdc++/12988.
1050 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Ditto.
1052 2003-11-15 Paolo Carlini <pcarlini@suse.de>
1054 * include/std/std_fstream.h: Tweak a comment.
1056 2003-11-15 Roger Sayle <roger@eyesopen.com>
1058 * include/c_std/std_cmath.h: Don't import C99's float transcendentals
1059 into the __gnu_cxx::__c99_binding namespace.
1060 (acos, asin, atan, atan2, ceil, cosh, exp, floor, fmod, frexp,
1061 ldexp, log, log10, modf, pow, sinh, tan, tanh): Implement using
1062 GCC's math builtins, i.e. __builtin_foo.
1063 * libmath/stubs.c (acosf, acosl, asinf, asinl, atanf, atanl,
1064 ceilf, ceill, floorf, floorl, fmodf, fmodl, frexpf, frexpl,
1065 ldexpf, ldexpl, modff, modfl): Provide stub implementations.
1067 2003-11-14 Paolo Carlini <pcarlini@suse.de>
1069 * testsuite/22_locale/locale/cons/12352.cc: Use
1070 __gnu_test::try_named_locale.
1072 2003-11-14 Paolo Carlini <pcarlini@suse.de>
1074 * docs/html/ext/howto.html: Add entries for DR 63, 75
1075 and 305; tweak entries for DR 60 and 328.
1077 2003-11-13 Douglas Gregor <gregod@cs.rpi.edu>
1079 * docs/html/debug.html: Users are allowed to specialize in
1080 namespace __gnu_debug, unlike in the Apple version of the debug
1081 mode. Clear up a confusing double-negative. Note that
1082 std::basic_string does provide extra debugging capabilities, but
1084 * include/bits/basic_string.tcc: Make sure there's never an
1085 ambiguity when calling __is_null_pointer.
1086 * include/debug/deque: (deque::erase) Properly handle invalidation
1087 when erasing at the end of the deque.
1088 * include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity.
1089 (vector::clear): Set the guaranteed capacity to 0.
1090 * testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
1091 iterator invalidation when erasing at the end of the deque.
1093 2003-11-13 Paolo Carlini <pcarlini@suse.de>
1094 Petur Runolfsson <peturr02@ru.is>
1097 * include/bits/fstream.tcc (imbue): Don't touch the stored
1099 * include/std/std_streambuf.h (imbue): According to the
1100 standard, base class version does nothing.
1101 (pubimbue): Store the locale.
1102 * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New.
1103 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New.
1104 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak.
1105 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
1106 * testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New.
1107 * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New.
1108 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New.
1109 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New.
1111 2003-11-13 Petur Runolfsson <peturr02@ru.is>
1114 * include/bits/ostream.tcc
1115 (basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
1116 basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
1117 basic_ostream::operator<<(ios_base& (*)(ios_base&))):
1118 Implement the resolution of DR 60 (TC): These are not formatted
1119 output functions so don't construct sentry objects and don't
1121 (basic_ostream::put, basic_ostream::write): Implement the
1122 resolution of DR 63 (TC) by catching exceptions and setting
1124 (basic_ostream::flush): Implement the resolution of DR 60 (TC):
1125 This is not an unformatted output function so don't construct
1127 * testsuite/testsuite_io.h (sync_streambuf): Define.
1128 * testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
1129 * testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
1130 * testsuite/27_io/basic_ostream/put/char/1.cc: New test.
1131 * testsuite/27_io/basic_ostream/write/char/1.cc: New test.
1133 2003-11-13 Paolo Carlini <pcarlini@suse.de>
1135 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
1136 Fix, closely following the testcase included in the PR.
1137 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
1138 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
1139 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.
1141 2003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
1143 * docs/html/17_intro/configury.html: XHTML tweak.
1145 2003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
1147 * docs/html/debug_mode.html: XHTML fixes.
1149 2003-11-12 Benjamin Kosnik <bkoz@redhat.com>
1151 * docs/html/debug_mode.html: Update.
1152 * docs/html/17_intro/TODO: Update.
1154 2003-11-12 Benjamin Kosnik <bkoz@redhat.com>
1156 * include/bits/c++config: Move using directive...
1157 * include/debug/formatter.h: ...here.
1159 2003-11-12 Carlo Wood <carlo@alinoe.com>
1163 (_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS): Added.
1164 (_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Added.
1165 (session<Allocator>::next_peek() const): Added.
1166 (decode_non_negative_decimal_integer(string_type&)):
1167 Renamed from decode_decimal_integer(string_type&).
1168 (session<Allocator>::decode_nested_name):
1169 Decode <template_param> as well.
1170 (session<Allocator>::add_substitution):
1171 Handle <template-param> for <nested-name>'s.
1172 (enum xary_nt): Added.
1173 (struct entry_st): Added member `xary_nt type' instead of `bool unary'.
1174 (symbol_name_table_c): Updated for `entry_st::type' and additional
1175 operators (unary `operator+' and `sizeof(type)').
1176 (offset_table_c): Updated for new operators (causing a new hash map).
1177 (decode_operator_name): Match the updated hash map.
1178 (session<Allocator>::decode_expression):
1179 Support for `sizeof ([typename] type)' (st),
1180 dependent names (sr) and casting operator (cv). Handle
1181 `entry_st::type'. Handle _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
1182 and _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME.
1183 (session<Allocator>::decode_type_with_postfix):
1184 Support `extern "C"' function types (FY).
1185 * testsuite/demangle/regression/cw-16.cc: Added tests for the
1186 added functionality.
1187 * testsuite/demangle/regression/3111-2.cc: sizeof now has a space
1190 2003-11-11 Paolo Carlini <pcarlini@suse.de>
1193 * include/bits/fstream.tcc (setbuf): Don't do anything
1194 after open(), in particular don't discard data.
1195 (_M_allocate_internal_buffer): Tweak to not allocate memory
1196 in case the buffer is provided by the user via setbuf.
1197 * include/ext/stdio_filebuf.h: Tweak comment.
1198 * testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
1199 * testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
1200 * testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
1201 setbuf does nothing after open().
1202 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
1204 2003-11-11 Doug Gregor <gregod@cs.rpi.edu>
1206 * docs/html/debug.html: Document libstdc++ debug mode.
1207 * docs/html/debug_mode.html: Document libstdc++ debug mode design.
1208 * docs/html/test.html: Document how to test under debug mode.
1209 * docs/html/17_intro/howto.html: Document debug-mode macros.
1210 * include/Makefile.am: Install debug-mode headers.
1211 * src/Makefile.am: Include debug.cc.
1212 * include/bits/basic_string.tcc:
1213 (basic_string::_S_construct): Fix NULL pointer check.
1214 (__is_null_pointer): New.
1215 Add precondition annotations.
1216 * include/bits/stream_iterator.h (istream_iterator,
1217 ostream_iterator): Added precondition annotations.
1218 * include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto.
1219 * include/bits/stl_queue.h (queue, priority_queue): Ditto.
1220 * include/bits/stl_stack.h (stack): Ditto.
1221 * include/bits/basic_string.h (basic_string): Ditto.
1222 * include/bits/basic_string.tcc (basic_string): Ditto.
1223 * include/std/std_memory.h (auto_ptr): Ditto.
1224 * include/std/std_valarray.h (valarray): Ditto.
1225 * include/bits/stl_algo.h: Added algorithm precondition
1227 * include/bits/stl_algobase.h: Added algorithm precondition
1229 * include/bits/stl_numeric.h: Ditto.
1230 * include/ext/algorithm: Added algorithm precondition
1232 (__is_heap): Moved away from here.
1233 * include/bits/stl_heap.h: Added algorithm precondition
1235 (__is_heap): Moved to the top of this file.
1236 (__is_heap): Added iterator range overloads.
1237 * testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up
1238 with changes in std_memory.h.
1239 * testsuite/23_containers/list/operators/4.cc: Don't verify
1240 performance guarantees when in debug mode.
1241 * testsuite/23_containers/bitset/invalidation/1.cc: New.
1242 * testsuite/23_containers/deque/invalidation/1.cc: New.
1243 * testsuite/23_containers/deque/invalidation/2.cc: New.
1244 * testsuite/23_containers/deque/invalidation/3.cc: New.
1245 * testsuite/23_containers/deque/invalidation/4.cc: New.
1246 * testsuite/23_containers/list/invalidation/1.cc: New.
1247 * testsuite/23_containers/list/invalidation/2.cc: New.
1248 * testsuite/23_containers/list/invalidation/3.cc: New.
1249 * testsuite/23_containers/list/invalidation/4.cc: New.
1250 * testsuite/23_containers/map/invalidation/1.cc: New.
1251 * testsuite/23_containers/map/invalidation/2.cc: New.
1252 * testsuite/23_containers/multimap/invalidation/1.cc: New.
1253 * testsuite/23_containers/multimap/invalidation/2.cc: New.
1254 * testsuite/23_containers/multiset/invalidation/1.cc: New.
1255 * testsuite/23_containers/multiset/invalidation/2.cc: New.
1256 * testsuite/23_containers/set/invalidation/1.cc: New.
1257 * testsuite/23_containers/set/invalidation/2.cc: New.
1258 * testsuite/23_containers/vector/invalidation/1.cc: New.
1259 * testsuite/23_containers/vector/invalidation/2.cc: New.
1260 * testsuite/23_containers/vector/invalidation/3.cc: New.
1261 * testsuite/23_containers/vector/invalidation/4.cc: New.
1262 * testsuite/25_algorithms/heap.cc: Don't verify
1263 performance guarantees when in debug mode.
1264 * include/debug/bitset: New.
1265 * include/debug/debug.h: New.
1266 * include/debug/deque: New.
1267 * include/debug/formatter.h: New.
1268 * include/debug/hash_map: New.
1269 * include/debug/hash_map.h: New.
1270 * include/debug/hash_multimap.h: New.
1271 * include/debug/hash_set: New.
1272 * include/debug/hash_set.h: New.
1273 * include/debug/hash_multiset.h: New.
1274 * include/debug/list: New.
1275 * include/debug/map: New.
1276 * include/debug/map.h: New.
1277 * include/debug/multimap.h: New.
1278 * include/debug/multiset.h: New.
1279 * include/debug/safe_base.h: New.
1280 * include/debug/safe_iterator.h: New.
1281 * include/debug/safe_iterator.tcc: New.
1282 * include/debug/safe_sequence.h: New.
1283 * include/debug/set: New.
1284 * include/debug/set.h: New.
1285 * include/debug/string: New.
1286 * include/debug/vector: New.
1287 * src/debug.cc: New.
1288 * config/linker-map.gnu: Add debug mode symbols.
1290 2003-11-11 Benjamin Kosnik <bkoz@redhat.com>
1292 * src/string-inst.cc: Tweak namespaces.
1293 * src/misc-inst.cc: Same.
1294 * docs/html/debug.html: Edits.
1295 * config/link-map.gnu: Remove cruft.
1297 * include/bits/c++config: Add in namespace associations.
1298 * include/std/std_bitset.h: Adjust namespace to __gnu_norm,
1300 * include/bits/deque.tcc: Same.
1301 * include/bits/list.tcc: Same.
1302 * include/bits/stl_bvector.h: Same.
1303 * include/bits/stl_deque.h: Same.
1304 * include/bits/stl_list.h: Same.
1305 * include/bits/stl_map.h: Same.
1306 * include/bits/stl_multimap.h: Same.
1307 * include/bits/stl_multiset.h: Same.
1308 * include/bits/stl_set.h: Same.
1309 * include/bits/stl_vector.h: Same.
1310 * include/bits/vector.tcc: Same.
1312 * include/std/std_algorithm.h: Remove markup comments.
1313 * include/std/std_functional.h: Same.
1314 * include/std/std_iterator.h: Same.
1315 * include/std/std_numeric.h: Same.
1316 * include/std/std_utility.h: Same.
1317 * include/bits/stl_queue.h: Formatting tweaks.
1318 * include/bits/stl_stack.h: Same.
1319 * include/std/std_deque.h: Include debugging version in debug mode.
1320 * include/std/std_list.h: Same.
1321 * include/std/std_map.h: Same.
1322 * include/std/std_set.h: Same.
1323 * include/std/std_vector.h: Same.
1324 * include/std/std_queue.h: Use deque, vector.
1325 * include/std/std_stack.h: Same.
1327 2003-11-09 Paolo Carlini <pcarlini@suse.de>
1329 * include/bits/locale_facets.tcc (_M_insert_int,
1330 _M_insert_float): Move a couple of vars inside an if block.
1332 2003-11-09 Paolo Carlini <pcarlini@suse.de>
1335 * include/bits/locale_facets.tcc
1336 (money_put::do_put(..., long double)): Fix conversion
1337 specification as per DR 328 [WP].
1338 * testsuite/22_locale/money_put/put/char/12971.cc: Add.
1339 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto.
1340 * docs/html/ext/howto.html: Add entry for DR 328.
1342 2003-11-08 Paolo Carlini <pcarlini@suse.de>
1345 * include/bits/list.tcc (merge): Implement resolution of
1347 * docs/html/ext/howto.html: Add entry for DR 300; tweak entry
1350 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
1353 2003-11-07 Jonathan Wakely <redi@gcc.gnu.org>
1355 * libsupc++/vec.cc: Conform to C++STYLE.
1357 2003-11-07 Carlo Wood <carlo@alinoe.com>
1360 * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
1361 (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
1362 K, V, r and A qualifiers before processing them as a group.
1363 * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
1364 * testsuite/demangle/regression/cw-16.cc: New.
1366 2003-11-07 Robert Millan <robertmh@gnu.org>
1368 * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
1369 * crossconfig.m4: Likewise.
1370 * configure: Regenerate.
1372 2003-11-07 Carlo Wood <carlo@alinoe.com>
1374 * include/bits/demangle.h
1375 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
1376 string_type&, bool member_function_pointer_qualifiers):
1377 Always separate the '[' of an array type with a space from
1378 what is left of it, except when that is the closing bracket
1379 of another array dimension.
1381 2003-11-07 Carlo Wood <carlo@alinoe.com>
1383 * include/bits/demangle.h
1384 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
1385 string_type&, bool) const): Made const.
1386 (qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
1387 (_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
1388 std::ostream& operator<<(std::ostream&, qualifier const&),
1389 std::ostream& operator<<(std::ostream&, qualifier_list const&),
1390 qualifier_list<Allocator>::decode_qualifiers(string_type&,
1391 string_type&, bool) const,
1392 session<Allocator>::decode_type_with_postfix(string_type&,
1393 string_type&, qualifier_list<Allocator>*))
1394 Added and/or changed debug-only hooks and code.
1396 2003-11-04 Jeffrey D. Oldham <oldham@codesourcery.com>
1398 * libsupc++/vec.cc (__cxa_vec_delete2): If given a NULL pointer,
1399 immediately return. This reflects a C++ ABI change 2003 Nov 03.
1400 (__cxa_vec_delete3): Likewise.
1402 2003-11-03 Petur Runolfsson <peturr02@ru.is>
1405 * include/bits/fstream.tcc: Delete _M_last_overflowed.
1406 (basic_filebuf::basic_filebuf): Initialize _M_state_last.
1407 (basic_filebuf::open, basic_filebuf::close): Assign
1408 _M_state_beg to _M_state_cur and _M_state_last.
1409 (basic_filebuf::close): Call _M_terminate_output to handle
1410 unshift and flushing.
1411 (basic_filebuf::underflow): Assign _M_state_last, throw
1412 exception instead of calling abort when codecvt::max_length()
1414 (basic_filebuf::seekoff): Use _M_state_last when calling
1415 codecvt::length(), pass correct state to _M_seek.
1416 (basic_filebuf::seekpos): Pass __pos.state() to _M_seek.
1417 (basic_filebuf::_M_seek): Add __state_type parameter,
1418 set _M_state_cur correctly, store the resulting state in
1419 the return value and use _M_terminate_output to handle
1420 flushing and unshift.
1421 (basic_filebuf::_M_terminate_output): Flush contents of
1422 output buffer, if any, then call codecvt::unshift as
1423 needed and output the result.
1424 (basic_filebuf::sync): Move here, don't modify _M_writing
1427 * include/std/std_fstream.h
1428 (basic_filebuf::_M_state_last): Declare it.
1429 (basic_filebuf::_M_last_overflowed): Delete.
1430 (basic_filebuf::_M_seek): Add __state_type parameter.
1431 (basic_filebuf::sync): Declare only.
1432 (basic_filebuf::_M_output_unshift): Delete.
1433 (basic_filebuf::_M_terminate_output): Declare it.
1435 * testsuite/testsuite_character.h:
1436 Define character class and state class plus char_traits and
1437 codecvt specializations for same for testing support for
1440 * testsuite/27_io/basic_filebuf/close/12790-1.cc,
1441 * testsuite/27_io/basic_filebuf/close/char/12790-1.cc,
1442 * testsuite/27_io/basic_filebuf/close/char/12790-2.cc,
1443 * testsuite/27_io/basic_filebuf/close/char/12790-3.cc,
1444 * testsuite/27_io/basic_filebuf/close/char/12790-4.cc,
1445 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc,
1446 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc,
1447 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc,
1448 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc,
1449 * testsuite/27_io/basic_filebuf/open/12790-1.cc,
1450 * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc,
1451 * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc,
1452 * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc,
1453 * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc,
1454 * testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc,
1455 * testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc,
1456 * testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc,
1457 * testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc,
1458 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc,
1459 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc,
1460 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc,
1461 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc,
1462 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc,
1463 * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc,
1464 * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc,
1465 * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc,
1466 * testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc,
1467 * testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc,
1468 * testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc,
1469 * testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc,
1470 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc,
1471 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc,
1472 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc,
1473 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc,
1474 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc,
1475 * testsuite/27_io/basic_filebuf/sync/char/1.cc,
1476 * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc:
1479 * testsuite/27_io/basic_filebuf/3.cc,
1480 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc,
1481 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc,
1482 * testsuite/27_io/basic_fstream/3.cc,
1483 * testsuite/27_io/basic_ifstream/3.cc,
1484 * testsuite/27_io/basic_ofstream/3.cc:
1485 Use streamoff as off_type and fpos<state_type> as pos_type.
1487 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc,
1488 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc:
1489 Check that sync does *not* set _M_writing to false.
1491 2003-11-03 Anthony Green <green@redhat.com>
1493 * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
1496 2003-11-03 Benjamin Kosnik <bkoz@redhat.com>
1498 * include/bits/locale_facets.h (time_get::_M_extract_name): Add
1500 * include/bits/locale_facets.tcc: Same, use it to allow
1503 * include/bits/fstream.tcc: Spacing tweak.
1504 * include/bits/istream.tcc: Same.
1505 * include/bits/ostream.tcc: Same.
1507 2003-10-30 Paolo Carlini <pcarlini@suse.de>
1509 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
1510 __mod is only assigned, never used its value, remove it.
1512 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1514 * include/bits/locale_facets.tcc (time_get::do_get_year):
1515 Absolutely avoid dereferencing end iterators.
1516 (time_put::put): Minor clean up.
1518 * include/bits/locale_facets.tcc: Cosmetic reformattings.
1520 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1522 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1523 Revert the last commit, is not correct, sorry.
1525 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1527 * config/locale/generic/c_locale.cc: Add back <cmath> and
1530 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1533 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1535 * include/bits/locale_facets.tcc (time_put::put): Absolutely
1536 avoid dereferencing end iterators; clean up.
1538 * include/bits/locale_facets.tcc (num_get::_M_extract_float,
1539 num_get::_M_extract_int): Minor tweak.
1541 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1543 * include/bits/locale_facets.tcc: Remove some unnecessary
1545 * config/locale/generic/c_locale.cc: Include <cerrno> here.
1546 * config/locale/gnu/c_locale.cc: Likewise.
1548 2003-10-28 Paolo Carlini <pcarlini@suse.de>
1550 * include/bits/locale_facets.tcc
1551 (money_get<>::do_get(..., string_type&)): Absolutely avoid
1552 dereferencing end iterators; general clean up.
1554 2003-10-28 Paolo Carlini <pcarlini@suse.de>
1556 * include/bits/locale_facets.tcc (time_get::_M_extract_num):
1557 Absolutely avoid dereferencing end iterators.
1558 (time_get::_M_extract_name): Likewise.
1560 * include/bits/locale_facets.tcc
1561 (time_get::_M_extract_via_format, case 'e'): Don't try to
1562 be smart wrt returning the right __beg in case of parse
1563 error, time_get::_M_extract_num must be fixed instead.
1565 2003-10-27 Paolo Carlini <pcarlini@suse.de>
1568 * acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
1569 * aclocal.m4: Regenerate.
1570 * configure: Regenerate.
1572 2003-10-27 Benjamin Kosnik <bkoz@redhat.com>
1574 * docs/html/17_intro/TODO: Add links.
1575 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1578 2003-10-27 Paolo Carlini <pcarlini@suse.de>
1581 * include/bits/locale_facets.tcc
1582 (time_get::_M_extract_via_format): Deal with code 'e'.
1583 * testsuite/22_locale/time_get/get_date/char/12750.cc: New.
1584 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.
1586 * include/bits/locale_facets.tcc
1587 (time_get::_M_extract_via_format): Tweak to absolutely avoid
1588 dereferencing end iterators.
1590 * include/bits/locale_facets.h (__verify_grouping):
1591 Const-ify second parameter.
1592 * include/bits/locale_facets.tcc (__verify_grouping): Ditto.
1593 * src/locale-inst.cc (__verify_grouping): Ditto.
1595 2003-10-27 Paolo Carlini <pcarlini@suse.de>
1597 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1598 Various things: 1- Avoid absolutely end iterator dereferences;
1599 2- Improve performance-wise the code skipping leading zeros;
1600 3- Fix two bugs wrt early bail out in case of parsing errors
1601 (see testcases); 4- General clean up.
1602 (num_get::_M_extract_int): Likewise, except 3-. Additionally,
1603 use __builtin_expect to favor base 10 inputs.
1604 * testsuite/22_locale/num_get/get/char/7.cc: New.
1605 * testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.
1607 2003-10-26 Paolo Carlini <pcarlini@suse.de>
1609 * testsuite/22_locale/money_put/put/char/1.cc: Clean up.
1610 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.
1612 2003-10-25 Paolo Carlini <pcarlini@suse.de>
1614 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
1615 __pos in only incremented, never used its value, remove it.
1617 2003-10-24 Robert Millan <robertmh@gnu.org>
1619 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
1621 * aclocal.m4: Regenerated.
1622 * configure: Regenerated.
1624 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1626 * include/bits/locale_facets.tcc (money_get::do_get(...,
1627 long double&): Properly size the temporary buffer.
1628 * testsuite/22_locale/money_get/get/char/11.cc: New.
1629 * testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.
1631 * include/bits/locale_facets.tcc (num_put::_M_group_int,
1632 num_put::_M_group_float, money_put::do_put(..., const
1633 string_type&), collate::do_compare, collate::do_transform):
1634 Prefer basic_string::data() to c_str() when the '\0'
1635 terminator is not really needed.
1637 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1639 * include/bits/locale_facets.tcc (__verify_grouping):
1640 Prefer '=' to an unnecessary '&='.
1642 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1644 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1645 Tweak my fix for libstdc++/12657.
1647 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1649 * include/bits/locale_facets.tcc (money_get::do_get(...,
1650 string_type&): Minor tweak to the previous commit.
1652 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1654 * include/bits/locale_facets.tcc (money_get::do_get(...,
1655 string_type&): Disregard the previous commit: doesn't hurt but
1656 doesn't accomplish anything useful either. This is the right
1657 one, speeding up greatly the function in case of early fail.
1659 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1661 * include/bits/locale_facets.tcc (money_get::do_get(...,
1662 string_type&): Move an if block, thus minimizing the amount
1663 of code processed anyway when __tmp_units.size() == 0.
1665 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1667 * include/bits/locale_facets.tcc
1668 (time_get<>::_M_extract_via_format): Deal with case 'C' too,
1671 2003-10-23 Benjamin Kosnik <bkoz@redhat.com>
1673 * docs/html/documentation.html: Add a pointer to the doxygen style
1675 * docs/html/17_intro/TODO: Update.
1676 * docs/html/test.html: Add instructions for running a subset of
1679 2003-10-23 Paolo Carlini <pcarlini@suse.de>
1681 * include/bits/locale_facets.tcc (money_get<>::do_get(...,
1682 string_type&)): Use find_first_not_of to strip leading
1683 zeros; if __tmp_units == "0" never prefix it with '-';
1684 always fail if __tmp_units is empty.
1685 * testsuite/22_locale/money_get/get/char/10.cc: New.
1686 * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
1688 2003-10-23 Phil Edwards <phil@codesourcery.com>
1690 * config/os/vxworks/ctype_noninline.h: Adjust ctor to match
1693 2003-10-22 Paolo Carlini <pcarlini@suse.de>
1695 * include/bits/locale_facets.tcc (__int_to_char): Remove
1696 the const int parameter.
1697 (_M_insert_int): Update caller.
1698 * src/locale-inst.cc (__int_to_char): Update instantiations.
1700 2003-10-22 Benjamin Kosnik <bkoz@redhat.com>
1702 * include/bits/locale_facets.h: Correct byname facets for "C"
1704 * config/locale/generic/ctype_members.cc: Same.
1705 * config/locale/generic/messages_members.h: Same.
1706 * config/locale/gnu/ctype_members.cc: Same.
1707 * config/locale/gnu/messages_members.h: Same.
1708 * include/bits/codecvt.h: Same.
1709 * src/ctype.cc: Same.
1710 * testsuite/22_locale/codecvt_byname/1.cc: New.
1711 * testsuite/22_locale/collate/1.cc: Edit.
1712 * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
1713 * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
1714 * testsuite/22_locale/ctype/1.cc: Derivation tests.
1715 * testsuite/22_locale/ctype/11844.cc: Move...
1716 * testsuite/22_locale/ctype_base/11844.cc: ...here.
1717 * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
1718 * testsuite/22_locale/ctype_byname/1.cc: Name.
1719 * testsuite/22_locale/messages_byname/1.cc: New.
1720 * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
1721 * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
1722 * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
1723 * testsuite/22_locale/numpunct/1.cc: Edit.
1724 * testsuite/22_locale/numpunct_byname/2.cc: Move...
1725 * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
1726 * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
1727 * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
1729 2003-10-22 Paolo Carlini <pcarlini@suse.de>
1732 * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
1733 checking for the availability of int64_t.
1734 (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
1735 * configure.ac: Call here.
1736 * acconfig.h: Add undef for the corresponding symbols.
1737 * config/io/basic_file_stdio.cc (__basic_file<char>::open):
1738 Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
1739 (__basic_file<char>::seekoff): Likewise, call lseek64 when
1740 available, otherwise lseek, checking the __off parameter.
1741 * include/bits/postypes.h: Typedef __streamoff_base_type
1742 to int64_t if available, otherwise long long.
1743 * aclocal.m4: Regenerate.
1744 * config.h.in: Likewise.
1745 * configure: Likewise.
1747 * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
1748 Use AC_TRY_LINK instead of AC_TRY_COMPILE.
1750 2003-10-22 Paolo Carlini <pcarlini@suse.de>
1753 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1754 Implement resolution of DR 292 (WP).
1755 * docs/html/ext/howto.html: Add entry for DR 292.
1757 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
1759 * include/ext/mt_allocator.h: Change include to gthr.h.
1760 * include/ext/rope: Same. Add _Refcount_base definitions.
1761 * include/ext/pool_allocator.h: Adjust namespaces.
1762 * include/bits/stl_threads.h (_Refcount_base): Move.
1763 Put remaining into namespace __gnu_cxx.
1765 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
1768 * include/bits/locale_facets.h (ctype<char>): Remove
1769 __ctype_abstract_base.
1770 (ctype<char>::do_is): Remove.
1771 (ctype<char>::do_scan_is): Remove.
1772 * src/ctype.cc: Same. Inline the rest.
1773 * testsuite/22_locale/ctype/is/char/9858.cc: New.
1774 * config/os/aix/ctype_noninline.h: Adjust ctor.
1775 * config/os/bsd/freebsd/ctype_noninline.h: Same.
1776 * config/os/bsd/netbsd/ctype_noninline.h: Same.
1777 * config/os/djgpp/ctype_noninline.h: Same.
1778 * config/os/generic/ctype_noninline.h: Same.
1779 * config/os/gnu-linux/ctype_noninline.h: Same.
1780 * config/os/hpux/ctype_noninline.h: Same.
1781 * config/os/irix/irix5.2/ctype_noninline.h: Same.
1782 * config/os/irix/irix6.5/ctype_noninline.h: Same.
1783 * config/os/mingw32/ctype_noninline.h: Same.
1784 * config/os/newlib/ctype_noninline.h: Same.
1785 * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
1786 * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
1787 * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
1788 * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
1789 * config/os/windiss/ctype_noninline.h: Same.
1791 2003-10-21 Paolo Carlini <pcarlini@suse.de>
1793 * src/locale.cc: Tweak a comment.
1794 * src/localename.cc: Move a comment.
1796 2003-10-20 Benjamin Kosnik <bkoz@redhat.com>
1799 * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
1800 * testsuite_hooks.cc: Same.
1801 * 22_locale/numpunct/members/pod/1.cc: Edit.
1802 * 22_locale/numpunct/members/pod/2.cc: Same.
1803 * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
1804 * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
1805 * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
1806 * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
1807 * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
1808 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
1809 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
1810 * 27_io/basic_istream/sentry/pod/1.cc: New.
1811 * 27_io/basic_ostream/sentry/pod/1.cc: New.
1812 * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
1813 * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
1815 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1817 * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
1818 of external _MIPS_SIM_ABI32.
1820 2003-10-20 Phil Edwards <phil@codesourcery.com>
1822 * configure.ac: Fix comment typo.
1823 * configure.host: Add vxworks to host_os switch.
1824 * crossconfig.m4: Remove old commented os_include_dir variables
1825 left over from autotools transition.
1826 (*-vxworks): New stanza.
1827 (*-windiss): Add missing symbols.
1828 * configure: Regenerate.
1829 * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
1830 config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
1832 * config/os/windiss/os_defines.h: Define __C9X__.
1834 2003-10-19 David Edelsohn <edelsohn@gnu.org>
1837 * configure.host (aix4,aix*): Define os_include_dir to os/generic.
1839 2003-10-18 Andreas Tobler <a.tobler@schweiz.ch>
1841 * src/locale.cc (locale::_S_initialize): Re-apply workaround a
1842 confusion of the use of the gthr API when __gthread_active_p()
1845 2003-10-17 Benjamin Kosnik <bkoz@redhat.com>
1847 * src/Makefile.am: Add new files.
1848 * src/Makefile.in: Regenerate.
1849 * src/globals.cc: Split into..
1850 * src/globals_io.cc: New.
1851 * src/globals_locale.cc: New.
1852 * src/ios.cc: Split into...
1853 * src/ios_init.cc: New.
1854 * src/ios_locale.cc: New.
1855 * src/locale-inst.cc: Split into..
1856 * src/wlocale-inst.cc: New.
1857 * src/locale-misc-inst.cc: New.
1858 * src/locale.cc, src/localename: Split into...
1859 * src/locale_facets.cc: New.
1860 * src/locale_init.cc: New.
1861 * src/wstring-inst.cc: Add copyright info.
1863 2003-10-16 Petur Runolfsson <peturr02@ru.is>
1868 * config/io/basic_file_stdio.cc (__basic_file::seekoff):
1869 Change return value from streampos to streamoff.
1870 (__basic_file::seekpos): Delete.
1871 * config/io/basic_file_stdio.h: Same.
1872 * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
1873 * include/Makefile.am (bits_headers): Add bits/postypes.h.
1874 * include/bits/char_traits.h: Include bits/postypes.h instead of
1876 * include/bits/fstream.tcc (basic_filebuf::open,
1877 basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
1878 values, use == and != instead.
1879 (basic_filebuf::_M_seek): Use explicit conversion from streamoff
1881 (basic_filebuf::imbue): Don't use ! on pos_type values, use
1882 == instead. Don't use __check_facet(_M_codecvt) unless is_open().
1883 * include/bits/postypes.h: New file.
1884 Add __streamoff_base_type typedef, streamsize.
1885 (streamoff, streampos, wstreampos): Define typedefs, with
1886 streamoff defined as...
1887 (streamoff): New class. Document implementation defined
1889 (fpos): New implementation. Document implementation defined
1891 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
1892 explicit conversion from pos_type to off_type.
1893 * include/std/std_iosfwd.h: Include bits/postypes.h instead
1895 * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
1896 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
1897 * testsuite/27_io/fpos/11450.cc: New test.
1898 * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
1899 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
1900 * testsuite/27_io/types/3.cc: New test.
1902 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
1904 * configure.host: Remove fpos_include_dir.
1905 * configure.ac: Remove FPOS_INC_SRCDIR.
1906 * configure: Regenerate.
1907 * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
1908 * aclocal.m4: Regenerate.
1909 * include/Makefile.am (host_headers): Remove fpos.h.
1910 (bits_headers): Add postypes.h.
1911 * include/Makefile.in: Regenerate.
1912 * config/os/gnu-linux/fposh: Remove.
1913 * config/os/generic/fpos.h: Remove.
1915 * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
1916 * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
1917 * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
1918 * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
1919 * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
1920 * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
1921 * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
1922 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
1923 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
1924 * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
1925 * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
1926 * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
1927 * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
1928 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
1929 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
1930 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1931 * testsuite/27_io/objects/char/10.cc: Same.
1933 2003-10-16 Paolo Carlini <pcarlini@suse.de>
1935 * src/locale.cc (locale::locale(const char*)): ... one
1936 more comparison missed in the previous commit.
1938 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
1940 * acconfig.h: Add HAVE_DRAND48.
1941 * crossconfig.m4: Remove ISATTY.
1942 * aclocal.m4: Regenerated.
1943 * config.h.in: Regenerated.
1944 * configure: Regenerated.
1946 2003-10-16 Bernardo Innocenti <bernie@develer.com>
1948 * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
1949 __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
1950 Document SMP safeness of asm macros.
1952 2003-10-16 Paolo Carlini <pcarlini@suse.de>
1954 * src/locale.cc (locale::locale(const char*)): Tweak
1955 a couple of comparisons to use basic_string operators.
1957 2003-10-16 Paolo Carlini <pcarlini@suse.de>
1960 * config/locale/gnu/monetary_members.cc
1961 (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
1962 Don't leak memory if new throws.
1963 * src/locale.cc (locale::locale(const char*)): In order not
1964 to leak memory in case new throws, use a basic_string type
1965 for __res too and avoid strdup.
1967 2003-10-14 Jeff Bailey <jbailey@nisa.net>
1970 * crossconfig.m4: Share the config between *-linux* and *-gnu*.
1971 * configure: Regenerate.
1973 2003-10-14 Carlo Wood <carlo@alinoe.com>
1976 * include/bits/demangle.h (session<Allocator>::
1977 decode_unqualified_name(string_type& output)): Fail on a
1978 <operator-name> when decoding <template-argument>.
1979 * testsuite/demangle/regression/cw-15.cc: New.
1981 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
1984 * include/bits/stl_algo.h (unique): Fix.
1985 * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
1986 * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
1987 * testsuite/25_algorithms/unique/2.cc: New.
1989 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
1991 * src/localename.cc (_M_replace_categories, M_replace_facet):
1992 Const-ify a couple of variables.
1994 2003-10-14 Petur Runolfsson <peturr02@ru.is>
1995 Andreas Tobler <a.tobler@schweiz.ch>
1997 * src/locale.cc (locale::_S_initialize): Workaround a confusion
1998 of the use of the gthr API when __gthread_active_p() returns true.
2000 2003-10-12 Petur Runolfsson <peturr02@ru.is>
2001 Paolo Carlini <pcarlini@unitus.it>
2004 * src/strstream.cc (pbackfail): Fix to use to_int_type.
2005 * testsuite/backward/11460.cc: New, from the PR.
2007 2003-10-12 Paolo Carlini <pcarlini@unitus.it>
2009 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
2010 Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
2011 * include/bits/basic_string.tcc: Likewise.
2012 * include/bits/ios_base.h: Likewise.
2013 * include/bits/istream.tcc: Likewise.
2014 * include/bits/locale_facets.tcc: Likewise.
2015 * include/bits/ostream.tcc: Likewise.
2016 * include/bits/stl_function.h: Likewise.
2017 * include/bits/stl_multiset.h: Likewise.
2018 * include/bits/stl_pair.h: Likewise.
2019 * include/bits/stl_set.h: Likewise.
2020 * include/bits/streambuf_iterator.h
2021 * include/std/std_iosfwd.h: Likewise.
2022 * include/std/std_istream.h: Likewise.
2023 * include/std/std_sstream.h: Likewise.
2024 * include/std/std_streambuf.h: Likewise.
2025 * src/ios.cc: Likewise.
2026 * include/bits/c++config:
2027 Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
2028 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
2029 dg-error directive due to removal of a blank line.
2030 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
2032 2003-10-12 Andreas Tobler <a.tobler@schweiz.ch>
2033 Paolo Carlini <pcarlini@unitus.it>
2035 PR libstdc++/11844/11740 (cont)
2036 * config/os/generic/ctype_inline.h (ctype<char>::is):
2037 Generically, use a bitmasksize of 15 (instead of 10);
2038 Fix the logic to actually return (M & m) != 0 as per
2041 2003-10-11 Bernardo Innocenti <bernie@develer.com>
2043 * crossconfig.m4 (*-uclinux*): New target.
2044 * configure: Regenerate.
2046 2003-10-10 Paolo Carlini <pcarlini@unitus.it>
2048 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
2049 Avoid unnecessarily calling __builtin_alloca and dealing
2050 explicitly with width() smaller than zero.
2051 (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
2052 const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
2053 const char*), operator<<(basic_ostream<char, _Traits>&,
2054 const char*), operator<<(basic_ostream, const basic_string&)):
2057 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
2059 * config/linker-map.gnu: Make more *_type_info bits visible.
2060 Move new/delete bits back into GLIBCXX space.
2062 * include/bits/locale_classes.h: Move _M_id out of line, so that
2063 locale::id::_S_highwater can be removed from the export list.
2064 * src/locale.cc (locale::id::_M_id): Define.
2066 2003-10-09 Andreas Tobler <a.tobler@schweiz.ch>
2068 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
2071 2003-10-09 Paolo Carlini <pcarlini@unitus.it>
2074 * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
2075 to conform to the requirements of 22.2.1.
2076 * config/os/bsd/freebsd/ctype_base.h: Likewise.
2077 * config/os/djgpp/ctype_base.h: Likewise.
2078 * config/os/generic/ctype_base.h: Likewise.
2079 * config/os/gnu-linux/ctype_base.h: Likewise.
2080 * config/os/hpux/ctype_base.h: Likewise.
2081 * config/os/irix/irix6.5/ctype_base.h: Likewise.
2082 * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
2083 * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
2084 * testsuite/22_locale/ctype/11844.cc: New.
2086 * config/locale/generic/ctype_members.cc (do_is):
2087 Generically, use a bitmasksize of 15 (instead of 10), since
2088 we don't know the numerical encoding of the various categories
2089 in the underlying /usr/include/ctype.h.
2091 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
2093 * src/string-inst.cc: Prune.
2094 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2095 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2097 2003-10-09 Petur Runolfsson <peturr02@ru.is>
2099 * src/io-inst.cc: Don't include iostream.
2100 * include/bits/ios_base.h (ios_base::failure): Use string.
2101 * src/Makefile.am: Add ios_failure.cc.
2102 * src/Makefile.in: Regenerate.
2103 * src/ios.cc: Move ios_base::failure definitions to...
2104 * src/ios_failure.cc: ...here. New.
2106 2003-10-09 Petur Runolfsson <peturr02@ru.is>
2109 * include/bits/fstream.tcc (basic_filebuf::seekoff):
2110 Move code needed for both seekoff and seekpos...
2111 (basic_filebuf::_M_seek): ...here. New function.
2112 (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
2113 * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
2114 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
2116 * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
2118 2003-10-08 Paolo Carlini <pcarlini@unitus.it>
2120 * include/bits/locale_facets.tcc: More minor cosmetic
2121 changes and const-ifications of some variables.
2123 2003-10-07 Paolo Carlini <pcarlini@unitus.it>
2125 * include/bits/locale_facets.tcc: Minor cosmetic changes
2126 and const-ifications of some variables.
2128 * include/bits/locale_facets.tcc
2129 (money_get::do_get(..., string_type&)): Simplify an if-else.
2131 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
2134 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
2135 Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
2136 * config/locale/generic/ctype_members.cc: Same.
2137 * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
2139 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
2141 * include/bits/locale_facets.tcc (__pad<>::_S_pad):
2142 Improve performance-wise: avoid one traits::copy, avoid
2143 the __builtin_alloca, streamline.
2145 2003-10-05 Paolo Carlini <pcarlini@unitus.it>
2147 * include/bits/locale_facets.tcc
2148 (num_put::do_put(..., bool)): Prefer ?: to if-else.
2149 (time_get::_M_extract_name): Qualify min with std::.
2150 (__pad<>::_S_pad): Constify two variables; simplify an
2151 if-else statement factoring out some code.
2153 * include/bits/locale_facets.tcc: Minor cosmetic changes.
2155 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
2157 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
2158 Constify a couple of variables.
2159 (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
2160 ++__beg to *__beg++.
2162 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
2163 Petur Runolfsson <peturr02@ru.is>
2165 * include/ext/stdio_sync_filebuf.h: Don't include the whole
2166 <fstream>, only <streambuf> and <cstdio>.
2168 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
2171 * include/bits/fstream.tcc (imbue): In case a codecvt facet
2172 is not available, set _M_codecvt = 0.
2173 * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
2175 2003-10-02 Harald Boehme <boehme@informatik.hu-berlin.de>
2178 * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
2180 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
2182 * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
2183 * src/locale.cc: Define.
2184 * src/localename.cc: Use it.
2185 * config/locale/generic/time_members.h: Same.
2186 * config/locale/gnu/messages_members.h: Same.
2187 * config/locale/gnu/time_members.h: Same.
2189 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
2192 * include/bits/fstream.tcc (seekoff): Ignore the openmode
2194 * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
2195 seekpos): Remove the openmode argument.
2196 * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
2197 seekpos): Remove redundant placeholder for the openmode argument.
2198 * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
2199 * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
2200 * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
2201 * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
2202 * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
2204 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
2206 * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
2207 (locale::facet::_S_get_c_locale): Same.
2209 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
2211 * config/linker-map.gnu: Export _S_get_c_locale instead of
2214 2003-10-02 Petur Runolfsson <peturr02@ru.is>
2216 * config/locale/generic/c_locale.cc
2217 (category_names, locale::_S_categories): Const qualify.
2218 * config/locale/gnu/c_locale.cc: Same.
2219 * config/locale/generic/time_members.h (__timepunct::__timepunct):
2220 Copy string contents before assigning to _M_name_timepunct,
2221 qualify strcpy and strlen with std::.
2222 * config/locale/gnu/time_members.h: Same.
2223 * config/locale/gnu/messages_members.h (messages::messages):
2224 Copy string contents before assigning to _M_name_messages,
2225 qualify strcpy and strlen with std::.
2226 * config/os/gnu-linux/ctype_noninline.h
2227 (ctype<char>::classic_table()): Don't call locale::classic().
2228 * include/bits/locale_classes.h
2229 (locale::_S_categories): Const qualify.
2230 (locale::_S_once, locale::_S_initialize_once,
2231 locale::facet::_S_once, locale::facet::_S_initialize_once,
2232 locale::facet::_S_get_c_locale): Declare.
2233 (locale::_S_initialize): Don't define.
2234 (locale::facet::_S_c_locale): Make private.
2235 (locale::facet::_S_c_name): Same, const qualify.
2236 (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
2237 parameters, add throw() specifier.
2238 * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
2239 messages::_M_name_messages): Const qualify.
2241 (locale::_S_once, locale::facet::_S_once): Define.
2242 (locale::classic): Move initialization code...
2243 (locale::_S_initialize_once): ...here.
2244 (locale::_S_initialize): Call _S_initialize_once through
2246 (locale::facet::_S_initialize_once): Initialize _S_c_locale.
2247 (locale::facet::_S_get_c_locale): Call _S_initialize_once through
2248 __gthread_once before returning _S_c_locale.
2249 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
2250 Drop unused parameters, add throw() specifier, don't initialize
2251 locale::facet::_S_c_locale and _S_c_name.
2253 * config/locale/generic/messages_members.h:
2254 Replace _S_c_locale with _S_get_c_locale().
2255 * config/locale/gnu/c_locale.cc: Same.
2256 * config/locale/gnu/messages_members.h: Same.
2257 * config/locale/gnu/numeric_members.cc: Same.
2258 * config/locale/gnu/time_members.cc: Same.
2259 * config/os/gnu-linux/ctype_noninline.h: Same.
2260 * include/bits/locale_facets.h: Same.
2261 * include/bits/locale_facets.tcc: Same.
2262 * src/codecvt.cc: Same.
2263 * src/ctype.cc: Same.
2265 2003-10-02 Carlo Wood <carlo@alinoe.com>
2267 * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
2268 Decode symbols that start with _GLOBAL_[ID]_ differently: the
2269 trailing part ends with a terminating zero and is not necessarily an
2271 * src/demangle.cc (): Same.
2272 * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
2274 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
2276 * testsuite/22_locale/locale/cons/12438.cc: Use
2277 __gnu_test::try_named_locale("").
2279 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2281 * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
2282 (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
2284 * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
2285 * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
2287 * config.h.in, configure: Regenerate.
2288 * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
2291 2003-10-01 Nathan Myers <ncm@cantrip.org>
2293 * include/bits/locale_facets.tcc (time_put::put): Avoid
2294 expensive *__s++, in favor of *__s, ++__s.
2296 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
2298 * include/bits/locale_facets.tcc (time_put::put): Minor
2299 tweak to the previous commit.
2301 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
2304 * include/bits/locale_facets.tcc (time_put::put): Deal
2305 with the three issues pointed out by the PR.
2306 * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
2307 * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
2308 * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
2309 * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
2310 * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
2312 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
2314 * include/bits/stl_algo.h: Minor cosmetic reformattings.
2316 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
2318 * include/bits/stl_algo.h (search_n): Tweak, to spare the
2321 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
2323 * testsuite/22_locale/locale/cons/12352.cc: Explicitly
2324 qualify exception name.
2326 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
2329 * include/bits/locale_facets.tcc (locale::combine): Don't
2330 leak memory if _M_replace_facet throws.
2331 * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
2333 * include/bits/locale_classes.h (locale::locale(const locale&,
2334 _Facet*)): Tweak, use consistently _M_remove_reference.
2336 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
2338 PR libstdc++/12352 (cont)
2339 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
2340 Don't leak __cloc; don't leak if any of the _M_init_facet(...)
2342 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
2343 (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
2344 !_M_caches, !_M_names.
2346 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2348 * configure.host: Handle Solaris 2.5 micro releases explicitly.
2349 Remove wildcards from Solaris 2.6, 7-9: there were no
2351 Treat Solaris 10 and up like 7-9.
2353 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
2355 * include/bits/stl_algo.h (search_n): Improve the previous
2356 fix as suggested by Martin.
2358 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
2361 * include/bits/istream.tcc (peek): Set eofbit if sgetc
2363 * testsuite/27_io/basic_istream/peek/char/12296.cc:
2366 2003-09-29 Nathan Myers <ncm@cantrip.org>
2367 Paolo Carlini <pcarlini@unitus.it>
2370 * include/bits/stl_algo.h (search_n):
2371 Use iterator_traits<>::difference_type for __n.
2372 * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
2374 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
2376 * testsuite/22_locale/locale/cons/12352.cc:
2377 Use __attribute__((unused)) for test.
2379 2003-09-26 Ulrich Weigand <uweigand@de.ibm.com>
2381 * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either
2382 "Son" or "So" as abbreviated name for Sunday in de_DE locale.
2383 * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
2385 2003-09-26 Brad Spencer <spencer@infointeractive.com>
2387 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
2388 Explicitly qualify exceptions.
2389 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
2390 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
2391 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2392 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
2394 2003-09-25 Paolo Carlini <pcarlini@unitus.it>
2397 * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
2398 size_t)): Don't leak if memory allocations for _M_facets,
2399 _M_caches, and _M_names fail.
2400 (locale::_Impl::_Impl(const char*, size_t)): Ditto.
2401 (locale::_Impl::_M_replace_categories(const _Impl*,
2403 (locale::_Impl::_M_install_facet(const locale::id*,
2404 const facet*)): Ditto.
2405 * include/bits/locale_classes.h (locale::locale(const locale&,
2406 _Facet*)): Don't leak memory.
2407 * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
2409 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
2410 bool)): Qualify with std:: strcpy, tweak.
2411 * include/bits/locale_classes.h
2412 (locale::_Impl::_M_check_same_name): Qualify strcmp.
2414 2003-09-25 Brad Spencer <spencer@infointeractive.com>
2417 * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
2419 * aclocal.m4: Regenerate.
2420 * config.h.in: Regenerate.
2421 * configure: Regenerate.
2422 * crossconfig.m4: Add in wchar_t bits for solaris crosses.
2423 * config/io/basic_file_stdio.cc: Guard unistd.h.
2424 * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
2425 * include/c_std/std_cwchar.h: Same.
2426 * include/c_std/std_cwctype.h: Same.
2428 2003-09-25 Benjamin Kosnik <bkoz@redhat.com>
2431 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
2432 * config/locale/generic/ctype_members.cc: Same.
2433 * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
2434 * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
2436 * config/os/generic/ctype_inline.h: Update.
2438 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
2440 * src/Makefile.am (version_dep): New variable.
2441 (libstdc___la_DEPENDENCIES): Use it to add dependency on
2442 libstdc++-symbol.ver only when using symbol versioning.
2443 * src/Makefile.in: Regenerate.
2445 2003-09-23 Benjamin Kosnik <bkoz@redhat.com>
2447 * include/bits/locale_facets.tcc: Tweak to avoid warnings.
2448 * testsuite/testsuite_hooks.h: Same.
2449 * testsuite/*/*.cc: Same.
2451 2003-09-22 Petur Runolfsson <peturr02@ru.is>
2453 * include/bits/istream.tcc (basic_istream::read,
2454 basic_istream::readsome, basic_istream::putback,
2455 basic_istream::unget, operator>>(basic_istream, CharT)):
2456 Avoid redundant setstate(failbit) calls when sentry::operator bool()
2459 2003-09-22 Carlo Wood <carlo@alinoe.com>
2462 * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
2463 char const*, int, int)): Remove unused identifier
2464 cv_qualifier for overloaded constructor.
2466 2003-09-18 Benjamin Kosnik <bkoz@redhat.com>
2469 * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
2470 WARN_FLAGS, remove -Wno-format.
2471 * aclocal.m4: Regenerate.
2472 * configure: Regenerate.
2474 2003-09-18 Petur Runolfsson <peturr02@ru.is>
2476 * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
2477 * config/io/basic_file_stdio.h: Same.
2478 * include/std/std_fstream.h (__ctype_type): Delete.
2479 * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
2481 2003-09-17 Benjamin Kosnik <bkoz@redhat.com>
2484 * configure.host (abi_baseline_pair): Error out on solaris2
2485 configurations without a minor version number.
2487 2003-09-13 Phil Edwards <phil@codesourcery.com>
2489 * docs/doxygen/run_doxygen: Clear GENERATE_TAGFILE entirely
2490 if man pages are on.
2491 * docs/doxygen/user.cfg.in: And here.
2493 2003-09-10 Daniel Jacobowitz <drow@mvista.com>
2494 Andreas Jaeger <aj@suse.de>
2497 * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
2498 abi_check if cross compiling.
2499 * aclocal.m4: Regenerated.
2500 * configure: Regenerated.
2502 2003-09-10 Jeffrey D. Oldham <oldham@codesourcery.com>
2504 * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
2505 NULL, return NULL. This reflects a C++ ABI change 2003 Sep 05.
2506 (__cxa_vec_new3): Likewise.
2508 2003-09-10 Petur Runolfsson <peturr02@ru.is>
2510 * include/bits/fstream.tcc (basic_filebuf::seekoff):
2511 Use codecvt::length to handle variable-width stateless encodings
2513 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
2514 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
2516 2003-09-10 Alan Modra <amodra@bigpond.net.au>
2518 * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
2521 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2523 * configure: Regenerate.
2525 2003-09-09 David Edelsohn <edelsohn@gnu.org>
2527 * src/ios.cc (ios_base::Init::Init): Remove unnecessary
2528 qualifier from _S_synced_with_stdio.
2530 2003-09-09 Bernardo Innocenti <bernie@develer.com>
2532 * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
2534 2003-09-04 Petur Runolfsson <peturr02@ru.is>
2537 * include/bits/fstream.tcc
2538 (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
2539 (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
2540 _M_ext_buf_size, _M_ext_next and _M_ext_end.
2541 (basic_filebuf::underflow): Handle variable-width stateless
2542 encodings (codecvt::encoding() == 0), including UTF-8.
2543 * include/std/std_fstream.h (basic_filebuf):
2544 Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
2545 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
2546 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
2547 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
2548 * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
2549 * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
2550 * testsuite/27_io/objects/wchar_t/12.cc: New test.
2551 * testsuite/27_io/objects/wchar_t/13.cc: New test.
2553 2003-09-04 Jonathan Wakely <redi@gcc.gnu.org>
2555 * docs/html/faq/index.html: Note that a namespace alias can't be
2556 used when specialising templates in extension namespace.
2557 * docs/html/faq/index.txt: Regenerate.
2559 2003-09-03 Petur Runolfsson <peturr02@ru.is>
2562 * include/ext/stdio_sync_filebuf.h
2563 (stdio_sync_filebuf::_M_unget_buf): Declare it.
2564 (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
2565 (stdio_sync_filebuf::uflow): Store the returned character in
2567 (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
2568 _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
2569 (stdio_sync_filebuf<char>::xsgetn): Store last read character in
2570 _M_unget_buf, if any, else eof().
2571 (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
2572 _M_unget_buf, if any, else eof().
2573 * testsuite/27_io/objects/char/12048.cc: Rename to...
2574 * testsuite/27_io/objects/char/12048-1.cc: ...this.
2575 * testsuite/27_io/objects/char/12048-2.cc: New test.
2576 * testsuite/27_io/objects/char/12048-3.cc: New test.
2577 * testsuite/27_io/objects/char/12048-4.cc: New test.
2578 * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
2579 * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
2580 * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
2581 * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
2582 * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
2583 * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
2584 * testsuite/ext/stdio_sync_filebuf_char.cc
2585 (test02, test03, test04, test05): New tests.
2586 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
2587 (test02, test03, test04, test05): New tests.
2589 2003-09-03 Petur Runolfsson <peturr02@ru.is>
2591 * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
2592 stringbuf or strstreambuf. Fix typos.
2594 2003-09-02 Phil Edwards <phil@codesourcery.com>
2596 * acinclude.m4 (GLIBCXX_ENABLE_HOSTED): #define _GLIBCXX_HOSTED
2598 * config.h.in: Add _GLIBCXX_HOSTED.
2599 * libsupc++/eh_term_handler.cc: Test it here; initialize
2600 __terminate_handler to std::abort if freestanding.
2601 * aclocal.m4, configure: Regenerated.
2602 * docs/html/configopts.html: Document --disable-hosted-libstdcxx.
2604 2003-08-29 Nathan Myers <ncm@cantrip.org>
2607 * include/bits/locale_facets.tcc (__pad): delete dead code.
2609 2003-08-28 Alan Modra <amodra@bigpond.net.au>
2611 * configure.ac: Test $with_cross_host against $build_alias, not $build.
2612 * configure: Regenerate.
2614 2003-08-27 Petur Runolfsson <peturr02@ru.is>
2616 * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
2617 * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
2619 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
2621 * Makefile.am: Remove trailing whitespace. Remove needless
2622 "foo = @foo@" assignments. Replace direct uses of @foo@ with $(foo).
2623 * include/Makefile.am: Likewise.
2624 * libmath/Makefile.am: Likewise.
2625 * libsupc++/Makefile.am: Likewise.
2626 * po/Makefile.am: Likewise.
2627 * src/Makefile.am: Likewise.
2628 * testsuite/Makefile.am: Likewise.
2630 * Makefile.in, include/Makefile.in, libmath/Makefile.in,
2631 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2632 testsuite/Makefile.in: Regenerated.
2634 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
2636 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Change quoting of
2638 * aclocal.m4, configure: Regenerate.
2640 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
2642 * acinclude.m4: Include no-executables.m4.
2643 * configure.ac: Uncomment GCC_NO_EXECUTABLES.
2644 * aclocal.m4: Regenerated.
2645 * configure: Regenerated.
2647 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
2649 * acinclude.m4: Don't call AC_ISC_POSIX.
2650 * aclocal.m4: Regenerated.
2651 * configure: Regenerated.
2653 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
2655 * acinclude.m4 (GLIBCXX_CONDITIONAL): New macro. Wrap
2656 AM_CONDITIONAL. Replace all calls to AM_CONDITIONAL with this one.
2657 (GLIBCXX_ENABLE_HOSTED): New macro, sets new variable is_hosted,
2658 used elsewhere in this file.
2659 (GLIBCXX_EVALUATE_CONDITIONALS): New macro...
2660 * configure.ac: ...called here to expand all conditionals.
2661 * Makefile.am: Conditionalize SUBDIRS on GLIBCXX_HOSTED.
2662 * include/Makefile.am: Remove redundant gxx_include_dir assignment.
2663 (install-freestanding-headers): New target, a subset of
2664 install-headers. Conditionalize install-data-local on GLIBCXX_HOSTED.
2666 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2667 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2668 src/Makefile.in, testsuite/Makefile.in: Regenerated.
2670 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
2672 * docs/doxygen/run_doxygen: Shell fixes. Remove hardcoded local
2673 pathnames from generated tag file.
2675 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
2677 * Makefile.am: Add comment.
2678 * acinclude.m4 (GLIBCXX_CONFIGURE): Set new glibcxx_SUBDIRS and
2680 * configure.ac: Use them both here, instead of hardcoded lists.
2682 * fragment.am: Add STAMP varaible.
2683 * include/Makefile.am: Cosmetic whitespace cleanup. Use $(LN_S)
2685 (stamp-*): Move file creation rule outside of 'if' branches to
2686 ensure the stamp-* files are actually updated. Use $(STAMP).
2687 * src/Makefile.am: Remove now-nonexistant variable.
2688 * libsupc++/Makefile.am: Likewise. Snap the assignment chain
2690 * po/Makefile.am: Include same fragment as all the others.
2692 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2693 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in: Regenerated.
2695 2003-08-26 Loren J. Rittle <ljrittle@acm.org>
2697 * testsuite/data/cin_unget-1.txt: New.
2698 * testsuite/27_io/objects/char/12048.cc: New.
2700 2003-08-25 Zack Weinberg <zack@codesourcery.com>
2702 * config/os/hpux/os_defines.h: Unconditionally define
2703 _GLIBCXX_GTHREAD_USE_WEAK to 0.
2705 2003-08-19 Geoffrey Keating <geoffk@apple.com>
2707 * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
2708 crosses to Darwin targets.
2709 * configure: Regenerate.
2711 2003-08-19 Petur Runolfsson <peturr02@ru.is>
2713 * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
2715 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
2717 * configure.ac: GCC_NO_EXECUTABLES was supposed to be commented
2718 in the patch from 3 minutes ago. Boy, is my face red.
2719 * configure: At least I remembered to regenerate this.
2721 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
2723 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
2724 and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
2725 things from the top level.
2726 * configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
2727 Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
2728 (currently unused). Strip the fake-VPATH shell fragment from
2729 automake-generated rules, if present.
2730 * linkage.m4: Add comment.
2732 * fragment.am: New file, containing factored-out common settings.
2733 (AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
2734 * Makefile.am: Include fragment.am. Remove common variables.
2735 * include/Makefile.am: Likewise.
2736 * libmath/Makefile.am: Likewise.
2737 * libsupc++/Makefile.am: Likewise.
2738 * po/Makefile.am: Likewise. Print rules during check.
2739 * src/Makefile.am: Likewise.
2740 * testsuite/Makefile.am: Likewise.
2742 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2743 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2744 src/Makefile.in, testsuite/Makefile.in: Regenerate.
2746 2003-08-11 John Levon <levon@movementarian.org>
2748 * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
2749 remaining places for the name change from GLIBCPP_FORCE_NEW
2750 to GLIBCXX_FORCE_NEW
2752 2003-08-11 Benjamin Kosnik <bkoz@redhat.com>
2754 * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
2756 * include/bits/basic_ios.tcc: Same.
2757 * include/bits/istream.tcc: Same.
2758 * include/bits/locale_facets.h: Same.
2759 * include/bits/ostream.tcc: Same.
2760 * include/std/std_istream.h: Same.
2761 * include/std/std_ostream.h: Same.
2762 * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
2764 * include/ext/rope: Remove build warning.
2766 2003-08-11 Andreas Jaeger <aj@suse.de>
2768 * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
2770 * include/Makefile.in: Regenerated.
2772 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
2774 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
2775 when calling AC_PROG_CC.
2776 * aclocal.m4, configure: Regenerate.
2778 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
2780 * acinclude.m4: Properly quote variable which will be expanded
2781 inside makefiles. Use CXX instead of CC to extract compiler info.
2782 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
2783 correct form in PACKAGE.
2784 * aclocal.m4, configure: Regenerate.
2786 2003-08-08 Benjamin Kosnik <bkoz@redhat.com>
2788 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
2789 (check-abi-verbose): Same.
2790 * testsuite/testsuite_performance.h (report_performance): Same.
2792 2003-08-08 Loren J. Rittle <ljrittle@acm.org>
2794 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
2796 2003-08-07 Doug Gregor <dgregor@apple.com>
2798 * include/bits/char_traits.h (char_traits::not_eof): Match operand
2801 2003-08-07 Bernardo Innocenti <bernie@develer.com>
2804 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
2805 Replace variants with new BSET-based version.
2807 2003-08-07 Carlo Wood <carlo@alinoe.com>
2809 * include/bits/demangle.h: Do not use cctype functions that depend
2812 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
2814 * configure.in: Rename...
2815 * configure.ac: ...to this.
2816 * docs/html/17_intro/porting.texi: Update name.
2818 * docs/html/17_intro/porting.html: Regenerate.
2819 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2820 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2821 testsuite/Makefile.in: Regenerate (picks up new dependancy).
2823 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
2825 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
2826 pipe, open the window to let out the fumes, redo the option-handling
2827 logic to properly execute the detection test.
2828 * aclocal.m4, configure: Regenerate.
2830 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
2832 Convert to new autotools.
2833 * acconfig.h: Update with correct names.
2834 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
2835 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
2836 * configure.in: Update. Split hardcoded cross-configury settings
2838 * crossconfig.m4: ...here. New file. Contents untouched.
2839 * acinclude.m4: Reorganize and rewrite as needed. Split large
2841 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
2843 * scripts/testsuite_flags.in: Update.
2845 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
2846 variables (already generated by automake).
2847 * include/Makefile.am: Ditto.
2848 * libmath/Makefile.am: Ditto.
2849 * libsupc++/Makefile.am: Ditto.
2850 * po/Makefile.am: Ditto.
2851 * src/Makefile.am: Ditto.
2853 * aclocal.m4: Regenerate using new versions.
2854 * config.h.in: Ditto.
2856 * Makefile.in: Ditto.
2857 * include/Makefile.in: Ditto.
2858 * libmath/Makefile.in: Ditto.
2859 * libsupc++/Makefile.in: Ditto.
2860 * po/Makefile.in: Ditto.
2861 * src/Makefile.in: Ditto.
2862 * testsuite/Makefile.in: Ditto.
2864 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
2866 * po/libstdc++.pot: Re-extract/regenerate.
2868 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
2870 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
2871 Remove unneeded variable assignments. Leave them for automake.
2872 * testsuite/lib/libstdc++-v3.exp: Rename...
2873 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
2875 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
2876 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
2879 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
2881 * docs/doxygen/guide.html: run_doxygen uses bash.
2882 * docs/doxygen/mainpage.html: We'll be shipping tag files.
2883 * docs/doxygen/run_doxygen: Tweaks and improvements.
2884 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
2885 * docs/html/install.html: Update autoconf/automake requirements.
2886 * docs/html/test.html: Add section describing DejaGNU support.
2887 * docs/html/17_intro/confdeps.dot: New file, generates...
2888 * docs/html/17_intro/confdeps.png: ...this new file.
2889 * docs/html/Makefile: Generated here.
2890 * docs/html/17_intro/configury.html: New file.
2892 2003-07-31 Phil Edwards <pme@gcc.gnu.org>
2894 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
2895 * testsuite/lib/libstdc++-v3.exp: ...to this.
2896 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
2898 2003-07-31 Doug Gregor <dgregor@apple.com>
2900 Add user specialization tests.
2901 * testsuite/23_containers/deque/1.cc: New.
2902 * testsuite/23_containers/list/1.cc: New.
2903 * testsuite/23_containers/map/1.cc: New.
2904 * testsuite/23_containers/multimap/1.cc: New.
2905 * testsuite/23_containers/multiset/1.cc: New.
2906 * testsuite/23_containers/set/1.cc: New.
2907 * testsuite/23_containers/vector/1.cc: New.
2909 2003-07-31 Benjamin Kosnik <bkoz@redhat.com>
2911 Reshuffle 23_containers testsuite.
2912 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
2913 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
2914 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
2915 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
2916 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
2917 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
2918 vector_resize.cc: Split into...
2919 * 23_containers/bitset/cons/1.cc: New.
2920 * 23_containers/bitset/cons/6282.cc: New.
2921 * 23_containers/bitset/count/6124.cc: New.
2922 * 23_containers/bitset/operations/1.cc: New.
2923 * 23_containers/bitset/operations/2.cc: New.
2924 * 23_containers/bitset/test/1.cc: New.
2925 * 23_containers/bitset/to_ulong/1.cc: New.
2926 * 23_containers/deque/cons/1.cc: New.
2927 * 23_containers/deque/cons/2.cc: New.
2928 * 23_containers/deque/operators/1.cc: New.
2929 * 23_containers/list/capacity/1.cc: New.
2930 * 23_containers/list/cons/1.cc: New.
2931 * 23_containers/list/cons/2.cc: New.
2932 * 23_containers/list/cons/3.cc: New.
2933 * 23_containers/list/cons/4.cc: New.
2934 * 23_containers/list/cons/5.cc: New.
2935 * 23_containers/list/cons/6.cc: New.
2936 * 23_containers/list/cons/7.cc: New.
2937 * 23_containers/list/cons/8.cc: New.
2938 * 23_containers/list/cons/9.cc: New.
2939 * 23_containers/list/modifiers/1.cc: New.
2940 * 23_containers/list/modifiers/2.cc: New.
2941 * 23_containers/list/modifiers/3.cc: New.
2942 * 23_containers/list/operators/1.cc: New.
2943 * 23_containers/list/operators/2.cc: New.
2944 * 23_containers/list/operators/3.cc: New.
2945 * 23_containers/list/operators/4.cc: New.
2946 * 23_containers/map/insert/1.cc: New.
2947 * 23_containers/map/operators/1.cc: New.
2948 * 23_containers/map/operators/1_neg.cc: New.
2949 * 23_containers/multiset/insert/1.cc: New.
2950 * 23_containers/priority_queue/members/7161.cc: New.
2951 * 23_containers/queue/members/7157.cc: New.
2952 * 23_containers/set/operators/1_neg.cc: New.
2953 * 23_containers/stack/members/7158.cc: New.
2954 * 23_containers/vector/bool/1.cc: New.
2955 * 23_containers/vector/bool/6886.cc: New.
2956 * 23_containers/vector/capacity/1.cc: New.
2957 * 23_containers/vector/capacity/2.cc: New.
2958 * 23_containers/vector/capacity/8230.cc: New.
2959 * 23_containers/vector/cons/1.cc: New.
2960 * 23_containers/vector/cons/2.cc: New.
2961 * 23_containers/vector/cons/3.cc: New.
2962 * 23_containers/vector/cons/4.cc: New.
2963 * 23_containers/vector/cons/6513.cc: New.
2964 * 23_containers/vector/element_access/1.cc: New.
2965 * 23_containers/vector/modifiers/1.cc: New.
2966 * 23_containers/vector/modifiers/2.cc: New.
2967 * 23_containers/vector/resize/1.cc: New.
2969 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2971 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
2973 * testsuite/thread/pthread2.cc: Likewise.
2974 * testsuite/thread/pthread3.cc: Likewise.
2975 * testsuite/thread/pthread4.cc: Likewise.
2976 * testsuite/thread/pthread5.cc: Likewise.
2977 * testsuite/thread/pthread6.cc: Likewise.
2978 * testsuite/thread/pthread7-rope.cc: Likewise.
2980 2003-07-30 Phil Edwards <pme@gcc.gnu.org>
2982 * include/bits/c++config: Partial reversion (comment placement) of
2985 2003-07-30 Benjamin Kosnik <bkoz@redhat.com>
2987 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
2988 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
2989 (_GLIBCXX_AT_AT): Remove.
2990 (__USE_MALLOC): Remove.
2991 * include/std/std_fstream.h: Modify.
2992 * include/bits/basic_ios.h: Same.
2993 * include/bits/valarray_array.h: Same.
2994 * include/c_std/std_cmath.h: Same.
2995 * include/c_std/cmath.tcc: Same.
2996 * include/std/std_vector.h: Same.
2997 * include/std/std_string.h: Same.
2998 * include/std/std_stack.h: Same.
2999 * include/std/std_queue.h: Same.
3000 * include/std/std_list.h: Same.
3001 * include/std/std_deque.h: Same.
3002 * include/std/std_streambuf.h: Same.
3003 * include/std/std_sstream.h: Same.
3004 * include/std/std_ostream.h: Same.
3005 * include/std/std_istream.h: Same.
3006 * include/bits/valarray_array.tcc: Same, format.
3008 * include/c/std_cctype.h: Fix include guards.
3009 * include/c/std_cerrno.h: Same.
3010 * include/c/std_cfloat.h: Same.
3011 * include/c/std_climits.h: Same.
3012 * include/c/std_clocale.h: Same.
3013 * include/c/std_cmath.h: Same.
3014 * include/c/std_csetjmp.h: Same.
3015 * include/c/std_csignal.h: Same.
3016 * include/c/std_cstdarg.h: Same.
3017 * include/c/std_cstddef.h: Same.
3018 * include/c/std_cstdio.h: Same.
3019 * include/c/std_cstdlib.h: Same.
3020 * include/c/std_cstring.h: Same.
3021 * include/c/std_ctime.h: Same.
3022 * include/c/std_cwchar.h: Same.
3023 * include/c/std_cwctype.h: Same.
3024 * include/c_std/cmath.tcc: Same.
3025 * include/c_std/std_cmath.h: Same.
3027 2003-07-30 Gawain Bolton <gp.bolton@computer.org>
3030 * include/bits/stl_tree.h: Replace C-style casts with C++-style
3031 casts. Changes to avoid casting away constness. Eliminate
3032 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
3033 initialization lists. Move out implementation of __black_count()
3035 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
3036 Rename_Rb_tree_base_iterator::_M_increment() to
3037 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
3039 * config/linker-map.gnu: Add and change symbols here.
3041 2003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
3043 * docs/html/22_locale/howto.html: Use locale::classic() instead
3046 2003-07-28 Benjamin Kosnik <bkoz@redhat.com>
3048 * testsuite/testsuite_hooks.h: Remove list include.
3049 (func_callback): Define as unique type, not std::list.
3050 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
3051 * testsuite/libstdc++-v3.dg/dg.exp: Same.
3052 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
3053 * testsuite/23_containers/bitset_ctor.cc:
3054 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
3055 * testsuite/18_support/numeric_limits.cc: Same.
3056 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
3057 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
3058 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
3059 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
3060 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
3061 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
3062 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
3063 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
3064 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
3065 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
3066 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
3067 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
3068 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
3069 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
3070 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
3071 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
3072 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
3073 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
3074 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
3075 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
3076 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
3077 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
3078 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
3079 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
3080 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
3081 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
3082 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
3083 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
3084 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
3085 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
3086 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
3087 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
3088 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
3089 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
3090 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
3091 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
3092 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
3093 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
3094 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
3095 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
3096 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
3097 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
3098 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
3099 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
3100 * testsuite/23_containers/bitset_ctor.cc: Same.
3101 * testsuite/23_containers/bitset_shift.cc: Same.
3102 * testsuite/23_containers/vector_ctor.cc: Same.
3103 * testsuite/23_containers/vector_element_access.cc: Same.
3104 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
3105 * testsuite/24_iterators/iterator.cc: Same.
3106 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
3107 * testsuite/25_algorithms/lower_bound.cc: Same.
3108 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
3109 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
3110 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
3111 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
3112 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
3113 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
3114 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
3115 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
3116 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
3117 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
3118 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
3121 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
3123 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
3124 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
3125 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
3126 GLIBCPP to GLIBCXX (and explain as needed).
3128 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
3132 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
3134 * testsuite/22_locale/messages/members/char/1.cc,
3135 testsuite/22_locale/messages/members/char/2.cc,
3136 testsuite/22_locale/messages/members/char/3.cc,
3137 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
3138 the origin of LOCALEDIR.
3139 * testsuite/lib/libstdc++-v3.exp: New file.
3141 2003-07-25 Benjamin Kosnik <bkoz@redhat.com>
3143 * include/bits/char_traits.h: Update copyright, tweak.
3144 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
3147 2003-07-24 Matt Austern <austern@apple.com>
3149 * /include/bits/char_traits.h (class char_traits): Put all the
3150 real work into the new class template __gnu_cxx::char_traits.
3151 Gave generic definitions for member functions. Types are taken
3152 from the new class template __gnu_cxx::_Char_types.
3153 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
3154 file. Test of std::char_traits<short>, which serves as a test of
3155 the char_traits primary template.
3157 2003-07-24 Benjamin Kosnik <bkoz@redhat.com>
3159 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
3161 2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
3163 * testsuite/23_containers/map_operators.cc: Conform to
3164 container requirement as value must be Assignable.
3166 2003-07-23 Alexandre Oliva <aoliva@redhat.com>
3168 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
3169 tests not only generation of pch files, but also their use.
3170 * aclocal.m4, configure: Rebuilt.
3172 2003-07-23 Steve Ellcey <sje@cup.hp.com>
3174 * config/cpu/hppa/atomicity.h: Change
3175 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
3176 to match misc-inst.cc
3178 2003-07-23 Steve Ellcey <sje@cup.hp.com>
3180 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
3181 * include/c_std/std_cctype.h: Ditto.
3182 * include/c_std/std_cerrno.h: Ditto.
3183 * include/c_std/std_cfloat.h: Ditto.
3184 * include/c_std/std_climits.h: Ditto.
3185 * include/c_std/std_clocale.h: Ditto.
3186 * include/c_std/std_cmath.h: Ditto.
3187 * include/c_std/std_csetjmp.h: Ditto.
3188 * include/c_std/std_csignal.h: Ditto.
3189 * include/c_std/std_cstdarg.h: Ditto.
3190 * include/c_std/std_cstddef.h: Ditto.
3191 * include/c_std/std_cstdio.h: Ditto.
3192 * include/c_std/std_cstdlib.h: Ditto.
3193 * include/c_std/std_cstring.h: Ditto.
3194 * include/c_std/std_ctime.h: Ditto.
3195 * include/c_std/std_cwchar.h: Ditto.
3196 * include/c_std/std_cwctype.h: Ditto.
3197 * include/std/std_algorithm.h: Ditto.
3198 * include/std/std_bitset.h: Ditto.
3199 * include/std/std_complex.h: Ditto.
3200 * include/std/std_deque.h: Ditto.
3201 * include/std/std_fstream.h: Ditto.
3202 * include/std/std_functional.h: Ditto.
3203 * include/std/std_iomanip.h: Ditto.
3204 * include/std/std_ios.h: Ditto.
3205 * include/std/std_iosfwd.h: Ditto.
3206 * include/std/std_iostream.h: Ditto.
3207 * include/std/std_istream.h: Ditto.
3208 * include/std/std_iterator.h: Ditto.
3209 * include/std/std_limits.h: Ditto.
3210 * include/std/std_list.h: Ditto.
3211 * include/std/std_locale.h: Ditto.
3212 * include/std/std_map.h: Ditto.
3213 * include/std/std_memory.h: Ditto.
3214 * include/std/std_numeric.h: Ditto.
3215 * include/std/std_ostream.h: Ditto.
3216 * include/std/std_queue.h: Ditto.
3217 * include/std/std_set.h: Ditto.
3218 * include/std/std_sstream.h: Ditto.
3219 * include/std/std_stack.h: Ditto.
3220 * include/std/std_stdexcept.h: Ditto.
3221 * include/std/std_streambuf.h: Ditto.
3222 * include/std/std_string.h: Ditto.
3223 * include/std/std_utility.h: Ditto.
3224 * include/std/std_valarray.h: Ditto.
3225 * include/std/std_vector.h: Ditto.
3227 2003-07-22 Doug Gregor <dgregor@apple.com>
3229 * include/bits/basic_string.h (basic_string::insert): Deprecate
3232 2003-07-21 Benjamin Kosnik <bkoz@redhat.com>
3234 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
3236 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
3237 (test03): Include typeinfo for bad_cast.
3238 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
3239 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3240 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
3242 2003-07-21 Doug Gregor <dgregor@apple.com>
3244 * include/bits/boost_concept_check.h:
3245 (_EqualityComparableConcept::__constraints): Remove != from the
3246 list of constraints; it is not listed in Table 28 of the C++98
3249 2003-07-18 Andreas Jaeger <aj@suse.de>
3251 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
3252 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
3253 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
3254 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
3256 2003-07-17 Benjamin Kosnik <bkoz@redhat.com>
3258 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
3259 * config/locale/generic/messages_members.h: Tweaks.
3260 * config/locale/generic/monetary_members.cc
3261 (moneypunct::_M_initialize_moneypunct): Use cache.
3262 (moneypunct::~moneypunct): Delete cache.
3263 * config/locale/generic/time_members.cc:
3264 (__timepunct::_M_initialize_timepunct): Use cache.
3265 * config/locale/generic/time_members.h:
3266 (__timepunct::~__timepunct): Delete cache.
3267 (__timepunct::__timepunct): Set cache.
3268 * config/locale/gnu/messages_members.h: Tweaks.
3269 * config/locale/gnu/monetary_members.cc:
3270 (moneypunct::_M_initialize_moneypunct): Use cache.
3271 (moneypunct::~moneypunct): Delete cache.
3272 * config/locale/gnu/time_members.cc:
3273 (__timepunct::_M_initialize_timepunct): Use cache.
3274 * config/locale/gnu/time_members.h:
3275 (__timepunct::~__timepunct): Delete cache.
3276 (__timepunct::__timepunct): Set cache.
3277 * include/bits/locale_facets.h (__timepunct_cache): New.
3278 (__moneypunct_cache): New.
3279 * include/bits/locale_facets.tcc: Tweak.
3280 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
3281 * src/locale-inst.cc: Instantiate caches.
3282 * src/globals.cc: Add "C" caches.
3283 * src/localename.cc: Use external "C" caches.
3285 2003-07-17 Phil Edwards <pme@gcc.gnu.org>
3287 * docs/doxygen/guide.html: Fix typo.
3289 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
3291 * include/ext/pod_char_traits.h: Add state template argument.
3293 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
3295 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
3296 (num_get::_M_convert_int): To _M_insert_int.
3297 (num_get::_M_convert_float): To _M_insert_float.
3298 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
3299 Use caches for ctype, num_get.
3300 (num_get::_M_extract_int): Same.
3301 (num_get::get(bool)): Same.
3302 (__verify_grouping): Use size_t.
3303 * src/locale-inst.cc: Update.
3304 * src/locale.cc: Adjust _S_atoms_in.
3306 2003-07-16 Phil Edwards <pme@gcc.gnu.org>
3308 * docs/doxygen/mainpage.html: Move building/writing instructions...
3309 * docs/doxygen/guide.html: ...to here. New file.
3311 2003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
3313 * docs/html/ext/howto.html: Update URL for SGI STL docs.
3314 * docs/html/faq/index.html: Same.
3315 * docs/html/faq/index.txt: Regenerate.
3317 2003-07-16 Paolo Carlini <pcarlini@unitus.it>
3320 * include/bits/locale_facets.tcc (money_get::do_get):
3321 Strip only _leading_ zeros.
3322 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
3323 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
3325 2003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3327 * include/ext/hash_map (class hash_multimap): Remove extra
3328 semicolons from __glibcxx_class_requires3 entries.
3329 * include/ext/hash_set (class hash_set): Ditto.
3330 (class hash_multiset): Ditto.
3332 2003-07-15 Petur Runolfsson <peturr02@ru.is>
3334 * include/bits/char_traits.h (char_traits<wchar_t>::move):
3335 Change last parameter from int_type to size_t.
3337 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
3339 * include/bits/stl_algo.h (includes, set_union, set_intersection,
3340 set_difference, set_symmetric_difference, max_element, min_element,
3341 next_permutation, prev_permutation, find_first_of, find_end):
3343 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
3344 restrictions in docs.
3345 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
3347 * docs/doxygen/doxygroups.cc (setoperations): New group.
3349 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
3351 * include/bits/basic_string.h: Document public functions.
3352 * docs/doxygen/TODO: Update c21 todo.
3354 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
3356 * include/bits/stl_list.h: Document more functions.
3357 * docs/doxygen/TODO: Update c23 todo.
3359 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
3361 * config/locale/gnu/c_locale.h (__convert_from_v): One more
3364 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
3366 * include/bits/stl_tempbuf.h: Qualify free with std::.
3367 * src/locale.cc: Include <cstdlib>, qualify getenv.
3369 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
3371 * config/locale/gnu/c_locale.h (__convert_from_v): Include
3372 <cstdio>. Qualify names.
3373 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
3375 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
3376 Nathan C. Myers <ncm-nospam@cantrip.org>
3379 * include/std/std_fstream.h (xsputn): Declare only.
3380 * include/bits/fstream.tcc (xsputn): Define, optimize for the
3381 always_noconv() case: when __n is sufficiently large flush
3382 the buffer and issue a direct write, if possible combining the
3383 two with writev in __basic_file<>::xsputn_2.
3384 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
3386 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
3388 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
3389 the availability of writev in <sys/uio.h>.
3390 * configure.in: Call here.
3391 * acconfig.h: Add undef for the corresponding symbol.
3392 * aclocal.m4: Regenerate.
3393 * configure: Regenerate.
3394 * config.h.in: Regenerate.
3395 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
3397 * include/std/std_fstream.h (sync): Constify a variable.
3399 2003-07-14 Benjamin Kosnik <bkoz@redhat.com>
3401 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
3402 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3404 2003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
3406 * config/locale/gnu/c_locale.h (__convert_from_v): Include
3407 <cstring> and <cstdlib>. Qualify names.
3409 2003-07-13 Mark Mitchell <mark@codesourcery.com>
3411 * config/locale/generic/c_locale.h: Include <cstdlib> and
3413 * include/bits/boost_concept_check.h: Add this-> to unqualified
3415 * include/bits/deque.tcc: Likewise.
3416 * include/bits/locale_facets.h : Likewise.
3417 * include/bits/ostream.tcc: Likewise.
3418 * include/bits/stl_algo.h: Likewise.
3419 * include/bits/stl_bvector.h: Likewise.
3420 * include/bits/stl_deque.h: Likewise.
3421 * include/bits/stl_list.h: Likewise.
3422 * include/bits/stl_tree.h: Likewise.
3423 * include/bits/stl_vector.h: Likewise.
3424 * include/bits/vector.tcc: Likewise.
3425 * include/ext/rope: Likewise.
3426 * include/ext/ropeimpl.h: Likewise.
3427 * include/ext/stdio_filebuf.h: Likewise.
3429 2003-07-11 Jerry Quinn <jlquinn@optonline.net>
3431 * include/bits/basic_ios.h (copyfmt): Document.
3432 * include/bits/ios_base.h (event, event_callback, register_callback,
3433 xalloc, iword, pword): Document.
3434 (imbue, ~ios_base): Update docs on callbacks.
3436 2003-07-11 Phil Edwards <pme@gcc.gnu.org>
3438 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
3439 warning messages if the environment cannot support symbol versioning.
3440 (port_specific_symbol_file): It's plural, add an 's' on the end.
3441 * configure.host: Likewise.
3442 * src/Makefile.am: Likewise.
3443 * config/linker-map.gnu: Remove one semicolon, heh.
3444 * scripts/extract_symvers: Don't assume useful 'export' syntax.
3445 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
3446 * aclocal.m4, configure, src/Makefile.in: Regenerated.
3448 2003-07-09 Benjamin Kosnik <bkoz@redhat.com>
3450 * include/bits/locale_facets.tcc: Use function object for
3451 __use_cache instead of template function. Partially specialize for
3453 * include/bits/locale_classes.h: Update friend declaration for
3455 (_M_install_cache): No throw exception specs.
3456 * src/locale.cc: Remove __use_cache specializations.
3457 * include/ext/pod_char_traits.h (length): Tweak.
3458 * include/bits/locale_facets.h (__numpunct_cache): Remove
3460 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
3462 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
3463 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
3464 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
3465 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
3466 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
3467 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
3469 2003-07-09 Jerry Quinn <jlquinn@optonline.net>
3471 * src/ios.cc (_M_grow_words): Fix spelling.
3473 2003-07-09 Gawain Bolton <gp.bolton@computer.org>
3475 * include/bits/stl_tree.h: Move larger member functions in
3476 _Rb_tree_base_iterator and _Rb_tree_node to...
3477 * src/stl_tree.cc: Here.
3478 * src/Makefile.in: Add stl_tree.cc.
3479 * src/Makefile.in: Regenerated.
3480 * config/linker-map.gnu: Add symbols here.
3482 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
3484 * testsuite/ext/pod_char_traits.cc: New.
3485 * include/ext/pod_char_traits.h: New.
3486 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
3487 * include/Makefile.in: Regenerate.
3488 * docs/html/21_strings/howto.html: Update.
3490 2003-07-08 Gawain Bolton <gp.bolton@computer.org>
3492 * testsuite/performance/list_create_fill_sort.cc: New.
3494 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
3496 * config/locale/generic/numeric_members.cc: Correct type info.
3497 * config/locale/gnu/numeric_members.cc: Same.
3498 * include/bits/locale_facets.h: Same.
3500 * include/bits/char_traits.h: Correct spacing.
3502 * src/locale.cc: Wrap to 80 col.
3504 2003-07-07 Paolo Carlini <pcarlini@unitus.it>
3506 * include/std/std_complex.h: Partially revert last
3507 changes: cmath functions must not be qualified.
3509 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
3511 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
3512 2.11 with globbing backport fix.
3513 * aclocal.m4, configure: Regenerated.
3515 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
3517 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
3518 if output is at all possible (!_M_reading), cannot be active.
3520 * include/std/std_fstream.h: Tweak comments to doxygen style.
3522 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
3524 * include/bits/locale_classes.h: Fully qualify standard
3525 functions with std::, thus avoiding Koenig lookup.
3526 * include/bits/locale_facets.tcc: Likewise.
3527 * src/locale.cc: Likewise.
3528 * src/localename.cc: Likewise.
3530 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
3532 * include/bits/allocator_traits.h: Fix doxygen markup.
3533 * include/ext/mt_allocator.h: Likewise.
3535 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
3537 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
3539 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
3541 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
3542 requirement. Add port_specific_symbol_file variable.
3543 * configure.host: Add docs for port_specific_symbol_file.
3544 Clean up try_cpu block for x86.
3545 * config/linker-map.gnu: No more "last symbol can't have a
3546 semicolon" kaka. Add hook for port-specific symbols.
3547 * src/Makefile.am: Remove trailing whitespace.
3548 (libstdc++-symbol.ver): Detect the presence of port-specific
3549 symbols, and add them accordingly.
3551 * docs/html/17_intro/porting.texi: Bring up to date.
3553 * src/Makefile.in, aclocal.m4, configure,
3554 docs/html/17_intro/porting.html: Regenerated.
3556 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
3558 * scripts/create_testsuite_files: New file.
3559 * testsuite/Makefile.am (all-local, check-performance): Use it.
3560 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
3561 * testsuite/Makefile.in: Regenerated.
3563 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
3565 * testsuite/performance/fstream_seek_write.cc: Likewise.
3566 * testsuite/performance/ofstream_insert_float.cc: Likewise.
3567 * testsuite/performance/ofstream_insert_int.cc: Likewise.
3568 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
3570 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
3572 * include/bits/stl_list.h: Performance and memory usage
3573 improvements. In particular, the behaviour of the constructor and
3574 destructor as the list header node is no longer dynamically
3575 allocated/de-allocated.
3576 * include/bits/list.tcc: Likewise.
3578 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
3580 * include/std/std_complex.h: Fully qualify standard
3581 functions with std::, thus avoiding Koenig lookup.
3582 * include/std/std_memory.h: Likewise.
3583 * include/std/std_valarray.h: Likewise.
3585 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
3587 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
3588 variable for grandparent and use const
3590 2003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
3592 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
3593 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
3594 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
3595 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
3596 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
3597 * testsuite/27_io/objects/char/7.cc: Ditto
3598 * testsuite/27_io/objects/char/9661-1.cc: Ditto
3600 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
3602 * include/std/std_bitset.h: Fully qualify standard
3603 functions with std::, thus avoiding Koenig lookup.
3605 * include/std/std_fstream.h: Change comment to doxygen style.
3607 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
3609 * include/std/std_limits.h: More CPP->CXX changes.
3610 * scripts/check_survey.in: Likewise.
3612 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3614 Move from CPP to CXX.
3615 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
3616 * testsuite/Makefile.am: Same.
3617 * testsuite/Makefile.in: Regenerate.
3618 * po/Makefile.am: Same.
3619 * po/Makefile.in: Regenerate.
3620 * libsupc++/Makefile.am: Same.
3621 * libsupc++/Makefile.in: Regenerate.
3622 * libmath/Makefile.am: Same.
3623 * libmath/Makefile.in: Regenerate.
3624 * include/Makefile.am: Same.
3625 * include/Makefile.in: Regenerate.
3626 * src/Makefile.am: Same.
3627 * src/Makefile.in: Regenerate.
3629 * configure.host: Same.
3630 * configure.in: Same.
3631 * configure: Regenerate.
3632 * acinclude.m4: Same.
3634 * src: Change all files in this directory.
3636 * include: Same, standardize include guards.
3640 2003-07-04 Zack Weinberg <zack@codesourcery.com>
3642 * testsuite/22_locale/collate/compare/wchar_t/2.cc
3643 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
3644 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
3645 * testsuite/22_locale/collate/hash/wchar_t/2.cc
3646 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
3647 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
3648 * testsuite/22_locale/collate/transform/wchar_t/2.cc
3649 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
3650 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3651 XFAIL on all targets.
3653 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3655 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
3656 * aclocal.m4: Regenerate.
3657 * configure: Regenerate.
3659 2003-07-04 Jerry Quinn <jlquinn@optonline.net>
3661 * include/bits/locale_facets.tcc (__int_to_char): Move common case
3664 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3665 Petur Runolfsson <peturr02@ru.is>
3667 * config/io/basic_file_stdio.cc: Revert.
3669 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3671 * include/bits/deque.tcc: Fully qualify standard
3672 functions with std::, thus avoiding Koenig lookup.
3673 * include/bits/gslice_array.h: Likewise.
3674 * include/bits/indirect_array.h: Likewise.
3675 * include/bits/list.tcc: Likewise.
3676 * include/bits/mask_array.h: Likewise.
3677 * include/bits/slice_array.h: Likewise.
3679 2003-07-04 Gawain Bolton <gbolton@free.fr>
3681 * include/bits/stl_tree.h: Performance and memory usage
3684 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
3686 * Makefile.am: Replace PWD with PWD_COMMAND.
3687 * Makefile.in: Regenerated.
3688 * docs/html/Makefile: Likewise.
3690 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3692 * include/bits/valarray_array.h: Fully qualify standard
3693 functions with std::, thus avoiding Koenig lookup.
3694 * include/bits/vector.tcc: Likewise.
3696 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3698 * include/Makefile.am: Update target_ to host_.
3699 * include/Makefile.in: Regenerate.
3700 * src/Makefile.am: Same.
3701 * src/Makefile.in: Regenerate.
3703 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
3705 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3707 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
3708 --enable-libstdcxx-debug-flags.
3709 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
3710 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
3711 * aclocal.m4: Regenerate.
3713 * docs/html/configopts.html: Update.
3715 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3717 Revert the fix for libstdc++/11378.
3719 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3722 * include/std/std_fstream.h (xsputn): In the unbuffered case,
3723 provided always_noconv(), issue directly _M_file.xsputn.
3724 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
3726 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3728 * include/bits/stl_list.h: Fully qualify standard
3729 functions with std::, thus avoiding Koenig lookup.
3730 * include/bits/stl_queue.h: Likewise.
3731 * include/bits/stl_raw_storage_iter.h: Likewise.
3732 * include/bits/stl_tempbuf.h: Likewise.
3733 * include/bits/stl_tree.h: Likewise.
3734 * include/bits/stl_uninitialized.h: Likewise.
3735 * include/bits/stl_vector.h: Likewise.
3736 * include/ext/rope: Change includes order.
3738 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3740 * configure.host (fpos_include_dir): Fix.
3742 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3744 * include/bits/stl_heap.h: Fully qualify standard
3745 functions with std::, thus avoiding Koenig lookup.
3746 * include/bits/stl_iterator_base_funcs.h: Likewise.
3748 * include/bits/stl_algo.h: Qualify __iterator_category too.
3749 * include/bits/stl_algobase.h: Likewise.
3750 * include/bits/stl_bvector.h: Likewise.
3752 * include/bits/stl_algo.h: Don't qualify the pair type.
3754 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
3756 * include/Makefile.am (target_headers): Add fpos.h
3757 (bits_headers): Remove.
3758 * include/Makefile.in: Regenerate.
3759 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
3760 * configure: Regenerate.
3761 * configure.host: Add fpos_include_dir.
3762 * config/os/gnu-linux/fpos.h: New.
3763 * config/os/generic/fpos.h: Add.
3764 * include/bits/fpos.h: Remove.
3766 * config/io/c_io_stdio.h: Remove fpos_t typedef.
3768 * include/bits/fstream.tcc: Tweaks.
3769 * include/std/std_fstream.h: Same.
3771 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
3772 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
3773 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
3774 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
3775 * testsuite/27_io/fpos/1.cc: New.
3777 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
3778 Petur Runolfsson <peturr02@ru.is>
3780 * include/std/std_streambuf.h: Remove _M_pos.
3781 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
3782 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
3783 use fread/fwrite instead of read/write.
3784 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
3785 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
3786 before reading again.
3787 * testsuite/27_io/objects/char/6.cc: Tweak.
3789 2003-07-03 David Edelsohn <edelsohn@gnu.org>
3791 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
3792 _GLIBCPP_USE_WCHAR_T.
3794 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
3796 * include/bits/basic_string.tcc (_M_replace_aux): Constify
3799 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
3801 * include/bits/stl_bvector.h: Fully qualify standard
3802 functions with std::, thus avoiding Koenig lookup.
3803 * include/bits/stl_construct.h: Likewise.
3804 * include/bits/stl_deque.h: Likewise.
3806 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
3808 * testsuite/22_locale/num_put/put/char/7.cc: Include
3809 <testsuite_hooks.h>, tweak.
3810 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
3812 2003-07-01 Phil Edwards <pme@gcc.gnu.org>
3814 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
3815 check* targets, but not libs/programs).
3816 * testsuite/Makefile.in: Regenerate.
3818 2003-07-01 Roger Sayle <roger@eyesopen.com>
3820 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
3821 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
3822 * aclocal.m4: Regenerate.
3823 * configure: Regenerate.
3825 2003-07-01 Benjamin Kosnik <bkoz@redhat.com>
3827 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
3828 * aclocal.m4: Regenerated.
3829 * configure: Regenerated.
3831 2003-07-01 Paolo Carlini <pcarlini@unitus.it>
3834 * include/bits/fstream.tcc (underflow): For encoding() == 0
3835 don't read more than __buflen chars.
3836 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
3837 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
3838 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
3839 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
3841 2003-07-01 Jerry Quinn <jlquinn@optonline.net>
3843 * 22_locale/num_put/put/char/7.cc: New.
3844 * 22_locale/num_put/put/wchar_t/7.cc: New.
3846 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
3848 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
3849 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
3851 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
3853 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
3854 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
3855 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
3856 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
3857 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
3858 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
3859 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
3860 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
3861 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
3862 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
3863 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
3864 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
3865 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
3866 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
3867 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
3868 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
3869 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
3870 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
3871 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
3872 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
3873 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
3874 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
3875 * data/seekoff-1.tst: Remove.
3876 * data/seekoff-1io.tst: New.
3877 * data/seekoff-1out.tst: New.
3878 * data/seekoff-2.tst: Remove.
3879 * data/seekoff-2io.tst: New.
3880 * data/seekoff-2out.tst: New.
3882 * data/seekpos-1.tst: Remove.
3883 * data/seekpos-1io.tst: New.
3884 * data/seekpos-1out.tst: New.
3885 * data/seekpos-2.tst: Remove.
3886 * data/seekpos-2io.tst: New.
3887 * data/seekpos-2out.tst: New.
3888 * data/seekpos.txt: New.
3890 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
3892 * src/locale.cc (__use_cache<numpunct>): Move from here ...
3893 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
3896 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
3898 * include/bits/stl_algobase.h: Fully qualify standard
3899 functions with std::, thus avoiding Koenig lookup.
3901 2003-06-30 Doug Gregor <dgregor@apple.com>
3903 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
3904 subscripting empty string.
3906 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
3908 * testsuite/Makefile.am (check-am): Do not override.
3909 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
3910 * testsuite/Makefile.in: Regenerate.
3912 2003-06-30 Doug Gregor <dgregor@apple.com>
3914 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
3915 Don't initialize an insert_iterator with a singular iterator.
3917 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
3919 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
3920 * aclocal.m4: Regenerate.
3921 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
3922 GLIBCPP_ENABLE_PCH, default to yes.
3923 * configure: Regenerate.
3924 * docs/html/configopts.html: Add --enable-pch.
3926 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
3928 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
3929 (libstdc++-v3-init): Also set LD_RUN_PATH.
3931 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
3933 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
3934 from here to filebuf and stringbuf.
3935 (~basic_streambuf()): Don't set _M_mode.
3936 (basic_streambuf()): Don't set _M_mode.
3937 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
3938 (~basic_filebuf()): Clean up.
3939 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
3940 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
3941 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
3942 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
3943 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
3944 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
3945 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
3947 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
3949 * include/std/std_fstream.h (_M_underflow): Remove.
3950 (uflow): Remove, inherited from streambuf.
3951 (underflow): Only declare.
3952 * include/bits/fstream.tcc (_M_underflow): Rename to
3953 underflow, to which is equivalent for __bump == false,
3955 * include/std/std_sstream.h (_M_underflow): Remove.
3956 (uflow): Remove, inherited from streambuf.
3957 (underflow): Only declare.
3958 * include/bits/sstream.tcc (_M_underflow): Rename to
3959 underflow, to which is equivalent for __bump == false,
3962 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
3964 * include/bits/stl_algo.h: Fully qualify standard functions
3965 with std::, thus avoiding Koenig lookup.
3967 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
3969 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
3970 Improve type correctness-wise.
3971 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
3973 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
3975 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
3978 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
3980 * include/std/std_streambuf.h (uflow): According to
3981 27.5.2.4.3,p16, don't check gptr() < egptr().
3983 2003-06-28 Paolo Carlini <pcarlini@unitus.it>
3986 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
3987 (seekpos): Likewise.
3988 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
3990 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
3993 2003-06-27 Benjamin Kosnik <bkoz@redhat.com>
3995 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
3996 output name to libstdc++-v3-performance.sum.
3997 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
3998 * testsuite/Makefile.in: Regenerate.
4000 2003-06-27 Matthias Klose <doko@debian.org>
4002 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
4003 output of abi-check in libstdc++-v3-abi.sum.
4004 * testsuite/Makefile.in: Regenerate.
4006 2003-06-27 Krister Walfridsson <cato@df.lth.se>
4008 * config/os/bsd/netbsd/ctype_noninline.h
4009 (_C_ctype_): Declare.
4010 (ctype<char>::classic_table): Return _C_ctype_ + 1.
4011 (ctype<char>::ctype): Use classic_table.
4013 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
4014 Nathan C. Myers <ncm-nospam@cantrip.org>
4017 * include/bits/fstream.tcc (_M_underflow): Properly estimate
4018 the worst-case number of external bytes for a given get area.
4019 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
4021 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
4022 Petur Runolfsson <peturr02@ru.is>
4025 * include/bits/fstream.tcc (overflow): Properly estimate the
4026 worst-case number of external bytes for a given put area
4027 (by using codecvt::max_length()).
4028 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
4029 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
4030 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
4031 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
4033 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
4035 * config/linker-map.gnu: Remove ; after __numpunct_cache.
4037 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
4039 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
4040 to the imbued locale.
4041 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
4043 (num_put::_M_convert_float): Use.
4045 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
4046 Jerry Quinn <jlquinn@optonline.net>
4048 * config/linker-map.gnu: Add __numpunct_cache.
4049 * config/locale/gnu/numeric_members.cc
4050 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
4051 all elements for "C" locale.
4052 (numpunct::~numpunct): Delete _M_data.
4053 * config/locale/generic/numeric_members.cc: Same.
4054 * include/bits/basic_ios.tcc
4055 (basic_ios::init): Remove __locale_cache bits.
4056 (basic_ios::_M_cache_locale): Same.
4057 * include/bits/ios_base.h: Same. Tweaks.
4058 * include/bits/locale_classes.h: Tweaks. Reorder classes.
4059 (__use_cache): Make friends with _Impl, locale.
4060 (_Impl::_M_caches): Add.
4061 (_Impl::_M_install_cache): Add.
4062 * include/bits/locale_facets.h (__numpunct_cache): New.
4063 (numpunct): Encapsulate data members in __numpunct_cache member,
4064 _M_data. Adjust virtuals.
4065 (numpunct::numpunct): New ctor for the same.
4066 (__locale_cache_base): Remove.
4067 (__locale_cache): Remove.
4068 * include/bits/locale_facets.tcc (__use_cache): New function,
4070 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
4071 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
4072 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
4073 * src/locale-inst.cc: Same. Add __numpunct_cache.
4074 * src/locale.cc: Tweak inlines.
4075 (__use_cache): Define specializations.
4076 * src/localename.cc: Use global bits.
4077 (_Impl::~Impl): Deal with __numpunct_cache destruction.
4078 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
4079 (_Impl::_M_init_facet): Take into account __numpunct_cache.
4080 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
4081 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4083 2003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
4084 Paolo Carlini <pcarlini@unitus.it>
4086 * testsuite/performance/filebuf_copy.cc: New, testing char
4089 2003-06-26 Paolo Carlini <pcarlini@unitus.it>
4090 Nathan C. Myers <ncm-nospam@cantrip.org>
4092 * include/bits/fstream.tcc (_M_underflow): When the actual
4093 end of file is reached, set 'uncommitted' mode to allow a
4094 next write without an intervening seek (see C++98 27.8.1.1,2
4096 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
4098 2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
4100 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
4101 sputc): Move inline, from here...
4102 * include/std/std_streambuf.h: ... to here.
4104 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
4105 sputbackc, sungetc, sputc): Use __builtin_expect.
4107 2003-06-24 Phil Edwards <pme@gcc.gnu.org>
4109 * docs/doxygen/mainpage.html: Use a useful title.
4111 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
4113 * docs/html/documentation.html: Remove assignment info.
4114 * docs/html/17_intro/contribute.html: Edits.
4115 * docs/html/17_intro/libstdc++-assign.tx: Remove.
4117 * docs/html/test.html: Update.
4121 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
4122 Ulrich Drepper <drepper@redhat.com>
4124 * testsuite/testsuite_performance.h: Tweak mallinfo.
4126 2003-06-24 Paolo Carlini <pcarlini@unitus.it>
4127 Nathan C. Myers <ncm-nospam@cantrip.org>
4129 * include/std/std_fstream.h (_M_filepos): Remove.
4130 (_M_reading, _M_writing): New, encode the various I/O modes:
4131 'read', 'write' and 'uncommitted'.
4132 (sync): If there is something to flush, do it, then go to
4134 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
4135 with three different cases: __off > 0 (upon underflow),
4136 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
4138 (_M_underflow): Don't call overflow, set _M_reading to true
4140 (pbackfail): Set _M_reading to true on pback creation, tweak.
4141 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
4142 set _M_writing to true on success, tweak.
4143 (seekoff): Simplify, set _M_reading, _M_writing to false, call
4144 _M_set_buffer(-1) ('uncommitted').
4145 (open, close, setbuf): Set _M_reading, _M_writing to false and
4146 call _M_set_buffer(-1), tweak.
4147 (basic_filebuf): Don't set _M_buf_unified.
4148 (_M_destroy_internal_buffer): Don't call setg and setp.
4149 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
4150 _M_writing and _M_set_buffer(-1).
4151 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
4152 _M_out_lim, _M_buf_unified): Remove.
4153 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
4154 (setp): Don't set _M_out_lim.
4155 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
4156 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
4157 upon open the mode is 'uncommitted' and therefore the put area
4159 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
4160 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
4161 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
4162 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
4163 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
4164 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
4165 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
4166 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
4167 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
4168 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
4169 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
4170 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
4171 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
4172 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
4173 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
4174 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
4175 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
4176 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
4177 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
4178 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
4180 * include/bits/fstream.tcc (showmanyc): Use only the
4181 documented derivation interface to basic_streambuf (gptr(),
4182 setg(), etc.) to work right with user specializations.
4183 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
4184 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
4185 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
4187 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
4190 2003-06-23 Loren J. Rittle <ljrittle@acm.org>
4192 * configure.host (freebsd*): Set abi_baseline_pair.
4193 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
4194 (at or near first release) to 3.3.
4195 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
4196 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
4197 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
4199 * include/ext/mt_allocator.h: Portability.
4200 * testsuite/testsuite_performance.h: Likewise.
4202 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
4204 * docs/html/17_intro/libstdc++-assign.txt: Update address.
4206 * testsuite/performance/ifstream_getline.cc: Fix.
4208 2003-06-23 Doug Gregor <dgregor@apple.com>
4210 * include/bits/boost_concept_check.h: Don't use _D or _R for type
4213 2003-06-22 Paolo Carlini <pcarlini@unitus.it>
4214 Nathan C. Myers <ncm-nospam@cantrip.org>
4216 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
4217 is now used only for filebuf, when _M_buf_unified is true.
4218 epgtr() plays the role of _M_out_lim but it's only updated
4219 upon overflow, underflow, uflow, seekoff/pos.
4220 * include/bits/sstream.tcc (_M_underflow): New, implements
4221 stringbuf::underflow and uflow.
4222 (seekoff, seekpos): Tweak, use _M_update_egptr.
4223 * include/std/std_sstream.h (str): Rewrote, deal correctly
4224 with the new logic, in particular, when pptr() > egptr().
4225 (_M_sync): When __testout && !__testin set all the get area
4226 pointers to the current string end.
4227 (_M_update_egptr): New, internal function updating egptr()
4228 to the actual string end.
4229 (_M_underflow): New, declare.
4230 (underflow): Dispatch to _M_underflow(false).
4231 (uflow): Dispatch to _M_underflow(true).
4233 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
4234 seekpos): Use only the documented derivation interface to
4235 basic_streambuf (gptr(), setg(), etc.) to work right with
4236 user specializations.
4237 * include/std/std_sstream.h (str, _M_sync): Likewise.
4239 2003-06-20 Doug Gregor <dgregor@apple.com>
4241 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
4242 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
4243 dereference end iterator.
4244 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
4245 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
4246 index equal to the length of a string.
4247 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
4248 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
4249 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
4250 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
4251 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
4252 * testsuite/23_containers/list_modifiers.cc: Don't dereference
4253 singular reverse iterator.
4254 * testsuite/23_containers/vector_bool.cc: Don't increment singular
4256 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
4258 2003-06-20 Doug Gregor <dgregor@apple.com>
4260 * include/bits/basic_string.h (basic_string::replace): Dispatch
4261 _InputIterator version based on _Is_integer.
4262 * include/bits/basic_string.tcc (basic_string::replace):
4263 Renamed replace(iterator, iterator, size_type, _CharT) to
4265 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
4266 Test basic_string::assign(_InputIterator, _InputIterator),
4267 which calls basic_string::replace(iterator, iterator,
4268 _Input_iterator, _InputIterator).
4270 2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
4272 * testsuite/testsuite_performance.h (resource_counter): Don't use
4273 mallinfo at the moment.
4275 2003-06-20 Matthias Klose <doko@debian.org>
4277 * configure.host: Set try_cpu to target_cpu for existing
4280 2003-06-19 Andreas Jaeger <aj@suse.de>
4282 * testsuite/Makefile.am (extract_symvers): Revert accidental
4284 * testsuite/Makefile.in: Regenerate.
4286 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
4287 * configure: Regenerated.
4289 2003-06-19 Paolo Carlini <pcarlini@unitus.it>
4291 * include/std/std_sstream.h (_M_sync): Make non virtual.
4293 2003-06-18 Benjamin Kosnik <bkoz@redhat.com>
4295 * testsuite/testsuite_performance.h (time_counter): New.
4296 (resource_counter): New.
4297 (report_performance): New.
4298 (start_counters): New.
4299 (stop_counters): New.
4300 (clear_counters): New.
4301 * testsuite/performance/allocator.cc: Instrument.
4302 * testsuite/performance/cout_insert_int.cc: Same.
4303 * testsuite/performance/complex_norm.cc: Same.
4304 * testsuite/performance/filebuf_sputc.cc: New.
4305 * testsuite/performance/fstream_seek_write.cc: Same.
4306 * testsuite/performance/ifstream_getline.cc: Same.
4307 * testsuite/performance/map_create_fill.cc: Same.
4308 * testsuite/performance/ofstream_insert_float.cc: Same.
4309 * testsuite/performance/ofstream_insert_int.cc: Same.
4310 * testsuite/performance/string_append.cc: Convert.
4311 * scripts/check_performance: New.
4312 * testsuite/Makefile.am (check-performance): New.
4315 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
4316 Benjamin Kosnik <bkoz@redhat.com>
4318 * include/std/std_sstream.h (setbuf): Check __n >= 0.
4319 * include/bits/fstream.tcc (setbuf): Tweak.
4321 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
4323 * include/bits/sstream.tcc (seekoff): We can't seek beyond
4324 _M_out_lim, therefore _M_move_out_cur boils down to simply
4325 updating _M_out_cur.
4326 (seekpos): Likewise, clean up.
4328 2003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
4329 Paolo Carlini <pcarlini@unitus.it>
4331 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
4332 simply equivalent to the unbuffered case (0, 0) as far as
4333 _M_buf_size is concerned.
4335 2003-06-18 Andreas Jaeger <aj@suse.de>
4337 * testsuite/Makefile.am (new-abi-baseline): Create baseline
4339 (baseline_file): Use baseline_dir.
4340 (baseline_dir): New.
4341 (mkinstalldirs): New.
4343 * acinclude.m4: Rename baseline_file to baseline_dir, strip
4344 filename from baseline_dir.
4346 * testsuite/Makefile.in: Regenerated.
4347 * Makefile.in: Regenerated.
4348 * aclocal.m4: Regenerated.
4349 * configure: Regenerated.
4351 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
4353 * configure.in: Missed check_survey bit.
4354 * configure: Regenerated.
4356 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
4359 * config/abi/extract_symvers: Move to...
4360 * scripts/extract_symvers: ...here.
4361 * mkcheck.in: Move to..
4362 * scripts/check_survey.in: ...here.
4363 * testsuite_flags.in: Move to..
4364 * scripts/testsuite_flags.in: ...here.
4365 * configure.in: Change check and testsuite_flags locations.
4366 * configure: Regenerate.
4367 * testsuite/Makefile.am (current_symbols.txt): Change location.
4368 * testsuite/Makefile.in: Regenerate.
4369 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
4370 location of testsuite_flags.
4371 * Makefile.am (check-script): Move..
4372 (check-script-install): Move...
4373 * testsuite/Makefile.am: ... here.
4374 * testsuite/Makefile.in: Regenerate.
4375 * Makefile.in: Regenerate.
4377 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
4379 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
4381 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
4383 * Makefile.am (check-abi): Move...
4384 (new-abi-baseline): Move...
4385 * testsuite/Makefile.am: ...here.
4386 (new-abi-baseline): Conditionalize.
4387 (check-abi): Conditionalize.
4388 (check-abi-verbose): New.
4389 * Makefile.in: Regenerate.
4390 * testsuite/Makefile.in: Regenerate.
4391 * configure.in: Consolidate testsuite configure bits.
4392 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
4393 * configure: Regenerate.
4394 * aclocal.m4: Regenerate.
4395 * testsuite/abi_check.cc: Add --check-verbose.
4396 Only output detailed information if --check-verbose.
4398 2003-06-16 Andreas Jaeger <aj@suse.de>
4400 * testsuite/abi_check.cc: Create summary report.
4402 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
4404 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
4405 for systems with BUFSIZ != 8192.
4406 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
4407 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
4410 2003-06-16 Andreas Jaeger <aj@suse.de>
4412 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
4413 check-abi multilib aware.
4414 * aclocal.m4: Regenerate.
4415 * configure: Regenerate.
4417 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
4418 Andreas Jaeger <aj@suse.de>
4420 * configure.host: Set x86_64 abi_baseline pair correctly.
4422 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
4424 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
4425 fix for missing seeks between gets and puts into...
4426 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
4427 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
4428 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
4429 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
4430 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
4431 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
4433 2003-06-15 Richard Henderson <rth@redhat.com>
4435 * config/linker-map.gnu: Export virtual function thunks for
4438 2003-06-13 Benjamin Kosnik <bkoz@redhat.com>
4440 * config/abi/i686-pc-linux-gnu: To..
4441 * config/abi/i486-linux-gnu: ...this.
4442 * config/abi/alphaev67-unknown-linux-gnu: To..
4443 * config/abi/alpha-linux-gnu: ...this.
4444 * config/abi/ia64-unknown-linux-gnu: To...
4445 * config/abi/ia64-linux-gnu: ...this.
4446 * config/abi/x86_64-unknown-linux-gnu: To...
4447 * config/abi/x86_64-linux-gnu: ...this.
4448 * config/abi/i386-unknown-freebsd4: To...
4449 * config/abi/i386-freebsd4: ...this.
4450 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
4452 * configure.host: abi_baseline_triplet to abi_baseline_pair.
4453 Simplify cpu bits so that abi_baseline_pair can use the same
4455 * acinclude.m4: Same.
4456 * aclocal.m4: Regenerate.
4457 * configure.in: Can't get enable_abi_check to yes unless native.
4458 * configure: Regenerate.
4460 2003-06-13 Paolo Carlini <pcarlini@unitus.it>
4462 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
4463 fix for missing seeks between gets and puts into...
4464 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
4465 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
4466 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
4467 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
4468 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
4469 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
4470 for missing seeks between gets and puts.
4471 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
4472 * testsuite/data/seekoff-1.tst: New.
4473 * testsuite/data/seekoff-2.tst: New.
4474 * testsuite/data/seekpos-1.tst: New.
4475 * testsuite/data/seekpos-2.tst: New.
4477 2003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
4479 Avoid multi-processor bus contention on increment/decrement-and-
4480 test of the reference count in the empty-string object, by comparing
4481 addresses first, and never touching the reference count of the empty-
4483 * include/bits/basic_string.h:
4484 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
4486 (_Rep::_S_empty_rep()): New accessor.
4487 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
4488 a base class _Rep_base.
4489 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
4490 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
4491 since no longer must increment its refcount.
4492 * include/bits/basic_string.tcc:
4493 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
4494 return immediately. The former might be unnecessary. The latter
4495 prevents begin() and end() from cloning it unnecessarily.
4496 (_S_construct(_InIterator, _InIterator, const _Alloc&,
4497 input_iterator_tag), _S_construct(_InIterator, _InIterator,
4498 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
4499 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
4500 (_M_mutate): Check for the empty string and treat it as shared.
4501 This is necessary here because _M_mutate is sometimes called with
4502 all-zero arguments; in all other uses of _M_is_shared, the test comes
4505 2003-06-12 Benjamin Kosnik <bkoz@redhat.com>
4507 * src/allocator-inst.cc: Explicitly instantiate.
4508 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
4510 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
4512 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
4514 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
4515 * aclocal.m4: Regenerate.
4516 * Makefile.am (SUBDIRS): Remove libio.
4517 * Makefile.in: Regenerate.
4518 * configure.in: Same.
4519 * configure: Regenerate.
4520 * config/io/basic_file_libio.cc: Remove.
4521 * config/io/basic_file_libio.h: Remove.
4522 * config/io/c_io_libio_codecvt.c: Remove.
4523 * config/io/c_io_libio.h: Remove.
4525 * src/Makefile.am: Same.
4526 * src/Makefile.in: Regenerate.
4527 * docs/html/configopts.html: Edits.
4528 * docs/html/explanations.html: Edits.
4530 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
4532 * include/bits/stl_alloc.h (__debug_alloc): Move out.
4533 (__malloc_alloc): Same.
4534 (__pool_alloc): Same.
4535 (__new_alloc): Same.
4537 * include/bits/allocator.h: ...this.
4538 * include/bits/stl_deque.h: Modify comment.
4539 * include/bits/stl_tree.h: Modify include.
4540 * include/std/std_memory.h: Same.
4541 * include/ext/rope: Same.
4542 * include/ext/slist: Same.
4543 * include/std/std_vector.h: Same.
4544 * include/std/std_stack.h: Same.
4545 * include/std/std_queue.h: Same.
4546 * include/std/std_list.h: Same.
4547 * include/std/std_deque.h: Same.
4548 * include/backward/alloc.h: Same.
4549 * include/ext/debug_allocator.h: New.
4550 * include/ext/malloc_allocator.h: New.
4551 * include/ext/pool_allocator.h: New.
4552 * include/ext/new_allocator.h: New.
4553 * include/bits/pthread_allocimpl.h: Remove.
4554 * include/bits/stl_pthread_alloc.h: Remove.
4555 * include/Makefile.am (ext_headers): Add.
4556 * include/Makefile.in: Regenerate.
4557 * src/stl-inst.cc: Use __gnu_cxx namespace.
4558 * src/stl-inst.cc: Move to...
4559 * src/allocator-inst.cc: Here.
4560 * src/Makefile.am (sources): Update.
4561 * src/Makefile.in: Regenerate.
4562 * config/linker-map.gnu: Remove __pool_alloc bits.
4563 * testsuite/ext/headers.cc: Add.
4564 * testsuite/ext/allocators.cc: Fixup.
4566 2003-06-11 Stefan Olsson <stefan@snon.net>
4567 Ola Rönnerup <fnolis@home.se>
4569 * include/Makefile.am (ext_headers): Add.
4570 * include/Makefile.in: Regenerate.
4571 * include/ext/mt_allocator.h: New file.
4573 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
4575 * include/bits/fstream.tcc (close): Clean up a bit.
4577 * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
4579 * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
4580 - the saved _M_in_cur, that is - cannot be null.
4581 (sync): Constify a variable.
4583 * include/std/std_streambuf.h: Tweak a comment.
4584 (in_avail): Constify a variable.
4586 2003-06-10 Phil Edwards <pme@gcc.gnu.org>
4588 * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot.
4589 * docs/html/17_intro/CHECKLIST: Bring up to date with respect to
4590 correctness of container::iterator typedefs. Fix whitespace.
4591 * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links
4593 * docs/html/documentation.html: Regenerate.
4595 * include/bits/basic_string.h, include/bits/basic_string.tcc,
4596 include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
4597 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4598 include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
4599 include/bits/stl_list.h, include/bits/stl_uninitialized.h,
4600 include/bits/stl_vector.h, include/bits/vector.tcc,
4601 include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
4602 Change _Iter names to _Iterator, and __pos to __position.
4604 * include/bits/stl_relops.h, include/bits/stl_numeric.h,
4605 include/bits/stl_multiset.h, include/bits/stl_set.h:
4606 Remove emacs markers.
4608 * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__.
4610 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
4612 * include/bits/fstream.tcc (overflow): According to
4613 27.5.2.4.5, overflow() returns not_eof(eof()).
4614 * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
4615 * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
4617 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
4619 * include/bits/fstream.tcc (_M_underflow): Check overflow return
4620 value; tweak slightly.
4622 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
4624 * include/bits/fstream.tcc (_M_underflow): Do not special
4625 case the unbuffered case, which really means simply a one char
4627 (basic_filebuf): Initialize _M_buf_size.
4628 (setbuf): Unbuffered means _M_buf_size == 1, since only
4629 _M_buf_size - 1 == 0 chars are going to be used for the
4630 put area and 1 for the get area.
4631 * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
4632 (~basic_streambuf): Tweak.
4633 (basic_streambuf): Do not initialize _M_buf_size.
4634 * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
4635 (~basic_filebuf): Tweak.
4636 (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
4637 unbuffered situation (i.e., put area pointers NULL).
4638 * include/bits/streambuf.tcc (sbumpc): Clean up.
4639 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
4640 * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
4641 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
4642 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
4643 * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
4644 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
4645 * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
4647 2003-06-09 Phil Edwards <pme@gcc.gnu.org>
4649 * acinclude.m4: Move all AM_CONDITIONAL calls out.
4650 (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL
4652 * configure.in: Centralize AM_CONDITIONALs so that they are always
4653 run. Make use of GLIBCPP_IS_CROSS_COMPILING.
4654 * aclocal.m4, configure: Regenerated.
4656 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
4658 * docs/html/ext/howto.html ('LWG Issues'): Add issue 235.
4660 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
4662 * include/bits/stl_iterator.h
4663 (reverse_iterator::reverse_iterator()): Apply DR235: default
4664 constructor default-initializes data member. Instantiated on a
4665 pointer type, the member has to end up equal to zero.
4667 2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
4669 * include/bits/stl_alloc.h: Cleanups.
4670 * include/ext/functional: Same.
4671 * include/ext/hash_map: Same.
4672 * include/ext/hash_set: Same.
4673 * include/ext/iterator: Same.
4674 * include/ext/memory: Same.
4675 * include/ext/numeric: Same.
4676 * include/ext/rb_tree: Same.
4677 * include/ext/ropeimpl.h: Same.
4678 * include/ext/slist: Same.
4679 * include/ext/stdio_filebuf.h: Same.
4680 * include/ext/stdio_sync_filebuf.h: Same.
4681 * include/ext/stl_rope.h: Move to...
4682 * include/ext/rope: ...here.
4683 * include/ext/stl_hash_fun.h: Move to...
4684 * include/ext/hash_fun.h: ...here.
4685 * include/ext/stl_hashtable.h: Move to...
4686 * include/ext/hashtable.h: ...here.
4687 * include/backward/hashtable.h: Reflect new names.
4688 * include/Makefile.am: Same.
4689 * include/Makefile.in: Regenerated.
4691 2003-06-05 Benjamin Kosnik <bkoz@redhat.com>
4694 * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
4695 * include/bits/stl_algobase.h: Tweak.
4696 * include/std/std_fstream.h: Move _M_buf_size to...
4697 * include/std/std_streambuf.h: ...here. Modify.
4698 * include/bits/streambuf.tcc: Same.
4699 * testsuite/testsuite_hooks.h: Tweak.
4700 * testsuite/testsuite_io.h (constraint_filebuf): New.
4701 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
4702 * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
4703 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
4704 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
4705 * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
4706 * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
4707 * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
4708 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
4709 * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
4710 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
4711 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
4712 * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
4713 * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
4714 * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
4715 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
4716 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
4717 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
4718 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
4719 * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
4720 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
4721 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
4722 * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
4723 * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
4724 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
4725 * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
4726 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
4727 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
4728 * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
4729 * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
4730 * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
4731 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
4732 * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
4733 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
4734 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
4735 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
4736 * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
4737 * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
4738 * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
4739 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
4740 * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
4741 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
4742 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
4743 * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
4744 * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
4745 * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
4746 * testsuite/data/sgetc.txt: New.
4747 * testsuite/data/sgetn.txt: New.
4749 2003-06-05 Paolo Carlini <pcarlini@unitus.it>
4752 * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
4753 Deal with width() smaller than zero.
4754 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
4755 operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
4756 _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
4757 char*), operator<<(basic_ostream<char, _Traits>&, const char*),
4758 operator<<(basic_ostream, const basic_string&)): Likewise.
4760 * testsuite/27_io/basic_istream/extractors_character/char/
4761 (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
4762 * testsuite/27_io/basic_ostream/inserters_character/char/
4763 (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
4764 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
4765 (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
4767 2003-06-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4769 * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
4770 .gch compilation works.
4771 * aclocal.m4, configure: Regenerate.
4772 * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
4773 initialize PCHFLAGS.
4775 2003-06-04 Paolo Carlini <pcarlini@unitus.it>
4777 * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
4778 erase(iterator), erase(iterator, iterator), c_str,
4779 compare(const basic_string&)): Constify various variables.
4780 * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
4781 const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
4782 _S_create, resize, _M_replace, _M_replace_safe,
4783 append(const basic_string&), append(const basic_string&, size_type,
4784 size_type), append(const _CharT*, size_type), append(size_type,
4785 _CharT), operator+(const _CharT*, const basic_string&),
4786 operator+(_CharT, const basic_string&), replace(iterator, iterator,
4787 size_type, _CharT), find(const _CharT*, size_type, size_type),
4788 find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
4789 rfind(_CharT, size_type), compare(size_type, size_type,
4790 const basic_string&), compare(size_type, size_type,
4791 const basic_string&, size_type, size_type), compare(const _CharT*),
4792 compare(size_type, size_type, const _CharT*), compare(size_type,
4793 size_type, const _CharT*, size_type)): Likewise.
4795 2003-06-03 Benjamin Kosnik <bkoz@redhat.com>
4797 * include/bits/fstream.tcc (pbackfail): Make a rarely taken
4798 'if' branch less obscure.
4800 2003-06-02 Andrew Pinski <pinskia@physics.uc.edu>
4803 * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
4805 * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
4806 (__atomic_add): likewise.
4808 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4810 * include/bits/sstream.tcc (pbackfail): Minor clean up and
4811 reformatting, consistent with basic_filebuf::pbackfail.
4813 2003-06-02 Richard Kreckel <Richard.Kreckel@GiNaC.DE>
4816 * config/cpu/mips/atomicity.h: Change __attribute__ ((unused)) to
4817 __attribute__ ((__unused__)).
4818 * config/os/aix/atomicity.h: Likewise.
4820 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4823 * include/bits/fstream.tcc (pbackfail): If the pback buffer
4824 is already active don't try to store in it a second char.
4825 * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
4827 * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
4829 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4831 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
4834 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4836 * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
4837 instead of unnecessarily taking the address of _M_pback.
4838 (xsgetn): Simplify slightly for a single char pback buffer.
4840 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4842 * include/bits/sstream.tcc (seekoff): Remove four unnecessary
4843 variables and two 'if', clean up.
4845 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4847 * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
4848 not _M_out_end, since the former actually points to the string
4849 end (vs buffer end).
4850 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
4852 2003-05-30 Phil Edwards <pme@gcc.gnu.org>
4854 * docs/doxygen/filter: New file.
4855 * docs/doxygen/filter.sed: New file.
4856 * docs/doxygen/run_doxygen: Add g flag to sed substitutions. Duh.
4857 * docs/doxygen/user.cfg.in (INPUT_FILTER): Point to new filter.
4858 * docs/html/documentation.html: Fix links to doxygen pages.
4860 2003-05-30 Paolo Carlini <pcarlini@unitus.it>
4862 * include/bits/fstream.tcc (_M_convert_to_external): Don't
4863 check for __ilen > 0.
4865 2003-05-29 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
4868 * include/bits/stl_iterator.h (class __normal_iterator):
4869 Don't inherit from iterator, add missing typedefs.
4871 2003-05-29 Paolo Carlini <pcarlini@unitus.it>
4873 * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
4874 * testsuite/24_iterators/reverse_iterator/1.cc: New.
4875 * testsuite/24_iterators/reverse_iterator/2.cc: New.
4876 * testsuite/24_iterators/reverse_iterator/3.cc: New, from
4879 2003-05-27 Steve Ellcey <sje@cup.hp.com>
4881 * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
4883 * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
4884 _LIBUNWIND_STD_ABI is set.
4886 2003-05-26 Brendan Kehoe <brendan@zen.org>
4888 * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
4889 make sure the number of digits required after the decimal-point
4890 (if any) is exactly the value returned by frac_digits().
4891 * testsuite/22_locale/money_get/get/char/9.cc: New.
4892 * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
4894 2003-05-27 Jonathan Wakely <redi@gcc.gnu.org>
4896 * include/std/std_istream.h, include/std/std_ostream.h: Typo in
4899 2003-05-26 Benjamin Kosnik <bkoz@redhat.com>
4902 * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
4903 (_M_pback): No array necessary.
4904 * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
4905 unbuffered case, coalesec into ...
4906 (basic_filebuf::overflow): ...this.
4907 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
4908 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
4910 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
4912 * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
4913 libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
4914 libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
4915 libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
4916 libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
4917 libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
4918 libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
4919 libsupc++/eh_unex_handler.cc, libsupc++/exception,
4920 libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
4921 libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
4922 libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
4923 libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
4924 Replace "GNU CC" with "GCC".
4926 * include/backward/new.h: Replace "GNU CC" with "GCC".
4928 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
4931 * configure.in: Switch target to host, don't assume newlib.
4932 (target_alias): Remove.
4933 * configure: Regenerate.
4934 * acinclude.m4: Same.
4935 * aclocal.m4: Regenerate.
4936 * configure.target: Same. Rename to...
4937 * configure.host: This.
4939 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
4941 * include/std/std_fstream.h (_S_pback_size): Remove definition.
4942 (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
4944 * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
4945 * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
4946 of _S_pback_size for systems with no COMDAT or weak support.
4947 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
4948 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
4949 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
4950 * testsuite/27_io/basic_fstream/3.cc: Likewise.
4951 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
4952 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
4953 * testsuite/27_io/basic_ofstream/3.cc: Likewise.
4954 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
4955 * testsuite/27_io/basic_streambuf/3.cc: Likewise.
4957 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
4959 * include/bits/fstream.tcc (_M_underflow): Simplify:
4960 !__testout implies _M_filepos == _M_in_end, therefore
4961 the first _M_file.seekoff call is never issued.
4963 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
4965 * configure.in: Sort cross table.
4966 * configure: Regenerate.
4968 2003-05-22 Brad Spencer <spencer@infointeractive.com>
4971 * configure.in: Add Solaris cross bits.
4973 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4975 * libstdc++-v3/config/os/mingw32/os_defines.h
4976 (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
4977 (NOMINMAX): Define. Update copyright year.
4979 2003-05-21 Paolo Carlini <pcarlini@unitus.it>
4981 * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
4983 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
4985 * docs/html/faq/index.html: Fix typo.
4986 * docs/html/faq/index.txt: Regenerate.
4988 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
4990 * docs/html/test.html: Fix markup.
4992 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4994 * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
4996 Update copyright year.
4998 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
5000 * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
5002 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
5004 * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
5005 further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
5007 2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5009 * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
5010 Cast via void* to avoid -Wcast-align warnings.
5011 (__default_alloc_template::_S_refill): Likewise.
5013 2003-05-20 Benjamin Kosnik <bkoz@redhat.com>
5015 * testsuite/README: Move to...
5016 * docs/html/test.html: ...here. Add documentation.
5017 * docs/html/install.html: Move testing bits out..
5018 * docs/html/documentation.html: Add separate testing link.
5019 * testsuite/performance: Add.
5020 * testsuite/performance/allocator.cc: New.
5021 * testsuite/performance/complex_norm.cc: New.
5022 * testsuite/performance/cout_insert_int.cc: New.
5023 * testsuite/performance/fstream_seek_write.cc: New.
5024 * testsuite/performance/ifstream_getline.cc: New.
5025 * testsuite/performance/map_create_fill.cc: New.
5026 * testsuite/performance/ofstream_insert_float.cc: New.
5027 * testsuite/performance/ofstream_insert_int.cc: New.
5028 * testsuite/performance/string_append.cc: New.
5029 * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
5032 2003-05-20 Gabriel Dos Reis <gdr@integrable-solutions.net>
5035 * include/std/std_complex.h (pow): Tidy.
5037 2003-05-19 Paolo Carlini <pcarlini@unitus.it>
5039 * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
5040 that upon filebuf::close() 27.8.1.1,3 is enforced.
5042 2003-05-15 Loren J. Rittle <ljrittle@acm.org>
5044 * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
5046 2003-05-15 Paolo Carlini <pcarlini@unitus.it>
5047 Nathan Myers <ncm@cantrip.org>
5049 * include/bits/fstream.tcc (_M_overflow): Rewrote to call
5050 _M_convert_to_external only once (_M_buf_size is now the size of
5051 the put area + 1 for the overflow char of a full area); call
5052 _M_set_buffer instead of _M_set_indeterminate.
5053 (setbuf): Don't accept a buffer smaller than 2 chars.
5054 (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
5055 instead of _M_set_determinate.
5056 (open): Call _M_set_buffer, instead of _M_set_indeterminate.
5057 (seekoff): Likewise.
5058 * include/ext/stdio_filebuf.h (stdio_filebuf(int,
5059 std::ios_base::openmode, bool, size_t),
5060 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
5062 * include/std/std_fstream.h (_M_set_indeterminate): Remove.
5063 (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
5065 * include/std/std_streambuf.h: Tweak _M_out_lim comment.
5066 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
5067 into account that, for _M_buf_size == BUFSIZ == 8192, the size of
5068 the put area is now BUFSIZ - 1.
5069 * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
5070 that now the smallest _M_buf_size is 2 (still fails, for the same
5073 2003-05-14 Loren J. Rittle <ljrittle@acm.org>
5075 * testsuite/thread/pthread4.cc: Tweak test.
5077 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
5079 * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
5080 excess errors dg marker, use dg-errors instead.
5081 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
5082 * testsuite/20_util/auto_ptr_neg.cc: Same.
5084 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
5086 * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
5088 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
5089 Initialize _M_codecvt.
5090 (basic_filebuf::imbue): Same.
5091 (basic_filebuf::showmanyc): Use it.
5092 (basic_filebuf::underflow): Use it.
5093 (basic_filebuf::_M_convert_to_external): Use it.
5094 (basic_filebuf::seekoff): Use it.
5095 (basic_filebuf::imbue): Use it, tweaks.
5096 * include/bits/localefwd.h (__check_facet): New.
5097 * include/bits/locale_classes.h: Tweaks.
5098 * include/bits/locale_facets.tcc: Tweaks.
5099 * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
5100 _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
5101 _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
5102 * include/bits/basic_ios.tcc: Same.
5103 * include/bits/istream.tcc: Same.
5104 * include/bits/ostream.tcc: Same.
5105 * include/std/std_streambuf.h: Same.
5106 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
5107 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
5108 * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
5109 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
5110 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
5111 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
5113 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
5115 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
5116 unnecessary includes and unused string literals.
5117 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
5118 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
5119 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
5120 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
5122 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
5124 * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
5126 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
5128 * include/std/std_fstream.h (_M_convert_to_external): Change
5129 to return bool, take two less streamsize parameters.
5130 * include/bits/fstream.tcc (_M_convert_to_external): Tweak
5131 consistently definition.
5132 (_M_overflow): Adjust call points.
5134 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
5136 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
5138 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
5140 * testsuite/Makefile.am: Properly quote /both/ LD_RUN_PATHs.
5141 * testsuite/Makefile.in: Regenerate.
5143 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
5145 * testsuite/Makefile.am: Properly quote LD_RUN_PATH.
5146 * testsuite/Makefile.in: Regenerate.
5148 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
5151 * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
5152 (acos): Handle integer argument.
5171 * include/bits/cpp_type_traits.h (__are_same<>): New traits.
5172 (__enable_if): Likewise.
5173 * testsuite/26_numerics/cmath/overloads.C: New test.
5175 2003-05-10 Petur Runolfsson <peturr02@ru.is>
5180 * include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
5181 implementation, based on old wchar_t specialization, add support
5182 for codecvt::in() return value of codecvt_base::noconv, remove
5183 _M_file.sys_ungetc() call.
5184 * include/std/std_fstream.h (basic_file::underflow,
5185 basic_file::uflow, basic_file::_M_underflow): Remove
5186 specialization declarations, call _M_underflow from generic versions
5187 of underflow and uflow.
5188 * src/fstream.cc (basic_file::underflow, basic_file::uflow,
5189 basic_file::_M_underflow): Remove specializations.
5190 * src/Makefile.am (sources): Remove fstream.cc.
5191 * src/Makefile.in: Regenerated.
5192 * testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
5193 * testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
5194 * testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
5195 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
5197 2003-05-10 Benjamin Kosnik <bkoz@redhat.com>
5199 * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
5201 * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
5203 (__basic_file::xsputn): Same.
5204 (__basic_file::seekoff): Same.
5205 (__basic_file::seekpos): Same.
5206 (__basic_file::showmanyc): Same.
5207 * config/io/basic_file_stdio.cc: Same.
5208 * include/std/std_fstream.h: Same.
5209 * include/bits/fstream.tcc: Same.
5210 * src/fstream.cc: Same.
5211 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
5213 2003-05-10 Petur Runolfsson <peturr02@ru.is>
5218 * include/ext/stdio_sync_filebuf.h: New file.
5219 (basic_stdiobuf): New.
5220 * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
5221 * include/Makefile.in: Regenerate.
5222 * include/bits/ios_base.h (Init::_S_create_buffers,
5223 Init::_S_destroy_buffers): Remove declarations.
5224 * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
5225 buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define.
5226 * src/ios.cc (Init::_S_create_buffers,
5227 Init::_S_destroy_buffers): Remove.
5228 (Init::Init): Create and use syncronized buffers.
5229 (ios_base::sync_with_stdio): Destroy syncronized buffers,
5230 create and install unsyncronized buffers.
5231 * testsuite/27_io/objects/char/10.cc: New test.
5232 * testsuite/27_io/objects/char/9.cc: New test.
5233 * testsuite/27_io/objects/char/9661-1.cc: New test.
5234 * testsuite/27_io/objects/char/9661-2_xin.cc: New test.
5235 * testsuite/27_io/objects/char/9661-2_xin.in: New.
5236 * testsuite/27_io/objects/wchar_t/1.cc: New test.
5237 * testsuite/27_io/objects/wchar_t/10.cc: New test.
5238 * testsuite/27_io/objects/wchar_t/2.cc: New test.
5239 * testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test.
5240 * testsuite/27_io/objects/wchar_t/2523-1_xin.in: New.
5241 * testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test.
5242 * testsuite/27_io/objects/wchar_t/2523-2_xin.in: New.
5243 * testsuite/27_io/objects/wchar_t/3045.cc: New test.
5244 * testsuite/27_io/objects/wchar_t/3647.cc: New test.
5245 * testsuite/27_io/objects/wchar_t/3_xin.cc: New test.
5246 * testsuite/27_io/objects/wchar_t/3_xin.in: New.
5247 * testsuite/27_io/objects/wchar_t/4_xin.cc: New test.
5248 * testsuite/27_io/objects/wchar_t/4_xin.in: New.
5249 * testsuite/27_io/objects/wchar_t/5.cc: New test.
5250 * testsuite/27_io/objects/wchar_t/5268.cc: New test.
5251 * testsuite/27_io/objects/wchar_t/5280_xin.cc: New test.
5252 * testsuite/27_io/objects/wchar_t/5280_xin.in: New.
5253 * testsuite/27_io/objects/wchar_t/6.cc: New test.
5254 * testsuite/27_io/objects/wchar_t/6548_xin.cc: New test.
5255 * testsuite/27_io/objects/wchar_t/6548_xin.in: New.
5256 * testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test.
5257 * testsuite/27_io/objects/wchar_t/6648-1_xin.in: New.
5258 * testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test.
5259 * testsuite/27_io/objects/wchar_t/6648-2_xin.in: New.
5260 * testsuite/27_io/objects/wchar_t/7.cc: New test.
5261 * testsuite/27_io/objects/wchar_t/7744_xin.cc: New test.
5262 * testsuite/27_io/objects/wchar_t/7744_xin.in: New.
5263 * testsuite/27_io/objects/wchar_t/8.cc: New test.
5264 * testsuite/27_io/objects/wchar_t/9_xin.cc: New test.
5265 * testsuite/27_io/objects/wchar_t/9_xin.in: New.
5266 * testsuite/27_io/objects/wchar_t/9520.cc: New test.
5267 * testsuite/27_io/objects/wchar_t/9661-1.cc: New test.
5268 * testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test.
5269 * testsuite/27_io/objects/wchar_t/9661-2_xin.in: New.
5270 * testsuite/27_io/objects/wchar_t/9662.cc: New test.
5271 * testsuite/ext/stdiobuf_char.cc: New test.
5272 * testsuite/ext/stdiobuf_wchar_t.cc: New test.
5274 2003-05-10 Paolo Carlini <pcarlini@unitus.it>
5276 * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
5277 unnecessary includes and unused string literals.
5278 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
5280 2003-05-08 Paolo Carlini <pcarlini@unitus.it>
5282 * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
5284 2003-05-07 Richard Henderson <rth@redhat.com>
5287 * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
5288 (__cxa_end_catch): Likewise.
5289 * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise. Use
5290 _Unwind_Resume_or_Rethrow.
5291 * libsupc++/eh_personality.cc (empty_exception_spec): New.
5292 (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
5293 for _UA_FORCE_UNWIND. Honor empty filter spec for foreign
5294 exceptions. Don't push terminate/unexpected to cxa functions.
5295 (__cxa_call_unexpected): Remove foreign exception fixmes.
5297 2003-05-07 Benjamin Kosnik <bkoz@redhat.com>
5299 * testsuite/27_io/ios_base/cons: New.
5300 * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
5301 * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
5303 2003-05-07 Paolo Carlini <pcarlini@unitus.it>
5305 * include/std/std_fstream.h (_M_is_indeterminate): Remove.
5307 (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
5308 there is no buffer or __testget == !__testinit.
5311 (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
5312 automatically sets, if appropriate, _M_out_cur == _M_in_cur.
5314 * include/std/std_fstream.h (_M_destroy_pback): Don't set
5315 unnecessarily _M_pback_cur_save and _M_pback_end_save.
5317 * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
5319 * include/std/std_sstream.h (_M_sync): Minor tweak.
5321 * include/bits/fstream.tcc (close): No need to call
5322 _M_destroy_pback, setting _M_pback_init to false suffices
5325 2003-05-06 Benjamin Kosnik <bkoz@redhat.com>
5327 * include/bits/stl_algo.h: Enums as _S_.
5328 * include/bits/stl_tree.h: Same.
5329 * include/bits/stl_bvector.h: Same.
5330 * include/bits/ios_base.h: Same.
5331 * include/bits/stl_alloc.h: Same.
5332 * include/ext/stl_hashtable.h: Same.
5333 * src/ios.cc: And here.
5335 * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
5336 * include/bits/sstream.tcc: Same.
5338 * include/bits/basic_ios.h: Correct spacing for '< ctype'.
5340 * include/bits/locale_facets.tcc: Replace __temp to __tmp.
5342 * include/bits/locale_facets.h (__num_base): Remove protected.
5343 Use _S_[io]* names for enumerations.
5344 (_S_format_int): Remove.
5345 * include/bits/locale_facets.tcc: Same.
5346 * src/locale.cc: Same.
5348 * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
5350 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
5352 * docs/html/faq/index.html (3.10): Add note about mips atomicity.h.
5353 * docs/html/faq/index.txt: Regenerated.
5355 2003-05-06 Michael Ritzert <Ritzert@t-online.de>
5356 Matt Kraai <kraai@alumni.cmu.edu>
5358 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
5361 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
5363 * configure.target (mips*): Use the generic atomicity.h by default.
5365 2003-05-05 Loren J. Rittle <ljrittle@acm.org>
5366 (Inspired by an alternate patch from Danny Smith.)
5368 * include/bits/stl_threads.h (_Atomic_swap): Kill it...
5369 (_Swap_lock_struct<>): ...and the horse it rode in on.
5370 * src/globals.cc (_Swap_lock_struct<>): Likewise.
5371 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
5372 member to support...
5373 * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
5374 visibility rules related to POSIX threads.
5375 * testsuite/thread/pthread7-rope.cc: New test.
5377 2003-05-04 Paolo Carlini <pcarlini@unitus.it>
5379 * testsuite/21_strings/basic_string/find/char/3.cc: New
5380 file, testing basic_string<char>::find_first_not_of.
5381 * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
5382 Likewise for basic_string<wchar_t>.
5384 2003-05-03 Loren J. Rittle <ljrittle@acm.org>
5386 * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
5388 2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
5390 * include/Makefile.am (CLEANFILES): Remove PCH files in target
5392 * include/Makefile.in: Regenerate.
5394 2003-05-02 Paolo Carlini <pcarlini@unitus.it>
5396 * include/std/std_sstream.h (str()): Tidy.
5398 2003-05-02 Nathan Myers <ncm@cantrip.org>
5399 Paolo Carlini <pcarlini@unitus.it>
5401 * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
5403 2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
5405 * include/bits/basic_string.h (swap): Remove redundant template
5406 parameters from declaration of non-template member function.
5408 2003-05-01 Phil Edwards <pme@gcc.gnu.org>
5410 * acconfig.h (_GLIBCPP_USE_NLS): New symbol.
5411 * configure.in: Move libintl.h header test...
5412 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): ...to here. Gather all
5413 the NLS-related test results into one symbol.
5414 * src/functexcept.cc: Use it here.
5415 * aclocal.m4, config.h.in, configure: Regenerated.
5417 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
5419 * include/bits/sstream.tcc (overflow): Instead of calling
5420 str(), then _M_string.reserve, thus copying the contents
5421 of the current buffer two times, just copy the latter in
5422 a temporary, then use the 'swap trick'.
5424 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
5426 * include/std/std_sstream.h (str()): Revert the best of the
5427 previous 'improvement', incorrect due to the COW nature of
5428 v3 basic_string; simplify.
5430 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
5432 * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
5433 type of __avail to ptrdiff_t to avoid signed-unsigned warning.
5435 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
5437 * testsuite/abi_check.cc (check_version): Update known versions.
5438 Check added symbols for version_name != base version. Add missing
5439 symbols to incompatible list.
5441 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
5443 * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
5444 * aclocal.m4: Regenerated.
5445 * configure: Regenerated.
5447 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
5449 * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
5450 Const-ify some variables.
5451 (basic_streambuf::xsputn): Likewise; change the type of some
5452 variables to size_t.
5453 (__copy_streambufs): Change some variables to size_t.
5455 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
5457 * include/std/std_sstream.h (str()): Avoid constructing
5458 a basic_string temporary not only when it would turn out
5459 to be zero-sized but also when identical to the current
5462 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
5464 * include/ext/stdio_filebuf.h
5465 (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
5466 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
5467 Shorten a bit (-10 lines) by factoring out some code.
5469 2003-04-30 Phil Edwards <pme@gcc.gnu.org>
5471 * acinclude.m4: Add bit missing from previous patch.
5472 * aclocal.m4, configure: Regenerated.
5474 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
5476 * docs/doxygen/mainpage.html: Bring up to date.
5477 * docs/doxygen/run_doxygen: Cosmetic tweaks. Work around a bug
5479 * docs/doxygen/user.cfg.in: Scanning the precompiled headers
5480 breaks everything. Don't scan them.
5481 * docs/html/documentation.html: Point to "Write after approval"
5484 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
5486 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Search for gettext outside
5487 of libc if message translations are being used. Fix info text in
5488 xieee_1003.1-2001 case.
5489 * aclocal.m4, configure: Regenerate.
5491 2003-04-29 Joel Sherrill <joel.sherrill@OARcorp.com>
5492 Loren J. Rittle <ljrittle@acm.org>
5493 Martin v. Loewis <martin@v.loewis.de>
5495 * config/cpu/i386/atomicity.h: New file.
5497 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
5499 * include/bits/fstream.tcc (open): Change to single return.
5501 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
5503 * include/std/std_sstream.h (underflow): Change to single return.
5505 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
5507 * include/std/std_streambuf.h (_M_buf): is currently
5508 used only for basic_filebuf, therefore move it there.
5509 (basic_streambuf(), ~basic_streambuf()): Adjust.
5510 * include/std/std_fstream.h (_M_buf): Moved here.
5511 * include/std/std_sstream.h (setbuf): Don't set _M_buf,
5512 is actually redundant for basic_stringbuf.
5513 (_M_really_sync): Likewise.
5514 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
5515 * include/bits/sstream.tcc (seekoff): Adjust.
5517 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
5519 * src/localename.cc: Standardize exception strings.
5520 * src/locale.cc: Same.
5522 * include/bits/basic_string.tcc: Same.
5523 * include/bits/basic_ios.tcc: Same.
5524 * include/std/std_bitset.h: Same.
5525 * include/ext/ropeimpl.h: Same.
5526 * include/bits/stl_vector.h: Same.
5527 * include/bits/stl_deque.h: Same.
5528 * include/bits/stl_bvector.h: Same.
5529 * config/locale/generic/c_locale.cc: Same.
5530 * config/locale/gnu/c_locale.cc: Same.
5531 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
5533 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
5535 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
5537 * include/std/std_streambuf.h (_M_buf_size): is currently
5538 used only for basic_filebuf, therefore move it there.
5539 (basic_streambuf(), ~basic_streambuf()): Adjust.
5540 * include/std/std_fstream.h (_M_buf_size): Moved here.
5541 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
5543 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
5545 * include/bits/streambuf.tcc (__copy_streambufs): Don't use
5546 _M_buf_size (synced input is now correctly dealt with
5547 elsewhere); when the output buffer is full don't fall back
5548 to a snextc-sputc loop, call overflow instead.
5550 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
5552 * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
5553 the innermost 'if' by factoring out some code.
5555 2003-04-28 Phil Edwards <pme@gcc.gnu.org>
5557 * configure.in: Test for libintl.h.
5558 * include/bits/c++config: Define __N for everybody.
5559 * include/bits/basic_string.h, include/bits/stl_bvector.h,
5560 include/bits/stl_deque.h, include/bits/stl_vector.h,
5561 include/std/std_bitset.h: Wrap all __throw* text with __N.
5562 * po/Makefile.am (pot): New rule, mostly working.
5563 * src/functexcept.cc: Call gettext on all __throw* arguments when
5564 -fexceptions is in effect.
5565 * po/Makefile.in, config.h.in, configure: Regenerate.
5567 2003-04-28 Petur Runolfsson <peturr02@ru.is>
5570 * include/bits/ios_base.h (Init::_S_ios_create,
5571 Init::_S_ios_destroy): Remove declarations.
5572 (Init::_S_create_buffers,
5573 Init::_S_destroy_buffers): Declare
5574 * src/ios.cc (Init::_S_ios_create): Remove
5575 (Init::_S_create_buffers): Create buffers and add to streams.
5576 (Init::_S_ios_destroy): Rename to...
5577 (Init::_S_destroy_buffers): this.
5578 (Init::Init): Only construct streams once.
5579 (Init::~Init): Flush streams, don't destroy them.
5580 (ios_base::sync_with_stdio): Don't destroy streams, only buffers.
5581 * testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test.
5582 * testsuite/27_io/objects/char/5.cc: New test.
5583 * testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior.
5584 * testsuite/27_io/objects/char/6.cc: New test.
5585 * testsuite/27_io/objects/char/7.cc: New test.
5587 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
5589 * testsuite/27_io/objects/char/8.cc: New test.
5591 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
5593 * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
5594 * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
5596 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
5598 * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
5599 _M_destroy_pback. _M_pback_create to
5600 _M_create_pback. _M_underflow_common to
5601 _M_underflow. _M_really_overflow to _M_overflow.
5602 * include/bits/fstream.tcc: Same.
5603 * src/fstream.cc: Same.
5604 * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
5605 _M_move_in_cur. _M_out_cur_move to _M_move_out_cur.
5606 * include/bits/streambuf.tcc: Same.
5607 * include/bits/fstream.tcc: Same.
5608 * include/bits/sstream.tcc: Same.
5610 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
5612 * include/bits/locale_classes.h (locale::_Impl): Change _M_names
5613 from fixed size array.
5614 (locale): Change _S_categories as well.
5616 * include/bits/locale_facets.tcc: Tweak.
5617 * config/locale/gnu/c_locale.cc: Assign _S_categories.
5618 * config/locale/generic/c_locale.cc: Same.
5619 * src/locale.cc: Tweak.
5620 * src/globals.cc: Change facet_name to name_vec, add names_c.
5621 * src/localename.cc: Use them.
5622 (locale::_Impl::~_Impl): Destroy _M_names.
5623 (locale::_Impl::_Impl): Create _M_names.
5625 2003-04-27 Andreas Schwab <schwab@suse.de>
5627 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
5628 (__enc_traits): Use __ibom and __ebom instead of ignoring them.
5630 2003-04-27 Nathan Myers <ncm@cantrip.org>
5632 Move some basic_string members out of line because
5633 they are too big to reasonably be inline.
5634 * include/bits/basic_string.h
5635 (assign(const basic_string&, size_type, size_type),
5636 assign(const _CharT*, size_type),
5637 insert(size_type, const basic_string&, size_type, size_type),
5638 insert(size_type, const _CharT*, size_type),
5639 replace(size_type, size_type, const _CharT*, size_type)):
5640 Move from here to...
5641 * include/bits/basic_string.tcc: ...here.
5643 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
5645 * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
5646 the innermost 'if' by factoring out some code.
5648 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
5650 * include/bits/streambuf.tcc (__copy_streambufs): Don't
5651 use in_avail(), simplify.
5653 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
5655 * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
5656 in basic_stringbuf it's unused.
5658 * include/std/std_sstream.h (underflow): consistently use
5659 _M_in_cur, not gptr().
5661 2003-04-25 Ranjit Mathew <rmathew@hotmail.com>
5662 Phil Edwards <pme@gcc.gnu.org>
5664 * testsuite_flags.in: Guard against the possibility
5665 of having "xgcc" as a part of a folder name in the
5666 path to the GCC build folder.
5667 * testsuite/Makefile.am: Likewise.
5668 * testsuite/Makefile.in: Regenerated.
5670 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
5673 * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
5674 exception specifications.
5675 (basic_filebuf::close): Same.
5676 (basic_filebuf::_M_pback_destroy): Same.
5677 (basic_filebuf::_M_destroy_internal_buffer): Same.
5678 (basic_filebuf): Remove __res_type typedef.
5679 * src/fstream.cc: Same.
5680 * include/bits/fstream.tcc
5681 (basic_filebuf::_M_convert_to_external): Simplify.
5682 (basic_filebuf::seekoff): Use has_facet before use_facet.
5683 (basic_filebuf::close): Add exception specification of throw().
5684 * testsuite/27_io/basic_filebuf/cons: New.
5685 * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
5686 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
5687 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
5688 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
5690 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
5692 * include/bits/locale_classes.h
5693 (locale::_S_extra_categories_size): Remove.
5694 * src/locale.cc: Remove _S_extra_categories_size.
5695 * src/localename.cc: Same.
5696 * config/locale/gnu/c_locale.cc: Same.
5697 * config/locale/generic/c_locale.cc: Same.
5699 2003-04-24 Richard Sandiford <rsandifo@redhat.com>
5701 * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
5703 2003-04-24 Phil Edwards <pme@gcc.gnu.org>
5705 * docs/html/17_intro/howto.html: Update some links.
5706 * docs/html/18_support/howto.html: Link doxygen numeric_limits notes.
5707 * docs/html/27_io/howto.html: Link doxygen stdio_filebuf notes.
5708 * docs/html/ext/howto.html: Link to demangler notes and API.
5709 * docs/html/faq/index.html: Remove trailing whitespace.
5710 (1.4, 2.4, 3.8, 4.1): Bring up to date.
5711 (5.6): Change to a bulleted list.
5713 * docs/html/faq/index.txt, docs/html/documentation.html,
5714 docs/html/17_intro/porting.html: Regenerate.
5716 2003-04-23 Paolo Carlini <pcarlini@unitus.it>
5718 * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
5719 belongs to basic_filebuf.
5720 * testsuite/27_io/basic_fstream/3.cc: Likewise.
5721 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
5722 * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
5723 instantiation (now belongs to basic_filebuf).
5724 * testsuite/27_io/basic_iostream/3.cc: Likewise.
5725 * testsuite/27_io/basic_istream/3.cc: Likewise.
5726 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
5727 _S_pback_size now belongs to basic_filebuf.
5728 * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
5729 instantiation (now belongs to basic_filebuf).
5730 * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
5731 belongs to basic_filebuf.
5732 * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
5733 instantiation (now belongs to basic_filebuf).
5734 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
5735 _S_pback_size now belongs to basic_filebuf.
5736 * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
5737 instantiation (now belongs to basic_filebuf).
5738 * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
5740 * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
5741 instantiation (now belongs to basic_filebuf).
5742 * testsuite/27_io/basic_stringstream/3.cc: Likewise.
5744 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
5746 * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
5747 * configure: Regenerated.
5749 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
5751 * config/locale/generic/c_locale.h (__convert_from_v): Use
5754 2003-04-23 Phil Edwards <pme@gcc.gnu.org>
5756 * docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial
5757 implementation only.
5758 * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
5759 Comment and change to comply with DR 60 and the effect on gcount().
5760 * include/std/std_istream.h: Update comments.
5761 * testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add
5762 comments about reasons for tests. Test sync() against gcount().
5763 * testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test
5764 for effect on gcount().
5765 * testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test
5766 for effect on gcount().
5768 2003-04-22 Loren J. Rittle <ljrittle@acm.org>
5770 * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
5773 2003-04-22 Paolo Carlini <pcarlini@unitus.it>
5775 * include/std/std_streambuf.h (_S_pback_size, _M_pback,
5776 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
5777 _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
5778 (basic_streambuf::basic_streambuf()): Adjust.
5779 * include/std/std_fstream.h (_S_pback_size, _M_pback,
5780 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
5781 _M_pback_create(), _M_pback_destroy()): Moved here
5782 from basic_streambuf.
5783 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
5785 (basic_filebuf::_S_pback_size): Add declaration.
5786 * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
5789 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
5791 Consistently use _M_in_beg instead of eback(), _M_in_cur
5792 instead of gptr(), and so on.
5793 * include/bits/fstream.tcc (pbackfail, imbue): Here.
5794 * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
5795 * include/bits/streambuf.tcc (sbumpc, sputbackc,
5796 __copy_streambufs): Ditto.
5797 * include/std/std_streambuf.h (sgetc): Ditto.
5799 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
5801 * include/bits/sstream.tcc (pbackfail, overflow):
5804 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
5806 * include/std/std_streambuf.h (uflow()): It's used only by
5807 basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
5808 therefore do not consider the _M_buf_unified == true case.
5810 * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
5812 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
5814 * docs/html/ext/howto.html ('LWG Issues'):
5815 Add issues 19, 90, 171, 231, 271.
5817 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
5819 * include/bits/sstream.tcc (pbackfail): Remove redundant
5820 NULL pointer check from test involving _M_in_*.
5821 (overflow, seekoff, seekpos): Const qualify bool variables.
5822 * include/std/std_sstream.h (underflow): Remove redundant
5823 NULL pointer check from test involving _M_in_*.
5824 (_M_really_sync): Const qualify bool variables.
5825 * src/fstream.cc (_M_underflow_common): Remove redundant
5826 NULL pointer check from test involving _M_in_*, const qualify
5829 * include/std/std_streambuf.h (sgetc): Remove redundant
5832 2003-04-18 Paolo Carlini <pcarlini@unitus.it>
5834 According to 5.9 para 2 (second bullet) for pointers p, q
5835 pointing to the same type, with p == 0 and q == 0, (p < q)
5837 * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
5838 seekoff): Remove redundant NULL pointer checks from tests
5839 involving _M_out_* and _M_in_*, const qualify bool variables.
5840 (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
5841 qualify bool variables.
5842 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
5843 Remove redundant NULL pointer checks from tests involving
5844 _M_out_* and _M_in_*, const qualify bool variables.
5845 * include/std/std_fstream.h (sync): Likewise.
5846 (_M_is_indeterminate): Const qualify bool variables.
5847 * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
5848 NULL pointer checks from tests involving _M_out_* and _M_in_*,
5849 const qualify bool variables.
5850 (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
5853 2003-04-18 Loren J. Rittle <ljrittle@acm.org>
5855 * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
5856 C99 FP macros, if actually captured.
5858 * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
5859 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
5860 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
5861 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
5862 * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
5864 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
5865 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
5866 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
5867 * include/c_std/std_cstdlib.h: Use new macros.
5868 * include/c_std/std_cstdio.h: Use new macros.
5869 * include/c_std/std_cwchar.h: Use new macros.
5871 2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
5874 * include/bits/ostream.tcc: Catch all exceptions for formatted
5875 output, instead of std::exception and derivatives.
5876 * include/bits/istream.tcc: Same.
5877 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
5878 * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
5879 * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
5880 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
5881 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
5882 * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
5885 2003-04-17 Phil Edwards <pme@gcc.gnu.org>
5887 * include/bits/c++config: Minor cosmetic tweaks.
5889 2003-04-17 Loren J. Rittle <ljrittle@acm.org>
5891 * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
5892 * include/Makefile.am (pch_input): Find in ${target_builddir}.
5893 (pch_output): Rename to...
5894 (pch_output_builddir): ..this. Find in ${target_builddir}.
5895 (pch_source): Tweak.
5896 (pch_build): Key off a built file.
5897 (pch_output rule): Rename to...
5898 (pch_input rule): ...this. Produce ${pch_output_builddir}
5899 instead of ${pch_output}.
5900 (install-pch rule): Install ${pch_output_builddir}.
5901 * include/Makefile.in: Regenerated.
5903 2003-04-17 Paolo Carlini <pcarlini@unitus.it>
5905 * include/std/std_streambuf.h (setp): _M_out_lim, being
5906 the end limit of used put area, is set equal to _M_out_beg.
5908 2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
5910 * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
5911 * aclocal.m4: Regenerated.
5912 * configure.in: Remove old demangler bits.
5914 * configure: Regenerate.
5915 * config.h.in: Regenerate.
5916 * include/Makefile.am (allstamps): Now allstamped.
5917 (allcreated): Define this.
5918 (all-local): Use 'em.
5919 Conditionally define pch_build, pch_install based on
5921 (${pch_output}): New rule.
5922 (install-pch): New rule.
5923 (install-headers): New rule.
5924 (install-data-local): Install headers and conditionally pch.
5925 * include/Makefile.in: Regenerate.
5926 * testsuite_flags.in (--build-cxx): Use pch file.
5928 2003-04-16 Jonathan Wakely <redi@gcc.gnu.org>
5930 * docs/html/ext/sgiexts.html: Fix path to stylesheet.
5932 2003-04-15 Benjamin Kosnik <bkoz at redhat dot com>
5933 Paolo Carlini <pcarlini at unitus dot it>
5936 * docs/html/27_io/howto.html
5937 ('The buffering is screwing up my program!'): Explain that
5938 opening counts as an I/O operation.
5940 2003-04-15 Andreas Tobler <a.tobler@schweiz.ch>
5942 * testsuite/thread/pthread1.cc: Enable for darwin test.
5943 * testsuite/thread/pthread2.cc: Same.
5944 * testsuite/thread/pthread3.cc: Same.
5945 * testsuite/thread/pthread4.cc: Same.
5946 * testsuite/thread/pthread5.cc: Same.
5947 * testsuite/thread/pthread6.cc: Same.
5949 2003-04-15 Loren J. Rittle <ljrittle@acm.org>
5952 * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
5953 Populate it with multiple legal ways to obtain the C99 float
5954 transcendentals. Use them instead of direct global reference.
5955 (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
5956 * docs/html/17_intro/porting.texi
5957 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
5958 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
5959 (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
5960 * config/os/bsd/freebsd/os_defines.h
5961 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
5962 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
5963 * testsuite/26_numerics/c_math_dynamic.cc: New file.
5965 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
5966 Benjamin Kosnik <bkoz@redhat.com>
5968 * config/os/generic/ctype_inline.h: Fix.
5970 2003-04-14 Benjamin Kosnik <bkoz@redhat.com>
5972 * testsuite/testsuite_hooks.h
5973 (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
5974 Change to try_named_locale.
5975 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
5977 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
5979 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
5980 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
5981 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
5982 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
5983 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
5984 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
5985 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
5986 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
5987 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
5988 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
5989 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
5990 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
5991 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
5992 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
5993 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
5994 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
5995 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
5996 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
5997 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
5998 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
5999 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
6000 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
6001 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
6002 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
6003 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
6004 * testsuite/22_locale/collate/compare/char/1.cc: Same.
6005 * testsuite/22_locale/collate/compare/char/2.cc: Same.
6006 * testsuite/22_locale/collate/compare/char/3.cc: Same.
6007 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
6008 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
6009 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
6010 * testsuite/22_locale/collate/hash/char/2.cc: Same.
6011 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
6012 * testsuite/22_locale/collate/transform/char/2.cc: Same.
6013 * testsuite/22_locale/collate/transform/char/3.cc: Same.
6014 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
6015 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
6016 * testsuite/22_locale/collate_byname/1.cc: Same.
6017 * testsuite/22_locale/ctype/is/char/2.cc: Same.
6018 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
6019 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
6020 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
6021 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
6022 * testsuite/22_locale/facet/2.cc: Same.
6023 * testsuite/22_locale/locale/cons/2.cc: Same.
6024 * testsuite/22_locale/locale/cons/4.cc: Same.
6025 * testsuite/22_locale/locale/cons/5.cc: Same.
6026 * testsuite/22_locale/locale/cons/7.cc: Same.
6027 * testsuite/22_locale/locale/cons/7222-c.cc: Same.
6028 * testsuite/22_locale/locale/cons/7222-env.cc: Same.
6029 * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
6030 * testsuite/22_locale/messages/members/char/1.cc: Same.
6031 * testsuite/22_locale/messages/members/char/2.cc: Same.
6032 * testsuite/22_locale/messages/members/char/3.cc: Same.
6033 * testsuite/22_locale/messages_byname/1.cc: Same.
6034 * testsuite/22_locale/money_get/get/char/1.cc: Same.
6035 * testsuite/22_locale/money_get/get/char/2.cc: Same.
6036 * testsuite/22_locale/money_get/get/char/3.cc: Same.
6037 * testsuite/22_locale/money_get/get/char/4.cc: Same.
6038 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
6039 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
6040 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
6041 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
6042 * testsuite/22_locale/money_put/put/char/1.cc: Same.
6043 * testsuite/22_locale/money_put/put/char/2.cc: Same.
6044 * testsuite/22_locale/money_put/put/char/3.cc: Same.
6045 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
6046 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
6047 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
6048 * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
6049 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
6050 * testsuite/22_locale/moneypunct_byname/1.cc: Same.
6051 * testsuite/22_locale/num_get/get/char/1.cc: Same.
6052 * testsuite/22_locale/num_get/get/char/2.cc: Same.
6053 * testsuite/22_locale/num_get/get/char/3.cc: Same.
6054 * testsuite/22_locale/num_get/get/char/5.cc: Same.
6055 * testsuite/22_locale/num_get/get/char/6.cc: Same.
6056 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
6057 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
6058 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
6059 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
6060 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
6061 * testsuite/22_locale/num_put/put/char/1.cc: Same.
6062 * testsuite/22_locale/num_put/put/char/2.cc: Same.
6063 * testsuite/22_locale/num_put/put/char/3.cc: Same.
6064 * testsuite/22_locale/num_put/put/char/5.cc: Same.
6065 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
6066 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
6067 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
6068 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
6069 * testsuite/22_locale/numpunct/members/char/1.cc: Same.
6070 * testsuite/22_locale/numpunct/members/char/2.cc: Same.
6071 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
6072 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
6073 * testsuite/22_locale/numpunct_byname/1.cc: Same.
6074 * testsuite/22_locale/numpunct_byname/2.cc: Same.
6075 * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
6076 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
6077 * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
6078 * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
6079 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
6080 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
6081 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
6082 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
6083 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
6084 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
6085 * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
6086 * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
6087 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
6088 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
6089 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
6090 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
6091 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
6092 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
6093 * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
6094 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
6095 * testsuite/22_locale/time_put/put/char/1.cc: Same.
6096 * testsuite/22_locale/time_put/put/char/2.cc: Same.
6097 * testsuite/22_locale/time_put/put/char/3.cc: Same.
6098 * testsuite/22_locale/time_put/put/char/4.cc: Same.
6099 * testsuite/22_locale/time_put/put/char/5.cc: Same.
6100 * testsuite/22_locale/time_put/put/char/6.cc: Same.
6101 * testsuite/22_locale/time_put/put/char/7.cc: Same.
6102 * testsuite/22_locale/time_put/put/char/8.cc: Same.
6103 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
6104 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
6105 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
6106 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
6107 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
6108 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
6109 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
6110 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
6111 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
6112 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
6113 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
6114 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
6115 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
6117 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
6119 * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
6120 solaris includes, not generic.
6122 2003-04-14 Loren J. Rittle <ljrittle@acm.org>
6124 * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
6126 * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
6127 * include/bits/concept_check.h: Fix multi-line comment.
6128 * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
6129 when target is *-*-freebsd*.
6131 2003-04-14 Nathan Myers <ncm@cantrip.org>
6132 Paolo Carlini <pcarlini@unitus.it>
6134 PR libstdc++/9701 (in_avail())
6135 * include/std/std_streambuf.h (in_avail): Simplify, in_avail
6136 doesn't care if there is anything in some putback cell.
6137 * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
6139 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
6140 unused string literals.
6142 2003-04-14 Paolo Carlini <pcarlini@unitus.it>
6144 * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
6145 _M_out_end, _M_set_indeterminate() does it.
6147 2003-04-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6149 * os/hpux/ctype_inline.h: Replace with gnu-linux version.
6151 2003-04-12 David Edelsohn <edelsohn@gnu.org>
6153 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
6154 Change basic_streambuf instantiation to "unsigned char".
6155 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
6157 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
6159 Remove _M_buf_size_opt, use directly _M_buf_size instead.
6160 * include/bits/fstream.tcc
6161 (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
6162 references to _M_buf_size_opt.
6163 * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
6164 * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
6165 __bufsize to __in_avail and __size_opt to __buf_size.
6166 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
6167 * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
6168 * include/std/std_streambuf.h (~basic_streambuf(),
6169 basic_streambuf()): Likewise, remove _M_buf_size_opt member.
6170 * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
6171 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
6172 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
6173 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
6174 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
6175 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
6176 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
6177 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
6178 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
6179 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
6180 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
6181 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
6183 2003-04-12 Paolo Carlini <pcarlini at unitus dot it>
6185 * include/ext/stdio_filebuf.h
6186 (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
6187 stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
6188 _M_buf_size_opt == 0 only means "not to use an allocated buffer"
6189 since a stack-based buffer is used for small values of the size_t
6191 * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
6192 If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
6193 * testsuite/ext/stdio_filebuf_2.cc: New testfile.
6195 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
6198 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
6199 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
6201 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
6203 * testsuite/22_locale/locale/cons/3.cc: Split.
6204 * testsuite/22_locale/locale/cons/7222-c.cc: New.
6205 * testsuite/22_locale/locale/cons/7222-env.cc: New.
6206 Check before trying to create a locale from the environment.
6207 * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
6208 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
6211 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
6213 * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
6214 locale to construct this hybrid locale, not the global locale.
6216 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
6218 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
6219 instantiation for AIX.
6220 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
6221 * testsuite/25_algorithms/min_max.cc: Same.
6223 2003-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6225 * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
6226 twice. Always set _M_cfile to 0 when stream was open.
6228 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
6230 Reshuffle 27_io testsuite.
6231 * testsuite/27_io/filebuf.cc,
6232 filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
6233 filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
6234 filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
6235 filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
6236 ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
6237 ifstream_members.cc, instantiations.cc, ios.cc,
6238 ios_base_callbacks.cc, ios_base_members_static-1.tst,
6239 ios_base_members_static.cc, ios_base_storage.cc,
6240 ios_base_types.cc, ios_ctor.cc, ios_init.cc,
6241 ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
6242 iostream.cc, iostream_members.cc, istream.cc,
6243 istream_exception.cc, istream_extractor_char.cc,
6244 istream_extractor_other-1.tst, istream_extractor_other-1.txt,
6245 istream_extractor_other-2.tst, istream_extractor_other.cc,
6246 istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
6247 istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
6248 istream_sentry.cc, istream_unformatted-1.tst,
6249 istream_unformatted-1.txt, istream_unformatted.cc,
6250 istringstream.cc, istringstream_members.cc,
6251 narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
6252 ofstream_members.cc, ostream.cc, ostream_exception.cc,
6253 ostream_fail.cc, ostream_inserter_arith.cc,
6254 ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
6255 ostream_inserter_char.cc, ostream_inserter_other-1.tst,
6256 ostream_inserter_other-2.tst, ostream_inserter_other.cc,
6257 ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
6258 ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
6259 ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
6260 streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
6261 stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
6262 wide_stream_objects.cc, istream_extractor_arith/01.cc,
6263 istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
6264 istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
6265 istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
6266 istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
6267 istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
6269 * 27_io/basic_filebuf/1.cc: New.
6270 * 27_io/basic_filebuf/2.cc: New.
6271 * 27_io/basic_filebuf/3.cc: New.
6272 * 27_io/basic_filebuf/4.cc: New.
6273 * 27_io/basic_filebuf/close/char/1.cc: New.
6274 * 27_io/basic_filebuf/close/char/2.cc: New.
6275 * 27_io/basic_filebuf/close/char/3.cc: New.
6276 * 27_io/basic_filebuf/close/char/4879.cc: New.
6277 * 27_io/basic_filebuf/close/char/9964.cc: New.
6278 * 27_io/basic_filebuf/imbue/char/1.cc: New.
6279 * 27_io/basic_filebuf/imbue/char/9322.cc: New.
6280 * 27_io/basic_filebuf/in_avail/char/1.cc: New.
6281 * 27_io/basic_filebuf/is_open/char/1.cc: New.
6282 * 27_io/basic_filebuf/open/char/1.cc: New.
6283 * 27_io/basic_filebuf/open/char/2.cc: New.
6284 * 27_io/basic_filebuf/open/char/3.cc: New.
6285 * 27_io/basic_filebuf/open/char/9507.cc: New.
6286 * 27_io/basic_filebuf/overflow/char/1.cc: New.
6287 * 27_io/basic_filebuf/overflow/char/3599.cc: New.
6288 * 27_io/basic_filebuf/overflow/char/9169.cc: New.
6289 * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
6290 * 27_io/basic_filebuf/overflow/char/9988.cc: New.
6291 * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
6292 * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
6293 * 27_io/basic_filebuf/seekoff/char/1.cc: New.
6294 * 27_io/basic_filebuf/seekoff/char/2.cc: New.
6295 * 27_io/basic_filebuf/seekpos/char/1.cc: New.
6296 * 27_io/basic_filebuf/seekpos/char/2.cc: New.
6297 * 27_io/basic_filebuf/setbuf/char/1.cc: New.
6298 * 27_io/basic_filebuf/setbuf/char/2.cc: New.
6299 * 27_io/basic_filebuf/setbuf/char/3.cc: New.
6300 * 27_io/basic_filebuf/sgetc/char/1.cc: New.
6301 * 27_io/basic_filebuf/sgetn/char/1.cc: New.
6302 * 27_io/basic_filebuf/sgetn/char/2.cc: New.
6303 * 27_io/basic_filebuf/snextc/char/1.cc: New.
6304 * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
6305 * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
6306 * 27_io/basic_filebuf/sputc/char/1.cc: New.
6307 * 27_io/basic_filebuf/sputc/char/1057.cc: New.
6308 * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
6309 * 27_io/basic_filebuf/sputn/char/1.cc: New.
6310 * 27_io/basic_filebuf/sputn/char/1057.cc: New.
6311 * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
6312 * 27_io/basic_filebuf/sungetc/char/1.cc: New.
6313 * 27_io/basic_filebuf/sync/char/1057.cc: New.
6314 * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
6315 * 27_io/basic_filebuf/underflow/char/10097.cc: New.
6316 * 27_io/basic_fstream/1.cc: New.
6317 * 27_io/basic_fstream/2.cc: New.
6318 * 27_io/basic_fstream/3.cc: New.
6319 * 27_io/basic_fstream/4.cc: New.
6320 * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
6321 * 27_io/basic_ifstream/1.cc: New.
6322 * 27_io/basic_ifstream/2.cc: New.
6323 * 27_io/basic_ifstream/3.cc: New.
6324 * 27_io/basic_ifstream/4.cc: New.
6325 * 27_io/basic_ifstream/cons/char/1.cc: New.
6326 * 27_io/basic_ifstream/open/char/1.cc: New.
6327 * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
6328 * 27_io/basic_ios/1.cc: New.
6329 * 27_io/basic_ios/2.cc: New.
6330 * 27_io/basic_ios/3.cc: New.
6331 * 27_io/basic_ios/4.cc: New.
6332 * 27_io/basic_ios/clear/char/1.cc: New.
6333 * 27_io/basic_ios/cons/char/1.cc: New.
6334 * 27_io/basic_ios/cons/char/2.cc: New.
6335 * 27_io/basic_ios/cons/char/3.cc: New.
6336 * 27_io/basic_ios/copyfmt/char/1.cc: New.
6337 * 27_io/basic_ios/copyfmt/char/2.cc: New.
6338 * 27_io/basic_ios/exceptions/char/1.cc: New.
6339 * 27_io/basic_ios/locales/char/1.cc: New.
6340 * 27_io/basic_iostream/1.cc: New.
6341 * 27_io/basic_iostream/2.cc: New.
6342 * 27_io/basic_iostream/3.cc: New.
6343 * 27_io/basic_iostream/4.cc: New.
6344 * 27_io/basic_istream/1.cc: New.
6345 * 27_io/basic_istream/2.cc: New.
6346 * 27_io/basic_istream/3.cc: New.
6347 * 27_io/basic_istream/4.cc: New.
6348 * 27_io/basic_istream/exceptions/char/9561.cc: New.
6349 * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
6350 * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
6351 * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
6352 * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
6353 * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
6354 * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
6355 * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
6356 * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
6357 * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
6358 * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
6359 * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
6360 * 27_io/basic_istream/extractors_character/char/1.cc: New.
6361 * 27_io/basic_istream/extractors_character/char/2.cc: New.
6362 * 27_io/basic_istream/extractors_character/char/3.cc: New.
6363 * 27_io/basic_istream/extractors_character/char/9826.cc: New.
6364 * 27_io/basic_istream/extractors_other/char/1.cc: New.
6365 * 27_io/basic_istream/extractors_other/char/2.cc: New.
6366 * 27_io/basic_istream/extractors_other/char/3.cc: New.
6367 * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
6368 * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
6369 * 27_io/basic_istream/get/char/1.cc: New.
6370 * 27_io/basic_istream/get/char/2.cc: New.
6371 * 27_io/basic_istream/getline/char/1.cc: New.
6372 * 27_io/basic_istream/getline/char/2.cc: New.
6373 * 27_io/basic_istream/getline/char/3.cc: New.
6374 * 27_io/basic_istream/ignore/char/1.cc: New.
6375 * 27_io/basic_istream/ignore/char/6360.cc: New.
6376 * 27_io/basic_istream/ignore/char/7220.cc: New.
6377 * 27_io/basic_istream/peek/char/1.cc: New.
6378 * 27_io/basic_istream/peek/char/6414.cc: New.
6379 * 27_io/basic_istream/putback/char/1.cc: New.
6380 * 27_io/basic_istream/read/char/1.cc: New.
6381 * 27_io/basic_istream/read/char/2.cc: New.
6382 * 27_io/basic_istream/read/char/3.cc: New.
6383 * 27_io/basic_istream/readsome/char/6746-1.cc: New.
6384 * 27_io/basic_istream/readsome/char/6746-2.cc: New.
6385 * 27_io/basic_istream/readsome/char/8258.cc: New.
6386 * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
6387 * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
6388 * 27_io/basic_istream/seekg/char/8348-1.cc: New.
6389 * 27_io/basic_istream/seekg/char/8348-2.cc: New.
6390 * 27_io/basic_istream/seekg/char/fstream.cc: New.
6391 * 27_io/basic_istream/seekg/char/sstream.cc: New.
6392 * 27_io/basic_istream/sentry/char/1.cc: New.
6393 * 27_io/basic_istream/sentry/char/2.cc: New.
6394 * 27_io/basic_istream/sentry/char/3.cc: New.
6395 * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
6396 * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
6397 * 27_io/basic_istream/tellg/char/1.cc: New.
6398 * 27_io/basic_istream/tellg/char/8348.cc: New.
6399 * 27_io/basic_istream/tellg/char/fstream.cc: New.
6400 * 27_io/basic_istream/tellg/char/sstream.cc: New.
6401 * 27_io/basic_istream/ws/char/1.cc: New.
6402 * 27_io/basic_istringstream/1.cc: New.
6403 * 27_io/basic_istringstream/2.cc: New.
6404 * 27_io/basic_istringstream/3.cc: New.
6405 * 27_io/basic_istringstream/4.cc: New.
6406 * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
6407 * 27_io/basic_istringstream/str/char/1.cc: New.
6408 * 27_io/basic_ofstream/1.cc: New.
6409 * 27_io/basic_ofstream/2.cc: New.
6410 * 27_io/basic_ofstream/3.cc: New.
6411 * 27_io/basic_ofstream/4.cc: New.
6412 * 27_io/basic_ofstream/cons/char/2.cc: New.
6413 * 27_io/basic_ofstream/open/char/1.cc: New.
6414 * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
6415 * 27_io/basic_ostream/1.cc: New.
6416 * 27_io/basic_ostream/2.cc: New.
6417 * 27_io/basic_ostream/3.cc: New.
6418 * 27_io/basic_ostream/4.cc: New.
6419 * 27_io/basic_ostream/cons/char/9827.cc: New.
6420 * 27_io/basic_ostream/endl/char/1.cc: New.
6421 * 27_io/basic_ostream/ends/char/1.cc: New.
6422 * 27_io/basic_ostream/ends/char/2.cc: New.
6423 * 27_io/basic_ostream/exceptions/char/9561.cc: New.
6424 * 27_io/basic_ostream/flush/char/1.cc: New.
6425 * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
6426 * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
6427 * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
6428 * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
6429 * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
6430 * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
6431 * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
6432 * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
6433 * 27_io/basic_ostream/inserters_character/char/1.cc: New.
6434 * 27_io/basic_ostream/inserters_character/char/2.cc: New.
6435 * 27_io/basic_ostream/inserters_character/char/3.cc: New.
6436 * 27_io/basic_ostream/inserters_character/char/4.cc: New.
6437 * 27_io/basic_ostream/inserters_character/char/5.cc: New.
6438 * 27_io/basic_ostream/inserters_character/char/6.cc: New.
6439 * 27_io/basic_ostream/inserters_character/char/8.cc: New.
6440 * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
6441 * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
6442 * 27_io/basic_ostream/inserters_other/char/1.cc: New.
6443 * 27_io/basic_ostream/inserters_other/char/2.cc: New.
6444 * 27_io/basic_ostream/inserters_other/char/3.cc: New.
6445 * 27_io/basic_ostream/inserters_other/char/4.cc: New.
6446 * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
6447 * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
6448 * 27_io/basic_ostream/sentry/char/1.cc: New.
6449 * 27_io/basic_ostream/sentry/char/2.cc: New.
6450 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
6451 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
6452 * 27_io/basic_ostream/tellp/char/1.cc: New.
6453 * 27_io/basic_ostream/tellp/char/2.cc: New.
6454 * 27_io/basic_ostringstream/1.cc: New.
6455 * 27_io/basic_ostringstream/2.cc: New.
6456 * 27_io/basic_ostringstream/3.cc: New.
6457 * 27_io/basic_ostringstream/4.cc: New.
6458 * 27_io/basic_ostringstream/cons/char/3.cc: New.
6459 * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
6460 * 27_io/basic_ostringstream/str/char/1.cc: New.
6461 * 27_io/basic_ostringstream/str/char/2.cc: New.
6462 * 27_io/basic_streambuf/1.cc: New.
6463 * 27_io/basic_streambuf/2.cc: New.
6464 * 27_io/basic_streambuf/3.cc: New.
6465 * 27_io/basic_streambuf/cons/char/1.cc: New.
6466 * 27_io/basic_streambuf/imbue/char/1.cc: New.
6467 * 27_io/basic_streambuf/imbue/char/9322.cc: New.
6468 * 27_io/basic_streambuf/overflow/char/1.cc: New.
6469 * 27_io/basic_streambuf/overflow/char/2.cc: New.
6470 * 27_io/basic_streambuf/overflow/char/3599.cc: New.
6471 * 27_io/basic_streambuf/sgetc/char/1.cc: New.
6472 * 27_io/basic_streambuf/sgetn/char/1.cc: New.
6473 * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
6474 * 27_io/basic_streambuf/sputc/char/1057.cc: New.
6475 * 27_io/basic_streambuf/sputn/char/1.cc: New.
6476 * 27_io/basic_streambuf/sputn/char/1057.cc: New.
6477 * 27_io/basic_streambuf/sync/char/1057.cc: New.
6478 * 27_io/basic_stringbuf/1.cc: New.
6479 * 27_io/basic_stringbuf/2.cc: New.
6480 * 27_io/basic_stringbuf/3.cc: New.
6481 * 27_io/basic_stringbuf/4.cc: New.
6482 * 27_io/basic_stringbuf/5.cc: New.
6483 * 27_io/basic_stringbuf/imbue/char/1.cc: New.
6484 * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
6485 * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
6486 * 27_io/basic_stringbuf/overflow/char/2.cc: New.
6487 * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
6488 * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
6489 * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
6490 * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
6491 * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
6492 * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
6493 * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
6494 * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
6495 * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
6496 * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
6497 * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
6498 * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
6499 * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
6500 * 27_io/basic_stringbuf/snextc/char/1.cc: New.
6501 * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
6502 * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
6503 * 27_io/basic_stringbuf/sputc/char/1.cc: New.
6504 * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
6505 * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
6506 * 27_io/basic_stringbuf/sputn/char/1.cc: New.
6507 * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
6508 * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
6509 * 27_io/basic_stringbuf/str/char/1.cc: New.
6510 * 27_io/basic_stringbuf/str/char/2.cc: New.
6511 * 27_io/basic_stringbuf/str/char/3.cc: New.
6512 * 27_io/basic_stringbuf/str/char/3955.cc: New.
6513 * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
6514 * 27_io/basic_stringbuf/sync/char/1057.cc: New.
6515 * 27_io/basic_stringstream/1.cc: New.
6516 * 27_io/basic_stringstream/2.cc: New.
6517 * 27_io/basic_stringstream/3.cc: New.
6518 * 27_io/basic_stringstream/4.cc: New.
6519 * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
6520 * 27_io/basic_stringstream/str/char/1.cc: New.
6521 * 27_io/basic_stringstream/str/char/2.cc: New.
6522 * 27_io/basic_stringstream/str/char/3.cc: New.
6523 * 27_io/basic_stringstream/str/char/4.cc: New.
6524 * 27_io/fpos/1.cc: New.
6525 * 27_io/fpos/2.cc: New.
6526 * 27_io/fpos/3.cc: New.
6527 * 27_io/ios_base/callbacks/1.cc: New.
6528 * 27_io/ios_base/state/1.cc: New.
6529 * 27_io/ios_base/storage/1.cc: New.
6530 * 27_io/ios_base/storage/2.cc: New.
6531 * 27_io/ios_base/storage/3.cc: New.
6532 * 27_io/ios_base/sync_with_stdio/1.cc: New.
6533 * 27_io/ios_base/sync_with_stdio/2.cc: New.
6534 * 27_io/manipulators/adjustfield/char/1.cc: New.
6535 * 27_io/manipulators/adjustfield/char/2.cc: New.
6536 * 27_io/manipulators/basefield/char/1.cc: New.
6537 * 27_io/manipulators/standard/char/1.cc: New.
6538 * 27_io/manipulators/standard/char/2.cc: New.
6539 * 27_io/objects/char/1.cc: New.
6540 * 27_io/objects/char/2.cc: New.
6541 * 27_io/objects/char/2523-1_xin.cc: New.
6542 * 27_io/objects/char/2523-1_xin.in: New.
6543 * 27_io/objects/char/2523-2_xin.cc: New.
6544 * 27_io/objects/char/2523-2_xin.in: New.
6545 * 27_io/objects/char/3045.cc: New.
6546 * 27_io/objects/char/3647.cc: New.
6547 * 27_io/objects/char/3_xin.cc: New.
6548 * 27_io/objects/char/3_xin.in: New.
6549 * 27_io/objects/char/4_xin.cc: New.
6550 * 27_io/objects/char/4_xin.in: New.
6551 * 27_io/objects/char/5268.cc: New.
6552 * 27_io/objects/char/5280_xin.cc: New.
6553 * 27_io/objects/char/5280_xin.in: New.
6554 * 27_io/objects/char/6548_xin.cc: New.
6555 * 27_io/objects/char/6548_xin.in: New.
6556 * 27_io/objects/char/6648-1_xin.cc: New.
6557 * 27_io/objects/char/6648-1_xin.in: New.
6558 * 27_io/objects/char/6648-2_xin.cc: New.
6559 * 27_io/objects/char/6648-2_xin.in: New.
6560 * 27_io/objects/char/7744_xin.cc: New.
6561 * 27_io/objects/char/7744_xin.in: New.
6562 * 27_io/objects/wchar_t/1.cc: New.
6563 * 27_io/types/1.cc: New.
6564 * 27_io/types/2.cc: New.
6565 * data/filebuf_members-1.tst: New.
6566 * data/filebuf_members-1.txt: New.
6567 * data/filebuf_virtuals-1.tst: New.
6568 * data/filebuf_virtuals-1.txt: New.
6569 * data/filebuf_virtuals-2.tst: New.
6570 * data/filebuf_virtuals-3.tst: New.
6571 * data/ifstream_members-1.tst: New.
6572 * data/ifstream_members-1.txt: New.
6573 * data/ios_base_members_static-1.tst: New.
6574 * data/istream_extractor_other-1.tst: New.
6575 * data/istream_extractor_other-1.txt: New.
6576 * data/istream_extractor_other-2.tst: New.
6577 * data/istream_seeks-1.tst: New.
6578 * data/istream_seeks-1.txt: New.
6579 * data/istream_seeks-2.tst: New.
6580 * data/istream_seeks-3.tst: New.
6581 * data/istream_unformatted-1.tst: New.
6582 * data/istream_unformatted-1.txt: New.
6583 * data/ofstream_members-1.tst: New.
6584 * data/ostream_inserter_char-1.tst: New.
6585 * data/ostream_inserter_char-1.txt: New.
6586 * data/ostream_inserter_other-1.tst: New.
6587 * data/ostream_inserter_other-2.tst: New.
6588 * data/ostream_seeks-1.tst: New.
6590 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
6592 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
6593 requirement that __mode must be strict input or output.
6595 * include/std/std_streambuf.h (basic_streambuf::setp): Set
6598 * include/std/std_sstream.h (basic_strinbuf::str): Zero length
6599 output string shouldn't core.
6600 (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
6602 * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
6604 * include/bits/istream.tcc (basic_istream::putback): Set gcount to
6607 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
6609 * testsuite/data: New directory.
6610 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
6611 to copy files from the testsuite data directory.
6612 (libstdc++-v3-list-sourcefiles): Add another test list filter, for
6613 testfiles containing _xin, which now means this is an interactive
6614 test and should be run with the interactive dejagnu hooks.
6615 * testsuite/Makefile.am: Remove testsuite_* files.
6616 * testsuite/Makefile.in: Regenerate.
6618 2003-04-09 Zack Weinberg <zack@codesourcery.com>
6620 * docs/html/install.html: Document complete list of locales
6621 required by test suite. Document procedure for installing
6622 said locales under Debian. Solicit instructions for other
6625 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
6627 * include/bits/sstream.tcc (overflow): Make sure operands of min
6628 and max have the same type.
6630 2003-04-04 Jerry Quinn <jlquinn@optonline.net>
6633 * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
6636 2003-03-31 Paolo Carlini <pcarlini@unitus.it>
6638 * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
6639 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
6640 Don't set _M_out_end.
6641 (basic_filebuf::overflow): Replace _M_out_buf_size() with
6642 this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
6643 * include/bits/sstream.tcc (basic_stringbuf::overflow):
6644 Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
6645 * include/bits/streambuf.tcc (basic_streambuf::sputc):
6646 Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
6647 (basic_streambuf::xsputn): Replace _M_out_buf_size() with
6648 _M_out_end - _M_out_cur.
6649 (__copy_streambufs): Likewise.
6650 * include/std/std_fstream.h (_M_set_determinate): Set
6653 2003-03-30 Paolo Carlini <pcarlini@unitus.it>
6655 * include/bits/fstream.tcc (basic_filebuf::showmanyc,
6656 _M_convert_to_external, _M_really_overflow, seekoff): Fix
6657 test for synced buffer.
6658 * include/std/std_fstream.h (sync): Likewise.
6659 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
6660 basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
6662 2003-03-28 Benjamin Kosnik <bkoz@redhat.com>
6664 * include/std/std_sstream.h (basic_istringstream): Adjust
6666 (basic_ostringstream): Same.
6667 (basic_stringstream): Same.
6668 * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
6669 (basic_ofstream): Same.
6670 (basic_fstream): Same.
6671 * include/std/std_ostream.h (basic_ostrem): Add protected ctor
6672 that does not call init.
6673 * include/std/std_istream.h (basic_istream): Same.
6674 (basic_iostream): Construct istream, ostream uninitialized, use
6675 init to initialize just once. Add protected ctor that does not
6678 2003-03-28 Paolo Carlini <pcarlini@unitus.it>
6679 Nathan Myers <ncm@cantrip.org>
6682 * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
6684 (basic_filebuf<>::showmanyc): Use the information provided
6685 by codecvt and __basic_file<>::showmanyc_helper to implement
6686 a non-trivial showmanyc.
6687 * config/io/basic_file_stdio.h
6688 (__basic_file<>::showmanyc_helper): New, declare.
6689 * config/io/basic_file_stdio.cc
6690 (__basic_file<>::showmanyc_helper): Define.
6691 (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
6692 (__basic_file<char>::open): Don't call fcntl().
6693 * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
6694 GLIBCPP_CHECK_POLL): New macros.
6695 * configure.in: Call here.
6696 * acconfig.h: Add #undefs for the corresponding symbols.
6697 * aclocal.m4: Regenerate.
6698 * configure: Regenerate.
6699 * config.h.in: Regenerate.
6701 2003-03-24 Benjamin Kosnik <bkoz@redhat.com>
6703 * config/linker-map.gnu: Remove string export restrictions.
6705 2003-03-24 Paolo Carlini <pcarlini@unitus.it>
6707 * testsuite/21_strings/basic_string/find/char/1.cc: Remove
6708 find_first_of, find_last_of and find_last_not_of tests.
6709 * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
6710 tests here, new file.
6711 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
6712 remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
6713 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
6714 wchar_t find_first_of tests here, new file.
6715 * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
6717 * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
6719 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
6720 wchar_t find_last_of tests here.
6721 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
6722 wchar_t find_last_not_of tests here.
6724 2003-03-22 Loren J. Rittle <ljrittle@acm.org>
6726 * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
6727 Correct return value.
6729 2003-03-21 Jerry Quinn <jlquinn@optonline.net>
6732 * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
6733 * include/std/std_complex.h (norm): Use faster,
6734 less accurate computation for builtin float types under --fast-math.
6736 2003-03-21 Magnus Fromreide <gnats@magfr.user.lysator.liu.se>
6738 * testsuite/testsuite_hooks.h: Fix warning nits.
6740 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
6742 * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
6743 Only .set mips2 for the o32 ABI.
6745 2003-03-19 Paolo Carlini <pcarlini@unitus.it>
6747 * testsuite/21_strings/char_traits/requirements/char/1.cc:
6748 Test char not wchar_t.
6750 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
6752 * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
6753 Correct size, taking into account sizeof(wchar_t).
6755 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
6757 Reshuffle 21_strings testsuite.
6758 * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
6759 assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
6760 element_access.cc, operations.cc, char_traits_requirements.cc,
6761 find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
6762 compare.cc, inserters_extractors.cc, substr.cc: Split up, add
6763 wchar_t tests as follows.
6764 * 21_strings/basic_string/append/char/1.cc: New.
6765 * 21_strings/basic_string/append/wchar_t/1.cc: New.
6766 * 21_strings/basic_string/assign/char/1.cc: New.
6767 * 21_strings/basic_string/assign/char/2.cc: New.
6768 * 21_strings/basic_string/assign/char/3.cc: New.
6769 * 21_strings/basic_string/assign/wchar_t/1.cc: New.
6770 * 21_strings/basic_string/assign/wchar_t/2.cc: New.
6771 * 21_strings/basic_string/assign/wchar_t/3.cc: New.
6772 * 21_strings/basic_string/capacity/1.cc: New.
6773 * 21_strings/basic_string/capacity/char/1.cc: New.
6774 * 21_strings/basic_string/capacity/char/2.cc: New.
6775 * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
6776 * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
6777 * 21_strings/basic_string/compare/char/1.cc: New.
6778 * 21_strings/basic_string/compare/wchar_t/1.cc: New.
6779 * 21_strings/basic_string/cons/char/1.cc: New.
6780 * 21_strings/basic_string/cons/char/2.cc: New.
6781 * 21_strings/basic_string/cons/char/3.cc: New.
6782 * 21_strings/basic_string/cons/char/4.cc: New.
6783 * 21_strings/basic_string/cons/char/5.cc: New.
6784 * 21_strings/basic_string/cons/wchar_t/1.cc: New.
6785 * 21_strings/basic_string/cons/wchar_t/2.cc: New.
6786 * 21_strings/basic_string/cons/wchar_t/3.cc: New.
6787 * 21_strings/basic_string/cons/wchar_t/4.cc: New.
6788 * 21_strings/basic_string/cons/wchar_t/5.cc: New.
6789 * 21_strings/basic_string/element_access/char/1.cc: New.
6790 * 21_strings/basic_string/element_access/char/2.cc: New.
6791 * 21_strings/basic_string/element_access/char/3.cc: New.
6792 * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
6793 * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
6794 * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
6795 * 21_strings/basic_string/find/char/1.cc: New.
6796 * 21_strings/basic_string/find/wchar_t/1.cc: New.
6797 * 21_strings/basic_string/insert/char/1.cc: New.
6798 * 21_strings/basic_string/insert/char/2.cc: New.
6799 * 21_strings/basic_string/insert/wchar_t/1.cc: New.
6800 * 21_strings/basic_string/insert/wchar_t/2.cc: New.
6801 * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
6802 * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
6803 * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
6804 * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
6805 * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
6806 * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
6807 * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
6808 * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
6809 * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
6810 * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
6811 * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
6812 * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
6813 * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
6814 * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
6815 * 21_strings/basic_string/operators/char/1.cc: New.
6816 * 21_strings/basic_string/operators/char/2.cc: New.
6817 * 21_strings/basic_string/operators/wchar_t/1.cc: New.
6818 * 21_strings/basic_string/operators/wchar_t/2.cc: New.
6819 * 21_strings/basic_string/replace/char/1.cc: New.
6820 * 21_strings/basic_string/replace/char/2.cc: New.
6821 * 21_strings/basic_string/replace/char/3.cc: New.
6822 * 21_strings/basic_string/replace/char/4.cc: New.
6823 * 21_strings/basic_string/replace/char/5.cc: New.
6824 * 21_strings/basic_string/replace/wchar_t/1.cc: New.
6825 * 21_strings/basic_string/replace/wchar_t/2.cc: New.
6826 * 21_strings/basic_string/replace/wchar_t/3.cc: New.
6827 * 21_strings/basic_string/replace/wchar_t/4.cc: New.
6828 * 21_strings/basic_string/replace/wchar_t/5.cc: New.
6829 * 21_strings/basic_string/rfind/char/1.cc: New.
6830 * 21_strings/basic_string/rfind/char/2.cc: New.
6831 * 21_strings/basic_string/rfind/char/3.cc: New.
6832 * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
6833 * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
6834 * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
6835 * 21_strings/basic_string/substr/char/1.cc: New.
6836 * 21_strings/basic_string/substr/wchar_t/1.cc: New.
6837 * 21_strings/c_strings/char/1.cc: New.
6838 * 21_strings/c_strings/char/2.cc: New.
6839 * 21_strings/c_strings/wchar_t/1.cc: New.
6840 * 21_strings/c_strings/wchar_t/2.cc: New.
6841 * 21_strings/char_traits/requirements/char/1.cc: New.
6842 * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
6843 * 21_strings/char_traits/typedefs/char/1.cc: New.
6845 2003-03-17 Paolo Carlini <pcarlini@unitus.it>
6846 Petur Runolfsson <peturr02@ru.is>
6849 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
6850 basic_filebuf<wchar_t>::_M_underflow_common):
6851 if (gptr() < egptr()) return *gptr().
6852 * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
6854 * testsuite/27_io/filebuf_members.cc (test_04): Minor
6855 changes: unlink fifo before making it, fix spelling error.
6857 2003-03-17 Benjamin Kosnik <bkoz@redhat.com>
6859 * testsuite/Makefile.am (CLEANFILES): Add tmp*.
6860 * testsuite/Makefile.in: Regenerate.
6861 * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
6864 2003-03-17 Petur Runolfsson <peturr02@ru.is>
6867 * include/bits/fstream.tcc (basic_filebuf::close):
6868 Always close file, even when write fails.
6869 * testsuite/27_io/filebuf_members.cc (test_07): New test.
6871 2003-03-17 Danny Smith <dannysmith@users.sourceforge.net>
6873 * libsupc++/Makefile.am (C_COMPILE): Remove.
6874 (LTCOMPILE): Likewise.
6875 * libsupc++/Makefile.in: Regenerate.
6877 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
6879 * testsuite/23_containers/bitset_members.cc: Add test variable.
6880 * testsuite/23_containers/map_insert.cc: Same.
6881 * testsuite/22_locale/ctype/cons/char/1.cc: Same.
6882 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
6883 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
6884 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
6885 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
6886 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
6887 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
6888 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
6889 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
6890 * testsuite/27_io/istream_exception.cc: Same.
6891 * testsuite/27_io/filebuf_virtuals.cc: Same.
6892 * testsuite/27_io/stringbuf_virtuals.cc: Same.
6893 * testsuite/27_io/ostream_inserter_arith.cc: Same.
6894 * testsuite/26_numerics/valarray_operators.cc: Same.
6895 * testsuite/26_numerics/slice.cc: Same.
6896 * testsuite/26_numerics/slice_array_assignment.cc: Same.
6897 * testsuite/24_iterators/istream_iterator.cc: Same.
6898 * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
6900 2003-03-14 Petur Runolfsson <peturr02@ru.is>
6904 * config/locale/generic/ctype_members.cc,
6905 * config/locale/gnu/ctype_members.cc
6906 (ctype<wchar_t>::do_widen(char)): Cast argument to
6907 unsigned char before passing to btowc.
6908 (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
6909 Convert characters with btowc instead of mbsrtowcs.
6910 (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
6912 Convert characters with wctob instead of wcsrtombs.
6913 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: New test.
6914 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: New test.
6915 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: New test.
6917 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
6919 * include/stdc++.h: New.
6920 * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
6921 * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
6922 * include/Makefile.in: Regenerate.
6923 * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
6924 (--cxxflags): Put -g -O2 here.
6925 * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
6927 2003-03-14 Loren J. Rittle <ljrittle@acm.org>
6929 * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
6930 missing named locale.
6932 2003-03-14 Andreas Schwab <schwab@suse.de>
6934 * configure.in: Only append to makefiles that are newly created to
6935 avoid multiple multi-do/multi-clean rules.
6936 * configure: Rebuilt.
6938 2003-03-13 Jonathan Wakely <redi@gcc.gnu.org>
6940 * docs/html/configopts.html, docs/html/documentation.html,
6941 docs/html/explanations.html, docs/html/install.html,
6942 docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
6943 invalid XHTML and make page header style consistent.
6945 2003-03-12 Jonathan Wakely <redi@gcc.gnu.org>
6947 * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
6948 * docs/html/faq/index.txt: Regenerate.
6949 * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
6951 2003-03-12 Andreas Schwab <schwab@suse.de>
6953 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
6954 glibcpp_toolexeclibdir.
6955 * aclocal.m4, configure: Rebuilt.
6957 2003-03-11 Jonathan Wakely <redi@gcc.gnu.org>
6959 * docs/html/faq/index.html: Update text about location of headers.
6960 * docs/html/faq/index.txt: Regenerate.
6962 2003-03-11 Carlo Wood <carlo@alinoe.com>
6964 * include/bits/demangle.h: Prepend accessors of
6965 class qualifier with 'get_' in order to fix warnings
6966 when compiling with -Wshadow.
6968 2003-03-11 Loren J. Rittle <ljrittle@acm.org>
6970 * config/os/bsd/freebsd/ctype_inline.h: Support _M_table
6972 * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
6974 * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
6975 report lack of setenv().
6977 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
6979 * config/io/basic_file_stdio.cc: include <unistd.h>.
6981 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
6982 Nathan Myers <ncm@cantrip.org>
6985 * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
6986 seekoff, seekpos): Add a boolean parameter __stdio.
6987 * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
6988 seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
6989 fseek/ftell, respectively), otherwise read (write, lseek, lseek,
6991 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
6992 _M_really_overflow, seekoff): Use the boolean parameter in the calls.
6993 * include/std/std_fstream.h (sync): Likewise.
6994 * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
6995 * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
6996 libstdc++/8399 commit involving isatty(0).
6997 * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
6998 (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
6999 * configure.in: Remove call.
7000 * aclocal.m4: Regenerate.
7001 * config.h.in: Regenerate.
7002 * configure: Regenerate.
7003 * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
7005 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
7008 * include/bits/fstream.tcc (overflow): don't write EOF to file.
7009 * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
7011 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
7014 * include/bits/basic_ios.h (_M_setstate): New.
7015 * include/bits/ostream.tcc (operator<<): Use it.
7016 * include/bits/istream.tcc (operator>>): Use it.
7017 * include/std/std_ostream.h (operator<<): Make friends.
7018 * include/std/std_istream.h (operator>>): Make friends.
7019 * testsuite/27_io/ostream_exception.cc,
7020 testsuite/27_io/istream_exception.cc: New tests.
7022 2003-03-08 Benjamin Kosnik <bkoz@redhat.com>
7024 * include/bits/locale_facets.tcc: Fix typo.
7026 2003-03-08 Loren J. Rittle <ljrittle@acm.org>
7028 * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
7030 * config/locale/generic/c_locale.cc
7031 (locale::facet::_S_create_c_locale): Throw runtime exception when
7032 unsupported language is specified.
7033 * testsuite/testsuite_hooks.h
7034 (run_test_wrapped_generic_locale_exception_catcher): New function.
7035 * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
7036 Suppress runtime exception thrown by generic implementation.
7037 (run_tests_wrapped_env): Likewise.
7038 (run_test_wrapped_generic_locale_exception_catcher): New function.
7039 * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
7040 * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
7041 * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
7042 * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
7043 * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
7044 * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
7045 * testsuite/22_locale/collate_byname/1.cc: New test wrap.
7046 * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
7047 * testsuite/22_locale/facet/2.cc: New test wrap.
7048 * testsuite/22_locale/locale/cons/4.cc: New test wrap.
7049 * testsuite/22_locale/locale/cons/5.cc: New test wrap.
7050 * testsuite/22_locale/locale/cons/7.cc: New test wrap.
7051 * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
7052 * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
7053 * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
7054 * testsuite/22_locale/messages_byname/1.cc: New test wrap.
7055 * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
7056 * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
7057 * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
7058 * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
7059 * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
7060 * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
7061 * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
7062 * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
7063 * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
7064 * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
7065 * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
7066 * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
7067 * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
7068 * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
7069 * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
7070 * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
7071 * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
7072 * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
7073 * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
7074 * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
7075 * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
7076 * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
7077 * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
7078 * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
7079 * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
7080 * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
7081 * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
7082 * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
7083 * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
7084 * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
7085 * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
7086 * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
7087 * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
7088 * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
7089 * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
7090 * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
7091 * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
7092 * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
7093 * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
7094 * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
7095 * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
7096 * testsuite/27_io/ios_members.cc: New test wrap.
7097 * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
7099 * testsuite/27_io/streambuf_members.cc: New test wrap.
7100 * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
7102 2003-03-08 Paolo Carlini <pcarlini@unitus.it>
7103 Petur Runolfsson <peturr02@ru.is>
7106 * include/bits/streambuf.tcc (__copy_streambufs): Use
7107 sgetn-sputn only when sputn cannot fail, otherwise fall back
7108 to safe snextc-sputc.
7109 * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
7111 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
7113 * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
7114 locale cache for truename and falsename.
7116 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
7118 * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
7119 _M_word_size initialization.
7121 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
7123 * include/bits/fstream.tcc (_M_convert_to_external):
7124 Set __elen to zero if codecvt::out eventually fails.
7126 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
7129 * include/bits/fstream.tcc (_M_really_overflow): Check
7130 for _M_convert_to_external possible failures.
7131 * include/std/std_fstream.h (sync): Check _M_really_overflow
7132 return value and return -1 in case of failure.
7133 * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
7135 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
7138 * include/bits/istream.tcc (operator>>(_CharT*),
7139 operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
7140 * testsuite/27_io/stringstream.cc (test02): Add.
7142 * include/bits/istream.tcc (operator>>(_CharT*)):
7143 Assign a char_type to *__s.
7145 2003-03-07 Petur Runolfsson <peturr02@ru.is>
7148 * include/bits/locale_facets.tcc
7149 (collate::do_compare, collate::do_transform):
7150 Handle nul characters in input.
7151 * testsuite/22_locale/collate/compare/char/3.cc: New test.
7152 * testsuite/22_locale/collate/compare/wchar_t/3.cc: New test.
7153 * testsuite/22_locale/collate/transform/char/3.cc: New test.
7154 * testsuite/22_locale/collate/transform/wchar_t/3.cc: New test.
7156 2003-03-07 Jerry Quinn <jlquinn@optonline.net>
7158 * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
7160 * testsuite/27_io/ostream_fail.cc: New test.
7162 2003-03-07 Matthias Klose <doko@debian.org>
7164 * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
7165 FLAGS_TO_PASS: Set to AM_MAKEFLAGS
7166 * Makefile.in: Regenerate.
7167 * libsupc++/Makefile.am: Express glibcppinstalldir in terms
7169 AM_MAKEFLAGS: Pass gxx_include_dir.
7170 * libsupc++/Makefile.in: Regenerate.
7172 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
7174 * testsuite/27_io/ios_base_storage.cc (test02): Set exception
7175 mask. Test setting small-numbered pword and iword slots. Test
7176 behavior at limit of numeric_limits::max. Check that values are
7177 still good after failures.
7179 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
7181 * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
7182 (ios_base::ios_base): Set _M_word, _M_word_size.
7183 (ios_base::~ios_base): Remove redundant test.
7184 * testsuite/27_io/ios_base_storage.cc (test03): New.
7186 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
7188 * src/strstream.cc, include/bits/basic_string.tcc: Remove
7189 incorrect whitespace added in my previous change.
7191 2003-03-05 Carlo Wood <carlo@alinoe.com>
7193 * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
7194 _S_initialized() in order to allow debugging libraries to detect
7195 when the std streams are initialized from an overloaded operator
7198 2003-03-05 Benjamin Kosnik <bkoz@redhat.com>
7200 * libsupc++/demangle.h: Move to..
7201 * include/bits/demangle.h: ...here.
7202 * src/demangle.cc: Adjust include.
7203 * include/Makefile.am (bits_headers): Add.
7204 * include/Makefile.in: Regenerate.
7206 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
7208 * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
7210 * config/linker-map.gnu: Filter typeinfo and vtable info.
7212 2003-03-04 Jerry Quinn <jlquinn@optonline.net>
7214 * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
7215 new failure. Throw exception if badbit and exception mask when ix
7216 >= numeric_limits<int>::max().
7218 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
7220 * src/strstream.cc (strstreambuf::overflow): Make sure operands of
7221 min and max have the same type.
7222 * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
7224 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
7226 * include/Makefile.am (allstamps): Remove stamp-std-precompile.
7227 * include/Makefile.in: Regenerate.
7229 2003-03-03 Benjamin Kosnik <bkoz@redhat.com>
7231 * testsuite/abi_check.cc (report_symbol_info): Add version info.
7233 * config/linker-map.gnu: Hide more stuff.
7234 * include/Makefile.am: Cleanups.
7235 * include/Makefile.in: Regenerate.
7237 2003-02-27 Jerry Quinn <jlquinn@optonline.net>
7239 * config/locale/generic/messages_members.h (messages::messages):
7240 Remove name from unused parameter.
7242 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
7244 * src/Makefile.am (sources): Add demangle.cc.
7247 * src/Makefile.in: Regenerate.
7248 * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
7249 * libsupc++/Makefile.in: Regenerate.
7251 * testsuite/testsuite_hooks.h
7252 (__gnu_cxx_test::verify_demangle): New.
7253 * testsuite/testsuite_hooks.cc: Define.
7255 2003-02-27 Carlo Wood <carlo@alinoe.com>
7257 * src/demangle.cc: New.
7258 * libsupc++/demangle.h: New.
7260 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
7261 Carlo Wood <carlo@alinoe.com>
7263 * testsuite/demangle/abi_examples/01.cc: New.
7264 * testsuite/demangle/abi_examples/02.cc: New.
7265 * testsuite/demangle/abi_examples/03.cc: New.
7266 * testsuite/demangle/abi_examples/04.cc: New.
7267 * testsuite/demangle/abi_examples/05.cc: New.
7268 * testsuite/demangle/abi_examples/06.cc: New.
7269 * testsuite/demangle/abi_examples/07.cc: New.
7270 * testsuite/demangle/abi_examples/08.cc: New.
7271 * testsuite/demangle/abi_examples/09.cc: New.
7272 * testsuite/demangle/abi_examples/10.cc: New.
7273 * testsuite/demangle/abi_examples/11.cc: New.
7274 * testsuite/demangle/abi_examples/12.cc: New.
7275 * testsuite/demangle/abi_examples/13.cc: New.
7276 * testsuite/demangle/abi_examples/14.cc: New.
7277 * testsuite/demangle/abi_examples/15.cc: New.
7278 * testsuite/demangle/abi_examples/16.cc: New.
7279 * testsuite/demangle/abi_examples/17.cc: New.
7280 * testsuite/demangle/abi_examples/18.cc: New.
7281 * testsuite/demangle/abi_examples/19.cc: New.
7282 * testsuite/demangle/abi_examples/20.cc: New.
7283 * testsuite/demangle/abi_examples/21.cc: New.
7284 * testsuite/demangle/abi_examples/22.cc: New.
7285 * testsuite/demangle/abi_examples/23.cc: New.
7286 * testsuite/demangle/abi_examples/24.cc: New.
7287 * testsuite/demangle/abi_examples/25.cc: New.
7288 * testsuite/demangle/abi_examples/26.cc: New.
7289 * testsuite/demangle/abi_text/01.cc: New.
7290 * testsuite/demangle/abi_text/02.cc: New.
7291 * testsuite/demangle/abi_text/03.cc: New.
7292 * testsuite/demangle/abi_text/04.cc: New.
7293 * testsuite/demangle/abi_text/05.cc: New.
7294 * testsuite/demangle/abi_text/06.cc: New.
7295 * testsuite/demangle/abi_text/07.cc: New.
7296 * testsuite/demangle/abi_text/08.cc: New.
7297 * testsuite/demangle/abi_text/09.cc: New.
7298 * testsuite/demangle/abi_text/10.cc: New.
7299 * testsuite/demangle/abi_text/11.cc: New.
7300 * testsuite/demangle/abi_text/12.cc: New.
7301 * testsuite/demangle/abi_text/13.cc: New.
7302 * testsuite/demangle/abi_text/14.cc: New.
7303 * testsuite/demangle/regression/3111-1.cc: New.
7304 * testsuite/demangle/regression/3111-2.cc: New.
7305 * testsuite/demangle/regression/7986-01.cc: New.
7306 * testsuite/demangle/regression/7986-02.cc: New.
7307 * testsuite/demangle/regression/7986-03.cc: New.
7308 * testsuite/demangle/regression/7986-04.cc: New.
7309 * testsuite/demangle/regression/7986-05.cc: New.
7310 * testsuite/demangle/regression/7986-06.cc: New.
7311 * testsuite/demangle/regression/7986-07.cc: New.
7312 * testsuite/demangle/regression/7986-08.cc: New.
7313 * testsuite/demangle/regression/7986-09.cc: New.
7314 * testsuite/demangle/regression/7986-10.cc: New.
7315 * testsuite/demangle/regression/7986-11.cc: New.
7316 * testsuite/demangle/regression/7986-12.cc: New.
7317 * testsuite/demangle/regression/7986.cc: New.
7318 * testsuite/demangle/regression/8897.cc: New.
7319 * testsuite/demangle/regression/cw-01.cc: New.
7320 * testsuite/demangle/regression/cw-02.cc: New.
7321 * testsuite/demangle/regression/cw-03.cc: New.
7322 * testsuite/demangle/regression/cw-04.cc: New.
7323 * testsuite/demangle/regression/cw-05.cc: New.
7324 * testsuite/demangle/regression/cw-06.cc: New.
7325 * testsuite/demangle/regression/cw-07.cc: New.
7326 * testsuite/demangle/regression/cw-08.cc: New.
7327 * testsuite/demangle/regression/cw-09.cc: New.
7328 * testsuite/demangle/regression/cw-10.cc: New.
7329 * testsuite/demangle/regression/cw-11.cc: New.
7330 * testsuite/demangle/regression/cw-12.cc: New.
7331 * testsuite/demangle/regression/cw-13.cc: New.
7332 * testsuite/demangle/regression/cw-14.cc: New.
7333 * testsuite/demangle/regression/old.cc: New.
7335 2003-02-25 Phil Edwards <pme@gcc.gnu.org>
7337 * docs/doxygen/Intro.3: Update with new (proper) names.
7338 * docs/doxygen/TODO: Update.
7339 * docs/doxygen/run_doxygen: More comments, fix up man pages.
7340 Fake entries for standard typedefs.
7341 * docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on.
7342 * docs/html/documentation.html: Top-level man page is now called
7344 * include/std/std_limits.h: Doxygenate.
7346 2003-02-25 Scott Snyder <snyder@fnal.gov>
7349 * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
7350 Correct documentation.
7351 * include/bits/stl_multimap.h (lower_bound, upper_bound,
7352 equal_range): Likewise.
7354 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
7358 (basic_filebuf<char/wchar_t>::_M_underflow_common): When
7359 __bump is true (uflow), always increment the read pointer
7360 (_M_in_cur) before returning successfully.
7361 * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
7363 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
7364 Nathan Myers <ncm@cantrip.org>
7366 PR libstdc++/9404, PR libstdc++/9701 (partial)
7367 (aka pptr == epptr implies overflow)
7368 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
7369 Consistently, _M_out_end points to the end of the buffer just
7371 (overflow): Tweak to use _M_out_buf_size().
7372 (_M_convert_to_external): The role of the old _M_out_end is
7373 now played by _M_out_lim.
7374 (_M_really_overflow): Likewise.
7375 (seekoff): Likewise.
7376 (setbuf): _M_out_end points to the end of the external buffer.
7377 * include/bits/sstream.tcc (overflow): Rewrote, taking into
7378 account the resolution of DR 169 (TC).
7379 (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
7380 (seekpos): Use _M_string.capacity(); tweak.
7381 * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
7382 * include/std/std_fstream.h (sync): The role of the old
7383 _M_out_end is now played by _M_out_lim.
7384 (_M_set_indeterminate): Use _M_set_determinate.
7385 (_M_set_determinate): _M_out_end is now _M_out_lim.
7386 (_M_is_indeterminate): Likewise.
7387 * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
7388 (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
7389 which have the information readily available as _M_string.capacity();
7390 for ate and app modes, pass the string size to _M_really_sync.
7391 (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
7392 point to the end of the buffer (i.e., epptr) and to the string end,
7394 * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
7395 which points to the right limit of the used put area.
7396 (_M_out_cur_move): The role of the old _M_out_end is now played
7398 (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
7399 _M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter
7401 (basic_streambuf()): Initialize _M_out_lim too.
7402 * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
7403 * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
7404 * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
7406 2003-02-24 Benjamin Kosnik <bkoz@redhat.com>
7408 * testsuite/27_io/ios_base_storage.cc (main): Call
7411 2003-02-21 Jerry Quinn <jlquinn@optonline.net>
7413 * include/bits/locale_facets.tcc (_M_convert_float): Replace
7414 numpunct facet accesses with data from __locale_cache.
7416 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
7418 * docs/html/faq/index.html (3.9): New note, wchar_t on FreeBSD.
7419 * docs/html/faq/index.txt: Regenerate.
7421 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
7423 * config/linker-map.gnu: Also export locking symbols needed for the
7424 generic atomicity.h case.
7426 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
7428 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
7430 * configure: Rebuilt.
7432 2003-02-19 Paolo Carlini <pcarlini@unitus.it>
7434 * include/bits/sstream.tcc (overflow): According to
7435 27.7.1.3, p5, actual output is performed by sputc(c).
7437 2003-02-19 Phil Edwards <pme@gcc.gnu.org>
7440 * include/bits/stl_alloc.h: Remove all traces of assert().
7442 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
7444 * include/std/std_sstream.h (str()): the size of the
7445 current string may be different from the initial one
7446 whenever _M_out_end > _M_out_beg.
7447 * testsuite/27_io/stringbuf_members.cc (test07): Add.
7449 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
7452 * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
7454 2003-02-17 Benjamin Kosnik <bkoz@redhat.com>
7456 * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
7457 * testsuite/27_io/ios_members.cc (test03): New.
7459 2003-02-17 Jerry Quinn <jlquinn@optonline.net>
7461 * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
7462 (basic_ios::_M_cache_facets): Move into above.
7463 * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
7465 (basic_ios::imbue): Force locale cache to be built.
7466 (basic_ios::_M_init): Create and initialize locale cache.
7467 * include/bits/ios_base.h (__locale_cache_base): Declare.
7468 (ios_base::_M_locale_cache): New.
7469 (ios_base::_M_cache): Define.
7470 * include/bits/locale_facets.h: (__num_base): Fix comment. Add
7472 (__locale_cache_base,__locale_cache<_CharT>): New classes.
7473 (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
7474 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
7475 cache literal string, grouping flag, thousands separator.
7476 (__locale_cache<_CharT>::__locale_cache): New.
7477 (__locale_cache<_CharT>::_M_init): New.
7478 * src/ios.cc: Clear _M_locale_cache in constructor.
7479 * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
7482 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
7484 * src/locale-inst.cc: Do not include <cassert>.
7485 * src/locale.cc: Likewise.
7487 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
7490 * include/std/std_fstream.h: Declare underflow and uflow
7491 specializations, change generic definitions to do nothing.
7492 * src/fstream.cc: Add underflow and uflow specializations.
7494 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
7497 * include/bits/fstream.tcc (_M_convert_to_external):
7498 Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
7499 * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
7501 2003-02-13 Benjamin Kosnik <bkoz@redhat.com>
7503 * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
7504 * include/bits/basic_ios.tcc: Guard use of extern template.
7505 * include/std/std_iomanip.h: Same.
7506 * include/bits/streambuf.tcc: Same.
7507 * include/bits/stl_alloc.h: Same.
7508 * include/bits/locale_facets.tcc: Same.
7509 * include/bits/ostream.tcc: Same.
7510 * include/bits/istream.tcc: Same.
7511 * include/bits/fstream.tcc: Same.
7512 * include/bits/basic_string.tcc: Same.
7514 2003-02-13 Paolo Carlini <pcarlini@unitus.it>
7516 * include/bits/ostream.tcc (sentry::sentry): Improve
7517 performance-wise the fix for libstdc++/9563.
7519 2003-02-12 Phil Edwards <pme@gcc.gnu.org>
7521 * config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration.
7522 (_GLIBCPP_NEED_GENERIC_MUTEX): Define for this file.
7523 (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once): Declare
7524 when we don't have static mutex initialization.
7525 (__exchange_and_add): Use _Atomic_add_mutex_once.
7526 * src/misc-inst.cc: Definitions of all the above.
7528 2003-02-12 Paolo Carlini <pcarlini@unitus.it>
7531 * include/bits/ostream.tcc (sentry::sentry): Check
7532 the state of the stream after the preparation.
7533 * testsuite/27_io/ostream_sentry.cc (test02): Add.
7535 2003-02-11 Benjamin Kosnik <bkoz@redhat.com>
7537 * include/Makefile.am (stamp-std-precompile): Add rule.
7538 * include/Makefile.in: Regenerated.
7540 2003-02-11 Jerry Quinn <jlquinn@optonline.net>
7541 Benjamin Kosnik <benjamin@redhat.com>
7543 * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
7544 Add indexes into this array.
7545 (__num_base::_S_atoms): To _S_atoms_in.
7546 (num_put::_M_insert): Rename to _M_pad.
7547 (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
7548 (num_put::_M_widen_int): Rename to _M_group_int.
7549 (num_put::_M_widen_float): Rename to _M_group_float.
7550 * include/bits/locale_facets.tcc (__int_to_char): New inline
7551 function and adapter functions.
7552 (num_put::_M_group_int): Streamline.
7553 (num_put::_M_group_float): Streamline.
7554 (num_put::_M_convert_int): Remove unused parameter names. Choose
7555 large enough buffer for text. Use __int_to_char instead of
7556 __convert_from_v. Formatted text is now at the end of the buffer.
7557 (num_put::_M_convert_float): Preliminary fixups.
7558 * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
7559 (__int_to_char<unsigned long long>): Same.
7560 (__int_to_char<char, unsigned long>): New.
7561 (__int_to_char<char, unsigned long long>): New.
7562 (__int_to_char<wchar_t, unsigned long>): New.
7563 (__int_to_char<wchar_t, unsigned long long>): New.
7565 2003-02-11 Scott Snyder <snyder@fnal.gov>
7568 * include/bits/fstream.tcc (seekoff): Avoid operator+
7571 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
7574 * include/ext/stdio_filebuf.h
7575 (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
7576 stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
7577 Change to take a __size parameter of type size_t, not
7578 of type (template parameter dependent) int_type.
7579 * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
7580 size vars to size_t.
7581 * testsuite/ext/stdio_filebuf.cc: Add.
7583 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
7584 Petur Runolfsson <peturr02@ru.is>
7587 * include/bits/streambuf.tcc (__copy_streambufs):
7588 Don't conditionalize the copy to __testput.
7589 * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
7591 2002-02-11 DJ Delorie <dj@redhat.com>
7593 * acinclude.m4: Check for native targets that can't link at
7594 this point in the build.
7595 * aclocal.m4: Regenerate.
7596 * configure: Regenerate.
7598 2003-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7600 * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
7602 (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
7605 2003-02-07 Paolo Carlini <pcarlini@unitus.it>
7607 * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
7608 unsigned char platforms.
7610 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
7613 * include/std/std_istream.h
7614 (basic_istream::sentry::operator bool()): Make const.
7615 * include/std/std_ostream.h
7616 (basic_ostream::sentry::operator bool()): Likewise.
7617 * testsuite/27_io/istream_sentry.cc (test03): Add.
7618 * testsuite/27_io/ostream_sentry.cc: Add.
7620 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
7623 Implement resolution of DR 231 (Ready)
7624 * include/bits/locale_facets.h (__num_base::_S_format_float):
7625 Change declaration: return void, remove __prec parameter.
7626 * src/locale.cc (__num_base::_S_format_float): Implement
7627 resolution of DR 231.
7628 * include/bits/locale_facets.tcc (num_put::_M_convert_float):
7629 Tweak uses. Check for negative precision.
7630 * testsuite/22_locale/num_put/put/char/6.cc: Add
7631 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
7633 2003-02-06 Peter Soetens <peter.soetens@mech.kuleuven.ac.be>
7635 * config/io/basic_file_libio.h: Fixups.
7636 * config/io/c_io_libio.h: Same.
7637 * libio/Makefile.am: Same.
7638 * libio/Makefile.in: Regenerated.
7640 2003-02-06 Benjamin Kosnik <bkoz@redhat.com>
7642 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
7643 Explicitly use the "C" locale.
7644 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
7646 2003-02-06 Petur Runolfsson <peturr02@ru.is>
7650 PR libstdc++/9028 (partial)
7656 (codecvt<wchar_t, char, mbstate_t>::do_encoding,
7657 codecvt<wchar_t, char, mbstate_t>::do_length,
7658 codecvt<wchar_t, char, mbstate_t>::do_max_length):
7660 * config/locale/generic/codecvt_members.cc: ...here.
7661 * config/locale/gnu/codecvt_members.cc: ...and here.
7663 * config/locale/generic/codecvt_members.cc,
7664 * config/locale/gnu/codecvt_members.cc
7665 (codecvt<wchar_t, char, mbstate_t>::do_encoding
7666 codecvt<wchar_t, char, mbstate_t>::do_in,
7667 codecvt<wchar_t, char, mbstate_t>::do_length,
7668 codecvt<wchar_t, char, mbstate_t>::do_max_length,
7669 codecvt<wchar_t, char, mbstate_t>::do_out):
7670 New implementation that handles stateless encodings,
7673 * config/locale/generic/codecvt_members.cc,
7674 * config/locale/gnu/codecvt_members.cc,
7675 * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
7676 * include/bits/codecvt.h,
7678 (codecvt::length, codecvt::do_length):
7679 Change type of first argument of length and do_length from
7680 'const state_type&' to 'state_type&' according to DR 75.
7682 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Cleanup.
7683 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: New test.
7684 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: New test.
7685 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: New test.
7686 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
7687 Cleanup and check for correct return value from encoding
7689 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: New test.
7690 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: New test.
7691 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: New test.
7692 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Cleanup.
7693 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: New test.
7694 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: New test.
7695 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: New test.
7696 * testsuite/22_locale/codecvt/in/wchar_t/5.cc: New test.
7697 * testsuite/22_locale/codecvt/in/wchar_t/6.cc: New test.
7698 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: New test.
7699 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: New test.
7700 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: New test.
7701 * testsuite/22_locale/codecvt/length/char/1.cc: Cleanup.
7702 * testsuite/22_locale/codecvt/length/char/2.cc: New test.
7703 * testsuite/22_locale/codecvt/length/wchar_t/1.cc: Cleanup.
7704 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: New test.
7705 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: New test.
7706 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: New test.
7707 * testsuite/22_locale/codecvt/length/wchar_t/5.cc: New test.
7708 * testsuite/22_locale/codecvt/length/wchar_t/6.cc: New test.
7709 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: New test.
7710 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Cleanup.
7711 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: New test.
7712 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: New test.
7713 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: New test.
7714 * testsuite/22_locale/codecvt/out/wchar_t/1.cc: Cleanup.
7715 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: New test.
7716 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: New test.
7717 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: New test.
7718 * testsuite/22_locale/codecvt/out/wchar_t/5.cc: New test.
7719 * testsuite/22_locale/codecvt/out/wchar_t/6.cc: New test.
7720 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: New test.
7721 * testsuite/22_locale/codecvt/unicode/1.cc: New test.
7722 * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc: Cleanup.
7723 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: New test.
7724 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: New test.
7725 * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc: New test.
7727 2003-02-05 Benjamin Kosnik <bkoz@redhat.com>
7729 * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
7730 (money_put::do_put): Same.
7732 2003-02-05 Jerry Quinn <jlquinn@optonline.net>
7734 * include/bits/ios_base.h (ios_base): Document reserved storage.
7736 * include/bits/locale_facets.h: (struct __pad): Comment on
7738 (__verify_grouping): Same.
7739 (__add_grouping): Same.
7740 * include/bits/locale_facets.tcc (__verify_grouping): Move
7741 comments to declaration.
7742 (__add_grouping): Same.
7744 * include/bits/locale_facets.tcc:
7745 (__write<_CharT, _OutIter>): New function.
7746 (__write<_CharT>): New function specialization.
7747 (num_put::_M_insert): Remove explicit loop over iterator. Use
7749 (num_put::_M_widen_float): Remove __basefield.
7750 (num_put::_M_widen_int): Move __basefield to within grouping block.
7752 * include/bits/streambuf_iterator.h: Include <streambuf>.
7753 (ostreambuf_iterator::_M_put): Add.
7755 2003-02-05 Paolo Carlini <pcarlini@unitus.it>
7757 * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
7759 2003-02-04 Nathan Myers <ncm@cantrip.org>
7761 * testsuite/25_algorithms/min_max.cc (test02): Add.
7763 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
7765 PR libstdc++/9439, PR libstdc++/9425
7766 * config/io/basic_file_stdio.cc
7767 (__basic_file<char>::seekoff, seekpos): Return -1L if
7769 * include/bits/fstream.tcc (basic_filebuf::seekoff):
7770 Check _M_file.seekoff return value; always return
7771 pos_type(off_type(-1)) in case of failure.
7772 (basic_filebuf::pbackfail): Check this->seekoff return
7773 value and return traits_type::eof() in case of failure.
7774 * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
7776 2003-02-04 Jerry Quinn <jlquinn@optonline.net>
7778 * include/std/std_ostream.h (ostream::_M_write): Declare.
7779 * ostream.tcc (ostream::_M_write): Define.
7780 (basic_ostream::write): Use it.
7781 (operator<<(basic_ostream, _CharT)): Ditto.
7782 (operator<<(basic_ostream, char)): Ditto.
7783 (operator<<(basic_ostream, _CharT*)): Ditto.
7784 (operator<<(basic_ostream, char*)): Ditto.
7785 (operator<<(basic_ostream, basic_string)): Ditto.
7787 2003-02-04 Benjamin Kosnik <bkoz@redhat.com>
7789 * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
7791 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
7793 * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
7794 add HTML comment about updating links if numbering changes.
7796 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
7799 * include/bits/streambuf.tcc (sputbackc): Access
7800 this->gptr()[-1] only if _M_in_beg < _M_in_cur.
7801 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
7803 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
7806 * include/bits/fstream.tcc (open): If the 'ate' repositioning
7807 operation fails, calls close _and_ returns a null pointer
7808 to indicate failure (27.8.1.3,4).
7809 * testsuite/27_io/filebuf_members.cc (test_06): Add.
7811 2003-02-04 Petur Runolfsson <peturr02@ru.is>
7813 * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
7815 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
7817 * docs/html/27_io/howto.html: New section on stdio_filebuf.
7818 * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
7819 * docs/html/documentation.html: Regenerate.
7821 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
7823 * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
7824 * docs/html/17_intro/porting.html: Regenerate.
7826 2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
7827 Phil Edwards <pme@gcc.gnu.org>
7829 * include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
7830 numeric_limits for bits-per-word values.
7831 (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
7832 Use __builtin_popcountl instead.
7833 (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
7834 _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
7835 Use __builtin_ctzl instead.
7836 (_S_bit_count, _S_first_one): Remove.
7837 * config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
7838 * src/Makefile.am (sources): Remove bitset.cc.
7839 * src/bitset.cc: Delete file.
7840 * src/Makefile.in: Regenerate.
7842 2003-02-03 Phil Edwards <pme@gcc.gnu.org>
7844 PR libstdc++/9527, PR libstdc++/8713
7845 * docs/html/install.html: Mention glibc version requirement.
7846 * docs/html/faq/index.html (3.8): New note, glibc 2.2.5+ is needed
7847 with 3.2.1+ (formatting bugfixes).
7848 * docs/html/faq/index.txt: Regenerate.
7850 2003-02-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
7853 * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
7856 * include/bits/valarray_before.h (__not_equal_to): Use != instead
7859 * testsuite/26_numerics/valarray_operators.cc: New test.
7861 2003-02-01 Phil Edwards <pme@gcc.gnu.org>
7863 * docs/html/faq/index.html: Correct link to libg++ information.
7864 * docs/html/faq/index.txt: Regenerated.
7866 2003-02-01 Paolo Carlini <pcarlini@unitus.it>
7867 Benjamin Kosnik <bkoz@redhat.com>
7869 Const correctness issue:
7870 http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
7871 * include/bits/locale_classes.h
7872 (locale::_Impl::_M_facets): Change type to const facet**.
7873 (locale::_Impl::_M_install_facet): Change declaration to
7875 (locale::facet::_M_references): Make mutable.
7876 (locale::facet::_M_add_reference): Declare const.
7877 (locale::facet::_M_remove_reference): Likewise.
7878 * include/bits/locale_facets.tcc
7879 (use_facet(const locale&)): Tweak for const facet** _M_facets.
7880 (has_facet(const locale&)): Likewise.
7882 (locale::facet::_M_add_reference): Adjust definition.
7883 (locale::facet::_M_remove_reference): Likewise.
7885 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
7886 const facet** _M_facets.
7887 (locale::_Impl::_Impl(const char*, size_t)): Likewise.
7888 (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
7889 (locale::_Impl::_M_install_facet): Adjust definition to take
7890 const facet* and for const facet** _M_facets.
7891 * testsuite/22_locale/locale/cons/8.cc: Add.
7893 2003-01-29 Mark Mitchell <mark@codesourcery.com>
7895 * include/std/std_limits.h (numeric_limits<float>::has_infinity):
7896 Use __FLT_HAS_INIFINITY__ to initialize.
7897 (numeric_limits<float>::has_quiet_NaN): Likewise.
7898 (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
7900 (numeric_limits<double>::has_quiet_NaN): Likewise.
7901 (numeric_limits<long double>::has_infinity): Use
7902 __LDBL_HAS_INIFINITY__ to initialize.
7903 (numeric_limits<long_double>::has_quiet_NaN): Likewise.
7905 2003-01-28 Nathan Sidwell <nathan@codesourcery.com>
7908 * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
7909 with bases which are very ambiguous.
7911 2003-01-28 Danny Smith <dannysmith@users.sourceforge.net>
7913 * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
7914 @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
7915 * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
7916 * src/Makefile.in: Regenerate.
7917 * libsupc++/Makefile.in: Regenerate.
7919 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
7921 * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
7922 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
7923 version_specific_libs is enabled.
7924 * aclocal.m4, configure: Rebuilt.
7926 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
7928 * include/bits/valarray_meta.h: Remove, split into ...
7929 * include/bits/valarray_before.h: ... this, and ...
7930 * include/bits/valarray_after.h: ... this.
7931 * include/std/std_valarray.h: Adjust.
7932 * include/Makefile.am (bits_headers): Adjust.
7933 * include/Makefile.in: Regenerate.
7935 2003-01-24 Andreas Schwab <schwab@suse.de>
7937 * config/linker-map.gnu: Fix for size_t variance.
7939 2003-01-23 Petur Runolfsson <peturr02@ru.is>
7942 * include/std/std_streambuf.h
7943 (basic_streambuf::basic_streambuf,
7944 basic_streambuf::~basic_streambuf,
7945 basic_streambuf::getloc, basic_streambuf::imbue):
7946 Remove _M_buf_locale_init
7947 * include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
7948 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
7949 * testsuite/27_io/streambuf_members.cc (test08): Add.
7950 * testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
7952 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
7954 Revert include ordering.
7955 * config/locale/generic/c_locale.h: Add include guards.
7956 * config/locale/gnu/c_locale.h: Same.
7957 * include/bits/locale_classes.h: Remove cctype include.
7958 * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
7959 * include/std/std_fstream.h: Remove streambuf include.
7960 * include/std/std_sstream.h: Remove streambuf include.
7962 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
7964 * configure.in (libtool_VERSION): To 6:0:0.
7965 * configure: Regenerated.
7966 * config/linker-map.gnu: Clean.
7968 * src/misc-inst.cc: Remove instantiations.
7970 * include/bits/stl_alloc.h (__malloc_alloc_template):
7972 (__default_alloc_template): To __pool_alloc.
7973 * src/stl-inst.cc: Same.
7974 * include/backward/alloc.h: Update.
7975 * testsuite/ext/allocators.cc: Update.
7977 * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
7978 really try to remove these if possible.
7979 * src/locale.cc (std): Same.
7981 * testsuite/abi_check.cc (check_version): Add.
7983 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
7984 Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
7985 Mark Mitchell <mark@codesourcery.com>
7988 * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
7989 (basic_filebuf::underflow): Declare.
7992 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
7994 * include/bits/locale_facets.h: Move non-facet classes requiring
7996 * include/bits/locale_classes.h: New.
7997 * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
7998 * include/bits/Makefile.in: Regenerate.
8000 * include/bits/locale_facets.tcc (__convert_from_v): Move to...
8001 * config/locale/gnu/c_locale.h: ...here.
8002 * config/locale/generic/c_locale.h: Same.
8004 * include/bits/locale_facets.tcc: Move declarations to...
8005 * include/bits/locale_facets.h: ...here.
8006 * include/bits/basic_ios.h: Tweak includes accordingly.
8007 * include/std/std_sstream.h: Add streambuf include.
8008 * include/std/std_fstream.h: Ditto.
8009 * include/std/std_locale.h: Add locale_classes.h include.
8010 * include/std/std_iosfwd.h: Tweak.
8011 * src/concept-inst.cc: Add iterator include.
8013 * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
8014 bits as unexported in the future.
8016 2003-01-21 Benjamin Kosnik <bkoz@redhat.com>
8018 Reshuffle 22_locale testsuite.
8019 * 22_locale/(codecvt.cc money_get.cc
8020 codecvt_members_char_char.cc money_get_members_char.cc
8021 codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
8022 codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
8023 codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
8024 moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
8025 collate_members_char.cc money_put.cc collate_members_wchar_t.cc
8026 money_put_members_char.cc ctor_copy_dtor.cc
8027 money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
8028 num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
8029 ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
8030 numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
8031 ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
8032 num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
8033 ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
8034 operators.cc ctype_widen_char.cc static_members.cc
8035 ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
8036 global_templates.cc time_get_members_wchar_t.cc, members.cc,
8037 time_put.cc, messages_byname.cc, time_put_members_char.cc,
8038 messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
8039 Split up into individual test cases...
8040 * 22_locale/codecvt/1.cc: New.
8041 * 22_locale/codecvt/2.cc: New.
8042 * 22_locale/codecvt/always_noconv/char/1.cc: New.
8043 * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
8044 * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
8045 * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
8046 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
8047 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
8048 * 22_locale/codecvt/encoding/char/1.cc: New.
8049 * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
8050 * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
8051 * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
8052 * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
8053 * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
8054 * 22_locale/codecvt/in/char/1.cc: New.
8055 * 22_locale/codecvt/in/char/wrapped_env.cc: New.
8056 * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
8057 * 22_locale/codecvt/in/wchar_t/1.cc: New.
8058 * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
8059 * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
8060 * 22_locale/codecvt/length/char/1.cc: New.
8061 * 22_locale/codecvt/length/char/wrapped_env.cc: New.
8062 * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
8063 * 22_locale/codecvt/length/wchar_t/1.cc: New.
8064 * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
8065 * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
8066 * 22_locale/codecvt/max_length/char/1.cc: New.
8067 * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
8068 * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
8069 * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
8070 * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
8071 * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
8072 * 22_locale/codecvt/out/char/1.cc: New.
8073 * 22_locale/codecvt/out/char/wrapped_env.cc: New.
8074 * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
8075 * 22_locale/codecvt/out/wchar_t/1.cc: New.
8076 * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
8077 * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
8078 * 22_locale/codecvt/unicode/char.cc: New.
8079 * 22_locale/codecvt/unicode/wchar_t.cc: New.
8080 * 22_locale/codecvt/unshift/char/1.cc: New.
8081 * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
8082 * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
8083 * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
8084 * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
8085 * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
8086 * 22_locale/collate/1.cc: New.
8087 * 22_locale/collate/2.cc: New.
8088 * 22_locale/collate/compare/char/1.cc: New.
8089 * 22_locale/collate/compare/char/2.cc: New.
8090 * 22_locale/collate/compare/char/wrapped_env.cc: New.
8091 * 22_locale/collate/compare/char/wrapped_locale.cc: New.
8092 * 22_locale/collate/compare/wchar_t/1.cc: New.
8093 * 22_locale/collate/compare/wchar_t/2.cc: New.
8094 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
8095 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
8096 * 22_locale/collate/hash/char/1.cc: New.
8097 * 22_locale/collate/hash/char/2.cc: New.
8098 * 22_locale/collate/hash/char/wrapped_env.cc: New.
8099 * 22_locale/collate/hash/char/wrapped_locale.cc: New.
8100 * 22_locale/collate/hash/wchar_t/1.cc: New.
8101 * 22_locale/collate/hash/wchar_t/2.cc: New.
8102 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
8103 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
8104 * 22_locale/collate/transform/char/2.cc: New.
8105 * 22_locale/collate/transform/char/wrapped_env.cc: New.
8106 * 22_locale/collate/transform/char/wrapped_locale.cc: New.
8107 * 22_locale/collate/transform/wchar_t/2.cc: New.
8108 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
8109 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
8110 * 22_locale/collate_byname/1.cc: New.
8111 * 22_locale/ctype/1.cc: New.
8112 * 22_locale/ctype/2.cc: New.
8113 * 22_locale/ctype/cons/char/1.cc: New.
8114 * 22_locale/ctype/cons/char/wrapped_env.cc: New.
8115 * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
8116 * 22_locale/ctype/is/char/1.cc: New.
8117 * 22_locale/ctype/is/char/2.cc: New.
8118 * 22_locale/ctype/is/char/3.cc: New.
8119 * 22_locale/ctype/is/char/wrapped_env.cc: New.
8120 * 22_locale/ctype/is/char/wrapped_locale.cc: New.
8121 * 22_locale/ctype/is/wchar_t/1.cc: New.
8122 * 22_locale/ctype/is/wchar_t/2.cc: New.
8123 * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
8124 * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
8125 * 22_locale/ctype/narrow/char/1.cc: New.
8126 * 22_locale/ctype/narrow/char/2.cc: New.
8127 * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
8128 * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
8129 * 22_locale/ctype/narrow/wchar_t/1.cc: New.
8130 * 22_locale/ctype/narrow/wchar_t/2.cc: New.
8131 * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
8132 * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
8133 * 22_locale/ctype/scan/char/1.cc: New.
8134 * 22_locale/ctype/scan/char/wrapped_env.cc: New.
8135 * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
8136 * 22_locale/ctype/scan/wchar_t/1.cc: New.
8137 * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
8138 * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
8139 * 22_locale/ctype/to/char/1.cc: New.
8140 * 22_locale/ctype/to/char/wrapped_env.cc: New.
8141 * 22_locale/ctype/to/char/wrapped_locale.cc: New.
8142 * 22_locale/ctype/to/wchar_t/1.cc: New.
8143 * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
8144 * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
8145 * 22_locale/ctype/widen/char/1.cc: New.
8146 * 22_locale/ctype/widen/char/wrapped_env.cc: New.
8147 * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
8148 * 22_locale/ctype/widen/wchar_t/1.cc: New.
8149 * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
8150 * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
8151 * 22_locale/facet/1.cc: New.
8152 * 22_locale/facet/2.cc: New.
8153 * 22_locale/global_templates/1.cc: New.
8154 * 22_locale/locale/cons/1.cc: New.
8155 * 22_locale/locale/cons/2.cc: New.
8156 * 22_locale/locale/cons/3.cc: New.
8157 * 22_locale/locale/cons/4.cc: New.
8158 * 22_locale/locale/cons/5.cc: New.
8159 * 22_locale/locale/cons/6.cc: New.
8160 * 22_locale/locale/cons/7.cc: New.
8161 * 22_locale/locale/global_locale_objects/1.cc: New.
8162 * 22_locale/locale/global_locale_objects/2.cc: New.
8163 * 22_locale/locale/global_locale_objects/3.cc: New.
8164 * 22_locale/locale/operations/1.cc: New.
8165 * 22_locale/locale/operations/2.cc: New.
8166 * 22_locale/messages/1.cc: New.
8167 * 22_locale/messages/2.cc: New.
8168 * 22_locale/messages/members/char/1.cc: New.
8169 * 22_locale/messages/members/char/2.cc: New.
8170 * 22_locale/messages/members/char/3.cc: New.
8171 * 22_locale/messages/members/char/wrapped_env.cc: New.
8172 * 22_locale/messages/members/char/wrapped_locale.cc: New.
8173 * 22_locale/messages_byname/1.cc: New.
8174 * 22_locale/money_get/1.cc: New.
8175 * 22_locale/money_get/2.cc: New.
8176 * 22_locale/money_get/get/char/1.cc: New.
8177 * 22_locale/money_get/get/char/2.cc: New.
8178 * 22_locale/money_get/get/char/3.cc: New.
8179 * 22_locale/money_get/get/char/4.cc: New.
8180 * 22_locale/money_get/get/char/5.cc: New.
8181 * 22_locale/money_get/get/char/6.cc: New.
8182 * 22_locale/money_get/get/char/7.cc: New.
8183 * 22_locale/money_get/get/char/8.cc: New.
8184 * 22_locale/money_get/get/char/wrapped_env.cc: New.
8185 * 22_locale/money_get/get/char/wrapped_locale.cc: New.
8186 * 22_locale/money_get/get/wchar_t/1.cc: New.
8187 * 22_locale/money_get/get/wchar_t/2.cc: New.
8188 * 22_locale/money_get/get/wchar_t/3.cc: New.
8189 * 22_locale/money_get/get/wchar_t/4.cc: New.
8190 * 22_locale/money_get/get/wchar_t/5.cc: New.
8191 * 22_locale/money_get/get/wchar_t/6.cc: New.
8192 * 22_locale/money_get/get/wchar_t/7.cc: New.
8193 * 22_locale/money_get/get/wchar_t/8.cc: New.
8194 * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
8195 * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
8196 * 22_locale/money_put/1.cc: New.
8197 * 22_locale/money_put/2.cc: New.
8198 * 22_locale/money_put/put/char/1.cc: New.
8199 * 22_locale/money_put/put/char/2.cc: New.
8200 * 22_locale/money_put/put/char/3.cc: New.
8201 * 22_locale/money_put/put/char/4.cc: New.
8202 * 22_locale/money_put/put/char/5.cc: New.
8203 * 22_locale/money_put/put/char/6.cc: New.
8204 * 22_locale/money_put/put/char/wrapped_env.cc: New.
8205 * 22_locale/money_put/put/char/wrapped_locale.cc: New.
8206 * 22_locale/money_put/put/wchar_t/1.cc: New.
8207 * 22_locale/money_put/put/wchar_t/2.cc: New.
8208 * 22_locale/money_put/put/wchar_t/3.cc: New.
8209 * 22_locale/money_put/put/wchar_t/4.cc: New.
8210 * 22_locale/money_put/put/wchar_t/5.cc: New.
8211 * 22_locale/money_put/put/wchar_t/6.cc: New.
8212 * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
8213 * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
8214 * 22_locale/moneypunct/1.cc: New.
8215 * 22_locale/moneypunct/2.cc: New.
8216 * 22_locale/moneypunct/3.cc: New.
8217 * 22_locale/moneypunct/members/char/1.cc: New.
8218 * 22_locale/moneypunct/members/char/2.cc: New.
8219 * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
8220 * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
8221 * 22_locale/moneypunct/members/wchar_t/1.cc: New.
8222 * 22_locale/moneypunct/members/wchar_t/2.cc: New.
8223 * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
8224 * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
8225 * 22_locale/moneypunct_byname/1.cc: New.
8226 * 22_locale/num_get/1.cc: New.
8227 * 22_locale/num_get/2.cc: New.
8228 * 22_locale/num_get/get/char/1.cc: New.
8229 * 22_locale/num_get/get/char/2.cc: New.
8230 * 22_locale/num_get/get/char/3.cc: New.
8231 * 22_locale/num_get/get/char/4.cc: New.
8232 * 22_locale/num_get/get/char/5.cc: New.
8233 * 22_locale/num_get/get/char/6.cc: New.
8234 * 22_locale/num_get/get/char/wrapped_env.cc: New.
8235 * 22_locale/num_get/get/char/wrapped_locale.cc: New.
8236 * 22_locale/num_get/get/wchar_t/1.cc: New.
8237 * 22_locale/num_get/get/wchar_t/2.cc: New.
8238 * 22_locale/num_get/get/wchar_t/3.cc: New.
8239 * 22_locale/num_get/get/wchar_t/4.cc: New.
8240 * 22_locale/num_get/get/wchar_t/5.cc: New.
8241 * 22_locale/num_get/get/wchar_t/6.cc: New.
8242 * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
8243 * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
8244 * 22_locale/num_put/1.cc: New.
8245 * 22_locale/num_put/2.cc: New.
8246 * 22_locale/num_put/put/char/1.cc: New.
8247 * 22_locale/num_put/put/char/2.cc: New.
8248 * 22_locale/num_put/put/char/3.cc: New.
8249 * 22_locale/num_put/put/char/4.cc: New.
8250 * 22_locale/num_put/put/char/5.cc: New.
8251 * 22_locale/num_put/put/char/wrapped_env.cc: New.
8252 * 22_locale/num_put/put/char/wrapped_locale.cc: New.
8253 * 22_locale/num_put/put/wchar_t/1.cc: New.
8254 * 22_locale/num_put/put/wchar_t/2.cc: New.
8255 * 22_locale/num_put/put/wchar_t/3.cc: New.
8256 * 22_locale/num_put/put/wchar_t/4.cc: New.
8257 * 22_locale/num_put/put/wchar_t/5.cc: New.
8258 * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
8259 * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
8260 * 22_locale/numpunct/1.cc: New.
8261 * 22_locale/numpunct/2.cc: New.
8262 * 22_locale/numpunct/members/char/1.cc: New.
8263 * 22_locale/numpunct/members/char/2.cc: New.
8264 * 22_locale/numpunct/members/char/wrapped_env.cc: New.
8265 * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
8266 * 22_locale/numpunct/members/wchar_t/1.cc: New.
8267 * 22_locale/numpunct/members/wchar_t/2.cc: New.
8268 * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
8269 * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
8270 * 22_locale/numpunct_byname/1.cc: New.
8271 * 22_locale/numpunct_byname/2.cc: New.
8272 * 22_locale/time_get/1.cc: New.
8273 * 22_locale/time_get/2.cc: New.
8274 * 22_locale/time_get/date_order/char/1.cc: New.
8275 * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
8276 * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
8277 * 22_locale/time_get/date_order/wchar_t/1.cc: New.
8278 * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
8279 * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
8280 * 22_locale/time_get/get_date/char/1.cc: New.
8281 * 22_locale/time_get/get_date/char/2.cc: New.
8282 * 22_locale/time_get/get_date/char/3.cc: New.
8283 * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
8284 * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
8285 * 22_locale/time_get/get_date/wchar_t/1.cc: New.
8286 * 22_locale/time_get/get_date/wchar_t/2.cc: New.
8287 * 22_locale/time_get/get_date/wchar_t/3.cc: New.
8288 * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
8289 * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
8290 * 22_locale/time_get/get_monthname/char/1.cc: New.
8291 * 22_locale/time_get/get_monthname/char/2.cc: New.
8292 * 22_locale/time_get/get_monthname/char/3.cc: New.
8293 * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
8294 * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
8295 * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
8296 * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
8297 * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
8298 * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
8299 * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
8300 * 22_locale/time_get/get_time/char/1.cc: New.
8301 * 22_locale/time_get/get_time/char/2.cc: New.
8302 * 22_locale/time_get/get_time/char/3.cc: New.
8303 * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
8304 * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
8305 * 22_locale/time_get/get_time/wchar_t/1.cc: New.
8306 * 22_locale/time_get/get_time/wchar_t/2.cc: New.
8307 * 22_locale/time_get/get_time/wchar_t/3.cc: New.
8308 * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
8309 * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
8310 * 22_locale/time_get/get_weekday/char/1.cc: New.
8311 * 22_locale/time_get/get_weekday/char/2.cc: New.
8312 * 22_locale/time_get/get_weekday/char/3.cc: New.
8313 * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
8314 * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
8315 * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
8316 * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
8317 * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
8318 * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
8319 * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
8320 * 22_locale/time_get/get_year/char/1.cc: New.
8321 * 22_locale/time_get/get_year/char/3.cc: New.
8322 * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
8323 * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
8324 * 22_locale/time_get/get_year/wchar_t/1.cc: New.
8325 * 22_locale/time_get/get_year/wchar_t/3.cc: New.
8326 * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
8327 * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
8328 * 22_locale/time_put/1.cc: New.
8329 * 22_locale/time_put/2.cc: New.
8330 * 22_locale/time_put/put/char/1.cc: New.
8331 * 22_locale/time_put/put/char/10.cc: New.
8332 * 22_locale/time_put/put/char/2.cc: New.
8333 * 22_locale/time_put/put/char/3.cc: New.
8334 * 22_locale/time_put/put/char/4.cc: New.
8335 * 22_locale/time_put/put/char/5.cc: New.
8336 * 22_locale/time_put/put/char/6.cc: New.
8337 * 22_locale/time_put/put/char/7.cc: New.
8338 * 22_locale/time_put/put/char/8.cc: New.
8339 * 22_locale/time_put/put/char/9.cc: New.
8340 * 22_locale/time_put/put/char/wrapped_env.cc: New.
8341 * 22_locale/time_put/put/char/wrapped_locale.cc: New.
8342 * 22_locale/time_put/put/wchar_t/1.cc: New.
8343 * 22_locale/time_put/put/wchar_t/10.cc: New.
8344 * 22_locale/time_put/put/wchar_t/2.cc: New.
8345 * 22_locale/time_put/put/wchar_t/3.cc: New.
8346 * 22_locale/time_put/put/wchar_t/4.cc: New.
8347 * 22_locale/time_put/put/wchar_t/5.cc: New.
8348 * 22_locale/time_put/put/wchar_t/6.cc: New.
8349 * 22_locale/time_put/put/wchar_t/7.cc: New.
8350 * 22_locale/time_put/put/wchar_t/8.cc: New.
8351 * 22_locale/time_put/put/wchar_t/9.cc: New.
8352 * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
8353 * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
8355 2003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
8357 * config/locale/generic/messages_members.h
8358 (messages_byname<_CharT>::messages_byname): Use this-> to refer to
8359 unqualified members of base clasess.
8361 2003-01-16 Mark Mitchell <mark@codesourcery.com>
8362 Jeffrey Oldham <oldham@codesourcery.com>
8364 * config/locale/gnu/messages_members.h: Use this-> to refer to
8365 unqualified members of base clasess.
8366 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
8367 * include/bits/codecvt.h: Likewise.
8368 * include/bits/deque.tcc: Likewise.
8369 * include/bits/fstream.tcc: Likewise.
8370 * include/bits/istream.tcc: Likewise.
8371 * include/bits/list.tcc: Likewise.
8372 * include/bits/locale_facets.h: Likewise.
8373 * include/bits/ostream.tcc: Likewise.
8374 * include/bits/sstream.tcc: Likewise.
8375 * include/bits/stl_bvector.h: Likewise.
8376 * include/bits/stl_deque.h: Likewise.
8377 * include/bits/stl_list.h: Likewise.
8378 * include/bits/stl_tree.h: Likewise.
8379 * include/bits/stl_vector.h: Likewise.
8380 * include/bits/vector.tcc: Likewise.
8381 * include/ext/ropeimpl.h: Likewise.
8382 * include/ext/stdio_filebuf.h: Likewise.
8383 * include/ext/stl_rope.h: Likewise.
8384 * include/std/std_fstream.h: Likewise.
8385 * include/std/std_sstream.h: Likewise.
8387 2003-01-15 Phil Edwards <pme@gcc.gnu.org>
8389 * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
8391 2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
8393 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
8394 GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
8395 * aclocal.m4: Regenerate.
8396 * configure: Regenerate.
8397 * testsuite/Makefile.am (all-local): Add conditional rule to
8398 generate testsuite_wchar_t.
8399 * testsuite/Makefile.in: Regenerate.
8400 * testsuite/lib/libstdc++-v3-dg.exp
8401 (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
8402 testsuite_wchar_t is not present in the build directory.
8403 * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
8404 Remove setulimit bits.
8405 * testsuite/26_numerics/complex_value.cc: Set to noopts.
8406 * testsuite/Makefile.am (CLEANFILES): Add.
8407 * testsuite/Makefile.in: Regenerate.
8409 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
8411 * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
8414 2003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
8416 Further conform g++'s __vmi_class_type_info to the C++ ABI
8418 * libsupc++/cxxabi.h
8419 (__vmi_class_type_info::__flags_masks): Remove enumerations not
8420 required by the specification.
8422 2003-01-12 Benjamin Kosnik <bkoz@redhat.com>
8424 Renames, namespaces for testsuite utilities.
8425 * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
8426 (gnu_allocator_tracker): Rename to allocation_tracker.
8427 (gnu_new_allocator): Rename to tracker_alloc.
8428 (__set_testsuite_memlimit): Rename to set_memory_limits.
8429 (gnu_assignment_operator): Rename to assignment_operator.
8430 (gnu_destructor): Rename to destructor.
8431 (gnu_copy_tracker): Rename to copy_tracker.
8432 (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
8433 (run_tests_wrapped_locale): New.
8434 (run_tests_wrapped_env): New.
8435 * testsuite/testsuite_hooks.cc: Same.
8436 (class locale_data): Add.
8437 (class enviornment_variable): Add.
8438 (class not_found): Add.
8439 * testsuite/testsuite_allocator.h: Same.
8440 * testsuite/testsuite_allocator.cc: Same.
8441 * testsuite/23_containers/deque_ctor.cc
8442 (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
8444 Change gnu_new_allocator to tracker_alloc.
8445 Change gnu_counting_struct to counter.
8446 Change gnu_copy_tracker to copy_tracker.
8447 Change gnu_copy_constructor to copy_constructor.
8448 Change gnu_assignment_operator to assignment_operator.
8450 * testsuite/23_containers/vector_capacity.cc: Same.
8451 * testsuite/23_containers/vector_ctor.cc (test01): Same.
8452 * testsuite/23_containers/list_modifiers.cc: Change
8453 gnu_copy_tracker to copy_tracker.
8454 * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
8455 __set_testsuite_memlimit to set_memory_limits.
8456 * testsuite/21_strings/insert.cc (main): Same.
8457 * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
8458 * testsuite/27_io/stringstream.cc: Same.
8459 * testsuite/27_io/stringbuf.cc: Same.
8460 * testsuite/27_io/streambuf.cc: Same.
8461 * testsuite/27_io/ostream.cc: Same.
8462 * testsuite/27_io/istream.cc: Same.
8463 * testsuite/27_io/fstream.cc: Same.
8464 * testsuite/lib/libstdc++-v3-dg.exp
8465 (libstdc++-v3-list-sourcefiles): Additionally handle files two and
8466 three levels deeper in glob patterns.
8468 2003-01-11 Phil Edwards <pme@gcc.gnu.org>
8470 * docs/doxygen/tables.html: Finished now.
8471 * docs/doxygen/user.cfg.in: Update to latest version of Doxygen.
8472 * include/bits/basic_ios.h (basic_ios::rdbuf): Add example to
8475 * include/bits/deque.tcc, include/bits/stl_alloc.h,
8476 include/bits/stl_deque.h, include/bits/stl_list.h,
8477 include/bits/stl_vector.h: Remove _GLIBCPP_DEPRECATED bits scheduled
8480 2003-01-09 Benjamin Kosnik <bkoz@redhat.com>
8482 * configure.in: Revert.
8483 * configure: Regenerate.
8485 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
8487 * include/Makefile.am (install-data-local): Prepend
8488 $(DESTDIR) to destination paths in all (un)installation
8489 commands. Use ${c_base_builddir} and ${std_builddir}
8490 as destination subdirectories to achieve consistency with
8491 preceding mkinstalldirs commands. No effect because both
8492 variables contain "." only.
8493 * include/Makefile.in: Regenerate.
8495 2003-01-08 Benjamin Kosnik <bkoz@redhat.com>
8497 * include/Makefile.am (stamp-*): Add checks for existing stamps.
8498 * include/Makefile.in: Regenerate.
8500 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
8501 * aclocal.m4: Regenerate.
8503 * configure.in: Don't add new multi-do rules every time the
8504 directory is reconfigured.
8505 * configure: Regenerate.
8507 2003-01-08 Brad Spencer <spencer@infointeractive.com>
8508 Nathan Myers <ncm@cantrip.org>
8510 * src/Makefile.am (stamp-debug): Clean.
8511 * src/Makefile.in: Regenerate.
8513 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
8516 * Makefile.am (distclean-multi): Fix.
8517 * Makefile.in: Regenerate.
8519 2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
8521 * include/bits/locale_facets.h (messages): Move ctor, dtor
8523 (__timepunct): Same.
8524 * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
8525 definitions. Conditionalize for GNU systems.
8526 * config/locale/generic/messages_members.h (messages): Add dtor, ctor
8528 * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
8529 definitions. Conditionalize for GNU systems.
8530 * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
8532 * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
8533 * src/locale.cc: Define.
8534 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
8536 * config/locale/gnu/time_members.h: Use it.
8537 * config/locale/gnu/messages_members.h: Use it.
8538 * config/linker-map.gnu: Add locale::facets details.
8539 * include/Makefile.am (target_headers_extra): Add time_members.h.
8540 * include/Makefile.in: Regenerate.
8541 * acinclude.m4: Export CTIME_H.
8542 * aclocal.m4: Regenerate.
8543 * configure: Regnerate.
8545 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
8548 (codecvt<char, char, mbstate_t>::do_in, do_out):
8549 Tweak parameters to avoid unused parameter warnings.
8551 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
8554 * include/bits/locale_facets.cc (num_put::_M_convert_float):
8555 Limit __prec to digits10 + 2, not digits10 + 1, taking into
8556 account the possibility of %{g,G} conversion specifiers
8557 inside _S_format_float.
8558 * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
8560 2003-01-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8562 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
8563 libstdc++-v3-list-sourcefiles): Additionally handle files one
8564 level deeper in glob patterns.
8566 * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
8567 * testsuite/27_io/istream_extractor_arith/01.cc,
8568 testsuite/27_io/istream_extractor_arith/02.cc,
8569 testsuite/27_io/istream_extractor_arith/03.cc,
8570 testsuite/27_io/istream_extractor_arith/06.cc,
8571 testsuite/27_io/istream_extractor_arith/07.cc,
8572 testsuite/27_io/istream_extractor_arith/08.cc,
8573 testsuite/27_io/istream_extractor_arith/09.cc,
8574 testsuite/27_io/istream_extractor_arith/10.cc,
8575 testsuite/27_io/istream_extractor_arith/11.cc,
8576 testsuite/27_io/istream_extractor_arith/12.cc,
8577 testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
8578 * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
8581 2003-01-05 Paolo Carlini <pcarlini@unitus.it>
8585 (codecvt<char, char, mbstate_t>::do_in, do_out):
8586 Implement the resolution of DR19 (TC).
8587 * testsuite/22_locale/codecvt_members_char_char.cc
8590 2003-01-02 Jason Merrill <jason@redhat.com>
8592 * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
8593 *__mem is also an output.
8594 * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.