1 2004-09-24 Paul Brook <paul@codesourcery.com>
3 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
5 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
6 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
7 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
8 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
9 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
10 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
12 2004-09-23 Zack Weinberg <zack@codesourcery.com>
14 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
15 * testsuite/23_containers/map/operators/1_neg.cc
16 * testsuite/23_containers/set/operators/1_neg.cc:
17 Update locations and/or regexps of dg-error markers.
19 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
21 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
22 Add rule to build ${host_builddir}/gthr-tpf.h.
23 * include/Makefile.in: Regenerate.
25 2004-09-23 Paolo Carlini <pcarlini@suse.de>
26 Magnus Fromreide <magfr@lysator.liu.se>
28 * include/bits/boost_concept_check.h (struct _SequenceConcept):
29 Remove wrong requirement, i.e., not present in Table 67.
31 2004-09-21 Paolo Carlini <pcarlini@suse.de>
33 PR libstdc++/12882 (cont)
34 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
35 * configure: Regenerate.
36 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
37 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
38 trivial showmanyc for large files too.
40 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
42 * include/bits/stl_algo.h (remove): Remove too restrictive
45 2004-09-17 Paolo Carlini <pcarlini@suse.de>
47 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
48 as per Nathan's original suggestion.
50 2004-09-17 Paolo Carlini <pcarlini@suse.de>
52 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
54 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
55 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
56 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
58 2004-09-17 Paolo Carlini <pcarlini@suse.de>
59 Andrea Arcangeli <andrea@suse.de>
61 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
62 call unnecessarily sync, that is fflush: the library, since 3.4.0
63 does not use buffered fread/fwrite.
64 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
66 2004-09-15 Mark Mitchell <mark@codesourcery.com>
68 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
70 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
72 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
73 (__cxa_vec_new): Use it.
74 (__cxa_vec_new2): Likewise.
75 (__cxa_vec_new3): Likewise.
76 (__cxa_vec_cdtor): Likewise.
77 (__cxa_vec_cctor): Likeiwse.
78 (__cxa_vec_dtor): Likewise.
79 (__cxa_vec_cleanup): Likewise.
80 (__cxa_vec_delete2): Likewise.
81 (__cxa_vec_delete3): Likewise.
82 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
83 (__cxa_vec_new2): Likewise.
84 (__cxa_vec_new3): Likewise.
85 (__cxa_vec_cdtor): Likewise.
86 (__cxa_vec_cctor): Likeiwse.
87 (__cxa_vec_dtor): Likewise.
88 (__cxa_vec_cleanup): Likewise.
89 (__cxa_vec_delete2): Likewise.
90 (__cxa_vec_delete3): Likewise.
91 (__aeabi_vec_ctor_nocookie_nodtor): New function.
92 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
93 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
94 (__aeabi_vec_new_cookie_noctor): Likewise.
95 (__aeabi_vec_new_nocookie): Likewise.
96 (__aeabi_vec_new_cookie_nodtor): Likewise.
97 (__aeabi_vec_new_cookie): Likewise.
98 (__aeabi_vec_dtor): Likewise.
99 (__aeabi_vec_dtor_cookie): Likewise.
100 (__aeabi_vec_delete): Likewise.
101 (__aeabi_vec_delete3): Likewise.
102 (__aeabi_vec_delete3_nodtor): Likewise.
103 (__aeabi_atexit): Likewise.
105 2004-09-14 Nathan Myers <ncm@cantrip.org>
107 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
108 for 11722: copy can replace move; the common case is __avail == 0.
110 2004-09-14 Paolo Carlini <pcarlini@suse.de>
112 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
113 to __is_scalar, more clear and consistent with "tr1" naming.
114 * include/bits/stl_algobase.h: Update consistently throughout.
116 2004-09-13 Paolo Carlini <pcarlini@suse.de>
119 * include/std/std_fstream.h (xsgetn): Declare only.
120 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
121 always_noconv() case: when __n > __buflen, copy the available
122 buffer and issue a direct read.
123 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
125 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
128 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
130 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
131 libstdc++_maybe_build_wrapper instead of using local code.
133 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
135 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
137 2004-09-03 Jan Beulich <jbeulich@novell.com>
139 * crossconfig.m4: Add NetWare as a target.
140 * configure: Regenerate.
142 2004-09-02 Mark Mitchell <mark@codesourcery.com>
144 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
147 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
148 Simon Richter <Simon.Richter@hogyros.de>
151 * include/bits/istream.tcc: Add extern template for iostream
152 char and wchar_t instantiations.
154 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
155 Leland Wang <llwang@infor.org>
158 * include/ext/ropeimpl.h (rope::_S_compare): Use
159 _Rope_constants::_S_leaf.
161 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
164 * include/Makefile.am (ext_headers): Remove demangle.h.
165 * include/Makefile.in: Regenerate.
166 * include/ext/demangle.h: Remove.
168 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
171 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
173 (__pool): New, specialize.
174 (__common_pool): New, static bits here.
175 (__per_type_pool): New, and here.
176 (__mt_alloc_base): New.
177 (__mt_alloc): Add template parameter, inherit from it.
178 * src/allocator.cc: Split this...
179 * src/allocator-inst.cc: And this...
180 * src/pool_allocator.cc: ...into this.
181 * src/mt_allocator.cc: ... and this. Add definitions for
183 * src/Makefile.am (sources): Split allocator.cc to
184 pool_allocator.cc and mt_allocator.cc.
185 * src/Makefile.in: Regenerate.
186 * config/linker-map.gnu: Add symbols.
187 * docs/html/ext/mt_allocator.html: Document new design.
188 * testsuite/ext/mt_allocator/tune-1.cc: New.
189 * testsuite/ext/mt_allocator/tune-2.cc: New.
190 * testsuite/ext/mt_allocator/tune-3.cc: New.
191 * testsuite/ext/mt_allocator/tune-4.cc: New.
193 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
194 * testsuite/ext/allocators.cc: Use check_new, split into...
195 * testsuite/ext/mt_allocator/check_new.cc: this.
196 * testsuite/ext/pool_allocator/check_new.cc: this.
197 * testsuite/ext/malloc_allocator/check_new.cc: this.
198 * testsuite/ext/debug_allocator/check_new.cc: this.
199 * testsuite/ext/mt_allocator/instantiate.cc: this.
200 * testsuite/ext/pool_allocator/instantiate.cc: this.
201 * testsuite/ext/malloc_allocator/instantiate.cc: this.
202 * testsuite/ext/debug_allocator/instantiate.cc: this.
204 2004-08-30 Phil Edwards <phil@codesourcery.com>
206 * docs/html/install.html: Update locales list (from Paolo).
207 Remove other redundant information and point to the GCC install
210 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
212 * include/ext/pool_allocator.h: Rename __pool_base to
214 * src/allocator.cc: Same.
215 * config/linker-map.gnu: Same.
217 2004-08-30 Paolo Carlini <pcarlini@suse.de>
218 Kenneth C. Schalk <ken@xorian.net>
221 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
222 Check the return value of fclose/sync, loop on EINTR.
223 (__basic_file<char>::sys_open): Likewise, for sync.
225 2004-08-29 Paolo Carlini <pcarlini@suse.de>
227 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
228 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
229 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
230 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
231 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
233 2004-08-27 Jason Merrill <jason@redhat.com>
236 * libsupc++/guard.cc (static_mutex): Internal class implementing a
237 recursive mutex which controls initialization of local statics.
238 (__gnu_cxx::recursive_init): New exception class.
239 (__cxa_guard_acquire): Deal with locking and recursion detection.
240 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
242 2004-08-27 Matthias Klose <doko@debian.org>
244 * configure.host: For mips*-*-linux* update cpu_include_dir
245 after atomicity_dir is set.
247 2004-08-27 Matthias Klose <doko@debian.org>
249 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
250 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
251 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
254 2004-08-27 Paolo Carlini <pcarlini@suse.de>
256 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
257 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
258 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
259 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
260 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
262 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
264 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
265 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
266 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
267 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
269 2004-08-25 Paolo Carlini <pcarlini@suse.de>
271 PR libstdc++/17038 (partial)
272 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
274 * include/bits/locale_facets.h (class __timepunct): Add FIXME
275 comment about _M_put.
276 * config/locale/generic/time_members.cc (_M_put): Always null
278 * config/locale/gnu/time_members.cc (_M_put): Likewise.
279 * testsuite/22_locale/time_put/put/char/17038.cc: New.
280 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
282 2004-08-24 Paolo Carlini <pcarlini@suse.de>
284 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
285 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
286 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
287 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
288 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
289 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
291 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
293 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
295 2004-08-22 Matthias Klose <doko@debian.org>
297 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
298 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
300 2004-08-23 Paolo Carlini <pcarlini@suse.de>
302 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
303 * aclocal.m4: Regenerate with automake-1.9.1.
304 * configure: Regenerate.
305 * Makefile.in: Likewise.
306 * include/Makefile.in: Likewise.
307 * libmath/Makefile.in: Likewise.
308 * libsupc++/Makefile.in: Likewise.
309 * po/Makefile.in: Likewise.
310 * src/Makefile.in: Likewise.
311 * testsuite/Makefile.in: Likewise.
313 2004-08-22 Paolo Carlini <pcarlini@suse.de>
315 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
316 to a signed type, long according to the resolution of DR 359.
317 * testsuite/22_locale/num_put/put/char/9.cc: New.
318 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
320 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
321 Simplify a bit: no need to clear showpos.
323 2004-08-21 Paolo Carlini <pcarlini@suse.de>
325 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
328 2004-08-21 Paolo Carlini <pcarlini@suse.de>
330 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
331 wchar_t type for the fill argument; minor formatting tweaks.
332 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
333 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
334 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
335 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
336 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
337 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
339 2004-08-21 Paolo Carlini <pcarlini@suse.de>
341 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
342 with _M_word != _M_local_word two times, redundantly.
344 2004-08-20 Jason Merrill <jason@redhat.com>
346 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
347 _GLIBCXX_ to #pragma lines.
348 * include/Makefile.in: Update.
350 2004-08-20 Paolo Carlini <pcarlini@suse.de>
352 PR libstdc++/7219 (continued)
353 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
355 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
356 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
358 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
360 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
362 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
363 barrier to locking asm.
365 2004-08-20 Paolo Carlini <pcarlini@suse.de>
367 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
368 actually the warning is a front-end bug (c++/17120).
370 2004-08-20 Matthias Klose <doko@debian.org>
372 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
374 2004-08-20 Paolo Carlini <pcarlini@suse.de>
376 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
377 used as truth value warning.
379 2004-08-20 Paolo Carlini <pcarlini@suse.de>
381 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
384 2004-08-20 Paolo Carlini <pcarlini@suse.de>
386 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
388 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
390 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
392 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
394 2004-08-19 Paolo Carlini <pcarlini@suse.de>
396 * testsuite/performance/20_util/allocator/insert.cc: For std::map
397 instantiate the allocator for a correct pair type.
398 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
399 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
400 * testsuite/performance/20_util/allocator/producer_consumer.cc:
403 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
404 minor formatting fixes.
405 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
407 2004-08-19 Paolo Carlini <pcarlini@suse.de>
409 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
411 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
412 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
413 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
414 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
415 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
416 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
417 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
419 2004-08-19 Paolo Carlini <pcarlini@suse.de>
421 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
423 2004-08-18 Matthias Klose <doko@debian.org>
425 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
426 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
427 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
429 2004-08-17 Paolo Carlini <pcarlini@suse.de>
431 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
433 2004-08-17 Paolo Carlini <pcarlini@suse.de>
435 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
437 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
439 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
441 2004-08-16 Paolo Carlini <pcarlini@suse.de>
443 * include/bits/indirect_array.h: Trivial formatting fixes.
444 * include/bits/valarray_after.h: Likewise.
445 * include/bits/valarray_array.h: Likewise.
446 * src/valarray-inst.cc: Likewise.
448 2004-08-15 Paolo Carlini <pcarlini@suse.de>
450 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
451 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
452 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
454 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
455 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
456 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
457 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
458 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
460 2004-08-15 Paolo Carlini <pcarlini@suse.de>
462 * include/bits/deque.tcc: Trivial formatting fixes.
464 2004-08-15 Paolo Carlini <pcarlini@suse.de>
466 * include/bits/deque.tcc: Trivial formatting fixes.
468 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
469 Remove unneded typedef.
471 * include/bits/locale_facets.tcc: Very minor tweaks.
473 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
474 type for the fill argument.
475 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
476 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
477 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
478 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
479 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
480 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
481 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
482 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
484 2004-08-13 Paolo Carlini <pcarlini@suse.de>
486 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
487 memmove is not needed, memcpy suffices.
489 2004-08-13 Paolo Carlini <pcarlini@suse.de>
491 * include/std/std_fstream.h (class basic_ifstream,
492 class basic_ofstream, class basic_fstream): Add const overloads
493 of is_open, as per DR 365 [WP].
494 * docs/html/ext/howto.html: Add an entry for DR 365.
496 2004-08-12 Paolo Carlini <pcarlini@suse.de>
498 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
500 2004-08-12 Paolo Carlini <pcarlini@suse.de>
503 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
504 to the returned value, reorganize a bit.
505 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
506 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
508 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
509 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
510 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
511 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
513 2004-08-12 Paul Brook <paul@codesourcery.com>
515 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
516 _GLIBCXX_CXA_VEC_CTOR_RETURN.
517 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
518 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
519 __cxa_vec_ctor_return.
520 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
521 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
523 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
525 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
526 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
527 src/Makefile.in, testsuite/Makefile.in: Regenerate
529 2004-08-12 Jan Beulich <jbeulich@novell.com>
531 * config/locale/generic/ctype_members.cc
532 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
533 initializer for return value, as that is invalid for enumerated types.
534 * config/locale/gnu/ctype_members.cc
535 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
537 2004-08-11 Paolo Carlini <pcarlini@suse.de>
539 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
541 2004-08-11 Paolo Carlini <pcarlini@suse.de>
543 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
545 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
546 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
547 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
548 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
549 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
550 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
551 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
552 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
553 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
554 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
555 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
556 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
557 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
558 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
559 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
560 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
561 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
562 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
563 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
564 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
565 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
567 2004-08-11 Paolo Carlini <pcarlini@suse.de>
568 Petur Runolfsson <peturr02@ru.is>
571 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
572 standard streams are constructed.
573 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
575 2004-08-09 Paolo Carlini <pcarlini@suse.de>
577 * include/bits/stl_bvector.h: Trivial formatting fixes.
579 2004-08-09 Paolo Carlini <pcarlini@suse.de>
581 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
583 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
584 Paolo Carlini <pcarlini@suse.de>
586 * src/debug.cc (_Error_formatter::_M_print_string): In order
587 to print individual words from __string, _M_format_word can't
588 be called since may be just sprintf, thus ignoring completely
589 __n: instead, use memmove and append '\0' by hand.
591 2004-08-07 Paolo Carlini <pcarlini@suse.de>
593 * config/locale/generic/c_locale.h (__convert_from_v): Don't
594 use a default for __prec, assume __prec >= 0 and simplify.
595 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
596 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
597 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
599 2004-08-04 Phil Edwards <phil@codesourcery.com>
601 * docs/html/configopts.html: Emphasize that options change.
602 * docs/html/17_intro/configury.html: Update links.
604 2004-08-03 Paolo Carlini <pcarlini@suse.de>
606 * include/bits/list.tcc: Trivial formatting fixes.
608 2004-08-03 Mark Mitchell <mark@codesourcery.com>
610 * libsupc++/new_op.cc: Update comments.
611 * libsupc++/del_op.cc: Likewise.
613 2004-08-02 Mark Mitchell <mark@codesourcery.com>
615 * libsupc++/cxxabi.h: Make all declarations have default
617 * libsupc++/exception: Likewise.
618 * libsupc++/new: Likewise.
619 * libsupc++/typeinfo: Likewise.
620 * libsupc++/unwind-cxx.h: Likewise.
621 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
622 the __cxxabiv1 namespace.
623 (__cxa_free_exception): Likewise.
624 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
625 (__cxa_bad_typeid): Likewise.
626 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
627 (__cxa_end_catch): Likewise.
628 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
629 (__cxa_get_globals): Likewise.
630 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
631 (__cxa_rethrow): Likewise.
632 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
633 * libsupc++/eh_type.cc: Include <cxxabi.h>.
635 * Makefile.am (hosted_source): Add libmath and testsuite.
636 (SUBDIRS): Remove them.
637 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
638 on arm*-*-symbianelf*.
639 * crossconfig.m4: Add arm*-*-symbianelf* support.
640 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
641 when freestanding. Do not bring names into std:: namespace with
642 "using" when freestanding. Declare required functions and macros
644 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
646 * libsupc++/del_op.cc: Declare "free" only when freestanding.
647 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
648 (malloc): Declare when freestanding.
651 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
653 (__cxa_free_exception): Likewise for free.
654 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
655 * libsupc++/pure.cc (writestr): Define to nothing when
657 * libsupc++/vterminate.cc: Do not define anything when
659 * Makefile.in: Regenerated.
660 * aclocal.m4: Likewise.
661 * configure: Likewise.
662 * include/Makefile.in: Likewise.
663 * libmath/Makefile.in: Likewise.
664 * libsupc++/Makefile.in: Likewise.
665 * po/Makefile.in: Likewise.
666 * src/Makefile.in: Likewise.
667 * testsuite/Makefile.in: Likewise.
669 2004-08-01 Matt Austern <austern@apple.com>
672 * include/bits/stl_list.h (_M_create_node): Remove unused
673 zero-argument version.
674 * include/ext/slist (_M_create_node): Pass two arguments to
675 allocator's construct() member function.
676 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
677 * testsuite/23_containers/list/explicit_instantiation.cc: New.
678 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
679 * testsuite/23_containers/map/explicit_instantiation.cc: New.
680 * testsuite/23_containers/set/explicit_instantiation.cc: New.
681 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
682 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
683 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
684 * testsuite/ext/slist_explicit_instantiation.cc: New.
686 2004-07-30 Paolo Carlini <pcarlini@suse.de>
688 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
689 num_get<>::_M_extract_int): In the main parsing loop delay the
690 life of __q to the actual use point.
692 2004-07-29 Paolo Carlini <pcarlini@suse.de>
695 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
696 Don't clip the precision passed down to __convert_from_v:
697 22.2.2.2.2 nowhere says so.
698 * testsuite/22_locale/num_put/put/char/14220.cc: New.
699 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
701 2004-07-29 Paolo Carlini <pcarlini@suse.de>
703 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
705 2004-07-29 Paolo Carlini <pcarlini@suse.de>
706 Petur Runolfsson <peturr02@ru.is>
708 PR libstdc++/12658 (continued)
709 * src/locale_init.cc (locale::locale, locale::global): Use
710 a single locale_mutex instead of two separate mutexes.
712 2004-07-29 Paolo Carlini <pcarlini@suse.de>
715 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
717 * testsuite/23_containers/map/insert/16813.cc: New.
719 2004-07-29 Phil Edwards <phil@codesourcery.com>
721 * docs/html/faq/index.html: Update version references. Make
722 clear that code from SGI has diverged greatly. Remove references
723 to library snapshots and what's-new sections.
724 * docs/html/faq/index.txt: Regenerate.
726 2004-07-28 Matt Austern <austern@apple.com>
728 * include/bits/stl_construct.h (_Destroy): New three-argument
729 overload that takes an allocator argument. Another inline
730 three-argument overload that takes std::allocator and dispatches
731 to the two-argument version.
732 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
733 Change return type to void to match uninitialized_fill_n.
734 (__uninitialized_copy_a_): New function. Like uninitialized_copy
735 except that it takes an allocator and uses it for construct and
736 destroy. If the allocator is std::allocator, dispatches to
738 (__uninitialized_fill_a): Likewise.
739 (__uninitialized_fill_n_a): Likewise.
740 (__uninitialized_copy_copy): Give it an allocator argument.
741 (__uninitialized_fill_copy): Likewise.
742 (__uninitialized_copy_fill): Likewise.
743 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
744 and stl_uninitialized.h. Replace use of single-argument _Construct
745 and _Destroy with use of allocator's construct and destroy methods.
746 * include/bits/list.tcc: Likewise.
747 * include/bits/stl_deque.h: Likewise.
748 * include/bits/stl_list.h: Likewise.
749 * include/bits/stl_tree.h: Likewise.
750 * include/bits/stl_vector.h: Likewise.
751 * include/bits/vector.tcc: Likewise.
752 * include/ext/hashtable.h: Use rebind so that allocator_type
753 has correct type for a container's allocator. Replace use of
754 single-argument _Construct and _Destroy with use of allocator's
755 construct and destroy methods.
756 * include/ext/memory (__uninitialized_copy_n_a): New function.
757 Like uninitialized_copy_n except that it takes an extra parameter,
758 an allocator, and uses it for construct and destroy operations.
759 * include/ext/rope: Use new forms defined in stl_construct.h,
760 stl_uninitialized.h, and ext/memory. Replace use of single-argument
761 _Construct and _Destroy with allocator construct and destroy methods.
762 * include/ext/ropeimpl.h: Likewise.
763 * include/ext/slist.h: Likewise.
764 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
765 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
766 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
767 * testsuite/23_containers/list/check_construct_destroy.cc: New.
768 * testsuite/23_containers/set/check_construct_destroy.cc: New.
769 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
770 * testsuite/ext/hash_check_construct_destroy.cc: New.
771 * testsuite/ext/slist_check_construct_destroy.cc: New.
773 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
775 2003-10-01 Eric Christopher <echristo@redhat.com>
776 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
778 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
779 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
781 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
784 * include/bits/locale_facets.tcc: Fix for -Werror.
786 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
788 * docs/html/debug.html: Say debug mode only available since 3.4.0.
790 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
792 * docs/doxygen/mainpage.html: Clarify links.
793 * docs/doxygen/stdheader.cc: Add files.
794 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
795 * docs/doxygen/user.cfg.in: New options, wrap.
797 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
799 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
801 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
804 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
806 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
809 * scripts/create_testsuite_files: Pass -print to find.
811 2004-07-15 Paolo Carlini <pcarlini@suse.de>
813 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
814 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
816 2004-07-15 Jakub Jelinek <jakub@redhat.com>
819 * acinclude.m4 (glibcxx_shared_libgcc): Correct
820 glibcxx_shared_libgcc test for multilibs.
821 * configure: Rebuilt.
823 2004-07-14 Paolo Carlini <pcarlini@suse.de>
826 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
827 the signature to return void, as per 20.4.4.3.
828 * include/bits/stl_vector.h (vector::vector(size_type,
829 const value_type&, const allocator_type&), vector::vector(size_type),
830 vector::_M_initialize_dispatch): Adjust callers.
831 * include/bits/vector.tcc (vector<>::_M_fill_assign,
832 vector<>::_M_fill_insert): Likewise.
833 * testsuite/20_util/memory/16505.cc: New.
835 2004-07-14 Paolo Carlini <pcarlini@suse.de>
837 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
838 12658_thread-2.cc: Use __gnu_test::try_named_locale.
840 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
842 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
843 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
844 (__mt_alloc::_S_set_options): Same.
847 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
849 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
851 * configure: Regenerated.
853 2004-07-13 Paolo Carlini <pcarlini@suse.de>
855 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
856 to 12658_thread-1.cc and xfail.
857 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
858 simpler version of 12658_thread-1.cc, still failing on 3_3 and
859 not failing on 3_4/mainline - both on single processor and
860 multiprocessor machines.
862 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
864 * docs/html/abi.html: Remove non-public qualification.
866 * include/bits/concurrence.h: Tweak comments.
868 2004-07-11 Paolo Carlini <pcarlini@suse.de>
870 Add wchar_t counterparts of the basic_streambbuf<char> tests.
871 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
872 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
874 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
875 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
877 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
878 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
879 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
880 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
881 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
883 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
885 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
887 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
889 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
890 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
892 2004-07-11 Phil Edwards <phil@codesourcery.com>
894 * acinclude.m4: Cosmetic shell syntax fixes.
895 * configure.ac: Bring comment inline with reality.
896 * configure.host: Both of the above. Move 'arm' case to right
897 place in host_cpu switch.
898 * aclocal.m4, configure: Regenerate.
900 2004-07-09 Paolo Carlini <pcarlini@suse.de>
902 Add wchar_t counterparts of the basic_stringbuf<char> tests.
903 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
904 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
905 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
906 3599.cc, 9988.cc: Likewise.
907 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
909 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
911 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
913 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
915 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
916 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
917 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
918 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
920 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
922 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
924 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
926 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
927 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
929 2004-07-08 Paolo Carlini <pcarlini@suse.de>
931 * include/bits/gslice.h: Trivial formatting fixes.
932 * include/bits/gslice_array.h: Likewise.
933 * include/bits/indirect_array.h: Likewise.
934 * include/bits/mask_array.h: Likewise.
935 * include/bits/slice_array.h: Likewise.
936 * include/bits/valarray_after.h: Likewise.
937 * include/bits/valarray_array.h: Likewise.
938 * include/bits/valarray_before.h: Likewise.
939 * include/std/std_valarray.h: Likewise.
941 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
944 * include/bits/basic_string.h (basic_string::operator=): Revert.
946 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
948 * configure.ac (libtool_VERSION): To 6:2:0.
949 * configure: Regenerated.
951 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
953 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
956 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
958 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
960 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
963 2004-07-07 Paolo Carlini <pcarlini@suse.de>
966 * include/bits/sstream.tcc (overflow): When reallocating _M_string
967 use an exponential grow policy.
968 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
969 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
971 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
974 * crossconfig.m4: Add in bits for djgpp.
975 * configure: Regenerate.
977 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
979 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
980 instantiation of set and multiset (functor param given as int).
982 2004-07-04 Paolo Carlini <pcarlini@suse.de>
984 * include/bits/basic_string.h: Trivial formatting fixes and/or
985 const-ification of some variables.
986 * include/bits/deque.tcc: Likewise.
987 * include/bits/stl_algobase.h: Likewise.
988 * include/bits/stl_bvector.h: Likewise.
989 * include/bits/stl_construct.h: Likewise.
990 * include/bits/stl_deque.h: Likewise.
991 * include/bits/stl_pair.h: Likewise.
992 * include/bits/stl_vector.h: Likewise.
993 * include/bits/vector.tcc: Likewise.
995 2004-07-04 Paolo Carlini <pcarlini@suse.de>
997 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
998 systems with no COMDAT or weak support.
999 * testsuite/25_algorithms/copy/2.cc: Likewise.
1000 * testsuite/25_algorithms/copy/3.cc: Likewise.
1001 * testsuite/25_algorithms/copy/4.cc: Likewise.
1003 2004-07-03 Paul Brook <paul@codesourcery.com>
1005 * configure.ac: Set ABI_TWEAKS_SRCDIR.
1006 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
1007 setting atomicity_dir. Override type_cpu for arm based targets.
1008 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1009 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1010 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1011 * libsupc++/vec.cc: Ditto.
1012 * config/cpu/arm/cxxabi_tweaks.h: New file.
1013 * config/cpu/generic/cxxabi_tweaks.h: New file.
1014 * */Makefile.in: Regenerate.
1015 * configure: Regenerate.
1017 2004-07-02 Paolo Carlini <pcarlini@suse.de>
1019 * include/bits/type_traits.h (_Is_normal_iterator): Move...
1020 * include/bits/cpp_type_traits.h: ... here, renamed to
1021 __is_normal_iterator and consistent with the other traits.
1022 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
1023 to the struct __copy_normal and three specializations.
1024 (__copy_backward_output_normal_iterator,
1025 __copy_backward_input_normal_iterator): Likewise, convert to
1026 the struct __copy_backward_normal and three specializations.
1027 (copy, copy_backward): Use the latter.
1028 (__copy_aux, __copy_backward_aux): Very minor tweaks.
1030 2004-07-01 Paolo Carlini <pcarlini@suse.de>
1032 * include/bits/stl_algobase.h (__copy_trivial): Remove.
1033 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1034 __is_trivially_copyable, __are_same and __copy::copy.
1035 (__copy): Rewrite as a class template and two specializations.
1036 (__copy_ni2): Simplify, just call __copy_aux.
1038 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1040 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
1041 for destination value type != source value type.
1043 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
1044 Per Bothner <per@bothner.com>
1045 Mohan Embar <gnustuff@thisiscool.com>
1048 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
1049 (__glibcxx_mutex): Encapsulate mutex init function into type for
1050 threaded configurations without __GTHREAD_MUTEX_INIT.
1051 (lock::lock): Make device member a reference.
1052 (lock::~lock): Same.
1053 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
1055 * src/allocator.cc: Same.
1057 2004-06-30 Brad Spencer <spencer@infointeractive.com>
1059 * include/ext/mt_allocator.h: Handle allocations at static
1060 initialization that happen before _S_options is (automatically)
1061 constructed; set _S_init even if _M_force_new is true.
1063 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1065 * config/linker-map.gnu: Revert new exports.
1067 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1068 Stuart Anderson <anderson@netsweng.com>
1070 * config/linker-map.gnu: Add destructor exports for abstract base
1071 classes to conform to LSB.
1073 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1074 Paolo Carlini <pcarlini@suse.de>
1076 * include/bits/cpp_type_traits.h: Add __is_pointer and
1077 __is_trivially_copyable.
1078 * include/bits/stl_algobase.h (fill, fill_n): Slightly
1079 tweak to use the latter.
1080 (__copy_backward_dispatch): Remove.
1081 (__copy_backward_aux): Rewrite to use __is_pointer and
1082 __is_trivially_copyable and __copy_backward::copy_b.
1083 (__copy_backward): Rewrite as a class template and two
1086 2004-06-30 Paolo Carlini <pcarlini@suse.de>
1088 * testsuite/25_algorithms/copy.cc: Move to...
1089 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
1090 * testsuite/25_algorithms/copy/2.cc: New.
1091 * testsuite/25_algorithms/copy/3.cc: New.
1092 * testsuite/25_algorithms/copy/4.cc: New.
1094 2004-06-29 Paul Brook <paul@codesourcery.com>
1096 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
1097 element size in the cookie.
1099 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1101 * include/bits/cpp_type_traits.h: Move the additions to
1102 namespace __gnu_internal outside of namespace std; trivial
1105 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
1107 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
1108 Revert -Weffc++ changes that defined copy ctory and or assignment
1110 * libsupc++/tinfo.cc (__upcast_result): Same.
1112 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1114 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
1115 the algorithm used to name the categories.
1117 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
1119 * include/Makefile.am: Give a .gch extension to
1120 the PCH files, not only to the directory.
1121 * include/Makefile.in: Regenerate.
1123 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1125 * config/locale/gnu/monetary_members.cc
1126 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
1127 assignments of _M_decimal_point and _M_thousands_sep.
1129 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1131 * docs/html/17_intro/contribute.html: Update some links.
1132 * docs/html/17_intro/porting-howto.html: Likewise.
1133 * docs/html/17_intro/porting-howto.xml: Likewise.
1134 * docs/html/18_support/howto.html: Likewise.
1135 * docs/html/21_strings/howto.html: Likewise.
1136 * docs/html/27_io/howto.html: Likewise.
1137 * docs/html/configopts.html: Likewise.
1138 * docs/html/ext/howto.html: Likewise.
1139 * docs/html/faq/index.html: Likewise.
1140 * docs/html/install.html: Don't mention 2.x compilers.
1142 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1144 * include/ext/rope: Trivial formatting fixes.
1145 * include/ext/ropeimpl.h: Likewise.
1147 2004-06-26 Paolo Carlini <pcarlini@suse.de>
1150 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
1151 availability of strto(u)ll, not used anymore in the iostreams.
1152 * configure: Regenerate.
1154 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1157 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
1159 * configure: Regenerate.
1161 2004-06-25 Paul Brook <paul@codesourcery.com>
1163 * libsupc++/cxxabi.h: Define __ARM_EABI__
1165 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
1167 2004-06-25 Paul Brook <paul@codesourcery.com>
1169 * include/bits/concurrence.h: Still create mutex object when
1172 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1174 * include/bits/stl_algobase.h (fill, fill_n): Revert last
1175 change: actually we need to copy construct an object of type
1176 _Tp, not of type iterator_traits<>::value_type, therefore the
1179 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1181 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
1182 dispatch: use iterator_traits<>::value_type, not _Tp.
1184 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1186 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
1187 * testsuite/25_algorithms/fill/2.cc: Likewise.
1189 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
1190 Paolo Carlini <pcarlini@suse.de>
1192 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
1193 for fill and fill_n, respectively: when copying is cheap, use a
1194 temporary to avoid a memory read in each iteration.
1196 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1198 * testsuite/25_algorithms/fill/1.cc: New.
1199 * testsuite/25_algorithms/fill/2.cc: Likewise.
1201 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1203 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
1204 Remove copy constructor and assignment operator.
1206 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
1208 * include/bits/concurrence.h (__gnu_cxx::lock): New.
1209 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
1210 (__pool_base::_M_get_mutex): New.
1211 * include/bits/allocator.h: Tweak.
1212 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
1213 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
1214 * include/bits/stl_threads.h: Remove.
1215 * include/Makefile.am: Also here.
1216 * include/Makefile.in: Regenerate.
1218 * src/locale_init.cc: Use __gnu_cxx::lock.
1220 * src/allocator.cc: Move all instantiations...
1221 * src/allocator-inst.cc: ...here.
1223 2004-06-23 Andrew Pinski <apinski@apple.com>
1225 * linkage.m4: Remove check for libmx.
1226 * configure: Regenerate.
1228 2004-06-23 Paolo Carlini <pcarlini@suse.de>
1231 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
1232 Don't require the _DefaultConstructibleConcept.
1233 (struct _ForwardIteratorConcept): Require it here.
1235 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
1237 * include/bits/istream.tcc (getline): Make sure arguments passed
1238 to min/max have the same type.
1239 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
1240 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
1242 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
1244 * docs/html/abi.html: Update links.
1246 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1248 * testsuite/26_numerics/complex_inserters_extractors.cc,
1249 complex_value.cc, buggy_complex.cc: Move to...
1250 * testsuite/26_numerics/complex/: ... here.
1251 * testsuite/26_numerics/c99_classification_macros_c++.cc,
1252 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
1253 fabs_inline.cc: Move to...
1254 * testsuite/26_numerics/cmath/: ... here.
1255 * testsuite/26_numerics/binary_closure.cc, slice.cc,
1256 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
1257 valarray_name_lookup.cc, valarray_operators.cc,
1258 valarray_subset_assignment.cc: Move to...
1259 * testsuite/26_numerics/valarray/: ... here (new dir).
1260 * testsuite/26_numerics/sum_diff.cc: Move to...
1261 * testsuite/26_numerics/numeric/: ... here (new dir).
1263 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1265 * include/std/std_istream.h (ignore(streamsize __n = 1,
1266 int_type __delim = traits_type::eof())): Split into...
1267 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1268 int_type __delim)): The first two can be much more simpler
1269 and efficient than the fully general case; also, the last
1270 two can take advantage of the same mechanism already used
1272 * include/bits/istream.tcc (ignore(streamsize __n = 1,
1273 int_type __delim = traits_type::eof()): Remove.
1274 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1275 int_type __delim)): New.
1277 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
1279 * config/linker-map.gnu: Use wildcards for
1280 __basic_file::sys_open(FILE*, _Ios_Openmode).
1282 2004-06-20 Paolo Carlini <pcarlini@suse.de>
1284 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
1286 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1288 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
1289 the alignment requested.
1290 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
1291 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
1292 (__mt_alloc<>::deallocate): Likewise.
1294 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1297 * include/debug/safe_base.h
1298 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
1299 _Safe_sequence_base::operator=): Provide definitions.
1300 * testsuite/23_containers/bitset/cons/16020.cc: New.
1302 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
1304 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
1305 (__pool_base): Remove unused template parameter. Add
1306 protected. Move lock data into __pool_base::_Lock. Remove static
1307 on member functions.
1308 (__pool_base::_M_get_free_list): New.
1309 (__pool_alloc): Move _S_force new here.
1310 * src/allocator.cc: Move out of line __pool_base definitions here.
1311 * config/linker-map.gnu: Export bits from __pool_base.
1313 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1315 * config/locale/gnu/numeric_members.cc
1316 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
1317 assignments of _M_decimal_point and _M_thousands_sep.
1318 * config/locale/gnu/time_members.cc
1319 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
1320 and reformat assignments of date and time fields.
1322 2004-06-16 Paolo Carlini <pcarlini@suse.de>
1324 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
1325 to use _Data_allocate.
1326 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
1327 (rope<>::_S_substring): Likewise.
1328 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
1329 (rope<>::c_str()): Likewise.
1330 (rope<>::replace_with_c_str()): Likewise.
1332 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
1333 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
1335 (_Rope_iterator_base<>::_S_setcache): Likewise.
1336 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
1337 (rope<>::_S_substring): Likewise.
1338 (rope<>::_S_dump): Likewise.
1339 (rope<>::_S_fetch_ptr): Likewise.
1340 (rope<>::_S_compare): Likewise.
1341 (rope<>::replace_with_c_str()): Likewise.
1343 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
1344 * testsuite/ext/rope/2.cc: New.
1346 2004-06-16 Paolo Carlini <pcarlini@suse.de>
1347 Matt Austern <austern@apple.com>
1349 * testsuite/ext/rope/3.cc: New.
1351 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1353 * acinclude.m4: Remove useless multilib configury.
1354 * Makefile.am: Remove useless multilib rules.
1355 * aclocal.m4: Regenerate.
1356 * Makefile.in: Regenerate.
1357 * configure: Regenerate.
1359 2004-06-15 Paolo Carlini <pcarlini@suse.de>
1361 * include/ext/hashtable.h: Trivial formatting fixes.
1362 * include/ext/rb_tree: Likewise.
1364 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1366 * include/ext/hash_map: Trivial formatting fixes.
1367 * include/ext/hash_set: Likewise.
1368 * include/ext/memory: Likewise.
1369 * include/ext/numeric: Likewise.
1371 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
1373 * Makefile.in: Regenerate with automake 1.8.5.
1375 * include/Makefile.in: Same.
1376 * libmath/Makefile.in: Same.
1377 * libsupc++/Makefile.in: Same.
1378 * po/Makefile.in: Same.
1379 * src/Makefile.in: Same.
1380 * testsuite/Makefile.in: Same.
1382 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1384 * include/ext/slist: Trivial formatting fixes.
1386 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1388 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
1389 Don't use the 'magic number' 10 in the computation of __minlen;
1390 never access __name past __minlen; in the loop over __i3, don't
1391 decrease __nmatches and increase __i3 at once, only either of
1394 2004-06-13 Paolo Carlini <pcarlini@suse.de>
1396 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
1397 time_get<>::do_get_date): Use only once _M_extract_via_format,
1398 instead of going through "%X"/"%x" and calling it two times
1401 2004-06-12 Paolo Carlini <pcarlini@suse.de>
1403 * include/ext/algorithm: Trivial formatting fixes.
1404 * include/ext/functional: Likewise.
1405 * include/ext/hash_fun.h: Likewise.
1406 * include/ext/iterator: Likewise.
1408 2004-06-12 Paolo Carlini <pcarlini@suse.de>
1410 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
1411 size_type)): Reimplement using std::search.
1412 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
1414 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
1416 * testsuite/performance/21_strings/string_find.cc: New.
1418 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1420 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
1422 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
1424 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
1425 this function return a value.
1427 2004-06-09 Paolo Carlini <pcarlini@suse.de>
1430 * include/bits/stl_deque.h: Consistently with stl_set.h, define
1431 pointer as allocator's pointer, likewise for reference,
1432 const_pointer, and const_reference.
1433 * include/bits/stl_list.h: Likewise.
1434 * include/bits/stl_map.h: Likewise.
1435 * include/bits/stl_multimap.h: Likewise.
1436 * include/bits/stl_vector.h: Likewise.
1438 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
1440 * crossconfig.m4: Remove signbit, signbitf, signbitl.
1441 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
1442 builtin math functions instead of AC_DEFINE_UNQUOTED.
1443 * configure: Regenerate.
1445 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
1447 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
1448 * docs/doxygen/mainpage.html: Remove links.
1450 2004-06-08 Jason Merrill <jason@redhat.com>
1452 * config/linker-map.gnu: Use wildcards for
1453 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
1455 2004-06-08 Paolo Carlini <pcarlini@suse.de>
1457 * include/ext/pool_allocator.h: Convert to a global free-list,
1458 as per the original SGI/HP design: move the implementation
1459 details to struct __pool_base, from which __pool_alloc derives.
1460 * src/allocator.cc: Instantiate __pool_base.
1462 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
1463 Paolo Carlini <pcarlini@suse.de>
1465 * testsuite/testsuite_performance.h
1466 (resource_counter::allocated_memory): Make it return the right
1467 number of bytes requested by the allocators/application. This is
1468 the sbrk+mmaped memory.
1470 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
1472 * include/std/std_complex.h (log): Tidy.
1474 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
1476 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
1477 * testsuite/testsuite_abi.cc: Same.
1478 * configure.ac (libtool_VERSION): Bump to 6:1:0.
1479 * configure: Regenerate.
1480 * aclocal.m4: Regenerate.
1482 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1484 * include/std/std_complex.h (complex<_Tp>): Properly indent
1486 (complex<>::__rep): New.
1487 (__complex_abs): New. Dispatch to built-ins.
1489 (__complex_arg): New. Dispatch to built-ins.
1491 (__complex_cos): New. Dispatch to built-ins.
1493 (__complex_cosh): New. Dispatch to built-ins.
1495 (__complex_exp): New. Dispatch to built-ins.
1497 (__complex_log): New. Dispatch to built-ins.
1499 (__complex_sin): New. Dispatch to built-ins.
1501 (__complex_sinh): New. Dispatch to built-ins.
1503 (__complex_sqrt): New. Dispatch to built-ins.
1505 (__complex_tan): New. Dispatch to built-ins.
1507 (__complex_tanh): New. Dispatch to built-ins.
1509 (__complex_pow): New. Dispatch to built-ins.
1512 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
1513 Benjamin Kosnik <bkoz@redhat.com>
1516 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
1517 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
1518 * config/io/basic_file_stdio.cc (__basic_file::file): New.
1519 * config/io/basic_file_stdio.h: Define.
1521 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
1524 * docs/html/documentation.html: Update doxygen links for 3.4.0.
1526 2004-05-27 Jan Beulich <jbeulich@novell.com>
1528 * scripts/create_testsuite_files: Tweak.
1530 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
1533 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
1534 bits to do the same thing.
1536 2004-05-24 Paolo Carlini <pcarlini@suse.de>
1538 * include/bits/istream.tcc (ignore): Correctly deal with
1539 n == numeric_limits<streamsize>::max().
1540 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
1542 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
1543 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
1544 __n == numeric_limits<>::min().
1546 * include/bits/istream.tcc: Minor tweaks.
1548 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1550 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1552 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1554 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1556 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1558 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1561 Fixups for -Weffc++.
1562 * include/bits/basic_string.h (basic_string::operator=): Return
1563 pointer to this instead of result of assign. Although redundant,
1564 this doesn't impact resultant codegen.
1566 * include/bits/locale_facets.h (__numpunct_cache): Declare
1567 assignment opxserator and copy constructor private.
1568 (__timepunct_cache): Same.
1569 (__moneypunct_cache): Same.
1570 (collate): Use member initialization list for _M_c_locale_collate.
1571 * config/locale/gnu/messages_members.h: Same.
1572 * config/locale/gnu/time_members.h (__timepunct): Same.
1573 * src/codecvt.cc: Use member initialization list to initialize
1574 _M_c_locale_codecvt.
1575 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
1576 * config/os/gnu-linux/ctype_noninline.h: Same.
1577 * src/locale.cc (_Impl): Same.
1578 * src/locale_init.cc: Same.
1579 * src/localename.cc: Same.
1581 * include/bits/basic_ios.h (basic_ios): Complete member
1582 initialization list.
1583 * include/bits/istream.tcc (basic_istream::sentry): Same.
1584 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
1585 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
1586 _M_pback to member initialization list.
1587 * include/std/std_streambuf.h: Same.
1588 * include/std/std_sstream.h: Same, for _M_mode.
1589 * src/ios.cc (ios_base): Same.
1591 * include/ext/rope: Make derived classes match exception
1593 specifications. Add copy constructors and assignment operators.
1595 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
1596 constructor and assignment operator protected.
1597 (_Safe_iterator_base): Same.
1598 * include/debug/formatter.h (_Error_formatter): Define copy
1599 constructor and assignment operator.
1601 * include/backward/strstream: Declare assignment operator and copy
1602 constructor private.
1604 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1606 * testsuite/testsuite_hooks.h (func_callback): Declare copy
1607 constructor and assignment operator private.
1608 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
1609 exception specifications of base class.
1610 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
1611 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
1612 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1614 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1616 * libsupc++/cxxabi.h: Remove duplicated and useless public and
1617 private keywords in class declarations. Format. Use
1618 stddef.h. Expose declarations to "C" compilation.
1619 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
1620 assignment operator.
1621 (__dyncast_result): Same.
1622 * libsupc++/vec.cc (uncatch_exception): Same, use member
1623 initialization list.
1625 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1627 * testsuite/abi_check.cc: Add unistd.h.
1629 2004-05-22 Paolo Carlini <pcarlini@suse.de>
1632 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
1633 __int_to_char(unsigned long long)): Showpos is not relevant
1635 * testsuite/22_locale/num_put/put/char/15565.cc: New.
1636 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
1638 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
1640 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
1641 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
1642 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1643 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
1644 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
1645 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
1647 2004-05-21 Matthias Klose <doko@debian.org>
1649 * docs/doxygen/run_doxygen: Bump required version.
1651 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
1653 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
1654 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
1656 2004-05-21 Paolo Carlini <pcarlini@suse.de>
1658 * include/bits/istream.tcc (ignore): Remove redundant line.
1659 (readsome): Tidy, closely following 27.6.1.3, p30.
1661 2004-05-20 Paolo Carlini <pcarlini@suse.de>
1663 * include/bits/istream.tcc (operator>>(basic_istream<>&,
1664 basic_string<>&)): Use a temporary buffer, thus avoiding
1665 reallocation for common case.
1666 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1668 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1671 * include/bits/istream.tcc: Const-ification of a few variables.
1673 * include/bits/ostream.tcc: Trivial formatting fixes and
1674 const-ification of some variables.
1676 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
1680 * docs/doxygen/Intro.3: Remove Allocators.3.
1681 Add new extension headers, extension namespace list.
1682 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
1683 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
1684 __gnu_debug::. Remove __policy_ renames.
1685 * docs/doxygen/guide.html: Add dot note.
1686 * docs/doxygen/stdheader.cc: Edit, add files.
1687 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
1689 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
1691 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
1693 2004-05-18 Jan Beulich <jbeulich@novell.com>
1696 * scripts/create_testsuite_files: Also find source files through
1699 2004-05-18 Jan Beulich <jbeulich@novell.com>
1702 * testsuite/lib/libstdc++.exp: Make test files writable.
1704 2004-05-18 Paolo Carlini <pcarlini@suse.de>
1706 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
1709 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
1711 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
1712 allocation loop which removes blocks from the global free list
1713 from O(N) to O(1) when the required blocks are <= the number
1716 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
1718 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
1720 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
1722 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
1723 * testsuite/23_containers/deque/14340.cc: New.
1724 * testsuite/23_containers/list/14340.cc: New.
1725 * testsuite/23_containers/map/14340.cc: New.
1726 * testsuite/23_containers/multimap/14340.cc: New.
1727 * testsuite/23_containers/multiset/14340.cc: New.
1728 * testsuite/23_containers/set/14340.cc: New.
1729 * testsuite/23_containers/vector/14340.cc: New.
1731 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
1734 * include/debug/safe_iterator.h (_Safe_iterator converting
1735 constructor): Only allow declaration to instantiate when the
1736 incoming _Safe_iterator has exactly the right iterator type.
1738 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
1740 * include/bits/boost_concept_check.h: Fix old attribute syntax.
1741 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
1742 to pass concept-checks.
1743 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1744 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1745 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1747 2004-05-16 Paolo Carlini <pcarlini@suse.de>
1749 * include/std/std_bitset.h: Minor formatting fixes.
1751 2004-05-16 Paolo Carlini <pcarlini@suse.de>
1753 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1754 Consistently update __bin._M_free[0].
1755 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
1756 __bin._M_free[0] to simplify the while loop (i.e., the number
1757 of iterations becomes known at the outset).
1759 2004-05-15 Paolo Carlini <pcarlini@suse.de>
1761 * include/std/std_bitset.h: Trivial formatting fixes.
1763 2004-05-14 Paolo Carlini <pcarlini@suse.de>
1764 Ivan Godard <igodard@pacbell.net>
1767 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
1768 * testsuite/23_containers/bitset/ext/15361.cc: New.
1770 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1773 * crossconfig.m4: Add C99 math bits for linux crosses.
1774 * configure: Regenerate.
1776 2004-05-13 Simon Marshall <simon.marshall@misys.com>
1777 Benjamin Kosnik <bkoz@redhat.com>
1780 * include/bits/locale_facets.h: Fix for -fno-for-scope.
1781 * include/debug/safe_sequence.h: Same.
1782 * include/debug/safe_iterator.tcc: Same.
1783 * src/debug.cc: Same.
1784 * src/locale.cc: Same.
1785 * src/locale_init.cc: Same.
1786 * src/localename.cc: Same.
1787 * config/locale/gnu/ctype_members.cc: Same.
1788 * config/locale/gnu/numeric_members.cc: Same.
1789 * testsuite/testsuite_abi.cc: Same.
1790 * testsuite/testsuite_hooks.cc: Same.
1792 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
1794 * docs/html/abi.html: Document effect of -fabi-version on value
1795 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
1798 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1801 * docs/html/faq/index.html: Update docs for libsupc++ usage.
1803 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1806 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
1808 (_GLIBCXX_mutex_address): Same.
1809 (_GLIBCXX_once): Same.
1810 (_GLIBCXX_mutex_init): Same.
1811 (_GLIBCXX_mutex_address_init): Same.
1813 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1815 * docs/html/abi.html: New.
1816 * docs/html/abi.txt: Remove.
1817 * docs/html/documentation.html: Add link.
1818 * testsuite/Makefile.am: Add files.
1819 * testsuite/Makefile.in: Regenerated.
1820 * testsuite/abi_check.cc: Move and modify code into...
1821 * testsuite/testsuite_abi.cc: Add.
1822 * testsuite/testsuite_abi.h: Add.
1824 * docs/html/17_intro/TODO: Update.
1825 * include/bits/stl_pair.h: Format.
1827 2004-05-06 Matthias Klose <doko@debian.org>
1829 * include/backward/iterator.h: Add GPL copyright info,
1830 with exception clause.
1831 * include/bits/boost_concept_check.h: Likewise.
1833 * libsupc++/tinfo.h: Likewise.
1834 * po/string_literals.cc: Likewise.
1836 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
1838 * acinclude.m4: Replace -W with more speaking -Wextra.
1839 * configure: Rebuilt.
1841 2004-05-03 Paolo Carlini <pcarlini@suse.de>
1843 Optimize locale::_M_impl->_M_names for the most common cases:
1844 !_M_names[0] means unnamed; !_M_names[1] means all the categories
1845 the same name (_M_names[0] && _M_names[1] means that the full set
1846 of _M_names must be processed, the general case).
1847 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
1848 Tweak, saving work when !_M_names[1].
1849 (locale::locale(const locale&, _Facet*): Simplify: now just setting
1850 _M_names[0] = 0 means unnamed.
1851 * src/locale.cc (locale::operator==): Deal first with the common,
1852 easy cases, otherwise fall back to locale::name().
1853 (locale::name()): Tweak, if !_M_names[0] just return "*".
1854 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
1855 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
1856 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
1857 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
1858 Simplify when !std::strchr, just updating _M_names[0]; clean up.
1859 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
1860 for the general case (full set of names), then do the usual work;
1863 * src/locale.cc (locale::name()): Reserve space in __ret.
1864 * src/locale_init.cc (locale::global(const locale&)): Save
1865 the name in a temporary.
1866 * src/localename.cc (locale::locale(const char*)): Reserve space
1869 2004-04-29 Paolo Carlini <pcarlini@suse.de>
1871 * src/locale.cc (locale::operator==): Always avoid constructing
1872 locale::name(), directly compare pairs of _M_names.
1874 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1876 * include/bits/istream.tcc: Fix comment.
1878 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1880 * include/bits/stl_vector.h: Trivial formatting fixes.
1881 * include/bits/vector.tcc: Likewise.
1883 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1885 PR libstdc++/15002 (continued again)
1886 * include/bits/istream.tcc (getline(basic_istream<>&,
1887 basic_string<>&, _CharT)): Use a temporary buffer, thus
1888 avoiding reallocation for common case.
1890 * include/bits/basic_string.tcc (_S_construct(_InIterator,
1891 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
1892 of temporary buffer to a power of two.
1894 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
1896 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1898 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1900 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1902 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1904 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1905 Petur Runolfsson <peturr02@ru.is>
1907 PR libstdc++/15002 (continued)
1908 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
1909 streamsize, char_type)): Use traits::find/copy in a loop to speed
1910 up greatly the function in the common case (I/O buffer size >> 1).
1912 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1914 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
1916 * include/bits/istream.tcc (getline(basic_istream<>&,
1917 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
1918 of sbumpc(), consistently with the other functions, thus also
1919 dealing correctly with the case of exceeded string::max_size().
1921 2004-04-24 Matthias Klose <doko@debian.org>
1923 Jonathan Wakely <cow@compsoc.man.ac.uk>
1924 * docs/html/configopts.html: Fix reference to allocator config option.
1926 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
1928 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
1929 * configure: Regenerate.
1931 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
1933 PR libstdc++/15047, libstdc++/11610
1934 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
1935 (libstdc++_init): Don't pass outdir to v3-copy-files.
1937 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1939 * include/bits/deque.tcc: Trivial formatting fixes.
1940 * include/bits/stl_deque.h: Likewise.
1941 * include/bits/stl_list.h: Likewise.
1942 * include/bits/stl_tree.h: Likewise.
1944 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1945 Andrew Pinski <pinskia@physics.uc.edu>
1947 * include/bits/basic_string.tcc (_M_mutate): Don't compute
1948 __src unnecessarily.
1950 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
1952 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1953 Clarify assertion, set test variable to false before assert.
1954 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
1955 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
1956 * testsuite/27_io/ios_base/storage/2.cc: Same.
1958 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
1960 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
1961 * testsuite/27_io/fpos/14320-3.cc: Same.
1963 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
1964 * testsuite/27_io/fpos/1.cc: Same.
1965 * testsuite/27_io/basic_stringstream/2.cc: Same.
1966 * testsuite/27_io/basic_stringbuf/4.cc: Same.
1967 * testsuite/27_io/basic_stringbuf/1.cc: Same.
1968 * testsuite/27_io/basic_stringbuf/2.cc: Same.
1969 * testsuite/27_io/basic_streambuf/2.cc: Same.
1970 * testsuite/27_io/basic_ostringstream/2.cc: Same.
1971 * testsuite/27_io/basic_ostream/2.cc: Same.
1972 * testsuite/27_io/basic_ofstream/2.cc: Same.
1973 * testsuite/27_io/basic_istringstream/2.cc: Same.
1974 * testsuite/27_io/basic_istream/2.cc: Same.
1975 * testsuite/27_io/basic_iostream/2.cc: Same.
1976 * testsuite/27_io/basic_ios/2.cc: Same.
1977 * testsuite/27_io/basic_ifstream/2.cc: Same.
1978 * testsuite/27_io/basic_fstream/2.cc: Same.
1979 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
1981 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
1982 unsigned against zero.
1983 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
1984 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
1986 * testsuite/18_support/new_delete_placement.cc: Initialize
1987 variables before first use.
1988 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
1989 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
1990 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
1991 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
1993 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
1994 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
1996 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
1997 * testsuite/27_io/types/2.cc: Same.
1999 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2001 * testsuite/27_io/fpos/14775.cc: Same.
2003 2004-04-19 Paolo Carlini <pcarlini@suse.de>
2005 PR libstdc++/15002 (partial)
2006 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2007 Special case __n2 == 1, not calling traits_type::assign/copy.
2009 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
2011 * include/bits/stl_bvector.h: Use _M_impl._M_start.
2013 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
2015 * include/bits/c++config (_GLIBCXX_STD): New.
2016 * src/list.cc: Use it.
2017 * include/std/std_bitset.h: Same.
2018 * include/bits/vector.tcc: Same.
2019 * include/bits/stl_set.h: Same.
2020 * include/bits/stl_multiset.h: Same.
2021 * include/bits/stl_multimap.h: Same.
2022 * include/bits/stl_map.h: Same.
2023 * include/bits/stl_list.h: Same.
2024 * include/bits/stl_vector.h: Same.
2025 * include/bits/stl_bvector.h: Same.
2026 * include/bits/stl_deque.h: Same.
2027 * include/bits/deque.tcc: Same.
2028 * include/bits/list.tcc: Same.
2029 * include/debug/vector: Same.
2030 * include/debug/set.h: Same.
2031 * include/debug/multiset.h: Same.
2032 * include/debug/multimap.h: Same.
2033 * include/debug/map.h: Same.
2034 * include/debug/list: Same.
2035 * include/debug/deque: Same.
2036 * include/debug/bitset: Same.
2037 * include/debug/formatter.h (__gnu_debug): Remove using directive.
2038 Add using declaration for std::type_info.
2039 * include/debug/safe_iterator.h: Add using declaration for
2040 std::iterator_traits and std::pair.
2041 * src/debug_list.cc: New.
2042 * src/Makefile.am: Add debug_list.cc.
2043 * src/Makefile.in: Regenerate.
2044 * config/linker-map.gnu: Add _List_node_base exports for std and
2047 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
2048 idiom that other containers use.
2049 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2051 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2054 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
2056 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
2057 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
2059 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2061 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
2063 * config.h.in: Regenerate.
2065 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2067 * config/locale/generic/monetary_members.cc
2068 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
2069 btowc unnecessarily, just cast to wchar_t (the concerned chars
2070 all belong to the basic character set).
2071 * config/locale/generic/numeric_members.cc
2072 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2073 * config/locale/gnu/monetary_members.cc
2074 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
2075 * config/locale/gnu/numeric_members.cc
2076 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2078 2004-04-15 Paolo Carlini <pcarlini@suse.de>
2080 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
2081 avoid constructing unnecessarily this->name().
2083 2004-04-14 Zack Weinberg <zack@codesourcery.com>
2085 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
2086 Change definition of CXX to use $(shell) instead of backticks.
2087 * testsuite/Makefile.in: Regenerate.
2089 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
2091 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2092 Minor formatting fixes.
2093 * testsuite/performance/20_util/allocator/map_mt_find.cc:
2096 2004-04-12 Paolo Carlini <pcarlini@suse.de>
2098 * config/locale/gnu/numeric_members.cc
2099 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
2100 in __uselocale, since btowc is called for chars belonging to
2101 the basic character set.
2103 2004-04-09 Paolo Carlini <pcarlini@suse.de>
2105 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
2106 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
2107 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
2108 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
2109 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
2110 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
2111 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
2112 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
2113 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
2114 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
2115 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
2116 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
2117 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
2118 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
2119 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
2120 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
2121 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
2123 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2125 * config/locale/generic/time_members.cc
2126 (__timepunct<char>::_M_initialize_timepunct,
2127 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
2128 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
2129 * config/locale/gnu/time_members.cc
2130 (__timepunct<char>::_M_initialize_timepunct,
2131 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
2132 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
2133 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
2135 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
2136 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
2137 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
2138 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
2139 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
2140 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
2141 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
2142 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
2143 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
2144 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
2145 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
2146 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
2147 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
2148 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
2149 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
2150 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
2151 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
2152 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
2153 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
2154 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
2155 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
2156 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
2157 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
2158 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
2159 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
2160 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
2161 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
2162 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
2163 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
2164 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
2165 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
2166 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
2167 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
2168 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
2169 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
2170 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
2172 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
2174 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2176 * config/locale/gnu/monetary_members.cc
2177 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
2178 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
2179 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
2180 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
2181 * config/locale/gnu/numeric_members.cc
2182 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
2183 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
2185 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
2187 Fixups for EDG front end.
2188 * include/ext/rope: Instead of non-existent function
2189 _Data_allocate, use allocator's allocate. Use this.
2190 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
2191 enumerations from _Rope_RopeRep here.
2192 * include/ext/ropeimpl.h: Same.
2193 * src/ext-inst.cc (_S_min_len): Fix up definition.
2195 * config/locale/gnu/ctype_members.cc: Qualify base class members
2197 * config/locale/generic/ctype_members.cc: Same.
2198 * config/locale/gnu/messages_members.h: Same.
2199 * config/locale/generic/messages_members.h: Same.
2200 * src/ctype.cc: Same.
2201 * include/bits/codecvt.h: Same.
2203 * include/bits/boost_concept_check.h: Declare.
2204 (__error_type_must_be_an_unsigned_integer_type): Remove this.
2205 (__error_type_must_be_an_integer_type): Remove this.
2206 (__error_type_must_be_a_signed_integer_type): Remove this.
2208 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
2210 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
2211 specification to definition.
2212 (__cxa_allocate_exception): Same.
2213 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
2214 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
2215 (__cxa_get_globals): Same.
2217 * libsupc++/del_op.cc: Add comment about freestanding.
2219 2004-04-05 Paolo Carlini <pcarlini@suse.de>
2221 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2222 The critical section is actually very small, only two assignments.
2224 2004-04-04 Paolo Carlini <pcarlini@suse.de>
2225 Petur Runolfsson <peturr02@ru.is>
2227 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
2228 adapted from libstdc++/11378.
2230 2004-04-03 Paolo Carlini <pcarlini@suse.de>
2232 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
2233 some duplicated code.
2234 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
2235 in the single threaded case.
2236 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2237 Reorder and renumber the tests consistently with the other testfiles.
2238 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2239 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2240 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2242 2004-04-02 Paolo Carlini <pcarlini@suse.de>
2244 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2245 Rearrange arithmetic to avoid computing two divisions at
2248 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2250 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
2251 Streamline the second half, wrapping it in a single
2252 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
2253 conditionals inside loops.
2255 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2258 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
2259 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
2260 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
2261 to _GLIBCXX_RES_LIMITS.
2262 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
2264 * testsuite/testsuite_hooks.h: Declare set_file_limit.
2265 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
2266 and setrlimit(RLIMIT_FSIZE).
2267 * testsuite/27_io/fpos/14775.cc: New.
2268 * config.h.in: Regenerate.
2269 * configure: Likewise.
2271 2004-03-31 Paolo Carlini <pcarlini@suse.de>
2273 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
2274 In v3 uses of sscanf, the special floating-point numbers INF,
2275 INFINITY, etc., cannot occur in input, therefore, if the latter
2276 is too large, ERANGE is always stored in errno, no need of finitel.
2278 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
2281 * include/bits/stl_tree.h: Adjust initialization list order.
2283 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
2285 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
2287 2004-03-29 Paolo Carlini <pcarlini@suse.de>
2289 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
2290 on allocator behavior, the memory pointed by data2 may well be not
2293 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
2296 * include/bits/basic_string.tcc
2297 (basic_string::basic_string(const basic_string&)): Pass to
2298 _Rep::_M_grab the actual allocator of the string being constructed
2299 not the default constructed one.
2301 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
2304 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2305 (__enc_traits::_M_destroy): New.
2306 (__enc_traits::~__enc_traits): Use it.
2307 (__enc_traits::operator=): Use _M_destroy, _M_init.
2308 (__enc_traits::__enc_traits): Same.
2310 2004-03-27 Petur Runolfsson <peturr02@ru.is>
2312 * testsuite/ext/enc_filebuf/char/13598.cc: New.
2314 2004-03-27 Paolo Carlini <pcarlini@suse.de>
2316 * include/ext/mt_allocator.h: Uglify consistently names of
2317 variables, members and classes; tidy.
2319 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
2321 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2322 Deallocation loop rewrote.
2324 2004-03-26 Paolo Carlini <pcarlini@suse.de>
2326 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2327 __mt_alloc<>::deallocate): Protect two instances of
2328 block->thread_id with __GTHREADS.
2330 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
2332 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
2333 default argument in constructors.
2334 (_Rb_tree::_M_empty_initialize): Remove.
2336 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
2338 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
2339 * testsuite/23_containers/set/operators/1_neg.cc: Same.
2341 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2343 * include/bits/cpp_type_traits.h: Changed __is_pod
2344 completely. Now, it does not use any of the previous type_traits
2345 to detect the pod types, and it also detects function pointers as
2348 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
2349 which encapsulates the internal implementation of an rb_tree. Made
2350 the allocator a base class of this class instead of the rb_tree,
2351 which was not conforming. This _Rb_tree_impl class is also
2352 specialized on whether the _Compare parameter is a POD type or
2353 not. If so, then it maintains the comparison function as a data
2354 member, otherwise it makes the _Compare parameter a base class of
2355 itself. Also, _M_key_compare is now a function instead of a data
2356 member, so that the above trick can work properly. Delegated the
2357 initialization of the other data members to this newly created
2358 class. Also, now other member functions of rb_tree must refer to
2359 _M_key_compare as _M_impl._M_key_compare(). The other data members
2360 (*) can be referenced to as _M_impl.(*), where
2361 (*) includes _M_header, and _M_node_count.
2363 2004-03-25 Paolo Carlini <pcarlini@suse.de>
2365 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
2366 Add _M_min_bin, the size in bytes of the smallest bin.
2367 (__mt_alloc<>::tune()): Tweak accordingly.
2368 (__mt_alloc<>::tune(size_t, ...)): Likewise.
2369 (__mt_alloc<>::block_record): Change to a union: members next
2370 and thread_id are never used at the same time.
2371 (__mt_alloc<>::allocate): Update consistently.
2372 (__mt_alloc<>::deallocate): Likewise.
2373 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
2374 _S_bin_size for the configurable _M_min_size.
2376 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2378 * include/bits/stl_list.h: Created a _List_impl class and made it
2379 derive from the allocator, instead of the list deriving from the
2380 allocator class, which was not conformant. Changed all references
2381 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
2382 as above (changed all references to the concerned variables).
2384 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2386 * include/bits/stl_deque.h: Created a _Deque_impl class and made
2387 it derive from the allocator, instead of the deque deriving from
2388 the allocator class, which was not conformant. Changed all
2389 references to the _M_start, _M_finish, _M_map, and _M_map_size to
2391 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
2392 qualification in 2 places where it was missing.
2393 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
2395 * include/bits/deque.tcc: Same as above (changed all references to
2396 the concerned variables).
2398 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2400 * include/bits/stl_vector.h: Created a _Vector_impl class and made
2401 it derive from the allocator, instead of the _Vector_base class,
2402 deriving from the allocator which was not conformant. Changed all
2403 references to the _M_start, _M_finish, and _M_end_of_storage to
2405 * include/bits/vector.tcc: Same as above (changed all references
2406 to the concerned variables).
2408 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2410 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
2411 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
2412 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
2414 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
2416 * include/ext/malloc_allocator.h: Fixed the construct function to
2417 call global placement new instead of assignment. Added a check
2418 after the return from malloc to check whether returned pointer is
2419 NULL, and if so, throw std::bad_alloc().
2420 * include/ext/debug_allocator.h: Added a check in the deallocate
2421 function to check whether the user has passed a NULL pointer or
2424 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
2426 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
2428 2004-03-24 Andreas Schwab <schwab@suse.de>
2430 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
2431 warning from IA64 assembler.
2433 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
2435 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
2436 function call __builtin_ctz instead of the while loop.
2437 (allocate) -> If condition has __builtin_expect.
2438 (deallocate) -> Ditto.
2439 Renamed a few left-over variables and typedefs according to the
2440 C++STYLE mentioned in the documentation.
2441 Protected calls to __gthread* by __gthread_active_p(), whose value
2442 is cached in the local variable __threads_active.
2444 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
2446 * testsuite/performance/20_util/allocator/producer_consumer.cc:
2447 Use linear algorithm for producer.
2449 2004-03-24 Paolo Carlini <pcarlini@suse.de>
2451 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2452 __mt_alloc<>::deallocate): Avoid redundant conditionals.
2454 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
2456 * include/bits/locale_facets.h: Tweaks for 80 column.
2457 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
2458 (__moneypunct_cache::_M_cache): Same.
2459 (num_get): Don't inherit from __num_base.
2461 (money_get): Don't inherit from money_base.
2463 (__timepunct::_M_am_pm_format): New.
2464 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
2465 (time_get::_M_extract_name): Same.
2466 (time_get::_M_extract_via_format): Same.
2467 * include/bits/locale_facets.tcc: Tweaks for 80 column.
2468 Use _M_getloc instead of getloc.
2469 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
2470 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
2471 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
2473 2004-03-22 Paolo Carlini <pcarlini@suse.de>
2475 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
2476 * configure: Regenerate.
2477 * config/allocator/pool_allocator_base.h: New.
2478 * include/ext/pool_allocator.h: Convert to a standard-conforming
2480 * src/allocator.cc: Tweak instantiations.
2481 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
2482 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
2483 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
2484 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2485 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2486 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2488 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
2490 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
2491 inline" and attribute-unused. Qualify parameter __mem with
2493 (__exchange_and_add): Ditto. Add back memory clobber to asm.
2495 2004-03-20 Paolo Carlini <pcarlini@suse.de>
2497 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
2499 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
2501 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
2503 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
2505 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
2507 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
2509 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
2511 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
2513 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
2515 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
2518 2004-03-20 Paolo Carlini <pcarlini@suse.de>
2520 * include/std/std_valarray.h: Document DR389 [Ready].
2521 * docs/html/ext/howto.html: Add an entry for DR389.
2523 2004-03-19 Michael Eager <eager@mvista.com>
2525 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
2528 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2530 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
2532 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
2533 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
2534 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
2535 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
2536 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
2537 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
2538 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
2539 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
2540 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
2542 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2543 Petur Runolfsson <peturr02@ru.is>
2546 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
2547 no way to find out the conversion used by the underlying FILE*.
2548 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
2549 * testsuite/27_io/objects/char/9.cc: Tweak.
2551 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2554 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
2555 memory allocation/deallocation calls.
2556 * testsuite/ext/14648.cc: New.
2558 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
2561 * include/backward/bvector.h (bit_vector): Allocator is in std
2564 2004-03-19 Phil Edwards <phil@codesourcery.com>
2566 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
2567 not libiconv. SUBST this variable as well.
2568 * testsuite/Makefile.am (site.exp): New target, based on that
2569 created by automake. Also set libiconv.
2571 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2572 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2573 testsuite/Makefile.in: Regenerate.
2575 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
2577 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
2578 new_allocator for all hosts.
2579 * configure: Regenerate.
2581 2004-03-16 Paolo Carlini <pcarlini@suse.de>
2583 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
2584 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2586 2004-03-15 Paolo Carlini <pcarlini@suse.de>
2588 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2589 Adjust the logic underlying the parsing of symbol to deal
2590 correctly with an optional sign component (i.e., when either
2591 negative_sign or positive_sign is empty)
2592 * testsuite/22_locale/money_get/get/char/19.cc: New.
2593 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
2595 2004-03-15 Paolo Carlini <pcarlini@suse.de>
2597 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2598 Do not accept an incomplete currency symbol.
2599 * testsuite/22_locale/money_get/get/char/18.cc: New.
2600 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
2602 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
2604 * config/allocator: New.
2605 * config/allocator/bitmap_allocator_base.h: New.
2606 * config/allocator/malloc_allocator_base.h: New.
2607 * config/allocator/mt_allocator_base.h: New.
2608 * config/allocator/new_allocator_base.h: New.
2609 * include/bits/allocator.h: Include c++allocator.h.
2610 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
2611 * aclocal.m4: Regenerate.
2612 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
2613 * configure: Regenerate.
2614 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
2615 * include/Makefile.in: Regenerate.
2616 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
2618 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
2620 * include/bits/allocator.h: Revert.
2622 2004-03-12 Paolo Carlini <pcarlini@suse.de>
2624 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
2625 * include/bits/gslice_array.h: Add comment about DR 253.
2626 * include/bits/indirect_array.h: Likewise.
2627 * include/bits/mask_array.h: Likewise.
2628 * include/bits/slice_array.h: Likewise.
2630 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
2632 * testsuite/20_util/allocator/14176.cc: New.
2633 * include/ext/mt_allocator.h: Formatting fixes.
2635 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
2637 * include/Makefile.am (ext_headers): Add
2638 ${ext_srcdir}/bitmap_allocator.h .
2639 * include/Makefile.in: Regenerate.
2640 * docs/html/ext/ballocator_doc.txt: New file.
2641 * include/ext/bitmap_allocator.h: New file.
2642 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
2644 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
2645 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
2646 test for the bitmap_allocator<>.
2647 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
2648 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
2649 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
2651 2004-03-11 Paolo Carlini <pcarlini@suse.de>
2653 * include/std/std_complex.h (pow(const complex&, const _Tp&),
2654 pow(const _Tp&, const complex&), pow(const complex&,
2655 const complex&)): Fully qualify with std:: a few calls.
2656 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
2658 2004-03-11 Steven Bosscher <stevenb@suse.de>
2661 * include/c_std/cmath.tcc (__cmath_power): Define inline.
2663 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
2665 * configure.ac: Bump AC_PREREQ to 2.59.
2667 2004-03-10 Paolo Carlini <pcarlini@suse.de>
2669 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
2671 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
2672 Paolo Carlini <pcarlini@suse.de>
2675 * include/std/std_complex.h (pow(const complex&, const _Tp&),
2676 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
2677 * testsuite/26_numerics/complex/13450.cc: New.
2679 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
2680 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
2682 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
2685 * include/bits/gslice_array.h (gslice_array()): Make public.
2686 (operator=(gslice_array)): Make public. Implement.
2687 * include/bits/indirect_array.h (indirect_array()): Make public.
2688 * include/bits/mask_array.h (mask_array()): Make public.
2689 (operator=(mask_array)): Make public. Implement.
2690 * include/bits/valarray_array.tcc (__valarray_copy):
2691 Comment. Add versions for gslice_array and mask_array.
2692 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
2694 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
2696 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
2698 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
2699 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2700 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2701 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2702 * testsuite/23_containers/map/modifiers/swap.cc: Same.
2703 * testsuite/23_containers/list/modifiers/swap.cc: Same.
2705 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
2707 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
2710 * testsuite/23_containers/deque/modifiers/swap.cc: New.
2711 * testsuite/23_containers/list/modifiers/swap.cc: New.
2712 * testsuite/23_containers/map/modifiers/swap.cc: New.
2713 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
2714 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
2715 * testsuite/23_containers/set/modifiers/swap.cc: New.
2716 * testsuite/23_containers/vector/modifiers/swap.cc: New.
2718 2004-03-08 Petur Runolfsson <peturr02@ru.is>
2721 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
2723 2004-03-08 Paolo Carlini <pcarlini@suse.de>
2725 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
2726 * include/bits/stl_multiset.h: Add comment about DR 103.
2727 * include/bits/stl_set.h: Likewise.
2729 2004-03-08 Paolo Carlini <pcarlini@suse.de>
2731 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2732 The value _space_ indicates that at least one space is required
2734 * testsuite/22_locale/money_get/get/char/17.cc: New.
2735 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
2737 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
2738 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
2740 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
2741 Remove redundant conditional on __str.size().
2743 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
2745 * include/bits/allocator.h: Switch defaults to mt_alloc.
2747 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
2749 * include/ext/mt_allocator.h (_S_initialize): If
2750 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
2752 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
2755 * src/locale_init.cc (locale::locale): Lock critical regions with
2757 (locale::global): Same.
2758 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
2759 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
2760 (__glibcxx_mutex_lock): Same.
2762 * config/cpu/generic/atomicity.h: Remove
2763 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
2764 * src/misc-inst.cc: Move all locking bits out of this file.
2766 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
2767 * src/misc-inst.cc: Same.
2768 * config/cpu/hppa/atomicity.h: Same.
2770 * config/linker-map.gnu: Remove types in the signature of atomic
2771 exports, as they may vary.
2773 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2775 * include/bits/locale_facets.tcc: Tweak the comment preceding
2776 has_facet: doesn't throw.
2778 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2780 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
2781 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2782 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2783 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2784 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2785 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2786 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2787 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2789 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2791 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2792 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
2793 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
2794 * testsuite/testsuite_character.h (struct __gnu_test::character):
2796 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
2799 2004-03-05 Paolo Carlini <pcarlini@suse.de>
2801 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
2803 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
2805 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
2807 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
2809 * testsuite/23_containers/deque/invalidation/4.cc: Same.
2810 * testsuite/23_containers/list/invalidation/1.cc: Same.
2811 * testsuite/23_containers/list/invalidation/2.cc: Same.
2812 * testsuite/23_containers/list/invalidation/3.cc: Same.
2813 * testsuite/23_containers/list/invalidation/4.cc: Same.
2814 * testsuite/23_containers/map/invalidation/2.cc: Same.
2815 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
2816 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2817 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
2818 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2819 * testsuite/23_containers/set/invalidation/1.cc: Same.
2820 * testsuite/23_containers/set/invalidation/2.cc: Same.
2821 * testsuite/23_containers/vector/invalidation/1.cc: Same.
2822 * testsuite/23_containers/vector/invalidation/2.cc: Same.
2823 * testsuite/23_containers/vector/invalidation/3.cc: Same.
2824 * testsuite/23_containers/vector/invalidation/4.cc: Same.
2826 2004-03-04 Paolo Carlini <pcarlini@suse.de>
2828 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
2830 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
2832 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
2833 from the dg-options.
2834 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
2835 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
2836 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
2837 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
2838 * testsuite/23_containers/vector/resize/1.cc: Likewise.
2839 * testsuite/26_numerics/complex_value.cc: Likewise.
2840 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
2841 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2842 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
2843 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
2844 * testsuite/27_io/objects/char/5.cc: Likewise.
2845 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
2846 * testsuite/backward/11460.cc: Likewise.
2847 * testsuite/thread/pthread7-rope.cc: Likewise.
2849 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
2850 missing test variable.
2851 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
2852 missing test variable.
2854 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
2856 * testsuite/20_util/allocator/1.cc: Provide explicit
2857 instantiations for non-weak systems.
2858 * testsuite/20_util/binders.cc: Same.
2859 * testsuite/20_util/allocator/8230.cc: Same.
2860 * testsuite/20_util/allocator/10378.cc: Same.
2861 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2862 * testsuite/22_locale/ctype/is/char/2.cc: Same.
2863 * testsuite/thread/pthread7-rope.cc: Same.
2864 * testsuite/thread/pthread6.cc: Same.
2865 * testsuite/thread/pthread5.cc: Same.
2866 * testsuite/thread/pthread4.cc: Same.
2867 * testsuite/thread/pthread1.cc: Same.
2868 * testsuite/ext/rope.cc: Same.
2869 * testsuite/ext/hash_set.cc: Same.
2870 * testsuite/ext/hash_map.cc: Same.
2871 * testsuite/ext/concept_checks.cc: Same.
2872 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
2873 * testsuite/25_algorithms/unique/2.cc: Same.
2874 * testsuite/25_algorithms/unique/1.cc: Same.
2875 * testsuite/25_algorithms/rotate.cc: Same.
2876 * testsuite/25_algorithms/min_max.cc: Same.
2877 * testsuite/25_algorithms/equal.cc: Same.
2878 * testsuite/24_iterators/rel_ops.cc: Same.
2879 * testsuite/24_iterators/iterator.cc: Same.
2880 * testsuite/24_iterators/insert_iterator.cc: Same.
2881 * testsuite/24_iterators/front_insert_iterator.cc: Same.
2882 * testsuite/24_iterators/back_insert_iterator.cc: Same.
2883 * testsuite/23_containers/vector/resize/1.cc: Same.
2884 * testsuite/23_containers/vector/modifiers/2.cc: Same.
2885 * testsuite/23_containers/vector/modifiers/1.cc: Same.
2886 * testsuite/23_containers/vector/invalidation/4.cc: Same.
2887 * testsuite/23_containers/vector/invalidation/3.cc: Same.
2888 * testsuite/23_containers/vector/invalidation/2.cc: Same.
2889 * testsuite/23_containers/vector/invalidation/1.cc: Same.
2890 * testsuite/23_containers/vector/element_access/1.cc: Same.
2891 * testsuite/23_containers/vector/cons/6513.cc: Same.
2892 * testsuite/23_containers/vector/cons/3.cc: Same.
2893 * testsuite/23_containers/vector/cons/2.cc: Same.
2894 * testsuite/23_containers/vector/cons/1.cc: Same.
2895 * testsuite/23_containers/vector/capacity/8230.cc: Same.
2896 * testsuite/23_containers/vector/capacity/1.cc: Same.
2897 * testsuite/23_containers/vector/bool/6886.cc: Same.
2898 * testsuite/23_containers/stack/members/7158.cc: Same.
2899 * testsuite/23_containers/set/invalidation/2.cc: Same.
2900 * testsuite/23_containers/set/invalidation/1.cc: Same.
2901 * testsuite/23_containers/queue/members/7157.cc: Same.
2902 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
2903 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2904 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2905 * testsuite/23_containers/multiset/insert/1.cc: Same.
2906 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2907 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2908 * testsuite/23_containers/map/operators/1.cc: Same.
2909 * testsuite/23_containers/map/invalidation/2.cc: Same.
2910 * testsuite/23_containers/map/invalidation/1.cc: Same.
2911 * testsuite/23_containers/map/insert/1.cc: Same.
2912 * testsuite/23_containers/list/operators/4.cc: Same.
2913 * testsuite/23_containers/list/operators/3.cc: Same.
2914 * testsuite/23_containers/list/operators/2.cc: Same.
2915 * testsuite/23_containers/list/operators/1.cc: Same.
2916 * testsuite/23_containers/list/modifiers/3.cc: Same.
2917 * testsuite/23_containers/list/modifiers/2.cc: Same.
2918 * testsuite/23_containers/list/modifiers/1.cc: Same.
2919 * testsuite/23_containers/list/invalidation/4.cc: Same.
2920 * testsuite/23_containers/list/invalidation/3.cc: Same.
2921 * testsuite/23_containers/list/invalidation/2.cc: Same.
2922 * testsuite/23_containers/list/invalidation/1.cc: Same.
2923 * testsuite/23_containers/list/cons/9.cc: Same.
2924 * testsuite/23_containers/list/cons/8.cc: Same.
2925 * testsuite/23_containers/list/cons/7.cc: Same.
2926 * testsuite/23_containers/list/cons/6.cc: Same.
2927 * testsuite/23_containers/list/cons/5.cc: Same.
2928 * testsuite/23_containers/list/cons/4.cc: Same.
2929 * testsuite/23_containers/list/cons/3.cc: Same.
2930 * testsuite/23_containers/list/cons/2.cc: Same.
2931 * testsuite/23_containers/list/cons/1.cc: Same.
2932 * testsuite/23_containers/list/capacity/1.cc: Same.
2933 * testsuite/23_containers/deque/operators/1.cc: Same.
2934 * testsuite/23_containers/deque/invalidation/4.cc: Same.
2935 * testsuite/23_containers/deque/invalidation/3.cc: Same.
2936 * testsuite/23_containers/deque/invalidation/2.cc: Same.
2937 * testsuite/23_containers/deque/invalidation/1.cc: Same.
2938 * testsuite/23_containers/deque/cons/2.cc: Same.
2939 * testsuite/23_containers/deque/cons/1.cc: Same.
2941 * src/allocator.cc: Add char, wchar_t instantiations
2942 to match extern template declarations in memory.h.
2944 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2946 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2947 Fix warning regression.
2949 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2951 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2952 Deal properly with empty __digits and negative frac_digits,
2955 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
2957 * docs/html/documentation.html: Regenerate.
2959 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2962 * include/bits/postypes.h (class streamoff): Remove, now
2963 streamoff is just typedef a 64 bit signed integer type.
2964 (class fpos): Tweak consistently.
2965 * testsuite/27_io/fpos/14320-1.cc: New.
2966 * testsuite/27_io/fpos/14320-2.cc: New.
2967 * testsuite/27_io/fpos/14320-3.cc: New.
2968 * testsuite/27_io/fpos/14320-4.cc: New.
2969 * testsuite/27_io/fpos/14320-5.cc: New.
2970 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
2972 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2974 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2975 Reorganize a bit the main parsing loop, thus early detecting
2976 an empty value component.
2977 * testsuite/22_locale/money_get/get/char/16.cc: New.
2978 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
2980 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
2982 Support automake 1.8.2
2983 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
2984 * po/Makefile.am (EXTRA_DIST): New.
2985 * po/Makefile.in: Regenerate.
2986 * Makefile.in: Same.
2987 * include/Makefile.in: Same.
2988 * libmath/Makefile.in: Same.
2989 * libsupc++/Makefile.in: Same.
2990 * src/Makefile.in: Same.
2991 * testsuite/Makefile.in: Same.
2993 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
2994 __GXX_WEAK__ instead of SUPPORTS_WEAK.
2995 (${host_builddir}/gthr-default.h): Same.
2996 (${host_builddir}/gthr.h): Same.
2997 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
2998 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
3000 * aclocal.m4: Regenerate.
3001 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
3002 * config.h.in: Regenerate.
3005 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3007 Support autoconf 2.59
3008 * acinclude.m4: Quote correctly.
3009 * aclocal.m4: Regenerate.
3012 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3014 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
3016 * docs/html/18_support/howto.html: Add bit about writing to
3017 stderr, mostly by Zack.
3019 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3021 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3022 money_get<>::do_get(string_type&)): ... and two more.
3024 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3026 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3027 Fix thinkos in the switch from string_type& to string& as last
3030 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3032 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3033 Also when parsing exponent sign, first look for thousands_sep
3034 and decimal_point; tweak a bit.
3035 * testsuite/22_locale/num_get/get/char/15.cc: New.
3036 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
3038 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3039 num_get<>::_M_extract_int): Reorder some conditionals.
3041 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3043 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3044 Consistently with numpunct, enforce the requirements in
3045 22.2.6.3, p3 for the thousands separators; tweak a bit.
3046 * testsuite/22_locale/money_get/get/char/15.cc: New.
3047 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
3049 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
3051 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
3052 testsuite_files from correct multilib blddir when running
3055 2004-02-29 Phil Edwards <phil@codesourcery.com>
3057 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
3058 the summary file to the logfile.
3059 * testsuite/Makefile.in: Regenerate.
3061 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3063 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
3065 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
3066 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
3068 2004-02-28 Paolo Carlini <pcarlini@suse.de>
3070 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3071 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
3072 no 'decimal-point' in the middle: in this case too we must fix
3073 up __found_grouping; slightly tweak.
3074 * testsuite/22_locale/num_get/get/char/14.cc: New.
3075 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
3077 2004-02-27 Eric Christopher <echristo@redhat.com>
3078 Phil Edwards <phil@codesourcery.com>
3080 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
3081 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
3082 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
3083 testsuite/22_locale/collate/hash/wchar_t/2.cc,
3084 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
3085 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
3086 testsuite/22_locale/collate/transform/wchar_t/2.cc,
3087 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
3088 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3089 Use dg-require-iconv.
3090 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
3092 2004-02-27 Phil Edwards <phil@codesourcery.com>
3093 Eric Christopher <echristo@redhat.com>
3095 * testsuite/config/default.exp: Update with comments.
3096 (${tool}_target_compile): New wrapper routine.
3097 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
3098 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
3100 (load_gcc_lib, v3track): New routines.
3101 (v3-init): Rename to libstdc++_init.
3102 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
3103 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
3105 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
3107 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
3109 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
3111 * config/os/irix/irix5.2/atomicity.h: Merge..
3112 * config/os/irix/irix6.5/atomicity.h: Merge..
3113 * config/os/irix/atomicity.h: ...into this.
3114 * config/os/irix/atomic_word.h: New.
3115 * configure.host: Set atomic_word_dir for irix.
3117 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
3118 * i386/atomicity.h: Same.
3119 * m68k/atomicity.h: Same.
3120 * sparc/atomicity.h: Same.
3122 2004-02-27 David Edelsohn <edelsohn@gnu.org>
3124 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
3125 static, and inline keywords.
3127 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3129 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3130 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
3131 call reserve on the __tmp_gruping string.
3132 (num_get<>::_M_extract_float): Don't append unnecessarily a
3133 char() to the returned string.
3134 * include/bits/locale_facets.tcc: Trivial reformattings.
3136 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3138 * include/bits/locale_facets.h (money_get<>::_M_extract):
3139 Change signature: now takes a plain string&.
3140 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3141 Update consistently the definition; use the moneypunct cache
3142 to parse the value; use swap to change __units.
3143 (money_get<>::do_get(long double&)): Update call of _M_extract,
3144 avoid ctype::narrow, not correct wrt the standard.
3145 (money_get<>::do_get(string_type&)): Likewise, update call
3146 of _M_extract, use ctype::widen.
3147 * src/locale-inst.cc: Tweak instantiations of _M_extract.
3149 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
3151 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
3152 * testsuite/demangle/abi_examples/02.cc: Likewise.
3153 * testsuite/demangle/regression/cw-11.cc: Likewise.
3154 * testsuite/demangle/regression/cw-16.cc: Change two expected
3155 results to match libiberty demangler output.
3157 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3160 * libsupc++/Makefile.am: Use libiberty demangler.
3161 (c_sources): Add cp-demangle.c.
3162 * libsupc++/Makefile.in: Regenerate.
3163 * src/Makefile.am (sources): Remove demangle.cc.
3164 * src/Makefile.in: Regenerate.
3165 * include/Makefile.am (bits_headers): Move demangle.h.
3166 (ext_headers): ...here.
3167 * include/Makefile.in: Regenerate.
3168 * include/bits/demangle.h: Move...
3169 * include/ext/demangle.h: ...here.
3170 * src/demangle.cc: Remove.
3172 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3174 * include/bits/demangle.h: Add type template parameter to all
3175 templates with just an Allocator template parameter.
3177 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
3179 * include/bits/atomicity.h: New, forward declarations for __atomic_add
3180 and __exchange_and_add.
3181 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
3182 * config/cpu/cris/atomic_word.h: Same.
3183 * config/cpu/sparc/atomic_word.h: Same.
3184 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
3185 Qualifiy with __gnu_cxx.
3186 (_Callback_list::_M_add_reference): Same.
3187 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
3188 (locale::facet::_M_remove_reference): Same.
3189 (locale::_Impl::_M_add_reference): Add.
3190 (locale::_Impl::_M_remove_reference): Same.
3191 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
3192 (basic_string::_Rep::_M_dispose): Same.
3193 * src/ios.cc (ios_base::xalloc): Same.
3194 * src/ios_init.cc (ios_base::Init::Init): Same.
3195 (ios_base::Init::~Init): Same.
3196 * src/locale.cc (locale::id::_M_id): Same.
3197 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
3198 static, and inline keywords.
3199 * config/cpu/alpha/atomicity.h: Same.
3200 * config/cpu/cris/atomicity.h: Same.
3201 * config/cpu/generic/atomicity.h: Same.
3202 * config/cpu/hppa/atomicity.h: Same.
3203 * config/cpu/i386/atomicity.h: Same.
3204 * config/cpu/ia64/atomicity.h: Same.
3205 * config/cpu/m68k/atomicity.h: Same.
3206 * config/cpu/mips/atomicity.h: Same.
3207 * config/cpu/powerpc/atomicity.h: Same.
3208 * config/cpu/s390/atomicity.h: Same.
3209 * config/cpu/sparc/atomicity.h: Same.
3211 * src/Makefile.am (host_sources): Add atomicity.cc.
3212 (atomicity.cc): New rule.
3213 * src/Makefile.in: Regenerate.
3214 * include/Makefile.am (host_headers): Remove host atomicity.h.
3215 (host_headers): Add atomic_word.h.
3216 (bits_headers): Add bits atomicity.h.
3217 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3218 * include/Makefile.in: Regenerate.
3219 * configure.host (atomic_word_dir): Add.
3220 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
3221 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3222 * configure: Regenerate.
3223 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
3225 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
3226 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3228 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
3230 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
3231 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
3232 Fix markup, more <link> tags.
3234 2004-02-25 Carlo Wood <carlo@alinoe.com>
3237 namespace __gnu_cxx::demangler
3238 (session<Allocator>::qualifier_list_Allocator): Add
3239 (session<Allocator>::M_qualifier_list_alloc): Add
3240 (session<Allocator>::decode_type_with_postfix):
3241 Use M_qualifier_list_alloc instead of calling operator new/delete.
3243 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3246 * include/bits/postypes.h (class streamoff): Add operator++(),
3247 operator++(int), operator--() and operator--(int).
3248 * testsuite/27_io/fpos/14252.cc: New.
3250 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
3252 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
3253 error in handling of hex constants.
3255 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3257 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3258 Prefer basic_string::append to operator+= and a temporary.
3260 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3262 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
3263 Only use fputs, not write.
3265 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3267 * include/ext/malloc_allocator.h: Add operators ==, !=.
3268 * include/ext/new_allocator.h: Add operators ==, !=.
3269 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
3270 (__mt_alloc::_S_get_options): New.
3271 (__mt_alloc::_S_set_options): New.
3272 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
3273 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
3274 Move functions out of line, simplify, format.
3275 * src/allocator.cc: Simplify explicit instantiations.
3276 * include/bits/allocator.h: Tweak.
3278 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3280 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3281 Restructure formatting of value component, first dealing with
3282 the non-decimal digits; use reserve.
3284 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3286 * include/bits/locale_facets.h (class money_get): Inherit
3287 from money_base too; tweak declaration of _M_extract, now
3288 parameterized on _Intl too.
3289 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3290 Update definition to use the cache; call reserve on __res to
3291 avoid multiple reallocations; fix parsing of sign component
3292 according to 22.2.6.1.2, p3.
3293 (money_get<>::do_get(long double&),
3294 money_get<>::do_get(string_type&)): Update calls of _M_extract.
3295 * src/locale-inst.cc: Add instantiations of
3296 money_get::_M_extract<false> and money_get::_M_extract<true>.
3297 * testsuite/22_locale/money_get/get/char/14.cc: New.
3298 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
3300 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3302 * libsupc++/vterminate.cc
3303 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
3305 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
3307 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3308 not set RLIMIT_AS on HP-UX.
3310 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3312 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3313 not set RLIMIT_AS on HP-UX.
3315 2004-02-21 Paolo Carlini <pcarlini@suse.de>
3317 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
3318 _S_zero, _S_end } enum, _S_atoms.
3319 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
3320 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
3321 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
3322 (__moneypunct_cache<>::~__moneypunct_cache): Update.
3323 (__moneypunct_cache<>::_M_cache): Fill the cache.
3324 (class moneypunct): Tweak __cache_type typedef.
3325 (class money_put): Inherit from money_base too; tweak declaration
3326 of _M_insert, now parameterized on _Intl.
3327 * include/bits/locale_facets.tcc
3328 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
3329 (money_put<>::_M_insert): Update definition to use the cache;
3330 call reserve on __res to avoid multiple reallocations.
3331 (money_put<>::do_put(long double),
3332 money_put<>::do_put(const string_type&): Update calls of _M_insert.
3333 * config/locale/generic/monetary_members.cc
3334 (moneypunct<char, true>::_M_initialize_moneypunct,
3335 moneypunct<char, false>::_M_initialize_moneypunct,
3336 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
3337 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
3338 * config/locale/gnu/monetary_members.cc: Likewise.
3339 * config/locale/gnu/monetary_members.cc
3340 (moneypunct<wchar_t, true>::~moneypunct(),
3341 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
3342 * src/globals_locale.cc: Tweak fake_money_cache_c.
3343 * src/locale-inst.cc: Add instantiations for
3344 money_put::_M_insert<false> and money_put::_M_insert<true> and
3345 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
3346 * src/locale_facets.cc: Define money_base::_S_atoms.
3347 * src/locale_init.cc: Update placement new of
3348 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
3349 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
3351 * config/locale/generic/numeric_members.cc: Clean up.
3352 * config/locale/gnu/numeric_members.cc: Likewise.
3353 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
3354 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
3355 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
3356 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
3357 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
3358 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
3360 2004-02-20 Mark Mitchell <mark@codesourcery.com>
3362 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
3363 FIFO for writing with ios_base::in|ios_base::out.
3364 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3365 * testsuite/27_io/objects/char/7.cc: Likewise.
3366 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
3369 2004-02-19 David Edelsohn <edelsohn@gnu.org>
3371 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
3372 from iso-8859-1 to ISO8859-1.
3373 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
3374 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
3375 * 22_locale/collate/hash/wchar_t/2.cc: Same.
3376 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
3377 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
3378 * 22_locale/collate/transform/wchar_t/2.cc: Same.
3379 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
3380 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
3382 2004-02-18 Paolo Carlini <pcarlini@suse.de>
3384 * include/bits/locale_facets.h (money_get<>::_M_extract):
3385 New, helper for do_get.
3386 (money_put<>::_M_insert): Likewise, for do_put.
3387 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3388 money_put<>::_M_insert): Define.
3389 (money_get<>::do_get(long double&), money_get<>::do_get(
3390 string_type&), money_put::do_put(long double),
3391 money_put::do_put(const string_type&)): Use the helpers.
3393 2004-02-18 Paolo Carlini <pcarlini@suse.de>
3395 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3396 Rewrite, avoiding recursion.
3397 (__gnu_internal::xwrite): Minor tweaks.
3399 2004-02-17 Stefan Olsson <stefan@xapa.se>
3401 * include/ext/mt_allocator.h: Removed the last
3402 pointer. Deallocated blocks are now added to the front of
3403 freelists as proposed by Felix Yen. This gives roughly 10%
3404 performance boost and saves some memory.
3405 * docs/html/ext/mt_allocator.html: Change due to that deallocated
3406 blocks now are added to the front of freelists. The reason to this
3407 approach is also explained.
3409 2004-02-17 Paolo Carlini <pcarlini@suse.de>
3411 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3412 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
3413 grouping fidelity conditional.
3415 2004-02-16 Paolo Carlini <pcarlini@suse.de>
3417 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
3418 Qualify exception with std::.
3419 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
3420 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3421 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3422 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3423 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3425 2004-02-16 Paolo Carlini <pcarlini@suse.de>
3427 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
3428 for now that the catch block is not reached.
3429 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
3431 2004-02-16 Paolo Carlini <pcarlini@suse.de>
3433 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3434 Fix parsing of the remaining sign characters.
3435 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
3436 the input is scanned 'til eof.
3437 * 22_locale/money_get/get/char/4.cc: Likewise.
3438 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
3439 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
3440 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
3441 not do_pos_format: the former is the only one that matters during
3443 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
3445 * 22_locale/money_get/get/char/6.cc: Minor tweak.
3446 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
3448 2004-02-15 David Asher <david.asher@cavium.com>
3451 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
3452 access __olds beyond __oldlen.
3454 2004-02-14 Paolo Carlini <pcarlini@suse.de>
3456 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
3457 sure the exception is actually thrown.
3458 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3459 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3460 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3462 2004-02-14 Paolo Carlini <pcarlini@suse.de>
3465 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
3466 In case of conversion errors, throw ios_failure; simplify.
3467 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
3468 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3469 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
3470 previously we didn't throw in case of conversion errors, instead
3471 just returned eof().
3472 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3473 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3474 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3476 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
3477 Trivial simplification of a conditional.
3479 2004-02-12 Paolo Carlini <pcarlini@suse.de>
3481 PR libstdc++/13731 (final part: writev)
3482 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3483 New, a wrapper around writev() handling partial writes.
3484 (__basic_file<char>::xwrite): Move to __gnu_internal and make
3486 (__basic_file<char>::xsputn): Update call.
3487 (__basic_file<char>::xsputn_2): Likewise.
3488 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3489 Don't declare, now static.
3491 2004-02-11 Stefan Olsson <stefan@xapa.se>
3493 * docs/html/ext/mt_allocator.html: New.
3495 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
3497 * docs/html/20_util/allocator.html: New file, consolidate
3498 allocator information here. Revamp.
3499 * docs/html/documentation.html: Change links.
3500 * docs/html/20_util/howto.html: Same.
3501 * docs/html/ext/howto.html: Same.
3503 2004-02-11 Paolo Carlini <pcarlini@suse.de>
3505 PR libstdc++/13731 (first part: write)
3506 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3508 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
3509 Define it: a wrapper around write() handling partial write.
3510 (__basic_file<char>::xsputn): Use it.
3511 (__basic_file<char>::xsputn_2): Likewise.
3513 2004-02-11 Paolo Carlini <pcarlini@suse.de>
3514 Petur Runolfsson <peturr02@ru.is>
3517 * include/std/std_istream.h (operator>>(__istream_type& (*)
3518 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
3519 operator>>(ios_base& (*)(ios_base&))): Declare inline.
3520 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
3521 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
3522 operator<<(ios_base& (*) (ios_base&))): Likewise.
3523 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
3525 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
3528 * config/linker-map.gnu: Add typeinfo and typeinfo name for
3529 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
3532 * config/linker-map.gnu: Add typeinfo and typeinfo name for
3533 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
3535 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
3537 * include/ext/pool_allocator.h: Include c++config.h.
3539 2004-02-09 Stefan Olsson <stefan@xapa.se>
3541 * include/ext/mt_allocator.h: thread_id is unused in non threaded
3542 applications and now has a ifdef to remove it completely on
3543 compilers without thread support. Include stdlib.h due to a
3544 compiler warning on getenv().
3546 2004-02-09 Paul Brook <paul@codesourcery.com>
3548 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
3550 2004-02-09 Paolo Carlini <pcarlini@suse.de>
3553 * src/locale_init.cc (locale::global(const locale&)): Use
3554 locale::name() in order to decide whether calling setlocale.
3555 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
3557 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
3558 Avoid computing &= unnecessarily.
3560 2004-02-09 James E Wilson <wilson@specifixinc.com>
3563 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
3564 __builtin_extend_pointer.
3566 2004-02-09 Paolo Carlini <pcarlini@suse.de>
3569 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
3570 Don't leave dangling pointers.
3571 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
3572 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
3573 facet is needed in the final test.
3575 2004-02-09 Bernardo Innocenti <bernie@develer.com>
3577 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
3578 * configure: Regenerate.
3580 2004-02-08 Richard Henderson <rth@redhat.com>
3583 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
3584 uncaughtExceptions during nested catch rethrow.
3585 * testsuite/18_support/14026.cc: New.
3587 2004-02-08 Paolo Carlini <pcarlini@suse.de>
3589 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
3590 When working in place remember to set the state to sharable
3591 (otherwise, _M_mutate does it).
3593 2004-02-08 Bernardo Innocenti <bernie@develer.com>
3595 * include/bits/allocator.h, include/bits/basic_ios.h,
3596 include/bits/basic_ios.tcc, include/bits/basic_string.h,
3597 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
3598 include/bits/char_traits.h, include/bits/codecvt.h,
3599 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
3600 include/bits/demangle.h, include/bits/deque.tcc,
3601 include/bits/fstream.tcc, include/bits/functexcept.h,
3602 include/bits/gslice.h, include/bits/gslice_array.h,
3603 include/bits/indirect_array.h, include/bits/ios_base.h,
3604 include/bits/istream.tcc, include/bits/list.tcc,
3605 include/bits/locale_classes.h, include/bits/locale_facets.h,
3606 include/bits/locale_facets.tcc, include/bits/localefwd.h,
3607 include/bits/mask_array.h, include/bits/ostream.tcc,
3608 include/bits/postypes.h, include/bits/slice_array.h,
3609 include/bits/sstream.tcc, include/bits/stl_algo.h,
3610 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3611 include/bits/stl_construct.h, include/bits/stl_deque.h,
3612 include/bits/stl_function.h, include/bits/stl_heap.h,
3613 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
3614 include/bits/stl_list.h, include/bits/stl_map.h,
3615 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
3616 include/bits/stl_numeric.h, include/bits/stl_pair.h,
3617 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
3618 include/bits/stl_relops.h, include/bits/stl_set.h,
3619 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
3620 include/bits/stl_threads.h, include/bits/stl_tree.h,
3621 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
3622 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
3623 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
3624 include/bits/type_traits.h, include/bits/valarray_after.h,
3625 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
3626 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
3627 trailing whitespace.
3629 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3631 * include/bits/basic_string.h: Fix comment.
3633 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3635 * include/bits/stl_construct.h: Wrap overlong lines, reformat
3636 according to the coding standards.
3637 * include/bits/stl_pair.h: Likewise.
3638 * include/bits/stl_raw_storage_iter.h: Likewise.
3639 * include/bits/stl_stack.h: Likewise.
3640 * include/bits/stl_uninitialized.h: Likewise.
3641 * include/bits/stream_iterator.h: Likewise.
3642 * include/bits/streambuf_iterator.h: Likewise.
3643 * include/bits/type_traits.h: Likewise.
3645 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3647 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3650 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
3652 * scripts/check_performance: Support PCH.
3654 * scripts/check_performance (CXX): Add -DNOTHREAD.
3655 * testsuite/performance/20_util/allocator/insert.cc: Integrate
3656 threaded tests from insert_insert.cc. Tweak iterations,
3657 remove special cases.
3658 * testsuite/performance/20_util/allocator/insert_insert.cc:
3659 Make all tests single-threaded. Tweak iterations.
3660 * testsuite/performance/20_util/allocator/map_thread.cc:
3662 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3665 2004-02-05 Geoffrey Keating <geoffk@apple.com>
3669 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
3670 'gcc-lib'. Add comment about poorly-named variables.
3671 * aclocal.m4: Regenerate.
3672 * configure: Regenerate.
3674 2004-02-05 Paolo Carlini <pcarlini@suse.de>
3676 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3677 Thousands-sep are always optional; thousands-sep are not allowed
3678 after the decimal_point.
3679 * testsuite/22_locale/money_get/get/char/12.cc: New.
3680 * testsuite/22_locale/money_get/get/char/13.cc: New.
3681 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
3682 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
3684 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
3685 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3686 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3687 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3688 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3689 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3690 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3691 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3693 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
3695 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
3697 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
3699 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
3701 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
3702 it to decide whether FIONREAD should take an off_t or int argument.
3704 2004-02-05 Paolo Carlini <pcarlini@suse.de>
3706 * include/bits/stl_function.h: Minor formatting changes.
3708 2004-02-04 Zack Weinberg <zack@codesourcery.com>
3710 Revert previous change to config/abi/*/baseline_symbols.txt.
3712 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
3713 Zack Weinberg <zack@codesourcery.com>
3715 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
3717 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
3718 (__basic_file<char>::_M_open_mode): Delete.
3719 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
3721 * testsuite/27_io/basic_filebuf/close/char/9964.cc
3722 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3723 Correct flags to filebuf::open calls.
3725 * config/abi/alpha-freebsd5/baseline_symbols.txt
3726 * config/abi/alpha-linux-gnu/baseline_symbols.txt
3727 * config/abi/hppa-linux-gnu/baseline_symbols.txt
3728 * config/abi/i386-freebsd4/baseline_symbols.txt
3729 * config/abi/i386-freebsd5/baseline_symbols.txt
3730 * config/abi/i486-linux-gnu/baseline_symbols.txt
3731 * config/abi/ia64-linux-gnu/baseline_symbols.txt
3732 * config/abi/mips-linux-gnu/baseline_symbols.txt
3733 * config/abi/sparc-freebsd5/baseline_symbols.txt
3734 * config/abi/sparc-linux-gnu/baseline_symbols.txt
3735 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
3736 Remove entry for __basic_file<char>::_M_open_mode.
3738 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
3740 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
3742 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
3744 * testsuite/performance/20_util/producer_consumer.cc: New.
3745 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
3747 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
3749 * testsuite/performance/20_util/allocator.cc: Move to..
3750 * testsuite/performance/20_util/allocator/insert.cc: ...here.
3751 * testsuite/performance/20_util/allocator_thread.cc: Move to...
3752 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
3753 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
3754 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
3756 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
3758 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
3759 * docs/html/faq/index.txt: Regenerate.
3761 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
3763 * include/ext/debug_allocator.h: _M_extra now stands for the
3764 number of extra objects instead of the number of extra bytes.
3765 (debug_allocator::allocate): Adjust.
3766 (debug_allocator::deallocate): Adjust.
3768 * include/ext/pool_allocator.h: Fix typo.
3770 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
3771 Benjamin Kosnik <bkoz@redhat.com>
3773 * testsuite/performance/20_util/allocator.cc: Add map,
3775 * testsuite/performance/20_util/allocator_thread.cc: Same.
3777 2004-02-03 Paolo Carlini <pcarlini@suse.de>
3779 * include/bits/basic_string.h (insert(iterator)): Remove,
3780 non-standard and already scheduled for removal.
3782 2004-02-03 Paolo Carlini <pcarlini@suse.de>
3784 * include/bits/stl_iterator_base_funcs.h: Minor formatting
3785 and indentation tweaks.
3786 * include/bits/stl_iterator_base_types.h: Likewise.
3787 * include/bits/stl_list.h: Likewise.
3788 * include/bits/stl_map.h: Likewise.
3789 * include/bits/stl_tempbuf.h: Likewise.
3791 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
3793 * include/bits/gslice.h, include/bits/gslice_array.h,
3794 include/bits/indirect_array.h, include/bits/mask_array.h,
3795 include/bits/slice_array.h, include/bits/stl_numeric.h,
3796 include/std/std_valarray.h: Update copyright years.
3798 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
3800 * include/bits/gslice.h (gslice): Document.
3801 * include/bits/gslice_array.h (gslice_array): Document.
3802 * include/bits/indirect_array (indirect_array): Document.
3803 * include/bits/mask_array (mask_array): Document.
3804 * include/bits/slice_array.h (slice,slice_array): Document.
3805 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
3806 adjacent_difference): Document
3807 * include/std/std_valarray.h (valarray): Document.
3809 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
3811 * docs/html/19_diagnostics/howto.html: Move verbose terminate
3813 * docs/html/18_support/howto.html: Here.
3814 * docs/html/documentation.html: Add reference here.
3816 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3818 * config/locale/gnu/c++locale_internal.h: Remove prototypes
3819 of no longer used GLIBC thread locale functions.
3821 2004-02-02 Eric Christopher <echristo@redhat.com>
3822 Zack Weinberg <zack@codesourcery.com>
3824 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
3826 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
3827 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
3828 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
3829 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
3830 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
3831 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
3832 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
3833 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3836 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3838 * include/bits/stl_function.h: Additional minor tweaks.
3839 * include/bits/stl_multiset.h: Likewise.
3841 * include/bits/stl_queue.h: Minor tweaks.
3843 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3845 PR libstdc++/13976 (continued)
3846 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
3847 Make the second parameter unnamed, to void unused parameter
3849 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
3851 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3854 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
3855 Make the second parameter unnamed, to void unused parameter
3857 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
3858 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
3860 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3862 * include/bits/stl_algo.h: Additional minor tweaks.
3863 * include/bits/stl_map.h: Likewise.
3864 * include/bits/stl_multimap.h: Likewise.
3865 * include/bits/stl_multiset.h: Likewise.
3866 * include/bits/stl_set.h: Likewise.
3867 * include/bits/stl_tree.h: Likewise.
3869 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3871 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
3874 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3876 * include/bits/stl_function.h: Additional minor tweaks.
3878 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3880 * include/bits/deque.tcc: Wrap overlong lines, constify
3881 a few variables, reformat according to the coding standards.
3882 * include/bits/list.tcc: Likewise.
3883 * include/bits/stl_deque.h: Likewise.
3884 * include/bits/stl_function.h: Likewise.
3885 * include/bits/stl_iterator.h: Likewise.
3886 * include/bits/stl_iterator_base_funcs.h: Likewise.
3887 * include/bits/stl_iterator_base_types.h: Likewise.
3888 * include/bits/stl_list.h: Likewise.
3889 * include/bits/stl_map.h: Likewise.
3890 * include/bits/stl_multimap.h: Likewise.
3891 * include/bits/stl_multiset.h: Likewise.
3892 * include/bits/stl_relops.h: Likewise.
3893 * include/bits/stl_set.h: Likewise.
3895 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3897 * include/bits/stl_bvector.h: Wrap overlong lines, constify
3898 a few variables, reformat according to the coding standards.
3899 * include/bits/stl_tree.h: Likewise.
3901 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3903 * include/bits/stl_algo.h: Minor additional reformat, add
3905 * include/bits/stl_algobase.h: Add copyright year.
3907 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3909 * include/bits/stl_algo.h: Wrap overlong lines, constify
3910 a few variables, reformat according to the coding standards.
3911 * include/bits/stl_algobase.h: Likewise.
3912 * include/bits/stl_heap.h: Likewise.
3914 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3916 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
3918 * include/bits/basic_string.h: Fix two comments.
3920 2004-01-31 Per Bothner <per@bothner.com>
3922 * include/ext/mt_allocator.h
3923 (__mt_alloc::_S_thread_freelist_mutex): Guard with
3924 __GTHREAD_MUTEX_INIT.
3926 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3928 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
3930 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3932 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
3933 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
3934 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
3936 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
3938 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
3939 Don't use clear, but instead assign. Use insert.
3941 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
3943 * src/demangle.cc: Add instantiations.
3944 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
3945 * src/Makefile.in: Regenerate.
3947 2004-01-30 David Edelsohn <edelsohn@gnu.org>
3949 * src/allocator.cc: Protect _S_get_thread_id() and
3950 _S_thread_key_destr() with #ifdef __GTHREADS.
3952 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3954 Reshuffle performance testsuite.
3955 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
3956 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
3957 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
3958 fstream_seek_write.cc, ifstream_extract_float.cc,
3959 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
3960 list_create_fill_sort.cc, map_create_fill.cc,
3961 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
3962 ofstream_insert_float.cc, ofstream_insert_int.cc,
3963 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
3964 wchar_t_out.cc: Split into...
3965 * testsuite/performance/20_util/allocator.cc: New.
3966 * testsuite/performance/20_util/allocator_map_thread.cc: New.
3967 * testsuite/performance/20_util/allocator_thread.cc: New.
3968 * testsuite/performance/21_strings/string_append: New.
3969 * testsuite/performance/22_locale/is_wchar_t.cc: New.
3970 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
3971 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
3972 * testsuite/performance/22_locale/wchar_t_in.cc: New.
3973 * testsuite/performance/22_locale/wchar_t_length.cc: New.
3974 * testsuite/performance/22_locale/wchar_t_out.cc: New.
3975 * testsuite/performance/23_containers/container_benchmark.cc: New.
3976 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
3977 * testsuite/performance/23_containers/map_create_fill.cc: New.
3978 * testsuite/performance/26_numerics/complex_norm.cc: New.
3979 * testsuite/performance/27_io/cout_insert_int.cc: New.
3980 * testsuite/performance/27_io/filebuf_copy.cc: New.
3981 * testsuite/performance/27_io/filebuf_sputc.cc: New.
3982 * testsuite/performance/27_io/fstream_seek_write.cc: New.
3983 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
3984 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
3985 * testsuite/performance/27_io/ifstream_getline.cc: New.
3986 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
3987 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
3989 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3991 * include/bits/basic_string.tcc (_Rep::_S_create):
3992 Never allocate a string bigger than max_size(); always keep
3993 __capacity and __size in sync to avoid memory leaks at
3996 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3998 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3999 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
4000 the double loop, streamline.
4002 * include/bits/basic_string.tcc: Very minor tweaks.
4004 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
4006 * scripts/check_performance: Only compile with $THREAD_FLAG
4007 when test is marked to require it. Allow multiple
4008 compilations/executions of marked tests.
4009 * testsuite/testsuite_performance.h (report_performance):
4010 Report dynamic thread support status.
4011 (report_header): Likewise.
4012 * testsuite/performance/allocator.cc: Stabilize iteration
4013 count. Support more allocators. Mark each allocator test to
4014 run and report independently.
4015 * testsuite/performance/allocator_map_thread.cc: Likewise.
4016 * testsuite/performance/allocator_thread.cc: Likewise.
4018 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
4020 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
4021 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
4022 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
4023 std::get_temporary_buffer() instead of duplicating its code.
4024 Update to C++STYLE conventions.
4025 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
4026 new() instead of std::malloc().
4027 (return_temporary_buffer): Use ::operator delete() instead of
4030 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
4032 * include/bits/allocator.h: Temporary switch to new_allocator as
4033 the default to unjam bootstraps.
4035 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4037 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
4038 * include/Makefile.in: Regenerate.
4039 * include/bits/allocator_traits.h: Remove.
4040 * include/bits/allocator.h: Remove allocator_traits.h include, and
4042 (allocator): Empty base class, inherit from the underlying allocator.
4043 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
4044 * src/allocator.cc: ...here. New. For the underlying allocators.
4045 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
4046 * config/linker-map.gnu: Remove __pool_alloc bits.
4047 * src/Makefile.am (sources): Add allocator.cc.
4048 * src/Makefile.in: Regenerate.
4049 * testsuite/20_util/allocator/1.cc: Split second test into...
4050 * testsuite/20_util/allocator/8230.cc: ...this.
4051 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
4052 typedef to use std::allocatore. Format.
4053 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
4055 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
4056 __throw_bad_alloc calls. Don't include <memory>.
4057 * include/ext/malloc_allocator.h: Remove <memory> include.
4058 * include/ext/new_allocator.h (new_allocator): Same.
4059 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
4060 declaration. Switch __alloc to _Alloc.
4061 * include/ext/hashtable.h: Remove __alloc.
4062 * include/backward/alloc.h: Only inject allocator, not
4063 implementation details.
4065 * include/ext/mt_allocator.h: Replace free with delete.
4067 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4069 * src/globals_io.cc: Change to __gnu_internal namespace.
4070 * src/globals_locale.cc: Same.
4071 * src/locale_init.cc: Same.
4072 * src/ios_init.cc: Same.
4074 2004-01-28 Stefan Olsson <stefan@snon.net>
4076 * include/ext/mt_allocator.h: Replaced all malloc() calls with
4077 operator new(). Added support for the env variable
4078 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
4079 one in allocate() as well). Fix typos.
4081 2004-01-28 Paolo Carlini <pcarlini@suse.de>
4083 * include/bits/basic_string.h (_S_create(size_t,
4084 const _Alloc&): Change signature to take two size_type
4086 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4087 _InIterator, const _Alloc&, input_iterator_tag)): Update
4089 (_S_construct(_InIterator, _InIterator, const _Alloc&,
4090 forward_iterator_tag)): Likewise.
4091 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
4092 (_M_mutate(size_type, size_type, size_type)): Don't
4093 implement the exponential growth policy, demand it to
4094 _S_create, update call and simplify.
4095 (_M_clone(const _Alloc&, size_type)): Likewise.
4096 (_S_create(size_type, size_type, const _Alloc&)): Implement
4097 the growth policy, simplify otherwise.
4099 * include/bits/basic_string.h (_Rep::operator[]): Tweak
4100 signature to take a size_type, consistently with the other
4103 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
4105 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
4106 delete declarations, add include and test variable.
4108 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
4110 * include/bits/codecvt.h, include/bits/locale_facets.h,
4111 include/bits/postypes.h, include/bits/stl_bvector.h,
4112 include/bits/stl_multiset.h, include/bits/stl_set.h,
4113 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
4114 include/std/std_complex.h: Document.
4116 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
4119 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
4120 iword/pword selector.
4121 (ios_base::iword, ios_base::pword): Use it.
4122 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
4123 iword or pword member on alloc failure.
4124 * testsuite/27_io/ios_base/storage/11584.cc: New test.
4126 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
4127 PJ Darcy <darcypj@us.ibm.com>
4129 * configure.host: Add support for *-tpf.
4130 * crossconfig.m4: Likewise.
4131 * configure: Regenerate.
4132 * config/os/tpf: New directory.
4133 * config/os/tpf/os_defines.h: New file.
4134 * config/os/tpf/ctype_base.h: Likewise.
4135 * config/os/tpf/ctype_inline.h: Likewise.
4136 * config/os/tpf/ctype_noninline.h: Likewise.
4138 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4141 * include/bits/sstream.tcc: Guard use of extern template.
4143 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4145 * include/bits/basic_string.tcc
4146 (basic_string(const basic_string&, size_type, size_type),
4147 basic_string(const basic_string&, size_type, size_type,
4148 const _Alloc&)): Avoid unnecessarily constructing iterators.
4150 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4152 * config/locale/generic/c_locale.cc: Fix throw messages
4153 to use the __N marker.
4154 * config/locale/gnu/c_locale.cc: Likewise.
4155 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
4157 * docs/html/17_intro/C++STYLE: Likewise.
4158 * include/bits/basic_ios.tcc: Likewise.
4159 * include/bits/fstream.tcc: Likewise.
4160 * include/bits/vector.tcc: Likewise.
4161 * include/ext/ropeimpl.h: Likewise.
4162 * include/std/std_bitset.h: Likewise.
4163 * src/ios.cc: Likewise.
4164 * src/locale.cc: Likewise.
4165 * src/localename.cc: Likewise.
4167 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4169 * include/bits/basic_string.h (_M_replace_aux): Use the
4170 __N marker in throw message.
4171 * include/bits/basic_string.tcc (assign(const _CharT*,
4172 size_type), insert(size_type, const _CharT*, size_type),
4173 replace(size_type, size_type, const _CharT*, size_type),
4174 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
4177 * include/bits/basic_string.h, include/bits/basic_string.tcc:
4178 Fold overlong lines, minor formatting changes.
4180 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4182 * include/bits/basic_string.h (replace(iterator, iterator,
4183 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
4184 (replace(iterator, iterator, const _CharT*)): Ditto.
4185 (replace(iterator, iterator, const _CharT*, size_type)):
4186 Add missing _GLIBCXX_DEBUG_PEDASSERT.
4188 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4190 * include/bits/basic_string.tcc (replace(size_type,
4191 size_type, const _CharT*, size_type)): Implement optimized
4192 in-place algorithm for non-overlapping ranges.
4193 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
4194 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
4196 * include/bits/basic_string.tcc (insert(size_type,
4197 const _CharT*, size_type)): Tweak slightly.
4199 2004-01-26 Andreas Schwab <schwab@suse.de>
4201 * config/locale/gnu/monetary_members.cc: Restore locale before
4202 rethrowing exception.
4204 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4206 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
4208 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
4211 * include/bits/basic_string.tcc: Very minor tweaks.
4213 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4215 * testsuite/performance/string_append.cc: Increase number
4218 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4220 * include/bits/basic_string.h (erase(size_type, size_type),
4221 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
4222 instead, thus avoiding redundant check for length_error.
4224 * include/bits/basic_string.h: Tweak some comments.
4226 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4228 * include/bits/basic_string.tcc (operator+(const _CharT*,
4229 const basic_string&)): No need to go through the append
4230 taking two iterators.
4232 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4234 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
4235 Revert last change to use std::min: machine language is worse.
4236 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
4237 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4238 (find_last_not_of(_CharT, size_type)): Ditto.
4240 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
4241 size_type)): Discard the value returned by _M_check.
4242 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
4243 (append(const basic_string&, size_type, size_type)): Ditto.
4244 (copy(_CharT*, size_type, size_type)): Ditto.
4245 (compare(size_type, size_type, const basic_string&)): Ditto.
4246 (compare(size_type, size_type, const basic_string&,
4247 size_type, size_type)): Ditto.
4248 (compare(size_type, size_type, const _CharT*)): Ditto.
4249 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4251 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4253 * include/bits/basic_string.h (insert(size_type,
4254 const basic_string&, size_type, size_type)): Define inline here.
4255 * include/bits/basic_string.tcc (insert(size_type,
4256 const basic_string&, size_type, size_type)): Move inline.
4258 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4260 * include/bits/basic_string.h (assign(const basic_string&,
4261 size_type, size_type)): Define inline here.
4262 (replace(size_type, size_type, const basic_string&,
4263 size_type, size_type)): Ditto.
4264 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4265 _InputIterator, __false_type)): Only declare.
4266 (_M_replace(iterator, iterator, _InputIterator,
4267 _InputIterator)): Remove.
4268 * include/bits/basic_string.tcc (assign(const basic_string&,
4269 size_type, size_type)): Move inline.
4270 (replace(size_type, size_type, const basic_string&,
4271 size_type, size_type)): Ditto.
4272 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4273 _InputIterator, __false_type)): Define, now does also what
4274 _M_replace did before.
4275 * src/string-inst.cc (_M_replace): Don't instantiate.
4277 * include/bits/basic_string.tcc (find(const _CharT*,
4278 size_type, size_type)): Tidy.
4279 (rfind(_CharT, size_type)): Ditto.
4280 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
4281 (find_first_not_of(_CharT, size_type)): Ditto.
4282 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4283 (find_last_not_of(_CharT, size_type)): Ditto.
4285 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4288 * include/debug/bitset (operator|=): Fix typo.
4289 * testsuite/23_containers/bitset/operations/13838.cc: New.
4291 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4293 * include/bits/basic_string.tcc (insert(size_type,
4294 const _CharT*, size_type __n)): Fix length_error check.
4295 (replace(size_type, size_type, const _CharT*, size_type):
4296 Ditto; call _M_replace_safe.
4297 (_M_replace_aux(size_type, size_type, size_type, _CharT):
4298 Fix length_error check.
4299 (_M_replace(iterator, iterator, _InputIterator,
4300 _InputIterator)): Ditto, tweak.
4301 (_M_replace_safe(size_type, size_type, const _CharT*,
4302 size_type)): Remove length_error check.
4304 * include/bits/basic_string.tcc (append(const basic_string&),
4305 append(const basic_string&, size_type, size_type)): Tweak
4308 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
4309 size_type)): If __n == 0 don't call traits::copy.
4311 2004-01-23 Stefan Olsson <stefan@snon.net>
4313 * include/ext/mt_allocator.h: Reduce lock contention.
4315 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4318 * include/bits/fstream.tcc (underflow): Remove unused
4320 * include/bits/streambuf_iterator.h (equal): Ditto.
4321 * include/bits/locale_facets.h (_M_convert_from_char):
4324 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4327 * config/linker-map.gnu (nan): Delete.
4328 * libmath/mathconf.h (NAN, nan): Delete.
4329 * linkage.m4 (nan): Don't check for it.
4330 * libmath/nan.c: Delete file.
4332 * config.h.in, configure: Regenerate.
4334 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4336 * include/bits/basic_string.h (push_back(_CharT)):
4337 Call _M_replace_aux.
4338 (insert(size_type, const basic_string&)): Trivial tweak.
4339 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
4340 (insert(iterator, _CharT)): Ditto.
4341 (erase(size_type, size_type)): Ditto.
4342 (erase(iterator)): Ditto.
4343 (erase(iterator, iterator)): Ditto.
4344 (replace(size_type, size_type, size_type, _CharT)): Ditto.
4346 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
4349 * testsuite/performance/allocator_map_thread.cc: New test.
4351 2004-01-22 Paolo Carlini <pcarlini@suse.de>
4353 * include/bits/locale_facets.tcc
4354 (money_put::do_put(..., long double)): Use the basic_string
4355 constructor for char arrays, not that for C-strings, to pass
4356 __digits to do_put(..., const string_type&): __ws isn't
4359 2004-01-22 Paolo Carlini <pcarlini@suse.de>
4361 * include/bits/basic_string.h (_M_replace_safe): Change
4362 signatures to take size_types and const _CharT*.
4363 (_M_replace_aux): Likewise, takes size_types instead of
4365 (append(size_type, _CharT)): Update call.
4366 (assign(size_type, _CharT)): Ditto.
4367 (replace(iterator, iterator, size_type, _CharT)): Ditto.
4368 (_M_replace_dispatch(iterator, iterator, _Integer,
4369 _Integer, __true_type)): Ditto.
4370 * include/bits/basic_string.tcc (assign(const _CharT*,
4372 (insert(size_type, const _CharT*, size_type)): Ditto.
4373 (replace(size_type, size_type, const _CharT*,
4375 (_M_replace(iterator, iterator, _InputIterator,
4376 _InputIterator)): Ditto.
4377 (append(const basic_string&)): Ditto.
4378 (append(const basic_string&, size_type, size_type): Ditto.
4379 (append(const _CharT*, size_type): Ditto.
4380 (_M_replace_safe, _M_replace_safe): Change definitions
4381 accordingly, simplify.
4382 * string-inst.cc (_M_replace_safe): Don't instantiate.
4384 2004-01-21 Paolo Carlini <pcarlini@suse.de>
4386 * include/bits/basic_string.tcc (append(const basic_string&)):
4387 Revert previous change.
4388 (append(const basic_string&, size_type, size_type)): Revert
4389 previous change, use _M_check and _M_limit.
4391 2004-01-21 Paolo Carlini <pcarlini@suse.de>
4393 * include/bits/basic_string.h (_M_check): Change to return
4394 a checked __pos and take an additional const char* argument.
4395 (_M_fold): Rename to _M_limit, change to return a size_type,
4396 corresponding to the __off limited to the actual length.
4397 (insert(size_type, size_type, _CharT)): Update call, call
4399 (insert(iterator, _CharT)): Call replace(iterator, iterator,
4400 size_type, _CharT) instead.
4401 (erase(size_type, size_type)): Update calls.
4402 (replace(size_type, size_type, size_type, _CharT)): Ditto.
4403 (substr(size_type, size_type)): Use _M_check.
4404 * include/bits/basic_string.tcc (basic_string(const basic_string&,
4405 size_type, size_type)): Update calls.
4406 (basic_string(const basic_string&, size_type, size_type,
4407 const _Alloc&)): Ditto.
4408 (assign(const basic_string&, size_type, size_type)): Use the
4409 new _M_check and _M_limit.
4410 (insert(size_type, const basic_string&, size_type, size_type):
4412 (insert(size_type, const _CharT*, size_type)): Ditto.
4413 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
4414 (replace(size_type, size_type, const basic_string&,
4415 size_type, size_type)): Ditto.
4416 (append(const basic_string&)): Ditto.
4417 (append(const basic_string&, size_type, size_type)): Ditto.
4418 (copy(_CharT*, size_type, size_type)): Ditto.
4419 (compare(size_type, size_type, const basic_string&)): Ditto.
4420 (compare(size_type, size_type, const basic_string&,size_type,
4422 (compare(size_type, size_type, const _CharT*)): Ditto.
4423 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4425 2004-01-19 Stefan Olsson <stefan@snon.net>
4427 * include/ext/mt_allocator.h: If a thread, when it dies, still has
4428 memory on it's freelist this memory is not returned to global
4429 list. Simplification of deallocate so that memory is always
4430 returned to the calling thread id's freelist instead of to
4431 global. Fix typos. Add volatile where appropriate.
4433 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
4435 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
4436 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
4437 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
4439 2004-01-19 Paolo Carlini <pcarlini@suse.de>
4441 * src/debug.cc: Make sure all the names are prefixed with
4442 double (or single) underscore.
4444 2004-01-19 Paolo Carlini <pcarlini@suse.de>
4446 * src/debug.cc: Trivial formatting change.
4448 2004-01-19 Paolo Carlini <pcarlini@suse.de>
4450 * include/bits/basic_string.tcc (_S_construct(size_type,
4451 _CharT, const _Alloc&)): Remove redundant try/catch.
4452 (_M_mutate(size_type, size_type, size_type)): Ditto.
4453 (_M_clone(const _Alloc&, size_type)): Ditto.
4455 2004-01-18 Paolo Carlini <pcarlini@suse.de>
4457 * include/bits/basic_string.h (c_str()): Simplify, due to
4458 21.3.4 the internal representation is always kept null-terminated.
4459 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
4460 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
4461 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
4464 2004-01-18 Paolo Carlini <pcarlini@suse.de>
4466 * include/bits/basic_string.h (append(size_type, _CharT)):
4467 Moved inline, just call _M_replace_aux, no source iterators at
4468 risk of being clobbered.
4469 (assign(size_type, _CharT)): Call directly _M_replace_aux.
4470 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4471 input_iterator_tag)): Remove fifth unused argument.
4472 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4473 _InputIterator, __false_type)): Update call.
4474 * include/bits/basic_string.tcc (replace(size_type, size_type,
4475 const _CharT*, size_type)): Update call.
4476 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
4477 throw string literal.
4478 (_M_replace_safe(iterator, iterator, _ForwardIterator,
4479 _ForwardIterator)): Likewise.
4480 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4481 input_iterator_tag)): Remove fifth unused argument.
4482 (append(size_type __n, _CharT __c)): Move inline.
4483 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
4484 const C*, const C*, input_iterator_tag)): Remove fifth unused
4487 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
4489 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
4490 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
4492 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4494 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
4497 2004-01-15 Stefan Olsson <stefan@snon.net>
4499 * include/ext/mt_allocator.h: Reuse thread id's as soon as
4500 possible by changing the behaviour of thread_freelist to do
4501 push_front when threads die instead of push_back.
4503 2004-01-14 Paolo Carlini <pcarlini@suse.de>
4505 * include/bits/locale_facets.h (struct __numpunct_cache):
4506 Add member _M_grouping_size, caching the length of _M_grouping.
4507 (__numpunct_cache<>::_M_cache): Assign the latter.
4508 (__verify_grouping): Move declaration...
4509 * include/bits/locale_facets.tcc (__verify_grouping):
4510 ... here, change signature to take a const char* and a size_t
4511 for the grouping; not a template anymore.
4512 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
4513 Likewise change signature and tweak consistently.
4514 (num_get::_M_extract_float, num_get::_M_extract_int,
4515 num_put::_M_insert_int, num_put::_M_insert_float,
4516 money_get::do_get(string_type&), money_get::do_put(string_type)):
4518 * config/locale/generic/numeric_members.cc
4519 (numpunct<>::_M_initialize_numpunct): Assign the new member.
4520 * config/locale/gnu/numeric_members.cc
4521 (numpunct<>::_M_initialize_numpunct): Likewise.
4522 * src/locale-inst.cc (__add_grouping): Tweak signature.
4523 (__verify_grouping): Don't instantiate, not a template anymore.
4525 * include/bits/locale_facets.h: Rename _M_truename_len ->
4526 _M_truename_size, _M_falsename_len -> _M_falsename_size.
4527 * include/bits/locale_facets.tcc: Likewise.
4528 * config/locale/generic/numeric_members.cc: Likewise.
4529 * config/locale/gnu/numeric_members.cc: Likewise.
4531 2004-01-14 Stefan Olsson <stefan@snon.net>
4533 * include/ext/mt_allocator.h: Fixups.
4534 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
4535 * testsuite/performance/allocator_thread.cc: Same.
4537 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
4539 * testsuite/performance/ifstream_extract_float.cc: Add higher
4541 * testsuite/performance/ofstream_insert_float.cc: Same.
4543 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4545 * src/locale-misc-inst.cc (__convert_from_v(long),
4546 __convert_from_v(unsigned long), __convert_from_v(long long),
4547 __convert_from_v(unsigned long long)): Remove, unused.
4549 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
4551 * testsuite/performance/ifstream_extract_float.cc: New.
4552 * testsuite/performance/ofstream_insert_float.cc: Float generation
4555 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
4556 * 20_util/auto_ptr/1.cc: ...this.
4557 * 20_util/auto_ptr/2.cc: Same.
4558 * 20_util/auto_ptr/3.cc: Same.
4559 * 20_util/auto_ptr/3946.cc: Same.
4560 * 20_util/auto_ptr/4.cc: Same.
4561 * 20_util/auto_ptr/5.cc: Same.
4562 * 20_util/auto_ptr/6.cc: Same.
4563 * 20_util/auto_ptr/7.cc: Same.
4564 * 20_util/auto_ptr/assign_neg.cc
4565 * 20_util/pairs.cc: Break into...
4566 * 20_util/pair/1.cc: ...this.
4567 * 20_util/pair/2.cc: Same.
4568 * 20_util/pair/3.cc: Same.
4569 * 20_util/pair/4.cc: Same.
4571 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4573 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
4574 Set correctly just basefield, the only group that matters.
4576 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4578 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
4579 (_Rope_rep_base): Inherit directly from the rope allocator;
4580 use rebinding instead of _Alloc_traits; pick up data member
4581 from _Rope_rep_alloc_base.
4582 (_Rope_alloc_base): Eliminate.
4583 (_Rope_base): Inherit directly from the rope allocator; use
4584 rebinding instead of _Alloc_traits; pick up data member from
4586 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
4587 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
4589 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4592 * include/bits/basic_string.tcc (compare(size_type, size_type,
4593 const _CharT*, size_type)): Implement correctly the resolution
4594 of DR 5: basically, s is a char array, -not- a C string.
4595 * include/bits/basic_string.h: Tweak some comments.
4596 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
4597 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
4599 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
4601 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
4604 2004-01-12 Paolo Carlini <pcarlini@suse.de>
4606 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
4608 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
4611 2004-01-12 Paolo Carlini <pcarlini@suse.de>
4613 * include/bits/locale_facets.h (struct __numpunct_cache):
4614 Add members _M_truename_len and _M_falsename_len, caching
4615 the lengths of _M_truename and _M_falsename.
4616 (__numpunct_cache<>::_M_cache): Assign the latter.
4617 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
4618 num_put::do_put(bool)): Use the new members, thus avoiding
4619 computing string lengths again and again.
4620 * config/locale/generic/numeric_members.cc
4621 (numpunct<>::_M_initialize_numpunct): Assign the new members.
4622 * config/locale/gnu/numeric_members.cc
4623 (numpunct<>::_M_initialize_numpunct): Likewise.
4625 2004-01-12 Mark Mitchell <mark@codesourcery.com>
4627 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
4628 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
4630 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
4631 and remove Cygwin XFAIL.
4632 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
4633 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
4634 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
4635 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
4637 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4638 * testsuite/27_io/objects/char/7.cc: Likewise.
4639 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
4640 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
4641 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
4643 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
4645 * include/std/std_complex.h (std::complex<>::real): Return a
4646 reference. Add non-const overload.
4647 (std::complex<>::real): Likewise.
4648 (std::real): Likewise.
4649 (std::imag): Likewise.
4650 (std::operator+): Tidy.
4651 (std::operator-): Likewise.
4652 (std::operator*): Likewise.
4653 (std::operator/): Likewise.
4654 (std::operator>>): Likewise.
4656 2004-01-11 Paolo Carlini <pcarlini@suse.de>
4659 * include/bits/fstream.tcc (imbue): Exploit the external
4660 buffer to imbue 'on the fly' a new locale and convert its
4661 remainder with the new codecvt facet.
4662 (underflow): Tweak slightly to deal with this special case.
4663 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
4664 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
4665 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
4666 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
4667 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
4669 2004-01-10 Paolo Carlini <pcarlini@suse.de>
4671 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
4674 2004-01-10 Paolo Carlini <pcarlini@suse.de>
4677 * include/bits/locale_classes.h (class locale): Fix category
4679 * testsuite/22_locale/locale/13630.cc: Add.
4681 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
4683 * include/bits/locale_facets.h: Make a name really dependent. This
4684 will be needed when Core Issue 224 is implemented.
4686 2004-01-09 Paolo Carlini <pcarlini@suse.de>
4688 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
4689 * testsuite/performance/allocator_thread.cc: Likewise.
4691 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
4693 * crossconfig.m4: Add LFS, io bits to linux cross config.
4694 * acconfig.h: Remove obsolete bits, reorder.
4695 * config.h.in: Regenerate.
4699 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
4701 * include/bits/stl_list.h:
4702 * include/bits/list.tc:
4704 Performance enhancements for destructor, push_front(),
4705 push_back(), pop_front(), pop_back(), sort()
4706 Eliminated static_casts where possible.
4707 Moved code out of header files into new src/list.cc
4708 implementation file for library where possible.
4709 Remove inheritance from iterator class and create separate
4710 classes for non-constant and constant iterators.
4711 * include/bits/stl_tree.h (_Rb_tree class):
4713 Only erase contents in destructor.
4714 Eliminate unnecessary initialization in assignment operator.
4715 Optimize for the nominal case by not checking whether
4716 container is empty in clear().
4717 Re-order test in _M_insert() to improve performance.
4718 Move initialization of new node's left & right pointers to
4719 src/tree.cc to where new node's colour is initialized
4720 and to reduce the amount of inline code.
4721 Use _M_leftmost() and _M_end() to improve readability where
4723 Create separate classes for non-constant and constant
4724 iterators to clarify code, avoid extra template parameters and
4725 casting away constness.
4727 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
4729 * src/Makefile.am (sources): Add list.cc, tree.cc.
4730 * src/stl_tree.cc: Move to...
4731 * src/tree.cc: ...here.
4733 * config/linker-map.gnu: Tweaks.
4734 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
4735 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
4737 * bits/stl_vector.h: Column wrap comments.
4739 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
4741 (re-open) PR libstdc++/12658
4742 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
4743 (locale::global): Likewise.
4745 2004-01-07 Paolo Carlini <pcarlini@suse.de>
4747 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
4748 Remove redundant #include.
4749 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
4750 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
4751 re-enable normal testing.
4752 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
4754 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
4755 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
4757 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
4759 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
4761 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
4763 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
4765 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
4767 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
4769 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
4770 More properly, #include <locale>.
4771 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
4772 Remove redundant #include.
4773 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
4774 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
4775 redundant DejaGnu directive.
4776 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
4779 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
4780 Stefan Olsson <stefan@snon.net>
4782 * scripts/check_performance: Use -pthread.
4783 * testsuite/performance/allocator.cc: Tweaks, add list.
4784 * testsuite/performance/allocator_thread.cc: New.
4786 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
4788 * include/bits/locale_facets.h: Document public classes and
4790 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
4793 2004-01-06 Paolo Carlini <pcarlini@suse.de>
4795 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
4796 Remove redundant #includes.
4797 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
4799 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
4801 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
4802 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
4803 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
4804 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
4805 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
4806 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
4807 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
4808 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
4809 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
4810 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
4811 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
4812 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
4813 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
4814 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
4815 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
4817 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
4819 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
4821 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
4823 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
4825 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
4826 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
4827 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
4829 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4831 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
4832 Remove redundant #includes.
4833 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
4835 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
4837 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
4839 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
4841 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
4843 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
4845 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
4847 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
4849 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
4851 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
4853 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
4855 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
4858 2004-01-04 Mark Mitchell <mark@codesourcery.com>
4861 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
4863 * testsuite/27_io/basic_fstream/4.cc: Likewise.
4864 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
4865 * testsuite/27_io/basic_ios/4.cc: Likewise.
4866 * testsuite/27_io/basic_iostream/4.cc: Likewise.
4867 * testsuite/27_io/basic_istream/4.cc: Likewise.
4868 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
4869 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
4870 * testsuite/27_io/basic_ostream/4.cc: Likewise.
4871 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
4872 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
4873 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
4875 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4877 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
4878 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
4879 always use double underscored names.
4880 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
4882 * include/bits/locale_facets.h (struct __numpunct_cache):
4883 Dimension _M_atoms_out and _M_atoms_in one position smaller.
4884 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out