1 2004-10-03 Roger Sayle <roger@eyesopen.com>
3 * config/locale/generic/c_locale.cc (__convert_to_v): Use
4 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
5 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
6 to check for presence of strtold.
8 2004-10-03 Paolo Carlini <pcarlini@suse.de>
10 * include/bits/stl_list.h: Trivial formatting fixes.
11 * include/bits/stl_tree.h: Likewise.
13 2004-10-03 Paolo Carlini <pcarlini@suse.de>
15 * include/bits/sstream.tcc (seekpos): In case of success, just
18 2004-10-01 Paolo Carlini <pcarlini@suse.de>
20 * include/bits/sstream.tcc (pbackfail): Implement correctly
21 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
23 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
24 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
25 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
26 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
27 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
29 2004-10-01 Paolo Carlini <pcarlini@suse.de>
31 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
32 conditionals consistently with seekoff.
33 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
34 (_M_sync): Simplify a bit, clean-up comment.
36 2004-09-30 Paolo Carlini <pcarlini@suse.de>
38 PR libstdc++/10975 (DR 453)
39 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
41 * docs/html/ext/howto.html: Add an entry for DR 453.
42 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
43 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
44 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
45 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
46 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
47 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
49 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
50 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
52 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
54 2004-09-29 Paolo Carlini <pcarlini@suse.de>
56 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
57 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
58 (str()): Slightly tweak, protect from pptr() == 0.
59 (_M_update_egptr()): Likewise.
60 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
61 for an empty buffer use __beg instead of _M_string.capacity().
62 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
63 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
65 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
66 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
67 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
68 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
70 2004-09-29 Paolo Carlini <pcarlini@suse.de>
71 Benjamin Kosnik <bkoz@redhat.com>
73 * testsuite/testsuite_io.h (class constraint_buf): New, extended
74 and templatized version of constraint_filebuf; add typedefs for
75 streambuf/stringbuf/filebuf and wchar_t counterparts.
77 2004-09-28 Paolo Carlini <pcarlini@suse.de>
80 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
81 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
82 don't deal with _S_empty_rep.
83 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
84 _M_leak_hard, _M_mutate): Likewise.
85 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
86 * acconfig.h: Add corresponding undef.
87 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
88 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
89 * configure: Regenerate.
90 * config.h.in: Likewise.
92 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
93 Paolo Carlini <pcarlini@suse.de>
95 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
96 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
97 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
98 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
101 2004-09-28 Paolo Carlini <pcarlini@suse.de>
103 * README: Remove obsolete entry about include/c_shadow.
105 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
108 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
110 2004-09-24 Paolo Carlini <pcarlini@suse.de>
112 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
113 rename a variable, move an assignment.
114 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
116 2004-09-24 Paul Brook <paul@codesourcery.com>
118 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
120 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
121 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
122 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
123 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
124 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
125 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
127 2004-09-23 Zack Weinberg <zack@codesourcery.com>
129 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
130 * testsuite/23_containers/map/operators/1_neg.cc
131 * testsuite/23_containers/set/operators/1_neg.cc:
132 Update locations and/or regexps of dg-error markers.
134 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
136 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
137 Add rule to build ${host_builddir}/gthr-tpf.h.
138 * include/Makefile.in: Regenerate.
140 2004-09-23 Paolo Carlini <pcarlini@suse.de>
141 Magnus Fromreide <magfr@lysator.liu.se>
143 * include/bits/boost_concept_check.h (struct _SequenceConcept):
144 Remove wrong requirement, i.e., not present in Table 67.
146 2004-09-21 Paolo Carlini <pcarlini@suse.de>
148 PR libstdc++/12882 (cont)
149 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
150 * configure: Regenerate.
151 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
152 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
153 trivial showmanyc for large files too.
155 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
157 * include/bits/stl_algo.h (remove): Remove too restrictive
160 2004-09-17 Paolo Carlini <pcarlini@suse.de>
162 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
163 as per Nathan's original suggestion.
165 2004-09-17 Paolo Carlini <pcarlini@suse.de>
167 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
169 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
170 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
171 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
173 2004-09-17 Paolo Carlini <pcarlini@suse.de>
174 Andrea Arcangeli <andrea@suse.de>
176 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
177 call unnecessarily sync, that is fflush: the library, since 3.4.0
178 does not use buffered fread/fwrite.
179 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
181 2004-09-15 Mark Mitchell <mark@codesourcery.com>
183 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
185 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
187 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
188 (__cxa_vec_new): Use it.
189 (__cxa_vec_new2): Likewise.
190 (__cxa_vec_new3): Likewise.
191 (__cxa_vec_cdtor): Likewise.
192 (__cxa_vec_cctor): Likeiwse.
193 (__cxa_vec_dtor): Likewise.
194 (__cxa_vec_cleanup): Likewise.
195 (__cxa_vec_delete2): Likewise.
196 (__cxa_vec_delete3): Likewise.
197 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
198 (__cxa_vec_new2): Likewise.
199 (__cxa_vec_new3): Likewise.
200 (__cxa_vec_cdtor): Likewise.
201 (__cxa_vec_cctor): Likeiwse.
202 (__cxa_vec_dtor): Likewise.
203 (__cxa_vec_cleanup): Likewise.
204 (__cxa_vec_delete2): Likewise.
205 (__cxa_vec_delete3): Likewise.
206 (__aeabi_vec_ctor_nocookie_nodtor): New function.
207 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
208 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
209 (__aeabi_vec_new_cookie_noctor): Likewise.
210 (__aeabi_vec_new_nocookie): Likewise.
211 (__aeabi_vec_new_cookie_nodtor): Likewise.
212 (__aeabi_vec_new_cookie): Likewise.
213 (__aeabi_vec_dtor): Likewise.
214 (__aeabi_vec_dtor_cookie): Likewise.
215 (__aeabi_vec_delete): Likewise.
216 (__aeabi_vec_delete3): Likewise.
217 (__aeabi_vec_delete3_nodtor): Likewise.
218 (__aeabi_atexit): Likewise.
220 2004-09-14 Nathan Myers <ncm@cantrip.org>
222 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
223 for 11722: copy can replace move; the common case is __avail == 0.
225 2004-09-14 Paolo Carlini <pcarlini@suse.de>
227 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
228 to __is_scalar, more clear and consistent with "tr1" naming.
229 * include/bits/stl_algobase.h: Update consistently throughout.
231 2004-09-13 Paolo Carlini <pcarlini@suse.de>
234 * include/std/std_fstream.h (xsgetn): Declare only.
235 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
236 always_noconv() case: when __n > __buflen, copy the available
237 buffer and issue a direct read.
238 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
240 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
243 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
245 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
246 libstdc++_maybe_build_wrapper instead of using local code.
248 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
250 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
252 2004-09-03 Jan Beulich <jbeulich@novell.com>
254 * crossconfig.m4: Add NetWare as a target.
255 * configure: Regenerate.
257 2004-09-02 Mark Mitchell <mark@codesourcery.com>
259 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
262 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
263 Simon Richter <Simon.Richter@hogyros.de>
266 * include/bits/istream.tcc: Add extern template for iostream
267 char and wchar_t instantiations.
269 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
270 Leland Wang <llwang@infor.org>
273 * include/ext/ropeimpl.h (rope::_S_compare): Use
274 _Rope_constants::_S_leaf.
276 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
279 * include/Makefile.am (ext_headers): Remove demangle.h.
280 * include/Makefile.in: Regenerate.
281 * include/ext/demangle.h: Remove.
283 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
286 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
288 (__pool): New, specialize.
289 (__common_pool): New, static bits here.
290 (__per_type_pool): New, and here.
291 (__mt_alloc_base): New.
292 (__mt_alloc): Add template parameter, inherit from it.
293 * src/allocator.cc: Split this...
294 * src/allocator-inst.cc: And this...
295 * src/pool_allocator.cc: ...into this.
296 * src/mt_allocator.cc: ... and this. Add definitions for
298 * src/Makefile.am (sources): Split allocator.cc to
299 pool_allocator.cc and mt_allocator.cc.
300 * src/Makefile.in: Regenerate.
301 * config/linker-map.gnu: Add symbols.
302 * docs/html/ext/mt_allocator.html: Document new design.
303 * testsuite/ext/mt_allocator/tune-1.cc: New.
304 * testsuite/ext/mt_allocator/tune-2.cc: New.
305 * testsuite/ext/mt_allocator/tune-3.cc: New.
306 * testsuite/ext/mt_allocator/tune-4.cc: New.
308 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
309 * testsuite/ext/allocators.cc: Use check_new, split into...
310 * testsuite/ext/mt_allocator/check_new.cc: this.
311 * testsuite/ext/pool_allocator/check_new.cc: this.
312 * testsuite/ext/malloc_allocator/check_new.cc: this.
313 * testsuite/ext/debug_allocator/check_new.cc: this.
314 * testsuite/ext/mt_allocator/instantiate.cc: this.
315 * testsuite/ext/pool_allocator/instantiate.cc: this.
316 * testsuite/ext/malloc_allocator/instantiate.cc: this.
317 * testsuite/ext/debug_allocator/instantiate.cc: this.
319 2004-08-30 Phil Edwards <phil@codesourcery.com>
321 * docs/html/install.html: Update locales list (from Paolo).
322 Remove other redundant information and point to the GCC install
325 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
327 * include/ext/pool_allocator.h: Rename __pool_base to
329 * src/allocator.cc: Same.
330 * config/linker-map.gnu: Same.
332 2004-08-30 Paolo Carlini <pcarlini@suse.de>
333 Kenneth C. Schalk <ken@xorian.net>
336 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
337 Check the return value of fclose/sync, loop on EINTR.
338 (__basic_file<char>::sys_open): Likewise, for sync.
340 2004-08-29 Paolo Carlini <pcarlini@suse.de>
342 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
343 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
344 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
345 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
346 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
348 2004-08-27 Jason Merrill <jason@redhat.com>
351 * libsupc++/guard.cc (static_mutex): Internal class implementing a
352 recursive mutex which controls initialization of local statics.
353 (__gnu_cxx::recursive_init): New exception class.
354 (__cxa_guard_acquire): Deal with locking and recursion detection.
355 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
357 2004-08-27 Matthias Klose <doko@debian.org>
359 * configure.host: For mips*-*-linux* update cpu_include_dir
360 after atomicity_dir is set.
362 2004-08-27 Matthias Klose <doko@debian.org>
364 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
365 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
366 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
369 2004-08-27 Paolo Carlini <pcarlini@suse.de>
371 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
372 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
373 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
374 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
375 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
377 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
379 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
380 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
381 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
382 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
384 2004-08-25 Paolo Carlini <pcarlini@suse.de>
386 PR libstdc++/17038 (partial)
387 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
389 * include/bits/locale_facets.h (class __timepunct): Add FIXME
390 comment about _M_put.
391 * config/locale/generic/time_members.cc (_M_put): Always null
393 * config/locale/gnu/time_members.cc (_M_put): Likewise.
394 * testsuite/22_locale/time_put/put/char/17038.cc: New.
395 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
397 2004-08-24 Paolo Carlini <pcarlini@suse.de>
399 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
400 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
401 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
402 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
403 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
404 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
406 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
408 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
410 2004-08-22 Matthias Klose <doko@debian.org>
412 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
413 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
415 2004-08-23 Paolo Carlini <pcarlini@suse.de>
417 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
418 * aclocal.m4: Regenerate with automake-1.9.1.
419 * configure: Regenerate.
420 * Makefile.in: Likewise.
421 * include/Makefile.in: Likewise.
422 * libmath/Makefile.in: Likewise.
423 * libsupc++/Makefile.in: Likewise.
424 * po/Makefile.in: Likewise.
425 * src/Makefile.in: Likewise.
426 * testsuite/Makefile.in: Likewise.
428 2004-08-22 Paolo Carlini <pcarlini@suse.de>
430 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
431 to a signed type, long according to the resolution of DR 359.
432 * testsuite/22_locale/num_put/put/char/9.cc: New.
433 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
435 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
436 Simplify a bit: no need to clear showpos.
438 2004-08-21 Paolo Carlini <pcarlini@suse.de>
440 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
443 2004-08-21 Paolo Carlini <pcarlini@suse.de>
445 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
446 wchar_t type for the fill argument; minor formatting tweaks.
447 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
448 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
449 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
450 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
451 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
452 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
454 2004-08-21 Paolo Carlini <pcarlini@suse.de>
456 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
457 with _M_word != _M_local_word two times, redundantly.
459 2004-08-20 Jason Merrill <jason@redhat.com>
461 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
462 _GLIBCXX_ to #pragma lines.
463 * include/Makefile.in: Update.
465 2004-08-20 Paolo Carlini <pcarlini@suse.de>
467 PR libstdc++/7219 (continued)
468 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
470 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
471 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
473 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
475 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
477 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
478 barrier to locking asm.
480 2004-08-20 Paolo Carlini <pcarlini@suse.de>
482 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
483 actually the warning is a front-end bug (c++/17120).
485 2004-08-20 Matthias Klose <doko@debian.org>
487 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
489 2004-08-20 Paolo Carlini <pcarlini@suse.de>
491 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
492 used as truth value warning.
494 2004-08-20 Paolo Carlini <pcarlini@suse.de>
496 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
499 2004-08-20 Paolo Carlini <pcarlini@suse.de>
501 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
503 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
505 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
507 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
509 2004-08-19 Paolo Carlini <pcarlini@suse.de>
511 * testsuite/performance/20_util/allocator/insert.cc: For std::map
512 instantiate the allocator for a correct pair type.
513 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
514 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
515 * testsuite/performance/20_util/allocator/producer_consumer.cc:
518 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
519 minor formatting fixes.
520 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
522 2004-08-19 Paolo Carlini <pcarlini@suse.de>
524 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
526 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
527 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
528 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
529 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
530 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
531 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
532 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
534 2004-08-19 Paolo Carlini <pcarlini@suse.de>
536 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
538 2004-08-18 Matthias Klose <doko@debian.org>
540 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
541 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
542 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
544 2004-08-17 Paolo Carlini <pcarlini@suse.de>
546 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
548 2004-08-17 Paolo Carlini <pcarlini@suse.de>
550 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
552 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
554 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
556 2004-08-16 Paolo Carlini <pcarlini@suse.de>
558 * include/bits/indirect_array.h: Trivial formatting fixes.
559 * include/bits/valarray_after.h: Likewise.
560 * include/bits/valarray_array.h: Likewise.
561 * src/valarray-inst.cc: Likewise.
563 2004-08-15 Paolo Carlini <pcarlini@suse.de>
565 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
566 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
567 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
569 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
570 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
571 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
572 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
573 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
575 2004-08-15 Paolo Carlini <pcarlini@suse.de>
577 * include/bits/deque.tcc: Trivial formatting fixes.
579 2004-08-15 Paolo Carlini <pcarlini@suse.de>
581 * include/bits/deque.tcc: Trivial formatting fixes.
583 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
584 Remove unneded typedef.
586 * include/bits/locale_facets.tcc: Very minor tweaks.
588 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
589 type for the fill argument.
590 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
591 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
592 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
593 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
594 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
595 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
596 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
597 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
599 2004-08-13 Paolo Carlini <pcarlini@suse.de>
601 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
602 memmove is not needed, memcpy suffices.
604 2004-08-13 Paolo Carlini <pcarlini@suse.de>
606 * include/std/std_fstream.h (class basic_ifstream,
607 class basic_ofstream, class basic_fstream): Add const overloads
608 of is_open, as per DR 365 [WP].
609 * docs/html/ext/howto.html: Add an entry for DR 365.
611 2004-08-12 Paolo Carlini <pcarlini@suse.de>
613 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
615 2004-08-12 Paolo Carlini <pcarlini@suse.de>
618 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
619 to the returned value, reorganize a bit.
620 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
621 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
623 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
624 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
625 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
626 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
628 2004-08-12 Paul Brook <paul@codesourcery.com>
630 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
631 _GLIBCXX_CXA_VEC_CTOR_RETURN.
632 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
633 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
634 __cxa_vec_ctor_return.
635 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
636 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
638 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
640 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
641 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
642 src/Makefile.in, testsuite/Makefile.in: Regenerate
644 2004-08-12 Jan Beulich <jbeulich@novell.com>
646 * config/locale/generic/ctype_members.cc
647 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
648 initializer for return value, as that is invalid for enumerated types.
649 * config/locale/gnu/ctype_members.cc
650 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
652 2004-08-11 Paolo Carlini <pcarlini@suse.de>
654 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
656 2004-08-11 Paolo Carlini <pcarlini@suse.de>
658 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
660 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
661 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
662 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
663 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
664 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
665 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
666 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
667 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
668 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
669 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
670 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
671 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
672 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
673 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
674 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
675 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
676 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
677 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
678 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
679 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
680 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
682 2004-08-11 Paolo Carlini <pcarlini@suse.de>
683 Petur Runolfsson <peturr02@ru.is>
686 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
687 standard streams are constructed.
688 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
690 2004-08-09 Paolo Carlini <pcarlini@suse.de>
692 * include/bits/stl_bvector.h: Trivial formatting fixes.
694 2004-08-09 Paolo Carlini <pcarlini@suse.de>
696 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
698 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
699 Paolo Carlini <pcarlini@suse.de>
701 * src/debug.cc (_Error_formatter::_M_print_string): In order
702 to print individual words from __string, _M_format_word can't
703 be called since may be just sprintf, thus ignoring completely
704 __n: instead, use memmove and append '\0' by hand.
706 2004-08-07 Paolo Carlini <pcarlini@suse.de>
708 * config/locale/generic/c_locale.h (__convert_from_v): Don't
709 use a default for __prec, assume __prec >= 0 and simplify.
710 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
711 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
712 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
714 2004-08-04 Phil Edwards <phil@codesourcery.com>
716 * docs/html/configopts.html: Emphasize that options change.
717 * docs/html/17_intro/configury.html: Update links.
719 2004-08-03 Paolo Carlini <pcarlini@suse.de>
721 * include/bits/list.tcc: Trivial formatting fixes.
723 2004-08-03 Mark Mitchell <mark@codesourcery.com>
725 * libsupc++/new_op.cc: Update comments.
726 * libsupc++/del_op.cc: Likewise.
728 2004-08-02 Mark Mitchell <mark@codesourcery.com>
730 * libsupc++/cxxabi.h: Make all declarations have default
732 * libsupc++/exception: Likewise.
733 * libsupc++/new: Likewise.
734 * libsupc++/typeinfo: Likewise.
735 * libsupc++/unwind-cxx.h: Likewise.
736 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
737 the __cxxabiv1 namespace.
738 (__cxa_free_exception): Likewise.
739 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
740 (__cxa_bad_typeid): Likewise.
741 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
742 (__cxa_end_catch): Likewise.
743 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
744 (__cxa_get_globals): Likewise.
745 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
746 (__cxa_rethrow): Likewise.
747 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
748 * libsupc++/eh_type.cc: Include <cxxabi.h>.
750 * Makefile.am (hosted_source): Add libmath and testsuite.
751 (SUBDIRS): Remove them.
752 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
753 on arm*-*-symbianelf*.
754 * crossconfig.m4: Add arm*-*-symbianelf* support.
755 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
756 when freestanding. Do not bring names into std:: namespace with
757 "using" when freestanding. Declare required functions and macros
759 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
761 * libsupc++/del_op.cc: Declare "free" only when freestanding.
762 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
763 (malloc): Declare when freestanding.
766 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
768 (__cxa_free_exception): Likewise for free.
769 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
770 * libsupc++/pure.cc (writestr): Define to nothing when
772 * libsupc++/vterminate.cc: Do not define anything when
774 * Makefile.in: Regenerated.
775 * aclocal.m4: Likewise.
776 * configure: Likewise.
777 * include/Makefile.in: Likewise.
778 * libmath/Makefile.in: Likewise.
779 * libsupc++/Makefile.in: Likewise.
780 * po/Makefile.in: Likewise.
781 * src/Makefile.in: Likewise.
782 * testsuite/Makefile.in: Likewise.
784 2004-08-01 Matt Austern <austern@apple.com>
787 * include/bits/stl_list.h (_M_create_node): Remove unused
788 zero-argument version.
789 * include/ext/slist (_M_create_node): Pass two arguments to
790 allocator's construct() member function.
791 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
792 * testsuite/23_containers/list/explicit_instantiation.cc: New.
793 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
794 * testsuite/23_containers/map/explicit_instantiation.cc: New.
795 * testsuite/23_containers/set/explicit_instantiation.cc: New.
796 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
797 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
798 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
799 * testsuite/ext/slist_explicit_instantiation.cc: New.
801 2004-07-30 Paolo Carlini <pcarlini@suse.de>
803 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
804 num_get<>::_M_extract_int): In the main parsing loop delay the
805 life of __q to the actual use point.
807 2004-07-29 Paolo Carlini <pcarlini@suse.de>
810 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
811 Don't clip the precision passed down to __convert_from_v:
812 22.2.2.2.2 nowhere says so.
813 * testsuite/22_locale/num_put/put/char/14220.cc: New.
814 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
816 2004-07-29 Paolo Carlini <pcarlini@suse.de>
818 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
820 2004-07-29 Paolo Carlini <pcarlini@suse.de>
821 Petur Runolfsson <peturr02@ru.is>
823 PR libstdc++/12658 (continued)
824 * src/locale_init.cc (locale::locale, locale::global): Use
825 a single locale_mutex instead of two separate mutexes.
827 2004-07-29 Paolo Carlini <pcarlini@suse.de>
830 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
832 * testsuite/23_containers/map/insert/16813.cc: New.
834 2004-07-29 Phil Edwards <phil@codesourcery.com>
836 * docs/html/faq/index.html: Update version references. Make
837 clear that code from SGI has diverged greatly. Remove references
838 to library snapshots and what's-new sections.
839 * docs/html/faq/index.txt: Regenerate.
841 2004-07-28 Matt Austern <austern@apple.com>
843 * include/bits/stl_construct.h (_Destroy): New three-argument
844 overload that takes an allocator argument. Another inline
845 three-argument overload that takes std::allocator and dispatches
846 to the two-argument version.
847 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
848 Change return type to void to match uninitialized_fill_n.
849 (__uninitialized_copy_a_): New function. Like uninitialized_copy
850 except that it takes an allocator and uses it for construct and
851 destroy. If the allocator is std::allocator, dispatches to
853 (__uninitialized_fill_a): Likewise.
854 (__uninitialized_fill_n_a): Likewise.
855 (__uninitialized_copy_copy): Give it an allocator argument.
856 (__uninitialized_fill_copy): Likewise.
857 (__uninitialized_copy_fill): Likewise.
858 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
859 and stl_uninitialized.h. Replace use of single-argument _Construct
860 and _Destroy with use of allocator's construct and destroy methods.
861 * include/bits/list.tcc: Likewise.
862 * include/bits/stl_deque.h: Likewise.
863 * include/bits/stl_list.h: Likewise.
864 * include/bits/stl_tree.h: Likewise.
865 * include/bits/stl_vector.h: Likewise.
866 * include/bits/vector.tcc: Likewise.
867 * include/ext/hashtable.h: Use rebind so that allocator_type
868 has correct type for a container's allocator. Replace use of
869 single-argument _Construct and _Destroy with use of allocator's
870 construct and destroy methods.
871 * include/ext/memory (__uninitialized_copy_n_a): New function.
872 Like uninitialized_copy_n except that it takes an extra parameter,
873 an allocator, and uses it for construct and destroy operations.
874 * include/ext/rope: Use new forms defined in stl_construct.h,
875 stl_uninitialized.h, and ext/memory. Replace use of single-argument
876 _Construct and _Destroy with allocator construct and destroy methods.
877 * include/ext/ropeimpl.h: Likewise.
878 * include/ext/slist.h: Likewise.
879 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
880 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
881 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
882 * testsuite/23_containers/list/check_construct_destroy.cc: New.
883 * testsuite/23_containers/set/check_construct_destroy.cc: New.
884 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
885 * testsuite/ext/hash_check_construct_destroy.cc: New.
886 * testsuite/ext/slist_check_construct_destroy.cc: New.
888 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
890 2003-10-01 Eric Christopher <echristo@redhat.com>
891 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
893 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
894 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
896 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
899 * include/bits/locale_facets.tcc: Fix for -Werror.
901 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
903 * docs/html/debug.html: Say debug mode only available since 3.4.0.
905 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
907 * docs/doxygen/mainpage.html: Clarify links.
908 * docs/doxygen/stdheader.cc: Add files.
909 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
910 * docs/doxygen/user.cfg.in: New options, wrap.
912 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
914 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
916 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
919 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
921 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
924 * scripts/create_testsuite_files: Pass -print to find.
926 2004-07-15 Paolo Carlini <pcarlini@suse.de>
928 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
929 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
931 2004-07-15 Jakub Jelinek <jakub@redhat.com>
934 * acinclude.m4 (glibcxx_shared_libgcc): Correct
935 glibcxx_shared_libgcc test for multilibs.
936 * configure: Rebuilt.
938 2004-07-14 Paolo Carlini <pcarlini@suse.de>
941 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
942 the signature to return void, as per 20.4.4.3.
943 * include/bits/stl_vector.h (vector::vector(size_type,
944 const value_type&, const allocator_type&), vector::vector(size_type),
945 vector::_M_initialize_dispatch): Adjust callers.
946 * include/bits/vector.tcc (vector<>::_M_fill_assign,
947 vector<>::_M_fill_insert): Likewise.
948 * testsuite/20_util/memory/16505.cc: New.
950 2004-07-14 Paolo Carlini <pcarlini@suse.de>
952 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
953 12658_thread-2.cc: Use __gnu_test::try_named_locale.
955 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
957 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
958 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
959 (__mt_alloc::_S_set_options): Same.
962 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
964 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
966 * configure: Regenerated.
968 2004-07-13 Paolo Carlini <pcarlini@suse.de>
970 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
971 to 12658_thread-1.cc and xfail.
972 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
973 simpler version of 12658_thread-1.cc, still failing on 3_3 and
974 not failing on 3_4/mainline - both on single processor and
975 multiprocessor machines.
977 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
979 * docs/html/abi.html: Remove non-public qualification.
981 * include/bits/concurrence.h: Tweak comments.
983 2004-07-11 Paolo Carlini <pcarlini@suse.de>
985 Add wchar_t counterparts of the basic_streambbuf<char> tests.
986 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
987 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
989 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
990 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
992 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
993 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
994 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
995 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
996 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
998 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1000 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
1002 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
1004 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
1005 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
1007 2004-07-11 Phil Edwards <phil@codesourcery.com>
1009 * acinclude.m4: Cosmetic shell syntax fixes.
1010 * configure.ac: Bring comment inline with reality.
1011 * configure.host: Both of the above. Move 'arm' case to right
1012 place in host_cpu switch.
1013 * aclocal.m4, configure: Regenerate.
1015 2004-07-09 Paolo Carlini <pcarlini@suse.de>
1017 Add wchar_t counterparts of the basic_stringbuf<char> tests.
1018 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
1019 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
1020 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
1021 3599.cc, 9988.cc: Likewise.
1022 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
1024 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
1026 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
1028 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1030 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1031 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1032 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1033 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
1035 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1036 9404-1.cc: Likewise.
1037 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1038 9404-2.cc: Likewise.
1039 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1041 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1042 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1044 2004-07-08 Paolo Carlini <pcarlini@suse.de>
1046 * include/bits/gslice.h: Trivial formatting fixes.
1047 * include/bits/gslice_array.h: Likewise.
1048 * include/bits/indirect_array.h: Likewise.
1049 * include/bits/mask_array.h: Likewise.
1050 * include/bits/slice_array.h: Likewise.
1051 * include/bits/valarray_after.h: Likewise.
1052 * include/bits/valarray_array.h: Likewise.
1053 * include/bits/valarray_before.h: Likewise.
1054 * include/std/std_valarray.h: Likewise.
1056 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
1059 * include/bits/basic_string.h (basic_string::operator=): Revert.
1061 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1063 * configure.ac (libtool_VERSION): To 6:2:0.
1064 * configure: Regenerated.
1066 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1068 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1071 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1073 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1075 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1078 2004-07-07 Paolo Carlini <pcarlini@suse.de>
1081 * include/bits/sstream.tcc (overflow): When reallocating _M_string
1082 use an exponential grow policy.
1083 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1084 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1086 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
1089 * crossconfig.m4: Add in bits for djgpp.
1090 * configure: Regenerate.
1092 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
1094 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1095 instantiation of set and multiset (functor param given as int).
1097 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1099 * include/bits/basic_string.h: Trivial formatting fixes and/or
1100 const-ification of some variables.
1101 * include/bits/deque.tcc: Likewise.
1102 * include/bits/stl_algobase.h: Likewise.
1103 * include/bits/stl_bvector.h: Likewise.
1104 * include/bits/stl_construct.h: Likewise.
1105 * include/bits/stl_deque.h: Likewise.
1106 * include/bits/stl_pair.h: Likewise.
1107 * include/bits/stl_vector.h: Likewise.
1108 * include/bits/vector.tcc: Likewise.
1110 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1112 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
1113 systems with no COMDAT or weak support.
1114 * testsuite/25_algorithms/copy/2.cc: Likewise.
1115 * testsuite/25_algorithms/copy/3.cc: Likewise.
1116 * testsuite/25_algorithms/copy/4.cc: Likewise.
1118 2004-07-03 Paul Brook <paul@codesourcery.com>
1120 * configure.ac: Set ABI_TWEAKS_SRCDIR.
1121 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
1122 setting atomicity_dir. Override type_cpu for arm based targets.
1123 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1124 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1125 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1126 * libsupc++/vec.cc: Ditto.
1127 * config/cpu/arm/cxxabi_tweaks.h: New file.
1128 * config/cpu/generic/cxxabi_tweaks.h: New file.
1129 * */Makefile.in: Regenerate.
1130 * configure: Regenerate.
1132 2004-07-02 Paolo Carlini <pcarlini@suse.de>
1134 * include/bits/type_traits.h (_Is_normal_iterator): Move...
1135 * include/bits/cpp_type_traits.h: ... here, renamed to
1136 __is_normal_iterator and consistent with the other traits.
1137 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
1138 to the struct __copy_normal and three specializations.
1139 (__copy_backward_output_normal_iterator,
1140 __copy_backward_input_normal_iterator): Likewise, convert to
1141 the struct __copy_backward_normal and three specializations.
1142 (copy, copy_backward): Use the latter.
1143 (__copy_aux, __copy_backward_aux): Very minor tweaks.
1145 2004-07-01 Paolo Carlini <pcarlini@suse.de>
1147 * include/bits/stl_algobase.h (__copy_trivial): Remove.
1148 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1149 __is_trivially_copyable, __are_same and __copy::copy.
1150 (__copy): Rewrite as a class template and two specializations.
1151 (__copy_ni2): Simplify, just call __copy_aux.
1153 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1155 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
1156 for destination value type != source value type.
1158 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
1159 Per Bothner <per@bothner.com>
1160 Mohan Embar <gnustuff@thisiscool.com>
1163 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
1164 (__glibcxx_mutex): Encapsulate mutex init function into type for
1165 threaded configurations without __GTHREAD_MUTEX_INIT.
1166 (lock::lock): Make device member a reference.
1167 (lock::~lock): Same.
1168 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
1170 * src/allocator.cc: Same.
1172 2004-06-30 Brad Spencer <spencer@infointeractive.com>
1174 * include/ext/mt_allocator.h: Handle allocations at static
1175 initialization that happen before _S_options is (automatically)
1176 constructed; set _S_init even if _M_force_new is true.
1178 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1180 * config/linker-map.gnu: Revert new exports.
1182 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1183 Stuart Anderson <anderson@netsweng.com>
1185 * config/linker-map.gnu: Add destructor exports for abstract base
1186 classes to conform to LSB.
1188 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1189 Paolo Carlini <pcarlini@suse.de>
1191 * include/bits/cpp_type_traits.h: Add __is_pointer and
1192 __is_trivially_copyable.
1193 * include/bits/stl_algobase.h (fill, fill_n): Slightly
1194 tweak to use the latter.
1195 (__copy_backward_dispatch): Remove.
1196 (__copy_backward_aux): Rewrite to use __is_pointer and
1197 __is_trivially_copyable and __copy_backward::copy_b.
1198 (__copy_backward): Rewrite as a class template and two
1201 2004-06-30 Paolo Carlini <pcarlini@suse.de>
1203 * testsuite/25_algorithms/copy.cc: Move to...
1204 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
1205 * testsuite/25_algorithms/copy/2.cc: New.
1206 * testsuite/25_algorithms/copy/3.cc: New.
1207 * testsuite/25_algorithms/copy/4.cc: New.
1209 2004-06-29 Paul Brook <paul@codesourcery.com>
1211 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
1212 element size in the cookie.
1214 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1216 * include/bits/cpp_type_traits.h: Move the additions to
1217 namespace __gnu_internal outside of namespace std; trivial
1220 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
1222 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
1223 Revert -Weffc++ changes that defined copy ctory and or assignment
1225 * libsupc++/tinfo.cc (__upcast_result): Same.
1227 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1229 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
1230 the algorithm used to name the categories.
1232 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
1234 * include/Makefile.am: Give a .gch extension to
1235 the PCH files, not only to the directory.
1236 * include/Makefile.in: Regenerate.
1238 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1240 * config/locale/gnu/monetary_members.cc
1241 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
1242 assignments of _M_decimal_point and _M_thousands_sep.
1244 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1246 * docs/html/17_intro/contribute.html: Update some links.
1247 * docs/html/17_intro/porting-howto.html: Likewise.
1248 * docs/html/17_intro/porting-howto.xml: Likewise.
1249 * docs/html/18_support/howto.html: Likewise.
1250 * docs/html/21_strings/howto.html: Likewise.
1251 * docs/html/27_io/howto.html: Likewise.
1252 * docs/html/configopts.html: Likewise.
1253 * docs/html/ext/howto.html: Likewise.
1254 * docs/html/faq/index.html: Likewise.
1255 * docs/html/install.html: Don't mention 2.x compilers.
1257 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1259 * include/ext/rope: Trivial formatting fixes.
1260 * include/ext/ropeimpl.h: Likewise.
1262 2004-06-26 Paolo Carlini <pcarlini@suse.de>
1265 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
1266 availability of strto(u)ll, not used anymore in the iostreams.
1267 * configure: Regenerate.
1269 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1272 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
1274 * configure: Regenerate.
1276 2004-06-25 Paul Brook <paul@codesourcery.com>
1278 * libsupc++/cxxabi.h: Define __ARM_EABI__
1280 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
1282 2004-06-25 Paul Brook <paul@codesourcery.com>
1284 * include/bits/concurrence.h: Still create mutex object when
1287 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1289 * include/bits/stl_algobase.h (fill, fill_n): Revert last
1290 change: actually we need to copy construct an object of type
1291 _Tp, not of type iterator_traits<>::value_type, therefore the
1294 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1296 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
1297 dispatch: use iterator_traits<>::value_type, not _Tp.
1299 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1301 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
1302 * testsuite/25_algorithms/fill/2.cc: Likewise.
1304 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
1305 Paolo Carlini <pcarlini@suse.de>
1307 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
1308 for fill and fill_n, respectively: when copying is cheap, use a
1309 temporary to avoid a memory read in each iteration.
1311 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1313 * testsuite/25_algorithms/fill/1.cc: New.
1314 * testsuite/25_algorithms/fill/2.cc: Likewise.
1316 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1318 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
1319 Remove copy constructor and assignment operator.
1321 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
1323 * include/bits/concurrence.h (__gnu_cxx::lock): New.
1324 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
1325 (__pool_base::_M_get_mutex): New.
1326 * include/bits/allocator.h: Tweak.
1327 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
1328 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
1329 * include/bits/stl_threads.h: Remove.
1330 * include/Makefile.am: Also here.
1331 * include/Makefile.in: Regenerate.
1333 * src/locale_init.cc: Use __gnu_cxx::lock.
1335 * src/allocator.cc: Move all instantiations...
1336 * src/allocator-inst.cc: ...here.
1338 2004-06-23 Andrew Pinski <apinski@apple.com>
1340 * linkage.m4: Remove check for libmx.
1341 * configure: Regenerate.
1343 2004-06-23 Paolo Carlini <pcarlini@suse.de>
1346 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
1347 Don't require the _DefaultConstructibleConcept.
1348 (struct _ForwardIteratorConcept): Require it here.
1350 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
1352 * include/bits/istream.tcc (getline): Make sure arguments passed
1353 to min/max have the same type.
1354 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
1355 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
1357 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
1359 * docs/html/abi.html: Update links.
1361 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1363 * testsuite/26_numerics/complex_inserters_extractors.cc,
1364 complex_value.cc, buggy_complex.cc: Move to...
1365 * testsuite/26_numerics/complex/: ... here.
1366 * testsuite/26_numerics/c99_classification_macros_c++.cc,
1367 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
1368 fabs_inline.cc: Move to...
1369 * testsuite/26_numerics/cmath/: ... here.
1370 * testsuite/26_numerics/binary_closure.cc, slice.cc,
1371 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
1372 valarray_name_lookup.cc, valarray_operators.cc,
1373 valarray_subset_assignment.cc: Move to...
1374 * testsuite/26_numerics/valarray/: ... here (new dir).
1375 * testsuite/26_numerics/sum_diff.cc: Move to...
1376 * testsuite/26_numerics/numeric/: ... here (new dir).
1378 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1380 * include/std/std_istream.h (ignore(streamsize __n = 1,
1381 int_type __delim = traits_type::eof())): Split into...
1382 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1383 int_type __delim)): The first two can be much more simpler
1384 and efficient than the fully general case; also, the last
1385 two can take advantage of the same mechanism already used
1387 * include/bits/istream.tcc (ignore(streamsize __n = 1,
1388 int_type __delim = traits_type::eof()): Remove.
1389 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1390 int_type __delim)): New.
1392 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
1394 * config/linker-map.gnu: Use wildcards for
1395 __basic_file::sys_open(FILE*, _Ios_Openmode).
1397 2004-06-20 Paolo Carlini <pcarlini@suse.de>
1399 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
1401 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1403 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
1404 the alignment requested.
1405 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
1406 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
1407 (__mt_alloc<>::deallocate): Likewise.
1409 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1412 * include/debug/safe_base.h
1413 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
1414 _Safe_sequence_base::operator=): Provide definitions.
1415 * testsuite/23_containers/bitset/cons/16020.cc: New.
1417 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
1419 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
1420 (__pool_base): Remove unused template parameter. Add
1421 protected. Move lock data into __pool_base::_Lock. Remove static
1422 on member functions.
1423 (__pool_base::_M_get_free_list): New.
1424 (__pool_alloc): Move _S_force new here.
1425 * src/allocator.cc: Move out of line __pool_base definitions here.
1426 * config/linker-map.gnu: Export bits from __pool_base.
1428 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1430 * config/locale/gnu/numeric_members.cc
1431 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
1432 assignments of _M_decimal_point and _M_thousands_sep.
1433 * config/locale/gnu/time_members.cc
1434 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
1435 and reformat assignments of date and time fields.
1437 2004-06-16 Paolo Carlini <pcarlini@suse.de>
1439 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
1440 to use _Data_allocate.
1441 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
1442 (rope<>::_S_substring): Likewise.
1443 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
1444 (rope<>::c_str()): Likewise.
1445 (rope<>::replace_with_c_str()): Likewise.
1447 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
1448 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
1450 (_Rope_iterator_base<>::_S_setcache): Likewise.
1451 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
1452 (rope<>::_S_substring): Likewise.
1453 (rope<>::_S_dump): Likewise.
1454 (rope<>::_S_fetch_ptr): Likewise.
1455 (rope<>::_S_compare): Likewise.
1456 (rope<>::replace_with_c_str()): Likewise.
1458 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
1459 * testsuite/ext/rope/2.cc: New.
1461 2004-06-16 Paolo Carlini <pcarlini@suse.de>
1462 Matt Austern <austern@apple.com>
1464 * testsuite/ext/rope/3.cc: New.
1466 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1468 * acinclude.m4: Remove useless multilib configury.
1469 * Makefile.am: Remove useless multilib rules.
1470 * aclocal.m4: Regenerate.
1471 * Makefile.in: Regenerate.
1472 * configure: Regenerate.
1474 2004-06-15 Paolo Carlini <pcarlini@suse.de>
1476 * include/ext/hashtable.h: Trivial formatting fixes.
1477 * include/ext/rb_tree: Likewise.
1479 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1481 * include/ext/hash_map: Trivial formatting fixes.
1482 * include/ext/hash_set: Likewise.
1483 * include/ext/memory: Likewise.
1484 * include/ext/numeric: Likewise.
1486 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
1488 * Makefile.in: Regenerate with automake 1.8.5.
1490 * include/Makefile.in: Same.
1491 * libmath/Makefile.in: Same.
1492 * libsupc++/Makefile.in: Same.
1493 * po/Makefile.in: Same.
1494 * src/Makefile.in: Same.
1495 * testsuite/Makefile.in: Same.
1497 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1499 * include/ext/slist: Trivial formatting fixes.
1501 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1503 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
1504 Don't use the 'magic number' 10 in the computation of __minlen;
1505 never access __name past __minlen; in the loop over __i3, don't
1506 decrease __nmatches and increase __i3 at once, only either of
1509 2004-06-13 Paolo Carlini <pcarlini@suse.de>
1511 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
1512 time_get<>::do_get_date): Use only once _M_extract_via_format,
1513 instead of going through "%X"/"%x" and calling it two times
1516 2004-06-12 Paolo Carlini <pcarlini@suse.de>
1518 * include/ext/algorithm: Trivial formatting fixes.
1519 * include/ext/functional: Likewise.
1520 * include/ext/hash_fun.h: Likewise.
1521 * include/ext/iterator: Likewise.
1523 2004-06-12 Paolo Carlini <pcarlini@suse.de>
1525 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
1526 size_type)): Reimplement using std::search.
1527 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
1529 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
1531 * testsuite/performance/21_strings/string_find.cc: New.
1533 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1535 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
1537 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
1539 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
1540 this function return a value.
1542 2004-06-09 Paolo Carlini <pcarlini@suse.de>
1545 * include/bits/stl_deque.h: Consistently with stl_set.h, define
1546 pointer as allocator's pointer, likewise for reference,
1547 const_pointer, and const_reference.
1548 * include/bits/stl_list.h: Likewise.
1549 * include/bits/stl_map.h: Likewise.
1550 * include/bits/stl_multimap.h: Likewise.
1551 * include/bits/stl_vector.h: Likewise.
1553 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
1555 * crossconfig.m4: Remove signbit, signbitf, signbitl.
1556 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
1557 builtin math functions instead of AC_DEFINE_UNQUOTED.
1558 * configure: Regenerate.
1560 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
1562 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
1563 * docs/doxygen/mainpage.html: Remove links.
1565 2004-06-08 Jason Merrill <jason@redhat.com>
1567 * config/linker-map.gnu: Use wildcards for
1568 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
1570 2004-06-08 Paolo Carlini <pcarlini@suse.de>
1572 * include/ext/pool_allocator.h: Convert to a global free-list,
1573 as per the original SGI/HP design: move the implementation
1574 details to struct __pool_base, from which __pool_alloc derives.
1575 * src/allocator.cc: Instantiate __pool_base.
1577 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
1578 Paolo Carlini <pcarlini@suse.de>
1580 * testsuite/testsuite_performance.h
1581 (resource_counter::allocated_memory): Make it return the right
1582 number of bytes requested by the allocators/application. This is
1583 the sbrk+mmaped memory.
1585 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
1587 * include/std/std_complex.h (log): Tidy.
1589 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
1591 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
1592 * testsuite/testsuite_abi.cc: Same.
1593 * configure.ac (libtool_VERSION): Bump to 6:1:0.
1594 * configure: Regenerate.
1595 * aclocal.m4: Regenerate.
1597 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1599 * include/std/std_complex.h (complex<_Tp>): Properly indent
1601 (complex<>::__rep): New.
1602 (__complex_abs): New. Dispatch to built-ins.
1604 (__complex_arg): New. Dispatch to built-ins.
1606 (__complex_cos): New. Dispatch to built-ins.
1608 (__complex_cosh): New. Dispatch to built-ins.
1610 (__complex_exp): New. Dispatch to built-ins.
1612 (__complex_log): New. Dispatch to built-ins.
1614 (__complex_sin): New. Dispatch to built-ins.
1616 (__complex_sinh): New. Dispatch to built-ins.
1618 (__complex_sqrt): New. Dispatch to built-ins.
1620 (__complex_tan): New. Dispatch to built-ins.
1622 (__complex_tanh): New. Dispatch to built-ins.
1624 (__complex_pow): New. Dispatch to built-ins.
1627 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
1628 Benjamin Kosnik <bkoz@redhat.com>
1631 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
1632 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
1633 * config/io/basic_file_stdio.cc (__basic_file::file): New.
1634 * config/io/basic_file_stdio.h: Define.
1636 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
1639 * docs/html/documentation.html: Update doxygen links for 3.4.0.
1641 2004-05-27 Jan Beulich <jbeulich@novell.com>
1643 * scripts/create_testsuite_files: Tweak.
1645 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
1648 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
1649 bits to do the same thing.
1651 2004-05-24 Paolo Carlini <pcarlini@suse.de>
1653 * include/bits/istream.tcc (ignore): Correctly deal with
1654 n == numeric_limits<streamsize>::max().
1655 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
1657 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
1658 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
1659 __n == numeric_limits<>::min().
1661 * include/bits/istream.tcc: Minor tweaks.
1663 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1665 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1667 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1669 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1671 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1673 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1676 Fixups for -Weffc++.
1677 * include/bits/basic_string.h (basic_string::operator=): Return
1678 pointer to this instead of result of assign. Although redundant,
1679 this doesn't impact resultant codegen.
1681 * include/bits/locale_facets.h (__numpunct_cache): Declare
1682 assignment opxserator and copy constructor private.
1683 (__timepunct_cache): Same.
1684 (__moneypunct_cache): Same.
1685 (collate): Use member initialization list for _M_c_locale_collate.
1686 * config/locale/gnu/messages_members.h: Same.
1687 * config/locale/gnu/time_members.h (__timepunct): Same.
1688 * src/codecvt.cc: Use member initialization list to initialize
1689 _M_c_locale_codecvt.
1690 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
1691 * config/os/gnu-linux/ctype_noninline.h: Same.
1692 * src/locale.cc (_Impl): Same.
1693 * src/locale_init.cc: Same.
1694 * src/localename.cc: Same.
1696 * include/bits/basic_ios.h (basic_ios): Complete member
1697 initialization list.
1698 * include/bits/istream.tcc (basic_istream::sentry): Same.
1699 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
1700 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
1701 _M_pback to member initialization list.
1702 * include/std/std_streambuf.h: Same.
1703 * include/std/std_sstream.h: Same, for _M_mode.
1704 * src/ios.cc (ios_base): Same.
1706 * include/ext/rope: Make derived classes match exception
1708 specifications. Add copy constructors and assignment operators.
1710 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
1711 constructor and assignment operator protected.
1712 (_Safe_iterator_base): Same.
1713 * include/debug/formatter.h (_Error_formatter): Define copy
1714 constructor and assignment operator.
1716 * include/backward/strstream: Declare assignment operator and copy
1717 constructor private.
1719 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1721 * testsuite/testsuite_hooks.h (func_callback): Declare copy
1722 constructor and assignment operator private.
1723 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
1724 exception specifications of base class.
1725 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
1726 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
1727 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1729 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1731 * libsupc++/cxxabi.h: Remove duplicated and useless public and
1732 private keywords in class declarations. Format. Use
1733 stddef.h. Expose declarations to "C" compilation.
1734 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
1735 assignment operator.
1736 (__dyncast_result): Same.
1737 * libsupc++/vec.cc (uncatch_exception): Same, use member
1738 initialization list.
1740 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1742 * testsuite/abi_check.cc: Add unistd.h.
1744 2004-05-22 Paolo Carlini <pcarlini@suse.de>
1747 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
1748 __int_to_char(unsigned long long)): Showpos is not relevant
1750 * testsuite/22_locale/num_put/put/char/15565.cc: New.
1751 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
1753 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
1755 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
1756 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
1757 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1758 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
1759 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
1760 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
1762 2004-05-21 Matthias Klose <doko@debian.org>
1764 * docs/doxygen/run_doxygen: Bump required version.
1766 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
1768 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
1769 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
1771 2004-05-21 Paolo Carlini <pcarlini@suse.de>
1773 * include/bits/istream.tcc (ignore): Remove redundant line.
1774 (readsome): Tidy, closely following 27.6.1.3, p30.
1776 2004-05-20 Paolo Carlini <pcarlini@suse.de>
1778 * include/bits/istream.tcc (operator>>(basic_istream<>&,
1779 basic_string<>&)): Use a temporary buffer, thus avoiding
1780 reallocation for common case.
1781 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1783 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1786 * include/bits/istream.tcc: Const-ification of a few variables.
1788 * include/bits/ostream.tcc: Trivial formatting fixes and
1789 const-ification of some variables.
1791 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
1795 * docs/doxygen/Intro.3: Remove Allocators.3.
1796 Add new extension headers, extension namespace list.
1797 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
1798 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
1799 __gnu_debug::. Remove __policy_ renames.
1800 * docs/doxygen/guide.html: Add dot note.
1801 * docs/doxygen/stdheader.cc: Edit, add files.
1802 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
1804 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
1806 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
1808 2004-05-18 Jan Beulich <jbeulich@novell.com>
1811 * scripts/create_testsuite_files: Also find source files through
1814 2004-05-18 Jan Beulich <jbeulich@novell.com>
1817 * testsuite/lib/libstdc++.exp: Make test files writable.
1819 2004-05-18 Paolo Carlini <pcarlini@suse.de>
1821 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
1824 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
1826 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
1827 allocation loop which removes blocks from the global free list
1828 from O(N) to O(1) when the required blocks are <= the number
1831 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
1833 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
1835 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
1837 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
1838 * testsuite/23_containers/deque/14340.cc: New.
1839 * testsuite/23_containers/list/14340.cc: New.
1840 * testsuite/23_containers/map/14340.cc: New.
1841 * testsuite/23_containers/multimap/14340.cc: New.
1842 * testsuite/23_containers/multiset/14340.cc: New.
1843 * testsuite/23_containers/set/14340.cc: New.
1844 * testsuite/23_containers/vector/14340.cc: New.
1846 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
1849 * include/debug/safe_iterator.h (_Safe_iterator converting
1850 constructor): Only allow declaration to instantiate when the
1851 incoming _Safe_iterator has exactly the right iterator type.
1853 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
1855 * include/bits/boost_concept_check.h: Fix old attribute syntax.
1856 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
1857 to pass concept-checks.
1858 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1859 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1860 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1862 2004-05-16 Paolo Carlini <pcarlini@suse.de>
1864 * include/std/std_bitset.h: Minor formatting fixes.
1866 2004-05-16 Paolo Carlini <pcarlini@suse.de>
1868 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1869 Consistently update __bin._M_free[0].
1870 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
1871 __bin._M_free[0] to simplify the while loop (i.e., the number
1872 of iterations becomes known at the outset).
1874 2004-05-15 Paolo Carlini <pcarlini@suse.de>
1876 * include/std/std_bitset.h: Trivial formatting fixes.
1878 2004-05-14 Paolo Carlini <pcarlini@suse.de>
1879 Ivan Godard <igodard@pacbell.net>
1882 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
1883 * testsuite/23_containers/bitset/ext/15361.cc: New.
1885 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1888 * crossconfig.m4: Add C99 math bits for linux crosses.
1889 * configure: Regenerate.
1891 2004-05-13 Simon Marshall <simon.marshall@misys.com>
1892 Benjamin Kosnik <bkoz@redhat.com>
1895 * include/bits/locale_facets.h: Fix for -fno-for-scope.
1896 * include/debug/safe_sequence.h: Same.
1897 * include/debug/safe_iterator.tcc: Same.
1898 * src/debug.cc: Same.
1899 * src/locale.cc: Same.
1900 * src/locale_init.cc: Same.
1901 * src/localename.cc: Same.
1902 * config/locale/gnu/ctype_members.cc: Same.
1903 * config/locale/gnu/numeric_members.cc: Same.
1904 * testsuite/testsuite_abi.cc: Same.
1905 * testsuite/testsuite_hooks.cc: Same.
1907 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
1909 * docs/html/abi.html: Document effect of -fabi-version on value
1910 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
1913 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1916 * docs/html/faq/index.html: Update docs for libsupc++ usage.
1918 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1921 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
1923 (_GLIBCXX_mutex_address): Same.
1924 (_GLIBCXX_once): Same.
1925 (_GLIBCXX_mutex_init): Same.
1926 (_GLIBCXX_mutex_address_init): Same.
1928 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1930 * docs/html/abi.html: New.
1931 * docs/html/abi.txt: Remove.
1932 * docs/html/documentation.html: Add link.
1933 * testsuite/Makefile.am: Add files.
1934 * testsuite/Makefile.in: Regenerated.
1935 * testsuite/abi_check.cc: Move and modify code into...
1936 * testsuite/testsuite_abi.cc: Add.
1937 * testsuite/testsuite_abi.h: Add.
1939 * docs/html/17_intro/TODO: Update.
1940 * include/bits/stl_pair.h: Format.
1942 2004-05-06 Matthias Klose <doko@debian.org>
1944 * include/backward/iterator.h: Add GPL copyright info,
1945 with exception clause.
1946 * include/bits/boost_concept_check.h: Likewise.
1948 * libsupc++/tinfo.h: Likewise.
1949 * po/string_literals.cc: Likewise.
1951 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
1953 * acinclude.m4: Replace -W with more speaking -Wextra.
1954 * configure: Rebuilt.
1956 2004-05-03 Paolo Carlini <pcarlini@suse.de>
1958 Optimize locale::_M_impl->_M_names for the most common cases:
1959 !_M_names[0] means unnamed; !_M_names[1] means all the categories
1960 the same name (_M_names[0] && _M_names[1] means that the full set
1961 of _M_names must be processed, the general case).
1962 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
1963 Tweak, saving work when !_M_names[1].
1964 (locale::locale(const locale&, _Facet*): Simplify: now just setting
1965 _M_names[0] = 0 means unnamed.
1966 * src/locale.cc (locale::operator==): Deal first with the common,
1967 easy cases, otherwise fall back to locale::name().
1968 (locale::name()): Tweak, if !_M_names[0] just return "*".
1969 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
1970 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
1971 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
1972 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
1973 Simplify when !std::strchr, just updating _M_names[0]; clean up.
1974 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
1975 for the general case (full set of names), then do the usual work;
1978 * src/locale.cc (locale::name()): Reserve space in __ret.
1979 * src/locale_init.cc (locale::global(const locale&)): Save
1980 the name in a temporary.
1981 * src/localename.cc (locale::locale(const char*)): Reserve space
1984 2004-04-29 Paolo Carlini <pcarlini@suse.de>
1986 * src/locale.cc (locale::operator==): Always avoid constructing
1987 locale::name(), directly compare pairs of _M_names.
1989 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1991 * include/bits/istream.tcc: Fix comment.
1993 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1995 * include/bits/stl_vector.h: Trivial formatting fixes.
1996 * include/bits/vector.tcc: Likewise.
1998 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2000 PR libstdc++/15002 (continued again)
2001 * include/bits/istream.tcc (getline(basic_istream<>&,
2002 basic_string<>&, _CharT)): Use a temporary buffer, thus
2003 avoiding reallocation for common case.
2005 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2006 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
2007 of temporary buffer to a power of two.
2009 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
2011 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2013 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2015 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2017 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2019 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2020 Petur Runolfsson <peturr02@ru.is>
2022 PR libstdc++/15002 (continued)
2023 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
2024 streamsize, char_type)): Use traits::find/copy in a loop to speed
2025 up greatly the function in the common case (I/O buffer size >> 1).
2027 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2029 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2031 * include/bits/istream.tcc (getline(basic_istream<>&,
2032 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2033 of sbumpc(), consistently with the other functions, thus also
2034 dealing correctly with the case of exceeded string::max_size().
2036 2004-04-24 Matthias Klose <doko@debian.org>
2038 Jonathan Wakely <cow@compsoc.man.ac.uk>
2039 * docs/html/configopts.html: Fix reference to allocator config option.
2041 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
2043 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2044 * configure: Regenerate.
2046 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
2048 PR libstdc++/15047, libstdc++/11610
2049 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2050 (libstdc++_init): Don't pass outdir to v3-copy-files.
2052 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2054 * include/bits/deque.tcc: Trivial formatting fixes.
2055 * include/bits/stl_deque.h: Likewise.
2056 * include/bits/stl_list.h: Likewise.
2057 * include/bits/stl_tree.h: Likewise.
2059 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2060 Andrew Pinski <pinskia@physics.uc.edu>
2062 * include/bits/basic_string.tcc (_M_mutate): Don't compute
2063 __src unnecessarily.
2065 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
2067 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2068 Clarify assertion, set test variable to false before assert.
2069 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2070 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2071 * testsuite/27_io/ios_base/storage/2.cc: Same.
2073 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2075 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2076 * testsuite/27_io/fpos/14320-3.cc: Same.
2078 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2079 * testsuite/27_io/fpos/1.cc: Same.
2080 * testsuite/27_io/basic_stringstream/2.cc: Same.
2081 * testsuite/27_io/basic_stringbuf/4.cc: Same.
2082 * testsuite/27_io/basic_stringbuf/1.cc: Same.
2083 * testsuite/27_io/basic_stringbuf/2.cc: Same.
2084 * testsuite/27_io/basic_streambuf/2.cc: Same.
2085 * testsuite/27_io/basic_ostringstream/2.cc: Same.
2086 * testsuite/27_io/basic_ostream/2.cc: Same.
2087 * testsuite/27_io/basic_ofstream/2.cc: Same.
2088 * testsuite/27_io/basic_istringstream/2.cc: Same.
2089 * testsuite/27_io/basic_istream/2.cc: Same.
2090 * testsuite/27_io/basic_iostream/2.cc: Same.
2091 * testsuite/27_io/basic_ios/2.cc: Same.
2092 * testsuite/27_io/basic_ifstream/2.cc: Same.
2093 * testsuite/27_io/basic_fstream/2.cc: Same.
2094 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2096 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2097 unsigned against zero.
2098 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2099 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2101 * testsuite/18_support/new_delete_placement.cc: Initialize
2102 variables before first use.
2103 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
2104 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
2105 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
2106 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
2108 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
2109 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
2111 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
2112 * testsuite/27_io/types/2.cc: Same.
2114 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2116 * testsuite/27_io/fpos/14775.cc: Same.
2118 2004-04-19 Paolo Carlini <pcarlini@suse.de>
2120 PR libstdc++/15002 (partial)
2121 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2122 Special case __n2 == 1, not calling traits_type::assign/copy.
2124 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
2126 * include/bits/stl_bvector.h: Use _M_impl._M_start.
2128 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
2130 * include/bits/c++config (_GLIBCXX_STD): New.
2131 * src/list.cc: Use it.
2132 * include/std/std_bitset.h: Same.
2133 * include/bits/vector.tcc: Same.
2134 * include/bits/stl_set.h: Same.
2135 * include/bits/stl_multiset.h: Same.
2136 * include/bits/stl_multimap.h: Same.
2137 * include/bits/stl_map.h: Same.
2138 * include/bits/stl_list.h: Same.
2139 * include/bits/stl_vector.h: Same.
2140 * include/bits/stl_bvector.h: Same.
2141 * include/bits/stl_deque.h: Same.
2142 * include/bits/deque.tcc: Same.
2143 * include/bits/list.tcc: Same.
2144 * include/debug/vector: Same.
2145 * include/debug/set.h: Same.
2146 * include/debug/multiset.h: Same.
2147 * include/debug/multimap.h: Same.
2148 * include/debug/map.h: Same.
2149 * include/debug/list: Same.
2150 * include/debug/deque: Same.
2151 * include/debug/bitset: Same.
2152 * include/debug/formatter.h (__gnu_debug): Remove using directive.
2153 Add using declaration for std::type_info.
2154 * include/debug/safe_iterator.h: Add using declaration for
2155 std::iterator_traits and std::pair.
2156 * src/debug_list.cc: New.
2157 * src/Makefile.am: Add debug_list.cc.
2158 * src/Makefile.in: Regenerate.
2159 * config/linker-map.gnu: Add _List_node_base exports for std and
2162 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
2163 idiom that other containers use.
2164 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2166 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2169 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
2171 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
2172 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
2174 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2176 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
2178 * config.h.in: Regenerate.
2180 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2182 * config/locale/generic/monetary_members.cc
2183 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
2184 btowc unnecessarily, just cast to wchar_t (the concerned chars
2185 all belong to the basic character set).
2186 * config/locale/generic/numeric_members.cc
2187 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2188 * config/locale/gnu/monetary_members.cc
2189 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
2190 * config/locale/gnu/numeric_members.cc
2191 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2193 2004-04-15 Paolo Carlini <pcarlini@suse.de>
2195 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
2196 avoid constructing unnecessarily this->name().
2198 2004-04-14 Zack Weinberg <zack@codesourcery.com>
2200 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
2201 Change definition of CXX to use $(shell) instead of backticks.
2202 * testsuite/Makefile.in: Regenerate.
2204 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
2206 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2207 Minor formatting fixes.
2208 * testsuite/performance/20_util/allocator/map_mt_find.cc:
2211 2004-04-12 Paolo Carlini <pcarlini@suse.de>
2213 * config/locale/gnu/numeric_members.cc
2214 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
2215 in __uselocale, since btowc is called for chars belonging to
2216 the basic character set.
2218 2004-04-09 Paolo Carlini <pcarlini@suse.de>
2220 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
2221 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
2222 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
2223 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
2224 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
2225 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
2226 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
2227 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
2228 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
2229 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
2230 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
2231 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
2232 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
2233 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
2234 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
2235 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
2236 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
2238 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2240 * config/locale/generic/time_members.cc
2241 (__timepunct<char>::_M_initialize_timepunct,
2242 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
2243 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
2244 * config/locale/gnu/time_members.cc
2245 (__timepunct<char>::_M_initialize_timepunct,
2246 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
2247 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
2248 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
2250 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
2251 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
2252 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
2253 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
2254 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
2255 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
2256 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
2257 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
2258 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
2259 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
2260 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
2261 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
2262 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
2263 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
2264 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
2265 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
2266 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
2267 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
2268 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
2269 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
2270 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
2271 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
2272 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
2273 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
2274 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
2275 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
2276 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
2277 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
2278 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
2279 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
2280 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
2281 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
2282 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
2283 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
2284 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
2285 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
2287 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
2289 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2291 * config/locale/gnu/monetary_members.cc
2292 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
2293 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
2294 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
2295 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
2296 * config/locale/gnu/numeric_members.cc
2297 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
2298 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
2300 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
2302 Fixups for EDG front end.
2303 * include/ext/rope: Instead of non-existent function
2304 _Data_allocate, use allocator's allocate. Use this.
2305 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
2306 enumerations from _Rope_RopeRep here.
2307 * include/ext/ropeimpl.h: Same.
2308 * src/ext-inst.cc (_S_min_len): Fix up definition.
2310 * config/locale/gnu/ctype_members.cc: Qualify base class members
2312 * config/locale/generic/ctype_members.cc: Same.
2313 * config/locale/gnu/messages_members.h: Same.
2314 * config/locale/generic/messages_members.h: Same.
2315 * src/ctype.cc: Same.
2316 * include/bits/codecvt.h: Same.
2318 * include/bits/boost_concept_check.h: Declare.
2319 (__error_type_must_be_an_unsigned_integer_type): Remove this.
2320 (__error_type_must_be_an_integer_type): Remove this.
2321 (__error_type_must_be_a_signed_integer_type): Remove this.
2323 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
2325 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
2326 specification to definition.
2327 (__cxa_allocate_exception): Same.
2328 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
2329 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
2330 (__cxa_get_globals): Same.
2332 * libsupc++/del_op.cc: Add comment about freestanding.
2334 2004-04-05 Paolo Carlini <pcarlini@suse.de>
2336 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2337 The critical section is actually very small, only two assignments.
2339 2004-04-04 Paolo Carlini <pcarlini@suse.de>
2340 Petur Runolfsson <peturr02@ru.is>
2342 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
2343 adapted from libstdc++/11378.
2345 2004-04-03 Paolo Carlini <pcarlini@suse.de>
2347 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
2348 some duplicated code.
2349 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
2350 in the single threaded case.
2351 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2352 Reorder and renumber the tests consistently with the other testfiles.
2353 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2354 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2355 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2357 2004-04-02 Paolo Carlini <pcarlini@suse.de>
2359 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2360 Rearrange arithmetic to avoid computing two divisions at
2363 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2365 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
2366 Streamline the second half, wrapping it in a single
2367 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
2368 conditionals inside loops.
2370 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2373 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
2374 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
2375 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
2376 to _GLIBCXX_RES_LIMITS.
2377 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
2379 * testsuite/testsuite_hooks.h: Declare set_file_limit.
2380 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
2381 and setrlimit(RLIMIT_FSIZE).
2382 * testsuite/27_io/fpos/14775.cc: New.
2383 * config.h.in: Regenerate.
2384 * configure: Likewise.
2386 2004-03-31 Paolo Carlini <pcarlini@suse.de>
2388 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
2389 In v3 uses of sscanf, the special floating-point numbers INF,
2390 INFINITY, etc., cannot occur in input, therefore, if the latter
2391 is too large, ERANGE is always stored in errno, no need of finitel.
2393 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
2396 * include/bits/stl_tree.h: Adjust initialization list order.
2398 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
2400 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
2402 2004-03-29 Paolo Carlini <pcarlini@suse.de>
2404 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
2405 on allocator behavior, the memory pointed by data2 may well be not
2408 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
2411 * include/bits/basic_string.tcc
2412 (basic_string::basic_string(const basic_string&)): Pass to
2413 _Rep::_M_grab the actual allocator of the string being constructed
2414 not the default constructed one.
2416 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
2419 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2420 (__enc_traits::_M_destroy): New.
2421 (__enc_traits::~__enc_traits): Use it.
2422 (__enc_traits::operator=): Use _M_destroy, _M_init.
2423 (__enc_traits::__enc_traits): Same.
2425 2004-03-27 Petur Runolfsson <peturr02@ru.is>
2427 * testsuite/ext/enc_filebuf/char/13598.cc: New.
2429 2004-03-27 Paolo Carlini <pcarlini@suse.de>
2431 * include/ext/mt_allocator.h: Uglify consistently names of
2432 variables, members and classes; tidy.
2434 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
2436 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2437 Deallocation loop rewrote.
2439 2004-03-26 Paolo Carlini <pcarlini@suse.de>
2441 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2442 __mt_alloc<>::deallocate): Protect two instances of
2443 block->thread_id with __GTHREADS.
2445 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
2447 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
2448 default argument in constructors.
2449 (_Rb_tree::_M_empty_initialize): Remove.
2451 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
2453 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
2454 * testsuite/23_containers/set/operators/1_neg.cc: Same.
2456 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2458 * include/bits/cpp_type_traits.h: Changed __is_pod
2459 completely. Now, it does not use any of the previous type_traits
2460 to detect the pod types, and it also detects function pointers as
2463 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
2464 which encapsulates the internal implementation of an rb_tree. Made
2465 the allocator a base class of this class instead of the rb_tree,
2466 which was not conforming. This _Rb_tree_impl class is also
2467 specialized on whether the _Compare parameter is a POD type or
2468 not. If so, then it maintains the comparison function as a data
2469 member, otherwise it makes the _Compare parameter a base class of
2470 itself. Also, _M_key_compare is now a function instead of a data
2471 member, so that the above trick can work properly. Delegated the
2472 initialization of the other data members to this newly created
2473 class. Also, now other member functions of rb_tree must refer to
2474 _M_key_compare as _M_impl._M_key_compare(). The other data members
2475 (*) can be referenced to as _M_impl.(*), where
2476 (*) includes _M_header, and _M_node_count.
2478 2004-03-25 Paolo Carlini <pcarlini@suse.de>
2480 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
2481 Add _M_min_bin, the size in bytes of the smallest bin.
2482 (__mt_alloc<>::tune()): Tweak accordingly.
2483 (__mt_alloc<>::tune(size_t, ...)): Likewise.
2484 (__mt_alloc<>::block_record): Change to a union: members next
2485 and thread_id are never used at the same time.
2486 (__mt_alloc<>::allocate): Update consistently.
2487 (__mt_alloc<>::deallocate): Likewise.
2488 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
2489 _S_bin_size for the configurable _M_min_size.
2491 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2493 * include/bits/stl_list.h: Created a _List_impl class and made it
2494 derive from the allocator, instead of the list deriving from the
2495 allocator class, which was not conformant. Changed all references
2496 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
2497 as above (changed all references to the concerned variables).
2499 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2501 * include/bits/stl_deque.h: Created a _Deque_impl class and made
2502 it derive from the allocator, instead of the deque deriving from
2503 the allocator class, which was not conformant. Changed all
2504 references to the _M_start, _M_finish, _M_map, and _M_map_size to
2506 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
2507 qualification in 2 places where it was missing.
2508 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
2510 * include/bits/deque.tcc: Same as above (changed all references to
2511 the concerned variables).
2513 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2515 * include/bits/stl_vector.h: Created a _Vector_impl class and made
2516 it derive from the allocator, instead of the _Vector_base class,
2517 deriving from the allocator which was not conformant. Changed all
2518 references to the _M_start, _M_finish, and _M_end_of_storage to
2520 * include/bits/vector.tcc: Same as above (changed all references
2521 to the concerned variables).
2523 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2525 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
2526 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
2527 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
2529 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
2531 * include/ext/malloc_allocator.h: Fixed the construct function to
2532 call global placement new instead of assignment. Added a check
2533 after the return from malloc to check whether returned pointer is
2534 NULL, and if so, throw std::bad_alloc().
2535 * include/ext/debug_allocator.h: Added a check in the deallocate
2536 function to check whether the user has passed a NULL pointer or
2539 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
2541 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
2543 2004-03-24 Andreas Schwab <schwab@suse.de>
2545 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
2546 warning from IA64 assembler.
2548 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
2550 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
2551 function call __builtin_ctz instead of the while loop.
2552 (allocate) -> If condition has __builtin_expect.
2553 (deallocate) -> Ditto.
2554 Renamed a few left-over variables and typedefs according to the
2555 C++STYLE mentioned in the documentation.
2556 Protected calls to __gthread* by __gthread_active_p(), whose value
2557 is cached in the local variable __threads_active.
2559 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
2561 * testsuite/performance/20_util/allocator/producer_consumer.cc:
2562 Use linear algorithm for producer.
2564 2004-03-24 Paolo Carlini <pcarlini@suse.de>
2566 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2567 __mt_alloc<>::deallocate): Avoid redundant conditionals.
2569 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
2571 * include/bits/locale_facets.h: Tweaks for 80 column.
2572 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
2573 (__moneypunct_cache::_M_cache): Same.
2574 (num_get): Don't inherit from __num_base.
2576 (money_get): Don't inherit from money_base.
2578 (__timepunct::_M_am_pm_format): New.
2579 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
2580 (time_get::_M_extract_name): Same.
2581 (time_get::_M_extract_via_format): Same.
2582 * include/bits/locale_facets.tcc: Tweaks for 80 column.
2583 Use _M_getloc instead of getloc.
2584 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
2585 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
2586 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
2588 2004-03-22 Paolo Carlini <pcarlini@suse.de>
2590 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
2591 * configure: Regenerate.
2592 * config/allocator/pool_allocator_base.h: New.
2593 * include/ext/pool_allocator.h: Convert to a standard-conforming
2595 * src/allocator.cc: Tweak instantiations.
2596 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
2597 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
2598 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
2599 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2600 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2601 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2603 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
2605 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
2606 inline" and attribute-unused. Qualify parameter __mem with
2608 (__exchange_and_add): Ditto. Add back memory clobber to asm.
2610 2004-03-20 Paolo Carlini <pcarlini@suse.de>
2612 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
2614 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
2616 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
2618 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
2620 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
2622 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
2624 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
2626 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
2628 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
2630 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
2633 2004-03-20 Paolo Carlini <pcarlini@suse.de>
2635 * include/std/std_valarray.h: Document DR389 [Ready].
2636 * docs/html/ext/howto.html: Add an entry for DR389.
2638 2004-03-19 Michael Eager <eager@mvista.com>
2640 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
2643 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2645 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
2647 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
2648 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
2649 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
2650 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
2651 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
2652 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
2653 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
2654 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
2655 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
2657 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2658 Petur Runolfsson <peturr02@ru.is>
2661 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
2662 no way to find out the conversion used by the underlying FILE*.
2663 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
2664 * testsuite/27_io/objects/char/9.cc: Tweak.
2666 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2669 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
2670 memory allocation/deallocation calls.
2671 * testsuite/ext/14648.cc: New.
2673 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
2676 * include/backward/bvector.h (bit_vector): Allocator is in std
2679 2004-03-19 Phil Edwards <phil@codesourcery.com>
2681 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
2682 not libiconv. SUBST this variable as well.
2683 * testsuite/Makefile.am (site.exp): New target, based on that
2684 created by automake. Also set libiconv.
2686 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2687 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2688 testsuite/Makefile.in: Regenerate.
2690 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
2692 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
2693 new_allocator for all hosts.
2694 * configure: Regenerate.
2696 2004-03-16 Paolo Carlini <pcarlini@suse.de>
2698 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
2699 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2701 2004-03-15 Paolo Carlini <pcarlini@suse.de>
2703 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2704 Adjust the logic underlying the parsing of symbol to deal
2705 correctly with an optional sign component (i.e., when either
2706 negative_sign or positive_sign is empty)
2707 * testsuite/22_locale/money_get/get/char/19.cc: New.
2708 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
2710 2004-03-15 Paolo Carlini <pcarlini@suse.de>
2712 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2713 Do not accept an incomplete currency symbol.
2714 * testsuite/22_locale/money_get/get/char/18.cc: New.
2715 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
2717 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
2719 * config/allocator: New.
2720 * config/allocator/bitmap_allocator_base.h: New.
2721 * config/allocator/malloc_allocator_base.h: New.
2722 * config/allocator/mt_allocator_base.h: New.
2723 * config/allocator/new_allocator_base.h: New.
2724 * include/bits/allocator.h: Include c++allocator.h.
2725 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
2726 * aclocal.m4: Regenerate.
2727 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
2728 * configure: Regenerate.
2729 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
2730 * include/Makefile.in: Regenerate.
2731 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
2733 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
2735 * include/bits/allocator.h: Revert.
2737 2004-03-12 Paolo Carlini <pcarlini@suse.de>
2739 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
2740 * include/bits/gslice_array.h: Add comment about DR 253.
2741 * include/bits/indirect_array.h: Likewise.
2742 * include/bits/mask_array.h: Likewise.
2743 * include/bits/slice_array.h: Likewise.
2745 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
2747 * testsuite/20_util/allocator/14176.cc: New.
2748 * include/ext/mt_allocator.h: Formatting fixes.
2750 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
2752 * include/Makefile.am (ext_headers): Add
2753 ${ext_srcdir}/bitmap_allocator.h .
2754 * include/Makefile.in: Regenerate.
2755 * docs/html/ext/ballocator_doc.txt: New file.
2756 * include/ext/bitmap_allocator.h: New file.
2757 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
2759 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
2760 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
2761 test for the bitmap_allocator<>.
2762 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
2763 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
2764 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
2766 2004-03-11 Paolo Carlini <pcarlini@suse.de>
2768 * include/std/std_complex.h (pow(const complex&, const _Tp&),
2769 pow(const _Tp&, const complex&), pow(const complex&,
2770 const complex&)): Fully qualify with std:: a few calls.
2771 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
2773 2004-03-11 Steven Bosscher <stevenb@suse.de>
2776 * include/c_std/cmath.tcc (__cmath_power): Define inline.
2778 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
2780 * configure.ac: Bump AC_PREREQ to 2.59.
2782 2004-03-10 Paolo Carlini <pcarlini@suse.de>
2784 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
2786 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
2787 Paolo Carlini <pcarlini@suse.de>
2790 * include/std/std_complex.h (pow(const complex&, const _Tp&),
2791 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
2792 * testsuite/26_numerics/complex/13450.cc: New.
2794 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
2795 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
2797 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
2800 * include/bits/gslice_array.h (gslice_array()): Make public.
2801 (operator=(gslice_array)): Make public. Implement.
2802 * include/bits/indirect_array.h (indirect_array()): Make public.
2803 * include/bits/mask_array.h (mask_array()): Make public.
2804 (operator=(mask_array)): Make public. Implement.
2805 * include/bits/valarray_array.tcc (__valarray_copy):
2806 Comment. Add versions for gslice_array and mask_array.
2807 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
2809 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
2811 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
2813 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
2814 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2815 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2816 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2817 * testsuite/23_containers/map/modifiers/swap.cc: Same.
2818 * testsuite/23_containers/list/modifiers/swap.cc: Same.
2820 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
2822 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
2825 * testsuite/23_containers/deque/modifiers/swap.cc: New.
2826 * testsuite/23_containers/list/modifiers/swap.cc: New.
2827 * testsuite/23_containers/map/modifiers/swap.cc: New.
2828 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
2829 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
2830 * testsuite/23_containers/set/modifiers/swap.cc: New.
2831 * testsuite/23_containers/vector/modifiers/swap.cc: New.
2833 2004-03-08 Petur Runolfsson <peturr02@ru.is>
2836 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
2838 2004-03-08 Paolo Carlini <pcarlini@suse.de>
2840 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
2841 * include/bits/stl_multiset.h: Add comment about DR 103.
2842 * include/bits/stl_set.h: Likewise.
2844 2004-03-08 Paolo Carlini <pcarlini@suse.de>
2846 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2847 The value _space_ indicates that at least one space is required
2849 * testsuite/22_locale/money_get/get/char/17.cc: New.
2850 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
2852 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
2853 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
2855 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
2856 Remove redundant conditional on __str.size().
2858 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
2860 * include/bits/allocator.h: Switch defaults to mt_alloc.
2862 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
2864 * include/ext/mt_allocator.h (_S_initialize): If
2865 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
2867 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
2870 * src/locale_init.cc (locale::locale): Lock critical regions with
2872 (locale::global): Same.
2873 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
2874 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
2875 (__glibcxx_mutex_lock): Same.
2877 * config/cpu/generic/atomicity.h: Remove
2878 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
2879 * src/misc-inst.cc: Move all locking bits out of this file.
2881 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
2882 * src/misc-inst.cc: Same.
2883 * config/cpu/hppa/atomicity.h: Same.
2885 * config/linker-map.gnu: Remove types in the signature of atomic
2886 exports, as they may vary.
2888 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2890 * include/bits/locale_facets.tcc: Tweak the comment preceding
2891 has_facet: doesn't throw.
2893 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2895 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
2896 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2897 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2898 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2899 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2900 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2901 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2902 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2904 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2906 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2907 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
2908 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
2909 * testsuite/testsuite_character.h (struct __gnu_test::character):
2911 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
2914 2004-03-05 Paolo Carlini <pcarlini@suse.de>
2916 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
2918 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
2920 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
2922 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
2924 * testsuite/23_containers/deque/invalidation/4.cc: Same.
2925 * testsuite/23_containers/list/invalidation/1.cc: Same.
2926 * testsuite/23_containers/list/invalidation/2.cc: Same.
2927 * testsuite/23_containers/list/invalidation/3.cc: Same.
2928 * testsuite/23_containers/list/invalidation/4.cc: Same.
2929 * testsuite/23_containers/map/invalidation/2.cc: Same.
2930 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
2931 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2932 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
2933 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2934 * testsuite/23_containers/set/invalidation/1.cc: Same.
2935 * testsuite/23_containers/set/invalidation/2.cc: Same.
2936 * testsuite/23_containers/vector/invalidation/1.cc: Same.
2937 * testsuite/23_containers/vector/invalidation/2.cc: Same.
2938 * testsuite/23_containers/vector/invalidation/3.cc: Same.
2939 * testsuite/23_containers/vector/invalidation/4.cc: Same.
2941 2004-03-04 Paolo Carlini <pcarlini@suse.de>
2943 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
2945 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
2947 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
2948 from the dg-options.
2949 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
2950 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
2951 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
2952 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
2953 * testsuite/23_containers/vector/resize/1.cc: Likewise.
2954 * testsuite/26_numerics/complex_value.cc: Likewise.
2955 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
2956 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2957 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
2958 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
2959 * testsuite/27_io/objects/char/5.cc: Likewise.
2960 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
2961 * testsuite/backward/11460.cc: Likewise.
2962 * testsuite/thread/pthread7-rope.cc: Likewise.
2964 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
2965 missing test variable.
2966 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
2967 missing test variable.
2969 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
2971 * testsuite/20_util/allocator/1.cc: Provide explicit
2972 instantiations for non-weak systems.
2973 * testsuite/20_util/binders.cc: Same.
2974 * testsuite/20_util/allocator/8230.cc: Same.
2975 * testsuite/20_util/allocator/10378.cc: Same.
2976 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2977 * testsuite/22_locale/ctype/is/char/2.cc: Same.
2978 * testsuite/thread/pthread7-rope.cc: Same.
2979 * testsuite/thread/pthread6.cc: Same.
2980 * testsuite/thread/pthread5.cc: Same.
2981 * testsuite/thread/pthread4.cc: Same.
2982 * testsuite/thread/pthread1.cc: Same.
2983 * testsuite/ext/rope.cc: Same.
2984 * testsuite/ext/hash_set.cc: Same.
2985 * testsuite/ext/hash_map.cc: Same.
2986 * testsuite/ext/concept_checks.cc: Same.
2987 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
2988 * testsuite/25_algorithms/unique/2.cc: Same.
2989 * testsuite/25_algorithms/unique/1.cc: Same.
2990 * testsuite/25_algorithms/rotate.cc: Same.
2991 * testsuite/25_algorithms/min_max.cc: Same.
2992 * testsuite/25_algorithms/equal.cc: Same.
2993 * testsuite/24_iterators/rel_ops.cc: Same.
2994 * testsuite/24_iterators/iterator.cc: Same.
2995 * testsuite/24_iterators/insert_iterator.cc: Same.
2996 * testsuite/24_iterators/front_insert_iterator.cc: Same.
2997 * testsuite/24_iterators/back_insert_iterator.cc: Same.
2998 * testsuite/23_containers/vector/resize/1.cc: Same.
2999 * testsuite/23_containers/vector/modifiers/2.cc: Same.
3000 * testsuite/23_containers/vector/modifiers/1.cc: Same.
3001 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3002 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3003 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3004 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3005 * testsuite/23_containers/vector/element_access/1.cc: Same.
3006 * testsuite/23_containers/vector/cons/6513.cc: Same.
3007 * testsuite/23_containers/vector/cons/3.cc: Same.
3008 * testsuite/23_containers/vector/cons/2.cc: Same.
3009 * testsuite/23_containers/vector/cons/1.cc: Same.
3010 * testsuite/23_containers/vector/capacity/8230.cc: Same.
3011 * testsuite/23_containers/vector/capacity/1.cc: Same.
3012 * testsuite/23_containers/vector/bool/6886.cc: Same.
3013 * testsuite/23_containers/stack/members/7158.cc: Same.
3014 * testsuite/23_containers/set/invalidation/2.cc: Same.
3015 * testsuite/23_containers/set/invalidation/1.cc: Same.
3016 * testsuite/23_containers/queue/members/7157.cc: Same.
3017 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
3018 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3019 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3020 * testsuite/23_containers/multiset/insert/1.cc: Same.
3021 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3022 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3023 * testsuite/23_containers/map/operators/1.cc: Same.
3024 * testsuite/23_containers/map/invalidation/2.cc: Same.
3025 * testsuite/23_containers/map/invalidation/1.cc: Same.
3026 * testsuite/23_containers/map/insert/1.cc: Same.
3027 * testsuite/23_containers/list/operators/4.cc: Same.
3028 * testsuite/23_containers/list/operators/3.cc: Same.
3029 * testsuite/23_containers/list/operators/2.cc: Same.
3030 * testsuite/23_containers/list/operators/1.cc: Same.
3031 * testsuite/23_containers/list/modifiers/3.cc: Same.
3032 * testsuite/23_containers/list/modifiers/2.cc: Same.
3033 * testsuite/23_containers/list/modifiers/1.cc: Same.
3034 * testsuite/23_containers/list/invalidation/4.cc: Same.
3035 * testsuite/23_containers/list/invalidation/3.cc: Same.
3036 * testsuite/23_containers/list/invalidation/2.cc: Same.
3037 * testsuite/23_containers/list/invalidation/1.cc: Same.
3038 * testsuite/23_containers/list/cons/9.cc: Same.
3039 * testsuite/23_containers/list/cons/8.cc: Same.
3040 * testsuite/23_containers/list/cons/7.cc: Same.
3041 * testsuite/23_containers/list/cons/6.cc: Same.
3042 * testsuite/23_containers/list/cons/5.cc: Same.
3043 * testsuite/23_containers/list/cons/4.cc: Same.
3044 * testsuite/23_containers/list/cons/3.cc: Same.
3045 * testsuite/23_containers/list/cons/2.cc: Same.
3046 * testsuite/23_containers/list/cons/1.cc: Same.
3047 * testsuite/23_containers/list/capacity/1.cc: Same.
3048 * testsuite/23_containers/deque/operators/1.cc: Same.
3049 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3050 * testsuite/23_containers/deque/invalidation/3.cc: Same.
3051 * testsuite/23_containers/deque/invalidation/2.cc: Same.
3052 * testsuite/23_containers/deque/invalidation/1.cc: Same.
3053 * testsuite/23_containers/deque/cons/2.cc: Same.
3054 * testsuite/23_containers/deque/cons/1.cc: Same.
3056 * src/allocator.cc: Add char, wchar_t instantiations
3057 to match extern template declarations in memory.h.
3059 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3061 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3062 Fix warning regression.
3064 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3066 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3067 Deal properly with empty __digits and negative frac_digits,
3070 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
3072 * docs/html/documentation.html: Regenerate.
3074 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3077 * include/bits/postypes.h (class streamoff): Remove, now
3078 streamoff is just typedef a 64 bit signed integer type.
3079 (class fpos): Tweak consistently.
3080 * testsuite/27_io/fpos/14320-1.cc: New.
3081 * testsuite/27_io/fpos/14320-2.cc: New.
3082 * testsuite/27_io/fpos/14320-3.cc: New.
3083 * testsuite/27_io/fpos/14320-4.cc: New.
3084 * testsuite/27_io/fpos/14320-5.cc: New.
3085 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
3087 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3089 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3090 Reorganize a bit the main parsing loop, thus early detecting
3091 an empty value component.
3092 * testsuite/22_locale/money_get/get/char/16.cc: New.
3093 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
3095 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
3097 Support automake 1.8.2
3098 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
3099 * po/Makefile.am (EXTRA_DIST): New.
3100 * po/Makefile.in: Regenerate.
3101 * Makefile.in: Same.
3102 * include/Makefile.in: Same.
3103 * libmath/Makefile.in: Same.
3104 * libsupc++/Makefile.in: Same.
3105 * src/Makefile.in: Same.
3106 * testsuite/Makefile.in: Same.
3108 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
3109 __GXX_WEAK__ instead of SUPPORTS_WEAK.
3110 (${host_builddir}/gthr-default.h): Same.
3111 (${host_builddir}/gthr.h): Same.
3112 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
3113 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
3115 * aclocal.m4: Regenerate.
3116 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
3117 * config.h.in: Regenerate.
3120 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3122 Support autoconf 2.59
3123 * acinclude.m4: Quote correctly.
3124 * aclocal.m4: Regenerate.
3127 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3129 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
3131 * docs/html/18_support/howto.html: Add bit about writing to
3132 stderr, mostly by Zack.
3134 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3136 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3137 money_get<>::do_get(string_type&)): ... and two more.
3139 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3141 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3142 Fix thinkos in the switch from string_type& to string& as last
3145 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3147 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3148 Also when parsing exponent sign, first look for thousands_sep
3149 and decimal_point; tweak a bit.
3150 * testsuite/22_locale/num_get/get/char/15.cc: New.
3151 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
3153 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3154 num_get<>::_M_extract_int): Reorder some conditionals.
3156 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3158 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3159 Consistently with numpunct, enforce the requirements in
3160 22.2.6.3, p3 for the thousands separators; tweak a bit.
3161 * testsuite/22_locale/money_get/get/char/15.cc: New.
3162 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
3164 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
3166 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
3167 testsuite_files from correct multilib blddir when running
3170 2004-02-29 Phil Edwards <phil@codesourcery.com>
3172 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
3173 the summary file to the logfile.
3174 * testsuite/Makefile.in: Regenerate.
3176 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3178 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
3180 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
3181 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
3183 2004-02-28 Paolo Carlini <pcarlini@suse.de>
3185 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3186 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
3187 no 'decimal-point' in the middle: in this case too we must fix
3188 up __found_grouping; slightly tweak.
3189 * testsuite/22_locale/num_get/get/char/14.cc: New.
3190 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
3192 2004-02-27 Eric Christopher <echristo@redhat.com>
3193 Phil Edwards <phil@codesourcery.com>
3195 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
3196 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
3197 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
3198 testsuite/22_locale/collate/hash/wchar_t/2.cc,
3199 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
3200 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
3201 testsuite/22_locale/collate/transform/wchar_t/2.cc,
3202 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
3203 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3204 Use dg-require-iconv.
3205 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
3207 2004-02-27 Phil Edwards <phil@codesourcery.com>
3208 Eric Christopher <echristo@redhat.com>
3210 * testsuite/config/default.exp: Update with comments.
3211 (${tool}_target_compile): New wrapper routine.
3212 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
3213 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
3215 (load_gcc_lib, v3track): New routines.
3216 (v3-init): Rename to libstdc++_init.
3217 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
3218 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
3220 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
3222 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
3224 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
3226 * config/os/irix/irix5.2/atomicity.h: Merge..
3227 * config/os/irix/irix6.5/atomicity.h: Merge..
3228 * config/os/irix/atomicity.h: ...into this.
3229 * config/os/irix/atomic_word.h: New.
3230 * configure.host: Set atomic_word_dir for irix.
3232 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
3233 * i386/atomicity.h: Same.
3234 * m68k/atomicity.h: Same.
3235 * sparc/atomicity.h: Same.
3237 2004-02-27 David Edelsohn <edelsohn@gnu.org>
3239 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
3240 static, and inline keywords.
3242 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3244 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3245 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
3246 call reserve on the __tmp_gruping string.
3247 (num_get<>::_M_extract_float): Don't append unnecessarily a
3248 char() to the returned string.
3249 * include/bits/locale_facets.tcc: Trivial reformattings.
3251 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3253 * include/bits/locale_facets.h (money_get<>::_M_extract):
3254 Change signature: now takes a plain string&.
3255 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3256 Update consistently the definition; use the moneypunct cache
3257 to parse the value; use swap to change __units.
3258 (money_get<>::do_get(long double&)): Update call of _M_extract,
3259 avoid ctype::narrow, not correct wrt the standard.
3260 (money_get<>::do_get(string_type&)): Likewise, update call
3261 of _M_extract, use ctype::widen.
3262 * src/locale-inst.cc: Tweak instantiations of _M_extract.
3264 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
3266 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
3267 * testsuite/demangle/abi_examples/02.cc: Likewise.
3268 * testsuite/demangle/regression/cw-11.cc: Likewise.
3269 * testsuite/demangle/regression/cw-16.cc: Change two expected
3270 results to match libiberty demangler output.
3272 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3275 * libsupc++/Makefile.am: Use libiberty demangler.
3276 (c_sources): Add cp-demangle.c.
3277 * libsupc++/Makefile.in: Regenerate.
3278 * src/Makefile.am (sources): Remove demangle.cc.
3279 * src/Makefile.in: Regenerate.
3280 * include/Makefile.am (bits_headers): Move demangle.h.
3281 (ext_headers): ...here.
3282 * include/Makefile.in: Regenerate.
3283 * include/bits/demangle.h: Move...
3284 * include/ext/demangle.h: ...here.
3285 * src/demangle.cc: Remove.
3287 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3289 * include/bits/demangle.h: Add type template parameter to all
3290 templates with just an Allocator template parameter.
3292 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
3294 * include/bits/atomicity.h: New, forward declarations for __atomic_add
3295 and __exchange_and_add.
3296 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
3297 * config/cpu/cris/atomic_word.h: Same.
3298 * config/cpu/sparc/atomic_word.h: Same.
3299 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
3300 Qualifiy with __gnu_cxx.
3301 (_Callback_list::_M_add_reference): Same.
3302 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
3303 (locale::facet::_M_remove_reference): Same.
3304 (locale::_Impl::_M_add_reference): Add.
3305 (locale::_Impl::_M_remove_reference): Same.
3306 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
3307 (basic_string::_Rep::_M_dispose): Same.
3308 * src/ios.cc (ios_base::xalloc): Same.
3309 * src/ios_init.cc (ios_base::Init::Init): Same.
3310 (ios_base::Init::~Init): Same.
3311 * src/locale.cc (locale::id::_M_id): Same.
3312 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
3313 static, and inline keywords.
3314 * config/cpu/alpha/atomicity.h: Same.
3315 * config/cpu/cris/atomicity.h: Same.
3316 * config/cpu/generic/atomicity.h: Same.
3317 * config/cpu/hppa/atomicity.h: Same.
3318 * config/cpu/i386/atomicity.h: Same.
3319 * config/cpu/ia64/atomicity.h: Same.
3320 * config/cpu/m68k/atomicity.h: Same.
3321 * config/cpu/mips/atomicity.h: Same.
3322 * config/cpu/powerpc/atomicity.h: Same.
3323 * config/cpu/s390/atomicity.h: Same.
3324 * config/cpu/sparc/atomicity.h: Same.
3326 * src/Makefile.am (host_sources): Add atomicity.cc.
3327 (atomicity.cc): New rule.
3328 * src/Makefile.in: Regenerate.
3329 * include/Makefile.am (host_headers): Remove host atomicity.h.
3330 (host_headers): Add atomic_word.h.
3331 (bits_headers): Add bits atomicity.h.
3332 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3333 * include/Makefile.in: Regenerate.
3334 * configure.host (atomic_word_dir): Add.
3335 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
3336 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3337 * configure: Regenerate.
3338 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
3340 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
3341 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3343 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
3345 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
3346 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
3347 Fix markup, more <link> tags.
3349 2004-02-25 Carlo Wood <carlo@alinoe.com>
3352 namespace __gnu_cxx::demangler
3353 (session<Allocator>::qualifier_list_Allocator): Add
3354 (session<Allocator>::M_qualifier_list_alloc): Add
3355 (session<Allocator>::decode_type_with_postfix):
3356 Use M_qualifier_list_alloc instead of calling operator new/delete.
3358 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3361 * include/bits/postypes.h (class streamoff): Add operator++(),
3362 operator++(int), operator--() and operator--(int).
3363 * testsuite/27_io/fpos/14252.cc: New.
3365 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
3367 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
3368 error in handling of hex constants.
3370 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3372 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3373 Prefer basic_string::append to operator+= and a temporary.
3375 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3377 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
3378 Only use fputs, not write.
3380 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3382 * include/ext/malloc_allocator.h: Add operators ==, !=.
3383 * include/ext/new_allocator.h: Add operators ==, !=.
3384 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
3385 (__mt_alloc::_S_get_options): New.
3386 (__mt_alloc::_S_set_options): New.
3387 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
3388 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
3389 Move functions out of line, simplify, format.
3390 * src/allocator.cc: Simplify explicit instantiations.
3391 * include/bits/allocator.h: Tweak.
3393 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3395 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3396 Restructure formatting of value component, first dealing with
3397 the non-decimal digits; use reserve.
3399 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3401 * include/bits/locale_facets.h (class money_get): Inherit
3402 from money_base too; tweak declaration of _M_extract, now
3403 parameterized on _Intl too.
3404 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3405 Update definition to use the cache; call reserve on __res to
3406 avoid multiple reallocations; fix parsing of sign component
3407 according to 22.2.6.1.2, p3.
3408 (money_get<>::do_get(long double&),
3409 money_get<>::do_get(string_type&)): Update calls of _M_extract.
3410 * src/locale-inst.cc: Add instantiations of
3411 money_get::_M_extract<false> and money_get::_M_extract<true>.
3412 * testsuite/22_locale/money_get/get/char/14.cc: New.
3413 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
3415 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3417 * libsupc++/vterminate.cc
3418 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
3420 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
3422 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3423 not set RLIMIT_AS on HP-UX.
3425 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3427 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3428 not set RLIMIT_AS on HP-UX.
3430 2004-02-21 Paolo Carlini <pcarlini@suse.de>
3432 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
3433 _S_zero, _S_end } enum, _S_atoms.
3434 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
3435 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
3436 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
3437 (__moneypunct_cache<>::~__moneypunct_cache): Update.
3438 (__moneypunct_cache<>::_M_cache): Fill the cache.
3439 (class moneypunct): Tweak __cache_type typedef.
3440 (class money_put): Inherit from money_base too; tweak declaration
3441 of _M_insert, now parameterized on _Intl.
3442 * include/bits/locale_facets.tcc
3443 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
3444 (money_put<>::_M_insert): Update definition to use the cache;
3445 call reserve on __res to avoid multiple reallocations.
3446 (money_put<>::do_put(long double),
3447 money_put<>::do_put(const string_type&): Update calls of _M_insert.
3448 * config/locale/generic/monetary_members.cc
3449 (moneypunct<char, true>::_M_initialize_moneypunct,
3450 moneypunct<char, false>::_M_initialize_moneypunct,
3451 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
3452 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
3453 * config/locale/gnu/monetary_members.cc: Likewise.
3454 * config/locale/gnu/monetary_members.cc
3455 (moneypunct<wchar_t, true>::~moneypunct(),
3456 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
3457 * src/globals_locale.cc: Tweak fake_money_cache_c.
3458 * src/locale-inst.cc: Add instantiations for
3459 money_put::_M_insert<false> and money_put::_M_insert<true> and
3460 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
3461 * src/locale_facets.cc: Define money_base::_S_atoms.
3462 * src/locale_init.cc: Update placement new of
3463 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
3464 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
3466 * config/locale/generic/numeric_members.cc: Clean up.
3467 * config/locale/gnu/numeric_members.cc: Likewise.
3468 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
3469 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
3470 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
3471 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
3472 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
3473 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
3475 2004-02-20 Mark Mitchell <mark@codesourcery.com>
3477 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
3478 FIFO for writing with ios_base::in|ios_base::out.
3479 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3480 * testsuite/27_io/objects/char/7.cc: Likewise.
3481 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
3484 2004-02-19 David Edelsohn <edelsohn@gnu.org>
3486 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
3487 from iso-8859-1 to ISO8859-1.
3488 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
3489 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
3490 * 22_locale/collate/hash/wchar_t/2.cc: Same.
3491 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
3492 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
3493 * 22_locale/collate/transform/wchar_t/2.cc: Same.
3494 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
3495 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
3497 2004-02-18 Paolo Carlini <pcarlini@suse.de>
3499 * include/bits/locale_facets.h (money_get<>::_M_extract):
3500 New, helper for do_get.
3501 (money_put<>::_M_insert): Likewise, for do_put.
3502 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3503 money_put<>::_M_insert): Define.
3504 (money_get<>::do_get(long double&), money_get<>::do_get(
3505 string_type&), money_put::do_put(long double),
3506 money_put::do_put(const string_type&)): Use the helpers.
3508 2004-02-18 Paolo Carlini <pcarlini@suse.de>
3510 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3511 Rewrite, avoiding recursion.
3512 (__gnu_internal::xwrite): Minor tweaks.
3514 2004-02-17 Stefan Olsson <stefan@xapa.se>
3516 * include/ext/mt_allocator.h: Removed the last
3517 pointer. Deallocated blocks are now added to the front of
3518 freelists as proposed by Felix Yen. This gives roughly 10%
3519 performance boost and saves some memory.
3520 * docs/html/ext/mt_allocator.html: Change due to that deallocated
3521 blocks now are added to the front of freelists. The reason to this
3522 approach is also explained.
3524 2004-02-17 Paolo Carlini <pcarlini@suse.de>
3526 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3527 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
3528 grouping fidelity conditional.
3530 2004-02-16 Paolo Carlini <pcarlini@suse.de>
3532 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
3533 Qualify exception with std::.
3534 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
3535 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3536 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3537 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3538 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3540 2004-02-16 Paolo Carlini <pcarlini@suse.de>
3542 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
3543 for now that the catch block is not reached.
3544 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
3546 2004-02-16 Paolo Carlini <pcarlini@suse.de>
3548 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3549 Fix parsing of the remaining sign characters.
3550 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
3551 the input is scanned 'til eof.
3552 * 22_locale/money_get/get/char/4.cc: Likewise.
3553 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
3554 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
3555 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
3556 not do_pos_format: the former is the only one that matters during
3558 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
3560 * 22_locale/money_get/get/char/6.cc: Minor tweak.
3561 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
3563 2004-02-15 David Asher <david.asher@cavium.com>
3566 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
3567 access __olds beyond __oldlen.
3569 2004-02-14 Paolo Carlini <pcarlini@suse.de>
3571 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
3572 sure the exception is actually thrown.
3573 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3574 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3575 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3577 2004-02-14 Paolo Carlini <pcarlini@suse.de>
3580 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
3581 In case of conversion errors, throw ios_failure; simplify.
3582 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
3583 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3584 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
3585 previously we didn't throw in case of conversion errors, instead
3586 just returned eof().
3587 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3588 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3589 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3591 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
3592 Trivial simplification of a conditional.
3594 2004-02-12 Paolo Carlini <pcarlini@suse.de>
3596 PR libstdc++/13731 (final part: writev)
3597 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3598 New, a wrapper around writev() handling partial writes.
3599 (__basic_file<char>::xwrite): Move to __gnu_internal and make
3601 (__basic_file<char>::xsputn): Update call.
3602 (__basic_file<char>::xsputn_2): Likewise.
3603 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3604 Don't declare, now static.
3606 2004-02-11 Stefan Olsson <stefan@xapa.se>
3608 * docs/html/ext/mt_allocator.html: New.
3610 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
3612 * docs/html/20_util/allocator.html: New file, consolidate
3613 allocator information here. Revamp.
3614 * docs/html/documentation.html: Change links.
3615 * docs/html/20_util/howto.html: Same.
3616 * docs/html/ext/howto.html: Same.
3618 2004-02-11 Paolo Carlini <pcarlini@suse.de>
3620 PR libstdc++/13731 (first part: write)
3621 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3623 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
3624 Define it: a wrapper around write() handling partial write.
3625 (__basic_file<char>::xsputn): Use it.
3626 (__basic_file<char>::xsputn_2): Likewise.
3628 2004-02-11 Paolo Carlini <pcarlini@suse.de>
3629 Petur Runolfsson <peturr02@ru.is>
3632 * include/std/std_istream.h (operator>>(__istream_type& (*)
3633 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
3634 operator>>(ios_base& (*)(ios_base&))): Declare inline.
3635 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
3636 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
3637 operator<<(ios_base& (*) (ios_base&))): Likewise.
3638 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
3640 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
3643 * config/linker-map.gnu: Add typeinfo and typeinfo name for
3644 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
3647 * config/linker-map.gnu: Add typeinfo and typeinfo name for
3648 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
3650 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
3652 * include/ext/pool_allocator.h: Include c++config.h.
3654 2004-02-09 Stefan Olsson <stefan@xapa.se>
3656 * include/ext/mt_allocator.h: thread_id is unused in non threaded
3657 applications and now has a ifdef to remove it completely on
3658 compilers without thread support. Include stdlib.h due to a
3659 compiler warning on getenv().
3661 2004-02-09 Paul Brook <paul@codesourcery.com>
3663 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
3665 2004-02-09 Paolo Carlini <pcarlini@suse.de>
3668 * src/locale_init.cc (locale::global(const locale&)): Use
3669 locale::name() in order to decide whether calling setlocale.
3670 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
3672 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
3673 Avoid computing &= unnecessarily.
3675 2004-02-09 James E Wilson <wilson@specifixinc.com>
3678 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
3679 __builtin_extend_pointer.
3681 2004-02-09 Paolo Carlini <pcarlini@suse.de>
3684 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
3685 Don't leave dangling pointers.
3686 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
3687 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
3688 facet is needed in the final test.
3690 2004-02-09 Bernardo Innocenti <bernie@develer.com>
3692 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
3693 * configure: Regenerate.
3695 2004-02-08 Richard Henderson <rth@redhat.com>
3698 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
3699 uncaughtExceptions during nested catch rethrow.
3700 * testsuite/18_support/14026.cc: New.
3702 2004-02-08 Paolo Carlini <pcarlini@suse.de>
3704 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
3705 When working in place remember to set the state to sharable
3706 (otherwise, _M_mutate does it).
3708 2004-02-08 Bernardo Innocenti <bernie@develer.com>
3710 * include/bits/allocator.h, include/bits/basic_ios.h,
3711 include/bits/basic_ios.tcc, include/bits/basic_string.h,
3712 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
3713 include/bits/char_traits.h, include/bits/codecvt.h,
3714 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
3715 include/bits/demangle.h, include/bits/deque.tcc,
3716 include/bits/fstream.tcc, include/bits/functexcept.h,
3717 include/bits/gslice.h, include/bits/gslice_array.h,
3718 include/bits/indirect_array.h, include/bits/ios_base.h,
3719 include/bits/istream.tcc, include/bits/list.tcc,
3720 include/bits/locale_classes.h, include/bits/locale_facets.h,
3721 include/bits/locale_facets.tcc, include/bits/localefwd.h,
3722 include/bits/mask_array.h, include/bits/ostream.tcc,
3723 include/bits/postypes.h, include/bits/slice_array.h,
3724 include/bits/sstream.tcc, include/bits/stl_algo.h,
3725 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3726 include/bits/stl_construct.h, include/bits/stl_deque.h,
3727 include/bits/stl_function.h, include/bits/stl_heap.h,
3728 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
3729 include/bits/stl_list.h, include/bits/stl_map.h,
3730 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
3731 include/bits/stl_numeric.h, include/bits/stl_pair.h,
3732 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
3733 include/bits/stl_relops.h, include/bits/stl_set.h,
3734 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
3735 include/bits/stl_threads.h, include/bits/stl_tree.h,
3736 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
3737 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
3738 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
3739 include/bits/type_traits.h, include/bits/valarray_after.h,
3740 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
3741 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
3742 trailing whitespace.
3744 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3746 * include/bits/basic_string.h: Fix comment.
3748 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3750 * include/bits/stl_construct.h: Wrap overlong lines, reformat
3751 according to the coding standards.
3752 * include/bits/stl_pair.h: Likewise.
3753 * include/bits/stl_raw_storage_iter.h: Likewise.
3754 * include/bits/stl_stack.h: Likewise.
3755 * include/bits/stl_uninitialized.h: Likewise.
3756 * include/bits/stream_iterator.h: Likewise.
3757 * include/bits/streambuf_iterator.h: Likewise.
3758 * include/bits/type_traits.h: Likewise.
3760 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3762 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3765 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
3767 * scripts/check_performance: Support PCH.
3769 * scripts/check_performance (CXX): Add -DNOTHREAD.
3770 * testsuite/performance/20_util/allocator/insert.cc: Integrate
3771 threaded tests from insert_insert.cc. Tweak iterations,
3772 remove special cases.
3773 * testsuite/performance/20_util/allocator/insert_insert.cc:
3774 Make all tests single-threaded. Tweak iterations.
3775 * testsuite/performance/20_util/allocator/map_thread.cc:
3777 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3780 2004-02-05 Geoffrey Keating <geoffk@apple.com>
3784 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
3785 'gcc-lib'. Add comment about poorly-named variables.
3786 * aclocal.m4: Regenerate.
3787 * configure: Regenerate.
3789 2004-02-05 Paolo Carlini <pcarlini@suse.de>
3791 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3792 Thousands-sep are always optional; thousands-sep are not allowed
3793 after the decimal_point.
3794 * testsuite/22_locale/money_get/get/char/12.cc: New.
3795 * testsuite/22_locale/money_get/get/char/13.cc: New.
3796 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
3797 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
3799 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
3800 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3801 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3802 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3803 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3804 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3805 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3806 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3808 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
3810 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
3812 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
3814 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
3816 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
3817 it to decide whether FIONREAD should take an off_t or int argument.
3819 2004-02-05 Paolo Carlini <pcarlini@suse.de>
3821 * include/bits/stl_function.h: Minor formatting changes.
3823 2004-02-04 Zack Weinberg <zack@codesourcery.com>
3825 Revert previous change to config/abi/*/baseline_symbols.txt.
3827 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
3828 Zack Weinberg <zack@codesourcery.com>
3830 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
3832 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
3833 (__basic_file<char>::_M_open_mode): Delete.
3834 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
3836 * testsuite/27_io/basic_filebuf/close/char/9964.cc
3837 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3838 Correct flags to filebuf::open calls.
3840 * config/abi/alpha-freebsd5/baseline_symbols.txt
3841 * config/abi/alpha-linux-gnu/baseline_symbols.txt
3842 * config/abi/hppa-linux-gnu/baseline_symbols.txt
3843 * config/abi/i386-freebsd4/baseline_symbols.txt
3844 * config/abi/i386-freebsd5/baseline_symbols.txt
3845 * config/abi/i486-linux-gnu/baseline_symbols.txt
3846 * config/abi/ia64-linux-gnu/baseline_symbols.txt
3847 * config/abi/mips-linux-gnu/baseline_symbols.txt
3848 * config/abi/sparc-freebsd5/baseline_symbols.txt
3849 * config/abi/sparc-linux-gnu/baseline_symbols.txt
3850 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
3851 Remove entry for __basic_file<char>::_M_open_mode.
3853 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
3855 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
3857 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
3859 * testsuite/performance/20_util/producer_consumer.cc: New.
3860 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
3862 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
3864 * testsuite/performance/20_util/allocator.cc: Move to..
3865 * testsuite/performance/20_util/allocator/insert.cc: ...here.
3866 * testsuite/performance/20_util/allocator_thread.cc: Move to...
3867 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
3868 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
3869 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
3871 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
3873 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
3874 * docs/html/faq/index.txt: Regenerate.
3876 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
3878 * include/ext/debug_allocator.h: _M_extra now stands for the
3879 number of extra objects instead of the number of extra bytes.
3880 (debug_allocator::allocate): Adjust.
3881 (debug_allocator::deallocate): Adjust.
3883 * include/ext/pool_allocator.h: Fix typo.
3885 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
3886 Benjamin Kosnik <bkoz@redhat.com>
3888 * testsuite/performance/20_util/allocator.cc: Add map,
3890 * testsuite/performance/20_util/allocator_thread.cc: Same.
3892 2004-02-03 Paolo Carlini <pcarlini@suse.de>
3894 * include/bits/basic_string.h (insert(iterator)): Remove,
3895 non-standard and already scheduled for removal.
3897 2004-02-03 Paolo Carlini <pcarlini@suse.de>
3899 * include/bits/stl_iterator_base_funcs.h: Minor formatting
3900 and indentation tweaks.
3901 * include/bits/stl_iterator_base_types.h: Likewise.
3902 * include/bits/stl_list.h: Likewise.
3903 * include/bits/stl_map.h: Likewise.
3904 * include/bits/stl_tempbuf.h: Likewise.
3906 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
3908 * include/bits/gslice.h, include/bits/gslice_array.h,
3909 include/bits/indirect_array.h, include/bits/mask_array.h,
3910 include/bits/slice_array.h, include/bits/stl_numeric.h,
3911 include/std/std_valarray.h: Update copyright years.
3913 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
3915 * include/bits/gslice.h (gslice): Document.
3916 * include/bits/gslice_array.h (gslice_array): Document.
3917 * include/bits/indirect_array (indirect_array): Document.
3918 * include/bits/mask_array (mask_array): Document.
3919 * include/bits/slice_array.h (slice,slice_array): Document.
3920 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
3921 adjacent_difference): Document
3922 * include/std/std_valarray.h (valarray): Document.
3924 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
3926 * docs/html/19_diagnostics/howto.html: Move verbose terminate
3928 * docs/html/18_support/howto.html: Here.
3929 * docs/html/documentation.html: Add reference here.
3931 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3933 * config/locale/gnu/c++locale_internal.h: Remove prototypes
3934 of no longer used GLIBC thread locale functions.
3936 2004-02-02 Eric Christopher <echristo@redhat.com>
3937 Zack Weinberg <zack@codesourcery.com>
3939 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
3941 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
3942 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
3943 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
3944 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
3945 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
3946 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
3947 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
3948 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3951 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3953 * include/bits/stl_function.h: Additional minor tweaks.
3954 * include/bits/stl_multiset.h: Likewise.
3956 * include/bits/stl_queue.h: Minor tweaks.
3958 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3960 PR libstdc++/13976 (continued)
3961 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
3962 Make the second parameter unnamed, to void unused parameter
3964 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
3966 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3969 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
3970 Make the second parameter unnamed, to void unused parameter
3972 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
3973 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
3975 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3977 * include/bits/stl_algo.h: Additional minor tweaks.
3978 * include/bits/stl_map.h: Likewise.
3979 * include/bits/stl_multimap.h: Likewise.
3980 * include/bits/stl_multiset.h: Likewise.
3981 * include/bits/stl_set.h: Likewise.
3982 * include/bits/stl_tree.h: Likewise.
3984 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3986 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
3989 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3991 * include/bits/stl_function.h: Additional minor tweaks.
3993 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3995 * include/bits/deque.tcc: Wrap overlong lines, constify
3996 a few variables, reformat according to the coding standards.
3997 * include/bits/list.tcc: Likewise.
3998 * include/bits/stl_deque.h: Likewise.
3999 * include/bits/stl_function.h: Likewise.
4000 * include/bits/stl_iterator.h: Likewise.
4001 * include/bits/stl_iterator_base_funcs.h: Likewise.
4002 * include/bits/stl_iterator_base_types.h: Likewise.
4003 * include/bits/stl_list.h: Likewise.
4004 * include/bits/stl_map.h: Likewise.
4005 * include/bits/stl_multimap.h: Likewise.
4006 * include/bits/stl_multiset.h: Likewise.
4007 * include/bits/stl_relops.h: Likewise.
4008 * include/bits/stl_set.h: Likewise.
4010 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4012 * include/bits/stl_bvector.h: Wrap overlong lines, constify
4013 a few variables, reformat according to the coding standards.
4014 * include/bits/stl_tree.h: Likewise.
4016 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4018 * include/bits/stl_algo.h: Minor additional reformat, add
4020 * include/bits/stl_algobase.h: Add copyright year.
4022 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4024 * include/bits/stl_algo.h: Wrap overlong lines, constify
4025 a few variables, reformat according to the coding standards.
4026 * include/bits/stl_algobase.h: Likewise.
4027 * include/bits/stl_heap.h: Likewise.
4029 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4031 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
4033 * include/bits/basic_string.h: Fix two comments.
4035 2004-01-31 Per Bothner <per@bothner.com>
4037 * include/ext/mt_allocator.h
4038 (__mt_alloc::_S_thread_freelist_mutex): Guard with
4039 __GTHREAD_MUTEX_INIT.
4041 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4043 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
4045 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4047 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
4048 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
4049 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
4051 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
4053 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
4054 Don't use clear, but instead assign. Use insert.
4056 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
4058 * src/demangle.cc: Add instantiations.
4059 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
4060 * src/Makefile.in: Regenerate.
4062 2004-01-30 David Edelsohn <edelsohn@gnu.org>
4064 * src/allocator.cc: Protect _S_get_thread_id() and
4065 _S_thread_key_destr() with #ifdef __GTHREADS.
4067 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4069 Reshuffle performance testsuite.
4070 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
4071 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
4072 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
4073 fstream_seek_write.cc, ifstream_extract_float.cc,
4074 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
4075 list_create_fill_sort.cc, map_create_fill.cc,
4076 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
4077 ofstream_insert_float.cc, ofstream_insert_int.cc,
4078 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
4079 wchar_t_out.cc: Split into...
4080 * testsuite/performance/20_util/allocator.cc: New.
4081 * testsuite/performance/20_util/allocator_map_thread.cc: New.
4082 * testsuite/performance/20_util/allocator_thread.cc: New.
4083 * testsuite/performance/21_strings/string_append: New.
4084 * testsuite/performance/22_locale/is_wchar_t.cc: New.
4085 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
4086 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
4087 * testsuite/performance/22_locale/wchar_t_in.cc: New.
4088 * testsuite/performance/22_locale/wchar_t_length.cc: New.
4089 * testsuite/performance/22_locale/wchar_t_out.cc: New.
4090 * testsuite/performance/23_containers/container_benchmark.cc: New.
4091 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
4092 * testsuite/performance/23_containers/map_create_fill.cc: New.
4093 * testsuite/performance/26_numerics/complex_norm.cc: New.
4094 * testsuite/performance/27_io/cout_insert_int.cc: New.
4095 * testsuite/performance/27_io/filebuf_copy.cc: New.
4096 * testsuite/performance/27_io/filebuf_sputc.cc: New.
4097 * testsuite/performance/27_io/fstream_seek_write.cc: New.
4098 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
4099 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
4100 * testsuite/performance/27_io/ifstream_getline.cc: New.
4101 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
4102 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
4104 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4106 * include/bits/basic_string.tcc (_Rep::_S_create):
4107 Never allocate a string bigger than max_size(); always keep
4108 __capacity and __size in sync to avoid memory leaks at
4111 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4113 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4114 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
4115 the double loop, streamline.
4117 * include/bits/basic_string.tcc: Very minor tweaks.
4119 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
4121 * scripts/check_performance: Only compile with $THREAD_FLAG
4122 when test is marked to require it. Allow multiple
4123 compilations/executions of marked tests.
4124 * testsuite/testsuite_performance.h (report_performance):
4125 Report dynamic thread support status.
4126 (report_header): Likewise.
4127 * testsuite/performance/allocator.cc: Stabilize iteration
4128 count. Support more allocators. Mark each allocator test to
4129 run and report independently.
4130 * testsuite/performance/allocator_map_thread.cc: Likewise.
4131 * testsuite/performance/allocator_thread.cc: Likewise.
4133 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
4135 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
4136 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
4137 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
4138 std::get_temporary_buffer() instead of duplicating its code.
4139 Update to C++STYLE conventions.
4140 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
4141 new() instead of std::malloc().
4142 (return_temporary_buffer): Use ::operator delete() instead of
4145 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
4147 * include/bits/allocator.h: Temporary switch to new_allocator as
4148 the default to unjam bootstraps.
4150 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4152 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
4153 * include/Makefile.in: Regenerate.
4154 * include/bits/allocator_traits.h: Remove.
4155 * include/bits/allocator.h: Remove allocator_traits.h include, and
4157 (allocator): Empty base class, inherit from the underlying allocator.
4158 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
4159 * src/allocator.cc: ...here. New. For the underlying allocators.
4160 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
4161 * config/linker-map.gnu: Remove __pool_alloc bits.
4162 * src/Makefile.am (sources): Add allocator.cc.
4163 * src/Makefile.in: Regenerate.
4164 * testsuite/20_util/allocator/1.cc: Split second test into...
4165 * testsuite/20_util/allocator/8230.cc: ...this.
4166 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
4167 typedef to use std::allocatore. Format.
4168 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
4170 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
4171 __throw_bad_alloc calls. Don't include <memory>.
4172 * include/ext/malloc_allocator.h: Remove <memory> include.
4173 * include/ext/new_allocator.h (new_allocator): Same.
4174 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
4175 declaration. Switch __alloc to _Alloc.
4176 * include/ext/hashtable.h: Remove __alloc.
4177 * include/backward/alloc.h: Only inject allocator, not
4178 implementation details.
4180 * include/ext/mt_allocator.h: Replace free with delete.
4182 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4184 * src/globals_io.cc: Change to __gnu_internal namespace.
4185 * src/globals_locale.cc: Same.
4186 * src/locale_init.cc: Same.
4187 * src/ios_init.cc: Same.
4189 2004-01-28 Stefan Olsson <stefan@snon.net>
4191 * include/ext/mt_allocator.h: Replaced all malloc() calls with
4192 operator new(). Added support for the env variable
4193 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
4194 one in allocate() as well). Fix typos.
4196 2004-01-28 Paolo Carlini <pcarlini@suse.de>
4198 * include/bits/basic_string.h (_S_create(size_t,
4199 const _Alloc&): Change signature to take two size_type
4201 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4202 _InIterator, const _Alloc&, input_iterator_tag)): Update
4204 (_S_construct(_InIterator, _InIterator, const _Alloc&,
4205 forward_iterator_tag)): Likewise.
4206 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
4207 (_M_mutate(size_type, size_type, size_type)): Don't
4208 implement the exponential growth policy, demand it to
4209 _S_create, update call and simplify.
4210 (_M_clone(const _Alloc&, size_type)): Likewise.
4211 (_S_create(size_type, size_type, const _Alloc&)): Implement
4212 the growth policy, simplify otherwise.
4214 * include/bits/basic_string.h (_Rep::operator[]): Tweak
4215 signature to take a size_type, consistently with the other
4218 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
4220 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
4221 delete declarations, add include and test variable.
4223 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
4225 * include/bits/codecvt.h, include/bits/locale_facets.h,
4226 include/bits/postypes.h, include/bits/stl_bvector.h,
4227 include/bits/stl_multiset.h, include/bits/stl_set.h,
4228 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
4229 include/std/std_complex.h: Document.
4231 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
4234 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
4235 iword/pword selector.
4236 (ios_base::iword, ios_base::pword): Use it.
4237 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
4238 iword or pword member on alloc failure.
4239 * testsuite/27_io/ios_base/storage/11584.cc: New test.
4241 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
4242 PJ Darcy <darcypj@us.ibm.com>
4244 * configure.host: Add support for *-tpf.
4245 * crossconfig.m4: Likewise.
4246 * configure: Regenerate.
4247 * config/os/tpf: New directory.
4248 * config/os/tpf/os_defines.h: New file.
4249 * config/os/tpf/ctype_base.h: Likewise.
4250 * config/os/tpf/ctype_inline.h: Likewise.
4251 * config/os/tpf/ctype_noninline.h: Likewise.
4253 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4256 * include/bits/sstream.tcc: Guard use of extern template.
4258 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4260 * include/bits/basic_string.tcc
4261 (basic_string(const basic_string&, size_type, size_type),
4262 basic_string(const basic_string&, size_type, size_type,
4263 const _Alloc&)): Avoid unnecessarily constructing iterators.
4265 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4267 * config/locale/generic/c_locale.cc: Fix throw messages
4268 to use the __N marker.
4269 * config/locale/gnu/c_locale.cc: Likewise.
4270 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
4272 * docs/html/17_intro/C++STYLE: Likewise.
4273 * include/bits/basic_ios.tcc: Likewise.
4274 * include/bits/fstream.tcc: Likewise.
4275 * include/bits/vector.tcc: Likewise.
4276 * include/ext/ropeimpl.h: Likewise.
4277 * include/std/std_bitset.h: Likewise.
4278 * src/ios.cc: Likewise.
4279 * src/locale.cc: Likewise.
4280 * src/localename.cc: Likewise.
4282 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4284 * include/bits/basic_string.h (_M_replace_aux): Use the
4285 __N marker in throw message.
4286 * include/bits/basic_string.tcc (assign(const _CharT*,
4287 size_type), insert(size_type, const _CharT*, size_type),
4288 replace(size_type, size_type, const _CharT*, size_type),
4289 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
4292 * include/bits/basic_string.h, include/bits/basic_string.tcc:
4293 Fold overlong lines, minor formatting changes.
4295 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4297 * include/bits/basic_string.h (replace(iterator, iterator,
4298 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
4299 (replace(iterator, iterator, const _CharT*)): Ditto.
4300 (replace(iterator, iterator, const _CharT*, size_type)):
4301 Add missing _GLIBCXX_DEBUG_PEDASSERT.
4303 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4305 * include/bits/basic_string.tcc (replace(size_type,
4306 size_type, const _CharT*, size_type)): Implement optimized
4307 in-place algorithm for non-overlapping ranges.
4308 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
4309 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
4311 * include/bits/basic_string.tcc (insert(size_type,
4312 const _CharT*, size_type)): Tweak slightly.
4314 2004-01-26 Andreas Schwab <schwab@suse.de>
4316 * config/locale/gnu/monetary_members.cc: Restore locale before
4317 rethrowing exception.
4319 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4321 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
4323 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
4326 * include/bits/basic_string.tcc: Very minor tweaks.
4328 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4330 * testsuite/performance/string_append.cc: Increase number
4333 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4335 * include/bits/basic_string.h (erase(size_type, size_type),
4336 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
4337 instead, thus avoiding redundant check for length_error.
4339 * include/bits/basic_string.h: Tweak some comments.
4341 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4343 * include/bits/basic_string.tcc (operator+(const _CharT*,
4344 const basic_string&)): No need to go through the append
4345 taking two iterators.
4347 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4349 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
4350 Revert last change to use std::min: machine language is worse.
4351 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
4352 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4353 (find_last_not_of(_CharT, size_type)): Ditto.
4355 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
4356 size_type)): Discard the value returned by _M_check.
4357 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
4358 (append(const basic_string&, size_type, size_type)): Ditto.
4359 (copy(_CharT*, size_type, size_type)): Ditto.
4360 (compare(size_type, size_type, const basic_string&)): Ditto.
4361 (compare(size_type, size_type, const basic_string&,
4362 size_type, size_type)): Ditto.
4363 (compare(size_type, size_type, const _CharT*)): Ditto.
4364 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4366 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4368 * include/bits/basic_string.h (insert(size_type,
4369 const basic_string&, size_type, size_type)): Define inline here.
4370 * include/bits/basic_string.tcc (insert(size_type,
4371 const basic_string&, size_type, size_type)): Move inline.
4373 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4375 * include/bits/basic_string.h (assign(const basic_string&,
4376 size_type, size_type)): Define inline here.
4377 (replace(size_type, size_type, const basic_string&,
4378 size_type, size_type)): Ditto.
4379 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4380 _InputIterator, __false_type)): Only declare.
4381 (_M_replace(iterator, iterator, _InputIterator,
4382 _InputIterator)): Remove.
4383 * include/bits/basic_string.tcc (assign(const basic_string&,
4384 size_type, size_type)): Move inline.
4385 (replace(size_type, size_type, const basic_string&,
4386 size_type, size_type)): Ditto.
4387 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4388 _InputIterator, __false_type)): Define, now does also what
4389 _M_replace did before.
4390 * src/string-inst.cc (_M_replace): Don't instantiate.
4392 * include/bits/basic_string.tcc (find(const _CharT*,
4393 size_type, size_type)): Tidy.
4394 (rfind(_CharT, size_type)): Ditto.
4395 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
4396 (find_first_not_of(_CharT, size_type)): Ditto.
4397 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4398 (find_last_not_of(_CharT, size_type)): Ditto.
4400 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4403 * include/debug/bitset (operator|=): Fix typo.
4404 * testsuite/23_containers/bitset/operations/13838.cc: New.
4406 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4408 * include/bits/basic_string.tcc (insert(size_type,
4409 const _CharT*, size_type __n)): Fix length_error check.
4410 (replace(size_type, size_type, const _CharT*, size_type):
4411 Ditto; call _M_replace_safe.
4412 (_M_replace_aux(size_type, size_type, size_type, _CharT):
4413 Fix length_error check.
4414 (_M_replace(iterator, iterator, _InputIterator,
4415 _InputIterator)): Ditto, tweak.
4416 (_M_replace_safe(size_type, size_type, const _CharT*,
4417 size_type)): Remove length_error check.
4419 * include/bits/basic_string.tcc (append(const basic_string&),
4420 append(const basic_string&, size_type, size_type)): Tweak
4423 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
4424 size_type)): If __n == 0 don't call traits::copy.
4426 2004-01-23 Stefan Olsson <stefan@snon.net>
4428 * include/ext/mt_allocator.h: Reduce lock contention.
4430 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4433 * include/bits/fstream.tcc (underflow): Remove unused
4435 * include/bits/streambuf_iterator.h (equal): Ditto.
4436 * include/bits/locale_facets.h (_M_convert_from_char):
4439 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4442 * config/linker-map.gnu (nan): Delete.
4443 * libmath/mathconf.h (NAN, nan): Delete.
4444 * linkage.m4 (nan): Don't check for it.
4445 * libmath/nan.c: Delete file.
4447 * config.h.in, configure: Regenerate.
4449 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4451 * include/bits/basic_string.h (push_back(_CharT)):
4452 Call _M_replace_aux.
4453 (insert(size_type, const basic_string&)): Trivial tweak.
4454 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
4455 (insert(iterator, _CharT)): Ditto.
4456 (erase(size_type, size_type)): Ditto.
4457 (erase(iterator)): Ditto.
4458 (erase(iterator, iterator)): Ditto.
4459 (replace(size_type, size_type, size_type, _CharT)): Ditto.
4461 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
4464 * testsuite/performance/allocator_map_thread.cc: New test.
4466 2004-01-22 Paolo Carlini <pcarlini@suse.de>
4468 * include/bits/locale_facets.tcc
4469 (money_put::do_put(..., long double)): Use the basic_string
4470 constructor for char arrays, not that for C-strings, to pass
4471 __digits to do_put(..., const string_type&): __ws isn't
4474 2004-01-22 Paolo Carlini <pcarlini@suse.de>
4476 * include/bits/basic_string.h (_M_replace_safe): Change
4477 signatures to take size_types and const _CharT*.
4478 (_M_replace_aux): Likewise, takes size_types instead of
4480 (append(size_type, _CharT)): Update call.
4481 (assign(size_type, _CharT)): Ditto.
4482 (replace(iterator, iterator, size_type, _CharT)): Ditto.
4483 (_M_replace_dispatch(iterator, iterator, _Integer,
4484 _Integer, __true_type)): Ditto.
4485 * include/bits/basic_string.tcc (assign(const _CharT*,
4487 (insert(size_type, const _CharT*, size_type)): Ditto.
4488 (replace(size_type, size_type, const _CharT*,
4490 (_M_replace(iterator, iterator, _InputIterator,
4491 _InputIterator)): Ditto.
4492 (append(const basic_string&)): Ditto.
4493 (append(const basic_string&, size_type, size_type): Ditto.
4494 (append(const _CharT*, size_type): Ditto.
4495 (_M_replace_safe, _M_replace_safe): Change definitions
4496 accordingly, simplify.
4497 * string-inst.cc (_M_replace_safe): Don't instantiate.
4499 2004-01-21 Paolo Carlini <pcarlini@suse.de>
4501 * include/bits/basic_string.tcc (append(const basic_string&)):
4502 Revert previous change.
4503 (append(const basic_string&, size_type, size_type)): Revert
4504 previous change, use _M_check and _M_limit.
4506 2004-01-21 Paolo Carlini <pcarlini@suse.de>
4508 * include/bits/basic_string.h (_M_check): Change to return
4509 a checked __pos and take an additional const char* argument.
4510 (_M_fold): Rename to _M_limit, change to return a size_type,
4511 corresponding to the __off limited to the actual length.
4512 (insert(size_type, size_type, _CharT)): Update call, call
4514 (insert(iterator, _CharT)): Call replace(iterator, iterator,
4515 size_type, _CharT) instead.
4516 (erase(size_type, size_type)): Update calls.
4517 (replace(size_type, size_type, size_type, _CharT)): Ditto.
4518 (substr(size_type, size_type)): Use _M_check.
4519 * include/bits/basic_string.tcc (basic_string(const basic_string&,
4520 size_type, size_type)): Update calls.
4521 (basic_string(const basic_string&, size_type, size_type,
4522 const _Alloc&)): Ditto.
4523 (assign(const basic_string&, size_type, size_type)): Use the
4524 new _M_check and _M_limit.
4525 (insert(size_type, const basic_string&, size_type, size_type):
4527 (insert(size_type, const _CharT*, size_type)): Ditto.
4528 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
4529 (replace(size_type, size_type, const basic_string&,
4530 size_type, size_type)): Ditto.
4531 (append(const basic_string&)): Ditto.
4532 (append(const basic_string&, size_type, size_type)): Ditto.
4533 (copy(_CharT*, size_type, size_type)): Ditto.
4534 (compare(size_type, size_type, const basic_string&)): Ditto.
4535 (compare(size_type, size_type, const basic_string&,size_type,
4537 (compare(size_type, size_type, const _CharT*)): Ditto.
4538 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4540 2004-01-19 Stefan Olsson <stefan@snon.net>
4542 * include/ext/mt_allocator.h: If a thread, when it dies, still has
4543 memory on it's freelist this memory is not returned to global
4544 list. Simplification of deallocate so that memory is always
4545 returned to the calling thread id's freelist instead of to
4546 global. Fix typos. Add volatile where appropriate.
4548 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
4550 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
4551 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
4552 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
4554 2004-01-19 Paolo Carlini <pcarlini@suse.de>
4556 * src/debug.cc: Make sure all the names are prefixed with
4557 double (or single) underscore.
4559 2004-01-19 Paolo Carlini <pcarlini@suse.de>
4561 * src/debug.cc: Trivial formatting change.
4563 2004-01-19 Paolo Carlini <pcarlini@suse.de>
4565 * include/bits/basic_string.tcc (_S_construct(size_type,
4566 _CharT, const _Alloc&)): Remove redundant try/catch.
4567 (_M_mutate(size_type, size_type, size_type)): Ditto.
4568 (_M_clone(const _Alloc&, size_type)): Ditto.
4570 2004-01-18 Paolo Carlini <pcarlini@suse.de>
4572 * include/bits/basic_string.h (c_str()): Simplify, due to
4573 21.3.4 the internal representation is always kept null-terminated.
4574 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
4575 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
4576 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
4579 2004-01-18 Paolo Carlini <pcarlini@suse.de>
4581 * include/bits/basic_string.h (append(size_type, _CharT)):
4582 Moved inline, just call _M_replace_aux, no source iterators at
4583 risk of being clobbered.
4584 (assign(size_type, _CharT)): Call directly _M_replace_aux.
4585 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4586 input_iterator_tag)): Remove fifth unused argument.
4587 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4588 _InputIterator, __false_type)): Update call.
4589 * include/bits/basic_string.tcc (replace(size_type, size_type,
4590 const _CharT*, size_type)): Update call.
4591 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
4592 throw string literal.
4593 (_M_replace_safe(iterator, iterator, _ForwardIterator,
4594 _ForwardIterator)): Likewise.
4595 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4596 input_iterator_tag)): Remove fifth unused argument.
4597 (append(size_type __n, _CharT __c)): Move inline.
4598 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
4599 const C*, const C*, input_iterator_tag)): Remove fifth unused
4602 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
4604 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
4605 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
4607 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4609 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
4612 2004-01-15 Stefan Olsson <stefan@snon.net>
4614 * include/ext/mt_allocator.h: Reuse thread id's as soon as
4615 possible by changing the behaviour of thread_freelist to do
4616 push_front when threads die instead of push_back.
4618 2004-01-14 Paolo Carlini <pcarlini@suse.de>
4620 * include/bits/locale_facets.h (struct __numpunct_cache):
4621 Add member _M_grouping_size, caching the length of _M_grouping.
4622 (__numpunct_cache<>::_M_cache): Assign the latter.
4623 (__verify_grouping): Move declaration...
4624 * include/bits/locale_facets.tcc (__verify_grouping):
4625 ... here, change signature to take a const char* and a size_t
4626 for the grouping; not a template anymore.
4627 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
4628 Likewise change signature and tweak consistently.
4629 (num_get::_M_extract_float, num_get::_M_extract_int,
4630 num_put::_M_insert_int, num_put::_M_insert_float,
4631 money_get::do_get(string_type&), money_get::do_put(string_type)):
4633 * config/locale/generic/numeric_members.cc
4634 (numpunct<>::_M_initialize_numpunct): Assign the new member.
4635 * config/locale/gnu/numeric_members.cc
4636 (numpunct<>::_M_initialize_numpunct): Likewise.
4637 * src/locale-inst.cc (__add_grouping): Tweak signature.
4638 (__verify_grouping): Don't instantiate, not a template anymore.
4640 * include/bits/locale_facets.h: Rename _M_truename_len ->
4641 _M_truename_size, _M_falsename_len -> _M_falsename_size.
4642 * include/bits/locale_facets.tcc: Likewise.
4643 * config/locale/generic/numeric_members.cc: Likewise.
4644 * config/locale/gnu/numeric_members.cc: Likewise.
4646 2004-01-14 Stefan Olsson <stefan@snon.net>
4648 * include/ext/mt_allocator.h: Fixups.
4649 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
4650 * testsuite/performance/allocator_thread.cc: Same.
4652 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
4654 * testsuite/performance/ifstream_extract_float.cc: Add higher
4656 * testsuite/performance/ofstream_insert_float.cc: Same.
4658 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4660 * src/locale-misc-inst.cc (__convert_from_v(long),
4661 __convert_from_v(unsigned long), __convert_from_v(long long),
4662 __convert_from_v(unsigned long long)): Remove, unused.
4664 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
4666 * testsuite/performance/ifstream_extract_float.cc: New.
4667 * testsuite/performance/ofstream_insert_float.cc: Float generation
4670 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
4671 * 20_util/auto_ptr/1.cc: ...this.
4672 * 20_util/auto_ptr/2.cc: Same.
4673 * 20_util/auto_ptr/3.cc: Same.
4674 * 20_util/auto_ptr/3946.cc: Same.
4675 * 20_util/auto_ptr/4.cc: Same.
4676 * 20_util/auto_ptr/5.cc: Same.
4677 * 20_util/auto_ptr/6.cc: Same.
4678 * 20_util/auto_ptr/7.cc: Same.
4679 * 20_util/auto_ptr/assign_neg.cc
4680 * 20_util/pairs.cc: Break into...
4681 * 20_util/pair/1.cc: ...this.
4682 * 20_util/pair/2.cc: Same.
4683 * 20_util/pair/3.cc: Same.
4684 * 20_util/pair/4.cc: Same.
4686 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4688 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
4689 Set correctly just basefield, the only group that matters.
4691 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4693 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
4694 (_Rope_rep_base): Inherit directly from the rope allocator;
4695 use rebinding instead of _Alloc_traits; pick up data member
4696 from _Rope_rep_alloc_base.
4697 (_Rope_alloc_base): Eliminate.
4698 (_Rope_base): Inherit directly from the rope allocator; use
4699 rebinding instead of _Alloc_traits; pick up data member from
4701 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
4702 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
4704 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4707 * include/bits/basic_string.tcc (compare(size_type, size_type,
4708 const _CharT*, size_type)): Implement correctly the resolution
4709 of DR 5: basically, s is a char array, -not- a C string.
4710 * include/bits/basic_string.h: Tweak some comments.
4711 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
4712 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
4714 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
4716 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
4719 2004-01-12 Paolo Carlini <pcarlini@suse.de>
4721 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
4723 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
4726 2004-01-12 Paolo Carlini <pcarlini@suse.de>
4728 * include/bits/locale_facets.h (struct __numpunct_cache):
4729 Add members _M_truename_len and _M_falsename_len, caching
4730 the lengths of _M_truename and _M_falsename.
4731 (__numpunct_cache<>::_M_cache): Assign the latter.
4732 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
4733 num_put::do_put(bool)): Use the new members, thus avoiding
4734 computing string lengths again and again.
4735 * config/locale/generic/numeric_members.cc
4736 (numpunct<>::_M_initialize_numpunct): Assign the new members.
4737 * config/locale/gnu/numeric_members.cc
4738 (numpunct<>::_M_initialize_numpunct): Likewise.
4740 2004-01-12 Mark Mitchell <mark@codesourcery.com>
4742 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
4743 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
4745 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
4746 and remove Cygwin XFAIL.
4747 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
4748 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
4749 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
4750 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
4752 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4753 * testsuite/27_io/objects/char/7.cc: Likewise.
4754 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
4755 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
4756 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
4758 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
4760 * include/std/std_complex.h (std::complex<>::real): Return a
4761 reference. Add non-const overload.
4762 (std::complex<>::real): Likewise.
4763 (std::real): Likewise.
4764 (std::imag): Likewise.
4765 (std::operator+): Tidy.
4766 (std::operator-): Likewise.
4767 (std::operator*): Likewise.
4768 (std::operator/): Likewise.
4769 (std::operator>>): Likewise.
4771 2004-01-11 Paolo Carlini <pcarlini@suse.de>
4774 * include/bits/fstream.tcc (imbue): Exploit the external
4775 buffer to imbue 'on the fly' a new locale and convert its
4776 remainder with the new codecvt facet.
4777 (underflow): Tweak slightly to deal with this special case.
4778 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
4779 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
4780 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
4781 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
4782 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
4784 2004-01-10 Paolo Carlini <pcarlini@suse.de>
4786 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
4789 2004-01-10 Paolo Carlini <pcarlini@suse.de>
4792 * include/bits/locale_classes.h (class locale): Fix category
4794 * testsuite/22_locale/locale/13630.cc: Add.
4796 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
4798 * include/bits/locale_facets.h: Make a name really dependent. This
4799 will be needed when Core Issue 224 is implemented.
4801 2004-01-09 Paolo Carlini <pcarlini@suse.de>
4803 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
4804 * testsuite/performance/allocator_thread.cc: Likewise.
4806 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
4808 * crossconfig.m4: Add LFS, io bits to linux cross config.
4809 * acconfig.h: Remove obsolete bits, reorder.
4810 * config.h.in: Regenerate.
4814 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
4816 * include/bits/stl_list.h:
4817 * include/bits/list.tc:
4819 Performance enhancements for destructor, push_front(),
4820 push_back(), pop_front(), pop_back(), sort()
4821 Eliminated static_casts where possible.
4822 Moved code out of header files into new src/list.cc
4823 implementation file for library where possible.
4824 Remove inheritance from iterator class and create separate
4825 classes for non-constant and constant iterators.
4826 * include/bits/stl_tree.h (_Rb_tree class):
4828 Only erase contents in destructor.
4829 Eliminate unnecessary initialization in assignment operator.
4830 Optimize for the nominal case by not checking whether
4831 container is empty in clear().
4832 Re-order test in _M_insert() to improve performance.
4833 Move initialization of new node's left & right pointers to
4834 src/tree.cc to where new node's colour is initialized
4835 and to reduce the amount of inline code.
4836 Use _M_leftmost() and _M_end() to improve readability where
4838 Create separate classes for non-constant and constant
4839 iterators to clarify code, avoid extra template parameters and
4840 casting away constness.
4842 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
4844 * src/Makefile.am (sources): Add list.cc, tree.cc.
4845 * src/stl_tree.cc: Move to...
4846 * src/tree.cc: ...here.
4848 * config/linker-map.gnu: Tweaks.
4849 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
4850 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
4852 * bits/stl_vector.h: Column wrap comments.
4854 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
4856 (re-open) PR libstdc++/12658
4857 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
4858 (locale::global): Likewise.
4860 2004-01-07 Paolo Carlini <pcarlini@suse.de>
4862 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
4863 Remove redundant #include.
4864 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
4865 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
4866 re-enable normal testing.
4867 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
4869 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
4870 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
4872 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
4874 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
4876 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
4878 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
4880 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
4882 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
4884 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
4885 More properly, #include <locale>.
4886 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
4887 Remove redundant #include.
4888 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
4889 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
4890 redundant DejaGnu directive.
4891 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
4894 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
4895 Stefan Olsson <stefan@snon.net>
4897 * scripts/check_performance: Use -pthread.
4898 * testsuite/performance/allocator.cc: Tweaks, add list.
4899 * testsuite/performance/allocator_thread.cc: New.
4901 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
4903 * include/bits/locale_facets.h: Document public classes and
4905 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
4908 2004-01-06 Paolo Carlini <pcarlini@suse.de>
4910 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
4911 Remove redundant #includes.
4912 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
4914 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
4916 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
4917 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
4918 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
4919 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
4920 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
4921 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
4922 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
4923 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
4924 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
4925 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
4926 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
4927 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
4928 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
4929 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
4930 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
4932 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
4934 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
4936 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
4938 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
4940 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
4941 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
4942 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
4944 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4946 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
4947 Remove redundant #includes.
4948 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
4950 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
4952 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
4954 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
4956 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
4958 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
4960 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
4962 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
4964 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
4966 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
4968 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
4970 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
4973 2004-01-04 Mark Mitchell <mark@codesourcery.com>
4976 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
4978 * testsuite/27_io/basic_fstream/4.cc: Likewise.
4979 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
4980 * testsuite/27_io/basic_ios/4.cc: Likewise.
4981 * testsuite/27_io/basic_iostream/4.cc: Likewise.
4982 * testsuite/27_io/basic_istream/4.cc: Likewise.
4983 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
4984 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
4985 * testsuite/27_io/basic_ostream/4.cc: Likewise.
4986 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
4987 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
4988 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
4990 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4992 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
4993 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
4994 always use double underscored names.
4995 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
4997 * include/bits/locale_facets.h (struct __numpunct_cache):
4998 Dimension _M_atoms_out and _M_atoms_in one position smaller.
4999 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out