1 2003-12-28 Paolo Carlini <pcarlini@suse.de>
3 * include/ext/pool_allocator.h (class __pool_alloc): Use
4 operator new and operator delete.
6 2003-12-24 Andrew Pinski <pinskia@physics.uc.edu>
8 * config/cpu/i386/atomicity.h (__exchange_and_add): Fix output
12 * config/cpu/i386/atomicity.h: Split up read-write memory operand.
14 2003-12-23 Benjamin Kosnik <bkoz@redhat.com>
16 * include/ext/new_allocator.h (new_allocator): Proper allocator class.
17 (__new_alloc): Delete.
18 * include/ext/malloc_allocator.h (malloc_allocator): Same.
19 (__malloc_alloc): Delete.
20 * include/ext/mt_allocator.h: Same, but weakly.
21 * include/ext/debug_allocator.h: Convert to the new style.
22 * include/ext/pool_allocator.h: Use global new and delete directly.
23 * include/backward/alloc.h: Don't inject malloc_allocator, or
25 * testsuite/ext/allocators.cc: Minimal fixups for usage of new
26 classes. Comment out tests with __pool_alloc for now.
27 * testsuite/performance/allocator.cc: Same.
29 2003-12-22 Matt Austern <austern@apple.com>
31 * include/bits/stl_bvector.h (_Bvector_alloc_base): Eliminate.
32 (_Bvector_base): Inherit directly from word allocator.
33 * include/bits/stl_tree.h (_Rb_tree_alloc_base): Eliminate.
34 (_Rb_tree_base): Eliminate.
35 (_Rb_tree): Inherit directly from node allocator.
36 * include/ext/slist (_Alist_alloc_base): Eliminate.
37 (_Slist_base): Inherit direcly from node allocator.
39 2003-12-22 Benjamin Kosnik <bkoz@redhat.com>
41 * testsuite/18_support/numeric_limits.cc: Add _GLIBCXX_ASSERT to
42 dg-options in testcases that use VERIFY.
43 * testsuite/23_containers/vector/invalidation/1.cc: Same.
44 * testsuite/23_containers/vector/invalidation/2.cc: Same.
45 * testsuite/23_containers/vector/invalidation/3.cc: Same.
46 * testsuite/23_containers/vector/invalidation/4.cc: Same.
47 * testsuite/23_containers/vector/resize/1.cc: Same.
48 * testsuite/26_numerics/complex_value.cc: Same.
49 * testsuite/27_io/ios_base/storage/1.cc: Same.
50 * testsuite/27_io/ios_base/storage/2.cc: Same.
51 * testsuite/27_io/ios_base/storage/3.cc: Same.
52 * testsuite/27_io/manipulators/standard/char/2.cc: Same.
53 * testsuite/backward/11460.cc: Same.
54 * testsuite/backward/strstream_members.cc: Same.
56 * include/ext/hash_set (class hash_multiset): Fix typo.
58 2003-12-22 Benjamin Kosnik <bkoz@redhat.com>
60 * testsuite/27_io/objects/char/5.cc: Don't use stdc++.h.gch.
61 * testsuite/27_io/objects/wchar_t/5.cc: Same.
62 * docs/html/test.html: Add docs for constructing test files that
63 don't use stdc++.h.gch.
64 * scripts/testsuite_flags.in (PCHFLAGS): Move to --cxxpchflags.
65 * testsuite/libstdc++-dg/normal.exp: Compute DEFAULT_CXXFLAGS
68 * include/bits/ios_base.h (ios_base::Init::_S_initialized): Remove.
69 * src/ios_init.cc: Same.
70 * config/linker-map.gnu: Same.
71 * testsuite/27_io/ios_base/cons/copy_neg.cc: Adjust line numbers.
72 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
74 2003-12-22 Andrew Pinski <pinskia@physics.uc.edu>
77 * include/bits/stl_multiset.h (__gnu_norm::multiset): Define pointer
78 as allocator's pointer, likewise for reference, const_pointer, and
80 * include/bits/stl_set.h (__gnu_norm::set): Likewise.
81 * include/ext/hash_set (__gnu_ext::hash_set): Likewise.
82 (__gnu_ext::hash_multiset): Likewise.
84 2003-12-22 Paolo Carlini <pcarlini@suse.de>
86 * include/bits/locale_facets.tcc (num_get::_M_extract_int,
87 num_get::_M_extract_float): According to 22.2.2.1.2, p8-9,
88 first look for decimal_point and thousands_sep, when parsing
89 sign, leading zeros (and 0, Ox, 0X for integer types) too.
90 * testsuite/22_locale/num_get/get/char/12.cc: New.
91 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
93 * testsuite/22_locale/num_get/get/char/11.cc: Add a comment.
94 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
96 2003-12-20 Jason Merrill <jason@redhat.com>
98 * config/cpu/powerpc/atomicity.h: Fix oversight in previous
101 2003-12-20 Jerry Quinn <jlquinn@optonline.net>
103 * docs/doxygen/TODO: Update.
104 * include/bits/locale_classes.h (locale, facet, id): Document.
105 * include/bits/locale_facets.tcc (has_facet, use_facet): Document.
107 2003-12-19 Jason Merrill <jason@redhat.com>
109 * config/cpu/cris/atomicity.h: Remove memory clobbers.
110 * config/cpu/mips/atomicity.h: Likewise.
111 * config/cpu/i486/atomicity.h: Remove memory clobbers.
112 Split up read-write memory operand.
113 * config/cpu/m68k/atomicity.h: Likewise.
114 * config/cpu/powerpc/atomicity.h: Make memory I/O explicit.
115 * config/cpu/s390/atomicity.h: Likewise.
116 * config/cpu/sparc/atomicity.h: Likewise.
118 2003-12-20 Carlo Wood <carlo@alinoe.com>
121 namespace __gnu_cxx::demangler
122 (session<Allocator>::decode_encoding): Put the postfix
123 of the return type of (member) functions after the function
124 instead of after the return type.
126 2003-12-19 Jerry Quinn <jlquinn@optonline.net>
128 * include/bits/locale_facet.h
129 (__ctype_abstract_base,ctype<charT>,ctype<char>,ctype<wchar_t>):
132 2003-12-19 Paolo Carlini <pcarlini@suse.de>
134 * include/bits/locale_facets.tcc (num_get::_M_extract_int,
135 num_get::_M_extract_float): According to 22.2.2.1.2, p8-9,
136 first look for decimal_point and thousands_sep.
137 * testsuite/22_locale/num_get/get/char/11.cc: New.
138 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
140 2003-12-19 Paolo Carlini <pcarlini@suse.de>
142 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
143 When __found_sci becomes true stop eating thousands separators
144 and the decimal radix separator.
145 * testsuite/22_locale/num_get/get/char/9.cc: New.
146 * testsuite/22_locale/num_get/get/wchar_t/9.cc: Likewise.
148 * config/locale/generic/c_locale.cc (__convert_to_v): Don't
149 check that *__sanity == '\0': parsing may stop earlier, still
151 * config/locale/gnu/c_locale.cc: Likewise.
152 * testsuite/22_locale/num_get/get/char/10.cc: New.
153 * testsuite/22_locale/num_get/get/wchar_t/10.cc: Likewise.
154 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
155 Tweak in one place accordingly.
157 * testsuite/22_locale/money_get/get/char/1.cc: Fix typo.
158 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
160 2003-12-18 Benjamin Kosnik <bkoz@redhat.com>
162 * include/bits/stl_list.h: Formatting tweaks.
163 * include/bits/list.tcc: Same.
165 2003-12-18 Matt Austern <austern@apple.com>
167 * include/bits/demangle.h: Fix allocator type correctness,
168 i.e. make sure that when we instantiate a container with a value
169 type and an allocator, the allocator's value type matches the
171 * include/bits/stl_deque.h (_Deque_alloc_base): Eliminate.
172 (_Deque_base): inherit directly from the deque's allocator. Use
173 rebinding instead of _Alloc_traits. Pick up data members from
175 * include/bits/stl_list.h (_List_alloc_base): Eliminate.
176 (_List_base): Inherit directly from the list's allocator. Use
177 rebinding instead of _Alloc_traits. Pick up data members from
179 * include/bits/stl_vector.h (_Vector_alloc_base): Eliminate
180 (_Vector_base): Inherit directly from the vector's allocator. Use
181 rebinding instead of _Alloc_traits. Pick up data members from
183 * include/ext/hashtable.h: Fix allocator type correctness (the
184 vector of buckets must be passed an allocator for objects of
185 type _Node*). Use rebinding instead of _Alloc_traits.
187 2003-12-17 Paolo Carlini <pcarlini@suse.de>
189 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
190 Use narrow to get from __format[__i] a char __c representing a
191 formatting code, don't use it to compare *__beg to __format[__i].
192 * testsuite/22_locale/time_get/get_date/wchar_t/4.cc: New.
194 2003-12-17 Paolo Carlini <pcarlini@suse.de>
196 * testsuite/performance/container_benchmark.cc: Tweak outputs.
198 * testsuite/performance/list_create_fill_sort.cc: Shrink a
201 * testsuite/testsuite_performance.h: Widen a few output fields.
203 * testsuite/performance/ifstream_extract_int.cc: New.
205 2003-12-16 Phil Edwards <phil@codesourcery.com>
207 * configure.ac (AM_INIT_AUTOMAKE): Don't warn about GNU Make.
208 * configure: Regenerated.
209 * Makefile.am (check-%): New catch-all forwarding target.
210 * Makefile.in: Regenerated.
212 2003-12-16 Paolo Carlini <pcarlini@suse.de>
214 * testsuite/performance/container_benchmark.cc: New, a
215 benchmark developed by Bjarne Stroustrup and Alexander
216 Stepanov and made available with no restrictions.
218 * testsuite/testsuite_performance.h (report_header): New,
219 useful to produce header lines in the reports.
221 2003-12-16 Jonathan Wakely <redi@gcc.gnu.org>
223 * docs/html/21_strings/howto.html: Document shrink-to-fit reserve().
224 * docs/html/faq/index.html: Reducing vector's capacity() to size().
225 * docs/html/documentation.html, docs/html/faq/index.txt: Regenerate.
227 2003-12-16 Paolo Carlini <pcarlini@suse.de>
229 * testsuite/performance/narrow_widen_char.cc: Tweak the
230 number of iterations for each test.
231 * testsuite/performance/narrow_widen_wchar_t.cc: Add a
232 missing clear_counters.
234 2003-12-16 Paolo Carlini <pcarlini@suse.de>
237 * include/bits/locale_facets.h: Add _M_bit and _M_wmask,
238 used to speed up the computation of ctype::do_is.
239 * config/locale/generic/ctype_members.cc
240 (_M_initialize_ctype): Fill _M_bit and _M_wmask.
241 (ctype::do_is): Use _M_bit and _M_wmask.
242 * config/locale/gnu/ctype_members.cc: Likewise.
243 * testsuite/performance/is_wchar_t.cc: New.
245 * testsuite/performance/narrow_widen_wchar_t.cc: Tweak
246 string literal (incorrect citation ;)
248 * include/bits/locale_facets.h: Minor tweaks, const
249 correctness, unsigned -> size_t.
251 2003-12-16 Jerry Quinn <jlquinn@optonline.net>
253 * include/bits/locale_facets.h (widen, narrow): Uncomment the
256 2003-12-15 Jerry Quinn <jlquinn@optonline.net>
258 * config/os/aix/ctype_noninline.h,
259 config/os/bsd/freebsd/ctype_noninline.h,
260 config/os/bsd/netbsd/ctype_noninline.h,
261 config/os/djgpp/ctype_noninline.h,
262 config/os/generic/ctype_noninline.h,
263 config/os/gnu-linux/ctype_noninline.h,
264 config/os/hpux/ctype_noninline.h,
265 config/os/irix/irix5.2/ctype_noninline.h,
266 config/os/irix/irix6.5/ctype_noninline.h,
267 config/os/mingw32/ctype_noninline.h,
268 config/os/newlib/ctype_noninline.h,
269 config/os/qnx/qnx6.1/ctype_noninline.h,
270 config/os/solaris/solaris2.5/ctype_noninline.h,
271 config/os/solaris/solaris2.6/ctype_noninline.h,
272 config/os/solaris/solaris2.7/ctype_noninline.h,
273 config/os/vxworks/ctype_noninline.h,
274 config/os/windiss/ctype_noninline.h (ctype): Initialize
276 * include/bits/locale_facets.h (_M_widen, _M_widen_ok,
277 _M_narrow, _M_narrow_ok): New.
278 (widen, narrow): Use tables to bypass virtual functions.
279 (_M_widen_init, _M_narrow_init): New.
281 2003-12-15 Carlo Wood <carlo@alinoe.com>
283 * include/bits/ios_base.h (Init::_S_initialized): Change into
285 * src/ios_init.cc (Init::_S_initialized): Add definition.
287 2003-12-15 Benjamin Kosnik <bkoz@redhat.com>
290 * include/Makefile.am (bits_headers): Add concurrence.h.
291 * include/Makefile.in: Regenerated.
292 * include/bits/concurrence.h: New.
293 * src/locale_init.cc: Use it.
294 (locale::locale): Lock critical regions.
295 (locale::global): Same.
297 2003-12-15 Benjamin Kosnik <bkoz@redhat.com>
299 * include/bits/basic_string.h: Change _*_references to _*_refcount.
300 * include/bits/locale_classes.h: Same.
301 * src/locale.cc: Same.
302 * src/locale_name.cc: Same.
303 * src/locale_init.cc: Same.
305 2003-12-15 Benjamin Kosnik <bkoz@redhat.com>
308 * include/bits/ios_base.h (Init::_S_ios_base_init): Change to
309 _S_refcount, make atomic.
310 * src/ios.cc: Adjust definition.
311 * src/ios_init.cc (ios_base::Init::Init): Use __exchange_and_add,
313 (ios_base::Init::~Init): Same.
314 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
315 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
317 2003-12-15 Paolo Carlini <pcarlini@suse.de>
319 * include/bits/locale_facets.tcc (num_get::do_get(bool&)):
320 Fail as soon as the begins of both truename and falsename
321 stop to match; always leave __beg one position beyond the
322 last char successfully matched.
323 * testsuite/22_locale/num_get/get/char/8.cc: New.
324 * testsuite/22_locale/num_get/get/wchar_t/8.cc: Likewise.
326 2003-12-15 Paolo Carlini <pcarlini@suse.de>
328 * include/bits/locale_facets.h (_M_widen): Reserve space
329 for all the possible widened chars.
330 * config/locale/generic/ctype_members.cc (_M_initialize_ctype):
331 Compute at construction time all the possible widened chars.
332 (do_widen): Tweak, simplify.
333 * config/locale/gnu/ctype_members.cc: Likewise.
334 * testsuite/performance/narrow_widen_wchar_t.cc: Add tests
335 for the array versions.
337 2003-12-12 Paolo Carlini <pcarlini@suse.de>
338 Benjamin Kosnik <bkoz@redhat.com>
341 * include/bits/locale_facets.h (ctype<wchar_t>): Declare
342 _M_initialize_ctype() and _M_narrow_ok, _M_narrow and _M_widen.
343 * src/ctype.cc (ctype<wchar_t>::ctype(size_t),
344 ctype<wchar_t>::ctype(__c_locale, size_t)): Use
345 _M_initialize_ctype to fill _M_narrow and _M_widen.
346 (ctype_byname<wchar_t>::ctype_byname(const char*, size_t)):
348 * config/locale/generic/ctype_members.cc (do_narrow, do_widen)
349 Use _M_narrow and _M_widen when possible, instead of calling
350 wctob and btowc, respectively.
351 (_M_initialize_ctype): Define, it fills at construction time
352 _M_narrow and _M_widen.
353 * config/locale/gnu/ctype_members.cc: Likewise.
354 * testsuite/performance/narrow_widen_wchar_t.cc: New.
356 2003-12-12 Jonathan Wakely <redi@gcc.gnu.org>
358 * docs/html/faq/index.txt: Regenerate after adding <link> tags.
360 2003-12-11 Neil Ferguson <nferguso@eso.org>
361 Paolo Carlini <pcarlini@suse.de>
363 * include/bits/basic_string.tcc (reserve): Allow shrink-to-fit.
364 * testsuite/21_strings/basic_string/capacity/1.cc: Tweak.
365 * testsuite/21_strings/basic_string/capacity/char/1.cc: Ditto.
366 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Ditto.
368 2003-12-10 Benjamin Kosnik <bkoz@redhat.com>
371 * testsuite/lib/libstdc++.exp (v3-init): Add
372 original_ld_library_path, calculate ld_library path, set
373 LD_LIBRARY_PATH to both. Based on libjava.exp.
375 2003-12-10 Benjamin Kosnik <bkoz@redhat.com>
376 Alexandre Oliva <aoliva@redhat.com>
379 * testsuite/Makefile.am (GLIBCXX_DIR): New.
381 (CXXLINK): Use both with -R so libtool links the correct libs.
383 2003-12-10 Paolo Carlini <pcarlini@suse.de>
386 * include/bits/fstream.tcc (underflow): Deal gracefully with
387 read errors: throw ios_base::failure.
389 2003-12-10 Benjamin Kosnik <bkoz@redhat.com>
392 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Sync.
393 * testsuite/ext/stdio_filebuf/char/10063-1.cc: New.
394 * testsuite/ext/stdio_filebuf/char/10063-2.cc: New.
396 2003-12-10 Paolo Carlini <pcarlini@suse.de>
398 * include/bits/locale_facets.tcc (num_put::do_put(void*)):
399 Remove the try/catch, not necessary.
401 2003-12-10 Paolo Carlini <pcarlini@suse.de>
403 * testsuite/22_locale/locale/cons/12438.cc: Tweak memory
404 limit and iterations to avoid spurious failures on some
407 2003-12-09 Benjamin Kosnik <bkoz@redhat.com>
409 * config/linker-map.gnu: Remove private ios_base members from
412 * config/cpu/alpha/atomicity.h: Consistently format.
413 * config/cpu/cris/atomicity.h: Same.
414 * config/cpu/generic/atomicity.h: Same.
415 * config/cpu/hppa/atomicity.h: Same.
416 * config/cpu/i386/atomicity.h: Same.
417 * config/cpu/i486/atomicity.h: Same.
418 * config/cpu/ia64/atomicity.h: Same.
419 * config/cpu/m68k/atomicity.h: Same.
420 * config/cpu/mips/atomicity.h: Same.
421 * config/cpu/powerpc/atomicity.h: Same.
422 * config/cpu/s390/atomicity.h: Same.
423 * config/cpu/sparc/atomicity.h: Same.
425 2003-12-09 Benjamin Kosnik <bkoz@redhat.com>
428 * acinclude.m4 (GLIBCXX_ENABLE_LIBUNWIND_EXCEPTIONS): Remove.
429 * aclocal.m4: Regenerate.
430 * configure.ac: Remove call to GLIBCXX_ENABLE_LIBUNWIND_EXCEPTIONS.
431 * conigure: Regenerate.
432 * src/Makefile.am (libstdc___la_LDFLAGS): Remove LIBUNWIND_FLAGS.
433 * src/Makefile.in: Regenerate.
434 * docs/html/17_intro/configury.html: Modify.
436 2003-12-09 Paolo Carlini <pcaelini@suse.de>
438 * include/bits/demangle.h (struct implementation_details):
439 Keep in comments the names of the unused parameters.
441 2003-12-09 Paolo Carlini <pcaelini@suse.de>
443 * include/bits/demangle.h (struct implementation_details):
444 Fix unused parameters warning.
446 2003-12-09 Paolo Carlini <pcarlini@suse.de>
448 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
449 Slightly streamline the code dealing with overflows and the
452 2003-12-09 Bernardo Innocenti <bernie@develer.com>
454 * include/ext/algorithm, include/ext/debug_allocator.h,
455 include/ext/enc_filebuf.h, include/ext/functional,
456 include/ext/hash_fun.h, include/ext/hash_map, include/ext/hash_set,
457 include/ext/hashtable.h, include/ext/iterator,
458 include/ext/malloc_allocator.h, include/ext/memory,
459 include/ext/mt_allocator.h, include/ext/numeric,
460 include/ext/pod_char_traits.h, include/ext/pool_allocator.h,
461 include/ext/rb_tree, include/ext/rope, include/ext/ropeimpl.h,
462 include/ext/slist, include/ext/stdio_filebuf.h,
463 include/ext/stdio_sync_filebuf.h: Remove trailing whitespace.
465 2003-12-09 Bernardo Innocenti <bernie@develer.com>
467 * include/debug/bitset, include/debug/debug.h, include/debug/deque,
468 include/debug/formatter.h, include/debug/hash_map.h,
469 include/debug/hash_multimap.h, include/debug/hash_multiset.h,
470 include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
471 include/debug/map.h, include/debug/multimap.h,
472 include/debug/multiset.h, include/debug/safe_base.h,
473 include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
474 include/debug/safe_sequence.h, include/debug/set.h,
475 include/debug/string, include/debug/vector: Remove trailing whitespace.
477 2003-12-09 Bernardo Innocenti <bernie@develer.com>
479 * include/c_compatibility/iso646.h, include/c_compatibility/limits.h,
480 include/c_compatibility/locale.h, include/c_compatibility/stdio.h,
481 include/c_compatibility/string.h, include/c_compatibility/time.h,
482 include/c_compatibility/wchar.h, include/c_compatibility/wctype.h:
483 Remove trailing whitespace.
485 2003-12-09 Bernardo Innocenti <bernie@develer.com>
487 * include/c_std/cmath.tcc, include/c_std/std_cassert.h,
488 include/c_std/std_cctype.h, include/c_std/std_cmath.h,
489 include/c_std/std_cstddef.h, include/c_std/std_cstdio.h,
490 include/c_std/std_cstdlib.h, include/c_std/std_cstring.h,
491 include/c_std/std_cwchar.h, include/c_std/std_cwctype.h:
492 Remove trailing whitespace.
494 2003-12-09 Bernardo Innocenti <bernie@develer.com>
496 * include/c/std_cctype.h, include/c/std_cmath.h,
497 include/c/std_cstdlib.h include/c/std_cwchar.h,
498 include/c/std_cwctype.h: Remove trailing whitespace.
500 2003-12-09 Bernardo Innocenti <bernie@develer.com>
502 * include/backward/algo.h, include/backward/algobase.h,
503 include/backward/alloc.h, include/backward/complex.h,
504 include/backward/defalloc.h, include/backward/function.h,
505 include/backward/iterator.h, include/backward/new.h,
506 include/backward/ostream.h, include/backward/queue.h,
507 include/backward/rope.h, include/backward/stream.h,
508 include/backward/streambuf.h, include/backward/strstream,
509 include/backward/tempbuf.h, include/backward/tree.h,
510 include/backward/vector.h: Remove trailing whitespace.
512 2003-12-08 Paolo Carlini <pcarlini@suse.de>
514 * config/locale/generic/c_locale.cc (__convert_to_v(long&),
515 __convert_to_v(unsigned long&), __convert_to_v(long long&),
516 __convert_to_v(unsigned long long&): Remove.
517 (__convert_to_v(float&), __convert_to_v(double&),
518 __convert_to_v(long double&)): Remove last unused parameter.
519 * config/locale/gnu/c_locale.cc: Likewise.
520 * include/bits/locale_facets.h: Likewise.
521 (num_get::_M_extract_int): Update declaration.
522 (class __num_base): Tweak _S_ie and _S_iE according to the
524 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
525 Provide directly the final _ValueT, not a string: accumulate
526 the result checking for overflow at each digit.
527 (num_get::do_get(bool&), num_get::do_get(long&),
528 num_get::do_get(unsigned short&), num_get::do_get(unsigned int&),
529 num_get::do_get(unsigned long&), num_get::do_get(long long&),
530 num_get::do_get(unsigned long long&), num_get::do_get(void*&)):
531 Use the new _M_extract_int, simplify.
532 * src/locale-inst.cc (num_get::_M_extract_int(long&),
533 num_get::_M_extract_int(unsigned short&),
534 num_get::_M_extract_int(unsigned int&),
535 num_get::_M_extract_int(unsigned long&),
536 num_get::_M_extract_int(long long&),
537 num_get::_M_extract_int(unsigned long long&): Instantiate.
538 * src/locale_facets.cc (__num_base::_S_atoms_in): Reorder
539 the chars in the natural order: abcdefABCDEF.
541 2003-12-08 David S. Miller <davem@redhat.com>
544 * config/cpu/sparc/atomicity.h (__exchange_and_add, __atomic_add):
545 Extend increment to _Atomic_word before giving to assembler.
547 2003-12-06 Benjamin Kosnik <bkoz@redhat.com>
549 * testsuite/ext/enc_filebuf/char/13189.cc: Guard for __enc_traits.
550 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
552 2003-12-06 Benjamin Kosnik <bkoz@redhat.com>
555 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf):
556 Remove __del argument to file descriptor constructor.
557 * config/io/basic_file_stdio.h (__basic_file::sys_open): Remove
559 * config/io/basic_file_stdio.cc: Same.
561 2003-12-05 Benjamin Kosnik <bkoz@redhat.com>
564 * include/ext/enc_filebuf.h: Fix.
565 * include/bits/fstream.tcc: Tweak formatting.
566 * include/bits/postypes.h: Same.
567 * include/bits/sstream.tcc: Same.
568 * include/bits/streambuf.tcc: Same.
569 * testsuite/ext/stdio_filebuf.cc: Split.
570 * testsuite/ext/stdio_filebuf_2.cc: Split.
571 * testsuite/ext/stdio_sync_filebuf_char.cc: Split.
572 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc: Split.
573 * testsuite/ext/enc_filebuf/char/13189.cc: New.
574 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: New.
575 * testsuite/ext/stdio_filebuf/char/1.cc: New.
576 * testsuite/ext/stdio_filebuf/char/2.cc: New.
577 * testsuite/ext/stdio_sync_filebuf/char/1.cc: New.
578 * testsuite/ext/stdio_sync_filebuf/char/12048-1.cc: New.
579 * testsuite/ext/stdio_sync_filebuf/char/12048-2.cc: New.
580 * testsuite/ext/stdio_sync_filebuf/char/12048-3.cc: New.
581 * testsuite/ext/stdio_sync_filebuf/char/12048-4.cc: New.
582 * testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc: New.
583 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc: New.
584 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc: New.
585 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc: New.
586 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc: New.
588 2003-12-05 Carlo Wood <carlo@alinoe.com>
592 namespace __gnu_cxx::demangler
593 (enum substitution_nt): Removed trailing comma.
594 (implementation_details): Added.
595 (session<Allocator>::M_implementation_details): Added.
596 (session<Allocator>::session): Pass implementation_details.
597 (session<Allocator>::decode_encoding): Same.
598 (session<Allocator>::decode_real): Added.
599 (_GLIBCXX_DEMANGLER_STYLE_VOID _GLIBCXX_DEMANGLER_STYLE_LITERAL
600 _GLIBCXX_DEMANGLER_STYLE_LITERAL_INT
601 _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
602 _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Replaced with
603 implementation_details equivalent.
604 (session<Allocator>::decode_expression):
605 Use M_implementation_details instead of macros. Add extra parentheses
606 around 'larger than' operator in expressions in template arguments.
607 (session<Allocator>::decode_bare_function_type): Idem.
608 (session<Allocator>::decode_literal):
609 Idem, and call decode_real for floating literals.
610 (session<Allocator>::decode_type_with_postfix): Put the postfix
611 of the return type of (member) functions after the function
612 instead of after the return type. Also, put a space after the
613 prefix of qualified function pointers: "int (* const<space>".
614 * src/demangle.cc: include most dependent header file first.
615 * testsuite/demangle/regression/cw-16.cc: Updated two
616 and added three tests.
618 2003-12-04 Benjamin Kosnik <bkoz@redhat.com>
621 * include/bits/stl_algo.h (__random_number): Remove.
622 (random_shuffle): Use rand, as permitted by DR 395.
623 * include/ext/algorithm: Same.
624 * linkage.m4 (GLIBCXX_CHECK_STDLIB_SUPPORT): Remove lrand48.
626 * crossconfig.m4: Remove HAVE_DRAND48, HAVE_LRAND48.
627 * config.h.in: Regenerated.
631 2003-12-04 Paolo Carlini <pcarlini@suse.de>
634 * include/std/std_bitset.h (operator>>): Implement resolution
635 of DR 303 [WP]: use widen('0') and widen('1').
636 * docs/html/ext/howto.html: Add an entry for DR 303.
638 * include/std/std_bitset.h (operator>>): Implement the common
639 requirements of formatted input functions (27.6.1.2.1).
641 * include/std/std_bitset.h (operator>>): Set the failbit when
642 nothing was extracted and _Nb != 0.
643 * testsuite/23_containers/bitset/input/1.cc: New.
645 2003-12-03 Paolo Carlini <pcarlini@suse.de>
648 * include/bits/locale_facets.tcc (time_get::_M_extract_num):
649 Rewrite, stop the parsing as soon as a digit cannot possibly
650 lead to a final number within the bounds; otherwise, simplify,
651 avoiding __ctype.is() and atoi().
652 * testsuite/22_locale/time_get/get_date/char/12791.cc: New.
653 * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: New.
655 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
656 Minor tweak: a 4-digit integer cannot be bigger than 9999.
658 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Use
659 type-correct wchar_t string literals.
660 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
661 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
662 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
663 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
665 2003-12-02 Paolo Carlini <pcarlini@suse.de>
667 * include/bits/locale_facets.tcc (time_get::do_get_year):
668 Avoid using a basic_string and calling a full blown strtol
669 (via __convert_to_v) for simple 2 or 4 digits, base 10,
670 positive integers; simplify.
672 2003-12-02 Paolo Carlini <pcarlini@suse.de>
674 * config/locale/gnu/monetary_members.cc
675 (money_base::_S_construct_pattern): For case 3: and 4:
676 exchanging 'if (__precedes)' and 'if (__space)' allows
677 to factor out a few more assignments.
679 2003-12-01 Benjamin Kosnik <bkoz@redhat.com>
681 * include/bits/basic_ios.h (basic_ios::setstate): Revert.
682 * include/bits/istream.tcc: Only call setstate if __err != goodbit.
683 * include/bits/ostream.tcc: Same.
684 * testsuite/27_io/basic_ios/exceptions/char/2.cc: New.
686 * testsuite/testsuite_io.h (__gnu_test::fail_streambuf): Make
687 internal buffer non-static.
689 2003-12-01 Benjamin Kosnik <bkoz@redhat.com>
691 * docs/html/17_intro/C++STYLE: Add exception bits.
692 * include/bits/fstream.tcc: Add location info to exception strings.
694 * include/bits/stl_construct.h: Formatting tweaks.
696 2003-12-01 Paolo Carlini <pcarlini@suse.de>
699 * include/bits/allocator.h (allocator::construct): Implement
700 resolution of DR 402 [Ready] (in Revision 28).
701 * include/bits/allocator_traits.h (__allocator::construct):
703 * include/bits/stl_construct.h (_Construct): Likewise.
704 * testsuite/20_util/allocator_members.cc: Move to...
705 * testsuite/20_util/allocator/1.cc: ... here.
706 * testsuite/20_util/allocator/10378.cc: New.
707 * docs/html/ext/howto.html: Add an entry for DR 402.
709 2003-11-30 Paolo Carlini <pcarlini@suse.de>
711 * config/locale/gnu/codecvt_members.cc (codecvt::do_in,
712 codecvt::do_length): More minor tweaks.
714 2003-11-30 Paolo Carlini <pcarlini@suse.de>
716 * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
717 Minor stylistic tweak.
719 2003-11-30 Paolo Carlini <pcarlini@suse.de>
721 * include/bits/locale_facets.tcc (num_put::do_put(..., bool)):
722 Minor tweaks, consistent with the style used in other facets.
724 2003-11-29 Paolo Carlini <pcarlini@suse.de>
726 * include/bits/fstream.tcc (underflow): Minor tweaks in
727 preparation for libstdc++/13217.
729 2003-11-29 Paolo Carlini <pcarlini@suse.de>
731 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc:
732 Tweak for a few small problems (fix timings, use VERIFY..)
734 2003-11-28 Paolo Carlini <pcarlini@suse.de>
736 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: Remove.
737 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13171-3.cc: New,
738 the original third testcase for libstdc++/13171 belong here.
740 2003-11-28 Paolo Carlini <pcarlini@suse.de>
742 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc:
743 Remove extraneous wchar_t lines.
745 2003-11-27 Paolo Carlini <pcarlini@suse.de>
749 * include/bits/fstream.tcc (underflow): Throw ios_base::failure
750 upon incomplete or invalid byte sequences in the file.
751 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-1.cc: New.
752 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-2.cc: New.
753 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: New.
755 2003-11-27 Paolo Carlini <pcarlini@suse.de>
757 * include/std/std_streambuf.h (__copy_streambufs): Remove
758 the first, unused, basic_ios<> parameter.
759 * src/streambuf-inst.cc: Likewise.
760 * include/bits/streambuf.tcc: Likewise.
761 * include/bits/istream.tcc (operator>>(__streambuf_type*)):
762 Tweak accordingly the call.
763 * include/bits/ostream.tcc (operator<<(__streambuf_type*)):
766 * include/bits/streambuf.tcc (__copy_streambufs): Remove
769 2003-11-26 Benjamin Kosnik <bkoz@redhat.com>
775 * include/bits/basic_ios.h (basic_ios::setstate): Elide if goodbit.
776 (basic_ios::_M_setstate): Consolidate common error handling code.
777 * include/bits/basic_ios.tcc: Tweak.
778 * include/bits/fstream.tcc: Tweak.
779 * include/bits/istream.tcc: Use _M_setstate for common exception
780 handling. Move setstate calls after catch.
781 (basic_istream::tellg): Check for exceptions thrown by streambuf
783 (basic_istream::seekg): Same.
784 * include/bits/ostream.tcc: Same, but for ostream.
785 (basic_ostream::flush): Check for exceptions thrown by streambuf
787 (basic_istream::tellp): Same.
788 (basic_istream::seekp): Same.
789 * include/bits/locale_facets.tcc: Tweak.
790 * include/bits/streambuf.tcc: Tweak.
791 (__copy_streambufs): Propagate exceptions.
792 * testsuite/testsuite_io.h (fail_streambuf): New.
796 (underflow_error): New.
797 (overflow_error): New.
798 (positioning_error): New.
799 * testsuite/27_io/basic_istream/exceptions/char/9561.cc: Tweak.
800 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
801 exceptions_badbit_throw.cc, exceptions_failbit.cc,
802 exceptions_failbit_throw.cc: New.
803 * testsuite/27_io/basic_istream/extractors_other/char/
804 error_failbit.cc, exceptions_badbit_throw.cc,
805 exceptions_failbit_throw.cc, exceptions_null.cc: New.
806 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
808 * testsuite/27_io/basic_istream/tellg/char/exceptions_badbit_throw.cc:
810 * testsuite/27_io/basic_ostream/flush/char/exceptions_badbit_throw.cc:
812 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
813 exceptions_badbit_throw.cc, exceptions_failbit_throw.cc: New.
814 * testsuite/27_io/basic_ostream/inserters_other/char/
815 error_failbit.cc, exceptions_badbit_throw.cc,
816 exceptions_failbit_throw.cc, exceptions_null.cc: New.
817 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
819 * testsuite/27_io/basic_ostream/tellp/char/exceptions_badbit_throw.cc:
822 2003-11-26 Benjamin Kosnik <bkoz@redhat.com>
825 * include/bits/istream.tcc
826 (basic_istream::sentry::sentry): Set failbit and eofbit when eof.
827 * testsuite/27_io/basic_istream/sentry/char/12297.cc: New.
829 2003-11-26 Paolo Carlini <pcarlini@suse.de>
830 Petur Runolfsson <peturr02@ru.is>
833 * include/bits/fstream.tcc (imbue): Relax the conditions under
834 which the function succeeds: allow for two consecutive calls with
835 the same name; state dependent encodings are ok even after open
836 if at the beginning of the file; don't check seekoff return value
837 (pipes, cin, cout, etc...)
838 * testsuite/27_io/basic_filebuf/imbue/char/13171-1.cc: New.
839 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: New.
840 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: New.
841 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: New.
842 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak comment.
843 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: Likewise.
844 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Tweak comment.
845 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: Likewise.
847 * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: More
848 correctly use the UTF-8 locale appearing in the PR.
850 2003-11-26 Paolo Carlini <pcarlini@suse.de>
852 * include/bits/locale_facets.h
853 (__numpunct_cache<>::_M_cache): Avoid zeroing _M_grouping,
854 _M_truename and _M_falsename: the constructor always does
855 it immediately before the _M_cache call.
857 2003-11-25 Paolo Carlini <pcarlini@suse.de>
859 * config/locale/gnu/codecvt_members.cc (codecvt::do_length):
860 Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
861 former is very fast, but stops if encounters a NUL.
862 (codecvt::do_out): Tweaks.
863 (codecvt::do_in): Tweaks, improve the code dealing with errors.
864 * testsuite/performance/wchar_t_length.cc: New.
866 2003-11-24 Paolo Carlini <pcarlini@suse.de>
868 * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
869 Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
870 former is very fast, but stops if encounters a NUL.
871 (codecvt::do_out): Tweak.
872 * testsuite/performance/wchar_t_in.cc: New.
874 2003-11-24 Paolo Carlini <pcarlini@suse.de>
876 * include/bits/locale_facets.h
877 (__numpunct_cache<>::_M_cache): Set _M_allocated at the beginning
878 in order to avoid memory leaks; simplify a bit.
880 2003-11-24 Benjamin Kosnik <bkoz@redhat.com>
882 * include/bits/streambuf_iterator.h (ostreambuf_iterator): Remove
883 non-standard throw specs.
884 * testsuite/24_iterators/istreambuf_iterator.cc: Split into...
885 * testsuite/24_iterators/istreambuf_iterator/1.cc
886 * testsuite/24_iterators/istreambuf_iterator/2.cc
887 * testsuite/24_iterators/istreambuf_iterator/2627.cc
888 * testsuite/24_iterators/ostreambuf_iterator.cc: Split into...
889 * testsuite/24_iterators/ostreambuf_iterator/1.cc
890 * testsuite/24_iterators/ostreambuf_iterator/2.cc
892 * testsuite/24_iterators/reverse_iterator/1.cc: Just compile,
895 * include/bits/allocator.h: Formatting tweak.
897 2003-11-24 Paolo Carlini <pcarlini@suse.de>
899 * src/locale_init.cc: Cosmetic reformatting.
901 2003-11-23 Paolo Carlini <pcarlini@suse.de>
903 * include/bits/locale_facets.tcc (__add_grouping):
904 Cosmetic reformatting.
906 2003-11-23 Paolo Carlini <pcarlini@suse.de>
908 * include/bits/locale_facets.tcc (_M_extract_float,
909 _M_extract_int): Remove a wrong comment and simplify
910 the corresponding code using char_traits::find().
912 2003-11-22 Paolo Carlini <pcarlini@suse.de>
914 * config/locale/gnu/monetary_members.cc
915 (money_base::_S_construct_pattern): Factor out two assignments.
917 2003-11-22 Paolo Carlini <pcarlini@suse.de>
919 * include/bits/istream.tcc (getline(basic_string<>&)):
920 Fix error in comment of the previous commit.
922 2003-11-22 Paolo Carlini <pcarlini@suse.de>
925 * include/bits/istream.tcc (operator>>(basic_string<>&),
926 getline(basic_string<>&)): Implement resolution of DR 91 [WP];
927 fix some minor issues with the exit conditions.
928 * docs/html/ext/howto.html: Add an entry for DR 91.
930 2003-11-21 Paolo Carlini <pcarlini@suse.de>
932 * config/locale/gnu/monetary_members.cc
933 (money_base::_S_construct_pattern): Factor out an assignment.
935 2003-11-21 Paolo Carlini <pcarlini@suse.de>
937 PR libstdc++/12882 (partial)
938 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check fseeko64
940 * include/ext/stdio_sync_filebuf.h (seekoff): Use fseeko64
941 and ftello64 if available.
942 * aclocal.m4: Regenerate.
945 2003-11-20 Benjamin Kosnik <bkoz@redhat.com>
947 * include/debug/formatter.h: Use _Tp as template argument.
948 * src/debug.cc: Same, instantiate std::size_t.
950 2003-11-20 Benjamin Kosnik <bkoz@redhat.com>
953 * include/debug/formatter.h (_Error_formatter::_M_format_word): New.
954 * src/debug.cc (__gnu_debug): Format.
955 (_Error_formatter::_M_format_word): Define, use, instantiate.
957 2003-11-20 Paolo Carlini <pcarlini@suse.de>
960 * config/locale/gnu/codecvt_members.cc (codecvt::do_out):
961 Rewrite, using both wcsnrtombs and wcrtomb in a loop: the
962 former is very fast, but stops if encounters a NUL.
963 * testsuite/performance/wchar_t_out.cc: New, from the PR.
965 2003-11-19 Paolo Carlini <pcarlini@suse.de>
967 * config/locale/gnu/codecvt_members.cc (do_out): If
968 we can upper bound the total number of external chars
969 to something smaller than __to_end - __to, avoid the
970 temporary buffer, the memcopy and simplify the loop.
971 * config/locale/generic/codecvt_members.cc (do_out):
974 2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
976 * testsuite/lib/libstdc++.exp: Add DYLD_LIBRARY_PATH for darwin.
977 * testsuite/libstdc++-dg/normal.exp: Add -multiply_defined suppress
980 2003-11-18 Jonathan Wakely <redi@gcc.gnu.org>
982 * docs/html/configopts.html, docs/html/debug.html,
983 docs/html/documentation.html, docs/html/explanations.html,
984 docs/html/install.html, docs/html/17_intro/contribute.html,
985 docs/html/17_intro/howto.html, docs/html/17_intro/license.html,
986 docs/html/18_support/howto.html, docs/html/19_diagnostics/howto.html,
987 docs/html/20_util/howto.html, docs/html/21_strings/howto.html,
988 docs/html/22_locale/codecvt.html, docs/html/22_locale/ctype.html,
989 docs/html/22_locale/howto.html, docs/html/22_locale/locale.html,
990 docs/html/22_locale/messages.html, docs/html/23_containers/howto.html,
991 docs/html/24_iterators/howto.html, docs/html/25_algorithms/howto.html,
992 docs/html/26_numerics/howto.html, docs/html/27_io/howto.html,
993 docs/html/ext/howto.html, docs/html/ext/sgiexts.html: Add <link> tags.
995 2003-11-18 Paolo Carlini <pcarlini@suse.de>
998 * include/bits/fstream.tcc (imbue): For encodings != -1 it's
999 always ok to imbue a new locale, provided seekoff(0, cur, ...)
1000 doesn't fail, of course.
1001 (underflow): In order for the above to work, deal gracefully
1002 with _M_codecvt->in returning codecvt_base::error while
1003 (__ilen = __iend - this->eback()) > 0: it just means __ilen
1004 correctly converted internal characters before an error.
1005 * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: New.
1007 2003-11-17 Paolo Carlini <pcarlini@suse.de>
1009 * include/bits/locale_facets.tcc: Fix typo in comment.
1011 2003-11-17 Paolo Carlini <pcarlini@suse.de>
1013 * testsuite/22_locale/num_put/put/char/8.cc: New test,
1014 summarizing the discussion ensuing libstdc++/12988.
1015 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Ditto.
1017 2003-11-15 Paolo Carlini <pcarlini@suse.de>
1019 * include/std/std_fstream.h: Tweak a comment.
1021 2003-11-15 Roger Sayle <roger@eyesopen.com>
1023 * include/c_std/std_cmath.h: Don't import C99's float transcendentals
1024 into the __gnu_cxx::__c99_binding namespace.
1025 (acos, asin, atan, atan2, ceil, cosh, exp, floor, fmod, frexp,
1026 ldexp, log, log10, modf, pow, sinh, tan, tanh): Implement using
1027 GCC's math builtins, i.e. __builtin_foo.
1028 * libmath/stubs.c (acosf, acosl, asinf, asinl, atanf, atanl,
1029 ceilf, ceill, floorf, floorl, fmodf, fmodl, frexpf, frexpl,
1030 ldexpf, ldexpl, modff, modfl): Provide stub implementations.
1032 2003-11-14 Paolo Carlini <pcarlini@suse.de>
1034 * testsuite/22_locale/locale/cons/12352.cc: Use
1035 __gnu_test::try_named_locale.
1037 2003-11-14 Paolo Carlini <pcarlini@suse.de>
1039 * docs/html/ext/howto.html: Add entries for DR 63, 75
1040 and 305; tweak entries for DR 60 and 328.
1042 2003-11-13 Douglas Gregor <gregod@cs.rpi.edu>
1044 * docs/html/debug.html: Users are allowed to specialize in
1045 namespace __gnu_debug, unlike in the Apple version of the debug
1046 mode. Clear up a confusing double-negative. Note that
1047 std::basic_string does provide extra debugging capabilities, but
1049 * include/bits/basic_string.tcc: Make sure there's never an
1050 ambiguity when calling __is_null_pointer.
1051 * include/debug/deque: (deque::erase) Properly handle invalidation
1052 when erasing at the end of the deque.
1053 * include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity.
1054 (vector::clear): Set the guaranteed capacity to 0.
1055 * testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
1056 iterator invalidation when erasing at the end of the deque.
1058 2003-11-13 Paolo Carlini <pcarlini@suse.de>
1059 Petur Runolfsson <peturr02@ru.is>
1062 * include/bits/fstream.tcc (imbue): Don't touch the stored
1064 * include/std/std_streambuf.h (imbue): According to the
1065 standard, base class version does nothing.
1066 (pubimbue): Store the locale.
1067 * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New.
1068 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New.
1069 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak.
1070 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
1071 * testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New.
1072 * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New.
1073 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New.
1074 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New.
1076 2003-11-13 Petur Runolfsson <peturr02@ru.is>
1079 * include/bits/ostream.tcc
1080 (basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
1081 basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
1082 basic_ostream::operator<<(ios_base& (*)(ios_base&))):
1083 Implement the resolution of DR 60 (TC): These are not formatted
1084 output functions so don't construct sentry objects and don't
1086 (basic_ostream::put, basic_ostream::write): Implement the
1087 resolution of DR 63 (TC) by catching exceptions and setting
1089 (basic_ostream::flush): Implement the resolution of DR 60 (TC):
1090 This is not an unformatted output function so don't construct
1092 * testsuite/testsuite_io.h (sync_streambuf): Define.
1093 * testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
1094 * testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
1095 * testsuite/27_io/basic_ostream/put/char/1.cc: New test.
1096 * testsuite/27_io/basic_ostream/write/char/1.cc: New test.
1098 2003-11-13 Paolo Carlini <pcarlini@suse.de>
1100 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
1101 Fix, closely following the testcase included in the PR.
1102 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
1103 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
1104 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.
1106 2003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
1108 * docs/html/17_intro/configury.html: XHTML tweak.
1110 2003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
1112 * docs/html/debug_mode.html: XHTML fixes.
1114 2003-11-12 Benjamin Kosnik <bkoz@redhat.com>
1116 * docs/html/debug_mode.html: Update.
1117 * docs/html/17_intro/TODO: Update.
1119 2003-11-12 Benjamin Kosnik <bkoz@redhat.com>
1121 * include/bits/c++config: Move using directive...
1122 * include/debug/formatter.h: ...here.
1124 2003-11-12 Carlo Wood <carlo@alinoe.com>
1128 (_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS): Added.
1129 (_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Added.
1130 (session<Allocator>::next_peek() const): Added.
1131 (decode_non_negative_decimal_integer(string_type&)):
1132 Renamed from decode_decimal_integer(string_type&).
1133 (session<Allocator>::decode_nested_name):
1134 Decode <template_param> as well.
1135 (session<Allocator>::add_substitution):
1136 Handle <template-param> for <nested-name>'s.
1137 (enum xary_nt): Added.
1138 (struct entry_st): Added member `xary_nt type' instead of `bool unary'.
1139 (symbol_name_table_c): Updated for `entry_st::type' and additional
1140 operators (unary `operator+' and `sizeof(type)').
1141 (offset_table_c): Updated for new operators (causing a new hash map).
1142 (decode_operator_name): Match the updated hash map.
1143 (session<Allocator>::decode_expression):
1144 Support for `sizeof ([typename] type)' (st),
1145 dependent names (sr) and casting operator (cv). Handle
1146 `entry_st::type'. Handle _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
1147 and _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME.
1148 (session<Allocator>::decode_type_with_postfix):
1149 Support `extern "C"' function types (FY).
1150 * testsuite/demangle/regression/cw-16.cc: Added tests for the
1151 added functionality.
1152 * testsuite/demangle/regression/3111-2.cc: sizeof now has a space
1155 2003-11-11 Paolo Carlini <pcarlini@suse.de>
1158 * include/bits/fstream.tcc (setbuf): Don't do anything
1159 after open(), in particular don't discard data.
1160 (_M_allocate_internal_buffer): Tweak to not allocate memory
1161 in case the buffer is provided by the user via setbuf.
1162 * include/ext/stdio_filebuf.h: Tweak comment.
1163 * testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
1164 * testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
1165 * testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
1166 setbuf does nothing after open().
1167 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
1169 2003-11-11 Doug Gregor <gregod@cs.rpi.edu>
1171 * docs/html/debug.html: Document libstdc++ debug mode.
1172 * docs/html/debug_mode.html: Document libstdc++ debug mode design.
1173 * docs/html/test.html: Document how to test under debug mode.
1174 * docs/html/17_intro/howto.html: Document debug-mode macros.
1175 * include/Makefile.am: Install debug-mode headers.
1176 * src/Makefile.am: Include debug.cc.
1177 * include/bits/basic_string.tcc:
1178 (basic_string::_S_construct): Fix NULL pointer check.
1179 (__is_null_pointer): New.
1180 Add precondition annotations.
1181 * include/bits/stream_iterator.h (istream_iterator,
1182 ostream_iterator): Added precondition annotations.
1183 * include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto.
1184 * include/bits/stl_queue.h (queue, priority_queue): Ditto.
1185 * include/bits/stl_stack.h (stack): Ditto.
1186 * include/bits/basic_string.h (basic_string): Ditto.
1187 * include/bits/basic_string.tcc (basic_string): Ditto.
1188 * include/std/std_memory.h (auto_ptr): Ditto.
1189 * include/std/std_valarray.h (valarray): Ditto.
1190 * include/bits/stl_algo.h: Added algorithm precondition
1192 * include/bits/stl_algobase.h: Added algorithm precondition
1194 * include/bits/stl_numeric.h: Ditto.
1195 * include/ext/algorithm: Added algorithm precondition
1197 (__is_heap): Moved away from here.
1198 * include/bits/stl_heap.h: Added algorithm precondition
1200 (__is_heap): Moved to the top of this file.
1201 (__is_heap): Added iterator range overloads.
1202 * testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up
1203 with changes in std_memory.h.
1204 * testsuite/23_containers/list/operators/4.cc: Don't verify
1205 performance guarantees when in debug mode.
1206 * testsuite/23_containers/bitset/invalidation/1.cc: New.
1207 * testsuite/23_containers/deque/invalidation/1.cc: New.
1208 * testsuite/23_containers/deque/invalidation/2.cc: New.
1209 * testsuite/23_containers/deque/invalidation/3.cc: New.
1210 * testsuite/23_containers/deque/invalidation/4.cc: New.
1211 * testsuite/23_containers/list/invalidation/1.cc: New.
1212 * testsuite/23_containers/list/invalidation/2.cc: New.
1213 * testsuite/23_containers/list/invalidation/3.cc: New.
1214 * testsuite/23_containers/list/invalidation/4.cc: New.
1215 * testsuite/23_containers/map/invalidation/1.cc: New.
1216 * testsuite/23_containers/map/invalidation/2.cc: New.
1217 * testsuite/23_containers/multimap/invalidation/1.cc: New.
1218 * testsuite/23_containers/multimap/invalidation/2.cc: New.
1219 * testsuite/23_containers/multiset/invalidation/1.cc: New.
1220 * testsuite/23_containers/multiset/invalidation/2.cc: New.
1221 * testsuite/23_containers/set/invalidation/1.cc: New.
1222 * testsuite/23_containers/set/invalidation/2.cc: New.
1223 * testsuite/23_containers/vector/invalidation/1.cc: New.
1224 * testsuite/23_containers/vector/invalidation/2.cc: New.
1225 * testsuite/23_containers/vector/invalidation/3.cc: New.
1226 * testsuite/23_containers/vector/invalidation/4.cc: New.
1227 * testsuite/25_algorithms/heap.cc: Don't verify
1228 performance guarantees when in debug mode.
1229 * include/debug/bitset: New.
1230 * include/debug/debug.h: New.
1231 * include/debug/deque: New.
1232 * include/debug/formatter.h: New.
1233 * include/debug/hash_map: New.
1234 * include/debug/hash_map.h: New.
1235 * include/debug/hash_multimap.h: New.
1236 * include/debug/hash_set: New.
1237 * include/debug/hash_set.h: New.
1238 * include/debug/hash_multiset.h: New.
1239 * include/debug/list: New.
1240 * include/debug/map: New.
1241 * include/debug/map.h: New.
1242 * include/debug/multimap.h: New.
1243 * include/debug/multiset.h: New.
1244 * include/debug/safe_base.h: New.
1245 * include/debug/safe_iterator.h: New.
1246 * include/debug/safe_iterator.tcc: New.
1247 * include/debug/safe_sequence.h: New.
1248 * include/debug/set: New.
1249 * include/debug/set.h: New.
1250 * include/debug/string: New.
1251 * include/debug/vector: New.
1252 * src/debug.cc: New.
1253 * config/linker-map.gnu: Add debug mode symbols.
1255 2003-11-11 Benjamin Kosnik <bkoz@redhat.com>
1257 * src/string-inst.cc: Tweak namespaces.
1258 * src/misc-inst.cc: Same.
1259 * docs/html/debug.html: Edits.
1260 * config/link-map.gnu: Remove cruft.
1262 * include/bits/c++config: Add in namespace associations.
1263 * include/std/std_bitset.h: Adjust namespace to __gnu_norm,
1265 * include/bits/deque.tcc: Same.
1266 * include/bits/list.tcc: Same.
1267 * include/bits/stl_bvector.h: Same.
1268 * include/bits/stl_deque.h: Same.
1269 * include/bits/stl_list.h: Same.
1270 * include/bits/stl_map.h: Same.
1271 * include/bits/stl_multimap.h: Same.
1272 * include/bits/stl_multiset.h: Same.
1273 * include/bits/stl_set.h: Same.
1274 * include/bits/stl_vector.h: Same.
1275 * include/bits/vector.tcc: Same.
1277 * include/std/std_algorithm.h: Remove markup comments.
1278 * include/std/std_functional.h: Same.
1279 * include/std/std_iterator.h: Same.
1280 * include/std/std_numeric.h: Same.
1281 * include/std/std_utility.h: Same.
1282 * include/bits/stl_queue.h: Formatting tweaks.
1283 * include/bits/stl_stack.h: Same.
1284 * include/std/std_deque.h: Include debugging version in debug mode.
1285 * include/std/std_list.h: Same.
1286 * include/std/std_map.h: Same.
1287 * include/std/std_set.h: Same.
1288 * include/std/std_vector.h: Same.
1289 * include/std/std_queue.h: Use deque, vector.
1290 * include/std/std_stack.h: Same.
1292 2003-11-09 Paolo Carlini <pcarlini@suse.de>
1294 * include/bits/locale_facets.tcc (_M_insert_int,
1295 _M_insert_float): Move a couple of vars inside an if block.
1297 2003-11-09 Paolo Carlini <pcarlini@suse.de>
1300 * include/bits/locale_facets.tcc
1301 (money_put::do_put(..., long double)): Fix conversion
1302 specification as per DR 328 [WP].
1303 * testsuite/22_locale/money_put/put/char/12971.cc: Add.
1304 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto.
1305 * docs/html/ext/howto.html: Add entry for DR 328.
1307 2003-11-08 Paolo Carlini <pcarlini@suse.de>
1310 * include/bits/list.tcc (merge): Implement resolution of
1312 * docs/html/ext/howto.html: Add entry for DR 300; tweak entry
1315 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
1318 2003-11-07 Jonathan Wakely <redi@gcc.gnu.org>
1320 * libsupc++/vec.cc: Conform to C++STYLE.
1322 2003-11-07 Carlo Wood <carlo@alinoe.com>
1325 * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
1326 (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
1327 K, V, r and A qualifiers before processing them as a group.
1328 * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
1329 * testsuite/demangle/regression/cw-16.cc: New.
1331 2003-11-07 Robert Millan <robertmh@gnu.org>
1333 * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
1334 * crossconfig.m4: Likewise.
1335 * configure: Regenerate.
1337 2003-11-07 Carlo Wood <carlo@alinoe.com>
1339 * include/bits/demangle.h
1340 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
1341 string_type&, bool member_function_pointer_qualifiers):
1342 Always separate the '[' of an array type with a space from
1343 what is left of it, except when that is the closing bracket
1344 of another array dimension.
1346 2003-11-07 Carlo Wood <carlo@alinoe.com>
1348 * include/bits/demangle.h
1349 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
1350 string_type&, bool) const): Made const.
1351 (qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
1352 (_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
1353 std::ostream& operator<<(std::ostream&, qualifier const&),
1354 std::ostream& operator<<(std::ostream&, qualifier_list const&),
1355 qualifier_list<Allocator>::decode_qualifiers(string_type&,
1356 string_type&, bool) const,
1357 session<Allocator>::decode_type_with_postfix(string_type&,
1358 string_type&, qualifier_list<Allocator>*))
1359 Added and/or changed debug-only hooks and code.
1361 2003-11-04 Jeffrey D. Oldham <oldham@codesourcery.com>
1363 * libsupc++/vec.cc (__cxa_vec_delete2): If given a NULL pointer,
1364 immediately return. This reflects a C++ ABI change 2003 Nov 03.
1365 (__cxa_vec_delete3): Likewise.
1367 2003-11-03 Petur Runolfsson <peturr02@ru.is>
1370 * include/bits/fstream.tcc: Delete _M_last_overflowed.
1371 (basic_filebuf::basic_filebuf): Initialize _M_state_last.
1372 (basic_filebuf::open, basic_filebuf::close): Assign
1373 _M_state_beg to _M_state_cur and _M_state_last.
1374 (basic_filebuf::close): Call _M_terminate_output to handle
1375 unshift and flushing.
1376 (basic_filebuf::underflow): Assign _M_state_last, throw
1377 exception instead of calling abort when codecvt::max_length()
1379 (basic_filebuf::seekoff): Use _M_state_last when calling
1380 codecvt::length(), pass correct state to _M_seek.
1381 (basic_filebuf::seekpos): Pass __pos.state() to _M_seek.
1382 (basic_filebuf::_M_seek): Add __state_type parameter,
1383 set _M_state_cur correctly, store the resulting state in
1384 the return value and use _M_terminate_output to handle
1385 flushing and unshift.
1386 (basic_filebuf::_M_terminate_output): Flush contents of
1387 output buffer, if any, then call codecvt::unshift as
1388 needed and output the result.
1389 (basic_filebuf::sync): Move here, don't modify _M_writing
1392 * include/std/std_fstream.h
1393 (basic_filebuf::_M_state_last): Declare it.
1394 (basic_filebuf::_M_last_overflowed): Delete.
1395 (basic_filebuf::_M_seek): Add __state_type parameter.
1396 (basic_filebuf::sync): Declare only.
1397 (basic_filebuf::_M_output_unshift): Delete.
1398 (basic_filebuf::_M_terminate_output): Declare it.
1400 * testsuite/testsuite_character.h:
1401 Define character class and state class plus char_traits and
1402 codecvt specializations for same for testing support for
1405 * testsuite/27_io/basic_filebuf/close/12790-1.cc,
1406 * testsuite/27_io/basic_filebuf/close/char/12790-1.cc,
1407 * testsuite/27_io/basic_filebuf/close/char/12790-2.cc,
1408 * testsuite/27_io/basic_filebuf/close/char/12790-3.cc,
1409 * testsuite/27_io/basic_filebuf/close/char/12790-4.cc,
1410 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc,
1411 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc,
1412 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc,
1413 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc,
1414 * testsuite/27_io/basic_filebuf/open/12790-1.cc,
1415 * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc,
1416 * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc,
1417 * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc,
1418 * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc,
1419 * testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc,
1420 * testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc,
1421 * testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc,
1422 * testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc,
1423 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc,
1424 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc,
1425 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc,
1426 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc,
1427 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc,
1428 * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc,
1429 * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc,
1430 * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc,
1431 * testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc,
1432 * testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc,
1433 * testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc,
1434 * testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc,
1435 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc,
1436 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc,
1437 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc,
1438 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc,
1439 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc,
1440 * testsuite/27_io/basic_filebuf/sync/char/1.cc,
1441 * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc:
1444 * testsuite/27_io/basic_filebuf/3.cc,
1445 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc,
1446 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc,
1447 * testsuite/27_io/basic_fstream/3.cc,
1448 * testsuite/27_io/basic_ifstream/3.cc,
1449 * testsuite/27_io/basic_ofstream/3.cc:
1450 Use streamoff as off_type and fpos<state_type> as pos_type.
1452 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc,
1453 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc:
1454 Check that sync does *not* set _M_writing to false.
1456 2003-11-03 Anthony Green <green@redhat.com>
1458 * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
1461 2003-11-03 Benjamin Kosnik <bkoz@redhat.com>
1463 * include/bits/locale_facets.h (time_get::_M_extract_name): Add
1465 * include/bits/locale_facets.tcc: Same, use it to allow
1468 * include/bits/fstream.tcc: Spacing tweak.
1469 * include/bits/istream.tcc: Same.
1470 * include/bits/ostream.tcc: Same.
1472 2003-10-30 Paolo Carlini <pcarlini@suse.de>
1474 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
1475 __mod is only assigned, never used its value, remove it.
1477 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1479 * include/bits/locale_facets.tcc (time_get::do_get_year):
1480 Absolutely avoid dereferencing end iterators.
1481 (time_put::put): Minor clean up.
1483 * include/bits/locale_facets.tcc: Cosmetic reformattings.
1485 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1487 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1488 Revert the last commit, is not correct, sorry.
1490 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1492 * config/locale/generic/c_locale.cc: Add back <cmath> and
1495 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1498 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1500 * include/bits/locale_facets.tcc (time_put::put): Absolutely
1501 avoid dereferencing end iterators; clean up.
1503 * include/bits/locale_facets.tcc (num_get::_M_extract_float,
1504 num_get::_M_extract_int): Minor tweak.
1506 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1508 * include/bits/locale_facets.tcc: Remove some unnecessary
1510 * config/locale/generic/c_locale.cc: Include <cerrno> here.
1511 * config/locale/gnu/c_locale.cc: Likewise.
1513 2003-10-28 Paolo Carlini <pcarlini@suse.de>
1515 * include/bits/locale_facets.tcc
1516 (money_get<>::do_get(..., string_type&)): Absolutely avoid
1517 dereferencing end iterators; general clean up.
1519 2003-10-28 Paolo Carlini <pcarlini@suse.de>
1521 * include/bits/locale_facets.tcc (time_get::_M_extract_num):
1522 Absolutely avoid dereferencing end iterators.
1523 (time_get::_M_extract_name): Likewise.
1525 * include/bits/locale_facets.tcc
1526 (time_get::_M_extract_via_format, case 'e'): Don't try to
1527 be smart wrt returning the right __beg in case of parse
1528 error, time_get::_M_extract_num must be fixed instead.
1530 2003-10-27 Paolo Carlini <pcarlini@suse.de>
1533 * acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
1534 * aclocal.m4: Regenerate.
1535 * configure: Regenerate.
1537 2003-10-27 Benjamin Kosnik <bkoz@redhat.com>
1539 * docs/html/17_intro/TODO: Add links.
1540 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1543 2003-10-27 Paolo Carlini <pcarlini@suse.de>
1546 * include/bits/locale_facets.tcc
1547 (time_get::_M_extract_via_format): Deal with code 'e'.
1548 * testsuite/22_locale/time_get/get_date/char/12750.cc: New.
1549 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.
1551 * include/bits/locale_facets.tcc
1552 (time_get::_M_extract_via_format): Tweak to absolutely avoid
1553 dereferencing end iterators.
1555 * include/bits/locale_facets.h (__verify_grouping):
1556 Const-ify second parameter.
1557 * include/bits/locale_facets.tcc (__verify_grouping): Ditto.
1558 * src/locale-inst.cc (__verify_grouping): Ditto.
1560 2003-10-27 Paolo Carlini <pcarlini@suse.de>
1562 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1563 Various things: 1- Avoid absolutely end iterator dereferences;
1564 2- Improve performance-wise the code skipping leading zeros;
1565 3- Fix two bugs wrt early bail out in case of parsing errors
1566 (see testcases); 4- General clean up.
1567 (num_get::_M_extract_int): Likewise, except 3-. Additionally,
1568 use __builtin_expect to favor base 10 inputs.
1569 * testsuite/22_locale/num_get/get/char/7.cc: New.
1570 * testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.
1572 2003-10-26 Paolo Carlini <pcarlini@suse.de>
1574 * testsuite/22_locale/money_put/put/char/1.cc: Clean up.
1575 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.
1577 2003-10-25 Paolo Carlini <pcarlini@suse.de>
1579 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
1580 __pos in only incremented, never used its value, remove it.
1582 2003-10-24 Robert Millan <robertmh@gnu.org>
1584 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
1586 * aclocal.m4: Regenerated.
1587 * configure: Regenerated.
1589 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1591 * include/bits/locale_facets.tcc (money_get::do_get(...,
1592 long double&): Properly size the temporary buffer.
1593 * testsuite/22_locale/money_get/get/char/11.cc: New.
1594 * testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.
1596 * include/bits/locale_facets.tcc (num_put::_M_group_int,
1597 num_put::_M_group_float, money_put::do_put(..., const
1598 string_type&), collate::do_compare, collate::do_transform):
1599 Prefer basic_string::data() to c_str() when the '\0'
1600 terminator is not really needed.
1602 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1604 * include/bits/locale_facets.tcc (__verify_grouping):
1605 Prefer '=' to an unnecessary '&='.
1607 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1609 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1610 Tweak my fix for libstdc++/12657.
1612 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1614 * include/bits/locale_facets.tcc (money_get::do_get(...,
1615 string_type&): Minor tweak to the previous commit.
1617 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1619 * include/bits/locale_facets.tcc (money_get::do_get(...,
1620 string_type&): Disregard the previous commit: doesn't hurt but
1621 doesn't accomplish anything useful either. This is the right
1622 one, speeding up greatly the function in case of early fail.
1624 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1626 * include/bits/locale_facets.tcc (money_get::do_get(...,
1627 string_type&): Move an if block, thus minimizing the amount
1628 of code processed anyway when __tmp_units.size() == 0.
1630 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1632 * include/bits/locale_facets.tcc
1633 (time_get<>::_M_extract_via_format): Deal with case 'C' too,
1636 2003-10-23 Benjamin Kosnik <bkoz@redhat.com>
1638 * docs/html/documentation.html: Add a pointer to the doxygen style
1640 * docs/html/17_intro/TODO: Update.
1641 * docs/html/test.html: Add instructions for running a subset of
1644 2003-10-23 Paolo Carlini <pcarlini@suse.de>
1646 * include/bits/locale_facets.tcc (money_get<>::do_get(...,
1647 string_type&)): Use find_first_not_of to strip leading
1648 zeros; if __tmp_units == "0" never prefix it with '-';
1649 always fail if __tmp_units is empty.
1650 * testsuite/22_locale/money_get/get/char/10.cc: New.
1651 * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
1653 2003-10-23 Phil Edwards <phil@codesourcery.com>
1655 * config/os/vxworks/ctype_noninline.h: Adjust ctor to match
1658 2003-10-22 Paolo Carlini <pcarlini@suse.de>
1660 * include/bits/locale_facets.tcc (__int_to_char): Remove
1661 the const int parameter.
1662 (_M_insert_int): Update caller.
1663 * src/locale-inst.cc (__int_to_char): Update instantiations.
1665 2003-10-22 Benjamin Kosnik <bkoz@redhat.com>
1667 * include/bits/locale_facets.h: Correct byname facets for "C"
1669 * config/locale/generic/ctype_members.cc: Same.
1670 * config/locale/generic/messages_members.h: Same.
1671 * config/locale/gnu/ctype_members.cc: Same.
1672 * config/locale/gnu/messages_members.h: Same.
1673 * include/bits/codecvt.h: Same.
1674 * src/ctype.cc: Same.
1675 * testsuite/22_locale/codecvt_byname/1.cc: New.
1676 * testsuite/22_locale/collate/1.cc: Edit.
1677 * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
1678 * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
1679 * testsuite/22_locale/ctype/1.cc: Derivation tests.
1680 * testsuite/22_locale/ctype/11844.cc: Move...
1681 * testsuite/22_locale/ctype_base/11844.cc: ...here.
1682 * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
1683 * testsuite/22_locale/ctype_byname/1.cc: Name.
1684 * testsuite/22_locale/messages_byname/1.cc: New.
1685 * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
1686 * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
1687 * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
1688 * testsuite/22_locale/numpunct/1.cc: Edit.
1689 * testsuite/22_locale/numpunct_byname/2.cc: Move...
1690 * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
1691 * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
1692 * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
1694 2003-10-22 Paolo Carlini <pcarlini@suse.de>
1697 * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
1698 checking for the availability of int64_t.
1699 (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
1700 * configure.ac: Call here.
1701 * acconfig.h: Add undef for the corresponding symbols.
1702 * config/io/basic_file_stdio.cc (__basic_file<char>::open):
1703 Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
1704 (__basic_file<char>::seekoff): Likewise, call lseek64 when
1705 available, otherwise lseek, checking the __off parameter.
1706 * include/bits/postypes.h: Typedef __streamoff_base_type
1707 to int64_t if available, otherwise long long.
1708 * aclocal.m4: Regenerate.
1709 * config.h.in: Likewise.
1710 * configure: Likewise.
1712 * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
1713 Use AC_TRY_LINK instead of AC_TRY_COMPILE.
1715 2003-10-22 Paolo Carlini <pcarlini@suse.de>
1718 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1719 Implement resolution of DR 292 (WP).
1720 * docs/html/ext/howto.html: Add entry for DR 292.
1722 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
1724 * include/ext/mt_allocator.h: Change include to gthr.h.
1725 * include/ext/rope: Same. Add _Refcount_base definitions.
1726 * include/ext/pool_allocator.h: Adjust namespaces.
1727 * include/bits/stl_threads.h (_Refcount_base): Move.
1728 Put remaining into namespace __gnu_cxx.
1730 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
1733 * include/bits/locale_facets.h (ctype<char>): Remove
1734 __ctype_abstract_base.
1735 (ctype<char>::do_is): Remove.
1736 (ctype<char>::do_scan_is): Remove.
1737 * src/ctype.cc: Same. Inline the rest.
1738 * testsuite/22_locale/ctype/is/char/9858.cc: New.
1739 * config/os/aix/ctype_noninline.h: Adjust ctor.
1740 * config/os/bsd/freebsd/ctype_noninline.h: Same.
1741 * config/os/bsd/netbsd/ctype_noninline.h: Same.
1742 * config/os/djgpp/ctype_noninline.h: Same.
1743 * config/os/generic/ctype_noninline.h: Same.
1744 * config/os/gnu-linux/ctype_noninline.h: Same.
1745 * config/os/hpux/ctype_noninline.h: Same.
1746 * config/os/irix/irix5.2/ctype_noninline.h: Same.
1747 * config/os/irix/irix6.5/ctype_noninline.h: Same.
1748 * config/os/mingw32/ctype_noninline.h: Same.
1749 * config/os/newlib/ctype_noninline.h: Same.
1750 * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
1751 * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
1752 * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
1753 * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
1754 * config/os/windiss/ctype_noninline.h: Same.
1756 2003-10-21 Paolo Carlini <pcarlini@suse.de>
1758 * src/locale.cc: Tweak a comment.
1759 * src/localename.cc: Move a comment.
1761 2003-10-20 Benjamin Kosnik <bkoz@redhat.com>
1764 * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
1765 * testsuite_hooks.cc: Same.
1766 * 22_locale/numpunct/members/pod/1.cc: Edit.
1767 * 22_locale/numpunct/members/pod/2.cc: Same.
1768 * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
1769 * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
1770 * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
1771 * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
1772 * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
1773 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
1774 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
1775 * 27_io/basic_istream/sentry/pod/1.cc: New.
1776 * 27_io/basic_ostream/sentry/pod/1.cc: New.
1777 * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
1778 * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
1780 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1782 * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
1783 of external _MIPS_SIM_ABI32.
1785 2003-10-20 Phil Edwards <phil@codesourcery.com>
1787 * configure.ac: Fix comment typo.
1788 * configure.host: Add vxworks to host_os switch.
1789 * crossconfig.m4: Remove old commented os_include_dir variables
1790 left over from autotools transition.
1791 (*-vxworks): New stanza.
1792 (*-windiss): Add missing symbols.
1793 * configure: Regenerate.
1794 * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
1795 config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
1797 * config/os/windiss/os_defines.h: Define __C9X__.
1799 2003-10-19 David Edelsohn <edelsohn@gnu.org>
1802 * configure.host (aix4,aix*): Define os_include_dir to os/generic.
1804 2003-10-18 Andreas Tobler <a.tobler@schweiz.ch>
1806 * src/locale.cc (locale::_S_initialize): Re-apply workaround a
1807 confusion of the use of the gthr API when __gthread_active_p()
1810 2003-10-17 Benjamin Kosnik <bkoz@redhat.com>
1812 * src/Makefile.am: Add new files.
1813 * src/Makefile.in: Regenerate.
1814 * src/globals.cc: Split into..
1815 * src/globals_io.cc: New.
1816 * src/globals_locale.cc: New.
1817 * src/ios.cc: Split into...
1818 * src/ios_init.cc: New.
1819 * src/ios_locale.cc: New.
1820 * src/locale-inst.cc: Split into..
1821 * src/wlocale-inst.cc: New.
1822 * src/locale-misc-inst.cc: New.
1823 * src/locale.cc, src/localename: Split into...
1824 * src/locale_facets.cc: New.
1825 * src/locale_init.cc: New.
1826 * src/wstring-inst.cc: Add copyright info.
1828 2003-10-16 Petur Runolfsson <peturr02@ru.is>
1833 * config/io/basic_file_stdio.cc (__basic_file::seekoff):
1834 Change return value from streampos to streamoff.
1835 (__basic_file::seekpos): Delete.
1836 * config/io/basic_file_stdio.h: Same.
1837 * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
1838 * include/Makefile.am (bits_headers): Add bits/postypes.h.
1839 * include/bits/char_traits.h: Include bits/postypes.h instead of
1841 * include/bits/fstream.tcc (basic_filebuf::open,
1842 basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
1843 values, use == and != instead.
1844 (basic_filebuf::_M_seek): Use explicit conversion from streamoff
1846 (basic_filebuf::imbue): Don't use ! on pos_type values, use
1847 == instead. Don't use __check_facet(_M_codecvt) unless is_open().
1848 * include/bits/postypes.h: New file.
1849 Add __streamoff_base_type typedef, streamsize.
1850 (streamoff, streampos, wstreampos): Define typedefs, with
1851 streamoff defined as...
1852 (streamoff): New class. Document implementation defined
1854 (fpos): New implementation. Document implementation defined
1856 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
1857 explicit conversion from pos_type to off_type.
1858 * include/std/std_iosfwd.h: Include bits/postypes.h instead
1860 * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
1861 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
1862 * testsuite/27_io/fpos/11450.cc: New test.
1863 * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
1864 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
1865 * testsuite/27_io/types/3.cc: New test.
1867 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
1869 * configure.host: Remove fpos_include_dir.
1870 * configure.ac: Remove FPOS_INC_SRCDIR.
1871 * configure: Regenerate.
1872 * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
1873 * aclocal.m4: Regenerate.
1874 * include/Makefile.am (host_headers): Remove fpos.h.
1875 (bits_headers): Add postypes.h.
1876 * include/Makefile.in: Regenerate.
1877 * config/os/gnu-linux/fposh: Remove.
1878 * config/os/generic/fpos.h: Remove.
1880 * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
1881 * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
1882 * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
1883 * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
1884 * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
1885 * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
1886 * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
1887 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
1888 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
1889 * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
1890 * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
1891 * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
1892 * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
1893 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
1894 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
1895 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1896 * testsuite/27_io/objects/char/10.cc: Same.
1898 2003-10-16 Paolo Carlini <pcarlini@suse.de>
1900 * src/locale.cc (locale::locale(const char*)): ... one
1901 more comparison missed in the previous commit.
1903 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
1905 * acconfig.h: Add HAVE_DRAND48.
1906 * crossconfig.m4: Remove ISATTY.
1907 * aclocal.m4: Regenerated.
1908 * config.h.in: Regenerated.
1909 * configure: Regenerated.
1911 2003-10-16 Bernardo Innocenti <bernie@develer.com>
1913 * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
1914 __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
1915 Document SMP safeness of asm macros.
1917 2003-10-16 Paolo Carlini <pcarlini@suse.de>
1919 * src/locale.cc (locale::locale(const char*)): Tweak
1920 a couple of comparisons to use basic_string operators.
1922 2003-10-16 Paolo Carlini <pcarlini@suse.de>
1925 * config/locale/gnu/monetary_members.cc
1926 (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
1927 Don't leak memory if new throws.
1928 * src/locale.cc (locale::locale(const char*)): In order not
1929 to leak memory in case new throws, use a basic_string type
1930 for __res too and avoid strdup.
1932 2003-10-14 Jeff Bailey <jbailey@nisa.net>
1935 * crossconfig.m4: Share the config between *-linux* and *-gnu*.
1936 * configure: Regenerate.
1938 2003-10-14 Carlo Wood <carlo@alinoe.com>
1941 * include/bits/demangle.h (session<Allocator>::
1942 decode_unqualified_name(string_type& output)): Fail on a
1943 <operator-name> when decoding <template-argument>.
1944 * testsuite/demangle/regression/cw-15.cc: New.
1946 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
1949 * include/bits/stl_algo.h (unique): Fix.
1950 * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
1951 * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
1952 * testsuite/25_algorithms/unique/2.cc: New.
1954 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
1956 * src/localename.cc (_M_replace_categories, M_replace_facet):
1957 Const-ify a couple of variables.
1959 2003-10-14 Petur Runolfsson <peturr02@ru.is>
1960 Andreas Tobler <a.tobler@schweiz.ch>
1962 * src/locale.cc (locale::_S_initialize): Workaround a confusion
1963 of the use of the gthr API when __gthread_active_p() returns true.
1965 2003-10-12 Petur Runolfsson <peturr02@ru.is>
1966 Paolo Carlini <pcarlini@unitus.it>
1969 * src/strstream.cc (pbackfail): Fix to use to_int_type.
1970 * testsuite/backward/11460.cc: New, from the PR.
1972 2003-10-12 Paolo Carlini <pcarlini@unitus.it>
1974 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
1975 Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
1976 * include/bits/basic_string.tcc: Likewise.
1977 * include/bits/ios_base.h: Likewise.
1978 * include/bits/istream.tcc: Likewise.
1979 * include/bits/locale_facets.tcc: Likewise.
1980 * include/bits/ostream.tcc: Likewise.
1981 * include/bits/stl_function.h: Likewise.
1982 * include/bits/stl_multiset.h: Likewise.
1983 * include/bits/stl_pair.h: Likewise.
1984 * include/bits/stl_set.h: Likewise.
1985 * include/bits/streambuf_iterator.h
1986 * include/std/std_iosfwd.h: Likewise.
1987 * include/std/std_istream.h: Likewise.
1988 * include/std/std_sstream.h: Likewise.
1989 * include/std/std_streambuf.h: Likewise.
1990 * src/ios.cc: Likewise.
1991 * include/bits/c++config:
1992 Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
1993 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
1994 dg-error directive due to removal of a blank line.
1995 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1997 2003-10-12 Andreas Tobler <a.tobler@schweiz.ch>
1998 Paolo Carlini <pcarlini@unitus.it>
2000 PR libstdc++/11844/11740 (cont)
2001 * config/os/generic/ctype_inline.h (ctype<char>::is):
2002 Generically, use a bitmasksize of 15 (instead of 10);
2003 Fix the logic to actually return (M & m) != 0 as per
2006 2003-10-11 Bernardo Innocenti <bernie@develer.com>
2008 * crossconfig.m4 (*-uclinux*): New target.
2009 * configure: Regenerate.
2011 2003-10-10 Paolo Carlini <pcarlini@unitus.it>
2013 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
2014 Avoid unnecessarily calling __builtin_alloca and dealing
2015 explicitly with width() smaller than zero.
2016 (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
2017 const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
2018 const char*), operator<<(basic_ostream<char, _Traits>&,
2019 const char*), operator<<(basic_ostream, const basic_string&)):
2022 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
2024 * config/linker-map.gnu: Make more *_type_info bits visible.
2025 Move new/delete bits back into GLIBCXX space.
2027 * include/bits/locale_classes.h: Move _M_id out of line, so that
2028 locale::id::_S_highwater can be removed from the export list.
2029 * src/locale.cc (locale::id::_M_id): Define.
2031 2003-10-09 Andreas Tobler <a.tobler@schweiz.ch>
2033 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
2036 2003-10-09 Paolo Carlini <pcarlini@unitus.it>
2039 * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
2040 to conform to the requirements of 22.2.1.
2041 * config/os/bsd/freebsd/ctype_base.h: Likewise.
2042 * config/os/djgpp/ctype_base.h: Likewise.
2043 * config/os/generic/ctype_base.h: Likewise.
2044 * config/os/gnu-linux/ctype_base.h: Likewise.
2045 * config/os/hpux/ctype_base.h: Likewise.
2046 * config/os/irix/irix6.5/ctype_base.h: Likewise.
2047 * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
2048 * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
2049 * testsuite/22_locale/ctype/11844.cc: New.
2051 * config/locale/generic/ctype_members.cc (do_is):
2052 Generically, use a bitmasksize of 15 (instead of 10), since
2053 we don't know the numerical encoding of the various categories
2054 in the underlying /usr/include/ctype.h.
2056 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
2058 * src/string-inst.cc: Prune.
2059 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2060 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2062 2003-10-09 Petur Runolfsson <peturr02@ru.is>
2064 * src/io-inst.cc: Don't include iostream.
2065 * include/bits/ios_base.h (ios_base::failure): Use string.
2066 * src/Makefile.am: Add ios_failure.cc.
2067 * src/Makefile.in: Regenerate.
2068 * src/ios.cc: Move ios_base::failure definitions to...
2069 * src/ios_failure.cc: ...here. New.
2071 2003-10-09 Petur Runolfsson <peturr02@ru.is>
2074 * include/bits/fstream.tcc (basic_filebuf::seekoff):
2075 Move code needed for both seekoff and seekpos...
2076 (basic_filebuf::_M_seek): ...here. New function.
2077 (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
2078 * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
2079 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
2081 * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
2083 2003-10-08 Paolo Carlini <pcarlini@unitus.it>
2085 * include/bits/locale_facets.tcc: More minor cosmetic
2086 changes and const-ifications of some variables.
2088 2003-10-07 Paolo Carlini <pcarlini@unitus.it>
2090 * include/bits/locale_facets.tcc: Minor cosmetic changes
2091 and const-ifications of some variables.
2093 * include/bits/locale_facets.tcc
2094 (money_get::do_get(..., string_type&)): Simplify an if-else.
2096 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
2099 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
2100 Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
2101 * config/locale/generic/ctype_members.cc: Same.
2102 * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
2104 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
2106 * include/bits/locale_facets.tcc (__pad<>::_S_pad):
2107 Improve performance-wise: avoid one traits::copy, avoid
2108 the __builtin_alloca, streamline.
2110 2003-10-05 Paolo Carlini <pcarlini@unitus.it>
2112 * include/bits/locale_facets.tcc
2113 (num_put::do_put(..., bool)): Prefer ?: to if-else.
2114 (time_get::_M_extract_name): Qualify min with std::.
2115 (__pad<>::_S_pad): Constify two variables; simplify an
2116 if-else statement factoring out some code.
2118 * include/bits/locale_facets.tcc: Minor cosmetic changes.
2120 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
2122 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
2123 Constify a couple of variables.
2124 (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
2125 ++__beg to *__beg++.
2127 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
2128 Petur Runolfsson <peturr02@ru.is>
2130 * include/ext/stdio_sync_filebuf.h: Don't include the whole
2131 <fstream>, only <streambuf> and <cstdio>.
2133 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
2136 * include/bits/fstream.tcc (imbue): In case a codecvt facet
2137 is not available, set _M_codecvt = 0.
2138 * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
2140 2003-10-02 Harald Boehme <boehme@informatik.hu-berlin.de>
2143 * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
2145 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
2147 * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
2148 * src/locale.cc: Define.
2149 * src/localename.cc: Use it.
2150 * config/locale/generic/time_members.h: Same.
2151 * config/locale/gnu/messages_members.h: Same.
2152 * config/locale/gnu/time_members.h: Same.
2154 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
2157 * include/bits/fstream.tcc (seekoff): Ignore the openmode
2159 * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
2160 seekpos): Remove the openmode argument.
2161 * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
2162 seekpos): Remove redundant placeholder for the openmode argument.
2163 * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
2164 * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
2165 * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
2166 * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
2167 * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
2169 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
2171 * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
2172 (locale::facet::_S_get_c_locale): Same.
2174 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
2176 * config/linker-map.gnu: Export _S_get_c_locale instead of
2179 2003-10-02 Petur Runolfsson <peturr02@ru.is>
2181 * config/locale/generic/c_locale.cc
2182 (category_names, locale::_S_categories): Const qualify.
2183 * config/locale/gnu/c_locale.cc: Same.
2184 * config/locale/generic/time_members.h (__timepunct::__timepunct):
2185 Copy string contents before assigning to _M_name_timepunct,
2186 qualify strcpy and strlen with std::.
2187 * config/locale/gnu/time_members.h: Same.
2188 * config/locale/gnu/messages_members.h (messages::messages):
2189 Copy string contents before assigning to _M_name_messages,
2190 qualify strcpy and strlen with std::.
2191 * config/os/gnu-linux/ctype_noninline.h
2192 (ctype<char>::classic_table()): Don't call locale::classic().
2193 * include/bits/locale_classes.h
2194 (locale::_S_categories): Const qualify.
2195 (locale::_S_once, locale::_S_initialize_once,
2196 locale::facet::_S_once, locale::facet::_S_initialize_once,
2197 locale::facet::_S_get_c_locale): Declare.
2198 (locale::_S_initialize): Don't define.
2199 (locale::facet::_S_c_locale): Make private.
2200 (locale::facet::_S_c_name): Same, const qualify.
2201 (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
2202 parameters, add throw() specifier.
2203 * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
2204 messages::_M_name_messages): Const qualify.
2206 (locale::_S_once, locale::facet::_S_once): Define.
2207 (locale::classic): Move initialization code...
2208 (locale::_S_initialize_once): ...here.
2209 (locale::_S_initialize): Call _S_initialize_once through
2211 (locale::facet::_S_initialize_once): Initialize _S_c_locale.
2212 (locale::facet::_S_get_c_locale): Call _S_initialize_once through
2213 __gthread_once before returning _S_c_locale.
2214 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
2215 Drop unused parameters, add throw() specifier, don't initialize
2216 locale::facet::_S_c_locale and _S_c_name.
2218 * config/locale/generic/messages_members.h:
2219 Replace _S_c_locale with _S_get_c_locale().
2220 * config/locale/gnu/c_locale.cc: Same.
2221 * config/locale/gnu/messages_members.h: Same.
2222 * config/locale/gnu/numeric_members.cc: Same.
2223 * config/locale/gnu/time_members.cc: Same.
2224 * config/os/gnu-linux/ctype_noninline.h: Same.
2225 * include/bits/locale_facets.h: Same.
2226 * include/bits/locale_facets.tcc: Same.
2227 * src/codecvt.cc: Same.
2228 * src/ctype.cc: Same.
2230 2003-10-02 Carlo Wood <carlo@alinoe.com>
2232 * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
2233 Decode symbols that start with _GLOBAL_[ID]_ differently: the
2234 trailing part ends with a terminating zero and is not necessarily an
2236 * src/demangle.cc (): Same.
2237 * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
2239 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
2241 * testsuite/22_locale/locale/cons/12438.cc: Use
2242 __gnu_test::try_named_locale("").
2244 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2246 * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
2247 (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
2249 * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
2250 * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
2252 * config.h.in, configure: Regenerate.
2253 * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
2256 2003-10-01 Nathan Myers <ncm@cantrip.org>
2258 * include/bits/locale_facets.tcc (time_put::put): Avoid
2259 expensive *__s++, in favor of *__s, ++__s.
2261 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
2263 * include/bits/locale_facets.tcc (time_put::put): Minor
2264 tweak to the previous commit.
2266 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
2269 * include/bits/locale_facets.tcc (time_put::put): Deal
2270 with the three issues pointed out by the PR.
2271 * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
2272 * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
2273 * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
2274 * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
2275 * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
2277 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
2279 * include/bits/stl_algo.h: Minor cosmetic reformattings.
2281 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
2283 * include/bits/stl_algo.h (search_n): Tweak, to spare the
2286 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
2288 * testsuite/22_locale/locale/cons/12352.cc: Explicitly
2289 qualify exception name.
2291 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
2294 * include/bits/locale_facets.tcc (locale::combine): Don't
2295 leak memory if _M_replace_facet throws.
2296 * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
2298 * include/bits/locale_classes.h (locale::locale(const locale&,
2299 _Facet*)): Tweak, use consistently _M_remove_reference.
2301 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
2303 PR libstdc++/12352 (cont)
2304 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
2305 Don't leak __cloc; don't leak if any of the _M_init_facet(...)
2307 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
2308 (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
2309 !_M_caches, !_M_names.
2311 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2313 * configure.host: Handle Solaris 2.5 micro releases explicitly.
2314 Remove wildcards from Solaris 2.6, 7-9: there were no
2316 Treat Solaris 10 and up like 7-9.
2318 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
2320 * include/bits/stl_algo.h (search_n): Improve the previous
2321 fix as suggested by Martin.
2323 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
2326 * include/bits/istream.tcc (peek): Set eofbit if sgetc
2328 * testsuite/27_io/basic_istream/peek/char/12296.cc:
2331 2003-09-29 Nathan Myers <ncm@cantrip.org>
2332 Paolo Carlini <pcarlini@unitus.it>
2335 * include/bits/stl_algo.h (search_n):
2336 Use iterator_traits<>::difference_type for __n.
2337 * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
2339 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
2341 * testsuite/22_locale/locale/cons/12352.cc:
2342 Use __attribute__((unused)) for test.
2344 2003-09-26 Ulrich Weigand <uweigand@de.ibm.com>
2346 * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either
2347 "Son" or "So" as abbreviated name for Sunday in de_DE locale.
2348 * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
2350 2003-09-26 Brad Spencer <spencer@infointeractive.com>
2352 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
2353 Explicitly qualify exceptions.
2354 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
2355 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
2356 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2357 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
2359 2003-09-25 Paolo Carlini <pcarlini@unitus.it>
2362 * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
2363 size_t)): Don't leak if memory allocations for _M_facets,
2364 _M_caches, and _M_names fail.
2365 (locale::_Impl::_Impl(const char*, size_t)): Ditto.
2366 (locale::_Impl::_M_replace_categories(const _Impl*,
2368 (locale::_Impl::_M_install_facet(const locale::id*,
2369 const facet*)): Ditto.
2370 * include/bits/locale_classes.h (locale::locale(const locale&,
2371 _Facet*)): Don't leak memory.
2372 * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
2374 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
2375 bool)): Qualify with std:: strcpy, tweak.
2376 * include/bits/locale_classes.h
2377 (locale::_Impl::_M_check_same_name): Qualify strcmp.
2379 2003-09-25 Brad Spencer <spencer@infointeractive.com>
2382 * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
2384 * aclocal.m4: Regenerate.
2385 * config.h.in: Regenerate.
2386 * configure: Regenerate.
2387 * crossconfig.m4: Add in wchar_t bits for solaris crosses.
2388 * config/io/basic_file_stdio.cc: Guard unistd.h.
2389 * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
2390 * include/c_std/std_cwchar.h: Same.
2391 * include/c_std/std_cwctype.h: Same.
2393 2003-09-25 Benjamin Kosnik <bkoz@redhat.com>
2396 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
2397 * config/locale/generic/ctype_members.cc: Same.
2398 * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
2399 * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
2401 * config/os/generic/ctype_inline.h: Update.
2403 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
2405 * src/Makefile.am (version_dep): New variable.
2406 (libstdc___la_DEPENDENCIES): Use it to add dependency on
2407 libstdc++-symbol.ver only when using symbol versioning.
2408 * src/Makefile.in: Regenerate.
2410 2003-09-23 Benjamin Kosnik <bkoz@redhat.com>
2412 * include/bits/locale_facets.tcc: Tweak to avoid warnings.
2413 * testsuite/testsuite_hooks.h: Same.
2414 * testsuite/*/*.cc: Same.
2416 2003-09-22 Petur Runolfsson <peturr02@ru.is>
2418 * include/bits/istream.tcc (basic_istream::read,
2419 basic_istream::readsome, basic_istream::putback,
2420 basic_istream::unget, operator>>(basic_istream, CharT)):
2421 Avoid redundant setstate(failbit) calls when sentry::operator bool()
2424 2003-09-22 Carlo Wood <carlo@alinoe.com>
2427 * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
2428 char const*, int, int)): Remove unused identifier
2429 cv_qualifier for overloaded constructor.
2431 2003-09-18 Benjamin Kosnik <bkoz@redhat.com>
2434 * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
2435 WARN_FLAGS, remove -Wno-format.
2436 * aclocal.m4: Regenerate.
2437 * configure: Regenerate.
2439 2003-09-18 Petur Runolfsson <peturr02@ru.is>
2441 * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
2442 * config/io/basic_file_stdio.h: Same.
2443 * include/std/std_fstream.h (__ctype_type): Delete.
2444 * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
2446 2003-09-17 Benjamin Kosnik <bkoz@redhat.com>
2449 * configure.host (abi_baseline_pair): Error out on solaris2
2450 configurations without a minor version number.
2452 2003-09-13 Phil Edwards <phil@codesourcery.com>
2454 * docs/doxygen/run_doxygen: Clear GENERATE_TAGFILE entirely
2455 if man pages are on.
2456 * docs/doxygen/user.cfg.in: And here.
2458 2003-09-10 Daniel Jacobowitz <drow@mvista.com>
2459 Andreas Jaeger <aj@suse.de>
2462 * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
2463 abi_check if cross compiling.
2464 * aclocal.m4: Regenerated.
2465 * configure: Regenerated.
2467 2003-09-10 Jeffrey D. Oldham <oldham@codesourcery.com>
2469 * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
2470 NULL, return NULL. This reflects a C++ ABI change 2003 Sep 05.
2471 (__cxa_vec_new3): Likewise.
2473 2003-09-10 Petur Runolfsson <peturr02@ru.is>
2475 * include/bits/fstream.tcc (basic_filebuf::seekoff):
2476 Use codecvt::length to handle variable-width stateless encodings
2478 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
2479 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
2481 2003-09-10 Alan Modra <amodra@bigpond.net.au>
2483 * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
2486 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2488 * configure: Regenerate.
2490 2003-09-09 David Edelsohn <edelsohn@gnu.org>
2492 * src/ios.cc (ios_base::Init::Init): Remove unnecessary
2493 qualifier from _S_synced_with_stdio.
2495 2003-09-09 Bernardo Innocenti <bernie@develer.com>
2497 * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
2499 2003-09-04 Petur Runolfsson <peturr02@ru.is>
2502 * include/bits/fstream.tcc
2503 (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
2504 (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
2505 _M_ext_buf_size, _M_ext_next and _M_ext_end.
2506 (basic_filebuf::underflow): Handle variable-width stateless
2507 encodings (codecvt::encoding() == 0), including UTF-8.
2508 * include/std/std_fstream.h (basic_filebuf):
2509 Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
2510 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
2511 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
2512 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
2513 * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
2514 * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
2515 * testsuite/27_io/objects/wchar_t/12.cc: New test.
2516 * testsuite/27_io/objects/wchar_t/13.cc: New test.
2518 2003-09-04 Jonathan Wakely <redi@gcc.gnu.org>
2520 * docs/html/faq/index.html: Note that a namespace alias can't be
2521 used when specialising templates in extension namespace.
2522 * docs/html/faq/index.txt: Regenerate.
2524 2003-09-03 Petur Runolfsson <peturr02@ru.is>
2527 * include/ext/stdio_sync_filebuf.h
2528 (stdio_sync_filebuf::_M_unget_buf): Declare it.
2529 (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
2530 (stdio_sync_filebuf::uflow): Store the returned character in
2532 (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
2533 _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
2534 (stdio_sync_filebuf<char>::xsgetn): Store last read character in
2535 _M_unget_buf, if any, else eof().
2536 (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
2537 _M_unget_buf, if any, else eof().
2538 * testsuite/27_io/objects/char/12048.cc: Rename to...
2539 * testsuite/27_io/objects/char/12048-1.cc: ...this.
2540 * testsuite/27_io/objects/char/12048-2.cc: New test.
2541 * testsuite/27_io/objects/char/12048-3.cc: New test.
2542 * testsuite/27_io/objects/char/12048-4.cc: New test.
2543 * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
2544 * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
2545 * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
2546 * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
2547 * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
2548 * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
2549 * testsuite/ext/stdio_sync_filebuf_char.cc
2550 (test02, test03, test04, test05): New tests.
2551 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
2552 (test02, test03, test04, test05): New tests.
2554 2003-09-03 Petur Runolfsson <peturr02@ru.is>
2556 * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
2557 stringbuf or strstreambuf. Fix typos.
2559 2003-09-02 Phil Edwards <phil@codesourcery.com>
2561 * acinclude.m4 (GLIBCXX_ENABLE_HOSTED): #define _GLIBCXX_HOSTED
2563 * config.h.in: Add _GLIBCXX_HOSTED.
2564 * libsupc++/eh_term_handler.cc: Test it here; initialize
2565 __terminate_handler to std::abort if freestanding.
2566 * aclocal.m4, configure: Regenerated.
2567 * docs/html/configopts.html: Document --disable-hosted-libstdcxx.
2569 2003-08-29 Nathan Myers <ncm@cantrip.org>
2572 * include/bits/locale_facets.tcc (__pad): delete dead code.
2574 2003-08-28 Alan Modra <amodra@bigpond.net.au>
2576 * configure.ac: Test $with_cross_host against $build_alias, not $build.
2577 * configure: Regenerate.
2579 2003-08-27 Petur Runolfsson <peturr02@ru.is>
2581 * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
2582 * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
2584 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
2586 * Makefile.am: Remove trailing whitespace. Remove needless
2587 "foo = @foo@" assignments. Replace direct uses of @foo@ with $(foo).
2588 * include/Makefile.am: Likewise.
2589 * libmath/Makefile.am: Likewise.
2590 * libsupc++/Makefile.am: Likewise.
2591 * po/Makefile.am: Likewise.
2592 * src/Makefile.am: Likewise.
2593 * testsuite/Makefile.am: Likewise.
2595 * Makefile.in, include/Makefile.in, libmath/Makefile.in,
2596 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2597 testsuite/Makefile.in: Regenerated.
2599 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
2601 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Change quoting of
2603 * aclocal.m4, configure: Regenerate.
2605 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
2607 * acinclude.m4: Include no-executables.m4.
2608 * configure.ac: Uncomment GCC_NO_EXECUTABLES.
2609 * aclocal.m4: Regenerated.
2610 * configure: Regenerated.
2612 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
2614 * acinclude.m4: Don't call AC_ISC_POSIX.
2615 * aclocal.m4: Regenerated.
2616 * configure: Regenerated.
2618 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
2620 * acinclude.m4 (GLIBCXX_CONDITIONAL): New macro. Wrap
2621 AM_CONDITIONAL. Replace all calls to AM_CONDITIONAL with this one.
2622 (GLIBCXX_ENABLE_HOSTED): New macro, sets new variable is_hosted,
2623 used elsewhere in this file.
2624 (GLIBCXX_EVALUATE_CONDITIONALS): New macro...
2625 * configure.ac: ...called here to expand all conditionals.
2626 * Makefile.am: Conditionalize SUBDIRS on GLIBCXX_HOSTED.
2627 * include/Makefile.am: Remove redundant gxx_include_dir assignment.
2628 (install-freestanding-headers): New target, a subset of
2629 install-headers. Conditionalize install-data-local on GLIBCXX_HOSTED.
2631 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2632 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2633 src/Makefile.in, testsuite/Makefile.in: Regenerated.
2635 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
2637 * docs/doxygen/run_doxygen: Shell fixes. Remove hardcoded local
2638 pathnames from generated tag file.
2640 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
2642 * Makefile.am: Add comment.
2643 * acinclude.m4 (GLIBCXX_CONFIGURE): Set new glibcxx_SUBDIRS and
2645 * configure.ac: Use them both here, instead of hardcoded lists.
2647 * fragment.am: Add STAMP varaible.
2648 * include/Makefile.am: Cosmetic whitespace cleanup. Use $(LN_S)
2650 (stamp-*): Move file creation rule outside of 'if' branches to
2651 ensure the stamp-* files are actually updated. Use $(STAMP).
2652 * src/Makefile.am: Remove now-nonexistant variable.
2653 * libsupc++/Makefile.am: Likewise. Snap the assignment chain
2655 * po/Makefile.am: Include same fragment as all the others.
2657 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2658 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in: Regenerated.
2660 2003-08-26 Loren J. Rittle <ljrittle@acm.org>
2662 * testsuite/data/cin_unget-1.txt: New.
2663 * testsuite/27_io/objects/char/12048.cc: New.
2665 2003-08-25 Zack Weinberg <zack@codesourcery.com>
2667 * config/os/hpux/os_defines.h: Unconditionally define
2668 _GLIBCXX_GTHREAD_USE_WEAK to 0.
2670 2003-08-19 Geoffrey Keating <geoffk@apple.com>
2672 * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
2673 crosses to Darwin targets.
2674 * configure: Regenerate.
2676 2003-08-19 Petur Runolfsson <peturr02@ru.is>
2678 * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
2680 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
2682 * configure.ac: GCC_NO_EXECUTABLES was supposed to be commented
2683 in the patch from 3 minutes ago. Boy, is my face red.
2684 * configure: At least I remembered to regenerate this.
2686 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
2688 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
2689 and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
2690 things from the top level.
2691 * configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
2692 Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
2693 (currently unused). Strip the fake-VPATH shell fragment from
2694 automake-generated rules, if present.
2695 * linkage.m4: Add comment.
2697 * fragment.am: New file, containing factored-out common settings.
2698 (AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
2699 * Makefile.am: Include fragment.am. Remove common variables.
2700 * include/Makefile.am: Likewise.
2701 * libmath/Makefile.am: Likewise.
2702 * libsupc++/Makefile.am: Likewise.
2703 * po/Makefile.am: Likewise. Print rules during check.
2704 * src/Makefile.am: Likewise.
2705 * testsuite/Makefile.am: Likewise.
2707 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2708 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2709 src/Makefile.in, testsuite/Makefile.in: Regenerate.
2711 2003-08-11 John Levon <levon@movementarian.org>
2713 * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
2714 remaining places for the name change from GLIBCPP_FORCE_NEW
2715 to GLIBCXX_FORCE_NEW
2717 2003-08-11 Benjamin Kosnik <bkoz@redhat.com>
2719 * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
2721 * include/bits/basic_ios.tcc: Same.
2722 * include/bits/istream.tcc: Same.
2723 * include/bits/locale_facets.h: Same.
2724 * include/bits/ostream.tcc: Same.
2725 * include/std/std_istream.h: Same.
2726 * include/std/std_ostream.h: Same.
2727 * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
2729 * include/ext/rope: Remove build warning.
2731 2003-08-11 Andreas Jaeger <aj@suse.de>
2733 * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
2735 * include/Makefile.in: Regenerated.
2737 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
2739 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
2740 when calling AC_PROG_CC.
2741 * aclocal.m4, configure: Regenerate.
2743 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
2745 * acinclude.m4: Properly quote variable which will be expanded
2746 inside makefiles. Use CXX instead of CC to extract compiler info.
2747 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
2748 correct form in PACKAGE.
2749 * aclocal.m4, configure: Regenerate.
2751 2003-08-08 Benjamin Kosnik <bkoz@redhat.com>
2753 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
2754 (check-abi-verbose): Same.
2755 * testsuite/testsuite_performance.h (report_performance): Same.
2757 2003-08-08 Loren J. Rittle <ljrittle@acm.org>
2759 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
2761 2003-08-07 Doug Gregor <dgregor@apple.com>
2763 * include/bits/char_traits.h (char_traits::not_eof): Match operand
2766 2003-08-07 Bernardo Innocenti <bernie@develer.com>
2769 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
2770 Replace variants with new BSET-based version.
2772 2003-08-07 Carlo Wood <carlo@alinoe.com>
2774 * include/bits/demangle.h: Do not use cctype functions that depend
2777 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
2779 * configure.in: Rename...
2780 * configure.ac: ...to this.
2781 * docs/html/17_intro/porting.texi: Update name.
2783 * docs/html/17_intro/porting.html: Regenerate.
2784 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2785 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2786 testsuite/Makefile.in: Regenerate (picks up new dependancy).
2788 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
2790 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
2791 pipe, open the window to let out the fumes, redo the option-handling
2792 logic to properly execute the detection test.
2793 * aclocal.m4, configure: Regenerate.
2795 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
2797 Convert to new autotools.
2798 * acconfig.h: Update with correct names.
2799 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
2800 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
2801 * configure.in: Update. Split hardcoded cross-configury settings
2803 * crossconfig.m4: ...here. New file. Contents untouched.
2804 * acinclude.m4: Reorganize and rewrite as needed. Split large
2806 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
2808 * scripts/testsuite_flags.in: Update.
2810 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
2811 variables (already generated by automake).
2812 * include/Makefile.am: Ditto.
2813 * libmath/Makefile.am: Ditto.
2814 * libsupc++/Makefile.am: Ditto.
2815 * po/Makefile.am: Ditto.
2816 * src/Makefile.am: Ditto.
2818 * aclocal.m4: Regenerate using new versions.
2819 * config.h.in: Ditto.
2821 * Makefile.in: Ditto.
2822 * include/Makefile.in: Ditto.
2823 * libmath/Makefile.in: Ditto.
2824 * libsupc++/Makefile.in: Ditto.
2825 * po/Makefile.in: Ditto.
2826 * src/Makefile.in: Ditto.
2827 * testsuite/Makefile.in: Ditto.
2829 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
2831 * po/libstdc++.pot: Re-extract/regenerate.
2833 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
2835 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
2836 Remove unneeded variable assignments. Leave them for automake.
2837 * testsuite/lib/libstdc++-v3.exp: Rename...
2838 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
2840 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
2841 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
2844 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
2846 * docs/doxygen/guide.html: run_doxygen uses bash.
2847 * docs/doxygen/mainpage.html: We'll be shipping tag files.
2848 * docs/doxygen/run_doxygen: Tweaks and improvements.
2849 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
2850 * docs/html/install.html: Update autoconf/automake requirements.
2851 * docs/html/test.html: Add section describing DejaGNU support.
2852 * docs/html/17_intro/confdeps.dot: New file, generates...
2853 * docs/html/17_intro/confdeps.png: ...this new file.
2854 * docs/html/Makefile: Generated here.
2855 * docs/html/17_intro/configury.html: New file.
2857 2003-07-31 Phil Edwards <pme@gcc.gnu.org>
2859 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
2860 * testsuite/lib/libstdc++-v3.exp: ...to this.
2861 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
2863 2003-07-31 Doug Gregor <dgregor@apple.com>
2865 Add user specialization tests.
2866 * testsuite/23_containers/deque/1.cc: New.
2867 * testsuite/23_containers/list/1.cc: New.
2868 * testsuite/23_containers/map/1.cc: New.
2869 * testsuite/23_containers/multimap/1.cc: New.
2870 * testsuite/23_containers/multiset/1.cc: New.
2871 * testsuite/23_containers/set/1.cc: New.
2872 * testsuite/23_containers/vector/1.cc: New.
2874 2003-07-31 Benjamin Kosnik <bkoz@redhat.com>
2876 Reshuffle 23_containers testsuite.
2877 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
2878 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
2879 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
2880 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
2881 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
2882 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
2883 vector_resize.cc: Split into...
2884 * 23_containers/bitset/cons/1.cc: New.
2885 * 23_containers/bitset/cons/6282.cc: New.
2886 * 23_containers/bitset/count/6124.cc: New.
2887 * 23_containers/bitset/operations/1.cc: New.
2888 * 23_containers/bitset/operations/2.cc: New.
2889 * 23_containers/bitset/test/1.cc: New.
2890 * 23_containers/bitset/to_ulong/1.cc: New.
2891 * 23_containers/deque/cons/1.cc: New.
2892 * 23_containers/deque/cons/2.cc: New.
2893 * 23_containers/deque/operators/1.cc: New.
2894 * 23_containers/list/capacity/1.cc: New.
2895 * 23_containers/list/cons/1.cc: New.
2896 * 23_containers/list/cons/2.cc: New.
2897 * 23_containers/list/cons/3.cc: New.
2898 * 23_containers/list/cons/4.cc: New.
2899 * 23_containers/list/cons/5.cc: New.
2900 * 23_containers/list/cons/6.cc: New.
2901 * 23_containers/list/cons/7.cc: New.
2902 * 23_containers/list/cons/8.cc: New.
2903 * 23_containers/list/cons/9.cc: New.
2904 * 23_containers/list/modifiers/1.cc: New.
2905 * 23_containers/list/modifiers/2.cc: New.
2906 * 23_containers/list/modifiers/3.cc: New.
2907 * 23_containers/list/operators/1.cc: New.
2908 * 23_containers/list/operators/2.cc: New.
2909 * 23_containers/list/operators/3.cc: New.
2910 * 23_containers/list/operators/4.cc: New.
2911 * 23_containers/map/insert/1.cc: New.
2912 * 23_containers/map/operators/1.cc: New.
2913 * 23_containers/map/operators/1_neg.cc: New.
2914 * 23_containers/multiset/insert/1.cc: New.
2915 * 23_containers/priority_queue/members/7161.cc: New.
2916 * 23_containers/queue/members/7157.cc: New.
2917 * 23_containers/set/operators/1_neg.cc: New.
2918 * 23_containers/stack/members/7158.cc: New.
2919 * 23_containers/vector/bool/1.cc: New.
2920 * 23_containers/vector/bool/6886.cc: New.
2921 * 23_containers/vector/capacity/1.cc: New.
2922 * 23_containers/vector/capacity/2.cc: New.
2923 * 23_containers/vector/capacity/8230.cc: New.
2924 * 23_containers/vector/cons/1.cc: New.
2925 * 23_containers/vector/cons/2.cc: New.
2926 * 23_containers/vector/cons/3.cc: New.
2927 * 23_containers/vector/cons/4.cc: New.
2928 * 23_containers/vector/cons/6513.cc: New.
2929 * 23_containers/vector/element_access/1.cc: New.
2930 * 23_containers/vector/modifiers/1.cc: New.
2931 * 23_containers/vector/modifiers/2.cc: New.
2932 * 23_containers/vector/resize/1.cc: New.
2934 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2936 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
2938 * testsuite/thread/pthread2.cc: Likewise.
2939 * testsuite/thread/pthread3.cc: Likewise.
2940 * testsuite/thread/pthread4.cc: Likewise.
2941 * testsuite/thread/pthread5.cc: Likewise.
2942 * testsuite/thread/pthread6.cc: Likewise.
2943 * testsuite/thread/pthread7-rope.cc: Likewise.
2945 2003-07-30 Phil Edwards <pme@gcc.gnu.org>
2947 * include/bits/c++config: Partial reversion (comment placement) of
2950 2003-07-30 Benjamin Kosnik <bkoz@redhat.com>
2952 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
2953 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
2954 (_GLIBCXX_AT_AT): Remove.
2955 (__USE_MALLOC): Remove.
2956 * include/std/std_fstream.h: Modify.
2957 * include/bits/basic_ios.h: Same.
2958 * include/bits/valarray_array.h: Same.
2959 * include/c_std/std_cmath.h: Same.
2960 * include/c_std/cmath.tcc: Same.
2961 * include/std/std_vector.h: Same.
2962 * include/std/std_string.h: Same.
2963 * include/std/std_stack.h: Same.
2964 * include/std/std_queue.h: Same.
2965 * include/std/std_list.h: Same.
2966 * include/std/std_deque.h: Same.
2967 * include/std/std_streambuf.h: Same.
2968 * include/std/std_sstream.h: Same.
2969 * include/std/std_ostream.h: Same.
2970 * include/std/std_istream.h: Same.
2971 * include/bits/valarray_array.tcc: Same, format.
2973 * include/c/std_cctype.h: Fix include guards.
2974 * include/c/std_cerrno.h: Same.
2975 * include/c/std_cfloat.h: Same.
2976 * include/c/std_climits.h: Same.
2977 * include/c/std_clocale.h: Same.
2978 * include/c/std_cmath.h: Same.
2979 * include/c/std_csetjmp.h: Same.
2980 * include/c/std_csignal.h: Same.
2981 * include/c/std_cstdarg.h: Same.
2982 * include/c/std_cstddef.h: Same.
2983 * include/c/std_cstdio.h: Same.
2984 * include/c/std_cstdlib.h: Same.
2985 * include/c/std_cstring.h: Same.
2986 * include/c/std_ctime.h: Same.
2987 * include/c/std_cwchar.h: Same.
2988 * include/c/std_cwctype.h: Same.
2989 * include/c_std/cmath.tcc: Same.
2990 * include/c_std/std_cmath.h: Same.
2992 2003-07-30 Gawain Bolton <gp.bolton@computer.org>
2995 * include/bits/stl_tree.h: Replace C-style casts with C++-style
2996 casts. Changes to avoid casting away constness. Eliminate
2997 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
2998 initialization lists. Move out implementation of __black_count()
3000 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
3001 Rename_Rb_tree_base_iterator::_M_increment() to
3002 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
3004 * config/linker-map.gnu: Add and change symbols here.
3006 2003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
3008 * docs/html/22_locale/howto.html: Use locale::classic() instead
3011 2003-07-28 Benjamin Kosnik <bkoz@redhat.com>
3013 * testsuite/testsuite_hooks.h: Remove list include.
3014 (func_callback): Define as unique type, not std::list.
3015 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
3016 * testsuite/libstdc++-v3.dg/dg.exp: Same.
3017 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
3018 * testsuite/23_containers/bitset_ctor.cc:
3019 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
3020 * testsuite/18_support/numeric_limits.cc: Same.
3021 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
3022 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
3023 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
3024 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
3025 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
3026 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
3027 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
3028 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
3029 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
3030 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
3031 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
3032 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
3033 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
3034 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
3035 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
3036 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
3037 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
3038 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
3039 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
3040 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
3041 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
3042 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
3043 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
3044 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
3045 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
3046 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
3047 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
3048 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
3049 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
3050 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
3051 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
3052 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
3053 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
3054 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
3055 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
3056 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
3057 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
3058 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
3059 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
3060 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
3061 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
3062 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
3063 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
3064 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
3065 * testsuite/23_containers/bitset_ctor.cc: Same.
3066 * testsuite/23_containers/bitset_shift.cc: Same.
3067 * testsuite/23_containers/vector_ctor.cc: Same.
3068 * testsuite/23_containers/vector_element_access.cc: Same.
3069 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
3070 * testsuite/24_iterators/iterator.cc: Same.
3071 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
3072 * testsuite/25_algorithms/lower_bound.cc: Same.
3073 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
3074 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
3075 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
3076 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
3077 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
3078 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
3079 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
3080 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
3081 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
3082 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
3083 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
3086 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
3088 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
3089 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
3090 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
3091 GLIBCPP to GLIBCXX (and explain as needed).
3093 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
3097 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
3099 * testsuite/22_locale/messages/members/char/1.cc,
3100 testsuite/22_locale/messages/members/char/2.cc,
3101 testsuite/22_locale/messages/members/char/3.cc,
3102 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
3103 the origin of LOCALEDIR.
3104 * testsuite/lib/libstdc++-v3.exp: New file.
3106 2003-07-25 Benjamin Kosnik <bkoz@redhat.com>
3108 * include/bits/char_traits.h: Update copyright, tweak.
3109 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
3112 2003-07-24 Matt Austern <austern@apple.com>
3114 * /include/bits/char_traits.h (class char_traits): Put all the
3115 real work into the new class template __gnu_cxx::char_traits.
3116 Gave generic definitions for member functions. Types are taken
3117 from the new class template __gnu_cxx::_Char_types.
3118 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
3119 file. Test of std::char_traits<short>, which serves as a test of
3120 the char_traits primary template.
3122 2003-07-24 Benjamin Kosnik <bkoz@redhat.com>
3124 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
3126 2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
3128 * testsuite/23_containers/map_operators.cc: Conform to
3129 container requirement as value must be Assignable.
3131 2003-07-23 Alexandre Oliva <aoliva@redhat.com>
3133 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
3134 tests not only generation of pch files, but also their use.
3135 * aclocal.m4, configure: Rebuilt.
3137 2003-07-23 Steve Ellcey <sje@cup.hp.com>
3139 * config/cpu/hppa/atomicity.h: Change
3140 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
3141 to match misc-inst.cc
3143 2003-07-23 Steve Ellcey <sje@cup.hp.com>
3145 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
3146 * include/c_std/std_cctype.h: Ditto.
3147 * include/c_std/std_cerrno.h: Ditto.
3148 * include/c_std/std_cfloat.h: Ditto.
3149 * include/c_std/std_climits.h: Ditto.
3150 * include/c_std/std_clocale.h: Ditto.
3151 * include/c_std/std_cmath.h: Ditto.
3152 * include/c_std/std_csetjmp.h: Ditto.
3153 * include/c_std/std_csignal.h: Ditto.
3154 * include/c_std/std_cstdarg.h: Ditto.
3155 * include/c_std/std_cstddef.h: Ditto.
3156 * include/c_std/std_cstdio.h: Ditto.
3157 * include/c_std/std_cstdlib.h: Ditto.
3158 * include/c_std/std_cstring.h: Ditto.
3159 * include/c_std/std_ctime.h: Ditto.
3160 * include/c_std/std_cwchar.h: Ditto.
3161 * include/c_std/std_cwctype.h: Ditto.
3162 * include/std/std_algorithm.h: Ditto.
3163 * include/std/std_bitset.h: Ditto.
3164 * include/std/std_complex.h: Ditto.
3165 * include/std/std_deque.h: Ditto.
3166 * include/std/std_fstream.h: Ditto.
3167 * include/std/std_functional.h: Ditto.
3168 * include/std/std_iomanip.h: Ditto.
3169 * include/std/std_ios.h: Ditto.
3170 * include/std/std_iosfwd.h: Ditto.
3171 * include/std/std_iostream.h: Ditto.
3172 * include/std/std_istream.h: Ditto.
3173 * include/std/std_iterator.h: Ditto.
3174 * include/std/std_limits.h: Ditto.
3175 * include/std/std_list.h: Ditto.
3176 * include/std/std_locale.h: Ditto.
3177 * include/std/std_map.h: Ditto.
3178 * include/std/std_memory.h: Ditto.
3179 * include/std/std_numeric.h: Ditto.
3180 * include/std/std_ostream.h: Ditto.
3181 * include/std/std_queue.h: Ditto.
3182 * include/std/std_set.h: Ditto.
3183 * include/std/std_sstream.h: Ditto.
3184 * include/std/std_stack.h: Ditto.
3185 * include/std/std_stdexcept.h: Ditto.
3186 * include/std/std_streambuf.h: Ditto.
3187 * include/std/std_string.h: Ditto.
3188 * include/std/std_utility.h: Ditto.
3189 * include/std/std_valarray.h: Ditto.
3190 * include/std/std_vector.h: Ditto.
3192 2003-07-22 Doug Gregor <dgregor@apple.com>
3194 * include/bits/basic_string.h (basic_string::insert): Deprecate
3197 2003-07-21 Benjamin Kosnik <bkoz@redhat.com>
3199 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
3201 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
3202 (test03): Include typeinfo for bad_cast.
3203 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
3204 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3205 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
3207 2003-07-21 Doug Gregor <dgregor@apple.com>
3209 * include/bits/boost_concept_check.h:
3210 (_EqualityComparableConcept::__constraints): Remove != from the
3211 list of constraints; it is not listed in Table 28 of the C++98
3214 2003-07-18 Andreas Jaeger <aj@suse.de>
3216 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
3217 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
3218 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
3219 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
3221 2003-07-17 Benjamin Kosnik <bkoz@redhat.com>
3223 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
3224 * config/locale/generic/messages_members.h: Tweaks.
3225 * config/locale/generic/monetary_members.cc
3226 (moneypunct::_M_initialize_moneypunct): Use cache.
3227 (moneypunct::~moneypunct): Delete cache.
3228 * config/locale/generic/time_members.cc:
3229 (__timepunct::_M_initialize_timepunct): Use cache.
3230 * config/locale/generic/time_members.h:
3231 (__timepunct::~__timepunct): Delete cache.
3232 (__timepunct::__timepunct): Set cache.
3233 * config/locale/gnu/messages_members.h: Tweaks.
3234 * config/locale/gnu/monetary_members.cc:
3235 (moneypunct::_M_initialize_moneypunct): Use cache.
3236 (moneypunct::~moneypunct): Delete cache.
3237 * config/locale/gnu/time_members.cc:
3238 (__timepunct::_M_initialize_timepunct): Use cache.
3239 * config/locale/gnu/time_members.h:
3240 (__timepunct::~__timepunct): Delete cache.
3241 (__timepunct::__timepunct): Set cache.
3242 * include/bits/locale_facets.h (__timepunct_cache): New.
3243 (__moneypunct_cache): New.
3244 * include/bits/locale_facets.tcc: Tweak.
3245 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
3246 * src/locale-inst.cc: Instantiate caches.
3247 * src/globals.cc: Add "C" caches.
3248 * src/localename.cc: Use external "C" caches.
3250 2003-07-17 Phil Edwards <pme@gcc.gnu.org>
3252 * docs/doxygen/guide.html: Fix typo.
3254 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
3256 * include/ext/pod_char_traits.h: Add state template argument.
3258 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
3260 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
3261 (num_get::_M_convert_int): To _M_insert_int.
3262 (num_get::_M_convert_float): To _M_insert_float.
3263 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
3264 Use caches for ctype, num_get.
3265 (num_get::_M_extract_int): Same.
3266 (num_get::get(bool)): Same.
3267 (__verify_grouping): Use size_t.
3268 * src/locale-inst.cc: Update.
3269 * src/locale.cc: Adjust _S_atoms_in.
3271 2003-07-16 Phil Edwards <pme@gcc.gnu.org>
3273 * docs/doxygen/mainpage.html: Move building/writing instructions...
3274 * docs/doxygen/guide.html: ...to here. New file.
3276 2003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
3278 * docs/html/ext/howto.html: Update URL for SGI STL docs.
3279 * docs/html/faq/index.html: Same.
3280 * docs/html/faq/index.txt: Regenerate.
3282 2003-07-16 Paolo Carlini <pcarlini@unitus.it>
3285 * include/bits/locale_facets.tcc (money_get::do_get):
3286 Strip only _leading_ zeros.
3287 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
3288 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
3290 2003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3292 * include/ext/hash_map (class hash_multimap): Remove extra
3293 semicolons from __glibcxx_class_requires3 entries.
3294 * include/ext/hash_set (class hash_set): Ditto.
3295 (class hash_multiset): Ditto.
3297 2003-07-15 Petur Runolfsson <peturr02@ru.is>
3299 * include/bits/char_traits.h (char_traits<wchar_t>::move):
3300 Change last parameter from int_type to size_t.
3302 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
3304 * include/bits/stl_algo.h (includes, set_union, set_intersection,
3305 set_difference, set_symmetric_difference, max_element, min_element,
3306 next_permutation, prev_permutation, find_first_of, find_end):
3308 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
3309 restrictions in docs.
3310 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
3312 * docs/doxygen/doxygroups.cc (setoperations): New group.
3314 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
3316 * include/bits/basic_string.h: Document public functions.
3317 * docs/doxygen/TODO: Update c21 todo.
3319 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
3321 * include/bits/stl_list.h: Document more functions.
3322 * docs/doxygen/TODO: Update c23 todo.
3324 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
3326 * config/locale/gnu/c_locale.h (__convert_from_v): One more
3329 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
3331 * include/bits/stl_tempbuf.h: Qualify free with std::.
3332 * src/locale.cc: Include <cstdlib>, qualify getenv.
3334 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
3336 * config/locale/gnu/c_locale.h (__convert_from_v): Include
3337 <cstdio>. Qualify names.
3338 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
3340 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
3341 Nathan C. Myers <ncm-nospam@cantrip.org>
3344 * include/std/std_fstream.h (xsputn): Declare only.
3345 * include/bits/fstream.tcc (xsputn): Define, optimize for the
3346 always_noconv() case: when __n is sufficiently large flush
3347 the buffer and issue a direct write, if possible combining the
3348 two with writev in __basic_file<>::xsputn_2.
3349 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
3351 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
3353 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
3354 the availability of writev in <sys/uio.h>.
3355 * configure.in: Call here.
3356 * acconfig.h: Add undef for the corresponding symbol.
3357 * aclocal.m4: Regenerate.
3358 * configure: Regenerate.
3359 * config.h.in: Regenerate.
3360 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
3362 * include/std/std_fstream.h (sync): Constify a variable.
3364 2003-07-14 Benjamin Kosnik <bkoz@redhat.com>
3366 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
3367 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3369 2003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
3371 * config/locale/gnu/c_locale.h (__convert_from_v): Include
3372 <cstring> and <cstdlib>. Qualify names.
3374 2003-07-13 Mark Mitchell <mark@codesourcery.com>
3376 * config/locale/generic/c_locale.h: Include <cstdlib> and
3378 * include/bits/boost_concept_check.h: Add this-> to unqualified
3380 * include/bits/deque.tcc: Likewise.
3381 * include/bits/locale_facets.h : Likewise.
3382 * include/bits/ostream.tcc: Likewise.
3383 * include/bits/stl_algo.h: Likewise.
3384 * include/bits/stl_bvector.h: Likewise.
3385 * include/bits/stl_deque.h: Likewise.
3386 * include/bits/stl_list.h: Likewise.
3387 * include/bits/stl_tree.h: Likewise.
3388 * include/bits/stl_vector.h: Likewise.
3389 * include/bits/vector.tcc: Likewise.
3390 * include/ext/rope: Likewise.
3391 * include/ext/ropeimpl.h: Likewise.
3392 * include/ext/stdio_filebuf.h: Likewise.
3394 2003-07-11 Jerry Quinn <jlquinn@optonline.net>
3396 * include/bits/basic_ios.h (copyfmt): Document.
3397 * include/bits/ios_base.h (event, event_callback, register_callback,
3398 xalloc, iword, pword): Document.
3399 (imbue, ~ios_base): Update docs on callbacks.
3401 2003-07-11 Phil Edwards <pme@gcc.gnu.org>
3403 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
3404 warning messages if the environment cannot support symbol versioning.
3405 (port_specific_symbol_file): It's plural, add an 's' on the end.
3406 * configure.host: Likewise.
3407 * src/Makefile.am: Likewise.
3408 * config/linker-map.gnu: Remove one semicolon, heh.
3409 * scripts/extract_symvers: Don't assume useful 'export' syntax.
3410 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
3411 * aclocal.m4, configure, src/Makefile.in: Regenerated.
3413 2003-07-09 Benjamin Kosnik <bkoz@redhat.com>
3415 * include/bits/locale_facets.tcc: Use function object for
3416 __use_cache instead of template function. Partially specialize for
3418 * include/bits/locale_classes.h: Update friend declaration for
3420 (_M_install_cache): No throw exception specs.
3421 * src/locale.cc: Remove __use_cache specializations.
3422 * include/ext/pod_char_traits.h (length): Tweak.
3423 * include/bits/locale_facets.h (__numpunct_cache): Remove
3425 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
3427 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
3428 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
3429 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
3430 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
3431 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
3432 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
3434 2003-07-09 Jerry Quinn <jlquinn@optonline.net>
3436 * src/ios.cc (_M_grow_words): Fix spelling.
3438 2003-07-09 Gawain Bolton <gp.bolton@computer.org>
3440 * include/bits/stl_tree.h: Move larger member functions in
3441 _Rb_tree_base_iterator and _Rb_tree_node to...
3442 * src/stl_tree.cc: Here.
3443 * src/Makefile.in: Add stl_tree.cc.
3444 * src/Makefile.in: Regenerated.
3445 * config/linker-map.gnu: Add symbols here.
3447 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
3449 * testsuite/ext/pod_char_traits.cc: New.
3450 * include/ext/pod_char_traits.h: New.
3451 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
3452 * include/Makefile.in: Regenerate.
3453 * docs/html/21_strings/howto.html: Update.
3455 2003-07-08 Gawain Bolton <gp.bolton@computer.org>
3457 * testsuite/performance/list_create_fill_sort.cc: New.
3459 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
3461 * config/locale/generic/numeric_members.cc: Correct type info.
3462 * config/locale/gnu/numeric_members.cc: Same.
3463 * include/bits/locale_facets.h: Same.
3465 * include/bits/char_traits.h: Correct spacing.
3467 * src/locale.cc: Wrap to 80 col.
3469 2003-07-07 Paolo Carlini <pcarlini@unitus.it>
3471 * include/std/std_complex.h: Partially revert last
3472 changes: cmath functions must not be qualified.
3474 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
3476 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
3477 2.11 with globbing backport fix.
3478 * aclocal.m4, configure: Regenerated.
3480 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
3482 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
3483 if output is at all possible (!_M_reading), cannot be active.
3485 * include/std/std_fstream.h: Tweak comments to doxygen style.
3487 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
3489 * include/bits/locale_classes.h: Fully qualify standard
3490 functions with std::, thus avoiding Koenig lookup.
3491 * include/bits/locale_facets.tcc: Likewise.
3492 * src/locale.cc: Likewise.
3493 * src/localename.cc: Likewise.
3495 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
3497 * include/bits/allocator_traits.h: Fix doxygen markup.
3498 * include/ext/mt_allocator.h: Likewise.
3500 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
3502 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
3504 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
3506 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
3507 requirement. Add port_specific_symbol_file variable.
3508 * configure.host: Add docs for port_specific_symbol_file.
3509 Clean up try_cpu block for x86.
3510 * config/linker-map.gnu: No more "last symbol can't have a
3511 semicolon" kaka. Add hook for port-specific symbols.
3512 * src/Makefile.am: Remove trailing whitespace.
3513 (libstdc++-symbol.ver): Detect the presence of port-specific
3514 symbols, and add them accordingly.
3516 * docs/html/17_intro/porting.texi: Bring up to date.
3518 * src/Makefile.in, aclocal.m4, configure,
3519 docs/html/17_intro/porting.html: Regenerated.
3521 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
3523 * scripts/create_testsuite_files: New file.
3524 * testsuite/Makefile.am (all-local, check-performance): Use it.
3525 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
3526 * testsuite/Makefile.in: Regenerated.
3528 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
3530 * testsuite/performance/fstream_seek_write.cc: Likewise.
3531 * testsuite/performance/ofstream_insert_float.cc: Likewise.
3532 * testsuite/performance/ofstream_insert_int.cc: Likewise.
3533 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
3535 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
3537 * include/bits/stl_list.h: Performance and memory usage
3538 improvements. In particular, the behaviour of the constructor and
3539 destructor as the list header node is no longer dynamically
3540 allocated/de-allocated.
3541 * include/bits/list.tcc: Likewise.
3543 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
3545 * include/std/std_complex.h: Fully qualify standard
3546 functions with std::, thus avoiding Koenig lookup.
3547 * include/std/std_memory.h: Likewise.
3548 * include/std/std_valarray.h: Likewise.
3550 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
3552 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
3553 variable for grandparent and use const
3555 2003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
3557 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
3558 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
3559 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
3560 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
3561 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
3562 * testsuite/27_io/objects/char/7.cc: Ditto
3563 * testsuite/27_io/objects/char/9661-1.cc: Ditto
3565 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
3567 * include/std/std_bitset.h: Fully qualify standard
3568 functions with std::, thus avoiding Koenig lookup.
3570 * include/std/std_fstream.h: Change comment to doxygen style.
3572 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
3574 * include/std/std_limits.h: More CPP->CXX changes.
3575 * scripts/check_survey.in: Likewise.
3577 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3579 Move from CPP to CXX.
3580 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
3581 * testsuite/Makefile.am: Same.
3582 * testsuite/Makefile.in: Regenerate.
3583 * po/Makefile.am: Same.
3584 * po/Makefile.in: Regenerate.
3585 * libsupc++/Makefile.am: Same.
3586 * libsupc++/Makefile.in: Regenerate.
3587 * libmath/Makefile.am: Same.
3588 * libmath/Makefile.in: Regenerate.
3589 * include/Makefile.am: Same.
3590 * include/Makefile.in: Regenerate.
3591 * src/Makefile.am: Same.
3592 * src/Makefile.in: Regenerate.
3594 * configure.host: Same.
3595 * configure.in: Same.
3596 * configure: Regenerate.
3597 * acinclude.m4: Same.
3599 * src: Change all files in this directory.
3601 * include: Same, standardize include guards.
3605 2003-07-04 Zack Weinberg <zack@codesourcery.com>
3607 * testsuite/22_locale/collate/compare/wchar_t/2.cc
3608 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
3609 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
3610 * testsuite/22_locale/collate/hash/wchar_t/2.cc
3611 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
3612 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
3613 * testsuite/22_locale/collate/transform/wchar_t/2.cc
3614 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
3615 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3616 XFAIL on all targets.
3618 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3620 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
3621 * aclocal.m4: Regenerate.
3622 * configure: Regenerate.
3624 2003-07-04 Jerry Quinn <jlquinn@optonline.net>
3626 * include/bits/locale_facets.tcc (__int_to_char): Move common case
3629 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3630 Petur Runolfsson <peturr02@ru.is>
3632 * config/io/basic_file_stdio.cc: Revert.
3634 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3636 * include/bits/deque.tcc: Fully qualify standard
3637 functions with std::, thus avoiding Koenig lookup.
3638 * include/bits/gslice_array.h: Likewise.
3639 * include/bits/indirect_array.h: Likewise.
3640 * include/bits/list.tcc: Likewise.
3641 * include/bits/mask_array.h: Likewise.
3642 * include/bits/slice_array.h: Likewise.
3644 2003-07-04 Gawain Bolton <gbolton@free.fr>
3646 * include/bits/stl_tree.h: Performance and memory usage
3649 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
3651 * Makefile.am: Replace PWD with PWD_COMMAND.
3652 * Makefile.in: Regenerated.
3653 * docs/html/Makefile: Likewise.
3655 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3657 * include/bits/valarray_array.h: Fully qualify standard
3658 functions with std::, thus avoiding Koenig lookup.
3659 * include/bits/vector.tcc: Likewise.
3661 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3663 * include/Makefile.am: Update target_ to host_.
3664 * include/Makefile.in: Regenerate.
3665 * src/Makefile.am: Same.
3666 * src/Makefile.in: Regenerate.
3668 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
3670 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3672 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
3673 --enable-libstdcxx-debug-flags.
3674 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
3675 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
3676 * aclocal.m4: Regenerate.
3678 * docs/html/configopts.html: Update.
3680 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3682 Revert the fix for libstdc++/11378.
3684 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3687 * include/std/std_fstream.h (xsputn): In the unbuffered case,
3688 provided always_noconv(), issue directly _M_file.xsputn.
3689 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
3691 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3693 * include/bits/stl_list.h: Fully qualify standard
3694 functions with std::, thus avoiding Koenig lookup.
3695 * include/bits/stl_queue.h: Likewise.
3696 * include/bits/stl_raw_storage_iter.h: Likewise.
3697 * include/bits/stl_tempbuf.h: Likewise.
3698 * include/bits/stl_tree.h: Likewise.
3699 * include/bits/stl_uninitialized.h: Likewise.
3700 * include/bits/stl_vector.h: Likewise.
3701 * include/ext/rope: Change includes order.
3703 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3705 * configure.host (fpos_include_dir): Fix.
3707 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3709 * include/bits/stl_heap.h: Fully qualify standard
3710 functions with std::, thus avoiding Koenig lookup.
3711 * include/bits/stl_iterator_base_funcs.h: Likewise.
3713 * include/bits/stl_algo.h: Qualify __iterator_category too.
3714 * include/bits/stl_algobase.h: Likewise.
3715 * include/bits/stl_bvector.h: Likewise.
3717 * include/bits/stl_algo.h: Don't qualify the pair type.
3719 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
3721 * include/Makefile.am (target_headers): Add fpos.h
3722 (bits_headers): Remove.
3723 * include/Makefile.in: Regenerate.
3724 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
3725 * configure: Regenerate.
3726 * configure.host: Add fpos_include_dir.
3727 * config/os/gnu-linux/fpos.h: New.
3728 * config/os/generic/fpos.h: Add.
3729 * include/bits/fpos.h: Remove.
3731 * config/io/c_io_stdio.h: Remove fpos_t typedef.
3733 * include/bits/fstream.tcc: Tweaks.
3734 * include/std/std_fstream.h: Same.
3736 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
3737 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
3738 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
3739 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
3740 * testsuite/27_io/fpos/1.cc: New.
3742 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
3743 Petur Runolfsson <peturr02@ru.is>
3745 * include/std/std_streambuf.h: Remove _M_pos.
3746 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
3747 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
3748 use fread/fwrite instead of read/write.
3749 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
3750 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
3751 before reading again.
3752 * testsuite/27_io/objects/char/6.cc: Tweak.
3754 2003-07-03 David Edelsohn <edelsohn@gnu.org>
3756 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
3757 _GLIBCPP_USE_WCHAR_T.
3759 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
3761 * include/bits/basic_string.tcc (_M_replace_aux): Constify
3764 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
3766 * include/bits/stl_bvector.h: Fully qualify standard
3767 functions with std::, thus avoiding Koenig lookup.
3768 * include/bits/stl_construct.h: Likewise.
3769 * include/bits/stl_deque.h: Likewise.
3771 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
3773 * testsuite/22_locale/num_put/put/char/7.cc: Include
3774 <testsuite_hooks.h>, tweak.
3775 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
3777 2003-07-01 Phil Edwards <pme@gcc.gnu.org>
3779 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
3780 check* targets, but not libs/programs).
3781 * testsuite/Makefile.in: Regenerate.
3783 2003-07-01 Roger Sayle <roger@eyesopen.com>
3785 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
3786 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
3787 * aclocal.m4: Regenerate.
3788 * configure: Regenerate.
3790 2003-07-01 Benjamin Kosnik <bkoz@redhat.com>
3792 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
3793 * aclocal.m4: Regenerated.
3794 * configure: Regenerated.
3796 2003-07-01 Paolo Carlini <pcarlini@unitus.it>
3799 * include/bits/fstream.tcc (underflow): For encoding() == 0
3800 don't read more than __buflen chars.
3801 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
3802 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
3803 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
3804 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
3806 2003-07-01 Jerry Quinn <jlquinn@optonline.net>
3808 * 22_locale/num_put/put/char/7.cc: New.
3809 * 22_locale/num_put/put/wchar_t/7.cc: New.
3811 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
3813 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
3814 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
3816 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
3818 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
3819 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
3820 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
3821 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
3822 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
3823 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
3824 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
3825 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
3826 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
3827 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
3828 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
3829 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
3830 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
3831 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
3832 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
3833 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
3834 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
3835 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
3836 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
3837 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
3838 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
3839 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
3840 * data/seekoff-1.tst: Remove.
3841 * data/seekoff-1io.tst: New.
3842 * data/seekoff-1out.tst: New.
3843 * data/seekoff-2.tst: Remove.
3844 * data/seekoff-2io.tst: New.
3845 * data/seekoff-2out.tst: New.
3847 * data/seekpos-1.tst: Remove.
3848 * data/seekpos-1io.tst: New.
3849 * data/seekpos-1out.tst: New.
3850 * data/seekpos-2.tst: Remove.
3851 * data/seekpos-2io.tst: New.
3852 * data/seekpos-2out.tst: New.
3853 * data/seekpos.txt: New.
3855 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
3857 * src/locale.cc (__use_cache<numpunct>): Move from here ...
3858 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
3861 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
3863 * include/bits/stl_algobase.h: Fully qualify standard
3864 functions with std::, thus avoiding Koenig lookup.
3866 2003-06-30 Doug Gregor <dgregor@apple.com>
3868 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
3869 subscripting empty string.
3871 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
3873 * testsuite/Makefile.am (check-am): Do not override.
3874 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
3875 * testsuite/Makefile.in: Regenerate.
3877 2003-06-30 Doug Gregor <dgregor@apple.com>
3879 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
3880 Don't initialize an insert_iterator with a singular iterator.
3882 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
3884 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
3885 * aclocal.m4: Regenerate.
3886 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
3887 GLIBCPP_ENABLE_PCH, default to yes.
3888 * configure: Regenerate.
3889 * docs/html/configopts.html: Add --enable-pch.
3891 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
3893 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
3894 (libstdc++-v3-init): Also set LD_RUN_PATH.
3896 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
3898 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
3899 from here to filebuf and stringbuf.
3900 (~basic_streambuf()): Don't set _M_mode.
3901 (basic_streambuf()): Don't set _M_mode.
3902 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
3903 (~basic_filebuf()): Clean up.
3904 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
3905 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
3906 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
3907 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
3908 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
3909 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
3910 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
3912 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
3914 * include/std/std_fstream.h (_M_underflow): Remove.
3915 (uflow): Remove, inherited from streambuf.
3916 (underflow): Only declare.
3917 * include/bits/fstream.tcc (_M_underflow): Rename to
3918 underflow, to which is equivalent for __bump == false,
3920 * include/std/std_sstream.h (_M_underflow): Remove.
3921 (uflow): Remove, inherited from streambuf.
3922 (underflow): Only declare.
3923 * include/bits/sstream.tcc (_M_underflow): Rename to
3924 underflow, to which is equivalent for __bump == false,
3927 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
3929 * include/bits/stl_algo.h: Fully qualify standard functions
3930 with std::, thus avoiding Koenig lookup.
3932 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
3934 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
3935 Improve type correctness-wise.
3936 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
3938 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
3940 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
3943 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
3945 * include/std/std_streambuf.h (uflow): According to
3946 27.5.2.4.3,p16, don't check gptr() < egptr().
3948 2003-06-28 Paolo Carlini <pcarlini@unitus.it>
3951 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
3952 (seekpos): Likewise.
3953 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
3955 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
3958 2003-06-27 Benjamin Kosnik <bkoz@redhat.com>
3960 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
3961 output name to libstdc++-v3-performance.sum.
3962 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
3963 * testsuite/Makefile.in: Regenerate.
3965 2003-06-27 Matthias Klose <doko@debian.org>
3967 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
3968 output of abi-check in libstdc++-v3-abi.sum.
3969 * testsuite/Makefile.in: Regenerate.
3971 2003-06-27 Krister Walfridsson <cato@df.lth.se>
3973 * config/os/bsd/netbsd/ctype_noninline.h
3974 (_C_ctype_): Declare.
3975 (ctype<char>::classic_table): Return _C_ctype_ + 1.
3976 (ctype<char>::ctype): Use classic_table.
3978 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
3979 Nathan C. Myers <ncm-nospam@cantrip.org>
3982 * include/bits/fstream.tcc (_M_underflow): Properly estimate
3983 the worst-case number of external bytes for a given get area.
3984 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
3986 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
3987 Petur Runolfsson <peturr02@ru.is>
3990 * include/bits/fstream.tcc (overflow): Properly estimate the
3991 worst-case number of external bytes for a given put area
3992 (by using codecvt::max_length()).
3993 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
3994 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
3995 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
3996 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
3998 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
4000 * config/linker-map.gnu: Remove ; after __numpunct_cache.
4002 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
4004 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
4005 to the imbued locale.
4006 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
4008 (num_put::_M_convert_float): Use.
4010 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
4011 Jerry Quinn <jlquinn@optonline.net>
4013 * config/linker-map.gnu: Add __numpunct_cache.
4014 * config/locale/gnu/numeric_members.cc
4015 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
4016 all elements for "C" locale.
4017 (numpunct::~numpunct): Delete _M_data.
4018 * config/locale/generic/numeric_members.cc: Same.
4019 * include/bits/basic_ios.tcc
4020 (basic_ios::init): Remove __locale_cache bits.
4021 (basic_ios::_M_cache_locale): Same.
4022 * include/bits/ios_base.h: Same. Tweaks.
4023 * include/bits/locale_classes.h: Tweaks. Reorder classes.
4024 (__use_cache): Make friends with _Impl, locale.
4025 (_Impl::_M_caches): Add.
4026 (_Impl::_M_install_cache): Add.
4027 * include/bits/locale_facets.h (__numpunct_cache): New.
4028 (numpunct): Encapsulate data members in __numpunct_cache member,
4029 _M_data. Adjust virtuals.
4030 (numpunct::numpunct): New ctor for the same.
4031 (__locale_cache_base): Remove.
4032 (__locale_cache): Remove.
4033 * include/bits/locale_facets.tcc (__use_cache): New function,
4035 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
4036 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
4037 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
4038 * src/locale-inst.cc: Same. Add __numpunct_cache.
4039 * src/locale.cc: Tweak inlines.
4040 (__use_cache): Define specializations.
4041 * src/localename.cc: Use global bits.
4042 (_Impl::~Impl): Deal with __numpunct_cache destruction.
4043 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
4044 (_Impl::_M_init_facet): Take into account __numpunct_cache.
4045 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
4046 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4048 2003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
4049 Paolo Carlini <pcarlini@unitus.it>
4051 * testsuite/performance/filebuf_copy.cc: New, testing char
4054 2003-06-26 Paolo Carlini <pcarlini@unitus.it>
4055 Nathan C. Myers <ncm-nospam@cantrip.org>
4057 * include/bits/fstream.tcc (_M_underflow): When the actual
4058 end of file is reached, set 'uncommitted' mode to allow a
4059 next write without an intervening seek (see C++98 27.8.1.1,2
4061 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
4063 2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
4065 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
4066 sputc): Move inline, from here...
4067 * include/std/std_streambuf.h: ... to here.
4069 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
4070 sputbackc, sungetc, sputc): Use __builtin_expect.
4072 2003-06-24 Phil Edwards <pme@gcc.gnu.org>
4074 * docs/doxygen/mainpage.html: Use a useful title.
4076 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
4078 * docs/html/documentation.html: Remove assignment info.
4079 * docs/html/17_intro/contribute.html: Edits.
4080 * docs/html/17_intro/libstdc++-assign.tx: Remove.
4082 * docs/html/test.html: Update.
4086 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
4087 Ulrich Drepper <drepper@redhat.com>
4089 * testsuite/testsuite_performance.h: Tweak mallinfo.
4091 2003-06-24 Paolo Carlini <pcarlini@unitus.it>
4092 Nathan C. Myers <ncm-nospam@cantrip.org>
4094 * include/std/std_fstream.h (_M_filepos): Remove.
4095 (_M_reading, _M_writing): New, encode the various I/O modes:
4096 'read', 'write' and 'uncommitted'.
4097 (sync): If there is something to flush, do it, then go to
4099 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
4100 with three different cases: __off > 0 (upon underflow),
4101 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
4103 (_M_underflow): Don't call overflow, set _M_reading to true
4105 (pbackfail): Set _M_reading to true on pback creation, tweak.
4106 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
4107 set _M_writing to true on success, tweak.
4108 (seekoff): Simplify, set _M_reading, _M_writing to false, call
4109 _M_set_buffer(-1) ('uncommitted').
4110 (open, close, setbuf): Set _M_reading, _M_writing to false and
4111 call _M_set_buffer(-1), tweak.
4112 (basic_filebuf): Don't set _M_buf_unified.
4113 (_M_destroy_internal_buffer): Don't call setg and setp.
4114 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
4115 _M_writing and _M_set_buffer(-1).
4116 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
4117 _M_out_lim, _M_buf_unified): Remove.
4118 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
4119 (setp): Don't set _M_out_lim.
4120 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
4121 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
4122 upon open the mode is 'uncommitted' and therefore the put area
4124 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
4125 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
4126 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
4127 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
4128 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
4129 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
4130 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
4131 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
4132 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
4133 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
4134 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
4135 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
4136 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
4137 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
4138 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
4139 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
4140 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
4141 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
4142 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
4143 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
4145 * include/bits/fstream.tcc (showmanyc): Use only the
4146 documented derivation interface to basic_streambuf (gptr(),
4147 setg(), etc.) to work right with user specializations.
4148 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
4149 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
4150 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
4152 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
4155 2003-06-23 Loren J. Rittle <ljrittle@acm.org>
4157 * configure.host (freebsd*): Set abi_baseline_pair.
4158 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
4159 (at or near first release) to 3.3.
4160 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
4161 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
4162 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
4164 * include/ext/mt_allocator.h: Portability.
4165 * testsuite/testsuite_performance.h: Likewise.
4167 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
4169 * docs/html/17_intro/libstdc++-assign.txt: Update address.
4171 * testsuite/performance/ifstream_getline.cc: Fix.
4173 2003-06-23 Doug Gregor <dgregor@apple.com>
4175 * include/bits/boost_concept_check.h: Don't use _D or _R for type
4178 2003-06-22 Paolo Carlini <pcarlini@unitus.it>
4179 Nathan C. Myers <ncm-nospam@cantrip.org>
4181 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
4182 is now used only for filebuf, when _M_buf_unified is true.
4183 epgtr() plays the role of _M_out_lim but it's only updated
4184 upon overflow, underflow, uflow, seekoff/pos.
4185 * include/bits/sstream.tcc (_M_underflow): New, implements
4186 stringbuf::underflow and uflow.
4187 (seekoff, seekpos): Tweak, use _M_update_egptr.
4188 * include/std/std_sstream.h (str): Rewrote, deal correctly
4189 with the new logic, in particular, when pptr() > egptr().
4190 (_M_sync): When __testout && !__testin set all the get area
4191 pointers to the current string end.
4192 (_M_update_egptr): New, internal function updating egptr()
4193 to the actual string end.
4194 (_M_underflow): New, declare.
4195 (underflow): Dispatch to _M_underflow(false).
4196 (uflow): Dispatch to _M_underflow(true).
4198 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
4199 seekpos): Use only the documented derivation interface to
4200 basic_streambuf (gptr(), setg(), etc.) to work right with
4201 user specializations.
4202 * include/std/std_sstream.h (str, _M_sync): Likewise.
4204 2003-06-20 Doug Gregor <dgregor@apple.com>
4206 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
4207 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
4208 dereference end iterator.
4209 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
4210 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
4211 index equal to the length of a string.
4212 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
4213 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
4214 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
4215 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
4216 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
4217 * testsuite/23_containers/list_modifiers.cc: Don't dereference
4218 singular reverse iterator.
4219 * testsuite/23_containers/vector_bool.cc: Don't increment singular
4221 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
4223 2003-06-20 Doug Gregor <dgregor@apple.com>
4225 * include/bits/basic_string.h (basic_string::replace): Dispatch
4226 _InputIterator version based on _Is_integer.
4227 * include/bits/basic_string.tcc (basic_string::replace):
4228 Renamed replace(iterator, iterator, size_type, _CharT) to
4230 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
4231 Test basic_string::assign(_InputIterator, _InputIterator),
4232 which calls basic_string::replace(iterator, iterator,
4233 _Input_iterator, _InputIterator).
4235 2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
4237 * testsuite/testsuite_performance.h (resource_counter): Don't use
4238 mallinfo at the moment.
4240 2003-06-20 Matthias Klose <doko@debian.org>
4242 * configure.host: Set try_cpu to target_cpu for existing
4245 2003-06-19 Andreas Jaeger <aj@suse.de>
4247 * testsuite/Makefile.am (extract_symvers): Revert accidental
4249 * testsuite/Makefile.in: Regenerate.
4251 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
4252 * configure: Regenerated.
4254 2003-06-19 Paolo Carlini <pcarlini@unitus.it>
4256 * include/std/std_sstream.h (_M_sync): Make non virtual.
4258 2003-06-18 Benjamin Kosnik <bkoz@redhat.com>
4260 * testsuite/testsuite_performance.h (time_counter): New.
4261 (resource_counter): New.
4262 (report_performance): New.
4263 (start_counters): New.
4264 (stop_counters): New.
4265 (clear_counters): New.
4266 * testsuite/performance/allocator.cc: Instrument.
4267 * testsuite/performance/cout_insert_int.cc: Same.
4268 * testsuite/performance/complex_norm.cc: Same.
4269 * testsuite/performance/filebuf_sputc.cc: New.
4270 * testsuite/performance/fstream_seek_write.cc: Same.
4271 * testsuite/performance/ifstream_getline.cc: Same.
4272 * testsuite/performance/map_create_fill.cc: Same.
4273 * testsuite/performance/ofstream_insert_float.cc: Same.
4274 * testsuite/performance/ofstream_insert_int.cc: Same.
4275 * testsuite/performance/string_append.cc: Convert.
4276 * scripts/check_performance: New.
4277 * testsuite/Makefile.am (check-performance): New.
4280 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
4281 Benjamin Kosnik <bkoz@redhat.com>
4283 * include/std/std_sstream.h (setbuf): Check __n >= 0.
4284 * include/bits/fstream.tcc (setbuf): Tweak.
4286 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
4288 * include/bits/sstream.tcc (seekoff): We can't seek beyond
4289 _M_out_lim, therefore _M_move_out_cur boils down to simply
4290 updating _M_out_cur.
4291 (seekpos): Likewise, clean up.
4293 2003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
4294 Paolo Carlini <pcarlini@unitus.it>
4296 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
4297 simply equivalent to the unbuffered case (0, 0) as far as
4298 _M_buf_size is concerned.
4300 2003-06-18 Andreas Jaeger <aj@suse.de>
4302 * testsuite/Makefile.am (new-abi-baseline): Create baseline
4304 (baseline_file): Use baseline_dir.
4305 (baseline_dir): New.
4306 (mkinstalldirs): New.
4308 * acinclude.m4: Rename baseline_file to baseline_dir, strip
4309 filename from baseline_dir.
4311 * testsuite/Makefile.in: Regenerated.
4312 * Makefile.in: Regenerated.
4313 * aclocal.m4: Regenerated.
4314 * configure: Regenerated.
4316 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
4318 * configure.in: Missed check_survey bit.
4319 * configure: Regenerated.
4321 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
4324 * config/abi/extract_symvers: Move to...
4325 * scripts/extract_symvers: ...here.
4326 * mkcheck.in: Move to..
4327 * scripts/check_survey.in: ...here.
4328 * testsuite_flags.in: Move to..
4329 * scripts/testsuite_flags.in: ...here.
4330 * configure.in: Change check and testsuite_flags locations.
4331 * configure: Regenerate.
4332 * testsuite/Makefile.am (current_symbols.txt): Change location.
4333 * testsuite/Makefile.in: Regenerate.
4334 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
4335 location of testsuite_flags.
4336 * Makefile.am (check-script): Move..
4337 (check-script-install): Move...
4338 * testsuite/Makefile.am: ... here.
4339 * testsuite/Makefile.in: Regenerate.
4340 * Makefile.in: Regenerate.
4342 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
4344 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
4346 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
4348 * Makefile.am (check-abi): Move...
4349 (new-abi-baseline): Move...
4350 * testsuite/Makefile.am: ...here.
4351 (new-abi-baseline): Conditionalize.
4352 (check-abi): Conditionalize.
4353 (check-abi-verbose): New.
4354 * Makefile.in: Regenerate.
4355 * testsuite/Makefile.in: Regenerate.
4356 * configure.in: Consolidate testsuite configure bits.
4357 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
4358 * configure: Regenerate.
4359 * aclocal.m4: Regenerate.
4360 * testsuite/abi_check.cc: Add --check-verbose.
4361 Only output detailed information if --check-verbose.
4363 2003-06-16 Andreas Jaeger <aj@suse.de>
4365 * testsuite/abi_check.cc: Create summary report.
4367 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
4369 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
4370 for systems with BUFSIZ != 8192.
4371 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
4372 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
4375 2003-06-16 Andreas Jaeger <aj@suse.de>
4377 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
4378 check-abi multilib aware.
4379 * aclocal.m4: Regenerate.
4380 * configure: Regenerate.
4382 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
4383 Andreas Jaeger <aj@suse.de>
4385 * configure.host: Set x86_64 abi_baseline pair correctly.
4387 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
4389 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
4390 fix for missing seeks between gets and puts into...
4391 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
4392 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
4393 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
4394 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
4395 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
4396 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
4398 2003-06-15 Richard Henderson <rth@redhat.com>
4400 * config/linker-map.gnu: Export virtual function thunks for
4403 2003-06-13 Benjamin Kosnik <bkoz@redhat.com>
4405 * config/abi/i686-pc-linux-gnu: To..
4406 * config/abi/i486-linux-gnu: ...this.
4407 * config/abi/alphaev67-unknown-linux-gnu: To..
4408 * config/abi/alpha-linux-gnu: ...this.
4409 * config/abi/ia64-unknown-linux-gnu: To...
4410 * config/abi/ia64-linux-gnu: ...this.
4411 * config/abi/x86_64-unknown-linux-gnu: To...
4412 * config/abi/x86_64-linux-gnu: ...this.
4413 * config/abi/i386-unknown-freebsd4: To...
4414 * config/abi/i386-freebsd4: ...this.
4415 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
4417 * configure.host: abi_baseline_triplet to abi_baseline_pair.
4418 Simplify cpu bits so that abi_baseline_pair can use the same
4420 * acinclude.m4: Same.
4421 * aclocal.m4: Regenerate.
4422 * configure.in: Can't get enable_abi_check to yes unless native.
4423 * configure: Regenerate.
4425 2003-06-13 Paolo Carlini <pcarlini@unitus.it>
4427 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
4428 fix for missing seeks between gets and puts into...
4429 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
4430 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
4431 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
4432 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
4433 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
4434 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
4435 for missing seeks between gets and puts.
4436 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
4437 * testsuite/data/seekoff-1.tst: New.
4438 * testsuite/data/seekoff-2.tst: New.
4439 * testsuite/data/seekpos-1.tst: New.
4440 * testsuite/data/seekpos-2.tst: New.
4442 2003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
4444 Avoid multi-processor bus contention on increment/decrement-and-
4445 test of the reference count in the empty-string object, by comparing
4446 addresses first, and never touching the reference count of the empty-
4448 * include/bits/basic_string.h:
4449 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
4451 (_Rep::_S_empty_rep()): New accessor.
4452 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
4453 a base class _Rep_base.
4454 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
4455 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
4456 since no longer must increment its refcount.
4457 * include/bits/basic_string.tcc:
4458 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
4459 return immediately. The former might be unnecessary. The latter
4460 prevents begin() and end() from cloning it unnecessarily.
4461 (_S_construct(_InIterator, _InIterator, const _Alloc&,
4462 input_iterator_tag), _S_construct(_InIterator, _InIterator,
4463 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
4464 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
4465 (_M_mutate): Check for the empty string and treat it as shared.
4466 This is necessary here because _M_mutate is sometimes called with
4467 all-zero arguments; in all other uses of _M_is_shared, the test comes
4470 2003-06-12 Benjamin Kosnik <bkoz@redhat.com>
4472 * src/allocator-inst.cc: Explicitly instantiate.
4473 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
4475 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
4477 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
4479 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
4480 * aclocal.m4: Regenerate.
4481 * Makefile.am (SUBDIRS): Remove libio.
4482 * Makefile.in: Regenerate.
4483 * configure.in: Same.
4484 * configure: Regenerate.
4485 * config/io/basic_file_libio.cc: Remove.
4486 * config/io/basic_file_libio.h: Remove.
4487 * config/io/c_io_libio_codecvt.c: Remove.
4488 * config/io/c_io_libio.h: Remove.
4490 * src/Makefile.am: Same.
4491 * src/Makefile.in: Regenerate.
4492 * docs/html/configopts.html: Edits.
4493 * docs/html/explanations.html: Edits.
4495 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
4497 * include/bits/stl_alloc.h (__debug_alloc): Move out.
4498 (__malloc_alloc): Same.
4499 (__pool_alloc): Same.
4500 (__new_alloc): Same.
4502 * include/bits/allocator.h: ...this.
4503 * include/bits/stl_deque.h: Modify comment.
4504 * include/bits/stl_tree.h: Modify include.
4505 * include/std/std_memory.h: Same.
4506 * include/ext/rope: Same.
4507 * include/ext/slist: Same.
4508 * include/std/std_vector.h: Same.
4509 * include/std/std_stack.h: Same.
4510 * include/std/std_queue.h: Same.
4511 * include/std/std_list.h: Same.
4512 * include/std/std_deque.h: Same.
4513 * include/backward/alloc.h: Same.
4514 * include/ext/debug_allocator.h: New.
4515 * include/ext/malloc_allocator.h: New.
4516 * include/ext/pool_allocator.h: New.
4517 * include/ext/new_allocator.h: New.
4518 * include/bits/pthread_allocimpl.h: Remove.
4519 * include/bits/stl_pthread_alloc.h: Remove.
4520 * include/Makefile.am (ext_headers): Add.
4521 * include/Makefile.in: Regenerate.
4522 * src/stl-inst.cc: Use __gnu_cxx namespace.
4523 * src/stl-inst.cc: Move to...
4524 * src/allocator-inst.cc: Here.
4525 * src/Makefile.am (sources): Update.
4526 * src/Makefile.in: Regenerate.
4527 * config/linker-map.gnu: Remove __pool_alloc bits.
4528 * testsuite/ext/headers.cc: Add.
4529 * testsuite/ext/allocators.cc: Fixup.
4531 2003-06-11 Stefan Olsson <stefan@snon.net>
4532 Ola Rönnerup <fnolis@home.se>
4534 * include/Makefile.am (ext_headers): Add.
4535 * include/Makefile.in: Regenerate.
4536 * include/ext/mt_allocator.h: New file.
4538 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
4540 * include/bits/fstream.tcc (close): Clean up a bit.
4542 * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
4544 * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
4545 - the saved _M_in_cur, that is - cannot be null.
4546 (sync): Constify a variable.
4548 * include/std/std_streambuf.h: Tweak a comment.
4549 (in_avail): Constify a variable.
4551 2003-06-10 Phil Edwards <pme@gcc.gnu.org>
4553 * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot.
4554 * docs/html/17_intro/CHECKLIST: Bring up to date with respect to
4555 correctness of container::iterator typedefs. Fix whitespace.
4556 * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links
4558 * docs/html/documentation.html: Regenerate.
4560 * include/bits/basic_string.h, include/bits/basic_string.tcc,
4561 include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
4562 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4563 include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
4564 include/bits/stl_list.h, include/bits/stl_uninitialized.h,
4565 include/bits/stl_vector.h, include/bits/vector.tcc,
4566 include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
4567 Change _Iter names to _Iterator, and __pos to __position.
4569 * include/bits/stl_relops.h, include/bits/stl_numeric.h,
4570 include/bits/stl_multiset.h, include/bits/stl_set.h:
4571 Remove emacs markers.
4573 * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__.
4575 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
4577 * include/bits/fstream.tcc (overflow): According to
4578 27.5.2.4.5, overflow() returns not_eof(eof()).
4579 * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
4580 * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
4582 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
4584 * include/bits/fstream.tcc (_M_underflow): Check overflow return
4585 value; tweak slightly.
4587 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
4589 * include/bits/fstream.tcc (_M_underflow): Do not special
4590 case the unbuffered case, which really means simply a one char
4592 (basic_filebuf): Initialize _M_buf_size.
4593 (setbuf): Unbuffered means _M_buf_size == 1, since only
4594 _M_buf_size - 1 == 0 chars are going to be used for the
4595 put area and 1 for the get area.
4596 * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
4597 (~basic_streambuf): Tweak.
4598 (basic_streambuf): Do not initialize _M_buf_size.
4599 * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
4600 (~basic_filebuf): Tweak.
4601 (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
4602 unbuffered situation (i.e., put area pointers NULL).
4603 * include/bits/streambuf.tcc (sbumpc): Clean up.
4604 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
4605 * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
4606 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
4607 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
4608 * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
4609 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
4610 * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
4612 2003-06-09 Phil Edwards <pme@gcc.gnu.org>
4614 * acinclude.m4: Move all AM_CONDITIONAL calls out.
4615 (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL
4617 * configure.in: Centralize AM_CONDITIONALs so that they are always
4618 run. Make use of GLIBCPP_IS_CROSS_COMPILING.
4619 * aclocal.m4, configure: Regenerated.
4621 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
4623 * docs/html/ext/howto.html ('LWG Issues'): Add issue 235.
4625 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
4627 * include/bits/stl_iterator.h
4628 (reverse_iterator::reverse_iterator()): Apply DR235: default
4629 constructor default-initializes data member. Instantiated on a
4630 pointer type, the member has to end up equal to zero.
4632 2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
4634 * include/bits/stl_alloc.h: Cleanups.
4635 * include/ext/functional: Same.
4636 * include/ext/hash_map: Same.
4637 * include/ext/hash_set: Same.
4638 * include/ext/iterator: Same.
4639 * include/ext/memory: Same.
4640 * include/ext/numeric: Same.
4641 * include/ext/rb_tree: Same.
4642 * include/ext/ropeimpl.h: Same.
4643 * include/ext/slist: Same.
4644 * include/ext/stdio_filebuf.h: Same.
4645 * include/ext/stdio_sync_filebuf.h: Same.
4646 * include/ext/stl_rope.h: Move to...
4647 * include/ext/rope: ...here.
4648 * include/ext/stl_hash_fun.h: Move to...
4649 * include/ext/hash_fun.h: ...here.
4650 * include/ext/stl_hashtable.h: Move to...
4651 * include/ext/hashtable.h: ...here.
4652 * include/backward/hashtable.h: Reflect new names.
4653 * include/Makefile.am: Same.
4654 * include/Makefile.in: Regenerated.
4656 2003-06-05 Benjamin Kosnik <bkoz@redhat.com>
4659 * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
4660 * include/bits/stl_algobase.h: Tweak.
4661 * include/std/std_fstream.h: Move _M_buf_size to...
4662 * include/std/std_streambuf.h: ...here. Modify.
4663 * include/bits/streambuf.tcc: Same.
4664 * testsuite/testsuite_hooks.h: Tweak.
4665 * testsuite/testsuite_io.h (constraint_filebuf): New.
4666 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
4667 * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
4668 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
4669 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
4670 * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
4671 * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
4672 * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
4673 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
4674 * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
4675 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
4676 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
4677 * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
4678 * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
4679 * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
4680 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
4681 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
4682 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
4683 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
4684 * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
4685 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
4686 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
4687 * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
4688 * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
4689 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
4690 * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
4691 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
4692 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
4693 * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
4694 * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
4695 * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
4696 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
4697 * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
4698 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
4699 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
4700 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
4701 * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
4702 * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
4703 * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
4704 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
4705 * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
4706 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
4707 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
4708 * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
4709 * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
4710 * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
4711 * testsuite/data/sgetc.txt: New.
4712 * testsuite/data/sgetn.txt: New.
4714 2003-06-05 Paolo Carlini <pcarlini@unitus.it>
4717 * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
4718 Deal with width() smaller than zero.
4719 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
4720 operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
4721 _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
4722 char*), operator<<(basic_ostream<char, _Traits>&, const char*),
4723 operator<<(basic_ostream, const basic_string&)): Likewise.
4725 * testsuite/27_io/basic_istream/extractors_character/char/
4726 (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
4727 * testsuite/27_io/basic_ostream/inserters_character/char/
4728 (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
4729 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
4730 (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
4732 2003-06-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4734 * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
4735 .gch compilation works.
4736 * aclocal.m4, configure: Regenerate.
4737 * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
4738 initialize PCHFLAGS.
4740 2003-06-04 Paolo Carlini <pcarlini@unitus.it>
4742 * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
4743 erase(iterator), erase(iterator, iterator), c_str,
4744 compare(const basic_string&)): Constify various variables.
4745 * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
4746 const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
4747 _S_create, resize, _M_replace, _M_replace_safe,
4748 append(const basic_string&), append(const basic_string&, size_type,
4749 size_type), append(const _CharT*, size_type), append(size_type,
4750 _CharT), operator+(const _CharT*, const basic_string&),
4751 operator+(_CharT, const basic_string&), replace(iterator, iterator,
4752 size_type, _CharT), find(const _CharT*, size_type, size_type),
4753 find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
4754 rfind(_CharT, size_type), compare(size_type, size_type,
4755 const basic_string&), compare(size_type, size_type,
4756 const basic_string&, size_type, size_type), compare(const _CharT*),
4757 compare(size_type, size_type, const _CharT*), compare(size_type,
4758 size_type, const _CharT*, size_type)): Likewise.
4760 2003-06-03 Benjamin Kosnik <bkoz@redhat.com>
4762 * include/bits/fstream.tcc (pbackfail): Make a rarely taken
4763 'if' branch less obscure.
4765 2003-06-02 Andrew Pinski <pinskia@physics.uc.edu>
4768 * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
4770 * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
4771 (__atomic_add): likewise.
4773 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4775 * include/bits/sstream.tcc (pbackfail): Minor clean up and
4776 reformatting, consistent with basic_filebuf::pbackfail.
4778 2003-06-02 Richard Kreckel <Richard.Kreckel@GiNaC.DE>
4781 * config/cpu/mips/atomicity.h: Change __attribute__ ((unused)) to
4782 __attribute__ ((__unused__)).
4783 * config/os/aix/atomicity.h: Likewise.
4785 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4788 * include/bits/fstream.tcc (pbackfail): If the pback buffer
4789 is already active don't try to store in it a second char.
4790 * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
4792 * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
4794 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4796 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
4799 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4801 * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
4802 instead of unnecessarily taking the address of _M_pback.
4803 (xsgetn): Simplify slightly for a single char pback buffer.
4805 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4807 * include/bits/sstream.tcc (seekoff): Remove four unnecessary
4808 variables and two 'if', clean up.
4810 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4812 * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
4813 not _M_out_end, since the former actually points to the string
4814 end (vs buffer end).
4815 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
4817 2003-05-30 Phil Edwards <pme@gcc.gnu.org>
4819 * docs/doxygen/filter: New file.
4820 * docs/doxygen/filter.sed: New file.
4821 * docs/doxygen/run_doxygen: Add g flag to sed substitutions. Duh.
4822 * docs/doxygen/user.cfg.in (INPUT_FILTER): Point to new filter.
4823 * docs/html/documentation.html: Fix links to doxygen pages.
4825 2003-05-30 Paolo Carlini <pcarlini@unitus.it>
4827 * include/bits/fstream.tcc (_M_convert_to_external): Don't
4828 check for __ilen > 0.
4830 2003-05-29 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
4833 * include/bits/stl_iterator.h (class __normal_iterator):
4834 Don't inherit from iterator, add missing typedefs.
4836 2003-05-29 Paolo Carlini <pcarlini@unitus.it>
4838 * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
4839 * testsuite/24_iterators/reverse_iterator/1.cc: New.
4840 * testsuite/24_iterators/reverse_iterator/2.cc: New.
4841 * testsuite/24_iterators/reverse_iterator/3.cc: New, from
4844 2003-05-27 Steve Ellcey <sje@cup.hp.com>
4846 * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
4848 * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
4849 _LIBUNWIND_STD_ABI is set.
4851 2003-05-26 Brendan Kehoe <brendan@zen.org>
4853 * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
4854 make sure the number of digits required after the decimal-point
4855 (if any) is exactly the value returned by frac_digits().
4856 * testsuite/22_locale/money_get/get/char/9.cc: New.
4857 * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
4859 2003-05-27 Jonathan Wakely <redi@gcc.gnu.org>
4861 * include/std/std_istream.h, include/std/std_ostream.h: Typo in
4864 2003-05-26 Benjamin Kosnik <bkoz@redhat.com>
4867 * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
4868 (_M_pback): No array necessary.
4869 * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
4870 unbuffered case, coalesec into ...
4871 (basic_filebuf::overflow): ...this.
4872 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
4873 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
4875 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
4877 * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
4878 libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
4879 libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
4880 libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
4881 libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
4882 libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
4883 libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
4884 libsupc++/eh_unex_handler.cc, libsupc++/exception,
4885 libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
4886 libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
4887 libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
4888 libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
4889 Replace "GNU CC" with "GCC".
4891 * include/backward/new.h: Replace "GNU CC" with "GCC".
4893 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
4896 * configure.in: Switch target to host, don't assume newlib.
4897 (target_alias): Remove.
4898 * configure: Regenerate.
4899 * acinclude.m4: Same.
4900 * aclocal.m4: Regenerate.
4901 * configure.target: Same. Rename to...
4902 * configure.host: This.
4904 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
4906 * include/std/std_fstream.h (_S_pback_size): Remove definition.
4907 (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
4909 * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
4910 * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
4911 of _S_pback_size for systems with no COMDAT or weak support.
4912 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
4913 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
4914 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
4915 * testsuite/27_io/basic_fstream/3.cc: Likewise.
4916 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
4917 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
4918 * testsuite/27_io/basic_ofstream/3.cc: Likewise.
4919 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
4920 * testsuite/27_io/basic_streambuf/3.cc: Likewise.
4922 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
4924 * include/bits/fstream.tcc (_M_underflow): Simplify:
4925 !__testout implies _M_filepos == _M_in_end, therefore
4926 the first _M_file.seekoff call is never issued.
4928 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
4930 * configure.in: Sort cross table.
4931 * configure: Regenerate.
4933 2003-05-22 Brad Spencer <spencer@infointeractive.com>
4936 * configure.in: Add Solaris cross bits.
4938 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4940 * libstdc++-v3/config/os/mingw32/os_defines.h
4941 (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
4942 (NOMINMAX): Define. Update copyright year.
4944 2003-05-21 Paolo Carlini <pcarlini@unitus.it>
4946 * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
4948 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
4950 * docs/html/faq/index.html: Fix typo.
4951 * docs/html/faq/index.txt: Regenerate.
4953 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
4955 * docs/html/test.html: Fix markup.
4957 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4959 * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
4961 Update copyright year.
4963 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
4965 * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
4967 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
4969 * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
4970 further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
4972 2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4974 * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
4975 Cast via void* to avoid -Wcast-align warnings.
4976 (__default_alloc_template::_S_refill): Likewise.
4978 2003-05-20 Benjamin Kosnik <bkoz@redhat.com>
4980 * testsuite/README: Move to...
4981 * docs/html/test.html: ...here. Add documentation.
4982 * docs/html/install.html: Move testing bits out..
4983 * docs/html/documentation.html: Add separate testing link.
4984 * testsuite/performance: Add.
4985 * testsuite/performance/allocator.cc: New.
4986 * testsuite/performance/complex_norm.cc: New.
4987 * testsuite/performance/cout_insert_int.cc: New.
4988 * testsuite/performance/fstream_seek_write.cc: New.
4989 * testsuite/performance/ifstream_getline.cc: New.
4990 * testsuite/performance/map_create_fill.cc: New.
4991 * testsuite/performance/ofstream_insert_float.cc: New.
4992 * testsuite/performance/ofstream_insert_int.cc: New.
4993 * testsuite/performance/string_append.cc: New.
4994 * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
4997 2003-05-20 Gabriel Dos Reis <gdr@integrable-solutions.net>
5000 * include/std/std_complex.h (pow): Tidy.
5002 2003-05-19 Paolo Carlini <pcarlini@unitus.it>
5004 * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
5005 that upon filebuf::close() 27.8.1.1,3 is enforced.
5007 2003-05-15 Loren J. Rittle <ljrittle@acm.org>
5009 * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
5011 2003-05-15 Paolo Carlini <pcarlini@unitus.it>
5012 Nathan Myers <ncm@cantrip.org>
5014 * include/bits/fstream.tcc (_M_overflow): Rewrote to call
5015 _M_convert_to_external only once (_M_buf_size is now the size of
5016 the put area + 1 for the overflow char of a full area); call
5017 _M_set_buffer instead of _M_set_indeterminate.
5018 (setbuf): Don't accept a buffer smaller than 2 chars.
5019 (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
5020 instead of _M_set_determinate.
5021 (open): Call _M_set_buffer, instead of _M_set_indeterminate.
5022 (seekoff): Likewise.
5023 * include/ext/stdio_filebuf.h (stdio_filebuf(int,
5024 std::ios_base::openmode, bool, size_t),
5025 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
5027 * include/std/std_fstream.h (_M_set_indeterminate): Remove.
5028 (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
5030 * include/std/std_streambuf.h: Tweak _M_out_lim comment.
5031 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
5032 into account that, for _M_buf_size == BUFSIZ == 8192, the size of
5033 the put area is now BUFSIZ - 1.
5034 * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
5035 that now the smallest _M_buf_size is 2 (still fails, for the same
5038 2003-05-14 Loren J. Rittle <ljrittle@acm.org>
5040 * testsuite/thread/pthread4.cc: Tweak test.
5042 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
5044 * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
5045 excess errors dg marker, use dg-errors instead.
5046 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
5047 * testsuite/20_util/auto_ptr_neg.cc: Same.
5049 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
5051 * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
5053 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
5054 Initialize _M_codecvt.
5055 (basic_filebuf::imbue): Same.
5056 (basic_filebuf::showmanyc): Use it.
5057 (basic_filebuf::underflow): Use it.
5058 (basic_filebuf::_M_convert_to_external): Use it.
5059 (basic_filebuf::seekoff): Use it.
5060 (basic_filebuf::imbue): Use it, tweaks.
5061 * include/bits/localefwd.h (__check_facet): New.
5062 * include/bits/locale_classes.h: Tweaks.
5063 * include/bits/locale_facets.tcc: Tweaks.
5064 * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
5065 _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
5066 _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
5067 * include/bits/basic_ios.tcc: Same.
5068 * include/bits/istream.tcc: Same.
5069 * include/bits/ostream.tcc: Same.
5070 * include/std/std_streambuf.h: Same.
5071 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
5072 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
5073 * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
5074 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
5075 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
5076 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
5078 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
5080 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
5081 unnecessary includes and unused string literals.
5082 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
5083 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
5084 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
5085 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
5087 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
5089 * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
5091 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
5093 * include/std/std_fstream.h (_M_convert_to_external): Change
5094 to return bool, take two less streamsize parameters.
5095 * include/bits/fstream.tcc (_M_convert_to_external): Tweak
5096 consistently definition.
5097 (_M_overflow): Adjust call points.
5099 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
5101 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
5103 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
5105 * testsuite/Makefile.am: Properly quote /both/ LD_RUN_PATHs.
5106 * testsuite/Makefile.in: Regenerate.
5108 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
5110 * testsuite/Makefile.am: Properly quote LD_RUN_PATH.
5111 * testsuite/Makefile.in: Regenerate.
5113 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
5116 * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
5117 (acos): Handle integer argument.
5136 * include/bits/cpp_type_traits.h (__are_same<>): New traits.
5137 (__enable_if): Likewise.
5138 * testsuite/26_numerics/cmath/overloads.C: New test.
5140 2003-05-10 Petur Runolfsson <peturr02@ru.is>
5145 * include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
5146 implementation, based on old wchar_t specialization, add support
5147 for codecvt::in() return value of codecvt_base::noconv, remove
5148 _M_file.sys_ungetc() call.
5149 * include/std/std_fstream.h (basic_file::underflow,
5150 basic_file::uflow, basic_file::_M_underflow): Remove
5151 specialization declarations, call _M_underflow from generic versions
5152 of underflow and uflow.
5153 * src/fstream.cc (basic_file::underflow, basic_file::uflow,
5154 basic_file::_M_underflow): Remove specializations.
5155 * src/Makefile.am (sources): Remove fstream.cc.
5156 * src/Makefile.in: Regenerated.
5157 * testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
5158 * testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
5159 * testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
5160 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
5162 2003-05-10 Benjamin Kosnik <bkoz@redhat.com>
5164 * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
5166 * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
5168 (__basic_file::xsputn): Same.
5169 (__basic_file::seekoff): Same.
5170 (__basic_file::seekpos): Same.
5171 (__basic_file::showmanyc): Same.
5172 * config/io/basic_file_stdio.cc: Same.
5173 * include/std/std_fstream.h: Same.
5174 * include/bits/fstream.tcc: Same.
5175 * src/fstream.cc: Same.
5176 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
5178 2003-05-10 Petur Runolfsson <peturr02@ru.is>
5183 * include/ext/stdio_sync_filebuf.h: New file.
5184 (basic_stdiobuf): New.
5185 * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
5186 * include/Makefile.in: Regenerate.
5187 * include/bits/ios_base.h (Init::_S_create_buffers,
5188 Init::_S_destroy_buffers): Remove declarations.
5189 * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
5190 buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define.
5191 * src/ios.cc (Init::_S_create_buffers,
5192 Init::_S_destroy_buffers): Remove.
5193 (Init::Init): Create and use syncronized buffers.
5194 (ios_base::sync_with_stdio): Destroy syncronized buffers,
5195 create and install unsyncronized buffers.
5196 * testsuite/27_io/objects/char/10.cc: New test.
5197 * testsuite/27_io/objects/char/9.cc: New test.
5198 * testsuite/27_io/objects/char/9661-1.cc: New test.
5199 * testsuite/27_io/objects/char/9661-2_xin.cc: New test.
5200 * testsuite/27_io/objects/char/9661-2_xin.in: New.
5201 * testsuite/27_io/objects/wchar_t/1.cc: New test.
5202 * testsuite/27_io/objects/wchar_t/10.cc: New test.
5203 * testsuite/27_io/objects/wchar_t/2.cc: New test.
5204 * testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test.
5205 * testsuite/27_io/objects/wchar_t/2523-1_xin.in: New.
5206 * testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test.
5207 * testsuite/27_io/objects/wchar_t/2523-2_xin.in: New.
5208 * testsuite/27_io/objects/wchar_t/3045.cc: New test.
5209 * testsuite/27_io/objects/wchar_t/3647.cc: New test.
5210 * testsuite/27_io/objects/wchar_t/3_xin.cc: New test.
5211 * testsuite/27_io/objects/wchar_t/3_xin.in: New.
5212 * testsuite/27_io/objects/wchar_t/4_xin.cc: New test.
5213 * testsuite/27_io/objects/wchar_t/4_xin.in: New.
5214 * testsuite/27_io/objects/wchar_t/5.cc: New test.
5215 * testsuite/27_io/objects/wchar_t/5268.cc: New test.
5216 * testsuite/27_io/objects/wchar_t/5280_xin.cc: New test.
5217 * testsuite/27_io/objects/wchar_t/5280_xin.in: New.
5218 * testsuite/27_io/objects/wchar_t/6.cc: New test.
5219 * testsuite/27_io/objects/wchar_t/6548_xin.cc: New test.
5220 * testsuite/27_io/objects/wchar_t/6548_xin.in: New.
5221 * testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test.
5222 * testsuite/27_io/objects/wchar_t/6648-1_xin.in: New.
5223 * testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test.
5224 * testsuite/27_io/objects/wchar_t/6648-2_xin.in: New.
5225 * testsuite/27_io/objects/wchar_t/7.cc: New test.
5226 * testsuite/27_io/objects/wchar_t/7744_xin.cc: New test.
5227 * testsuite/27_io/objects/wchar_t/7744_xin.in: New.
5228 * testsuite/27_io/objects/wchar_t/8.cc: New test.
5229 * testsuite/27_io/objects/wchar_t/9_xin.cc: New test.
5230 * testsuite/27_io/objects/wchar_t/9_xin.in: New.
5231 * testsuite/27_io/objects/wchar_t/9520.cc: New test.
5232 * testsuite/27_io/objects/wchar_t/9661-1.cc: New test.
5233 * testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test.
5234 * testsuite/27_io/objects/wchar_t/9661-2_xin.in: New.
5235 * testsuite/27_io/objects/wchar_t/9662.cc: New test.
5236 * testsuite/ext/stdiobuf_char.cc: New test.
5237 * testsuite/ext/stdiobuf_wchar_t.cc: New test.
5239 2003-05-10 Paolo Carlini <pcarlini@unitus.it>
5241 * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
5242 unnecessary includes and unused string literals.
5243 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
5245 2003-05-08 Paolo Carlini <pcarlini@unitus.it>
5247 * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
5249 2003-05-07 Richard Henderson <rth@redhat.com>
5252 * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
5253 (__cxa_end_catch): Likewise.
5254 * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise. Use
5255 _Unwind_Resume_or_Rethrow.
5256 * libsupc++/eh_personality.cc (empty_exception_spec): New.
5257 (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
5258 for _UA_FORCE_UNWIND. Honor empty filter spec for foreign
5259 exceptions. Don't push terminate/unexpected to cxa functions.
5260 (__cxa_call_unexpected): Remove foreign exception fixmes.
5262 2003-05-07 Benjamin Kosnik <bkoz@redhat.com>
5264 * testsuite/27_io/ios_base/cons: New.
5265 * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
5266 * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
5268 2003-05-07 Paolo Carlini <pcarlini@unitus.it>
5270 * include/std/std_fstream.h (_M_is_indeterminate): Remove.
5272 (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
5273 there is no buffer or __testget == !__testinit.
5276 (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
5277 automatically sets, if appropriate, _M_out_cur == _M_in_cur.
5279 * include/std/std_fstream.h (_M_destroy_pback): Don't set
5280 unnecessarily _M_pback_cur_save and _M_pback_end_save.
5282 * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
5284 * include/std/std_sstream.h (_M_sync): Minor tweak.
5286 * include/bits/fstream.tcc (close): No need to call
5287 _M_destroy_pback, setting _M_pback_init to false suffices
5290 2003-05-06 Benjamin Kosnik <bkoz@redhat.com>
5292 * include/bits/stl_algo.h: Enums as _S_.
5293 * include/bits/stl_tree.h: Same.
5294 * include/bits/stl_bvector.h: Same.
5295 * include/bits/ios_base.h: Same.
5296 * include/bits/stl_alloc.h: Same.
5297 * include/ext/stl_hashtable.h: Same.
5298 * src/ios.cc: And here.
5300 * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
5301 * include/bits/sstream.tcc: Same.
5303 * include/bits/basic_ios.h: Correct spacing for '< ctype'.
5305 * include/bits/locale_facets.tcc: Replace __temp to __tmp.
5307 * include/bits/locale_facets.h (__num_base): Remove protected.
5308 Use _S_[io]* names for enumerations.
5309 (_S_format_int): Remove.
5310 * include/bits/locale_facets.tcc: Same.
5311 * src/locale.cc: Same.
5313 * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
5315 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
5317 * docs/html/faq/index.html (3.10): Add note about mips atomicity.h.
5318 * docs/html/faq/index.txt: Regenerated.
5320 2003-05-06 Michael Ritzert <Ritzert@t-online.de>
5321 Matt Kraai <kraai@alumni.cmu.edu>
5323 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
5326 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
5328 * configure.target (mips*): Use the generic atomicity.h by default.
5330 2003-05-05 Loren J. Rittle <ljrittle@acm.org>
5331 (Inspired by an alternate patch from Danny Smith.)
5333 * include/bits/stl_threads.h (_Atomic_swap): Kill it...
5334 (_Swap_lock_struct<>): ...and the horse it rode in on.
5335 * src/globals.cc (_Swap_lock_struct<>): Likewise.
5336 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
5337 member to support...
5338 * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
5339 visibility rules related to POSIX threads.
5340 * testsuite/thread/pthread7-rope.cc: New test.
5342 2003-05-04 Paolo Carlini <pcarlini@unitus.it>
5344 * testsuite/21_strings/basic_string/find/char/3.cc: New
5345 file, testing basic_string<char>::find_first_not_of.
5346 * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
5347 Likewise for basic_string<wchar_t>.
5349 2003-05-03 Loren J. Rittle <ljrittle@acm.org>
5351 * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
5353 2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
5355 * include/Makefile.am (CLEANFILES): Remove PCH files in target
5357 * include/Makefile.in: Regenerate.
5359 2003-05-02 Paolo Carlini <pcarlini@unitus.it>
5361 * include/std/std_sstream.h (str()): Tidy.
5363 2003-05-02 Nathan Myers <ncm@cantrip.org>
5364 Paolo Carlini <pcarlini@unitus.it>
5366 * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
5368 2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
5370 * include/bits/basic_string.h (swap): Remove redundant template
5371 parameters from declaration of non-template member function.
5373 2003-05-01 Phil Edwards <pme@gcc.gnu.org>
5375 * acconfig.h (_GLIBCPP_USE_NLS): New symbol.
5376 * configure.in: Move libintl.h header test...
5377 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): ...to here. Gather all
5378 the NLS-related test results into one symbol.
5379 * src/functexcept.cc: Use it here.
5380 * aclocal.m4, config.h.in, configure: Regenerated.
5382 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
5384 * include/bits/sstream.tcc (overflow): Instead of calling
5385 str(), then _M_string.reserve, thus copying the contents
5386 of the current buffer two times, just copy the latter in
5387 a temporary, then use the 'swap trick'.
5389 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
5391 * include/std/std_sstream.h (str()): Revert the best of the
5392 previous 'improvement', incorrect due to the COW nature of
5393 v3 basic_string; simplify.
5395 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
5397 * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
5398 type of __avail to ptrdiff_t to avoid signed-unsigned warning.
5400 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
5402 * testsuite/abi_check.cc (check_version): Update known versions.
5403 Check added symbols for version_name != base version. Add missing
5404 symbols to incompatible list.
5406 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
5408 * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
5409 * aclocal.m4: Regenerated.
5410 * configure: Regenerated.
5412 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
5414 * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
5415 Const-ify some variables.
5416 (basic_streambuf::xsputn): Likewise; change the type of some
5417 variables to size_t.
5418 (__copy_streambufs): Change some variables to size_t.
5420 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
5422 * include/std/std_sstream.h (str()): Avoid constructing
5423 a basic_string temporary not only when it would turn out
5424 to be zero-sized but also when identical to the current
5427 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
5429 * include/ext/stdio_filebuf.h
5430 (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
5431 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
5432 Shorten a bit (-10 lines) by factoring out some code.
5434 2003-04-30 Phil Edwards <pme@gcc.gnu.org>
5436 * acinclude.m4: Add bit missing from previous patch.
5437 * aclocal.m4, configure: Regenerated.
5439 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
5441 * docs/doxygen/mainpage.html: Bring up to date.
5442 * docs/doxygen/run_doxygen: Cosmetic tweaks. Work around a bug
5444 * docs/doxygen/user.cfg.in: Scanning the precompiled headers
5445 breaks everything. Don't scan them.
5446 * docs/html/documentation.html: Point to "Write after approval"
5449 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
5451 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Search for gettext outside
5452 of libc if message translations are being used. Fix info text in
5453 xieee_1003.1-2001 case.
5454 * aclocal.m4, configure: Regenerate.
5456 2003-04-29 Joel Sherrill <joel.sherrill@OARcorp.com>
5457 Loren J. Rittle <ljrittle@acm.org>
5458 Martin v. Loewis <martin@v.loewis.de>
5460 * config/cpu/i386/atomicity.h: New file.
5462 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
5464 * include/bits/fstream.tcc (open): Change to single return.
5466 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
5468 * include/std/std_sstream.h (underflow): Change to single return.
5470 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
5472 * include/std/std_streambuf.h (_M_buf): is currently
5473 used only for basic_filebuf, therefore move it there.
5474 (basic_streambuf(), ~basic_streambuf()): Adjust.
5475 * include/std/std_fstream.h (_M_buf): Moved here.
5476 * include/std/std_sstream.h (setbuf): Don't set _M_buf,
5477 is actually redundant for basic_stringbuf.
5478 (_M_really_sync): Likewise.
5479 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
5480 * include/bits/sstream.tcc (seekoff): Adjust.
5482 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
5484 * src/localename.cc: Standardize exception strings.
5485 * src/locale.cc: Same.
5487 * include/bits/basic_string.tcc: Same.
5488 * include/bits/basic_ios.tcc: Same.
5489 * include/std/std_bitset.h: Same.
5490 * include/ext/ropeimpl.h: Same.
5491 * include/bits/stl_vector.h: Same.
5492 * include/bits/stl_deque.h: Same.
5493 * include/bits/stl_bvector.h: Same.
5494 * config/locale/generic/c_locale.cc: Same.
5495 * config/locale/gnu/c_locale.cc: Same.
5496 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
5498 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
5500 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
5502 * include/std/std_streambuf.h (_M_buf_size): is currently
5503 used only for basic_filebuf, therefore move it there.
5504 (basic_streambuf(), ~basic_streambuf()): Adjust.
5505 * include/std/std_fstream.h (_M_buf_size): Moved here.
5506 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
5508 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
5510 * include/bits/streambuf.tcc (__copy_streambufs): Don't use
5511 _M_buf_size (synced input is now correctly dealt with
5512 elsewhere); when the output buffer is full don't fall back
5513 to a snextc-sputc loop, call overflow instead.
5515 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
5517 * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
5518 the innermost 'if' by factoring out some code.
5520 2003-04-28 Phil Edwards <pme@gcc.gnu.org>
5522 * configure.in: Test for libintl.h.
5523 * include/bits/c++config: Define __N for everybody.
5524 * include/bits/basic_string.h, include/bits/stl_bvector.h,
5525 include/bits/stl_deque.h, include/bits/stl_vector.h,
5526 include/std/std_bitset.h: Wrap all __throw* text with __N.
5527 * po/Makefile.am (pot): New rule, mostly working.
5528 * src/functexcept.cc: Call gettext on all __throw* arguments when
5529 -fexceptions is in effect.
5530 * po/Makefile.in, config.h.in, configure: Regenerate.
5532 2003-04-28 Petur Runolfsson <peturr02@ru.is>
5535 * include/bits/ios_base.h (Init::_S_ios_create,
5536 Init::_S_ios_destroy): Remove declarations.
5537 (Init::_S_create_buffers,
5538 Init::_S_destroy_buffers): Declare
5539 * src/ios.cc (Init::_S_ios_create): Remove
5540 (Init::_S_create_buffers): Create buffers and add to streams.
5541 (Init::_S_ios_destroy): Rename to...
5542 (Init::_S_destroy_buffers): this.
5543 (Init::Init): Only construct streams once.
5544 (Init::~Init): Flush streams, don't destroy them.
5545 (ios_base::sync_with_stdio): Don't destroy streams, only buffers.
5546 * testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test.
5547 * testsuite/27_io/objects/char/5.cc: New test.
5548 * testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior.
5549 * testsuite/27_io/objects/char/6.cc: New test.
5550 * testsuite/27_io/objects/char/7.cc: New test.
5552 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
5554 * testsuite/27_io/objects/char/8.cc: New test.
5556 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
5558 * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
5559 * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
5561 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
5563 * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
5564 _M_destroy_pback. _M_pback_create to
5565 _M_create_pback. _M_underflow_common to
5566 _M_underflow. _M_really_overflow to _M_overflow.
5567 * include/bits/fstream.tcc: Same.
5568 * src/fstream.cc: Same.
5569 * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
5570 _M_move_in_cur. _M_out_cur_move to _M_move_out_cur.
5571 * include/bits/streambuf.tcc: Same.
5572 * include/bits/fstream.tcc: Same.
5573 * include/bits/sstream.tcc: Same.
5575 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
5577 * include/bits/locale_classes.h (locale::_Impl): Change _M_names
5578 from fixed size array.
5579 (locale): Change _S_categories as well.
5581 * include/bits/locale_facets.tcc: Tweak.
5582 * config/locale/gnu/c_locale.cc: Assign _S_categories.
5583 * config/locale/generic/c_locale.cc: Same.
5584 * src/locale.cc: Tweak.
5585 * src/globals.cc: Change facet_name to name_vec, add names_c.
5586 * src/localename.cc: Use them.
5587 (locale::_Impl::~_Impl): Destroy _M_names.
5588 (locale::_Impl::_Impl): Create _M_names.
5590 2003-04-27 Andreas Schwab <schwab@suse.de>
5592 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
5593 (__enc_traits): Use __ibom and __ebom instead of ignoring them.
5595 2003-04-27 Nathan Myers <ncm@cantrip.org>
5597 Move some basic_string members out of line because
5598 they are too big to reasonably be inline.
5599 * include/bits/basic_string.h
5600 (assign(const basic_string&, size_type, size_type),
5601 assign(const _CharT*, size_type),
5602 insert(size_type, const basic_string&, size_type, size_type),
5603 insert(size_type, const _CharT*, size_type),
5604 replace(size_type, size_type, const _CharT*, size_type)):
5605 Move from here to...
5606 * include/bits/basic_string.tcc: ...here.
5608 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
5610 * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
5611 the innermost 'if' by factoring out some code.
5613 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
5615 * include/bits/streambuf.tcc (__copy_streambufs): Don't
5616 use in_avail(), simplify.
5618 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
5620 * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
5621 in basic_stringbuf it's unused.
5623 * include/std/std_sstream.h (underflow): consistently use
5624 _M_in_cur, not gptr().
5626 2003-04-25 Ranjit Mathew <rmathew@hotmail.com>
5627 Phil Edwards <pme@gcc.gnu.org>
5629 * testsuite_flags.in: Guard against the possibility
5630 of having "xgcc" as a part of a folder name in the
5631 path to the GCC build folder.
5632 * testsuite/Makefile.am: Likewise.
5633 * testsuite/Makefile.in: Regenerated.
5635 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
5638 * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
5639 exception specifications.
5640 (basic_filebuf::close): Same.
5641 (basic_filebuf::_M_pback_destroy): Same.
5642 (basic_filebuf::_M_destroy_internal_buffer): Same.
5643 (basic_filebuf): Remove __res_type typedef.
5644 * src/fstream.cc: Same.
5645 * include/bits/fstream.tcc
5646 (basic_filebuf::_M_convert_to_external): Simplify.
5647 (basic_filebuf::seekoff): Use has_facet before use_facet.
5648 (basic_filebuf::close): Add exception specification of throw().
5649 * testsuite/27_io/basic_filebuf/cons: New.
5650 * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
5651 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
5652 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
5653 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
5655 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
5657 * include/bits/locale_classes.h
5658 (locale::_S_extra_categories_size): Remove.
5659 * src/locale.cc: Remove _S_extra_categories_size.
5660 * src/localename.cc: Same.
5661 * config/locale/gnu/c_locale.cc: Same.
5662 * config/locale/generic/c_locale.cc: Same.
5664 2003-04-24 Richard Sandiford <rsandifo@redhat.com>
5666 * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
5668 2003-04-24 Phil Edwards <pme@gcc.gnu.org>
5670 * docs/html/17_intro/howto.html: Update some links.
5671 * docs/html/18_support/howto.html: Link doxygen numeric_limits notes.
5672 * docs/html/27_io/howto.html: Link doxygen stdio_filebuf notes.
5673 * docs/html/ext/howto.html: Link to demangler notes and API.
5674 * docs/html/faq/index.html: Remove trailing whitespace.
5675 (1.4, 2.4, 3.8, 4.1): Bring up to date.
5676 (5.6): Change to a bulleted list.
5678 * docs/html/faq/index.txt, docs/html/documentation.html,
5679 docs/html/17_intro/porting.html: Regenerate.
5681 2003-04-23 Paolo Carlini <pcarlini@unitus.it>
5683 * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
5684 belongs to basic_filebuf.
5685 * testsuite/27_io/basic_fstream/3.cc: Likewise.
5686 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
5687 * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
5688 instantiation (now belongs to basic_filebuf).
5689 * testsuite/27_io/basic_iostream/3.cc: Likewise.
5690 * testsuite/27_io/basic_istream/3.cc: Likewise.
5691 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
5692 _S_pback_size now belongs to basic_filebuf.
5693 * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
5694 instantiation (now belongs to basic_filebuf).
5695 * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
5696 belongs to basic_filebuf.
5697 * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
5698 instantiation (now belongs to basic_filebuf).
5699 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
5700 _S_pback_size now belongs to basic_filebuf.
5701 * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
5702 instantiation (now belongs to basic_filebuf).
5703 * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
5705 * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
5706 instantiation (now belongs to basic_filebuf).
5707 * testsuite/27_io/basic_stringstream/3.cc: Likewise.
5709 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
5711 * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
5712 * configure: Regenerated.
5714 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
5716 * config/locale/generic/c_locale.h (__convert_from_v): Use
5719 2003-04-23 Phil Edwards <pme@gcc.gnu.org>
5721 * docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial
5722 implementation only.
5723 * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
5724 Comment and change to comply with DR 60 and the effect on gcount().
5725 * include/std/std_istream.h: Update comments.
5726 * testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add
5727 comments about reasons for tests. Test sync() against gcount().
5728 * testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test
5729 for effect on gcount().
5730 * testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test
5731 for effect on gcount().
5733 2003-04-22 Loren J. Rittle <ljrittle@acm.org>
5735 * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
5738 2003-04-22 Paolo Carlini <pcarlini@unitus.it>
5740 * include/std/std_streambuf.h (_S_pback_size, _M_pback,
5741 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
5742 _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
5743 (basic_streambuf::basic_streambuf()): Adjust.
5744 * include/std/std_fstream.h (_S_pback_size, _M_pback,
5745 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
5746 _M_pback_create(), _M_pback_destroy()): Moved here
5747 from basic_streambuf.
5748 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
5750 (basic_filebuf::_S_pback_size): Add declaration.
5751 * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
5754 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
5756 Consistently use _M_in_beg instead of eback(), _M_in_cur
5757 instead of gptr(), and so on.
5758 * include/bits/fstream.tcc (pbackfail, imbue): Here.
5759 * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
5760 * include/bits/streambuf.tcc (sbumpc, sputbackc,
5761 __copy_streambufs): Ditto.
5762 * include/std/std_streambuf.h (sgetc): Ditto.
5764 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
5766 * include/bits/sstream.tcc (pbackfail, overflow):
5769 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
5771 * include/std/std_streambuf.h (uflow()): It's used only by
5772 basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
5773 therefore do not consider the _M_buf_unified == true case.
5775 * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
5777 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
5779 * docs/html/ext/howto.html ('LWG Issues'):
5780 Add issues 19, 90, 171, 231, 271.
5782 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
5784 * include/bits/sstream.tcc (pbackfail): Remove redundant
5785 NULL pointer check from test involving _M_in_*.
5786 (overflow, seekoff, seekpos): Const qualify bool variables.
5787 * include/std/std_sstream.h (underflow): Remove redundant
5788 NULL pointer check from test involving _M_in_*.
5789 (_M_really_sync): Const qualify bool variables.
5790 * src/fstream.cc (_M_underflow_common): Remove redundant
5791 NULL pointer check from test involving _M_in_*, const qualify
5794 * include/std/std_streambuf.h (sgetc): Remove redundant
5797 2003-04-18 Paolo Carlini <pcarlini@unitus.it>
5799 According to 5.9 para 2 (second bullet) for pointers p, q
5800 pointing to the same type, with p == 0 and q == 0, (p < q)
5802 * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
5803 seekoff): Remove redundant NULL pointer checks from tests
5804 involving _M_out_* and _M_in_*, const qualify bool variables.
5805 (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
5806 qualify bool variables.
5807 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
5808 Remove redundant NULL pointer checks from tests involving
5809 _M_out_* and _M_in_*, const qualify bool variables.
5810 * include/std/std_fstream.h (sync): Likewise.
5811 (_M_is_indeterminate): Const qualify bool variables.
5812 * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
5813 NULL pointer checks from tests involving _M_out_* and _M_in_*,
5814 const qualify bool variables.
5815 (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
5818 2003-04-18 Loren J. Rittle <ljrittle@acm.org>
5820 * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
5821 C99 FP macros, if actually captured.
5823 * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
5824 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
5825 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
5826 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
5827 * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
5829 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
5830 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
5831 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
5832 * include/c_std/std_cstdlib.h: Use new macros.
5833 * include/c_std/std_cstdio.h: Use new macros.
5834 * include/c_std/std_cwchar.h: Use new macros.
5836 2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
5839 * include/bits/ostream.tcc: Catch all exceptions for formatted
5840 output, instead of std::exception and derivatives.
5841 * include/bits/istream.tcc: Same.
5842 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
5843 * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
5844 * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
5845 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
5846 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
5847 * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
5850 2003-04-17 Phil Edwards <pme@gcc.gnu.org>
5852 * include/bits/c++config: Minor cosmetic tweaks.
5854 2003-04-17 Loren J. Rittle <ljrittle@acm.org>
5856 * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
5857 * include/Makefile.am (pch_input): Find in ${target_builddir}.
5858 (pch_output): Rename to...
5859 (pch_output_builddir): ..this. Find in ${target_builddir}.
5860 (pch_source): Tweak.
5861 (pch_build): Key off a built file.
5862 (pch_output rule): Rename to...
5863 (pch_input rule): ...this. Produce ${pch_output_builddir}
5864 instead of ${pch_output}.
5865 (install-pch rule): Install ${pch_output_builddir}.
5866 * include/Makefile.in: Regenerated.
5868 2003-04-17 Paolo Carlini <pcarlini@unitus.it>
5870 * include/std/std_streambuf.h (setp): _M_out_lim, being
5871 the end limit of used put area, is set equal to _M_out_beg.
5873 2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
5875 * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
5876 * aclocal.m4: Regenerated.
5877 * configure.in: Remove old demangler bits.
5879 * configure: Regenerate.
5880 * config.h.in: Regenerate.
5881 * include/Makefile.am (allstamps): Now allstamped.
5882 (allcreated): Define this.
5883 (all-local): Use 'em.
5884 Conditionally define pch_build, pch_install based on
5886 (${pch_output}): New rule.
5887 (install-pch): New rule.
5888 (install-headers): New rule.
5889 (install-data-local): Install headers and conditionally pch.
5890 * include/Makefile.in: Regenerate.
5891 * testsuite_flags.in (--build-cxx): Use pch file.
5893 2003-04-16 Jonathan Wakely <redi@gcc.gnu.org>
5895 * docs/html/ext/sgiexts.html: Fix path to stylesheet.
5897 2003-04-15 Benjamin Kosnik <bkoz at redhat dot com>
5898 Paolo Carlini <pcarlini at unitus dot it>
5901 * docs/html/27_io/howto.html
5902 ('The buffering is screwing up my program!'): Explain that
5903 opening counts as an I/O operation.
5905 2003-04-15 Andreas Tobler <a.tobler@schweiz.ch>
5907 * testsuite/thread/pthread1.cc: Enable for darwin test.
5908 * testsuite/thread/pthread2.cc: Same.
5909 * testsuite/thread/pthread3.cc: Same.
5910 * testsuite/thread/pthread4.cc: Same.
5911 * testsuite/thread/pthread5.cc: Same.
5912 * testsuite/thread/pthread6.cc: Same.
5914 2003-04-15 Loren J. Rittle <ljrittle@acm.org>
5917 * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
5918 Populate it with multiple legal ways to obtain the C99 float
5919 transcendentals. Use them instead of direct global reference.
5920 (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
5921 * docs/html/17_intro/porting.texi
5922 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
5923 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
5924 (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
5925 * config/os/bsd/freebsd/os_defines.h
5926 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
5927 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
5928 * testsuite/26_numerics/c_math_dynamic.cc: New file.
5930 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
5931 Benjamin Kosnik <bkoz@redhat.com>
5933 * config/os/generic/ctype_inline.h: Fix.
5935 2003-04-14 Benjamin Kosnik <bkoz@redhat.com>
5937 * testsuite/testsuite_hooks.h
5938 (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
5939 Change to try_named_locale.
5940 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
5942 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
5944 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
5945 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
5946 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
5947 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
5948 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
5949 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
5950 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
5951 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
5952 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
5953 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
5954 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
5955 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
5956 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
5957 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
5958 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
5959 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
5960 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
5961 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
5962 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
5963 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
5964 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
5965 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
5966 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
5967 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
5968 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
5969 * testsuite/22_locale/collate/compare/char/1.cc: Same.
5970 * testsuite/22_locale/collate/compare/char/2.cc: Same.
5971 * testsuite/22_locale/collate/compare/char/3.cc: Same.
5972 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
5973 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
5974 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
5975 * testsuite/22_locale/collate/hash/char/2.cc: Same.
5976 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
5977 * testsuite/22_locale/collate/transform/char/2.cc: Same.
5978 * testsuite/22_locale/collate/transform/char/3.cc: Same.
5979 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
5980 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
5981 * testsuite/22_locale/collate_byname/1.cc: Same.
5982 * testsuite/22_locale/ctype/is/char/2.cc: Same.
5983 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
5984 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
5985 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
5986 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
5987 * testsuite/22_locale/facet/2.cc: Same.
5988 * testsuite/22_locale/locale/cons/2.cc: Same.
5989 * testsuite/22_locale/locale/cons/4.cc: Same.
5990 * testsuite/22_locale/locale/cons/5.cc: Same.
5991 * testsuite/22_locale/locale/cons/7.cc: Same.
5992 * testsuite/22_locale/locale/cons/7222-c.cc: Same.
5993 * testsuite/22_locale/locale/cons/7222-env.cc: Same.
5994 * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
5995 * testsuite/22_locale/messages/members/char/1.cc: Same.
5996 * testsuite/22_locale/messages/members/char/2.cc: Same.
5997 * testsuite/22_locale/messages/members/char/3.cc: Same.
5998 * testsuite/22_locale/messages_byname/1.cc: Same.
5999 * testsuite/22_locale/money_get/get/char/1.cc: Same.
6000 * testsuite/22_locale/money_get/get/char/2.cc: Same.
6001 * testsuite/22_locale/money_get/get/char/3.cc: Same.
6002 * testsuite/22_locale/money_get/get/char/4.cc: Same.
6003 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
6004 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
6005 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
6006 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
6007 * testsuite/22_locale/money_put/put/char/1.cc: Same.
6008 * testsuite/22_locale/money_put/put/char/2.cc: Same.
6009 * testsuite/22_locale/money_put/put/char/3.cc: Same.
6010 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
6011 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
6012 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
6013 * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
6014 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
6015 * testsuite/22_locale/moneypunct_byname/1.cc: Same.
6016 * testsuite/22_locale/num_get/get/char/1.cc: Same.
6017 * testsuite/22_locale/num_get/get/char/2.cc: Same.
6018 * testsuite/22_locale/num_get/get/char/3.cc: Same.
6019 * testsuite/22_locale/num_get/get/char/5.cc: Same.
6020 * testsuite/22_locale/num_get/get/char/6.cc: Same.
6021 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
6022 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
6023 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
6024 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
6025 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
6026 * testsuite/22_locale/num_put/put/char/1.cc: Same.
6027 * testsuite/22_locale/num_put/put/char/2.cc: Same.
6028 * testsuite/22_locale/num_put/put/char/3.cc: Same.
6029 * testsuite/22_locale/num_put/put/char/5.cc: Same.
6030 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
6031 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
6032 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
6033 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
6034 * testsuite/22_locale/numpunct/members/char/1.cc: Same.
6035 * testsuite/22_locale/numpunct/members/char/2.cc: Same.
6036 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
6037 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
6038 * testsuite/22_locale/numpunct_byname/1.cc: Same.
6039 * testsuite/22_locale/numpunct_byname/2.cc: Same.
6040 * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
6041 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
6042 * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
6043 * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
6044 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
6045 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
6046 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
6047 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
6048 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
6049 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
6050 * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
6051 * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
6052 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
6053 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
6054 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
6055 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
6056 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
6057 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
6058 * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
6059 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
6060 * testsuite/22_locale/time_put/put/char/1.cc: Same.
6061 * testsuite/22_locale/time_put/put/char/2.cc: Same.
6062 * testsuite/22_locale/time_put/put/char/3.cc: Same.
6063 * testsuite/22_locale/time_put/put/char/4.cc: Same.
6064 * testsuite/22_locale/time_put/put/char/5.cc: Same.
6065 * testsuite/22_locale/time_put/put/char/6.cc: Same.
6066 * testsuite/22_locale/time_put/put/char/7.cc: Same.
6067 * testsuite/22_locale/time_put/put/char/8.cc: Same.
6068 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
6069 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
6070 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
6071 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
6072 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
6073 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
6074 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
6075 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
6076 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
6077 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
6078 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
6079 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
6080 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
6082 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
6084 * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
6085 solaris includes, not generic.
6087 2003-04-14 Loren J. Rittle <ljrittle@acm.org>
6089 * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
6091 * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
6092 * include/bits/concept_check.h: Fix multi-line comment.
6093 * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
6094 when target is *-*-freebsd*.
6096 2003-04-14 Nathan Myers <ncm@cantrip.org>
6097 Paolo Carlini <pcarlini@unitus.it>
6099 PR libstdc++/9701 (in_avail())
6100 * include/std/std_streambuf.h (in_avail): Simplify, in_avail
6101 doesn't care if there is anything in some putback cell.
6102 * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
6104 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
6105 unused string literals.
6107 2003-04-14 Paolo Carlini <pcarlini@unitus.it>
6109 * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
6110 _M_out_end, _M_set_indeterminate() does it.
6112 2003-04-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6114 * os/hpux/ctype_inline.h: Replace with gnu-linux version.
6116 2003-04-12 David Edelsohn <edelsohn@gnu.org>
6118 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
6119 Change basic_streambuf instantiation to "unsigned char".
6120 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
6122 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
6124 Remove _M_buf_size_opt, use directly _M_buf_size instead.
6125 * include/bits/fstream.tcc
6126 (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
6127 references to _M_buf_size_opt.
6128 * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
6129 * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
6130 __bufsize to __in_avail and __size_opt to __buf_size.
6131 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
6132 * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
6133 * include/std/std_streambuf.h (~basic_streambuf(),
6134 basic_streambuf()): Likewise, remove _M_buf_size_opt member.
6135 * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
6136 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
6137 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
6138 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
6139 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
6140 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
6141 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
6142 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
6143 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
6144 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
6145 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
6146 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
6148 2003-04-12 Paolo Carlini <pcarlini at unitus dot it>
6150 * include/ext/stdio_filebuf.h
6151 (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
6152 stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
6153 _M_buf_size_opt == 0 only means "not to use an allocated buffer"
6154 since a stack-based buffer is used for small values of the size_t
6156 * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
6157 If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
6158 * testsuite/ext/stdio_filebuf_2.cc: New testfile.
6160 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
6163 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
6164 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
6166 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
6168 * testsuite/22_locale/locale/cons/3.cc: Split.
6169 * testsuite/22_locale/locale/cons/7222-c.cc: New.
6170 * testsuite/22_locale/locale/cons/7222-env.cc: New.
6171 Check before trying to create a locale from the environment.
6172 * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
6173 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
6176 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
6178 * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
6179 locale to construct this hybrid locale, not the global locale.
6181 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
6183 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
6184 instantiation for AIX.
6185 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
6186 * testsuite/25_algorithms/min_max.cc: Same.
6188 2003-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6190 * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
6191 twice. Always set _M_cfile to 0 when stream was open.
6193 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
6195 Reshuffle 27_io testsuite.
6196 * testsuite/27_io/filebuf.cc,
6197 filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
6198 filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
6199 filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
6200 filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
6201 ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
6202 ifstream_members.cc, instantiations.cc, ios.cc,
6203 ios_base_callbacks.cc, ios_base_members_static-1.tst,
6204 ios_base_members_static.cc, ios_base_storage.cc,
6205 ios_base_types.cc, ios_ctor.cc, ios_init.cc,
6206 ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
6207 iostream.cc, iostream_members.cc, istream.cc,
6208 istream_exception.cc, istream_extractor_char.cc,
6209 istream_extractor_other-1.tst, istream_extractor_other-1.txt,
6210 istream_extractor_other-2.tst, istream_extractor_other.cc,
6211 istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
6212 istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
6213 istream_sentry.cc, istream_unformatted-1.tst,
6214 istream_unformatted-1.txt, istream_unformatted.cc,
6215 istringstream.cc, istringstream_members.cc,
6216 narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
6217 ofstream_members.cc, ostream.cc, ostream_exception.cc,
6218 ostream_fail.cc, ostream_inserter_arith.cc,
6219 ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
6220 ostream_inserter_char.cc, ostream_inserter_other-1.tst,
6221 ostream_inserter_other-2.tst, ostream_inserter_other.cc,
6222 ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
6223 ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
6224 ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
6225 streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
6226 stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
6227 wide_stream_objects.cc, istream_extractor_arith/01.cc,
6228 istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
6229 istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
6230 istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
6231 istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
6232 istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
6234 * 27_io/basic_filebuf/1.cc: New.
6235 * 27_io/basic_filebuf/2.cc: New.
6236 * 27_io/basic_filebuf/3.cc: New.
6237 * 27_io/basic_filebuf/4.cc: New.
6238 * 27_io/basic_filebuf/close/char/1.cc: New.
6239 * 27_io/basic_filebuf/close/char/2.cc: New.
6240 * 27_io/basic_filebuf/close/char/3.cc: New.
6241 * 27_io/basic_filebuf/close/char/4879.cc: New.
6242 * 27_io/basic_filebuf/close/char/9964.cc: New.
6243 * 27_io/basic_filebuf/imbue/char/1.cc: New.
6244 * 27_io/basic_filebuf/imbue/char/9322.cc: New.
6245 * 27_io/basic_filebuf/in_avail/char/1.cc: New.
6246 * 27_io/basic_filebuf/is_open/char/1.cc: New.
6247 * 27_io/basic_filebuf/open/char/1.cc: New.
6248 * 27_io/basic_filebuf/open/char/2.cc: New.
6249 * 27_io/basic_filebuf/open/char/3.cc: New.
6250 * 27_io/basic_filebuf/open/char/9507.cc: New.
6251 * 27_io/basic_filebuf/overflow/char/1.cc: New.
6252 * 27_io/basic_filebuf/overflow/char/3599.cc: New.
6253 * 27_io/basic_filebuf/overflow/char/9169.cc: New.
6254 * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
6255 * 27_io/basic_filebuf/overflow/char/9988.cc: New.
6256 * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
6257 * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
6258 * 27_io/basic_filebuf/seekoff/char/1.cc: New.
6259 * 27_io/basic_filebuf/seekoff/char/2.cc: New.
6260 * 27_io/basic_filebuf/seekpos/char/1.cc: New.
6261 * 27_io/basic_filebuf/seekpos/char/2.cc: New.
6262 * 27_io/basic_filebuf/setbuf/char/1.cc: New.
6263 * 27_io/basic_filebuf/setbuf/char/2.cc: New.
6264 * 27_io/basic_filebuf/setbuf/char/3.cc: New.
6265 * 27_io/basic_filebuf/sgetc/char/1.cc: New.
6266 * 27_io/basic_filebuf/sgetn/char/1.cc: New.
6267 * 27_io/basic_filebuf/sgetn/char/2.cc: New.
6268 * 27_io/basic_filebuf/snextc/char/1.cc: New.
6269 * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
6270 * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
6271 * 27_io/basic_filebuf/sputc/char/1.cc: New.
6272 * 27_io/basic_filebuf/sputc/char/1057.cc: New.
6273 * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
6274 * 27_io/basic_filebuf/sputn/char/1.cc: New.
6275 * 27_io/basic_filebuf/sputn/char/1057.cc: New.
6276 * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
6277 * 27_io/basic_filebuf/sungetc/char/1.cc: New.
6278 * 27_io/basic_filebuf/sync/char/1057.cc: New.
6279 * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
6280 * 27_io/basic_filebuf/underflow/char/10097.cc: New.
6281 * 27_io/basic_fstream/1.cc: New.
6282 * 27_io/basic_fstream/2.cc: New.
6283 * 27_io/basic_fstream/3.cc: New.
6284 * 27_io/basic_fstream/4.cc: New.
6285 * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
6286 * 27_io/basic_ifstream/1.cc: New.
6287 * 27_io/basic_ifstream/2.cc: New.
6288 * 27_io/basic_ifstream/3.cc: New.
6289 * 27_io/basic_ifstream/4.cc: New.
6290 * 27_io/basic_ifstream/cons/char/1.cc: New.
6291 * 27_io/basic_ifstream/open/char/1.cc: New.
6292 * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
6293 * 27_io/basic_ios/1.cc: New.
6294 * 27_io/basic_ios/2.cc: New.
6295 * 27_io/basic_ios/3.cc: New.
6296 * 27_io/basic_ios/4.cc: New.
6297 * 27_io/basic_ios/clear/char/1.cc: New.
6298 * 27_io/basic_ios/cons/char/1.cc: New.
6299 * 27_io/basic_ios/cons/char/2.cc: New.
6300 * 27_io/basic_ios/cons/char/3.cc: New.
6301 * 27_io/basic_ios/copyfmt/char/1.cc: New.
6302 * 27_io/basic_ios/copyfmt/char/2.cc: New.
6303 * 27_io/basic_ios/exceptions/char/1.cc: New.
6304 * 27_io/basic_ios/locales/char/1.cc: New.
6305 * 27_io/basic_iostream/1.cc: New.
6306 * 27_io/basic_iostream/2.cc: New.
6307 * 27_io/basic_iostream/3.cc: New.
6308 * 27_io/basic_iostream/4.cc: New.
6309 * 27_io/basic_istream/1.cc: New.
6310 * 27_io/basic_istream/2.cc: New.
6311 * 27_io/basic_istream/3.cc: New.
6312 * 27_io/basic_istream/4.cc: New.
6313 * 27_io/basic_istream/exceptions/char/9561.cc: New.
6314 * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
6315 * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
6316 * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
6317 * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
6318 * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
6319 * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
6320 * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
6321 * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
6322 * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
6323 * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
6324 * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
6325 * 27_io/basic_istream/extractors_character/char/1.cc: New.
6326 * 27_io/basic_istream/extractors_character/char/2.cc: New.
6327 * 27_io/basic_istream/extractors_character/char/3.cc: New.
6328 * 27_io/basic_istream/extractors_character/char/9826.cc: New.
6329 * 27_io/basic_istream/extractors_other/char/1.cc: New.
6330 * 27_io/basic_istream/extractors_other/char/2.cc: New.
6331 * 27_io/basic_istream/extractors_other/char/3.cc: New.
6332 * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
6333 * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
6334 * 27_io/basic_istream/get/char/1.cc: New.
6335 * 27_io/basic_istream/get/char/2.cc: New.
6336 * 27_io/basic_istream/getline/char/1.cc: New.
6337 * 27_io/basic_istream/getline/char/2.cc: New.
6338 * 27_io/basic_istream/getline/char/3.cc: New.
6339 * 27_io/basic_istream/ignore/char/1.cc: New.
6340 * 27_io/basic_istream/ignore/char/6360.cc: New.
6341 * 27_io/basic_istream/ignore/char/7220.cc: New.
6342 * 27_io/basic_istream/peek/char/1.cc: New.
6343 * 27_io/basic_istream/peek/char/6414.cc: New.
6344 * 27_io/basic_istream/putback/char/1.cc: New.
6345 * 27_io/basic_istream/read/char/1.cc: New.
6346 * 27_io/basic_istream/read/char/2.cc: New.
6347 * 27_io/basic_istream/read/char/3.cc: New.
6348 * 27_io/basic_istream/readsome/char/6746-1.cc: New.
6349 * 27_io/basic_istream/readsome/char/6746-2.cc: New.
6350 * 27_io/basic_istream/readsome/char/8258.cc: New.
6351 * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
6352 * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
6353 * 27_io/basic_istream/seekg/char/8348-1.cc: New.
6354 * 27_io/basic_istream/seekg/char/8348-2.cc: New.
6355 * 27_io/basic_istream/seekg/char/fstream.cc: New.
6356 * 27_io/basic_istream/seekg/char/sstream.cc: New.
6357 * 27_io/basic_istream/sentry/char/1.cc: New.
6358 * 27_io/basic_istream/sentry/char/2.cc: New.
6359 * 27_io/basic_istream/sentry/char/3.cc: New.
6360 * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
6361 * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
6362 * 27_io/basic_istream/tellg/char/1.cc: New.
6363 * 27_io/basic_istream/tellg/char/8348.cc: New.
6364 * 27_io/basic_istream/tellg/char/fstream.cc: New.
6365 * 27_io/basic_istream/tellg/char/sstream.cc: New.
6366 * 27_io/basic_istream/ws/char/1.cc: New.
6367 * 27_io/basic_istringstream/1.cc: New.
6368 * 27_io/basic_istringstream/2.cc: New.
6369 * 27_io/basic_istringstream/3.cc: New.
6370 * 27_io/basic_istringstream/4.cc: New.
6371 * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
6372 * 27_io/basic_istringstream/str/char/1.cc: New.
6373 * 27_io/basic_ofstream/1.cc: New.
6374 * 27_io/basic_ofstream/2.cc: New.
6375 * 27_io/basic_ofstream/3.cc: New.
6376 * 27_io/basic_ofstream/4.cc: New.
6377 * 27_io/basic_ofstream/cons/char/2.cc: New.
6378 * 27_io/basic_ofstream/open/char/1.cc: New.
6379 * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
6380 * 27_io/basic_ostream/1.cc: New.
6381 * 27_io/basic_ostream/2.cc: New.
6382 * 27_io/basic_ostream/3.cc: New.
6383 * 27_io/basic_ostream/4.cc: New.
6384 * 27_io/basic_ostream/cons/char/9827.cc: New.
6385 * 27_io/basic_ostream/endl/char/1.cc: New.
6386 * 27_io/basic_ostream/ends/char/1.cc: New.
6387 * 27_io/basic_ostream/ends/char/2.cc: New.
6388 * 27_io/basic_ostream/exceptions/char/9561.cc: New.
6389 * 27_io/basic_ostream/flush/char/1.cc: New.
6390 * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
6391 * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
6392 * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
6393 * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
6394 * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
6395 * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
6396 * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
6397 * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
6398 * 27_io/basic_ostream/inserters_character/char/1.cc: New.
6399 * 27_io/basic_ostream/inserters_character/char/2.cc: New.
6400 * 27_io/basic_ostream/inserters_character/char/3.cc: New.
6401 * 27_io/basic_ostream/inserters_character/char/4.cc: New.
6402 * 27_io/basic_ostream/inserters_character/char/5.cc: New.
6403 * 27_io/basic_ostream/inserters_character/char/6.cc: New.
6404 * 27_io/basic_ostream/inserters_character/char/8.cc: New.
6405 * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
6406 * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
6407 * 27_io/basic_ostream/inserters_other/char/1.cc: New.
6408 * 27_io/basic_ostream/inserters_other/char/2.cc: New.
6409 * 27_io/basic_ostream/inserters_other/char/3.cc: New.
6410 * 27_io/basic_ostream/inserters_other/char/4.cc: New.
6411 * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
6412 * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
6413 * 27_io/basic_ostream/sentry/char/1.cc: New.
6414 * 27_io/basic_ostream/sentry/char/2.cc: New.
6415 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
6416 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
6417 * 27_io/basic_ostream/tellp/char/1.cc: New.
6418 * 27_io/basic_ostream/tellp/char/2.cc: New.
6419 * 27_io/basic_ostringstream/1.cc: New.
6420 * 27_io/basic_ostringstream/2.cc: New.
6421 * 27_io/basic_ostringstream/3.cc: New.
6422 * 27_io/basic_ostringstream/4.cc: New.
6423 * 27_io/basic_ostringstream/cons/char/3.cc: New.
6424 * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
6425 * 27_io/basic_ostringstream/str/char/1.cc: New.
6426 * 27_io/basic_ostringstream/str/char/2.cc: New.
6427 * 27_io/basic_streambuf/1.cc: New.
6428 * 27_io/basic_streambuf/2.cc: New.
6429 * 27_io/basic_streambuf/3.cc: New.
6430 * 27_io/basic_streambuf/cons/char/1.cc: New.
6431 * 27_io/basic_streambuf/imbue/char/1.cc: New.
6432 * 27_io/basic_streambuf/imbue/char/9322.cc: New.
6433 * 27_io/basic_streambuf/overflow/char/1.cc: New.
6434 * 27_io/basic_streambuf/overflow/char/2.cc: New.
6435 * 27_io/basic_streambuf/overflow/char/3599.cc: New.
6436 * 27_io/basic_streambuf/sgetc/char/1.cc: New.
6437 * 27_io/basic_streambuf/sgetn/char/1.cc: New.
6438 * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
6439 * 27_io/basic_streambuf/sputc/char/1057.cc: New.
6440 * 27_io/basic_streambuf/sputn/char/1.cc: New.
6441 * 27_io/basic_streambuf/sputn/char/1057.cc: New.
6442 * 27_io/basic_streambuf/sync/char/1057.cc: New.
6443 * 27_io/basic_stringbuf/1.cc: New.
6444 * 27_io/basic_stringbuf/2.cc: New.
6445 * 27_io/basic_stringbuf/3.cc: New.
6446 * 27_io/basic_stringbuf/4.cc: New.
6447 * 27_io/basic_stringbuf/5.cc: New.
6448 * 27_io/basic_stringbuf/imbue/char/1.cc: New.
6449 * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
6450 * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
6451 * 27_io/basic_stringbuf/overflow/char/2.cc: New.
6452 * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
6453 * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
6454 * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
6455 * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
6456 * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
6457 * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
6458 * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
6459 * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
6460 * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
6461 * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
6462 * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
6463 * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
6464 * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
6465 * 27_io/basic_stringbuf/snextc/char/1.cc: New.
6466 * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
6467 * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
6468 * 27_io/basic_stringbuf/sputc/char/1.cc: New.
6469 * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
6470 * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
6471 * 27_io/basic_stringbuf/sputn/char/1.cc: New.
6472 * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
6473 * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
6474 * 27_io/basic_stringbuf/str/char/1.cc: New.
6475 * 27_io/basic_stringbuf/str/char/2.cc: New.
6476 * 27_io/basic_stringbuf/str/char/3.cc: New.
6477 * 27_io/basic_stringbuf/str/char/3955.cc: New.
6478 * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
6479 * 27_io/basic_stringbuf/sync/char/1057.cc: New.
6480 * 27_io/basic_stringstream/1.cc: New.
6481 * 27_io/basic_stringstream/2.cc: New.
6482 * 27_io/basic_stringstream/3.cc: New.
6483 * 27_io/basic_stringstream/4.cc: New.
6484 * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
6485 * 27_io/basic_stringstream/str/char/1.cc: New.
6486 * 27_io/basic_stringstream/str/char/2.cc: New.
6487 * 27_io/basic_stringstream/str/char/3.cc: New.
6488 * 27_io/basic_stringstream/str/char/4.cc: New.
6489 * 27_io/fpos/1.cc: New.
6490 * 27_io/fpos/2.cc: New.
6491 * 27_io/fpos/3.cc: New.
6492 * 27_io/ios_base/callbacks/1.cc: New.
6493 * 27_io/ios_base/state/1.cc: New.
6494 * 27_io/ios_base/storage/1.cc: New.
6495 * 27_io/ios_base/storage/2.cc: New.
6496 * 27_io/ios_base/storage/3.cc: New.
6497 * 27_io/ios_base/sync_with_stdio/1.cc: New.
6498 * 27_io/ios_base/sync_with_stdio/2.cc: New.
6499 * 27_io/manipulators/adjustfield/char/1.cc: New.
6500 * 27_io/manipulators/adjustfield/char/2.cc: New.
6501 * 27_io/manipulators/basefield/char/1.cc: New.
6502 * 27_io/manipulators/standard/char/1.cc: New.
6503 * 27_io/manipulators/standard/char/2.cc: New.
6504 * 27_io/objects/char/1.cc: New.
6505 * 27_io/objects/char/2.cc: New.
6506 * 27_io/objects/char/2523-1_xin.cc: New.
6507 * 27_io/objects/char/2523-1_xin.in: New.
6508 * 27_io/objects/char/2523-2_xin.cc: New.
6509 * 27_io/objects/char/2523-2_xin.in: New.
6510 * 27_io/objects/char/3045.cc: New.
6511 * 27_io/objects/char/3647.cc: New.
6512 * 27_io/objects/char/3_xin.cc: New.
6513 * 27_io/objects/char/3_xin.in: New.
6514 * 27_io/objects/char/4_xin.cc: New.
6515 * 27_io/objects/char/4_xin.in: New.
6516 * 27_io/objects/char/5268.cc: New.
6517 * 27_io/objects/char/5280_xin.cc: New.
6518 * 27_io/objects/char/5280_xin.in: New.
6519 * 27_io/objects/char/6548_xin.cc: New.
6520 * 27_io/objects/char/6548_xin.in: New.
6521 * 27_io/objects/char/6648-1_xin.cc: New.
6522 * 27_io/objects/char/6648-1_xin.in: New.
6523 * 27_io/objects/char/6648-2_xin.cc: New.
6524 * 27_io/objects/char/6648-2_xin.in: New.
6525 * 27_io/objects/char/7744_xin.cc: New.
6526 * 27_io/objects/char/7744_xin.in: New.
6527 * 27_io/objects/wchar_t/1.cc: New.
6528 * 27_io/types/1.cc: New.
6529 * 27_io/types/2.cc: New.
6530 * data/filebuf_members-1.tst: New.
6531 * data/filebuf_members-1.txt: New.
6532 * data/filebuf_virtuals-1.tst: New.
6533 * data/filebuf_virtuals-1.txt: New.
6534 * data/filebuf_virtuals-2.tst: New.
6535 * data/filebuf_virtuals-3.tst: New.
6536 * data/ifstream_members-1.tst: New.
6537 * data/ifstream_members-1.txt: New.
6538 * data/ios_base_members_static-1.tst: New.
6539 * data/istream_extractor_other-1.tst: New.
6540 * data/istream_extractor_other-1.txt: New.
6541 * data/istream_extractor_other-2.tst: New.
6542 * data/istream_seeks-1.tst: New.
6543 * data/istream_seeks-1.txt: New.
6544 * data/istream_seeks-2.tst: New.
6545 * data/istream_seeks-3.tst: New.
6546 * data/istream_unformatted-1.tst: New.
6547 * data/istream_unformatted-1.txt: New.
6548 * data/ofstream_members-1.tst: New.
6549 * data/ostream_inserter_char-1.tst: New.
6550 * data/ostream_inserter_char-1.txt: New.
6551 * data/ostream_inserter_other-1.tst: New.
6552 * data/ostream_inserter_other-2.tst: New.
6553 * data/ostream_seeks-1.tst: New.
6555 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
6557 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
6558 requirement that __mode must be strict input or output.
6560 * include/std/std_streambuf.h (basic_streambuf::setp): Set
6563 * include/std/std_sstream.h (basic_strinbuf::str): Zero length
6564 output string shouldn't core.
6565 (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
6567 * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
6569 * include/bits/istream.tcc (basic_istream::putback): Set gcount to
6572 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
6574 * testsuite/data: New directory.
6575 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
6576 to copy files from the testsuite data directory.
6577 (libstdc++-v3-list-sourcefiles): Add another test list filter, for
6578 testfiles containing _xin, which now means this is an interactive
6579 test and should be run with the interactive dejagnu hooks.
6580 * testsuite/Makefile.am: Remove testsuite_* files.
6581 * testsuite/Makefile.in: Regenerate.
6583 2003-04-09 Zack Weinberg <zack@codesourcery.com>
6585 * docs/html/install.html: Document complete list of locales
6586 required by test suite. Document procedure for installing
6587 said locales under Debian. Solicit instructions for other
6590 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
6592 * include/bits/sstream.tcc (overflow): Make sure operands of min
6593 and max have the same type.
6595 2003-04-04 Jerry Quinn <jlquinn@optonline.net>
6598 * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
6601 2003-03-31 Paolo Carlini <pcarlini@unitus.it>
6603 * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
6604 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
6605 Don't set _M_out_end.
6606 (basic_filebuf::overflow): Replace _M_out_buf_size() with
6607 this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
6608 * include/bits/sstream.tcc (basic_stringbuf::overflow):
6609 Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
6610 * include/bits/streambuf.tcc (basic_streambuf::sputc):
6611 Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
6612 (basic_streambuf::xsputn): Replace _M_out_buf_size() with
6613 _M_out_end - _M_out_cur.
6614 (__copy_streambufs): Likewise.
6615 * include/std/std_fstream.h (_M_set_determinate): Set
6618 2003-03-30 Paolo Carlini <pcarlini@unitus.it>
6620 * include/bits/fstream.tcc (basic_filebuf::showmanyc,
6621 _M_convert_to_external, _M_really_overflow, seekoff): Fix
6622 test for synced buffer.
6623 * include/std/std_fstream.h (sync): Likewise.
6624 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
6625 basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
6627 2003-03-28 Benjamin Kosnik <bkoz@redhat.com>
6629 * include/std/std_sstream.h (basic_istringstream): Adjust
6631 (basic_ostringstream): Same.
6632 (basic_stringstream): Same.
6633 * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
6634 (basic_ofstream): Same.
6635 (basic_fstream): Same.
6636 * include/std/std_ostream.h (basic_ostrem): Add protected ctor
6637 that does not call init.
6638 * include/std/std_istream.h (basic_istream): Same.
6639 (basic_iostream): Construct istream, ostream uninitialized, use
6640 init to initialize just once. Add protected ctor that does not
6643 2003-03-28 Paolo Carlini <pcarlini@unitus.it>
6644 Nathan Myers <ncm@cantrip.org>
6647 * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
6649 (basic_filebuf<>::showmanyc): Use the information provided
6650 by codecvt and __basic_file<>::showmanyc_helper to implement
6651 a non-trivial showmanyc.
6652 * config/io/basic_file_stdio.h
6653 (__basic_file<>::showmanyc_helper): New, declare.
6654 * config/io/basic_file_stdio.cc
6655 (__basic_file<>::showmanyc_helper): Define.
6656 (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
6657 (__basic_file<char>::open): Don't call fcntl().
6658 * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
6659 GLIBCPP_CHECK_POLL): New macros.
6660 * configure.in: Call here.
6661 * acconfig.h: Add #undefs for the corresponding symbols.
6662 * aclocal.m4: Regenerate.
6663 * configure: Regenerate.
6664 * config.h.in: Regenerate.
6666 2003-03-24 Benjamin Kosnik <bkoz@redhat.com>
6668 * config/linker-map.gnu: Remove string export restrictions.
6670 2003-03-24 Paolo Carlini <pcarlini@unitus.it>
6672 * testsuite/21_strings/basic_string/find/char/1.cc: Remove
6673 find_first_of, find_last_of and find_last_not_of tests.
6674 * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
6675 tests here, new file.
6676 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
6677 remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
6678 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
6679 wchar_t find_first_of tests here, new file.
6680 * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
6682 * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
6684 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
6685 wchar_t find_last_of tests here.
6686 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
6687 wchar_t find_last_not_of tests here.
6689 2003-03-22 Loren J. Rittle <ljrittle@acm.org>
6691 * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
6692 Correct return value.
6694 2003-03-21 Jerry Quinn <jlquinn@optonline.net>
6697 * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
6698 * include/std/std_complex.h (norm): Use faster,
6699 less accurate computation for builtin float types under --fast-math.
6701 2003-03-21 Magnus Fromreide <gnats@magfr.user.lysator.liu.se>
6703 * testsuite/testsuite_hooks.h: Fix warning nits.
6705 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
6707 * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
6708 Only .set mips2 for the o32 ABI.
6710 2003-03-19 Paolo Carlini <pcarlini@unitus.it>
6712 * testsuite/21_strings/char_traits/requirements/char/1.cc:
6713 Test char not wchar_t.
6715 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
6717 * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
6718 Correct size, taking into account sizeof(wchar_t).
6720 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
6722 Reshuffle 21_strings testsuite.
6723 * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
6724 assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
6725 element_access.cc, operations.cc, char_traits_requirements.cc,
6726 find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
6727 compare.cc, inserters_extractors.cc, substr.cc: Split up, add
6728 wchar_t tests as follows.
6729 * 21_strings/basic_string/append/char/1.cc: New.
6730 * 21_strings/basic_string/append/wchar_t/1.cc: New.
6731 * 21_strings/basic_string/assign/char/1.cc: New.
6732 * 21_strings/basic_string/assign/char/2.cc: New.
6733 * 21_strings/basic_string/assign/char/3.cc: New.
6734 * 21_strings/basic_string/assign/wchar_t/1.cc: New.
6735 * 21_strings/basic_string/assign/wchar_t/2.cc: New.
6736 * 21_strings/basic_string/assign/wchar_t/3.cc: New.
6737 * 21_strings/basic_string/capacity/1.cc: New.
6738 * 21_strings/basic_string/capacity/char/1.cc: New.
6739 * 21_strings/basic_string/capacity/char/2.cc: New.
6740 * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
6741 * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
6742 * 21_strings/basic_string/compare/char/1.cc: New.
6743 * 21_strings/basic_string/compare/wchar_t/1.cc: New.
6744 * 21_strings/basic_string/cons/char/1.cc: New.
6745 * 21_strings/basic_string/cons/char/2.cc: New.
6746 * 21_strings/basic_string/cons/char/3.cc: New.
6747 * 21_strings/basic_string/cons/char/4.cc: New.
6748 * 21_strings/basic_string/cons/char/5.cc: New.
6749 * 21_strings/basic_string/cons/wchar_t/1.cc: New.
6750 * 21_strings/basic_string/cons/wchar_t/2.cc: New.
6751 * 21_strings/basic_string/cons/wchar_t/3.cc: New.
6752 * 21_strings/basic_string/cons/wchar_t/4.cc: New.
6753 * 21_strings/basic_string/cons/wchar_t/5.cc: New.
6754 * 21_strings/basic_string/element_access/char/1.cc: New.
6755 * 21_strings/basic_string/element_access/char/2.cc: New.
6756 * 21_strings/basic_string/element_access/char/3.cc: New.
6757 * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
6758 * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
6759 * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
6760 * 21_strings/basic_string/find/char/1.cc: New.
6761 * 21_strings/basic_string/find/wchar_t/1.cc: New.
6762 * 21_strings/basic_string/insert/char/1.cc: New.
6763 * 21_strings/basic_string/insert/char/2.cc: New.
6764 * 21_strings/basic_string/insert/wchar_t/1.cc: New.
6765 * 21_strings/basic_string/insert/wchar_t/2.cc: New.
6766 * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
6767 * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
6768 * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
6769 * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
6770 * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
6771 * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
6772 * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
6773 * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
6774 * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
6775 * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
6776 * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
6777 * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
6778 * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
6779 * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
6780 * 21_strings/basic_string/operators/char/1.cc: New.
6781 * 21_strings/basic_string/operators/char/2.cc: New.
6782 * 21_strings/basic_string/operators/wchar_t/1.cc: New.
6783 * 21_strings/basic_string/operators/wchar_t/2.cc: New.
6784 * 21_strings/basic_string/replace/char/1.cc: New.
6785 * 21_strings/basic_string/replace/char/2.cc: New.
6786 * 21_strings/basic_string/replace/char/3.cc: New.
6787 * 21_strings/basic_string/replace/char/4.cc: New.
6788 * 21_strings/basic_string/replace/char/5.cc: New.
6789 * 21_strings/basic_string/replace/wchar_t/1.cc: New.
6790 * 21_strings/basic_string/replace/wchar_t/2.cc: New.
6791 * 21_strings/basic_string/replace/wchar_t/3.cc: New.
6792 * 21_strings/basic_string/replace/wchar_t/4.cc: New.
6793 * 21_strings/basic_string/replace/wchar_t/5.cc: New.
6794 * 21_strings/basic_string/rfind/char/1.cc: New.
6795 * 21_strings/basic_string/rfind/char/2.cc: New.
6796 * 21_strings/basic_string/rfind/char/3.cc: New.
6797 * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
6798 * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
6799 * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
6800 * 21_strings/basic_string/substr/char/1.cc: New.
6801 * 21_strings/basic_string/substr/wchar_t/1.cc: New.
6802 * 21_strings/c_strings/char/1.cc: New.
6803 * 21_strings/c_strings/char/2.cc: New.
6804 * 21_strings/c_strings/wchar_t/1.cc: New.
6805 * 21_strings/c_strings/wchar_t/2.cc: New.
6806 * 21_strings/char_traits/requirements/char/1.cc: New.
6807 * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
6808 * 21_strings/char_traits/typedefs/char/1.cc: New.
6810 2003-03-17 Paolo Carlini <pcarlini@unitus.it>
6811 Petur Runolfsson <peturr02@ru.is>
6814 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
6815 basic_filebuf<wchar_t>::_M_underflow_common):
6816 if (gptr() < egptr()) return *gptr().
6817 * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
6819 * testsuite/27_io/filebuf_members.cc (test_04): Minor
6820 changes: unlink fifo before making it, fix spelling error.
6822 2003-03-17 Benjamin Kosnik <bkoz@redhat.com>
6824 * testsuite/Makefile.am (CLEANFILES): Add tmp*.
6825 * testsuite/Makefile.in: Regenerate.
6826 * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
6829 2003-03-17 Petur Runolfsson <peturr02@ru.is>
6832 * include/bits/fstream.tcc (basic_filebuf::close):
6833 Always close file, even when write fails.
6834 * testsuite/27_io/filebuf_members.cc (test_07): New test.
6836 2003-03-17 Danny Smith <dannysmith@users.sourceforge.net>
6838 * libsupc++/Makefile.am (C_COMPILE): Remove.
6839 (LTCOMPILE): Likewise.
6840 * libsupc++/Makefile.in: Regenerate.
6842 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
6844 * testsuite/23_containers/bitset_members.cc: Add test variable.
6845 * testsuite/23_containers/map_insert.cc: Same.
6846 * testsuite/22_locale/ctype/cons/char/1.cc: Same.
6847 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
6848 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
6849 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
6850 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
6851 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
6852 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
6853 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
6854 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
6855 * testsuite/27_io/istream_exception.cc: Same.
6856 * testsuite/27_io/filebuf_virtuals.cc: Same.
6857 * testsuite/27_io/stringbuf_virtuals.cc: Same.
6858 * testsuite/27_io/ostream_inserter_arith.cc: Same.
6859 * testsuite/26_numerics/valarray_operators.cc: Same.
6860 * testsuite/26_numerics/slice.cc: Same.
6861 * testsuite/26_numerics/slice_array_assignment.cc: Same.
6862 * testsuite/24_iterators/istream_iterator.cc: Same.
6863 * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
6865 2003-03-14 Petur Runolfsson <peturr02@ru.is>
6869 * config/locale/generic/ctype_members.cc,
6870 * config/locale/gnu/ctype_members.cc
6871 (ctype<wchar_t>::do_widen(char)): Cast argument to
6872 unsigned char before passing to btowc.
6873 (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
6874 Convert characters with btowc instead of mbsrtowcs.
6875 (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
6877 Convert characters with wctob instead of wcsrtombs.
6878 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: New test.
6879 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: New test.
6880 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: New test.
6882 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
6884 * include/stdc++.h: New.
6885 * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
6886 * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
6887 * include/Makefile.in: Regenerate.
6888 * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
6889 (--cxxflags): Put -g -O2 here.
6890 * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
6892 2003-03-14 Loren J. Rittle <ljrittle@acm.org>
6894 * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
6895 missing named locale.
6897 2003-03-14 Andreas Schwab <schwab@suse.de>
6899 * configure.in: Only append to makefiles that are newly created to
6900 avoid multiple multi-do/multi-clean rules.
6901 * configure: Rebuilt.
6903 2003-03-13 Jonathan Wakely <redi@gcc.gnu.org>
6905 * docs/html/configopts.html, docs/html/documentation.html,
6906 docs/html/explanations.html, docs/html/install.html,
6907 docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
6908 invalid XHTML and make page header style consistent.
6910 2003-03-12 Jonathan Wakely <redi@gcc.gnu.org>
6912 * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
6913 * docs/html/faq/index.txt: Regenerate.
6914 * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
6916 2003-03-12 Andreas Schwab <schwab@suse.de>
6918 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
6919 glibcpp_toolexeclibdir.
6920 * aclocal.m4, configure: Rebuilt.
6922 2003-03-11 Jonathan Wakely <redi@gcc.gnu.org>
6924 * docs/html/faq/index.html: Update text about location of headers.
6925 * docs/html/faq/index.txt: Regenerate.
6927 2003-03-11 Carlo Wood <carlo@alinoe.com>
6929 * include/bits/demangle.h: Prepend accessors of
6930 class qualifier with 'get_' in order to fix warnings
6931 when compiling with -Wshadow.
6933 2003-03-11 Loren J. Rittle <ljrittle@acm.org>
6935 * config/os/bsd/freebsd/ctype_inline.h: Support _M_table
6937 * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
6939 * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
6940 report lack of setenv().
6942 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
6944 * config/io/basic_file_stdio.cc: include <unistd.h>.
6946 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
6947 Nathan Myers <ncm@cantrip.org>
6950 * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
6951 seekoff, seekpos): Add a boolean parameter __stdio.
6952 * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
6953 seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
6954 fseek/ftell, respectively), otherwise read (write, lseek, lseek,
6956 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
6957 _M_really_overflow, seekoff): Use the boolean parameter in the calls.
6958 * include/std/std_fstream.h (sync): Likewise.
6959 * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
6960 * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
6961 libstdc++/8399 commit involving isatty(0).
6962 * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
6963 (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
6964 * configure.in: Remove call.
6965 * aclocal.m4: Regenerate.
6966 * config.h.in: Regenerate.
6967 * configure: Regenerate.
6968 * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
6970 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
6973 * include/bits/fstream.tcc (overflow): don't write EOF to file.
6974 * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
6976 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
6979 * include/bits/basic_ios.h (_M_setstate): New.
6980 * include/bits/ostream.tcc (operator<<): Use it.
6981 * include/bits/istream.tcc (operator>>): Use it.
6982 * include/std/std_ostream.h (operator<<): Make friends.
6983 * include/std/std_istream.h (operator>>): Make friends.
6984 * testsuite/27_io/ostream_exception.cc,
6985 testsuite/27_io/istream_exception.cc: New tests.
6987 2003-03-08 Benjamin Kosnik <bkoz@redhat.com>
6989 * include/bits/locale_facets.tcc: Fix typo.
6991 2003-03-08 Loren J. Rittle <ljrittle@acm.org>
6993 * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
6995 * config/locale/generic/c_locale.cc
6996 (locale::facet::_S_create_c_locale): Throw runtime exception when
6997 unsupported language is specified.
6998 * testsuite/testsuite_hooks.h
6999 (run_test_wrapped_generic_locale_exception_catcher): New function.
7000 * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
7001 Suppress runtime exception thrown by generic implementation.
7002 (run_tests_wrapped_env): Likewise.
7003 (run_test_wrapped_generic_locale_exception_catcher): New function.
7004 * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
7005 * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
7006 * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
7007 * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
7008 * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
7009 * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
7010 * testsuite/22_locale/collate_byname/1.cc: New test wrap.
7011 * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
7012 * testsuite/22_locale/facet/2.cc: New test wrap.
7013 * testsuite/22_locale/locale/cons/4.cc: New test wrap.
7014 * testsuite/22_locale/locale/cons/5.cc: New test wrap.
7015 * testsuite/22_locale/locale/cons/7.cc: New test wrap.
7016 * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
7017 * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
7018 * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
7019 * testsuite/22_locale/messages_byname/1.cc: New test wrap.
7020 * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
7021 * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
7022 * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
7023 * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
7024 * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
7025 * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
7026 * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
7027 * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
7028 * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
7029 * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
7030 * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
7031 * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
7032 * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
7033 * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
7034 * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
7035 * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
7036 * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
7037 * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
7038 * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
7039 * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
7040 * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
7041 * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
7042 * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
7043 * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
7044 * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
7045 * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
7046 * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
7047 * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
7048 * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
7049 * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
7050 * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
7051 * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
7052 * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
7053 * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
7054 * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
7055 * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
7056 * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
7057 * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
7058 * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
7059 * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
7060 * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
7061 * testsuite/27_io/ios_members.cc: New test wrap.
7062 * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
7064 * testsuite/27_io/streambuf_members.cc: New test wrap.
7065 * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
7067 2003-03-08 Paolo Carlini <pcarlini@unitus.it>
7068 Petur Runolfsson <peturr02@ru.is>
7071 * include/bits/streambuf.tcc (__copy_streambufs): Use
7072 sgetn-sputn only when sputn cannot fail, otherwise fall back
7073 to safe snextc-sputc.
7074 * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
7076 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
7078 * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
7079 locale cache for truename and falsename.
7081 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
7083 * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
7084 _M_word_size initialization.
7086 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
7088 * include/bits/fstream.tcc (_M_convert_to_external):
7089 Set __elen to zero if codecvt::out eventually fails.
7091 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
7094 * include/bits/fstream.tcc (_M_really_overflow): Check
7095 for _M_convert_to_external possible failures.
7096 * include/std/std_fstream.h (sync): Check _M_really_overflow
7097 return value and return -1 in case of failure.
7098 * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
7100 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
7103 * include/bits/istream.tcc (operator>>(_CharT*),
7104 operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
7105 * testsuite/27_io/stringstream.cc (test02): Add.
7107 * include/bits/istream.tcc (operator>>(_CharT*)):
7108 Assign a char_type to *__s.
7110 2003-03-07 Petur Runolfsson <peturr02@ru.is>
7113 * include/bits/locale_facets.tcc
7114 (collate::do_compare, collate::do_transform):
7115 Handle nul characters in input.
7116 * testsuite/22_locale/collate/compare/char/3.cc: New test.
7117 * testsuite/22_locale/collate/compare/wchar_t/3.cc: New test.
7118 * testsuite/22_locale/collate/transform/char/3.cc: New test.
7119 * testsuite/22_locale/collate/transform/wchar_t/3.cc: New test.
7121 2003-03-07 Jerry Quinn <jlquinn@optonline.net>
7123 * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
7125 * testsuite/27_io/ostream_fail.cc: New test.
7127 2003-03-07 Matthias Klose <doko@debian.org>
7129 * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
7130 FLAGS_TO_PASS: Set to AM_MAKEFLAGS
7131 * Makefile.in: Regenerate.
7132 * libsupc++/Makefile.am: Express glibcppinstalldir in terms
7134 AM_MAKEFLAGS: Pass gxx_include_dir.
7135 * libsupc++/Makefile.in: Regenerate.
7137 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
7139 * testsuite/27_io/ios_base_storage.cc (test02): Set exception
7140 mask. Test setting small-numbered pword and iword slots. Test
7141 behavior at limit of numeric_limits::max. Check that values are
7142 still good after failures.
7144 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
7146 * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
7147 (ios_base::ios_base): Set _M_word, _M_word_size.
7148 (ios_base::~ios_base): Remove redundant test.
7149 * testsuite/27_io/ios_base_storage.cc (test03): New.
7151 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
7153 * src/strstream.cc, include/bits/basic_string.tcc: Remove
7154 incorrect whitespace added in my previous change.
7156 2003-03-05 Carlo Wood <carlo@alinoe.com>
7158 * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
7159 _S_initialized() in order to allow debugging libraries to detect
7160 when the std streams are initialized from an overloaded operator
7163 2003-03-05 Benjamin Kosnik <bkoz@redhat.com>
7165 * libsupc++/demangle.h: Move to..
7166 * include/bits/demangle.h: ...here.
7167 * src/demangle.cc: Adjust include.
7168 * include/Makefile.am (bits_headers): Add.
7169 * include/Makefile.in: Regenerate.
7171 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
7173 * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
7175 * config/linker-map.gnu: Filter typeinfo and vtable info.
7177 2003-03-04 Jerry Quinn <jlquinn@optonline.net>
7179 * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
7180 new failure. Throw exception if badbit and exception mask when ix
7181 >= numeric_limits<int>::max().
7183 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
7185 * src/strstream.cc (strstreambuf::overflow): Make sure operands of
7186 min and max have the same type.
7187 * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
7189 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
7191 * include/Makefile.am (allstamps): Remove stamp-std-precompile.
7192 * include/Makefile.in: Regenerate.
7194 2003-03-03 Benjamin Kosnik <bkoz@redhat.com>
7196 * testsuite/abi_check.cc (report_symbol_info): Add version info.
7198 * config/linker-map.gnu: Hide more stuff.
7199 * include/Makefile.am: Cleanups.
7200 * include/Makefile.in: Regenerate.
7202 2003-02-27 Jerry Quinn <jlquinn@optonline.net>
7204 * config/locale/generic/messages_members.h (messages::messages):
7205 Remove name from unused parameter.
7207 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
7209 * src/Makefile.am (sources): Add demangle.cc.
7212 * src/Makefile.in: Regenerate.
7213 * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
7214 * libsupc++/Makefile.in: Regenerate.
7216 * testsuite/testsuite_hooks.h
7217 (__gnu_cxx_test::verify_demangle): New.
7218 * testsuite/testsuite_hooks.cc: Define.
7220 2003-02-27 Carlo Wood <carlo@alinoe.com>
7222 * src/demangle.cc: New.
7223 * libsupc++/demangle.h: New.
7225 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
7226 Carlo Wood <carlo@alinoe.com>
7228 * testsuite/demangle/abi_examples/01.cc: New.
7229 * testsuite/demangle/abi_examples/02.cc: New.
7230 * testsuite/demangle/abi_examples/03.cc: New.
7231 * testsuite/demangle/abi_examples/04.cc: New.
7232 * testsuite/demangle/abi_examples/05.cc: New.
7233 * testsuite/demangle/abi_examples/06.cc: New.
7234 * testsuite/demangle/abi_examples/07.cc: New.
7235 * testsuite/demangle/abi_examples/08.cc: New.
7236 * testsuite/demangle/abi_examples/09.cc: New.
7237 * testsuite/demangle/abi_examples/10.cc: New.
7238 * testsuite/demangle/abi_examples/11.cc: New.
7239 * testsuite/demangle/abi_examples/12.cc: New.
7240 * testsuite/demangle/abi_examples/13.cc: New.
7241 * testsuite/demangle/abi_examples/14.cc: New.
7242 * testsuite/demangle/abi_examples/15.cc: New.
7243 * testsuite/demangle/abi_examples/16.cc: New.
7244 * testsuite/demangle/abi_examples/17.cc: New.
7245 * testsuite/demangle/abi_examples/18.cc: New.
7246 * testsuite/demangle/abi_examples/19.cc: New.
7247 * testsuite/demangle/abi_examples/20.cc: New.
7248 * testsuite/demangle/abi_examples/21.cc: New.
7249 * testsuite/demangle/abi_examples/22.cc: New.
7250 * testsuite/demangle/abi_examples/23.cc: New.
7251 * testsuite/demangle/abi_examples/24.cc: New.
7252 * testsuite/demangle/abi_examples/25.cc: New.
7253 * testsuite/demangle/abi_examples/26.cc: New.
7254 * testsuite/demangle/abi_text/01.cc: New.
7255 * testsuite/demangle/abi_text/02.cc: New.
7256 * testsuite/demangle/abi_text/03.cc: New.
7257 * testsuite/demangle/abi_text/04.cc: New.
7258 * testsuite/demangle/abi_text/05.cc: New.
7259 * testsuite/demangle/abi_text/06.cc: New.
7260 * testsuite/demangle/abi_text/07.cc: New.
7261 * testsuite/demangle/abi_text/08.cc: New.
7262 * testsuite/demangle/abi_text/09.cc: New.
7263 * testsuite/demangle/abi_text/10.cc: New.
7264 * testsuite/demangle/abi_text/11.cc: New.
7265 * testsuite/demangle/abi_text/12.cc: New.
7266 * testsuite/demangle/abi_text/13.cc: New.
7267 * testsuite/demangle/abi_text/14.cc: New.
7268 * testsuite/demangle/regression/3111-1.cc: New.
7269 * testsuite/demangle/regression/3111-2.cc: New.
7270 * testsuite/demangle/regression/7986-01.cc: New.
7271 * testsuite/demangle/regression/7986-02.cc: New.
7272 * testsuite/demangle/regression/7986-03.cc: New.
7273 * testsuite/demangle/regression/7986-04.cc: New.
7274 * testsuite/demangle/regression/7986-05.cc: New.
7275 * testsuite/demangle/regression/7986-06.cc: New.
7276 * testsuite/demangle/regression/7986-07.cc: New.
7277 * testsuite/demangle/regression/7986-08.cc: New.
7278 * testsuite/demangle/regression/7986-09.cc: New.
7279 * testsuite/demangle/regression/7986-10.cc: New.
7280 * testsuite/demangle/regression/7986-11.cc: New.
7281 * testsuite/demangle/regression/7986-12.cc: New.
7282 * testsuite/demangle/regression/7986.cc: New.
7283 * testsuite/demangle/regression/8897.cc: New.
7284 * testsuite/demangle/regression/cw-01.cc: New.
7285 * testsuite/demangle/regression/cw-02.cc: New.
7286 * testsuite/demangle/regression/cw-03.cc: New.
7287 * testsuite/demangle/regression/cw-04.cc: New.
7288 * testsuite/demangle/regression/cw-05.cc: New.
7289 * testsuite/demangle/regression/cw-06.cc: New.
7290 * testsuite/demangle/regression/cw-07.cc: New.
7291 * testsuite/demangle/regression/cw-08.cc: New.
7292 * testsuite/demangle/regression/cw-09.cc: New.
7293 * testsuite/demangle/regression/cw-10.cc: New.
7294 * testsuite/demangle/regression/cw-11.cc: New.
7295 * testsuite/demangle/regression/cw-12.cc: New.
7296 * testsuite/demangle/regression/cw-13.cc: New.
7297 * testsuite/demangle/regression/cw-14.cc: New.
7298 * testsuite/demangle/regression/old.cc: New.
7300 2003-02-25 Phil Edwards <pme@gcc.gnu.org>
7302 * docs/doxygen/Intro.3: Update with new (proper) names.
7303 * docs/doxygen/TODO: Update.
7304 * docs/doxygen/run_doxygen: More comments, fix up man pages.
7305 Fake entries for standard typedefs.
7306 * docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on.
7307 * docs/html/documentation.html: Top-level man page is now called
7309 * include/std/std_limits.h: Doxygenate.
7311 2003-02-25 Scott Snyder <snyder@fnal.gov>
7314 * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
7315 Correct documentation.
7316 * include/bits/stl_multimap.h (lower_bound, upper_bound,
7317 equal_range): Likewise.
7319 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
7323 (basic_filebuf<char/wchar_t>::_M_underflow_common): When
7324 __bump is true (uflow), always increment the read pointer
7325 (_M_in_cur) before returning successfully.
7326 * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
7328 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
7329 Nathan Myers <ncm@cantrip.org>
7331 PR libstdc++/9404, PR libstdc++/9701 (partial)
7332 (aka pptr == epptr implies overflow)
7333 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
7334 Consistently, _M_out_end points to the end of the buffer just
7336 (overflow): Tweak to use _M_out_buf_size().
7337 (_M_convert_to_external): The role of the old _M_out_end is
7338 now played by _M_out_lim.
7339 (_M_really_overflow): Likewise.
7340 (seekoff): Likewise.
7341 (setbuf): _M_out_end points to the end of the external buffer.
7342 * include/bits/sstream.tcc (overflow): Rewrote, taking into
7343 account the resolution of DR 169 (TC).
7344 (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
7345 (seekpos): Use _M_string.capacity(); tweak.
7346 * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
7347 * include/std/std_fstream.h (sync): The role of the old
7348 _M_out_end is now played by _M_out_lim.
7349 (_M_set_indeterminate): Use _M_set_determinate.
7350 (_M_set_determinate): _M_out_end is now _M_out_lim.
7351 (_M_is_indeterminate): Likewise.
7352 * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
7353 (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
7354 which have the information readily available as _M_string.capacity();
7355 for ate and app modes, pass the string size to _M_really_sync.
7356 (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
7357 point to the end of the buffer (i.e., epptr) and to the string end,
7359 * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
7360 which points to the right limit of the used put area.
7361 (_M_out_cur_move): The role of the old _M_out_end is now played
7363 (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
7364 _M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter
7366 (basic_streambuf()): Initialize _M_out_lim too.
7367 * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
7368 * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
7369 * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
7371 2003-02-24 Benjamin Kosnik <bkoz@redhat.com>
7373 * testsuite/27_io/ios_base_storage.cc (main): Call
7376 2003-02-21 Jerry Quinn <jlquinn@optonline.net>
7378 * include/bits/locale_facets.tcc (_M_convert_float): Replace
7379 numpunct facet accesses with data from __locale_cache.
7381 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
7383 * docs/html/faq/index.html (3.9): New note, wchar_t on FreeBSD.
7384 * docs/html/faq/index.txt: Regenerate.
7386 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
7388 * config/linker-map.gnu: Also export locking symbols needed for the
7389 generic atomicity.h case.
7391 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
7393 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
7395 * configure: Rebuilt.
7397 2003-02-19 Paolo Carlini <pcarlini@unitus.it>
7399 * include/bits/sstream.tcc (overflow): According to
7400 27.7.1.3, p5, actual output is performed by sputc(c).
7402 2003-02-19 Phil Edwards <pme@gcc.gnu.org>
7405 * include/bits/stl_alloc.h: Remove all traces of assert().
7407 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
7409 * include/std/std_sstream.h (str()): the size of the
7410 current string may be different from the initial one
7411 whenever _M_out_end > _M_out_beg.
7412 * testsuite/27_io/stringbuf_members.cc (test07): Add.
7414 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
7417 * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
7419 2003-02-17 Benjamin Kosnik <bkoz@redhat.com>
7421 * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
7422 * testsuite/27_io/ios_members.cc (test03): New.
7424 2003-02-17 Jerry Quinn <jlquinn@optonline.net>
7426 * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
7427 (basic_ios::_M_cache_facets): Move into above.
7428 * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
7430 (basic_ios::imbue): Force locale cache to be built.
7431 (basic_ios::_M_init): Create and initialize locale cache.
7432 * include/bits/ios_base.h (__locale_cache_base): Declare.
7433 (ios_base::_M_locale_cache): New.
7434 (ios_base::_M_cache): Define.
7435 * include/bits/locale_facets.h: (__num_base): Fix comment. Add
7437 (__locale_cache_base,__locale_cache<_CharT>): New classes.
7438 (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
7439 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
7440 cache literal string, grouping flag, thousands separator.
7441 (__locale_cache<_CharT>::__locale_cache): New.
7442 (__locale_cache<_CharT>::_M_init): New.
7443 * src/ios.cc: Clear _M_locale_cache in constructor.
7444 * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
7447 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
7449 * src/locale-inst.cc: Do not include <cassert>.
7450 * src/locale.cc: Likewise.
7452 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
7455 * include/std/std_fstream.h: Declare underflow and uflow
7456 specializations, change generic definitions to do nothing.
7457 * src/fstream.cc: Add underflow and uflow specializations.
7459 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
7462 * include/bits/fstream.tcc (_M_convert_to_external):
7463 Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
7464 * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
7466 2003-02-13 Benjamin Kosnik <bkoz@redhat.com>
7468 * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
7469 * include/bits/basic_ios.tcc: Guard use of extern template.
7470 * include/std/std_iomanip.h: Same.
7471 * include/bits/streambuf.tcc: Same.
7472 * include/bits/stl_alloc.h: Same.
7473 * include/bits/locale_facets.tcc: Same.
7474 * include/bits/ostream.tcc: Same.
7475 * include/bits/istream.tcc: Same.
7476 * include/bits/fstream.tcc: Same.
7477 * include/bits/basic_string.tcc: Same.
7479 2003-02-13 Paolo Carlini <pcarlini@unitus.it>
7481 * include/bits/ostream.tcc (sentry::sentry): Improve
7482 performance-wise the fix for libstdc++/9563.
7484 2003-02-12 Phil Edwards <pme@gcc.gnu.org>
7486 * config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration.
7487 (_GLIBCPP_NEED_GENERIC_MUTEX): Define for this file.
7488 (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once): Declare
7489 when we don't have static mutex initialization.
7490 (__exchange_and_add): Use _Atomic_add_mutex_once.
7491 * src/misc-inst.cc: Definitions of all the above.
7493 2003-02-12 Paolo Carlini <pcarlini@unitus.it>
7496 * include/bits/ostream.tcc (sentry::sentry): Check
7497 the state of the stream after the preparation.
7498 * testsuite/27_io/ostream_sentry.cc (test02): Add.
7500 2003-02-11 Benjamin Kosnik <bkoz@redhat.com>
7502 * include/Makefile.am (stamp-std-precompile): Add rule.
7503 * include/Makefile.in: Regenerated.
7505 2003-02-11 Jerry Quinn <jlquinn@optonline.net>
7506 Benjamin Kosnik <benjamin@redhat.com>
7508 * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
7509 Add indexes into this array.
7510 (__num_base::_S_atoms): To _S_atoms_in.
7511 (num_put::_M_insert): Rename to _M_pad.
7512 (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
7513 (num_put::_M_widen_int): Rename to _M_group_int.
7514 (num_put::_M_widen_float): Rename to _M_group_float.
7515 * include/bits/locale_facets.tcc (__int_to_char): New inline
7516 function and adapter functions.
7517 (num_put::_M_group_int): Streamline.
7518 (num_put::_M_group_float): Streamline.
7519 (num_put::_M_convert_int): Remove unused parameter names. Choose
7520 large enough buffer for text. Use __int_to_char instead of
7521 __convert_from_v. Formatted text is now at the end of the buffer.
7522 (num_put::_M_convert_float): Preliminary fixups.
7523 * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
7524 (__int_to_char<unsigned long long>): Same.
7525 (__int_to_char<char, unsigned long>): New.
7526 (__int_to_char<char, unsigned long long>): New.
7527 (__int_to_char<wchar_t, unsigned long>): New.
7528 (__int_to_char<wchar_t, unsigned long long>): New.
7530 2003-02-11 Scott Snyder <snyder@fnal.gov>
7533 * include/bits/fstream.tcc (seekoff): Avoid operator+
7536 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
7539 * include/ext/stdio_filebuf.h
7540 (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
7541 stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
7542 Change to take a __size parameter of type size_t, not
7543 of type (template parameter dependent) int_type.
7544 * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
7545 size vars to size_t.
7546 * testsuite/ext/stdio_filebuf.cc: Add.
7548 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
7549 Petur Runolfsson <peturr02@ru.is>
7552 * include/bits/streambuf.tcc (__copy_streambufs):
7553 Don't conditionalize the copy to __testput.
7554 * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
7556 2002-02-11 DJ Delorie <dj@redhat.com>
7558 * acinclude.m4: Check for native targets that can't link at
7559 this point in the build.
7560 * aclocal.m4: Regenerate.
7561 * configure: Regenerate.
7563 2003-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7565 * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
7567 (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
7570 2003-02-07 Paolo Carlini <pcarlini@unitus.it>
7572 * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
7573 unsigned char platforms.
7575 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
7578 * include/std/std_istream.h
7579 (basic_istream::sentry::operator bool()): Make const.
7580 * include/std/std_ostream.h
7581 (basic_ostream::sentry::operator bool()): Likewise.
7582 * testsuite/27_io/istream_sentry.cc (test03): Add.
7583 * testsuite/27_io/ostream_sentry.cc: Add.
7585 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
7588 Implement resolution of DR 231 (Ready)
7589 * include/bits/locale_facets.h (__num_base::_S_format_float):
7590 Change declaration: return void, remove __prec parameter.
7591 * src/locale.cc (__num_base::_S_format_float): Implement
7592 resolution of DR 231.
7593 * include/bits/locale_facets.tcc (num_put::_M_convert_float):
7594 Tweak uses. Check for negative precision.
7595 * testsuite/22_locale/num_put/put/char/6.cc: Add
7596 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
7598 2003-02-06 Peter Soetens <peter.soetens@mech.kuleuven.ac.be>
7600 * config/io/basic_file_libio.h: Fixups.
7601 * config/io/c_io_libio.h: Same.
7602 * libio/Makefile.am: Same.
7603 * libio/Makefile.in: Regenerated.
7605 2003-02-06 Benjamin Kosnik <bkoz@redhat.com>
7607 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
7608 Explicitly use the "C" locale.
7609 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
7611 2003-02-06 Petur Runolfsson <peturr02@ru.is>
7615 PR libstdc++/9028 (partial)
7621 (codecvt<wchar_t, char, mbstate_t>::do_encoding,
7622 codecvt<wchar_t, char, mbstate_t>::do_length,
7623 codecvt<wchar_t, char, mbstate_t>::do_max_length):
7625 * config/locale/generic/codecvt_members.cc: ...here.
7626 * config/locale/gnu/codecvt_members.cc: ...and here.
7628 * config/locale/generic/codecvt_members.cc,
7629 * config/locale/gnu/codecvt_members.cc
7630 (codecvt<wchar_t, char, mbstate_t>::do_encoding
7631 codecvt<wchar_t, char, mbstate_t>::do_in,
7632 codecvt<wchar_t, char, mbstate_t>::do_length,
7633 codecvt<wchar_t, char, mbstate_t>::do_max_length,
7634 codecvt<wchar_t, char, mbstate_t>::do_out):
7635 New implementation that handles stateless encodings,
7638 * config/locale/generic/codecvt_members.cc,
7639 * config/locale/gnu/codecvt_members.cc,
7640 * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
7641 * include/bits/codecvt.h,
7643 (codecvt::length, codecvt::do_length):
7644 Change type of first argument of length and do_length from
7645 'const state_type&' to 'state_type&' according to DR 75.
7647 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Cleanup.
7648 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: New test.
7649 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: New test.
7650 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: New test.
7651 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
7652 Cleanup and check for correct return value from encoding
7654 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: New test.
7655 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: New test.
7656 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: New test.
7657 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Cleanup.
7658 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: New test.
7659 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: New test.
7660 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: New test.
7661 * testsuite/22_locale/codecvt/in/wchar_t/5.cc: New test.
7662 * testsuite/22_locale/codecvt/in/wchar_t/6.cc: New test.
7663 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: New test.
7664 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: New test.
7665 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: New test.
7666 * testsuite/22_locale/codecvt/length/char/1.cc: Cleanup.
7667 * testsuite/22_locale/codecvt/length/char/2.cc: New test.
7668 * testsuite/22_locale/codecvt/length/wchar_t/1.cc: Cleanup.
7669 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: New test.
7670 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: New test.
7671 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: New test.
7672 * testsuite/22_locale/codecvt/length/wchar_t/5.cc: New test.
7673 * testsuite/22_locale/codecvt/length/wchar_t/6.cc: New test.
7674 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: New test.
7675 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Cleanup.
7676 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: New test.
7677 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: New test.
7678 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: New test.
7679 * testsuite/22_locale/codecvt/out/wchar_t/1.cc: Cleanup.
7680 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: New test.
7681 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: New test.
7682 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: New test.
7683 * testsuite/22_locale/codecvt/out/wchar_t/5.cc: New test.
7684 * testsuite/22_locale/codecvt/out/wchar_t/6.cc: New test.
7685 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: New test.
7686 * testsuite/22_locale/codecvt/unicode/1.cc: New test.
7687 * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc: Cleanup.
7688 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: New test.
7689 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: New test.
7690 * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc: New test.
7692 2003-02-05 Benjamin Kosnik <bkoz@redhat.com>
7694 * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
7695 (money_put::do_put): Same.
7697 2003-02-05 Jerry Quinn <jlquinn@optonline.net>
7699 * include/bits/ios_base.h (ios_base): Document reserved storage.
7701 * include/bits/locale_facets.h: (struct __pad): Comment on
7703 (__verify_grouping): Same.
7704 (__add_grouping): Same.
7705 * include/bits/locale_facets.tcc (__verify_grouping): Move
7706 comments to declaration.
7707 (__add_grouping): Same.
7709 * include/bits/locale_facets.tcc:
7710 (__write<_CharT, _OutIter>): New function.
7711 (__write<_CharT>): New function specialization.
7712 (num_put::_M_insert): Remove explicit loop over iterator. Use
7714 (num_put::_M_widen_float): Remove __basefield.
7715 (num_put::_M_widen_int): Move __basefield to within grouping block.
7717 * include/bits/streambuf_iterator.h: Include <streambuf>.
7718 (ostreambuf_iterator::_M_put): Add.
7720 2003-02-05 Paolo Carlini <pcarlini@unitus.it>
7722 * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
7724 2003-02-04 Nathan Myers <ncm@cantrip.org>
7726 * testsuite/25_algorithms/min_max.cc (test02): Add.
7728 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
7730 PR libstdc++/9439, PR libstdc++/9425
7731 * config/io/basic_file_stdio.cc
7732 (__basic_file<char>::seekoff, seekpos): Return -1L if
7734 * include/bits/fstream.tcc (basic_filebuf::seekoff):
7735 Check _M_file.seekoff return value; always return
7736 pos_type(off_type(-1)) in case of failure.
7737 (basic_filebuf::pbackfail): Check this->seekoff return
7738 value and return traits_type::eof() in case of failure.
7739 * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
7741 2003-02-04 Jerry Quinn <jlquinn@optonline.net>
7743 * include/std/std_ostream.h (ostream::_M_write): Declare.
7744 * ostream.tcc (ostream::_M_write): Define.
7745 (basic_ostream::write): Use it.
7746 (operator<<(basic_ostream, _CharT)): Ditto.
7747 (operator<<(basic_ostream, char)): Ditto.
7748 (operator<<(basic_ostream, _CharT*)): Ditto.
7749 (operator<<(basic_ostream, char*)): Ditto.
7750 (operator<<(basic_ostream, basic_string)): Ditto.
7752 2003-02-04 Benjamin Kosnik <bkoz@redhat.com>
7754 * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
7756 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
7758 * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
7759 add HTML comment about updating links if numbering changes.
7761 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
7764 * include/bits/streambuf.tcc (sputbackc): Access
7765 this->gptr()[-1] only if _M_in_beg < _M_in_cur.
7766 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
7768 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
7771 * include/bits/fstream.tcc (open): If the 'ate' repositioning
7772 operation fails, calls close _and_ returns a null pointer
7773 to indicate failure (27.8.1.3,4).
7774 * testsuite/27_io/filebuf_members.cc (test_06): Add.
7776 2003-02-04 Petur Runolfsson <peturr02@ru.is>
7778 * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
7780 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
7782 * docs/html/27_io/howto.html: New section on stdio_filebuf.
7783 * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
7784 * docs/html/documentation.html: Regenerate.
7786 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
7788 * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
7789 * docs/html/17_intro/porting.html: Regenerate.
7791 2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
7792 Phil Edwards <pme@gcc.gnu.org>
7794 * include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
7795 numeric_limits for bits-per-word values.
7796 (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
7797 Use __builtin_popcountl instead.
7798 (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
7799 _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
7800 Use __builtin_ctzl instead.
7801 (_S_bit_count, _S_first_one): Remove.
7802 * config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
7803 * src/Makefile.am (sources): Remove bitset.cc.
7804 * src/bitset.cc: Delete file.
7805 * src/Makefile.in: Regenerate.
7807 2003-02-03 Phil Edwards <pme@gcc.gnu.org>
7809 PR libstdc++/9527, PR libstdc++/8713
7810 * docs/html/install.html: Mention glibc version requirement.
7811 * docs/html/faq/index.html (3.8): New note, glibc 2.2.5+ is needed
7812 with 3.2.1+ (formatting bugfixes).
7813 * docs/html/faq/index.txt: Regenerate.
7815 2003-02-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
7818 * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
7821 * include/bits/valarray_before.h (__not_equal_to): Use != instead
7824 * testsuite/26_numerics/valarray_operators.cc: New test.
7826 2003-02-01 Phil Edwards <pme@gcc.gnu.org>
7828 * docs/html/faq/index.html: Correct link to libg++ information.
7829 * docs/html/faq/index.txt: Regenerated.
7831 2003-02-01 Paolo Carlini <pcarlini@unitus.it>
7832 Benjamin Kosnik <bkoz@redhat.com>
7834 Const correctness issue:
7835 http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
7836 * include/bits/locale_classes.h
7837 (locale::_Impl::_M_facets): Change type to const facet**.
7838 (locale::_Impl::_M_install_facet): Change declaration to
7840 (locale::facet::_M_references): Make mutable.
7841 (locale::facet::_M_add_reference): Declare const.
7842 (locale::facet::_M_remove_reference): Likewise.
7843 * include/bits/locale_facets.tcc
7844 (use_facet(const locale&)): Tweak for const facet** _M_facets.
7845 (has_facet(const locale&)): Likewise.
7847 (locale::facet::_M_add_reference): Adjust definition.
7848 (locale::facet::_M_remove_reference): Likewise.
7850 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
7851 const facet** _M_facets.
7852 (locale::_Impl::_Impl(const char*, size_t)): Likewise.
7853 (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
7854 (locale::_Impl::_M_install_facet): Adjust definition to take
7855 const facet* and for const facet** _M_facets.
7856 * testsuite/22_locale/locale/cons/8.cc: Add.
7858 2003-01-29 Mark Mitchell <mark@codesourcery.com>
7860 * include/std/std_limits.h (numeric_limits<float>::has_infinity):
7861 Use __FLT_HAS_INIFINITY__ to initialize.
7862 (numeric_limits<float>::has_quiet_NaN): Likewise.
7863 (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
7865 (numeric_limits<double>::has_quiet_NaN): Likewise.
7866 (numeric_limits<long double>::has_infinity): Use
7867 __LDBL_HAS_INIFINITY__ to initialize.
7868 (numeric_limits<long_double>::has_quiet_NaN): Likewise.
7870 2003-01-28 Nathan Sidwell <nathan@codesourcery.com>
7873 * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
7874 with bases which are very ambiguous.
7876 2003-01-28 Danny Smith <dannysmith@users.sourceforge.net>
7878 * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
7879 @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
7880 * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
7881 * src/Makefile.in: Regenerate.
7882 * libsupc++/Makefile.in: Regenerate.
7884 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
7886 * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
7887 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
7888 version_specific_libs is enabled.
7889 * aclocal.m4, configure: Rebuilt.
7891 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
7893 * include/bits/valarray_meta.h: Remove, split into ...
7894 * include/bits/valarray_before.h: ... this, and ...
7895 * include/bits/valarray_after.h: ... this.
7896 * include/std/std_valarray.h: Adjust.
7897 * include/Makefile.am (bits_headers): Adjust.
7898 * include/Makefile.in: Regenerate.
7900 2003-01-24 Andreas Schwab <schwab@suse.de>
7902 * config/linker-map.gnu: Fix for size_t variance.
7904 2003-01-23 Petur Runolfsson <peturr02@ru.is>
7907 * include/std/std_streambuf.h
7908 (basic_streambuf::basic_streambuf,
7909 basic_streambuf::~basic_streambuf,
7910 basic_streambuf::getloc, basic_streambuf::imbue):
7911 Remove _M_buf_locale_init
7912 * include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
7913 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
7914 * testsuite/27_io/streambuf_members.cc (test08): Add.
7915 * testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
7917 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
7919 Revert include ordering.
7920 * config/locale/generic/c_locale.h: Add include guards.
7921 * config/locale/gnu/c_locale.h: Same.
7922 * include/bits/locale_classes.h: Remove cctype include.
7923 * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
7924 * include/std/std_fstream.h: Remove streambuf include.
7925 * include/std/std_sstream.h: Remove streambuf include.
7927 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
7929 * configure.in (libtool_VERSION): To 6:0:0.
7930 * configure: Regenerated.
7931 * config/linker-map.gnu: Clean.
7933 * src/misc-inst.cc: Remove instantiations.
7935 * include/bits/stl_alloc.h (__malloc_alloc_template):
7937 (__default_alloc_template): To __pool_alloc.
7938 * src/stl-inst.cc: Same.
7939 * include/backward/alloc.h: Update.
7940 * testsuite/ext/allocators.cc: Update.
7942 * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
7943 really try to remove these if possible.
7944 * src/locale.cc (std): Same.
7946 * testsuite/abi_check.cc (check_version): Add.
7948 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
7949 Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
7950 Mark Mitchell <mark@codesourcery.com>
7953 * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
7954 (basic_filebuf::underflow): Declare.
7957 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
7959 * include/bits/locale_facets.h: Move non-facet classes requiring
7961 * include/bits/locale_classes.h: New.
7962 * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
7963 * include/bits/Makefile.in: Regenerate.
7965 * include/bits/locale_facets.tcc (__convert_from_v): Move to...
7966 * config/locale/gnu/c_locale.h: ...here.
7967 * config/locale/generic/c_locale.h: Same.
7969 * include/bits/locale_facets.tcc: Move declarations to...
7970 * include/bits/locale_facets.h: ...here.
7971 * include/bits/basic_ios.h: Tweak includes accordingly.
7972 * include/std/std_sstream.h: Add streambuf include.
7973 * include/std/std_fstream.h: Ditto.
7974 * include/std/std_locale.h: Add locale_classes.h include.
7975 * include/std/std_iosfwd.h: Tweak.
7976 * src/concept-inst.cc: Add iterator include.
7978 * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
7979 bits as unexported in the future.
7981 2003-01-21 Benjamin Kosnik <bkoz@redhat.com>
7983 Reshuffle 22_locale testsuite.
7984 * 22_locale/(codecvt.cc money_get.cc
7985 codecvt_members_char_char.cc money_get_members_char.cc
7986 codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
7987 codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
7988 codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
7989 moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
7990 collate_members_char.cc money_put.cc collate_members_wchar_t.cc
7991 money_put_members_char.cc ctor_copy_dtor.cc
7992 money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
7993 num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
7994 ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
7995 numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
7996 ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
7997 num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
7998 ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
7999 operators.cc ctype_widen_char.cc static_members.cc
8000 ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
8001 global_templates.cc time_get_members_wchar_t.cc, members.cc,
8002 time_put.cc, messages_byname.cc, time_put_members_char.cc,
8003 messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
8004 Split up into individual test cases...
8005 * 22_locale/codecvt/1.cc: New.
8006 * 22_locale/codecvt/2.cc: New.
8007 * 22_locale/codecvt/always_noconv/char/1.cc: New.
8008 * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
8009 * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
8010 * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
8011 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
8012 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
8013 * 22_locale/codecvt/encoding/char/1.cc: New.
8014 * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
8015 * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
8016 * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
8017 * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
8018 * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
8019 * 22_locale/codecvt/in/char/1.cc: New.
8020 * 22_locale/codecvt/in/char/wrapped_env.cc: New.
8021 * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
8022 * 22_locale/codecvt/in/wchar_t/1.cc: New.
8023 * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
8024 * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
8025 * 22_locale/codecvt/length/char/1.cc: New.
8026 * 22_locale/codecvt/length/char/wrapped_env.cc: New.
8027 * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
8028 * 22_locale/codecvt/length/wchar_t/1.cc: New.
8029 * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
8030 * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
8031 * 22_locale/codecvt/max_length/char/1.cc: New.
8032 * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
8033 * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
8034 * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
8035 * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
8036 * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
8037 * 22_locale/codecvt/out/char/1.cc: New.
8038 * 22_locale/codecvt/out/char/wrapped_env.cc: New.
8039 * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
8040 * 22_locale/codecvt/out/wchar_t/1.cc: New.
8041 * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
8042 * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
8043 * 22_locale/codecvt/unicode/char.cc: New.
8044 * 22_locale/codecvt/unicode/wchar_t.cc: New.
8045 * 22_locale/codecvt/unshift/char/1.cc: New.
8046 * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
8047 * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
8048 * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
8049 * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
8050 * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
8051 * 22_locale/collate/1.cc: New.
8052 * 22_locale/collate/2.cc: New.
8053 * 22_locale/collate/compare/char/1.cc: New.
8054 * 22_locale/collate/compare/char/2.cc: New.
8055 * 22_locale/collate/compare/char/wrapped_env.cc: New.
8056 * 22_locale/collate/compare/char/wrapped_locale.cc: New.
8057 * 22_locale/collate/compare/wchar_t/1.cc: New.
8058 * 22_locale/collate/compare/wchar_t/2.cc: New.
8059 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
8060 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
8061 * 22_locale/collate/hash/char/1.cc: New.
8062 * 22_locale/collate/hash/char/2.cc: New.
8063 * 22_locale/collate/hash/char/wrapped_env.cc: New.
8064 * 22_locale/collate/hash/char/wrapped_locale.cc: New.
8065 * 22_locale/collate/hash/wchar_t/1.cc: New.
8066 * 22_locale/collate/hash/wchar_t/2.cc: New.
8067 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
8068 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
8069 * 22_locale/collate/transform/char/2.cc: New.
8070 * 22_locale/collate/transform/char/wrapped_env.cc: New.
8071 * 22_locale/collate/transform/char/wrapped_locale.cc: New.
8072 * 22_locale/collate/transform/wchar_t/2.cc: New.
8073 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
8074 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
8075 * 22_locale/collate_byname/1.cc: New.
8076 * 22_locale/ctype/1.cc: New.
8077 * 22_locale/ctype/2.cc: New.
8078 * 22_locale/ctype/cons/char/1.cc: New.
8079 * 22_locale/ctype/cons/char/wrapped_env.cc: New.
8080 * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
8081 * 22_locale/ctype/is/char/1.cc: New.
8082 * 22_locale/ctype/is/char/2.cc: New.
8083 * 22_locale/ctype/is/char/3.cc: New.
8084 * 22_locale/ctype/is/char/wrapped_env.cc: New.
8085 * 22_locale/ctype/is/char/wrapped_locale.cc: New.
8086 * 22_locale/ctype/is/wchar_t/1.cc: New.
8087 * 22_locale/ctype/is/wchar_t/2.cc: New.
8088 * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
8089 * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
8090 * 22_locale/ctype/narrow/char/1.cc: New.
8091 * 22_locale/ctype/narrow/char/2.cc: New.
8092 * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
8093 * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
8094 * 22_locale/ctype/narrow/wchar_t/1.cc: New.
8095 * 22_locale/ctype/narrow/wchar_t/2.cc: New.
8096 * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
8097 * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
8098 * 22_locale/ctype/scan/char/1.cc: New.
8099 * 22_locale/ctype/scan/char/wrapped_env.cc: New.
8100 * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
8101 * 22_locale/ctype/scan/wchar_t/1.cc: New.
8102 * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
8103 * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
8104 * 22_locale/ctype/to/char/1.cc: New.
8105 * 22_locale/ctype/to/char/wrapped_env.cc: New.
8106 * 22_locale/ctype/to/char/wrapped_locale.cc: New.
8107 * 22_locale/ctype/to/wchar_t/1.cc: New.
8108 * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
8109 * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
8110 * 22_locale/ctype/widen/char/1.cc: New.
8111 * 22_locale/ctype/widen/char/wrapped_env.cc: New.
8112 * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
8113 * 22_locale/ctype/widen/wchar_t/1.cc: New.
8114 * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
8115 * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
8116 * 22_locale/facet/1.cc: New.
8117 * 22_locale/facet/2.cc: New.
8118 * 22_locale/global_templates/1.cc: New.
8119 * 22_locale/locale/cons/1.cc: New.
8120 * 22_locale/locale/cons/2.cc: New.
8121 * 22_locale/locale/cons/3.cc: New.
8122 * 22_locale/locale/cons/4.cc: New.
8123 * 22_locale/locale/cons/5.cc: New.
8124 * 22_locale/locale/cons/6.cc: New.
8125 * 22_locale/locale/cons/7.cc: New.
8126 * 22_locale/locale/global_locale_objects/1.cc: New.
8127 * 22_locale/locale/global_locale_objects/2.cc: New.
8128 * 22_locale/locale/global_locale_objects/3.cc: New.
8129 * 22_locale/locale/operations/1.cc: New.
8130 * 22_locale/locale/operations/2.cc: New.
8131 * 22_locale/messages/1.cc: New.
8132 * 22_locale/messages/2.cc: New.
8133 * 22_locale/messages/members/char/1.cc: New.
8134 * 22_locale/messages/members/char/2.cc: New.
8135 * 22_locale/messages/members/char/3.cc: New.
8136 * 22_locale/messages/members/char/wrapped_env.cc: New.
8137 * 22_locale/messages/members/char/wrapped_locale.cc: New.
8138 * 22_locale/messages_byname/1.cc: New.
8139 * 22_locale/money_get/1.cc: New.
8140 * 22_locale/money_get/2.cc: New.
8141 * 22_locale/money_get/get/char/1.cc: New.
8142 * 22_locale/money_get/get/char/2.cc: New.
8143 * 22_locale/money_get/get/char/3.cc: New.
8144 * 22_locale/money_get/get/char/4.cc: New.
8145 * 22_locale/money_get/get/char/5.cc: New.
8146 * 22_locale/money_get/get/char/6.cc: New.
8147 * 22_locale/money_get/get/char/7.cc: New.
8148 * 22_locale/money_get/get/char/8.cc: New.
8149 * 22_locale/money_get/get/char/wrapped_env.cc: New.
8150 * 22_locale/money_get/get/char/wrapped_locale.cc: New.
8151 * 22_locale/money_get/get/wchar_t/1.cc: New.
8152 * 22_locale/money_get/get/wchar_t/2.cc: New.
8153 * 22_locale/money_get/get/wchar_t/3.cc: New.
8154 * 22_locale/money_get/get/wchar_t/4.cc: New.
8155 * 22_locale/money_get/get/wchar_t/5.cc: New.
8156 * 22_locale/money_get/get/wchar_t/6.cc: New.
8157 * 22_locale/money_get/get/wchar_t/7.cc: New.
8158 * 22_locale/money_get/get/wchar_t/8.cc: New.
8159 * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
8160 * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
8161 * 22_locale/money_put/1.cc: New.
8162 * 22_locale/money_put/2.cc: New.
8163 * 22_locale/money_put/put/char/1.cc: New.
8164 * 22_locale/money_put/put/char/2.cc: New.
8165 * 22_locale/money_put/put/char/3.cc: New.
8166 * 22_locale/money_put/put/char/4.cc: New.
8167 * 22_locale/money_put/put/char/5.cc: New.
8168 * 22_locale/money_put/put/char/6.cc: New.
8169 * 22_locale/money_put/put/char/wrapped_env.cc: New.
8170 * 22_locale/money_put/put/char/wrapped_locale.cc: New.
8171 * 22_locale/money_put/put/wchar_t/1.cc: New.
8172 * 22_locale/money_put/put/wchar_t/2.cc: New.
8173 * 22_locale/money_put/put/wchar_t/3.cc: New.
8174 * 22_locale/money_put/put/wchar_t/4.cc: New.
8175 * 22_locale/money_put/put/wchar_t/5.cc: New.
8176 * 22_locale/money_put/put/wchar_t/6.cc: New.
8177 * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
8178 * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
8179 * 22_locale/moneypunct/1.cc: New.
8180 * 22_locale/moneypunct/2.cc: New.
8181 * 22_locale/moneypunct/3.cc: New.
8182 * 22_locale/moneypunct/members/char/1.cc: New.
8183 * 22_locale/moneypunct/members/char/2.cc: New.
8184 * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
8185 * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
8186 * 22_locale/moneypunct/members/wchar_t/1.cc: New.
8187 * 22_locale/moneypunct/members/wchar_t/2.cc: New.
8188 * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
8189 * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
8190 * 22_locale/moneypunct_byname/1.cc: New.
8191 * 22_locale/num_get/1.cc: New.
8192 * 22_locale/num_get/2.cc: New.
8193 * 22_locale/num_get/get/char/1.cc: New.
8194 * 22_locale/num_get/get/char/2.cc: New.
8195 * 22_locale/num_get/get/char/3.cc: New.
8196 * 22_locale/num_get/get/char/4.cc: New.
8197 * 22_locale/num_get/get/char/5.cc: New.
8198 * 22_locale/num_get/get/char/6.cc: New.
8199 * 22_locale/num_get/get/char/wrapped_env.cc: New.
8200 * 22_locale/num_get/get/char/wrapped_locale.cc: New.
8201 * 22_locale/num_get/get/wchar_t/1.cc: New.
8202 * 22_locale/num_get/get/wchar_t/2.cc: New.
8203 * 22_locale/num_get/get/wchar_t/3.cc: New.
8204 * 22_locale/num_get/get/wchar_t/4.cc: New.
8205 * 22_locale/num_get/get/wchar_t/5.cc: New.
8206 * 22_locale/num_get/get/wchar_t/6.cc: New.
8207 * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
8208 * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
8209 * 22_locale/num_put/1.cc: New.
8210 * 22_locale/num_put/2.cc: New.
8211 * 22_locale/num_put/put/char/1.cc: New.
8212 * 22_locale/num_put/put/char/2.cc: New.
8213 * 22_locale/num_put/put/char/3.cc: New.
8214 * 22_locale/num_put/put/char/4.cc: New.
8215 * 22_locale/num_put/put/char/5.cc: New.
8216 * 22_locale/num_put/put/char/wrapped_env.cc: New.
8217 * 22_locale/num_put/put/char/wrapped_locale.cc: New.
8218 * 22_locale/num_put/put/wchar_t/1.cc: New.
8219 * 22_locale/num_put/put/wchar_t/2.cc: New.
8220 * 22_locale/num_put/put/wchar_t/3.cc: New.
8221 * 22_locale/num_put/put/wchar_t/4.cc: New.
8222 * 22_locale/num_put/put/wchar_t/5.cc: New.
8223 * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
8224 * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
8225 * 22_locale/numpunct/1.cc: New.
8226 * 22_locale/numpunct/2.cc: New.
8227 * 22_locale/numpunct/members/char/1.cc: New.
8228 * 22_locale/numpunct/members/char/2.cc: New.
8229 * 22_locale/numpunct/members/char/wrapped_env.cc: New.
8230 * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
8231 * 22_locale/numpunct/members/wchar_t/1.cc: New.
8232 * 22_locale/numpunct/members/wchar_t/2.cc: New.
8233 * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
8234 * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
8235 * 22_locale/numpunct_byname/1.cc: New.
8236 * 22_locale/numpunct_byname/2.cc: New.
8237 * 22_locale/time_get/1.cc: New.
8238 * 22_locale/time_get/2.cc: New.
8239 * 22_locale/time_get/date_order/char/1.cc: New.
8240 * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
8241 * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
8242 * 22_locale/time_get/date_order/wchar_t/1.cc: New.
8243 * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
8244 * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
8245 * 22_locale/time_get/get_date/char/1.cc: New.
8246 * 22_locale/time_get/get_date/char/2.cc: New.
8247 * 22_locale/time_get/get_date/char/3.cc: New.
8248 * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
8249 * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
8250 * 22_locale/time_get/get_date/wchar_t/1.cc: New.
8251 * 22_locale/time_get/get_date/wchar_t/2.cc: New.
8252 * 22_locale/time_get/get_date/wchar_t/3.cc: New.
8253 * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
8254 * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
8255 * 22_locale/time_get/get_monthname/char/1.cc: New.
8256 * 22_locale/time_get/get_monthname/char/2.cc: New.
8257 * 22_locale/time_get/get_monthname/char/3.cc: New.
8258 * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
8259 * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
8260 * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
8261 * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
8262 * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
8263 * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
8264 * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
8265 * 22_locale/time_get/get_time/char/1.cc: New.
8266 * 22_locale/time_get/get_time/char/2.cc: New.
8267 * 22_locale/time_get/get_time/char/3.cc: New.
8268 * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
8269 * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
8270 * 22_locale/time_get/get_time/wchar_t/1.cc: New.
8271 * 22_locale/time_get/get_time/wchar_t/2.cc: New.
8272 * 22_locale/time_get/get_time/wchar_t/3.cc: New.
8273 * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
8274 * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
8275 * 22_locale/time_get/get_weekday/char/1.cc: New.
8276 * 22_locale/time_get/get_weekday/char/2.cc: New.
8277 * 22_locale/time_get/get_weekday/char/3.cc: New.
8278 * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
8279 * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
8280 * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
8281 * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
8282 * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
8283 * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
8284 * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
8285 * 22_locale/time_get/get_year/char/1.cc: New.
8286 * 22_locale/time_get/get_year/char/3.cc: New.
8287 * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
8288 * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
8289 * 22_locale/time_get/get_year/wchar_t/1.cc: New.
8290 * 22_locale/time_get/get_year/wchar_t/3.cc: New.
8291 * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
8292 * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
8293 * 22_locale/time_put/1.cc: New.
8294 * 22_locale/time_put/2.cc: New.
8295 * 22_locale/time_put/put/char/1.cc: New.
8296 * 22_locale/time_put/put/char/10.cc: New.
8297 * 22_locale/time_put/put/char/2.cc: New.
8298 * 22_locale/time_put/put/char/3.cc: New.
8299 * 22_locale/time_put/put/char/4.cc: New.
8300 * 22_locale/time_put/put/char/5.cc: New.
8301 * 22_locale/time_put/put/char/6.cc: New.
8302 * 22_locale/time_put/put/char/7.cc: New.
8303 * 22_locale/time_put/put/char/8.cc: New.
8304 * 22_locale/time_put/put/char/9.cc: New.
8305 * 22_locale/time_put/put/char/wrapped_env.cc: New.
8306 * 22_locale/time_put/put/char/wrapped_locale.cc: New.
8307 * 22_locale/time_put/put/wchar_t/1.cc: New.
8308 * 22_locale/time_put/put/wchar_t/10.cc: New.
8309 * 22_locale/time_put/put/wchar_t/2.cc: New.
8310 * 22_locale/time_put/put/wchar_t/3.cc: New.
8311 * 22_locale/time_put/put/wchar_t/4.cc: New.
8312 * 22_locale/time_put/put/wchar_t/5.cc: New.
8313 * 22_locale/time_put/put/wchar_t/6.cc: New.
8314 * 22_locale/time_put/put/wchar_t/7.cc: New.
8315 * 22_locale/time_put/put/wchar_t/8.cc: New.
8316 * 22_locale/time_put/put/wchar_t/9.cc: New.
8317 * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
8318 * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
8320 2003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
8322 * config/locale/generic/messages_members.h
8323 (messages_byname<_CharT>::messages_byname): Use this-> to refer to
8324 unqualified members of base clasess.
8326 2003-01-16 Mark Mitchell <mark@codesourcery.com>
8327 Jeffrey Oldham <oldham@codesourcery.com>
8329 * config/locale/gnu/messages_members.h: Use this-> to refer to
8330 unqualified members of base clasess.
8331 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
8332 * include/bits/codecvt.h: Likewise.
8333 * include/bits/deque.tcc: Likewise.
8334 * include/bits/fstream.tcc: Likewise.
8335 * include/bits/istream.tcc: Likewise.
8336 * include/bits/list.tcc: Likewise.
8337 * include/bits/locale_facets.h: Likewise.
8338 * include/bits/ostream.tcc: Likewise.
8339 * include/bits/sstream.tcc: Likewise.
8340 * include/bits/stl_bvector.h: Likewise.
8341 * include/bits/stl_deque.h: Likewise.
8342 * include/bits/stl_list.h: Likewise.
8343 * include/bits/stl_tree.h: Likewise.
8344 * include/bits/stl_vector.h: Likewise.
8345 * include/bits/vector.tcc: Likewise.
8346 * include/ext/ropeimpl.h: Likewise.
8347 * include/ext/stdio_filebuf.h: Likewise.
8348 * include/ext/stl_rope.h: Likewise.
8349 * include/std/std_fstream.h: Likewise.
8350 * include/std/std_sstream.h: Likewise.
8352 2003-01-15 Phil Edwards <pme@gcc.gnu.org>
8354 * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
8356 2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
8358 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
8359 GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
8360 * aclocal.m4: Regenerate.
8361 * configure: Regenerate.
8362 * testsuite/Makefile.am (all-local): Add conditional rule to
8363 generate testsuite_wchar_t.
8364 * testsuite/Makefile.in: Regenerate.
8365 * testsuite/lib/libstdc++-v3-dg.exp
8366 (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
8367 testsuite_wchar_t is not present in the build directory.
8368 * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
8369 Remove setulimit bits.
8370 * testsuite/26_numerics/complex_value.cc: Set to noopts.
8371 * testsuite/Makefile.am (CLEANFILES): Add.
8372 * testsuite/Makefile.in: Regenerate.
8374 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
8376 * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
8379 2003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
8381 Further conform g++'s __vmi_class_type_info to the C++ ABI
8383 * libsupc++/cxxabi.h
8384 (__vmi_class_type_info::__flags_masks): Remove enumerations not
8385 required by the specification.
8387 2003-01-12 Benjamin Kosnik <bkoz@redhat.com>
8389 Renames, namespaces for testsuite utilities.
8390 * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
8391 (gnu_allocator_tracker): Rename to allocation_tracker.
8392 (gnu_new_allocator): Rename to tracker_alloc.
8393 (__set_testsuite_memlimit): Rename to set_memory_limits.
8394 (gnu_assignment_operator): Rename to assignment_operator.
8395 (gnu_destructor): Rename to destructor.
8396 (gnu_copy_tracker): Rename to copy_tracker.
8397 (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
8398 (run_tests_wrapped_locale): New.
8399 (run_tests_wrapped_env): New.
8400 * testsuite/testsuite_hooks.cc: Same.
8401 (class locale_data): Add.
8402 (class enviornment_variable): Add.
8403 (class not_found): Add.
8404 * testsuite/testsuite_allocator.h: Same.
8405 * testsuite/testsuite_allocator.cc: Same.
8406 * testsuite/23_containers/deque_ctor.cc
8407 (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
8409 Change gnu_new_allocator to tracker_alloc.
8410 Change gnu_counting_struct to counter.
8411 Change gnu_copy_tracker to copy_tracker.
8412 Change gnu_copy_constructor to copy_constructor.
8413 Change gnu_assignment_operator to assignment_operator.
8415 * testsuite/23_containers/vector_capacity.cc: Same.
8416 * testsuite/23_containers/vector_ctor.cc (test01): Same.
8417 * testsuite/23_containers/list_modifiers.cc: Change
8418 gnu_copy_tracker to copy_tracker.
8419 * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
8420 __set_testsuite_memlimit to set_memory_limits.
8421 * testsuite/21_strings/insert.cc (main): Same.
8422 * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
8423 * testsuite/27_io/stringstream.cc: Same.
8424 * testsuite/27_io/stringbuf.cc: Same.
8425 * testsuite/27_io/streambuf.cc: Same.
8426 * testsuite/27_io/ostream.cc: Same.
8427 * testsuite/27_io/istream.cc: Same.
8428 * testsuite/27_io/fstream.cc: Same.
8429 * testsuite/lib/libstdc++-v3-dg.exp
8430 (libstdc++-v3-list-sourcefiles): Additionally handle files two and
8431 three levels deeper in glob patterns.
8433 2003-01-11 Phil Edwards <pme@gcc.gnu.org>
8435 * docs/doxygen/tables.html: Finished now.
8436 * docs/doxygen/user.cfg.in: Update to latest version of Doxygen.
8437 * include/bits/basic_ios.h (basic_ios::rdbuf): Add example to
8440 * include/bits/deque.tcc, include/bits/stl_alloc.h,
8441 include/bits/stl_deque.h, include/bits/stl_list.h,
8442 include/bits/stl_vector.h: Remove _GLIBCPP_DEPRECATED bits scheduled
8445 2003-01-09 Benjamin Kosnik <bkoz@redhat.com>
8447 * configure.in: Revert.
8448 * configure: Regenerate.
8450 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
8452 * include/Makefile.am (install-data-local): Prepend
8453 $(DESTDIR) to destination paths in all (un)installation
8454 commands. Use ${c_base_builddir} and ${std_builddir}
8455 as destination subdirectories to achieve consistency with
8456 preceding mkinstalldirs commands. No effect because both
8457 variables contain "." only.
8458 * include/Makefile.in: Regenerate.
8460 2003-01-08 Benjamin Kosnik <bkoz@redhat.com>
8462 * include/Makefile.am (stamp-*): Add checks for existing stamps.
8463 * include/Makefile.in: Regenerate.
8465 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
8466 * aclocal.m4: Regenerate.
8468 * configure.in: Don't add new multi-do rules every time the
8469 directory is reconfigured.
8470 * configure: Regenerate.
8472 2003-01-08 Brad Spencer <spencer@infointeractive.com>
8473 Nathan Myers <ncm@cantrip.org>
8475 * src/Makefile.am (stamp-debug): Clean.
8476 * src/Makefile.in: Regenerate.
8478 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
8481 * Makefile.am (distclean-multi): Fix.
8482 * Makefile.in: Regenerate.
8484 2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
8486 * include/bits/locale_facets.h (messages): Move ctor, dtor
8488 (__timepunct): Same.
8489 * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
8490 definitions. Conditionalize for GNU systems.
8491 * config/locale/generic/messages_members.h (messages): Add dtor, ctor
8493 * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
8494 definitions. Conditionalize for GNU systems.
8495 * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
8497 * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
8498 * src/locale.cc: Define.
8499 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
8501 * config/locale/gnu/time_members.h: Use it.
8502 * config/locale/gnu/messages_members.h: Use it.
8503 * config/linker-map.gnu: Add locale::facets details.
8504 * include/Makefile.am (target_headers_extra): Add time_members.h.
8505 * include/Makefile.in: Regenerate.
8506 * acinclude.m4: Export CTIME_H.
8507 * aclocal.m4: Regenerate.
8508 * configure: Regnerate.
8510 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
8513 (codecvt<char, char, mbstate_t>::do_in, do_out):
8514 Tweak parameters to avoid unused parameter warnings.
8516 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
8519 * include/bits/locale_facets.cc (num_put::_M_convert_float):
8520 Limit __prec to digits10 + 2, not digits10 + 1, taking into
8521 account the possibility of %{g,G} conversion specifiers
8522 inside _S_format_float.
8523 * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
8525 2003-01-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8527 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
8528 libstdc++-v3-list-sourcefiles): Additionally handle files one
8529 level deeper in glob patterns.
8531 * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
8532 * testsuite/27_io/istream_extractor_arith/01.cc,
8533 testsuite/27_io/istream_extractor_arith/02.cc,
8534 testsuite/27_io/istream_extractor_arith/03.cc,
8535 testsuite/27_io/istream_extractor_arith/06.cc,
8536 testsuite/27_io/istream_extractor_arith/07.cc,
8537 testsuite/27_io/istream_extractor_arith/08.cc,
8538 testsuite/27_io/istream_extractor_arith/09.cc,
8539 testsuite/27_io/istream_extractor_arith/10.cc,
8540 testsuite/27_io/istream_extractor_arith/11.cc,
8541 testsuite/27_io/istream_extractor_arith/12.cc,
8542 testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
8543 * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
8546 2003-01-05 Paolo Carlini <pcarlini@unitus.it>
8550 (codecvt<char, char, mbstate_t>::do_in, do_out):
8551 Implement the resolution of DR19 (TC).
8552 * testsuite/22_locale/codecvt_members_char_char.cc
8555 2003-01-02 Jason Merrill <jason@redhat.com>
8557 * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
8558 *__mem is also an output.
8559 * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.