1 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
3 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
4 (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
5 * configure: Regenerated.
6 * testsuite/Makefile.am (CLEANFILES): Add TEST for
7 check-performance executables.
10 * testsuite/Makefile.in: Regenerate.
11 * scripts/create_testsuite_files: Filter thread tests.
13 * testsuite/thread/pthread1.cc: Remove macro conditionals: this
14 file will only be run by thread enabled configurations.
15 * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
16 * testsuite/thread/pthread6.cc: Same.
17 * testsuite/thread/pthread5.cc: Same.
18 * testsuite/thread/pthread4.cc: Same.
19 * testsuite/thread/pthread3.cc: Same.
20 * testsuite/thread/pthread2.cc: Same.
22 * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
23 * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
24 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
25 * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
26 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
27 * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
28 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
29 * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
30 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
32 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
33 Paolo Carlini <pcarlini@suse.de>
36 * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
39 2004-10-06 Paolo Carlini <pcarlini@suse.de>
41 * include/std/std_sstream.h (_M_sync): When the caller is
42 setbuf, don't trust _M_string.capacity() to be the size of
43 the buffer area, use _M_string.size() in this case.
44 * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
45 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
47 * include/bits/sstream.tcc (overflow): Avoid calling string::assign
48 unnecessarily when the current _M_string is empty.
50 2004-10-06 Paolo Carlini <pcarlini@suse.de>
52 * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
53 Avoid iterator postincrement.
56 * include/bits/stl_algo.h: Minor formatting tweaks.
58 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
60 * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
61 Avoid iterator postincrement; fix swapping middle element with
62 itself on odd-length inputs.
64 2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
67 * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
68 options as compile-time constant enums.
69 (__pool_base::_Tune::is_default): New.
70 (__pool_base::_Block_address): New.
71 (__pool_base): Rearrange data members.
72 (__pool::_M_reserve_memory): To _M_reserve_block.
73 (__pool::_M_reclaim_memory): To _M_reclaim_block.
74 (__pool::_Bin_record): Add _Block_address data member.
75 (__pool<false>): Add _M_thread_freelist_initial.
76 (__pool::~__pool): Declare.
77 (__common_pool_policy): Move static data member to...
78 (__common_pool_policy::_S_get_pool): ...here, make static local.
79 (__per_type_pool_policy): Move static data member to...
80 (__per_type_pool_policy::_S_get_pool): ...here, make static local.
81 (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
82 Remove static member definitions. Use define for __default_policy.
83 * src/mt_allocator.cc: Same.
84 * config/linker-map.gnu: Don't export _S_get_pool. Renames.
85 * testsuite/ext/new_allocator: New.
86 * testsuite/ext/new_allocator/instantiate.cc: New.
87 * testsuite/ext/new_allocator/check_new.cc: New.
88 * testsuite/ext/new_allocator/deallocate_global.cc: New.
89 * testsuite/ext/new_allocator/deallocate_local.cc: New.
90 * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
92 * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
93 * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
94 * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
95 * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
96 * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
97 * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
98 * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
99 * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
100 * testsuite/ext/mt_allocator/deallocate.cc: New.
101 * testsuite/ext/malloc_allocator/deallocate.cc: New.
102 * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
103 * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
105 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
107 * configure.host (abi_baseline_pair): Define for s390-*-linux* and
109 * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
110 * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
112 2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
114 * include/bits/stl_algobase.h (iter_swap): delegate to swap via
115 __iter_swap when iterator's value_types are equal.
116 (struct __iter_swap): New.
118 2004-10-04 Benjamin Kosnik <bkoz@redhat.com>
120 * configure.ac (libtool_VERSION): To 6:3:0.
121 * configure: Regnerate.
122 * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
124 2004-10-04 Roger Sayle <roger@eyesopen.com>
125 Eric Botcazou <ebotcazou@libertysurf.fr>
128 * config/linker-map.gnu: Synchronize the current list of stub
129 functions from libmath.
131 2004-10-03 Roger Sayle <roger@eyesopen.com>
133 * config/locale/generic/c_locale.cc (__convert_to_v): Use
134 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
135 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
136 to check for presence of strtold.
138 2004-10-03 Paolo Carlini <pcarlini@suse.de>
140 * include/bits/stl_list.h: Trivial formatting fixes.
141 * include/bits/stl_tree.h: Likewise.
143 2004-10-03 Paolo Carlini <pcarlini@suse.de>
145 * include/bits/sstream.tcc (seekpos): In case of success, just
148 2004-10-01 Paolo Carlini <pcarlini@suse.de>
150 * include/bits/sstream.tcc (pbackfail): Implement correctly
151 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
153 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
154 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
155 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
156 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
157 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
159 2004-10-01 Paolo Carlini <pcarlini@suse.de>
161 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
162 conditionals consistently with seekoff.
163 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
164 (_M_sync): Simplify a bit, clean-up comment.
166 2004-09-30 Paolo Carlini <pcarlini@suse.de>
168 PR libstdc++/10975 (DR 453)
169 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
171 * docs/html/ext/howto.html: Add an entry for DR 453.
172 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
173 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
174 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
175 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
176 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
177 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
179 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
180 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
182 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
184 2004-09-29 Paolo Carlini <pcarlini@suse.de>
186 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
187 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
188 (str()): Slightly tweak, protect from pptr() == 0.
189 (_M_update_egptr()): Likewise.
190 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
191 for an empty buffer use __beg instead of _M_string.capacity().
192 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
193 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
195 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
196 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
197 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
198 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
200 2004-09-29 Paolo Carlini <pcarlini@suse.de>
201 Benjamin Kosnik <bkoz@redhat.com>
203 * testsuite/testsuite_io.h (class constraint_buf): New, extended
204 and templatized version of constraint_filebuf; add typedefs for
205 streambuf/stringbuf/filebuf and wchar_t counterparts.
207 2004-09-28 Paolo Carlini <pcarlini@suse.de>
210 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
211 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
212 don't deal with _S_empty_rep.
213 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
214 _M_leak_hard, _M_mutate): Likewise.
215 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
216 * acconfig.h: Add corresponding undef.
217 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
218 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
219 * configure: Regenerate.
220 * config.h.in: Likewise.
222 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
223 Paolo Carlini <pcarlini@suse.de>
225 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
226 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
227 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
228 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
231 2004-09-28 Paolo Carlini <pcarlini@suse.de>
233 * README: Remove obsolete entry about include/c_shadow.
235 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
238 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
240 2004-09-24 Paolo Carlini <pcarlini@suse.de>
242 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
243 rename a variable, move an assignment.
244 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
246 2004-09-24 Paul Brook <paul@codesourcery.com>
248 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
250 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
251 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
252 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
253 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
254 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
255 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
257 2004-09-23 Zack Weinberg <zack@codesourcery.com>
259 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
260 * testsuite/23_containers/map/operators/1_neg.cc
261 * testsuite/23_containers/set/operators/1_neg.cc:
262 Update locations and/or regexps of dg-error markers.
264 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
266 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
267 Add rule to build ${host_builddir}/gthr-tpf.h.
268 * include/Makefile.in: Regenerate.
270 2004-09-23 Paolo Carlini <pcarlini@suse.de>
271 Magnus Fromreide <magfr@lysator.liu.se>
273 * include/bits/boost_concept_check.h (struct _SequenceConcept):
274 Remove wrong requirement, i.e., not present in Table 67.
276 2004-09-21 Paolo Carlini <pcarlini@suse.de>
278 PR libstdc++/12882 (cont)
279 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
280 * configure: Regenerate.
281 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
282 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
283 trivial showmanyc for large files too.
285 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
287 * include/bits/stl_algo.h (remove): Remove too restrictive
290 2004-09-17 Paolo Carlini <pcarlini@suse.de>
292 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
293 as per Nathan's original suggestion.
295 2004-09-17 Paolo Carlini <pcarlini@suse.de>
297 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
299 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
300 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
301 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
303 2004-09-17 Paolo Carlini <pcarlini@suse.de>
304 Andrea Arcangeli <andrea@suse.de>
306 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
307 call unnecessarily sync, that is fflush: the library, since 3.4.0
308 does not use buffered fread/fwrite.
309 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
311 2004-09-15 Mark Mitchell <mark@codesourcery.com>
313 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
315 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
317 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
318 (__cxa_vec_new): Use it.
319 (__cxa_vec_new2): Likewise.
320 (__cxa_vec_new3): Likewise.
321 (__cxa_vec_cdtor): Likewise.
322 (__cxa_vec_cctor): Likeiwse.
323 (__cxa_vec_dtor): Likewise.
324 (__cxa_vec_cleanup): Likewise.
325 (__cxa_vec_delete2): Likewise.
326 (__cxa_vec_delete3): Likewise.
327 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
328 (__cxa_vec_new2): Likewise.
329 (__cxa_vec_new3): Likewise.
330 (__cxa_vec_cdtor): Likewise.
331 (__cxa_vec_cctor): Likeiwse.
332 (__cxa_vec_dtor): Likewise.
333 (__cxa_vec_cleanup): Likewise.
334 (__cxa_vec_delete2): Likewise.
335 (__cxa_vec_delete3): Likewise.
336 (__aeabi_vec_ctor_nocookie_nodtor): New function.
337 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
338 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
339 (__aeabi_vec_new_cookie_noctor): Likewise.
340 (__aeabi_vec_new_nocookie): Likewise.
341 (__aeabi_vec_new_cookie_nodtor): Likewise.
342 (__aeabi_vec_new_cookie): Likewise.
343 (__aeabi_vec_dtor): Likewise.
344 (__aeabi_vec_dtor_cookie): Likewise.
345 (__aeabi_vec_delete): Likewise.
346 (__aeabi_vec_delete3): Likewise.
347 (__aeabi_vec_delete3_nodtor): Likewise.
348 (__aeabi_atexit): Likewise.
350 2004-09-14 Nathan Myers <ncm@cantrip.org>
352 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
353 for 11722: copy can replace move; the common case is __avail == 0.
355 2004-09-14 Paolo Carlini <pcarlini@suse.de>
357 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
358 to __is_scalar, more clear and consistent with "tr1" naming.
359 * include/bits/stl_algobase.h: Update consistently throughout.
361 2004-09-13 Paolo Carlini <pcarlini@suse.de>
364 * include/std/std_fstream.h (xsgetn): Declare only.
365 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
366 always_noconv() case: when __n > __buflen, copy the available
367 buffer and issue a direct read.
368 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
370 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
373 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
375 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
376 libstdc++_maybe_build_wrapper instead of using local code.
378 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
380 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
382 2004-09-03 Jan Beulich <jbeulich@novell.com>
384 * crossconfig.m4: Add NetWare as a target.
385 * configure: Regenerate.
387 2004-09-02 Mark Mitchell <mark@codesourcery.com>
389 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
392 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
393 Simon Richter <Simon.Richter@hogyros.de>
396 * include/bits/istream.tcc: Add extern template for iostream
397 char and wchar_t instantiations.
399 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
400 Leland Wang <llwang@infor.org>
403 * include/ext/ropeimpl.h (rope::_S_compare): Use
404 _Rope_constants::_S_leaf.
406 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
409 * include/Makefile.am (ext_headers): Remove demangle.h.
410 * include/Makefile.in: Regenerate.
411 * include/ext/demangle.h: Remove.
413 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
416 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
418 (__pool): New, specialize.
419 (__common_pool): New, static bits here.
420 (__per_type_pool): New, and here.
421 (__mt_alloc_base): New.
422 (__mt_alloc): Add template parameter, inherit from it.
423 * src/allocator.cc: Split this...
424 * src/allocator-inst.cc: And this...
425 * src/pool_allocator.cc: ...into this.
426 * src/mt_allocator.cc: ... and this. Add definitions for
428 * src/Makefile.am (sources): Split allocator.cc to
429 pool_allocator.cc and mt_allocator.cc.
430 * src/Makefile.in: Regenerate.
431 * config/linker-map.gnu: Add symbols.
432 * docs/html/ext/mt_allocator.html: Document new design.
433 * testsuite/ext/mt_allocator/tune-1.cc: New.
434 * testsuite/ext/mt_allocator/tune-2.cc: New.
435 * testsuite/ext/mt_allocator/tune-3.cc: New.
436 * testsuite/ext/mt_allocator/tune-4.cc: New.
438 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
439 * testsuite/ext/allocators.cc: Use check_new, split into...
440 * testsuite/ext/mt_allocator/check_new.cc: this.
441 * testsuite/ext/pool_allocator/check_new.cc: this.
442 * testsuite/ext/malloc_allocator/check_new.cc: this.
443 * testsuite/ext/debug_allocator/check_new.cc: this.
444 * testsuite/ext/mt_allocator/instantiate.cc: this.
445 * testsuite/ext/pool_allocator/instantiate.cc: this.
446 * testsuite/ext/malloc_allocator/instantiate.cc: this.
447 * testsuite/ext/debug_allocator/instantiate.cc: this.
449 2004-08-30 Phil Edwards <phil@codesourcery.com>
451 * docs/html/install.html: Update locales list (from Paolo).
452 Remove other redundant information and point to the GCC install
455 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
457 * include/ext/pool_allocator.h: Rename __pool_base to
459 * src/allocator.cc: Same.
460 * config/linker-map.gnu: Same.
462 2004-08-30 Paolo Carlini <pcarlini@suse.de>
463 Kenneth C. Schalk <ken@xorian.net>
466 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
467 Check the return value of fclose/sync, loop on EINTR.
468 (__basic_file<char>::sys_open): Likewise, for sync.
470 2004-08-29 Paolo Carlini <pcarlini@suse.de>
472 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
473 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
474 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
475 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
476 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
478 2004-08-27 Jason Merrill <jason@redhat.com>
481 * libsupc++/guard.cc (static_mutex): Internal class implementing a
482 recursive mutex which controls initialization of local statics.
483 (__gnu_cxx::recursive_init): New exception class.
484 (__cxa_guard_acquire): Deal with locking and recursion detection.
485 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
487 2004-08-27 Matthias Klose <doko@debian.org>
489 * configure.host: For mips*-*-linux* update cpu_include_dir
490 after atomicity_dir is set.
492 2004-08-27 Matthias Klose <doko@debian.org>
494 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
495 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
496 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
499 2004-08-27 Paolo Carlini <pcarlini@suse.de>
501 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
502 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
503 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
504 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
505 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
507 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
509 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
510 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
511 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
512 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
514 2004-08-25 Paolo Carlini <pcarlini@suse.de>
516 PR libstdc++/17038 (partial)
517 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
519 * include/bits/locale_facets.h (class __timepunct): Add FIXME
520 comment about _M_put.
521 * config/locale/generic/time_members.cc (_M_put): Always null
523 * config/locale/gnu/time_members.cc (_M_put): Likewise.
524 * testsuite/22_locale/time_put/put/char/17038.cc: New.
525 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
527 2004-08-24 Paolo Carlini <pcarlini@suse.de>
529 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
530 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
531 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
532 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
533 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
534 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
536 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
538 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
540 2004-08-22 Matthias Klose <doko@debian.org>
542 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
543 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
545 2004-08-23 Paolo Carlini <pcarlini@suse.de>
547 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
548 * aclocal.m4: Regenerate with automake-1.9.1.
549 * configure: Regenerate.
550 * Makefile.in: Likewise.
551 * include/Makefile.in: Likewise.
552 * libmath/Makefile.in: Likewise.
553 * libsupc++/Makefile.in: Likewise.
554 * po/Makefile.in: Likewise.
555 * src/Makefile.in: Likewise.
556 * testsuite/Makefile.in: Likewise.
558 2004-08-22 Paolo Carlini <pcarlini@suse.de>
560 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
561 to a signed type, long according to the resolution of DR 359.
562 * testsuite/22_locale/num_put/put/char/9.cc: New.
563 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
565 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
566 Simplify a bit: no need to clear showpos.
568 2004-08-21 Paolo Carlini <pcarlini@suse.de>
570 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
573 2004-08-21 Paolo Carlini <pcarlini@suse.de>
575 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
576 wchar_t type for the fill argument; minor formatting tweaks.
577 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
578 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
579 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
580 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
581 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
582 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
584 2004-08-21 Paolo Carlini <pcarlini@suse.de>
586 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
587 with _M_word != _M_local_word two times, redundantly.
589 2004-08-20 Jason Merrill <jason@redhat.com>
591 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
592 _GLIBCXX_ to #pragma lines.
593 * include/Makefile.in: Update.
595 2004-08-20 Paolo Carlini <pcarlini@suse.de>
597 PR libstdc++/7219 (continued)
598 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
600 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
601 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
603 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
605 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
607 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
608 barrier to locking asm.
610 2004-08-20 Paolo Carlini <pcarlini@suse.de>
612 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
613 actually the warning is a front-end bug (c++/17120).
615 2004-08-20 Matthias Klose <doko@debian.org>
617 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
619 2004-08-20 Paolo Carlini <pcarlini@suse.de>
621 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
622 used as truth value warning.
624 2004-08-20 Paolo Carlini <pcarlini@suse.de>
626 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
629 2004-08-20 Paolo Carlini <pcarlini@suse.de>
631 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
633 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
635 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
637 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
639 2004-08-19 Paolo Carlini <pcarlini@suse.de>
641 * testsuite/performance/20_util/allocator/insert.cc: For std::map
642 instantiate the allocator for a correct pair type.
643 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
644 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
645 * testsuite/performance/20_util/allocator/producer_consumer.cc:
648 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
649 minor formatting fixes.
650 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
652 2004-08-19 Paolo Carlini <pcarlini@suse.de>
654 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
656 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
657 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
658 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
659 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
660 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
661 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
662 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
664 2004-08-19 Paolo Carlini <pcarlini@suse.de>
666 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
668 2004-08-18 Matthias Klose <doko@debian.org>
670 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
671 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
672 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
674 2004-08-17 Paolo Carlini <pcarlini@suse.de>
676 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
678 2004-08-17 Paolo Carlini <pcarlini@suse.de>
680 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
682 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
684 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
686 2004-08-16 Paolo Carlini <pcarlini@suse.de>
688 * include/bits/indirect_array.h: Trivial formatting fixes.
689 * include/bits/valarray_after.h: Likewise.
690 * include/bits/valarray_array.h: Likewise.
691 * src/valarray-inst.cc: Likewise.
693 2004-08-15 Paolo Carlini <pcarlini@suse.de>
695 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
696 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
697 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
699 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
700 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
701 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
702 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
703 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
705 2004-08-15 Paolo Carlini <pcarlini@suse.de>
707 * include/bits/deque.tcc: Trivial formatting fixes.
709 2004-08-15 Paolo Carlini <pcarlini@suse.de>
711 * include/bits/deque.tcc: Trivial formatting fixes.
713 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
714 Remove unneded typedef.
716 * include/bits/locale_facets.tcc: Very minor tweaks.
718 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
719 type for the fill argument.
720 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
721 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
722 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
723 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
724 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
725 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
726 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
727 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
729 2004-08-13 Paolo Carlini <pcarlini@suse.de>
731 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
732 memmove is not needed, memcpy suffices.
734 2004-08-13 Paolo Carlini <pcarlini@suse.de>
736 * include/std/std_fstream.h (class basic_ifstream,
737 class basic_ofstream, class basic_fstream): Add const overloads
738 of is_open, as per DR 365 [WP].
739 * docs/html/ext/howto.html: Add an entry for DR 365.
741 2004-08-12 Paolo Carlini <pcarlini@suse.de>
743 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
745 2004-08-12 Paolo Carlini <pcarlini@suse.de>
748 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
749 to the returned value, reorganize a bit.
750 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
751 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
753 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
754 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
755 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
756 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
758 2004-08-12 Paul Brook <paul@codesourcery.com>
760 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
761 _GLIBCXX_CXA_VEC_CTOR_RETURN.
762 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
763 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
764 __cxa_vec_ctor_return.
765 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
766 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
768 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
770 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
771 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
772 src/Makefile.in, testsuite/Makefile.in: Regenerate
774 2004-08-12 Jan Beulich <jbeulich@novell.com>
776 * config/locale/generic/ctype_members.cc
777 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
778 initializer for return value, as that is invalid for enumerated types.
779 * config/locale/gnu/ctype_members.cc
780 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
782 2004-08-11 Paolo Carlini <pcarlini@suse.de>
784 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
786 2004-08-11 Paolo Carlini <pcarlini@suse.de>
788 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
790 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
791 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
792 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
793 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
794 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
795 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
796 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
797 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
798 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
799 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
800 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
801 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
802 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
803 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
804 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
805 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
806 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
807 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
808 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
809 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
810 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
812 2004-08-11 Paolo Carlini <pcarlini@suse.de>
813 Petur Runolfsson <peturr02@ru.is>
816 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
817 standard streams are constructed.
818 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
820 2004-08-09 Paolo Carlini <pcarlini@suse.de>
822 * include/bits/stl_bvector.h: Trivial formatting fixes.
824 2004-08-09 Paolo Carlini <pcarlini@suse.de>
826 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
828 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
829 Paolo Carlini <pcarlini@suse.de>
831 * src/debug.cc (_Error_formatter::_M_print_string): In order
832 to print individual words from __string, _M_format_word can't
833 be called since may be just sprintf, thus ignoring completely
834 __n: instead, use memmove and append '\0' by hand.
836 2004-08-07 Paolo Carlini <pcarlini@suse.de>
838 * config/locale/generic/c_locale.h (__convert_from_v): Don't
839 use a default for __prec, assume __prec >= 0 and simplify.
840 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
841 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
842 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
844 2004-08-04 Phil Edwards <phil@codesourcery.com>
846 * docs/html/configopts.html: Emphasize that options change.
847 * docs/html/17_intro/configury.html: Update links.
849 2004-08-03 Paolo Carlini <pcarlini@suse.de>
851 * include/bits/list.tcc: Trivial formatting fixes.
853 2004-08-03 Mark Mitchell <mark@codesourcery.com>
855 * libsupc++/new_op.cc: Update comments.
856 * libsupc++/del_op.cc: Likewise.
858 2004-08-02 Mark Mitchell <mark@codesourcery.com>
860 * libsupc++/cxxabi.h: Make all declarations have default
862 * libsupc++/exception: Likewise.
863 * libsupc++/new: Likewise.
864 * libsupc++/typeinfo: Likewise.
865 * libsupc++/unwind-cxx.h: Likewise.
866 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
867 the __cxxabiv1 namespace.
868 (__cxa_free_exception): Likewise.
869 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
870 (__cxa_bad_typeid): Likewise.
871 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
872 (__cxa_end_catch): Likewise.
873 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
874 (__cxa_get_globals): Likewise.
875 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
876 (__cxa_rethrow): Likewise.
877 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
878 * libsupc++/eh_type.cc: Include <cxxabi.h>.
880 * Makefile.am (hosted_source): Add libmath and testsuite.
881 (SUBDIRS): Remove them.
882 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
883 on arm*-*-symbianelf*.
884 * crossconfig.m4: Add arm*-*-symbianelf* support.
885 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
886 when freestanding. Do not bring names into std:: namespace with
887 "using" when freestanding. Declare required functions and macros
889 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
891 * libsupc++/del_op.cc: Declare "free" only when freestanding.
892 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
893 (malloc): Declare when freestanding.
896 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
898 (__cxa_free_exception): Likewise for free.
899 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
900 * libsupc++/pure.cc (writestr): Define to nothing when
902 * libsupc++/vterminate.cc: Do not define anything when
904 * Makefile.in: Regenerated.
905 * aclocal.m4: Likewise.
906 * configure: Likewise.
907 * include/Makefile.in: Likewise.
908 * libmath/Makefile.in: Likewise.
909 * libsupc++/Makefile.in: Likewise.
910 * po/Makefile.in: Likewise.
911 * src/Makefile.in: Likewise.
912 * testsuite/Makefile.in: Likewise.
914 2004-08-01 Matt Austern <austern@apple.com>
917 * include/bits/stl_list.h (_M_create_node): Remove unused
918 zero-argument version.
919 * include/ext/slist (_M_create_node): Pass two arguments to
920 allocator's construct() member function.
921 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
922 * testsuite/23_containers/list/explicit_instantiation.cc: New.
923 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
924 * testsuite/23_containers/map/explicit_instantiation.cc: New.
925 * testsuite/23_containers/set/explicit_instantiation.cc: New.
926 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
927 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
928 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
929 * testsuite/ext/slist_explicit_instantiation.cc: New.
931 2004-07-30 Paolo Carlini <pcarlini@suse.de>
933 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
934 num_get<>::_M_extract_int): In the main parsing loop delay the
935 life of __q to the actual use point.
937 2004-07-29 Paolo Carlini <pcarlini@suse.de>
940 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
941 Don't clip the precision passed down to __convert_from_v:
942 22.2.2.2.2 nowhere says so.
943 * testsuite/22_locale/num_put/put/char/14220.cc: New.
944 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
946 2004-07-29 Paolo Carlini <pcarlini@suse.de>
948 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
950 2004-07-29 Paolo Carlini <pcarlini@suse.de>
951 Petur Runolfsson <peturr02@ru.is>
953 PR libstdc++/12658 (continued)
954 * src/locale_init.cc (locale::locale, locale::global): Use
955 a single locale_mutex instead of two separate mutexes.
957 2004-07-29 Paolo Carlini <pcarlini@suse.de>
960 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
962 * testsuite/23_containers/map/insert/16813.cc: New.
964 2004-07-29 Phil Edwards <phil@codesourcery.com>
966 * docs/html/faq/index.html: Update version references. Make
967 clear that code from SGI has diverged greatly. Remove references
968 to library snapshots and what's-new sections.
969 * docs/html/faq/index.txt: Regenerate.
971 2004-07-28 Matt Austern <austern@apple.com>
973 * include/bits/stl_construct.h (_Destroy): New three-argument
974 overload that takes an allocator argument. Another inline
975 three-argument overload that takes std::allocator and dispatches
976 to the two-argument version.
977 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
978 Change return type to void to match uninitialized_fill_n.
979 (__uninitialized_copy_a_): New function. Like uninitialized_copy
980 except that it takes an allocator and uses it for construct and
981 destroy. If the allocator is std::allocator, dispatches to
983 (__uninitialized_fill_a): Likewise.
984 (__uninitialized_fill_n_a): Likewise.
985 (__uninitialized_copy_copy): Give it an allocator argument.
986 (__uninitialized_fill_copy): Likewise.
987 (__uninitialized_copy_fill): Likewise.
988 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
989 and stl_uninitialized.h. Replace use of single-argument _Construct
990 and _Destroy with use of allocator's construct and destroy methods.
991 * include/bits/list.tcc: Likewise.
992 * include/bits/stl_deque.h: Likewise.
993 * include/bits/stl_list.h: Likewise.
994 * include/bits/stl_tree.h: Likewise.
995 * include/bits/stl_vector.h: Likewise.
996 * include/bits/vector.tcc: Likewise.
997 * include/ext/hashtable.h: Use rebind so that allocator_type
998 has correct type for a container's allocator. Replace use of
999 single-argument _Construct and _Destroy with use of allocator's
1000 construct and destroy methods.
1001 * include/ext/memory (__uninitialized_copy_n_a): New function.
1002 Like uninitialized_copy_n except that it takes an extra parameter,
1003 an allocator, and uses it for construct and destroy operations.
1004 * include/ext/rope: Use new forms defined in stl_construct.h,
1005 stl_uninitialized.h, and ext/memory. Replace use of single-argument
1006 _Construct and _Destroy with allocator construct and destroy methods.
1007 * include/ext/ropeimpl.h: Likewise.
1008 * include/ext/slist.h: Likewise.
1009 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
1010 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
1011 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
1012 * testsuite/23_containers/list/check_construct_destroy.cc: New.
1013 * testsuite/23_containers/set/check_construct_destroy.cc: New.
1014 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
1015 * testsuite/ext/hash_check_construct_destroy.cc: New.
1016 * testsuite/ext/slist_check_construct_destroy.cc: New.
1018 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
1020 2003-10-01 Eric Christopher <echristo@redhat.com>
1021 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
1023 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1024 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
1026 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
1029 * include/bits/locale_facets.tcc: Fix for -Werror.
1031 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
1033 * docs/html/debug.html: Say debug mode only available since 3.4.0.
1035 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
1037 * docs/doxygen/mainpage.html: Clarify links.
1038 * docs/doxygen/stdheader.cc: Add files.
1039 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
1040 * docs/doxygen/user.cfg.in: New options, wrap.
1042 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
1044 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
1046 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
1049 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
1051 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
1054 * scripts/create_testsuite_files: Pass -print to find.
1056 2004-07-15 Paolo Carlini <pcarlini@suse.de>
1058 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
1059 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
1061 2004-07-15 Jakub Jelinek <jakub@redhat.com>
1064 * acinclude.m4 (glibcxx_shared_libgcc): Correct
1065 glibcxx_shared_libgcc test for multilibs.
1066 * configure: Rebuilt.
1068 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1071 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
1072 the signature to return void, as per 20.4.4.3.
1073 * include/bits/stl_vector.h (vector::vector(size_type,
1074 const value_type&, const allocator_type&), vector::vector(size_type),
1075 vector::_M_initialize_dispatch): Adjust callers.
1076 * include/bits/vector.tcc (vector<>::_M_fill_assign,
1077 vector<>::_M_fill_insert): Likewise.
1078 * testsuite/20_util/memory/16505.cc: New.
1080 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1082 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
1083 12658_thread-2.cc: Use __gnu_test::try_named_locale.
1085 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1087 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
1088 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
1089 (__mt_alloc::_S_set_options): Same.
1092 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1094 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
1096 * configure: Regenerated.
1098 2004-07-13 Paolo Carlini <pcarlini@suse.de>
1100 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
1101 to 12658_thread-1.cc and xfail.
1102 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
1103 simpler version of 12658_thread-1.cc, still failing on 3_3 and
1104 not failing on 3_4/mainline - both on single processor and
1105 multiprocessor machines.
1107 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
1109 * docs/html/abi.html: Remove non-public qualification.
1111 * include/bits/concurrence.h: Tweak comments.
1113 2004-07-11 Paolo Carlini <pcarlini@suse.de>
1115 Add wchar_t counterparts of the basic_streambbuf<char> tests.
1116 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
1117 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
1119 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
1120 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
1122 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
1123 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
1124 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
1125 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
1126 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
1128 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1130 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
1132 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
1134 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
1135 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
1137 2004-07-11 Phil Edwards <phil@codesourcery.com>
1139 * acinclude.m4: Cosmetic shell syntax fixes.
1140 * configure.ac: Bring comment inline with reality.
1141 * configure.host: Both of the above. Move 'arm' case to right
1142 place in host_cpu switch.
1143 * aclocal.m4, configure: Regenerate.
1145 2004-07-09 Paolo Carlini <pcarlini@suse.de>
1147 Add wchar_t counterparts of the basic_stringbuf<char> tests.
1148 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
1149 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
1150 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
1151 3599.cc, 9988.cc: Likewise.
1152 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
1154 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
1156 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
1158 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1160 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1161 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1162 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1163 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
1165 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1166 9404-1.cc: Likewise.
1167 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1168 9404-2.cc: Likewise.
1169 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1171 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1172 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1174 2004-07-08 Paolo Carlini <pcarlini@suse.de>
1176 * include/bits/gslice.h: Trivial formatting fixes.
1177 * include/bits/gslice_array.h: Likewise.
1178 * include/bits/indirect_array.h: Likewise.
1179 * include/bits/mask_array.h: Likewise.
1180 * include/bits/slice_array.h: Likewise.
1181 * include/bits/valarray_after.h: Likewise.
1182 * include/bits/valarray_array.h: Likewise.
1183 * include/bits/valarray_before.h: Likewise.
1184 * include/std/std_valarray.h: Likewise.
1186 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
1189 * include/bits/basic_string.h (basic_string::operator=): Revert.
1191 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1193 * configure.ac (libtool_VERSION): To 6:2:0.
1194 * configure: Regenerated.
1196 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1198 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1201 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1203 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1205 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1208 2004-07-07 Paolo Carlini <pcarlini@suse.de>
1211 * include/bits/sstream.tcc (overflow): When reallocating _M_string
1212 use an exponential grow policy.
1213 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1214 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1216 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
1219 * crossconfig.m4: Add in bits for djgpp.
1220 * configure: Regenerate.
1222 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
1224 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1225 instantiation of set and multiset (functor param given as int).
1227 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1229 * include/bits/basic_string.h: Trivial formatting fixes and/or
1230 const-ification of some variables.
1231 * include/bits/deque.tcc: Likewise.
1232 * include/bits/stl_algobase.h: Likewise.
1233 * include/bits/stl_bvector.h: Likewise.
1234 * include/bits/stl_construct.h: Likewise.
1235 * include/bits/stl_deque.h: Likewise.
1236 * include/bits/stl_pair.h: Likewise.
1237 * include/bits/stl_vector.h: Likewise.
1238 * include/bits/vector.tcc: Likewise.
1240 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1242 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
1243 systems with no COMDAT or weak support.
1244 * testsuite/25_algorithms/copy/2.cc: Likewise.
1245 * testsuite/25_algorithms/copy/3.cc: Likewise.
1246 * testsuite/25_algorithms/copy/4.cc: Likewise.
1248 2004-07-03 Paul Brook <paul@codesourcery.com>
1250 * configure.ac: Set ABI_TWEAKS_SRCDIR.
1251 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
1252 setting atomicity_dir. Override type_cpu for arm based targets.
1253 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1254 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1255 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1256 * libsupc++/vec.cc: Ditto.
1257 * config/cpu/arm/cxxabi_tweaks.h: New file.
1258 * config/cpu/generic/cxxabi_tweaks.h: New file.
1259 * */Makefile.in: Regenerate.
1260 * configure: Regenerate.
1262 2004-07-02 Paolo Carlini <pcarlini@suse.de>
1264 * include/bits/type_traits.h (_Is_normal_iterator): Move...
1265 * include/bits/cpp_type_traits.h: ... here, renamed to
1266 __is_normal_iterator and consistent with the other traits.
1267 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
1268 to the struct __copy_normal and three specializations.
1269 (__copy_backward_output_normal_iterator,
1270 __copy_backward_input_normal_iterator): Likewise, convert to
1271 the struct __copy_backward_normal and three specializations.
1272 (copy, copy_backward): Use the latter.
1273 (__copy_aux, __copy_backward_aux): Very minor tweaks.
1275 2004-07-01 Paolo Carlini <pcarlini@suse.de>
1277 * include/bits/stl_algobase.h (__copy_trivial): Remove.
1278 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1279 __is_trivially_copyable, __are_same and __copy::copy.
1280 (__copy): Rewrite as a class template and two specializations.
1281 (__copy_ni2): Simplify, just call __copy_aux.
1283 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1285 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
1286 for destination value type != source value type.
1288 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
1289 Per Bothner <per@bothner.com>
1290 Mohan Embar <gnustuff@thisiscool.com>
1293 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
1294 (__glibcxx_mutex): Encapsulate mutex init function into type for
1295 threaded configurations without __GTHREAD_MUTEX_INIT.
1296 (lock::lock): Make device member a reference.
1297 (lock::~lock): Same.
1298 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
1300 * src/allocator.cc: Same.
1302 2004-06-30 Brad Spencer <spencer@infointeractive.com>
1304 * include/ext/mt_allocator.h: Handle allocations at static
1305 initialization that happen before _S_options is (automatically)
1306 constructed; set _S_init even if _M_force_new is true.
1308 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1310 * config/linker-map.gnu: Revert new exports.
1312 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1313 Stuart Anderson <anderson@netsweng.com>
1315 * config/linker-map.gnu: Add destructor exports for abstract base
1316 classes to conform to LSB.
1318 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1319 Paolo Carlini <pcarlini@suse.de>
1321 * include/bits/cpp_type_traits.h: Add __is_pointer and
1322 __is_trivially_copyable.
1323 * include/bits/stl_algobase.h (fill, fill_n): Slightly
1324 tweak to use the latter.
1325 (__copy_backward_dispatch): Remove.
1326 (__copy_backward_aux): Rewrite to use __is_pointer and
1327 __is_trivially_copyable and __copy_backward::copy_b.
1328 (__copy_backward): Rewrite as a class template and two
1331 2004-06-30 Paolo Carlini <pcarlini@suse.de>
1333 * testsuite/25_algorithms/copy.cc: Move to...
1334 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
1335 * testsuite/25_algorithms/copy/2.cc: New.
1336 * testsuite/25_algorithms/copy/3.cc: New.
1337 * testsuite/25_algorithms/copy/4.cc: New.
1339 2004-06-29 Paul Brook <paul@codesourcery.com>
1341 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
1342 element size in the cookie.
1344 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1346 * include/bits/cpp_type_traits.h: Move the additions to
1347 namespace __gnu_internal outside of namespace std; trivial
1350 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
1352 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
1353 Revert -Weffc++ changes that defined copy ctory and or assignment
1355 * libsupc++/tinfo.cc (__upcast_result): Same.
1357 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1359 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
1360 the algorithm used to name the categories.
1362 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
1364 * include/Makefile.am: Give a .gch extension to
1365 the PCH files, not only to the directory.
1366 * include/Makefile.in: Regenerate.
1368 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1370 * config/locale/gnu/monetary_members.cc
1371 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
1372 assignments of _M_decimal_point and _M_thousands_sep.
1374 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1376 * docs/html/17_intro/contribute.html: Update some links.
1377 * docs/html/17_intro/porting-howto.html: Likewise.
1378 * docs/html/17_intro/porting-howto.xml: Likewise.
1379 * docs/html/18_support/howto.html: Likewise.
1380 * docs/html/21_strings/howto.html: Likewise.
1381 * docs/html/27_io/howto.html: Likewise.
1382 * docs/html/configopts.html: Likewise.
1383 * docs/html/ext/howto.html: Likewise.
1384 * docs/html/faq/index.html: Likewise.
1385 * docs/html/install.html: Don't mention 2.x compilers.
1387 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1389 * include/ext/rope: Trivial formatting fixes.
1390 * include/ext/ropeimpl.h: Likewise.
1392 2004-06-26 Paolo Carlini <pcarlini@suse.de>
1395 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
1396 availability of strto(u)ll, not used anymore in the iostreams.
1397 * configure: Regenerate.
1399 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1402 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
1404 * configure: Regenerate.
1406 2004-06-25 Paul Brook <paul@codesourcery.com>
1408 * libsupc++/cxxabi.h: Define __ARM_EABI__
1410 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
1412 2004-06-25 Paul Brook <paul@codesourcery.com>
1414 * include/bits/concurrence.h: Still create mutex object when
1417 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1419 * include/bits/stl_algobase.h (fill, fill_n): Revert last
1420 change: actually we need to copy construct an object of type
1421 _Tp, not of type iterator_traits<>::value_type, therefore the
1424 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1426 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
1427 dispatch: use iterator_traits<>::value_type, not _Tp.
1429 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1431 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
1432 * testsuite/25_algorithms/fill/2.cc: Likewise.
1434 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
1435 Paolo Carlini <pcarlini@suse.de>
1437 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
1438 for fill and fill_n, respectively: when copying is cheap, use a
1439 temporary to avoid a memory read in each iteration.
1441 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1443 * testsuite/25_algorithms/fill/1.cc: New.
1444 * testsuite/25_algorithms/fill/2.cc: Likewise.
1446 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1448 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
1449 Remove copy constructor and assignment operator.
1451 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
1453 * include/bits/concurrence.h (__gnu_cxx::lock): New.
1454 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
1455 (__pool_base::_M_get_mutex): New.
1456 * include/bits/allocator.h: Tweak.
1457 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
1458 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
1459 * include/bits/stl_threads.h: Remove.
1460 * include/Makefile.am: Also here.
1461 * include/Makefile.in: Regenerate.
1463 * src/locale_init.cc: Use __gnu_cxx::lock.
1465 * src/allocator.cc: Move all instantiations...
1466 * src/allocator-inst.cc: ...here.
1468 2004-06-23 Andrew Pinski <apinski@apple.com>
1470 * linkage.m4: Remove check for libmx.
1471 * configure: Regenerate.
1473 2004-06-23 Paolo Carlini <pcarlini@suse.de>
1476 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
1477 Don't require the _DefaultConstructibleConcept.
1478 (struct _ForwardIteratorConcept): Require it here.
1480 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
1482 * include/bits/istream.tcc (getline): Make sure arguments passed
1483 to min/max have the same type.
1484 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
1485 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
1487 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
1489 * docs/html/abi.html: Update links.
1491 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1493 * testsuite/26_numerics/complex_inserters_extractors.cc,
1494 complex_value.cc, buggy_complex.cc: Move to...
1495 * testsuite/26_numerics/complex/: ... here.
1496 * testsuite/26_numerics/c99_classification_macros_c++.cc,
1497 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
1498 fabs_inline.cc: Move to...
1499 * testsuite/26_numerics/cmath/: ... here.
1500 * testsuite/26_numerics/binary_closure.cc, slice.cc,
1501 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
1502 valarray_name_lookup.cc, valarray_operators.cc,
1503 valarray_subset_assignment.cc: Move to...
1504 * testsuite/26_numerics/valarray/: ... here (new dir).
1505 * testsuite/26_numerics/sum_diff.cc: Move to...
1506 * testsuite/26_numerics/numeric/: ... here (new dir).
1508 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1510 * include/std/std_istream.h (ignore(streamsize __n = 1,
1511 int_type __delim = traits_type::eof())): Split into...
1512 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1513 int_type __delim)): The first two can be much more simpler
1514 and efficient than the fully general case; also, the last
1515 two can take advantage of the same mechanism already used
1517 * include/bits/istream.tcc (ignore(streamsize __n = 1,
1518 int_type __delim = traits_type::eof()): Remove.
1519 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1520 int_type __delim)): New.
1522 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
1524 * config/linker-map.gnu: Use wildcards for
1525 __basic_file::sys_open(FILE*, _Ios_Openmode).
1527 2004-06-20 Paolo Carlini <pcarlini@suse.de>
1529 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
1531 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1533 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
1534 the alignment requested.
1535 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
1536 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
1537 (__mt_alloc<>::deallocate): Likewise.
1539 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1542 * include/debug/safe_base.h
1543 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
1544 _Safe_sequence_base::operator=): Provide definitions.
1545 * testsuite/23_containers/bitset/cons/16020.cc: New.
1547 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
1549 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
1550 (__pool_base): Remove unused template parameter. Add
1551 protected. Move lock data into __pool_base::_Lock. Remove static
1552 on member functions.
1553 (__pool_base::_M_get_free_list): New.
1554 (__pool_alloc): Move _S_force new here.
1555 * src/allocator.cc: Move out of line __pool_base definitions here.
1556 * config/linker-map.gnu: Export bits from __pool_base.
1558 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1560 * config/locale/gnu/numeric_members.cc
1561 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
1562 assignments of _M_decimal_point and _M_thousands_sep.
1563 * config/locale/gnu/time_members.cc
1564 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
1565 and reformat assignments of date and time fields.
1567 2004-06-16 Paolo Carlini <pcarlini@suse.de>
1569 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
1570 to use _Data_allocate.
1571 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
1572 (rope<>::_S_substring): Likewise.
1573 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
1574 (rope<>::c_str()): Likewise.
1575 (rope<>::replace_with_c_str()): Likewise.
1577 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
1578 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
1580 (_Rope_iterator_base<>::_S_setcache): Likewise.
1581 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
1582 (rope<>::_S_substring): Likewise.
1583 (rope<>::_S_dump): Likewise.
1584 (rope<>::_S_fetch_ptr): Likewise.
1585 (rope<>::_S_compare): Likewise.
1586 (rope<>::replace_with_c_str()): Likewise.
1588 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
1589 * testsuite/ext/rope/2.cc: New.
1591 2004-06-16 Paolo Carlini <pcarlini@suse.de>
1592 Matt Austern <austern@apple.com>
1594 * testsuite/ext/rope/3.cc: New.
1596 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1598 * acinclude.m4: Remove useless multilib configury.
1599 * Makefile.am: Remove useless multilib rules.
1600 * aclocal.m4: Regenerate.
1601 * Makefile.in: Regenerate.
1602 * configure: Regenerate.
1604 2004-06-15 Paolo Carlini <pcarlini@suse.de>
1606 * include/ext/hashtable.h: Trivial formatting fixes.
1607 * include/ext/rb_tree: Likewise.
1609 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1611 * include/ext/hash_map: Trivial formatting fixes.
1612 * include/ext/hash_set: Likewise.
1613 * include/ext/memory: Likewise.
1614 * include/ext/numeric: Likewise.
1616 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
1618 * Makefile.in: Regenerate with automake 1.8.5.
1620 * include/Makefile.in: Same.
1621 * libmath/Makefile.in: Same.
1622 * libsupc++/Makefile.in: Same.
1623 * po/Makefile.in: Same.
1624 * src/Makefile.in: Same.
1625 * testsuite/Makefile.in: Same.
1627 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1629 * include/ext/slist: Trivial formatting fixes.
1631 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1633 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
1634 Don't use the 'magic number' 10 in the computation of __minlen;
1635 never access __name past __minlen; in the loop over __i3, don't
1636 decrease __nmatches and increase __i3 at once, only either of
1639 2004-06-13 Paolo Carlini <pcarlini@suse.de>
1641 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
1642 time_get<>::do_get_date): Use only once _M_extract_via_format,
1643 instead of going through "%X"/"%x" and calling it two times
1646 2004-06-12 Paolo Carlini <pcarlini@suse.de>
1648 * include/ext/algorithm: Trivial formatting fixes.
1649 * include/ext/functional: Likewise.
1650 * include/ext/hash_fun.h: Likewise.
1651 * include/ext/iterator: Likewise.
1653 2004-06-12 Paolo Carlini <pcarlini@suse.de>
1655 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
1656 size_type)): Reimplement using std::search.
1657 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
1659 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
1661 * testsuite/performance/21_strings/string_find.cc: New.
1663 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1665 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
1667 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
1669 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
1670 this function return a value.
1672 2004-06-09 Paolo Carlini <pcarlini@suse.de>
1675 * include/bits/stl_deque.h: Consistently with stl_set.h, define
1676 pointer as allocator's pointer, likewise for reference,
1677 const_pointer, and const_reference.
1678 * include/bits/stl_list.h: Likewise.
1679 * include/bits/stl_map.h: Likewise.
1680 * include/bits/stl_multimap.h: Likewise.
1681 * include/bits/stl_vector.h: Likewise.
1683 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
1685 * crossconfig.m4: Remove signbit, signbitf, signbitl.
1686 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
1687 builtin math functions instead of AC_DEFINE_UNQUOTED.
1688 * configure: Regenerate.
1690 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
1692 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
1693 * docs/doxygen/mainpage.html: Remove links.
1695 2004-06-08 Jason Merrill <jason@redhat.com>
1697 * config/linker-map.gnu: Use wildcards for
1698 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
1700 2004-06-08 Paolo Carlini <pcarlini@suse.de>
1702 * include/ext/pool_allocator.h: Convert to a global free-list,
1703 as per the original SGI/HP design: move the implementation
1704 details to struct __pool_base, from which __pool_alloc derives.
1705 * src/allocator.cc: Instantiate __pool_base.
1707 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
1708 Paolo Carlini <pcarlini@suse.de>
1710 * testsuite/testsuite_performance.h
1711 (resource_counter::allocated_memory): Make it return the right
1712 number of bytes requested by the allocators/application. This is
1713 the sbrk+mmaped memory.
1715 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
1717 * include/std/std_complex.h (log): Tidy.
1719 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
1721 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
1722 * testsuite/testsuite_abi.cc: Same.
1723 * configure.ac (libtool_VERSION): Bump to 6:1:0.
1724 * configure: Regenerate.
1725 * aclocal.m4: Regenerate.
1727 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1729 * include/std/std_complex.h (complex<_Tp>): Properly indent
1731 (complex<>::__rep): New.
1732 (__complex_abs): New. Dispatch to built-ins.
1734 (__complex_arg): New. Dispatch to built-ins.
1736 (__complex_cos): New. Dispatch to built-ins.
1738 (__complex_cosh): New. Dispatch to built-ins.
1740 (__complex_exp): New. Dispatch to built-ins.
1742 (__complex_log): New. Dispatch to built-ins.
1744 (__complex_sin): New. Dispatch to built-ins.
1746 (__complex_sinh): New. Dispatch to built-ins.
1748 (__complex_sqrt): New. Dispatch to built-ins.
1750 (__complex_tan): New. Dispatch to built-ins.
1752 (__complex_tanh): New. Dispatch to built-ins.
1754 (__complex_pow): New. Dispatch to built-ins.
1757 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
1758 Benjamin Kosnik <bkoz@redhat.com>
1761 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
1762 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
1763 * config/io/basic_file_stdio.cc (__basic_file::file): New.
1764 * config/io/basic_file_stdio.h: Define.
1766 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
1769 * docs/html/documentation.html: Update doxygen links for 3.4.0.
1771 2004-05-27 Jan Beulich <jbeulich@novell.com>
1773 * scripts/create_testsuite_files: Tweak.
1775 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
1778 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
1779 bits to do the same thing.
1781 2004-05-24 Paolo Carlini <pcarlini@suse.de>
1783 * include/bits/istream.tcc (ignore): Correctly deal with
1784 n == numeric_limits<streamsize>::max().
1785 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
1787 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
1788 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
1789 __n == numeric_limits<>::min().
1791 * include/bits/istream.tcc: Minor tweaks.
1793 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1795 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1797 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1799 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1801 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1803 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1806 Fixups for -Weffc++.
1807 * include/bits/basic_string.h (basic_string::operator=): Return
1808 pointer to this instead of result of assign. Although redundant,
1809 this doesn't impact resultant codegen.
1811 * include/bits/locale_facets.h (__numpunct_cache): Declare
1812 assignment opxserator and copy constructor private.
1813 (__timepunct_cache): Same.
1814 (__moneypunct_cache): Same.
1815 (collate): Use member initialization list for _M_c_locale_collate.
1816 * config/locale/gnu/messages_members.h: Same.
1817 * config/locale/gnu/time_members.h (__timepunct): Same.
1818 * src/codecvt.cc: Use member initialization list to initialize
1819 _M_c_locale_codecvt.
1820 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
1821 * config/os/gnu-linux/ctype_noninline.h: Same.
1822 * src/locale.cc (_Impl): Same.
1823 * src/locale_init.cc: Same.
1824 * src/localename.cc: Same.
1826 * include/bits/basic_ios.h (basic_ios): Complete member
1827 initialization list.
1828 * include/bits/istream.tcc (basic_istream::sentry): Same.
1829 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
1830 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
1831 _M_pback to member initialization list.
1832 * include/std/std_streambuf.h: Same.
1833 * include/std/std_sstream.h: Same, for _M_mode.
1834 * src/ios.cc (ios_base): Same.
1836 * include/ext/rope: Make derived classes match exception
1838 specifications. Add copy constructors and assignment operators.
1840 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
1841 constructor and assignment operator protected.
1842 (_Safe_iterator_base): Same.
1843 * include/debug/formatter.h (_Error_formatter): Define copy
1844 constructor and assignment operator.
1846 * include/backward/strstream: Declare assignment operator and copy
1847 constructor private.
1849 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1851 * testsuite/testsuite_hooks.h (func_callback): Declare copy
1852 constructor and assignment operator private.
1853 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
1854 exception specifications of base class.
1855 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
1856 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
1857 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1859 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1861 * libsupc++/cxxabi.h: Remove duplicated and useless public and
1862 private keywords in class declarations. Format. Use
1863 stddef.h. Expose declarations to "C" compilation.
1864 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
1865 assignment operator.
1866 (__dyncast_result): Same.
1867 * libsupc++/vec.cc (uncatch_exception): Same, use member
1868 initialization list.
1870 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1872 * testsuite/abi_check.cc: Add unistd.h.
1874 2004-05-22 Paolo Carlini <pcarlini@suse.de>
1877 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
1878 __int_to_char(unsigned long long)): Showpos is not relevant
1880 * testsuite/22_locale/num_put/put/char/15565.cc: New.
1881 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
1883 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
1885 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
1886 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
1887 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1888 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
1889 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
1890 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
1892 2004-05-21 Matthias Klose <doko@debian.org>
1894 * docs/doxygen/run_doxygen: Bump required version.
1896 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
1898 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
1899 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
1901 2004-05-21 Paolo Carlini <pcarlini@suse.de>
1903 * include/bits/istream.tcc (ignore): Remove redundant line.
1904 (readsome): Tidy, closely following 27.6.1.3, p30.
1906 2004-05-20 Paolo Carlini <pcarlini@suse.de>
1908 * include/bits/istream.tcc (operator>>(basic_istream<>&,
1909 basic_string<>&)): Use a temporary buffer, thus avoiding
1910 reallocation for common case.
1911 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1913 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1916 * include/bits/istream.tcc: Const-ification of a few variables.
1918 * include/bits/ostream.tcc: Trivial formatting fixes and
1919 const-ification of some variables.
1921 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
1925 * docs/doxygen/Intro.3: Remove Allocators.3.
1926 Add new extension headers, extension namespace list.
1927 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
1928 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
1929 __gnu_debug::. Remove __policy_ renames.
1930 * docs/doxygen/guide.html: Add dot note.
1931 * docs/doxygen/stdheader.cc: Edit, add files.
1932 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
1934 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
1936 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
1938 2004-05-18 Jan Beulich <jbeulich@novell.com>
1941 * scripts/create_testsuite_files: Also find source files through
1944 2004-05-18 Jan Beulich <jbeulich@novell.com>
1947 * testsuite/lib/libstdc++.exp: Make test files writable.
1949 2004-05-18 Paolo Carlini <pcarlini@suse.de>
1951 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
1954 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
1956 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
1957 allocation loop which removes blocks from the global free list
1958 from O(N) to O(1) when the required blocks are <= the number
1961 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
1963 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
1965 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
1967 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
1968 * testsuite/23_containers/deque/14340.cc: New.
1969 * testsuite/23_containers/list/14340.cc: New.
1970 * testsuite/23_containers/map/14340.cc: New.
1971 * testsuite/23_containers/multimap/14340.cc: New.
1972 * testsuite/23_containers/multiset/14340.cc: New.
1973 * testsuite/23_containers/set/14340.cc: New.
1974 * testsuite/23_containers/vector/14340.cc: New.
1976 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
1979 * include/debug/safe_iterator.h (_Safe_iterator converting
1980 constructor): Only allow declaration to instantiate when the
1981 incoming _Safe_iterator has exactly the right iterator type.
1983 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
1985 * include/bits/boost_concept_check.h: Fix old attribute syntax.
1986 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
1987 to pass concept-checks.
1988 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1989 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1990 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1992 2004-05-16 Paolo Carlini <pcarlini@suse.de>
1994 * include/std/std_bitset.h: Minor formatting fixes.
1996 2004-05-16 Paolo Carlini <pcarlini@suse.de>
1998 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1999 Consistently update __bin._M_free[0].
2000 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2001 __bin._M_free[0] to simplify the while loop (i.e., the number
2002 of iterations becomes known at the outset).
2004 2004-05-15 Paolo Carlini <pcarlini@suse.de>
2006 * include/std/std_bitset.h: Trivial formatting fixes.
2008 2004-05-14 Paolo Carlini <pcarlini@suse.de>
2009 Ivan Godard <igodard@pacbell.net>
2012 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
2013 * testsuite/23_containers/bitset/ext/15361.cc: New.
2015 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2018 * crossconfig.m4: Add C99 math bits for linux crosses.
2019 * configure: Regenerate.
2021 2004-05-13 Simon Marshall <simon.marshall@misys.com>
2022 Benjamin Kosnik <bkoz@redhat.com>
2025 * include/bits/locale_facets.h: Fix for -fno-for-scope.
2026 * include/debug/safe_sequence.h: Same.
2027 * include/debug/safe_iterator.tcc: Same.
2028 * src/debug.cc: Same.
2029 * src/locale.cc: Same.
2030 * src/locale_init.cc: Same.
2031 * src/localename.cc: Same.
2032 * config/locale/gnu/ctype_members.cc: Same.
2033 * config/locale/gnu/numeric_members.cc: Same.
2034 * testsuite/testsuite_abi.cc: Same.
2035 * testsuite/testsuite_hooks.cc: Same.
2037 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
2039 * docs/html/abi.html: Document effect of -fabi-version on value
2040 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
2043 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2046 * docs/html/faq/index.html: Update docs for libsupc++ usage.
2048 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2051 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
2053 (_GLIBCXX_mutex_address): Same.
2054 (_GLIBCXX_once): Same.
2055 (_GLIBCXX_mutex_init): Same.
2056 (_GLIBCXX_mutex_address_init): Same.
2058 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2060 * docs/html/abi.html: New.
2061 * docs/html/abi.txt: Remove.
2062 * docs/html/documentation.html: Add link.
2063 * testsuite/Makefile.am: Add files.
2064 * testsuite/Makefile.in: Regenerated.
2065 * testsuite/abi_check.cc: Move and modify code into...
2066 * testsuite/testsuite_abi.cc: Add.
2067 * testsuite/testsuite_abi.h: Add.
2069 * docs/html/17_intro/TODO: Update.
2070 * include/bits/stl_pair.h: Format.
2072 2004-05-06 Matthias Klose <doko@debian.org>
2074 * include/backward/iterator.h: Add GPL copyright info,
2075 with exception clause.
2076 * include/bits/boost_concept_check.h: Likewise.
2078 * libsupc++/tinfo.h: Likewise.
2079 * po/string_literals.cc: Likewise.
2081 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
2083 * acinclude.m4: Replace -W with more speaking -Wextra.
2084 * configure: Rebuilt.
2086 2004-05-03 Paolo Carlini <pcarlini@suse.de>
2088 Optimize locale::_M_impl->_M_names for the most common cases:
2089 !_M_names[0] means unnamed; !_M_names[1] means all the categories
2090 the same name (_M_names[0] && _M_names[1] means that the full set
2091 of _M_names must be processed, the general case).
2092 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
2093 Tweak, saving work when !_M_names[1].
2094 (locale::locale(const locale&, _Facet*): Simplify: now just setting
2095 _M_names[0] = 0 means unnamed.
2096 * src/locale.cc (locale::operator==): Deal first with the common,
2097 easy cases, otherwise fall back to locale::name().
2098 (locale::name()): Tweak, if !_M_names[0] just return "*".
2099 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
2100 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
2101 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
2102 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
2103 Simplify when !std::strchr, just updating _M_names[0]; clean up.
2104 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
2105 for the general case (full set of names), then do the usual work;
2108 * src/locale.cc (locale::name()): Reserve space in __ret.
2109 * src/locale_init.cc (locale::global(const locale&)): Save
2110 the name in a temporary.
2111 * src/localename.cc (locale::locale(const char*)): Reserve space
2114 2004-04-29 Paolo Carlini <pcarlini@suse.de>
2116 * src/locale.cc (locale::operator==): Always avoid constructing
2117 locale::name(), directly compare pairs of _M_names.
2119 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2121 * include/bits/istream.tcc: Fix comment.
2123 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2125 * include/bits/stl_vector.h: Trivial formatting fixes.
2126 * include/bits/vector.tcc: Likewise.
2128 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2130 PR libstdc++/15002 (continued again)
2131 * include/bits/istream.tcc (getline(basic_istream<>&,
2132 basic_string<>&, _CharT)): Use a temporary buffer, thus
2133 avoiding reallocation for common case.
2135 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2136 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
2137 of temporary buffer to a power of two.
2139 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
2141 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2143 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2145 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2147 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2149 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2150 Petur Runolfsson <peturr02@ru.is>
2152 PR libstdc++/15002 (continued)
2153 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
2154 streamsize, char_type)): Use traits::find/copy in a loop to speed
2155 up greatly the function in the common case (I/O buffer size >> 1).
2157 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2159 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2161 * include/bits/istream.tcc (getline(basic_istream<>&,
2162 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2163 of sbumpc(), consistently with the other functions, thus also
2164 dealing correctly with the case of exceeded string::max_size().
2166 2004-04-24 Matthias Klose <doko@debian.org>
2168 Jonathan Wakely <cow@compsoc.man.ac.uk>
2169 * docs/html/configopts.html: Fix reference to allocator config option.
2171 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
2173 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2174 * configure: Regenerate.
2176 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
2178 PR libstdc++/15047, libstdc++/11610
2179 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2180 (libstdc++_init): Don't pass outdir to v3-copy-files.
2182 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2184 * include/bits/deque.tcc: Trivial formatting fixes.
2185 * include/bits/stl_deque.h: Likewise.
2186 * include/bits/stl_list.h: Likewise.
2187 * include/bits/stl_tree.h: Likewise.
2189 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2190 Andrew Pinski <pinskia@physics.uc.edu>
2192 * include/bits/basic_string.tcc (_M_mutate): Don't compute
2193 __src unnecessarily.
2195 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
2197 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2198 Clarify assertion, set test variable to false before assert.
2199 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2200 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2201 * testsuite/27_io/ios_base/storage/2.cc: Same.
2203 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2205 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2206 * testsuite/27_io/fpos/14320-3.cc: Same.
2208 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2209 * testsuite/27_io/fpos/1.cc: Same.
2210 * testsuite/27_io/basic_stringstream/2.cc: Same.
2211 * testsuite/27_io/basic_stringbuf/4.cc: Same.
2212 * testsuite/27_io/basic_stringbuf/1.cc: Same.
2213 * testsuite/27_io/basic_stringbuf/2.cc: Same.
2214 * testsuite/27_io/basic_streambuf/2.cc: Same.
2215 * testsuite/27_io/basic_ostringstream/2.cc: Same.
2216 * testsuite/27_io/basic_ostream/2.cc: Same.
2217 * testsuite/27_io/basic_ofstream/2.cc: Same.
2218 * testsuite/27_io/basic_istringstream/2.cc: Same.
2219 * testsuite/27_io/basic_istream/2.cc: Same.
2220 * testsuite/27_io/basic_iostream/2.cc: Same.
2221 * testsuite/27_io/basic_ios/2.cc: Same.
2222 * testsuite/27_io/basic_ifstream/2.cc: Same.
2223 * testsuite/27_io/basic_fstream/2.cc: Same.
2224 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2226 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2227 unsigned against zero.
2228 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2229 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2231 * testsuite/18_support/new_delete_placement.cc: Initialize
2232 variables before first use.
2233 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
2234 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
2235 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
2236 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
2238 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
2239 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
2241 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
2242 * testsuite/27_io/types/2.cc: Same.
2244 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2246 * testsuite/27_io/fpos/14775.cc: Same.
2248 2004-04-19 Paolo Carlini <pcarlini@suse.de>
2250 PR libstdc++/15002 (partial)
2251 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2252 Special case __n2 == 1, not calling traits_type::assign/copy.
2254 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
2256 * include/bits/stl_bvector.h: Use _M_impl._M_start.
2258 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
2260 * include/bits/c++config (_GLIBCXX_STD): New.
2261 * src/list.cc: Use it.
2262 * include/std/std_bitset.h: Same.
2263 * include/bits/vector.tcc: Same.
2264 * include/bits/stl_set.h: Same.
2265 * include/bits/stl_multiset.h: Same.
2266 * include/bits/stl_multimap.h: Same.
2267 * include/bits/stl_map.h: Same.
2268 * include/bits/stl_list.h: Same.
2269 * include/bits/stl_vector.h: Same.
2270 * include/bits/stl_bvector.h: Same.
2271 * include/bits/stl_deque.h: Same.
2272 * include/bits/deque.tcc: Same.
2273 * include/bits/list.tcc: Same.
2274 * include/debug/vector: Same.
2275 * include/debug/set.h: Same.
2276 * include/debug/multiset.h: Same.
2277 * include/debug/multimap.h: Same.
2278 * include/debug/map.h: Same.
2279 * include/debug/list: Same.
2280 * include/debug/deque: Same.
2281 * include/debug/bitset: Same.
2282 * include/debug/formatter.h (__gnu_debug): Remove using directive.
2283 Add using declaration for std::type_info.
2284 * include/debug/safe_iterator.h: Add using declaration for
2285 std::iterator_traits and std::pair.
2286 * src/debug_list.cc: New.
2287 * src/Makefile.am: Add debug_list.cc.
2288 * src/Makefile.in: Regenerate.
2289 * config/linker-map.gnu: Add _List_node_base exports for std and
2292 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
2293 idiom that other containers use.
2294 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2296 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2299 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
2301 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
2302 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
2304 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2306 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
2308 * config.h.in: Regenerate.
2310 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2312 * config/locale/generic/monetary_members.cc
2313 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
2314 btowc unnecessarily, just cast to wchar_t (the concerned chars
2315 all belong to the basic character set).
2316 * config/locale/generic/numeric_members.cc
2317 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2318 * config/locale/gnu/monetary_members.cc
2319 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
2320 * config/locale/gnu/numeric_members.cc
2321 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2323 2004-04-15 Paolo Carlini <pcarlini@suse.de>
2325 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
2326 avoid constructing unnecessarily this->name().
2328 2004-04-14 Zack Weinberg <zack@codesourcery.com>
2330 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
2331 Change definition of CXX to use $(shell) instead of backticks.
2332 * testsuite/Makefile.in: Regenerate.
2334 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
2336 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2337 Minor formatting fixes.
2338 * testsuite/performance/20_util/allocator/map_mt_find.cc:
2341 2004-04-12 Paolo Carlini <pcarlini@suse.de>
2343 * config/locale/gnu/numeric_members.cc
2344 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
2345 in __uselocale, since btowc is called for chars belonging to
2346 the basic character set.
2348 2004-04-09 Paolo Carlini <pcarlini@suse.de>
2350 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
2351 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
2352 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
2353 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
2354 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
2355 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
2356 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
2357 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
2358 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
2359 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
2360 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
2361 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
2362 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
2363 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
2364 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
2365 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
2366 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
2368 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2370 * config/locale/generic/time_members.cc
2371 (__timepunct<char>::_M_initialize_timepunct,
2372 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
2373 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
2374 * config/locale/gnu/time_members.cc
2375 (__timepunct<char>::_M_initialize_timepunct,
2376 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
2377 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
2378 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
2380 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
2381 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
2382 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
2383 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
2384 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
2385 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
2386 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
2387 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
2388 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
2389 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
2390 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
2391 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
2392 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
2393 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
2394 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
2395 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
2396 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
2397 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
2398 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
2399 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
2400 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
2401 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
2402 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
2403 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
2404 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
2405 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
2406 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
2407 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
2408 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
2409 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
2410 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
2411 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
2412 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
2413 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
2414 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
2415 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
2417 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
2419 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2421 * config/locale/gnu/monetary_members.cc
2422 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
2423 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
2424 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
2425 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
2426 * config/locale/gnu/numeric_members.cc
2427 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
2428 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
2430 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
2432 Fixups for EDG front end.
2433 * include/ext/rope: Instead of non-existent function
2434 _Data_allocate, use allocator's allocate. Use this.
2435 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
2436 enumerations from _Rope_RopeRep here.
2437 * include/ext/ropeimpl.h: Same.
2438 * src/ext-inst.cc (_S_min_len): Fix up definition.
2440 * config/locale/gnu/ctype_members.cc: Qualify base class members
2442 * config/locale/generic/ctype_members.cc: Same.
2443 * config/locale/gnu/messages_members.h: Same.
2444 * config/locale/generic/messages_members.h: Same.
2445 * src/ctype.cc: Same.
2446 * include/bits/codecvt.h: Same.
2448 * include/bits/boost_concept_check.h: Declare.
2449 (__error_type_must_be_an_unsigned_integer_type): Remove this.
2450 (__error_type_must_be_an_integer_type): Remove this.
2451 (__error_type_must_be_a_signed_integer_type): Remove this.
2453 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
2455 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
2456 specification to definition.
2457 (__cxa_allocate_exception): Same.
2458 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
2459 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
2460 (__cxa_get_globals): Same.
2462 * libsupc++/del_op.cc: Add comment about freestanding.
2464 2004-04-05 Paolo Carlini <pcarlini@suse.de>
2466 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2467 The critical section is actually very small, only two assignments.
2469 2004-04-04 Paolo Carlini <pcarlini@suse.de>
2470 Petur Runolfsson <peturr02@ru.is>
2472 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
2473 adapted from libstdc++/11378.
2475 2004-04-03 Paolo Carlini <pcarlini@suse.de>
2477 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
2478 some duplicated code.
2479 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
2480 in the single threaded case.
2481 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2482 Reorder and renumber the tests consistently with the other testfiles.
2483 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2484 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2485 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2487 2004-04-02 Paolo Carlini <pcarlini@suse.de>
2489 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2490 Rearrange arithmetic to avoid computing two divisions at
2493 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2495 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
2496 Streamline the second half, wrapping it in a single
2497 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
2498 conditionals inside loops.
2500 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2503 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
2504 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
2505 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
2506 to _GLIBCXX_RES_LIMITS.
2507 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
2509 * testsuite/testsuite_hooks.h: Declare set_file_limit.
2510 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
2511 and setrlimit(RLIMIT_FSIZE).
2512 * testsuite/27_io/fpos/14775.cc: New.
2513 * config.h.in: Regenerate.
2514 * configure: Likewise.
2516 2004-03-31 Paolo Carlini <pcarlini@suse.de>
2518 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
2519 In v3 uses of sscanf, the special floating-point numbers INF,
2520 INFINITY, etc., cannot occur in input, therefore, if the latter
2521 is too large, ERANGE is always stored in errno, no need of finitel.
2523 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
2526 * include/bits/stl_tree.h: Adjust initialization list order.
2528 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
2530 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
2532 2004-03-29 Paolo Carlini <pcarlini@suse.de>
2534 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
2535 on allocator behavior, the memory pointed by data2 may well be not
2538 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
2541 * include/bits/basic_string.tcc
2542 (basic_string::basic_string(const basic_string&)): Pass to
2543 _Rep::_M_grab the actual allocator of the string being constructed
2544 not the default constructed one.
2546 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
2549 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2550 (__enc_traits::_M_destroy): New.
2551 (__enc_traits::~__enc_traits): Use it.
2552 (__enc_traits::operator=): Use _M_destroy, _M_init.
2553 (__enc_traits::__enc_traits): Same.
2555 2004-03-27 Petur Runolfsson <peturr02@ru.is>
2557 * testsuite/ext/enc_filebuf/char/13598.cc: New.
2559 2004-03-27 Paolo Carlini <pcarlini@suse.de>
2561 * include/ext/mt_allocator.h: Uglify consistently names of
2562 variables, members and classes; tidy.
2564 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
2566 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2567 Deallocation loop rewrote.
2569 2004-03-26 Paolo Carlini <pcarlini@suse.de>
2571 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2572 __mt_alloc<>::deallocate): Protect two instances of
2573 block->thread_id with __GTHREADS.
2575 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
2577 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
2578 default argument in constructors.
2579 (_Rb_tree::_M_empty_initialize): Remove.
2581 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
2583 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
2584 * testsuite/23_containers/set/operators/1_neg.cc: Same.
2586 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2588 * include/bits/cpp_type_traits.h: Changed __is_pod
2589 completely. Now, it does not use any of the previous type_traits
2590 to detect the pod types, and it also detects function pointers as
2593 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
2594 which encapsulates the internal implementation of an rb_tree. Made
2595 the allocator a base class of this class instead of the rb_tree,
2596 which was not conforming. This _Rb_tree_impl class is also
2597 specialized on whether the _Compare parameter is a POD type or
2598 not. If so, then it maintains the comparison function as a data
2599 member, otherwise it makes the _Compare parameter a base class of
2600 itself. Also, _M_key_compare is now a function instead of a data
2601 member, so that the above trick can work properly. Delegated the
2602 initialization of the other data members to this newly created
2603 class. Also, now other member functions of rb_tree must refer to
2604 _M_key_compare as _M_impl._M_key_compare(). The other data members
2605 (*) can be referenced to as _M_impl.(*), where
2606 (*) includes _M_header, and _M_node_count.
2608 2004-03-25 Paolo Carlini <pcarlini@suse.de>
2610 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
2611 Add _M_min_bin, the size in bytes of the smallest bin.
2612 (__mt_alloc<>::tune()): Tweak accordingly.
2613 (__mt_alloc<>::tune(size_t, ...)): Likewise.
2614 (__mt_alloc<>::block_record): Change to a union: members next
2615 and thread_id are never used at the same time.
2616 (__mt_alloc<>::allocate): Update consistently.
2617 (__mt_alloc<>::deallocate): Likewise.
2618 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
2619 _S_bin_size for the configurable _M_min_size.
2621 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2623 * include/bits/stl_list.h: Created a _List_impl class and made it
2624 derive from the allocator, instead of the list deriving from the
2625 allocator class, which was not conformant. Changed all references
2626 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
2627 as above (changed all references to the concerned variables).
2629 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2631 * include/bits/stl_deque.h: Created a _Deque_impl class and made
2632 it derive from the allocator, instead of the deque deriving from
2633 the allocator class, which was not conformant. Changed all
2634 references to the _M_start, _M_finish, _M_map, and _M_map_size to
2636 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
2637 qualification in 2 places where it was missing.
2638 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
2640 * include/bits/deque.tcc: Same as above (changed all references to
2641 the concerned variables).
2643 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2645 * include/bits/stl_vector.h: Created a _Vector_impl class and made
2646 it derive from the allocator, instead of the _Vector_base class,
2647 deriving from the allocator which was not conformant. Changed all
2648 references to the _M_start, _M_finish, and _M_end_of_storage to
2650 * include/bits/vector.tcc: Same as above (changed all references
2651 to the concerned variables).
2653 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2655 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
2656 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
2657 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
2659 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
2661 * include/ext/malloc_allocator.h: Fixed the construct function to
2662 call global placement new instead of assignment. Added a check
2663 after the return from malloc to check whether returned pointer is
2664 NULL, and if so, throw std::bad_alloc().
2665 * include/ext/debug_allocator.h: Added a check in the deallocate
2666 function to check whether the user has passed a NULL pointer or
2669 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
2671 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
2673 2004-03-24 Andreas Schwab <schwab@suse.de>
2675 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
2676 warning from IA64 assembler.
2678 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
2680 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
2681 function call __builtin_ctz instead of the while loop.
2682 (allocate) -> If condition has __builtin_expect.
2683 (deallocate) -> Ditto.
2684 Renamed a few left-over variables and typedefs according to the
2685 C++STYLE mentioned in the documentation.
2686 Protected calls to __gthread* by __gthread_active_p(), whose value
2687 is cached in the local variable __threads_active.
2689 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
2691 * testsuite/performance/20_util/allocator/producer_consumer.cc:
2692 Use linear algorithm for producer.
2694 2004-03-24 Paolo Carlini <pcarlini@suse.de>
2696 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2697 __mt_alloc<>::deallocate): Avoid redundant conditionals.
2699 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
2701 * include/bits/locale_facets.h: Tweaks for 80 column.
2702 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
2703 (__moneypunct_cache::_M_cache): Same.
2704 (num_get): Don't inherit from __num_base.
2706 (money_get): Don't inherit from money_base.
2708 (__timepunct::_M_am_pm_format): New.
2709 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
2710 (time_get::_M_extract_name): Same.
2711 (time_get::_M_extract_via_format): Same.
2712 * include/bits/locale_facets.tcc: Tweaks for 80 column.
2713 Use _M_getloc instead of getloc.
2714 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
2715 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
2716 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
2718 2004-03-22 Paolo Carlini <pcarlini@suse.de>
2720 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
2721 * configure: Regenerate.
2722 * config/allocator/pool_allocator_base.h: New.
2723 * include/ext/pool_allocator.h: Convert to a standard-conforming
2725 * src/allocator.cc: Tweak instantiations.
2726 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
2727 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
2728 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
2729 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2730 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2731 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2733 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
2735 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
2736 inline" and attribute-unused. Qualify parameter __mem with
2738 (__exchange_and_add): Ditto. Add back memory clobber to asm.
2740 2004-03-20 Paolo Carlini <pcarlini@suse.de>
2742 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
2744 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
2746 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
2748 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
2750 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
2752 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
2754 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
2756 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
2758 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
2760 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
2763 2004-03-20 Paolo Carlini <pcarlini@suse.de>
2765 * include/std/std_valarray.h: Document DR389 [Ready].
2766 * docs/html/ext/howto.html: Add an entry for DR389.
2768 2004-03-19 Michael Eager <eager@mvista.com>
2770 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
2773 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2775 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
2777 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
2778 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
2779 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
2780 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
2781 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
2782 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
2783 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
2784 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
2785 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
2787 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2788 Petur Runolfsson <peturr02@ru.is>
2791 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
2792 no way to find out the conversion used by the underlying FILE*.
2793 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
2794 * testsuite/27_io/objects/char/9.cc: Tweak.
2796 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2799 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
2800 memory allocation/deallocation calls.
2801 * testsuite/ext/14648.cc: New.
2803 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
2806 * include/backward/bvector.h (bit_vector): Allocator is in std
2809 2004-03-19 Phil Edwards <phil@codesourcery.com>
2811 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
2812 not libiconv. SUBST this variable as well.
2813 * testsuite/Makefile.am (site.exp): New target, based on that
2814 created by automake. Also set libiconv.
2816 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2817 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2818 testsuite/Makefile.in: Regenerate.
2820 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
2822 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
2823 new_allocator for all hosts.
2824 * configure: Regenerate.
2826 2004-03-16 Paolo Carlini <pcarlini@suse.de>
2828 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
2829 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2831 2004-03-15 Paolo Carlini <pcarlini@suse.de>
2833 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2834 Adjust the logic underlying the parsing of symbol to deal
2835 correctly with an optional sign component (i.e., when either
2836 negative_sign or positive_sign is empty)
2837 * testsuite/22_locale/money_get/get/char/19.cc: New.
2838 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
2840 2004-03-15 Paolo Carlini <pcarlini@suse.de>
2842 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2843 Do not accept an incomplete currency symbol.
2844 * testsuite/22_locale/money_get/get/char/18.cc: New.
2845 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
2847 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
2849 * config/allocator: New.
2850 * config/allocator/bitmap_allocator_base.h: New.
2851 * config/allocator/malloc_allocator_base.h: New.
2852 * config/allocator/mt_allocator_base.h: New.
2853 * config/allocator/new_allocator_base.h: New.
2854 * include/bits/allocator.h: Include c++allocator.h.
2855 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
2856 * aclocal.m4: Regenerate.
2857 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
2858 * configure: Regenerate.
2859 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
2860 * include/Makefile.in: Regenerate.
2861 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
2863 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
2865 * include/bits/allocator.h: Revert.
2867 2004-03-12 Paolo Carlini <pcarlini@suse.de>
2869 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
2870 * include/bits/gslice_array.h: Add comment about DR 253.
2871 * include/bits/indirect_array.h: Likewise.
2872 * include/bits/mask_array.h: Likewise.
2873 * include/bits/slice_array.h: Likewise.
2875 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
2877 * testsuite/20_util/allocator/14176.cc: New.
2878 * include/ext/mt_allocator.h: Formatting fixes.
2880 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
2882 * include/Makefile.am (ext_headers): Add
2883 ${ext_srcdir}/bitmap_allocator.h .
2884 * include/Makefile.in: Regenerate.
2885 * docs/html/ext/ballocator_doc.txt: New file.
2886 * include/ext/bitmap_allocator.h: New file.
2887 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
2889 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
2890 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
2891 test for the bitmap_allocator<>.
2892 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
2893 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
2894 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
2896 2004-03-11 Paolo Carlini <pcarlini@suse.de>
2898 * include/std/std_complex.h (pow(const complex&, const _Tp&),
2899 pow(const _Tp&, const complex&), pow(const complex&,
2900 const complex&)): Fully qualify with std:: a few calls.
2901 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
2903 2004-03-11 Steven Bosscher <stevenb@suse.de>
2906 * include/c_std/cmath.tcc (__cmath_power): Define inline.
2908 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
2910 * configure.ac: Bump AC_PREREQ to 2.59.
2912 2004-03-10 Paolo Carlini <pcarlini@suse.de>
2914 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
2916 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
2917 Paolo Carlini <pcarlini@suse.de>
2920 * include/std/std_complex.h (pow(const complex&, const _Tp&),
2921 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
2922 * testsuite/26_numerics/complex/13450.cc: New.
2924 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
2925 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
2927 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
2930 * include/bits/gslice_array.h (gslice_array()): Make public.
2931 (operator=(gslice_array)): Make public. Implement.
2932 * include/bits/indirect_array.h (indirect_array()): Make public.
2933 * include/bits/mask_array.h (mask_array()): Make public.
2934 (operator=(mask_array)): Make public. Implement.
2935 * include/bits/valarray_array.tcc (__valarray_copy):
2936 Comment. Add versions for gslice_array and mask_array.
2937 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
2939 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
2941 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
2943 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
2944 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2945 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2946 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2947 * testsuite/23_containers/map/modifiers/swap.cc: Same.
2948 * testsuite/23_containers/list/modifiers/swap.cc: Same.
2950 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
2952 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
2955 * testsuite/23_containers/deque/modifiers/swap.cc: New.
2956 * testsuite/23_containers/list/modifiers/swap.cc: New.
2957 * testsuite/23_containers/map/modifiers/swap.cc: New.
2958 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
2959 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
2960 * testsuite/23_containers/set/modifiers/swap.cc: New.
2961 * testsuite/23_containers/vector/modifiers/swap.cc: New.
2963 2004-03-08 Petur Runolfsson <peturr02@ru.is>
2966 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
2968 2004-03-08 Paolo Carlini <pcarlini@suse.de>
2970 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
2971 * include/bits/stl_multiset.h: Add comment about DR 103.
2972 * include/bits/stl_set.h: Likewise.
2974 2004-03-08 Paolo Carlini <pcarlini@suse.de>
2976 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2977 The value _space_ indicates that at least one space is required
2979 * testsuite/22_locale/money_get/get/char/17.cc: New.
2980 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
2982 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
2983 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
2985 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
2986 Remove redundant conditional on __str.size().
2988 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
2990 * include/bits/allocator.h: Switch defaults to mt_alloc.
2992 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
2994 * include/ext/mt_allocator.h (_S_initialize): If
2995 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
2997 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3000 * src/locale_init.cc (locale::locale): Lock critical regions with
3002 (locale::global): Same.
3003 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
3004 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
3005 (__glibcxx_mutex_lock): Same.
3007 * config/cpu/generic/atomicity.h: Remove
3008 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
3009 * src/misc-inst.cc: Move all locking bits out of this file.
3011 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
3012 * src/misc-inst.cc: Same.
3013 * config/cpu/hppa/atomicity.h: Same.
3015 * config/linker-map.gnu: Remove types in the signature of atomic
3016 exports, as they may vary.
3018 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3020 * include/bits/locale_facets.tcc: Tweak the comment preceding
3021 has_facet: doesn't throw.
3023 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3025 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
3026 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3027 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3028 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3029 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3030 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3031 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3032 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3034 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3036 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3037 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
3038 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
3039 * testsuite/testsuite_character.h (struct __gnu_test::character):
3041 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
3044 2004-03-05 Paolo Carlini <pcarlini@suse.de>
3046 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
3048 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3050 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
3052 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
3054 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3055 * testsuite/23_containers/list/invalidation/1.cc: Same.
3056 * testsuite/23_containers/list/invalidation/2.cc: Same.
3057 * testsuite/23_containers/list/invalidation/3.cc: Same.
3058 * testsuite/23_containers/list/invalidation/4.cc: Same.
3059 * testsuite/23_containers/map/invalidation/2.cc: Same.
3060 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
3061 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3062 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
3063 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3064 * testsuite/23_containers/set/invalidation/1.cc: Same.
3065 * testsuite/23_containers/set/invalidation/2.cc: Same.
3066 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3067 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3068 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3069 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3071 2004-03-04 Paolo Carlini <pcarlini@suse.de>
3073 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
3075 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
3077 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
3078 from the dg-options.
3079 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
3080 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
3081 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
3082 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
3083 * testsuite/23_containers/vector/resize/1.cc: Likewise.
3084 * testsuite/26_numerics/complex_value.cc: Likewise.
3085 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
3086 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3087 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
3088 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
3089 * testsuite/27_io/objects/char/5.cc: Likewise.
3090 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
3091 * testsuite/backward/11460.cc: Likewise.
3092 * testsuite/thread/pthread7-rope.cc: Likewise.
3094 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
3095 missing test variable.
3096 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
3097 missing test variable.
3099 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3101 * testsuite/20_util/allocator/1.cc: Provide explicit
3102 instantiations for non-weak systems.
3103 * testsuite/20_util/binders.cc: Same.
3104 * testsuite/20_util/allocator/8230.cc: Same.
3105 * testsuite/20_util/allocator/10378.cc: Same.
3106 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3107 * testsuite/22_locale/ctype/is/char/2.cc: Same.
3108 * testsuite/thread/pthread7-rope.cc: Same.
3109 * testsuite/thread/pthread6.cc: Same.
3110 * testsuite/thread/pthread5.cc: Same.
3111 * testsuite/thread/pthread4.cc: Same.
3112 * testsuite/thread/pthread1.cc: Same.
3113 * testsuite/ext/rope.cc: Same.
3114 * testsuite/ext/hash_set.cc: Same.
3115 * testsuite/ext/hash_map.cc: Same.
3116 * testsuite/ext/concept_checks.cc: Same.
3117 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
3118 * testsuite/25_algorithms/unique/2.cc: Same.
3119 * testsuite/25_algorithms/unique/1.cc: Same.
3120 * testsuite/25_algorithms/rotate.cc: Same.
3121 * testsuite/25_algorithms/min_max.cc: Same.
3122 * testsuite/25_algorithms/equal.cc: Same.
3123 * testsuite/24_iterators/rel_ops.cc: Same.
3124 * testsuite/24_iterators/iterator.cc: Same.
3125 * testsuite/24_iterators/insert_iterator.cc: Same.
3126 * testsuite/24_iterators/front_insert_iterator.cc: Same.
3127 * testsuite/24_iterators/back_insert_iterator.cc: Same.
3128 * testsuite/23_containers/vector/resize/1.cc: Same.
3129 * testsuite/23_containers/vector/modifiers/2.cc: Same.
3130 * testsuite/23_containers/vector/modifiers/1.cc: Same.
3131 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3132 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3133 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3134 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3135 * testsuite/23_containers/vector/element_access/1.cc: Same.
3136 * testsuite/23_containers/vector/cons/6513.cc: Same.
3137 * testsuite/23_containers/vector/cons/3.cc: Same.
3138 * testsuite/23_containers/vector/cons/2.cc: Same.
3139 * testsuite/23_containers/vector/cons/1.cc: Same.
3140 * testsuite/23_containers/vector/capacity/8230.cc: Same.
3141 * testsuite/23_containers/vector/capacity/1.cc: Same.
3142 * testsuite/23_containers/vector/bool/6886.cc: Same.
3143 * testsuite/23_containers/stack/members/7158.cc: Same.
3144 * testsuite/23_containers/set/invalidation/2.cc: Same.
3145 * testsuite/23_containers/set/invalidation/1.cc: Same.
3146 * testsuite/23_containers/queue/members/7157.cc: Same.
3147 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
3148 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3149 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3150 * testsuite/23_containers/multiset/insert/1.cc: Same.
3151 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3152 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3153 * testsuite/23_containers/map/operators/1.cc: Same.
3154 * testsuite/23_containers/map/invalidation/2.cc: Same.
3155 * testsuite/23_containers/map/invalidation/1.cc: Same.
3156 * testsuite/23_containers/map/insert/1.cc: Same.
3157 * testsuite/23_containers/list/operators/4.cc: Same.
3158 * testsuite/23_containers/list/operators/3.cc: Same.
3159 * testsuite/23_containers/list/operators/2.cc: Same.
3160 * testsuite/23_containers/list/operators/1.cc: Same.
3161 * testsuite/23_containers/list/modifiers/3.cc: Same.
3162 * testsuite/23_containers/list/modifiers/2.cc: Same.
3163 * testsuite/23_containers/list/modifiers/1.cc: Same.
3164 * testsuite/23_containers/list/invalidation/4.cc: Same.
3165 * testsuite/23_containers/list/invalidation/3.cc: Same.
3166 * testsuite/23_containers/list/invalidation/2.cc: Same.
3167 * testsuite/23_containers/list/invalidation/1.cc: Same.
3168 * testsuite/23_containers/list/cons/9.cc: Same.
3169 * testsuite/23_containers/list/cons/8.cc: Same.
3170 * testsuite/23_containers/list/cons/7.cc: Same.
3171 * testsuite/23_containers/list/cons/6.cc: Same.
3172 * testsuite/23_containers/list/cons/5.cc: Same.
3173 * testsuite/23_containers/list/cons/4.cc: Same.
3174 * testsuite/23_containers/list/cons/3.cc: Same.
3175 * testsuite/23_containers/list/cons/2.cc: Same.
3176 * testsuite/23_containers/list/cons/1.cc: Same.
3177 * testsuite/23_containers/list/capacity/1.cc: Same.
3178 * testsuite/23_containers/deque/operators/1.cc: Same.
3179 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3180 * testsuite/23_containers/deque/invalidation/3.cc: Same.
3181 * testsuite/23_containers/deque/invalidation/2.cc: Same.
3182 * testsuite/23_containers/deque/invalidation/1.cc: Same.
3183 * testsuite/23_containers/deque/cons/2.cc: Same.
3184 * testsuite/23_containers/deque/cons/1.cc: Same.
3186 * src/allocator.cc: Add char, wchar_t instantiations
3187 to match extern template declarations in memory.h.
3189 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3191 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3192 Fix warning regression.
3194 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3196 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3197 Deal properly with empty __digits and negative frac_digits,
3200 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
3202 * docs/html/documentation.html: Regenerate.
3204 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3207 * include/bits/postypes.h (class streamoff): Remove, now
3208 streamoff is just typedef a 64 bit signed integer type.
3209 (class fpos): Tweak consistently.
3210 * testsuite/27_io/fpos/14320-1.cc: New.
3211 * testsuite/27_io/fpos/14320-2.cc: New.
3212 * testsuite/27_io/fpos/14320-3.cc: New.
3213 * testsuite/27_io/fpos/14320-4.cc: New.
3214 * testsuite/27_io/fpos/14320-5.cc: New.
3215 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
3217 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3219 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3220 Reorganize a bit the main parsing loop, thus early detecting
3221 an empty value component.
3222 * testsuite/22_locale/money_get/get/char/16.cc: New.
3223 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
3225 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
3227 Support automake 1.8.2
3228 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
3229 * po/Makefile.am (EXTRA_DIST): New.
3230 * po/Makefile.in: Regenerate.
3231 * Makefile.in: Same.
3232 * include/Makefile.in: Same.
3233 * libmath/Makefile.in: Same.
3234 * libsupc++/Makefile.in: Same.
3235 * src/Makefile.in: Same.
3236 * testsuite/Makefile.in: Same.
3238 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
3239 __GXX_WEAK__ instead of SUPPORTS_WEAK.
3240 (${host_builddir}/gthr-default.h): Same.
3241 (${host_builddir}/gthr.h): Same.
3242 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
3243 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
3245 * aclocal.m4: Regenerate.
3246 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
3247 * config.h.in: Regenerate.
3250 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3252 Support autoconf 2.59
3253 * acinclude.m4: Quote correctly.
3254 * aclocal.m4: Regenerate.
3257 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3259 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
3261 * docs/html/18_support/howto.html: Add bit about writing to
3262 stderr, mostly by Zack.
3264 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3266 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3267 money_get<>::do_get(string_type&)): ... and two more.
3269 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3271 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3272 Fix thinkos in the switch from string_type& to string& as last
3275 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3277 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3278 Also when parsing exponent sign, first look for thousands_sep
3279 and decimal_point; tweak a bit.
3280 * testsuite/22_locale/num_get/get/char/15.cc: New.
3281 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
3283 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3284 num_get<>::_M_extract_int): Reorder some conditionals.
3286 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3288 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3289 Consistently with numpunct, enforce the requirements in
3290 22.2.6.3, p3 for the thousands separators; tweak a bit.
3291 * testsuite/22_locale/money_get/get/char/15.cc: New.
3292 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
3294 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
3296 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
3297 testsuite_files from correct multilib blddir when running
3300 2004-02-29 Phil Edwards <phil@codesourcery.com>
3302 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
3303 the summary file to the logfile.
3304 * testsuite/Makefile.in: Regenerate.
3306 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3308 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
3310 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
3311 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
3313 2004-02-28 Paolo Carlini <pcarlini@suse.de>
3315 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3316 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
3317 no 'decimal-point' in the middle: in this case too we must fix
3318 up __found_grouping; slightly tweak.
3319 * testsuite/22_locale/num_get/get/char/14.cc: New.
3320 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
3322 2004-02-27 Eric Christopher <echristo@redhat.com>
3323 Phil Edwards <phil@codesourcery.com>
3325 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
3326 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
3327 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
3328 testsuite/22_locale/collate/hash/wchar_t/2.cc,
3329 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
3330 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
3331 testsuite/22_locale/collate/transform/wchar_t/2.cc,
3332 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
3333 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3334 Use dg-require-iconv.
3335 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
3337 2004-02-27 Phil Edwards <phil@codesourcery.com>
3338 Eric Christopher <echristo@redhat.com>
3340 * testsuite/config/default.exp: Update with comments.
3341 (${tool}_target_compile): New wrapper routine.
3342 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
3343 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
3345 (load_gcc_lib, v3track): New routines.
3346 (v3-init): Rename to libstdc++_init.
3347 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
3348 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
3350 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
3352 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
3354 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
3356 * config/os/irix/irix5.2/atomicity.h: Merge..
3357 * config/os/irix/irix6.5/atomicity.h: Merge..
3358 * config/os/irix/atomicity.h: ...into this.
3359 * config/os/irix/atomic_word.h: New.
3360 * configure.host: Set atomic_word_dir for irix.
3362 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
3363 * i386/atomicity.h: Same.
3364 * m68k/atomicity.h: Same.
3365 * sparc/atomicity.h: Same.
3367 2004-02-27 David Edelsohn <edelsohn@gnu.org>
3369 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
3370 static, and inline keywords.
3372 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3374 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3375 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
3376 call reserve on the __tmp_gruping string.
3377 (num_get<>::_M_extract_float): Don't append unnecessarily a
3378 char() to the returned string.
3379 * include/bits/locale_facets.tcc: Trivial reformattings.
3381 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3383 * include/bits/locale_facets.h (money_get<>::_M_extract):
3384 Change signature: now takes a plain string&.
3385 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3386 Update consistently the definition; use the moneypunct cache
3387 to parse the value; use swap to change __units.
3388 (money_get<>::do_get(long double&)): Update call of _M_extract,
3389 avoid ctype::narrow, not correct wrt the standard.
3390 (money_get<>::do_get(string_type&)): Likewise, update call
3391 of _M_extract, use ctype::widen.
3392 * src/locale-inst.cc: Tweak instantiations of _M_extract.
3394 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
3396 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
3397 * testsuite/demangle/abi_examples/02.cc: Likewise.
3398 * testsuite/demangle/regression/cw-11.cc: Likewise.
3399 * testsuite/demangle/regression/cw-16.cc: Change two expected
3400 results to match libiberty demangler output.
3402 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3405 * libsupc++/Makefile.am: Use libiberty demangler.
3406 (c_sources): Add cp-demangle.c.
3407 * libsupc++/Makefile.in: Regenerate.
3408 * src/Makefile.am (sources): Remove demangle.cc.
3409 * src/Makefile.in: Regenerate.
3410 * include/Makefile.am (bits_headers): Move demangle.h.
3411 (ext_headers): ...here.
3412 * include/Makefile.in: Regenerate.
3413 * include/bits/demangle.h: Move...
3414 * include/ext/demangle.h: ...here.
3415 * src/demangle.cc: Remove.
3417 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3419 * include/bits/demangle.h: Add type template parameter to all
3420 templates with just an Allocator template parameter.
3422 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
3424 * include/bits/atomicity.h: New, forward declarations for __atomic_add
3425 and __exchange_and_add.
3426 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
3427 * config/cpu/cris/atomic_word.h: Same.
3428 * config/cpu/sparc/atomic_word.h: Same.
3429 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
3430 Qualifiy with __gnu_cxx.
3431 (_Callback_list::_M_add_reference): Same.
3432 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
3433 (locale::facet::_M_remove_reference): Same.
3434 (locale::_Impl::_M_add_reference): Add.
3435 (locale::_Impl::_M_remove_reference): Same.
3436 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
3437 (basic_string::_Rep::_M_dispose): Same.
3438 * src/ios.cc (ios_base::xalloc): Same.
3439 * src/ios_init.cc (ios_base::Init::Init): Same.
3440 (ios_base::Init::~Init): Same.
3441 * src/locale.cc (locale::id::_M_id): Same.
3442 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
3443 static, and inline keywords.
3444 * config/cpu/alpha/atomicity.h: Same.
3445 * config/cpu/cris/atomicity.h: Same.
3446 * config/cpu/generic/atomicity.h: Same.
3447 * config/cpu/hppa/atomicity.h: Same.
3448 * config/cpu/i386/atomicity.h: Same.
3449 * config/cpu/ia64/atomicity.h: Same.
3450 * config/cpu/m68k/atomicity.h: Same.
3451 * config/cpu/mips/atomicity.h: Same.
3452 * config/cpu/powerpc/atomicity.h: Same.
3453 * config/cpu/s390/atomicity.h: Same.
3454 * config/cpu/sparc/atomicity.h: Same.
3456 * src/Makefile.am (host_sources): Add atomicity.cc.
3457 (atomicity.cc): New rule.
3458 * src/Makefile.in: Regenerate.
3459 * include/Makefile.am (host_headers): Remove host atomicity.h.
3460 (host_headers): Add atomic_word.h.
3461 (bits_headers): Add bits atomicity.h.
3462 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3463 * include/Makefile.in: Regenerate.
3464 * configure.host (atomic_word_dir): Add.
3465 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
3466 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3467 * configure: Regenerate.
3468 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
3470 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
3471 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3473 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
3475 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
3476 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
3477 Fix markup, more <link> tags.
3479 2004-02-25 Carlo Wood <carlo@alinoe.com>
3482 namespace __gnu_cxx::demangler
3483 (session<Allocator>::qualifier_list_Allocator): Add
3484 (session<Allocator>::M_qualifier_list_alloc): Add
3485 (session<Allocator>::decode_type_with_postfix):
3486 Use M_qualifier_list_alloc instead of calling operator new/delete.
3488 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3491 * include/bits/postypes.h (class streamoff): Add operator++(),
3492 operator++(int), operator--() and operator--(int).
3493 * testsuite/27_io/fpos/14252.cc: New.
3495 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
3497 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
3498 error in handling of hex constants.
3500 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3502 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3503 Prefer basic_string::append to operator+= and a temporary.
3505 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3507 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
3508 Only use fputs, not write.
3510 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3512 * include/ext/malloc_allocator.h: Add operators ==, !=.
3513 * include/ext/new_allocator.h: Add operators ==, !=.
3514 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
3515 (__mt_alloc::_S_get_options): New.
3516 (__mt_alloc::_S_set_options): New.
3517 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
3518 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
3519 Move functions out of line, simplify, format.
3520 * src/allocator.cc: Simplify explicit instantiations.
3521 * include/bits/allocator.h: Tweak.
3523 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3525 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3526 Restructure formatting of value component, first dealing with
3527 the non-decimal digits; use reserve.
3529 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3531 * include/bits/locale_facets.h (class money_get): Inherit
3532 from money_base too; tweak declaration of _M_extract, now
3533 parameterized on _Intl too.
3534 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3535 Update definition to use the cache; call reserve on __res to
3536 avoid multiple reallocations; fix parsing of sign component
3537 according to 22.2.6.1.2, p3.
3538 (money_get<>::do_get(long double&),
3539 money_get<>::do_get(string_type&)): Update calls of _M_extract.
3540 * src/locale-inst.cc: Add instantiations of
3541 money_get::_M_extract<false> and money_get::_M_extract<true>.
3542 * testsuite/22_locale/money_get/get/char/14.cc: New.
3543 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
3545 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3547 * libsupc++/vterminate.cc
3548 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
3550 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
3552 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3553 not set RLIMIT_AS on HP-UX.
3555 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3557 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3558 not set RLIMIT_AS on HP-UX.
3560 2004-02-21 Paolo Carlini <pcarlini@suse.de>
3562 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
3563 _S_zero, _S_end } enum, _S_atoms.
3564 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
3565 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
3566 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
3567 (__moneypunct_cache<>::~__moneypunct_cache): Update.
3568 (__moneypunct_cache<>::_M_cache): Fill the cache.
3569 (class moneypunct): Tweak __cache_type typedef.
3570 (class money_put): Inherit from money_base too; tweak declaration
3571 of _M_insert, now parameterized on _Intl.
3572 * include/bits/locale_facets.tcc
3573 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
3574 (money_put<>::_M_insert): Update definition to use the cache;
3575 call reserve on __res to avoid multiple reallocations.
3576 (money_put<>::do_put(long double),
3577 money_put<>::do_put(const string_type&): Update calls of _M_insert.
3578 * config/locale/generic/monetary_members.cc
3579 (moneypunct<char, true>::_M_initialize_moneypunct,
3580 moneypunct<char, false>::_M_initialize_moneypunct,
3581 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
3582 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
3583 * config/locale/gnu/monetary_members.cc: Likewise.
3584 * config/locale/gnu/monetary_members.cc
3585 (moneypunct<wchar_t, true>::~moneypunct(),
3586 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
3587 * src/globals_locale.cc: Tweak fake_money_cache_c.
3588 * src/locale-inst.cc: Add instantiations for
3589 money_put::_M_insert<false> and money_put::_M_insert<true> and
3590 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
3591 * src/locale_facets.cc: Define money_base::_S_atoms.
3592 * src/locale_init.cc: Update placement new of
3593 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
3594 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
3596 * config/locale/generic/numeric_members.cc: Clean up.
3597 * config/locale/gnu/numeric_members.cc: Likewise.
3598 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
3599 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
3600 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
3601 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
3602 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
3603 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
3605 2004-02-20 Mark Mitchell <mark@codesourcery.com>
3607 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
3608 FIFO for writing with ios_base::in|ios_base::out.
3609 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3610 * testsuite/27_io/objects/char/7.cc: Likewise.
3611 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
3614 2004-02-19 David Edelsohn <edelsohn@gnu.org>
3616 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
3617 from iso-8859-1 to ISO8859-1.
3618 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
3619 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
3620 * 22_locale/collate/hash/wchar_t/2.cc: Same.
3621 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
3622 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
3623 * 22_locale/collate/transform/wchar_t/2.cc: Same.
3624 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
3625 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
3627 2004-02-18 Paolo Carlini <pcarlini@suse.de>
3629 * include/bits/locale_facets.h (money_get<>::_M_extract):
3630 New, helper for do_get.
3631 (money_put<>::_M_insert): Likewise, for do_put.
3632 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3633 money_put<>::_M_insert): Define.
3634 (money_get<>::do_get(long double&), money_get<>::do_get(
3635 string_type&), money_put::do_put(long double),
3636 money_put::do_put(const string_type&)): Use the helpers.
3638 2004-02-18 Paolo Carlini <pcarlini@suse.de>
3640 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3641 Rewrite, avoiding recursion.
3642 (__gnu_internal::xwrite): Minor tweaks.
3644 2004-02-17 Stefan Olsson <stefan@xapa.se>
3646 * include/ext/mt_allocator.h: Removed the last
3647 pointer. Deallocated blocks are now added to the front of
3648 freelists as proposed by Felix Yen. This gives roughly 10%
3649 performance boost and saves some memory.
3650 * docs/html/ext/mt_allocator.html: Change due to that deallocated
3651 blocks now are added to the front of freelists. The reason to this
3652 approach is also explained.
3654 2004-02-17 Paolo Carlini <pcarlini@suse.de>
3656 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3657 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
3658 grouping fidelity conditional.
3660 2004-02-16 Paolo Carlini <pcarlini@suse.de>
3662 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
3663 Qualify exception with std::.
3664 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
3665 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3666 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3667 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3668 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3670 2004-02-16 Paolo Carlini <pcarlini@suse.de>
3672 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
3673 for now that the catch block is not reached.
3674 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
3676 2004-02-16 Paolo Carlini <pcarlini@suse.de>
3678 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3679 Fix parsing of the remaining sign characters.
3680 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
3681 the input is scanned 'til eof.
3682 * 22_locale/money_get/get/char/4.cc: Likewise.
3683 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
3684 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
3685 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
3686 not do_pos_format: the former is the only one that matters during
3688 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
3690 * 22_locale/money_get/get/char/6.cc: Minor tweak.
3691 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
3693 2004-02-15 David Asher <david.asher@cavium.com>
3696 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
3697 access __olds beyond __oldlen.
3699 2004-02-14 Paolo Carlini <pcarlini@suse.de>
3701 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
3702 sure the exception is actually thrown.
3703 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3704 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3705 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3707 2004-02-14 Paolo Carlini <pcarlini@suse.de>
3710 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
3711 In case of conversion errors, throw ios_failure; simplify.
3712 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
3713 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3714 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
3715 previously we didn't throw in case of conversion errors, instead
3716 just returned eof().
3717 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3718 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3719 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3721 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
3722 Trivial simplification of a conditional.
3724 2004-02-12 Paolo Carlini <pcarlini@suse.de>
3726 PR libstdc++/13731 (final part: writev)
3727 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3728 New, a wrapper around writev() handling partial writes.
3729 (__basic_file<char>::xwrite): Move to __gnu_internal and make
3731 (__basic_file<char>::xsputn): Update call.
3732 (__basic_file<char>::xsputn_2): Likewise.
3733 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3734 Don't declare, now static.
3736 2004-02-11 Stefan Olsson <stefan@xapa.se>
3738 * docs/html/ext/mt_allocator.html: New.
3740 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
3742 * docs/html/20_util/allocator.html: New file, consolidate
3743 allocator information here. Revamp.
3744 * docs/html/documentation.html: Change links.
3745 * docs/html/20_util/howto.html: Same.
3746 * docs/html/ext/howto.html: Same.
3748 2004-02-11 Paolo Carlini <pcarlini@suse.de>
3750 PR libstdc++/13731 (first part: write)
3751 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3753 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
3754 Define it: a wrapper around write() handling partial write.
3755 (__basic_file<char>::xsputn): Use it.
3756 (__basic_file<char>::xsputn_2): Likewise.
3758 2004-02-11 Paolo Carlini <pcarlini@suse.de>
3759 Petur Runolfsson <peturr02@ru.is>
3762 * include/std/std_istream.h (operator>>(__istream_type& (*)
3763 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
3764 operator>>(ios_base& (*)(ios_base&))): Declare inline.
3765 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
3766 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
3767 operator<<(ios_base& (*) (ios_base&))): Likewise.
3768 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
3770 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
3773 * config/linker-map.gnu: Add typeinfo and typeinfo name for
3774 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
3777 * config/linker-map.gnu: Add typeinfo and typeinfo name for
3778 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
3780 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
3782 * include/ext/pool_allocator.h: Include c++config.h.
3784 2004-02-09 Stefan Olsson <stefan@xapa.se>
3786 * include/ext/mt_allocator.h: thread_id is unused in non threaded
3787 applications and now has a ifdef to remove it completely on
3788 compilers without thread support. Include stdlib.h due to a
3789 compiler warning on getenv().
3791 2004-02-09 Paul Brook <paul@codesourcery.com>
3793 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
3795 2004-02-09 Paolo Carlini <pcarlini@suse.de>
3798 * src/locale_init.cc (locale::global(const locale&)): Use
3799 locale::name() in order to decide whether calling setlocale.
3800 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
3802 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
3803 Avoid computing &= unnecessarily.
3805 2004-02-09 James E Wilson <wilson@specifixinc.com>
3808 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
3809 __builtin_extend_pointer.
3811 2004-02-09 Paolo Carlini <pcarlini@suse.de>
3814 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
3815 Don't leave dangling pointers.
3816 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
3817 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
3818 facet is needed in the final test.
3820 2004-02-09 Bernardo Innocenti <bernie@develer.com>
3822 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
3823 * configure: Regenerate.
3825 2004-02-08 Richard Henderson <rth@redhat.com>
3828 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
3829 uncaughtExceptions during nested catch rethrow.
3830 * testsuite/18_support/14026.cc: New.
3832 2004-02-08 Paolo Carlini <pcarlini@suse.de>
3834 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
3835 When working in place remember to set the state to sharable
3836 (otherwise, _M_mutate does it).
3838 2004-02-08 Bernardo Innocenti <bernie@develer.com>
3840 * include/bits/allocator.h, include/bits/basic_ios.h,
3841 include/bits/basic_ios.tcc, include/bits/basic_string.h,
3842 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
3843 include/bits/char_traits.h, include/bits/codecvt.h,
3844 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
3845 include/bits/demangle.h, include/bits/deque.tcc,
3846 include/bits/fstream.tcc, include/bits/functexcept.h,
3847 include/bits/gslice.h, include/bits/gslice_array.h,
3848 include/bits/indirect_array.h, include/bits/ios_base.h,
3849 include/bits/istream.tcc, include/bits/list.tcc,
3850 include/bits/locale_classes.h, include/bits/locale_facets.h,
3851 include/bits/locale_facets.tcc, include/bits/localefwd.h,
3852 include/bits/mask_array.h, include/bits/ostream.tcc,
3853 include/bits/postypes.h, include/bits/slice_array.h,
3854 include/bits/sstream.tcc, include/bits/stl_algo.h,
3855 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3856 include/bits/stl_construct.h, include/bits/stl_deque.h,
3857 include/bits/stl_function.h, include/bits/stl_heap.h,
3858 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
3859 include/bits/stl_list.h, include/bits/stl_map.h,
3860 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
3861 include/bits/stl_numeric.h, include/bits/stl_pair.h,
3862 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
3863 include/bits/stl_relops.h, include/bits/stl_set.h,
3864 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
3865 include/bits/stl_threads.h, include/bits/stl_tree.h,
3866 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
3867 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
3868 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
3869 include/bits/type_traits.h, include/bits/valarray_after.h,
3870 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
3871 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
3872 trailing whitespace.
3874 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3876 * include/bits/basic_string.h: Fix comment.
3878 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3880 * include/bits/stl_construct.h: Wrap overlong lines, reformat
3881 according to the coding standards.
3882 * include/bits/stl_pair.h: Likewise.
3883 * include/bits/stl_raw_storage_iter.h: Likewise.
3884 * include/bits/stl_stack.h: Likewise.
3885 * include/bits/stl_uninitialized.h: Likewise.
3886 * include/bits/stream_iterator.h: Likewise.
3887 * include/bits/streambuf_iterator.h: Likewise.
3888 * include/bits/type_traits.h: Likewise.
3890 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3892 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3895 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
3897 * scripts/check_performance: Support PCH.
3899 * scripts/check_performance (CXX): Add -DNOTHREAD.
3900 * testsuite/performance/20_util/allocator/insert.cc: Integrate
3901 threaded tests from insert_insert.cc. Tweak iterations,
3902 remove special cases.
3903 * testsuite/performance/20_util/allocator/insert_insert.cc:
3904 Make all tests single-threaded. Tweak iterations.
3905 * testsuite/performance/20_util/allocator/map_thread.cc:
3907 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3910 2004-02-05 Geoffrey Keating <geoffk@apple.com>
3914 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
3915 'gcc-lib'. Add comment about poorly-named variables.
3916 * aclocal.m4: Regenerate.
3917 * configure: Regenerate.
3919 2004-02-05 Paolo Carlini <pcarlini@suse.de>
3921 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3922 Thousands-sep are always optional; thousands-sep are not allowed
3923 after the decimal_point.
3924 * testsuite/22_locale/money_get/get/char/12.cc: New.
3925 * testsuite/22_locale/money_get/get/char/13.cc: New.
3926 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
3927 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
3929 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
3930 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3931 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3932 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3933 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3934 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3935 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3936 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3938 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
3940 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
3942 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
3944 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
3946 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
3947 it to decide whether FIONREAD should take an off_t or int argument.
3949 2004-02-05 Paolo Carlini <pcarlini@suse.de>
3951 * include/bits/stl_function.h: Minor formatting changes.
3953 2004-02-04 Zack Weinberg <zack@codesourcery.com>
3955 Revert previous change to config/abi/*/baseline_symbols.txt.
3957 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
3958 Zack Weinberg <zack@codesourcery.com>
3960 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
3962 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
3963 (__basic_file<char>::_M_open_mode): Delete.
3964 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
3966 * testsuite/27_io/basic_filebuf/close/char/9964.cc
3967 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3968 Correct flags to filebuf::open calls.
3970 * config/abi/alpha-freebsd5/baseline_symbols.txt
3971 * config/abi/alpha-linux-gnu/baseline_symbols.txt
3972 * config/abi/hppa-linux-gnu/baseline_symbols.txt
3973 * config/abi/i386-freebsd4/baseline_symbols.txt
3974 * config/abi/i386-freebsd5/baseline_symbols.txt
3975 * config/abi/i486-linux-gnu/baseline_symbols.txt
3976 * config/abi/ia64-linux-gnu/baseline_symbols.txt
3977 * config/abi/mips-linux-gnu/baseline_symbols.txt
3978 * config/abi/sparc-freebsd5/baseline_symbols.txt
3979 * config/abi/sparc-linux-gnu/baseline_symbols.txt
3980 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
3981 Remove entry for __basic_file<char>::_M_open_mode.
3983 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
3985 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
3987 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
3989 * testsuite/performance/20_util/producer_consumer.cc: New.
3990 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
3992 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
3994 * testsuite/performance/20_util/allocator.cc: Move to..
3995 * testsuite/performance/20_util/allocator/insert.cc: ...here.
3996 * testsuite/performance/20_util/allocator_thread.cc: Move to...
3997 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
3998 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
3999 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
4001 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
4003 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
4004 * docs/html/faq/index.txt: Regenerate.
4006 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
4008 * include/ext/debug_allocator.h: _M_extra now stands for the
4009 number of extra objects instead of the number of extra bytes.
4010 (debug_allocator::allocate): Adjust.
4011 (debug_allocator::deallocate): Adjust.
4013 * include/ext/pool_allocator.h: Fix typo.
4015 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
4016 Benjamin Kosnik <bkoz@redhat.com>
4018 * testsuite/performance/20_util/allocator.cc: Add map,
4020 * testsuite/performance/20_util/allocator_thread.cc: Same.
4022 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4024 * include/bits/basic_string.h (insert(iterator)): Remove,
4025 non-standard and already scheduled for removal.
4027 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4029 * include/bits/stl_iterator_base_funcs.h: Minor formatting
4030 and indentation tweaks.
4031 * include/bits/stl_iterator_base_types.h: Likewise.
4032 * include/bits/stl_list.h: Likewise.
4033 * include/bits/stl_map.h: Likewise.
4034 * include/bits/stl_tempbuf.h: Likewise.
4036 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4038 * include/bits/gslice.h, include/bits/gslice_array.h,
4039 include/bits/indirect_array.h, include/bits/mask_array.h,
4040 include/bits/slice_array.h, include/bits/stl_numeric.h,
4041 include/std/std_valarray.h: Update copyright years.
4043 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4045 * include/bits/gslice.h (gslice): Document.
4046 * include/bits/gslice_array.h (gslice_array): Document.
4047 * include/bits/indirect_array (indirect_array): Document.
4048 * include/bits/mask_array (mask_array): Document.
4049 * include/bits/slice_array.h (slice,slice_array): Document.
4050 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
4051 adjacent_difference): Document
4052 * include/std/std_valarray.h (valarray): Document.
4054 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
4056 * docs/html/19_diagnostics/howto.html: Move verbose terminate
4058 * docs/html/18_support/howto.html: Here.
4059 * docs/html/documentation.html: Add reference here.
4061 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4063 * config/locale/gnu/c++locale_internal.h: Remove prototypes
4064 of no longer used GLIBC thread locale functions.
4066 2004-02-02 Eric Christopher <echristo@redhat.com>
4067 Zack Weinberg <zack@codesourcery.com>
4069 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
4071 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
4072 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
4073 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
4074 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
4075 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
4076 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
4077 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
4078 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4081 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4083 * include/bits/stl_function.h: Additional minor tweaks.
4084 * include/bits/stl_multiset.h: Likewise.
4086 * include/bits/stl_queue.h: Minor tweaks.
4088 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4090 PR libstdc++/13976 (continued)
4091 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
4092 Make the second parameter unnamed, to void unused parameter
4094 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
4096 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4099 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
4100 Make the second parameter unnamed, to void unused parameter
4102 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
4103 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
4105 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4107 * include/bits/stl_algo.h: Additional minor tweaks.
4108 * include/bits/stl_map.h: Likewise.
4109 * include/bits/stl_multimap.h: Likewise.
4110 * include/bits/stl_multiset.h: Likewise.
4111 * include/bits/stl_set.h: Likewise.
4112 * include/bits/stl_tree.h: Likewise.
4114 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4116 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
4119 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4121 * include/bits/stl_function.h: Additional minor tweaks.
4123 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4125 * include/bits/deque.tcc: Wrap overlong lines, constify
4126 a few variables, reformat according to the coding standards.
4127 * include/bits/list.tcc: Likewise.
4128 * include/bits/stl_deque.h: Likewise.
4129 * include/bits/stl_function.h: Likewise.
4130 * include/bits/stl_iterator.h: Likewise.
4131 * include/bits/stl_iterator_base_funcs.h: Likewise.
4132 * include/bits/stl_iterator_base_types.h: Likewise.
4133 * include/bits/stl_list.h: Likewise.
4134 * include/bits/stl_map.h: Likewise.
4135 * include/bits/stl_multimap.h: Likewise.
4136 * include/bits/stl_multiset.h: Likewise.
4137 * include/bits/stl_relops.h: Likewise.
4138 * include/bits/stl_set.h: Likewise.
4140 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4142 * include/bits/stl_bvector.h: Wrap overlong lines, constify
4143 a few variables, reformat according to the coding standards.
4144 * include/bits/stl_tree.h: Likewise.
4146 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4148 * include/bits/stl_algo.h: Minor additional reformat, add
4150 * include/bits/stl_algobase.h: Add copyright year.
4152 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4154 * include/bits/stl_algo.h: Wrap overlong lines, constify
4155 a few variables, reformat according to the coding standards.
4156 * include/bits/stl_algobase.h: Likewise.
4157 * include/bits/stl_heap.h: Likewise.
4159 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4161 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
4163 * include/bits/basic_string.h: Fix two comments.
4165 2004-01-31 Per Bothner <per@bothner.com>
4167 * include/ext/mt_allocator.h
4168 (__mt_alloc::_S_thread_freelist_mutex): Guard with
4169 __GTHREAD_MUTEX_INIT.
4171 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4173 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
4175 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4177 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
4178 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
4179 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
4181 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
4183 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
4184 Don't use clear, but instead assign. Use insert.
4186 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
4188 * src/demangle.cc: Add instantiations.
4189 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
4190 * src/Makefile.in: Regenerate.
4192 2004-01-30 David Edelsohn <edelsohn@gnu.org>
4194 * src/allocator.cc: Protect _S_get_thread_id() and
4195 _S_thread_key_destr() with #ifdef __GTHREADS.
4197 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4199 Reshuffle performance testsuite.
4200 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
4201 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
4202 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
4203 fstream_seek_write.cc, ifstream_extract_float.cc,
4204 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
4205 list_create_fill_sort.cc, map_create_fill.cc,
4206 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
4207 ofstream_insert_float.cc, ofstream_insert_int.cc,
4208 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
4209 wchar_t_out.cc: Split into...
4210 * testsuite/performance/20_util/allocator.cc: New.
4211 * testsuite/performance/20_util/allocator_map_thread.cc: New.
4212 * testsuite/performance/20_util/allocator_thread.cc: New.
4213 * testsuite/performance/21_strings/string_append: New.
4214 * testsuite/performance/22_locale/is_wchar_t.cc: New.
4215 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
4216 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
4217 * testsuite/performance/22_locale/wchar_t_in.cc: New.
4218 * testsuite/performance/22_locale/wchar_t_length.cc: New.
4219 * testsuite/performance/22_locale/wchar_t_out.cc: New.
4220 * testsuite/performance/23_containers/container_benchmark.cc: New.
4221 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
4222 * testsuite/performance/23_containers/map_create_fill.cc: New.
4223 * testsuite/performance/26_numerics/complex_norm.cc: New.
4224 * testsuite/performance/27_io/cout_insert_int.cc: New.
4225 * testsuite/performance/27_io/filebuf_copy.cc: New.
4226 * testsuite/performance/27_io/filebuf_sputc.cc: New.
4227 * testsuite/performance/27_io/fstream_seek_write.cc: New.
4228 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
4229 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
4230 * testsuite/performance/27_io/ifstream_getline.cc: New.
4231 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
4232 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
4234 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4236 * include/bits/basic_string.tcc (_Rep::_S_create):
4237 Never allocate a string bigger than max_size(); always keep
4238 __capacity and __size in sync to avoid memory leaks at
4241 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4243 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4244 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
4245 the double loop, streamline.
4247 * include/bits/basic_string.tcc: Very minor tweaks.
4249 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
4251 * scripts/check_performance: Only compile with $THREAD_FLAG
4252 when test is marked to require it. Allow multiple
4253 compilations/executions of marked tests.
4254 * testsuite/testsuite_performance.h (report_performance):
4255 Report dynamic thread support status.
4256 (report_header): Likewise.
4257 * testsuite/performance/allocator.cc: Stabilize iteration
4258 count. Support more allocators. Mark each allocator test to
4259 run and report independently.
4260 * testsuite/performance/allocator_map_thread.cc: Likewise.
4261 * testsuite/performance/allocator_thread.cc: Likewise.
4263 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
4265 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
4266 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
4267 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
4268 std::get_temporary_buffer() instead of duplicating its code.
4269 Update to C++STYLE conventions.
4270 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
4271 new() instead of std::malloc().
4272 (return_temporary_buffer): Use ::operator delete() instead of
4275 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
4277 * include/bits/allocator.h: Temporary switch to new_allocator as
4278 the default to unjam bootstraps.
4280 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4282 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
4283 * include/Makefile.in: Regenerate.
4284 * include/bits/allocator_traits.h: Remove.
4285 * include/bits/allocator.h: Remove allocator_traits.h include, and
4287 (allocator): Empty base class, inherit from the underlying allocator.
4288 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
4289 * src/allocator.cc: ...here. New. For the underlying allocators.
4290 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
4291 * config/linker-map.gnu: Remove __pool_alloc bits.
4292 * src/Makefile.am (sources): Add allocator.cc.
4293 * src/Makefile.in: Regenerate.
4294 * testsuite/20_util/allocator/1.cc: Split second test into...
4295 * testsuite/20_util/allocator/8230.cc: ...this.
4296 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
4297 typedef to use std::allocatore. Format.
4298 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
4300 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
4301 __throw_bad_alloc calls. Don't include <memory>.
4302 * include/ext/malloc_allocator.h: Remove <memory> include.
4303 * include/ext/new_allocator.h (new_allocator): Same.
4304 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
4305 declaration. Switch __alloc to _Alloc.
4306 * include/ext/hashtable.h: Remove __alloc.
4307 * include/backward/alloc.h: Only inject allocator, not
4308 implementation details.
4310 * include/ext/mt_allocator.h: Replace free with delete.
4312 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4314 * src/globals_io.cc: Change to __gnu_internal namespace.
4315 * src/globals_locale.cc: Same.
4316 * src/locale_init.cc: Same.
4317 * src/ios_init.cc: Same.
4319 2004-01-28 Stefan Olsson <stefan@snon.net>
4321 * include/ext/mt_allocator.h: Replaced all malloc() calls with
4322 operator new(). Added support for the env variable
4323 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
4324 one in allocate() as well). Fix typos.
4326 2004-01-28 Paolo Carlini <pcarlini@suse.de>
4328 * include/bits/basic_string.h (_S_create(size_t,
4329 const _Alloc&): Change signature to take two size_type
4331 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4332 _InIterator, const _Alloc&, input_iterator_tag)): Update
4334 (_S_construct(_InIterator, _InIterator, const _Alloc&,
4335 forward_iterator_tag)): Likewise.
4336 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
4337 (_M_mutate(size_type, size_type, size_type)): Don't
4338 implement the exponential growth policy, demand it to
4339 _S_create, update call and simplify.
4340 (_M_clone(const _Alloc&, size_type)): Likewise.
4341 (_S_create(size_type, size_type, const _Alloc&)): Implement
4342 the growth policy, simplify otherwise.
4344 * include/bits/basic_string.h (_Rep::operator[]): Tweak
4345 signature to take a size_type, consistently with the other
4348 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
4350 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
4351 delete declarations, add include and test variable.
4353 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
4355 * include/bits/codecvt.h, include/bits/locale_facets.h,
4356 include/bits/postypes.h, include/bits/stl_bvector.h,
4357 include/bits/stl_multiset.h, include/bits/stl_set.h,
4358 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
4359 include/std/std_complex.h: Document.
4361 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
4364 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
4365 iword/pword selector.
4366 (ios_base::iword, ios_base::pword): Use it.
4367 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
4368 iword or pword member on alloc failure.
4369 * testsuite/27_io/ios_base/storage/11584.cc: New test.
4371 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
4372 PJ Darcy <darcypj@us.ibm.com>
4374 * configure.host: Add support for *-tpf.
4375 * crossconfig.m4: Likewise.
4376 * configure: Regenerate.
4377 * config/os/tpf: New directory.
4378 * config/os/tpf/os_defines.h: New file.
4379 * config/os/tpf/ctype_base.h: Likewise.
4380 * config/os/tpf/ctype_inline.h: Likewise.
4381 * config/os/tpf/ctype_noninline.h: Likewise.
4383 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4386 * include/bits/sstream.tcc: Guard use of extern template.
4388 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4390 * include/bits/basic_string.tcc
4391 (basic_string(const basic_string&, size_type, size_type),
4392 basic_string(const basic_string&, size_type, size_type,
4393 const _Alloc&)): Avoid unnecessarily constructing iterators.
4395 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4397 * config/locale/generic/c_locale.cc: Fix throw messages
4398 to use the __N marker.
4399 * config/locale/gnu/c_locale.cc: Likewise.
4400 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
4402 * docs/html/17_intro/C++STYLE: Likewise.
4403 * include/bits/basic_ios.tcc: Likewise.
4404 * include/bits/fstream.tcc: Likewise.
4405 * include/bits/vector.tcc: Likewise.
4406 * include/ext/ropeimpl.h: Likewise.
4407 * include/std/std_bitset.h: Likewise.
4408 * src/ios.cc: Likewise.
4409 * src/locale.cc: Likewise.
4410 * src/localename.cc: Likewise.
4412 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4414 * include/bits/basic_string.h (_M_replace_aux): Use the
4415 __N marker in throw message.
4416 * include/bits/basic_string.tcc (assign(const _CharT*,
4417 size_type), insert(size_type, const _CharT*, size_type),
4418 replace(size_type, size_type, const _CharT*, size_type),
4419 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
4422 * include/bits/basic_string.h, include/bits/basic_string.tcc:
4423 Fold overlong lines, minor formatting changes.
4425 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4427 * include/bits/basic_string.h (replace(iterator, iterator,
4428 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
4429 (replace(iterator, iterator, const _CharT*)): Ditto.
4430 (replace(iterator, iterator, const _CharT*, size_type)):
4431 Add missing _GLIBCXX_DEBUG_PEDASSERT.
4433 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4435 * include/bits/basic_string.tcc (replace(size_type,
4436 size_type, const _CharT*, size_type)): Implement optimized
4437 in-place algorithm for non-overlapping ranges.
4438 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
4439 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
4441 * include/bits/basic_string.tcc (insert(size_type,
4442 const _CharT*, size_type)): Tweak slightly.
4444 2004-01-26 Andreas Schwab <schwab@suse.de>
4446 * config/locale/gnu/monetary_members.cc: Restore locale before
4447 rethrowing exception.
4449 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4451 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
4453 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
4456 * include/bits/basic_string.tcc: Very minor tweaks.
4458 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4460 * testsuite/performance/string_append.cc: Increase number
4463 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4465 * include/bits/basic_string.h (erase(size_type, size_type),
4466 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
4467 instead, thus avoiding redundant check for length_error.
4469 * include/bits/basic_string.h: Tweak some comments.
4471 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4473 * include/bits/basic_string.tcc (operator+(const _CharT*,
4474 const basic_string&)): No need to go through the append
4475 taking two iterators.
4477 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4479 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
4480 Revert last change to use std::min: machine language is worse.
4481 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
4482 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4483 (find_last_not_of(_CharT, size_type)): Ditto.
4485 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
4486 size_type)): Discard the value returned by _M_check.
4487 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
4488 (append(const basic_string&, size_type, size_type)): Ditto.
4489 (copy(_CharT*, size_type, size_type)): Ditto.
4490 (compare(size_type, size_type, const basic_string&)): Ditto.
4491 (compare(size_type, size_type, const basic_string&,
4492 size_type, size_type)): Ditto.
4493 (compare(size_type, size_type, const _CharT*)): Ditto.
4494 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4496 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4498 * include/bits/basic_string.h (insert(size_type,
4499 const basic_string&, size_type, size_type)): Define inline here.
4500 * include/bits/basic_string.tcc (insert(size_type,
4501 const basic_string&, size_type, size_type)): Move inline.
4503 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4505 * include/bits/basic_string.h (assign(const basic_string&,
4506 size_type, size_type)): Define inline here.
4507 (replace(size_type, size_type, const basic_string&,
4508 size_type, size_type)): Ditto.
4509 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4510 _InputIterator, __false_type)): Only declare.
4511 (_M_replace(iterator, iterator, _InputIterator,
4512 _InputIterator)): Remove.
4513 * include/bits/basic_string.tcc (assign(const basic_string&,
4514 size_type, size_type)): Move inline.
4515 (replace(size_type, size_type, const basic_string&,
4516 size_type, size_type)): Ditto.
4517 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4518 _InputIterator, __false_type)): Define, now does also what
4519 _M_replace did before.
4520 * src/string-inst.cc (_M_replace): Don't instantiate.
4522 * include/bits/basic_string.tcc (find(const _CharT*,
4523 size_type, size_type)): Tidy.
4524 (rfind(_CharT, size_type)): Ditto.
4525 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
4526 (find_first_not_of(_CharT, size_type)): Ditto.
4527 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4528 (find_last_not_of(_CharT, size_type)): Ditto.
4530 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4533 * include/debug/bitset (operator|=): Fix typo.
4534 * testsuite/23_containers/bitset/operations/13838.cc: New.
4536 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4538 * include/bits/basic_string.tcc (insert(size_type,
4539 const _CharT*, size_type __n)): Fix length_error check.
4540 (replace(size_type, size_type, const _CharT*, size_type):
4541 Ditto; call _M_replace_safe.
4542 (_M_replace_aux(size_type, size_type, size_type, _CharT):
4543 Fix length_error check.
4544 (_M_replace(iterator, iterator, _InputIterator,
4545 _InputIterator)): Ditto, tweak.
4546 (_M_replace_safe(size_type, size_type, const _CharT*,
4547 size_type)): Remove length_error check.
4549 * include/bits/basic_string.tcc (append(const basic_string&),
4550 append(const basic_string&, size_type, size_type)): Tweak
4553 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
4554 size_type)): If __n == 0 don't call traits::copy.
4556 2004-01-23 Stefan Olsson <stefan@snon.net>
4558 * include/ext/mt_allocator.h: Reduce lock contention.
4560 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4563 * include/bits/fstream.tcc (underflow): Remove unused
4565 * include/bits/streambuf_iterator.h (equal): Ditto.
4566 * include/bits/locale_facets.h (_M_convert_from_char):
4569 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4572 * config/linker-map.gnu (nan): Delete.
4573 * libmath/mathconf.h (NAN, nan): Delete.
4574 * linkage.m4 (nan): Don't check for it.
4575 * libmath/nan.c: Delete file.
4577 * config.h.in, configure: Regenerate.
4579 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4581 * include/bits/basic_string.h (push_back(_CharT)):
4582 Call _M_replace_aux.
4583 (insert(size_type, const basic_string&)): Trivial tweak.
4584 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
4585 (insert(iterator, _CharT)): Ditto.
4586 (erase(size_type, size_type)): Ditto.
4587 (erase(iterator)): Ditto.
4588 (erase(iterator, iterator)): Ditto.
4589 (replace(size_type, size_type, size_type, _CharT)): Ditto.
4591 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
4594 * testsuite/performance/allocator_map_thread.cc: New test.
4596 2004-01-22 Paolo Carlini <pcarlini@suse.de>
4598 * include/bits/locale_facets.tcc
4599 (money_put::do_put(..., long double)): Use the basic_string
4600 constructor for char arrays, not that for C-strings, to pass
4601 __digits to do_put(..., const string_type&): __ws isn't
4604 2004-01-22 Paolo Carlini <pcarlini@suse.de>
4606 * include/bits/basic_string.h (_M_replace_safe): Change
4607 signatures to take size_types and const _CharT*.
4608 (_M_replace_aux): Likewise, takes size_types instead of
4610 (append(size_type, _CharT)): Update call.
4611 (assign(size_type, _CharT)): Ditto.
4612 (replace(iterator, iterator, size_type, _CharT)): Ditto.
4613 (_M_replace_dispatch(iterator, iterator, _Integer,
4614 _Integer, __true_type)): Ditto.
4615 * include/bits/basic_string.tcc (assign(const _CharT*,
4617 (insert(size_type, const _CharT*, size_type)): Ditto.
4618 (replace(size_type, size_type, const _CharT*,
4620 (_M_replace(iterator, iterator, _InputIterator,
4621 _InputIterator)): Ditto.
4622 (append(const basic_string&)): Ditto.
4623 (append(const basic_string&, size_type, size_type): Ditto.
4624 (append(const _CharT*, size_type): Ditto.
4625 (_M_replace_safe, _M_replace_safe): Change definitions
4626 accordingly, simplify.
4627 * string-inst.cc (_M_replace_safe): Don't instantiate.
4629 2004-01-21 Paolo Carlini <pcarlini@suse.de>
4631 * include/bits/basic_string.tcc (append(const basic_string&)):
4632 Revert previous change.
4633 (append(const basic_string&, size_type, size_type)): Revert
4634 previous change, use _M_check and _M_limit.
4636 2004-01-21 Paolo Carlini <pcarlini@suse.de>
4638 * include/bits/basic_string.h (_M_check): Change to return
4639 a checked __pos and take an additional const char* argument.
4640 (_M_fold): Rename to _M_limit, change to return a size_type,
4641 corresponding to the __off limited to the actual length.
4642 (insert(size_type, size_type, _CharT)): Update call, call
4644 (insert(iterator, _CharT)): Call replace(iterator, iterator,
4645 size_type, _CharT) instead.
4646 (erase(size_type, size_type)): Update calls.
4647 (replace(size_type, size_type, size_type, _CharT)): Ditto.
4648 (substr(size_type, size_type)): Use _M_check.
4649 * include/bits/basic_string.tcc (basic_string(const basic_string&,
4650 size_type, size_type)): Update calls.
4651 (basic_string(const basic_string&, size_type, size_type,
4652 const _Alloc&)): Ditto.
4653 (assign(const basic_string&, size_type, size_type)): Use the
4654 new _M_check and _M_limit.
4655 (insert(size_type, const basic_string&, size_type, size_type):
4657 (insert(size_type, const _CharT*, size_type)): Ditto.
4658 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
4659 (replace(size_type, size_type, const basic_string&,
4660 size_type, size_type)): Ditto.
4661 (append(const basic_string&)): Ditto.
4662 (append(const basic_string&, size_type, size_type)): Ditto.
4663 (copy(_CharT*, size_type, size_type)): Ditto.
4664 (compare(size_type, size_type, const basic_string&)): Ditto.
4665 (compare(size_type, size_type, const basic_string&,size_type,
4667 (compare(size_type, size_type, const _CharT*)): Ditto.
4668 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4670 2004-01-19 Stefan Olsson <stefan@snon.net>
4672 * include/ext/mt_allocator.h: If a thread, when it dies, still has
4673 memory on it's freelist this memory is not returned to global
4674 list. Simplification of deallocate so that memory is always
4675 returned to the calling thread id's freelist instead of to
4676 global. Fix typos. Add volatile where appropriate.
4678 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
4680 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
4681 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
4682 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
4684 2004-01-19 Paolo Carlini <pcarlini@suse.de>
4686 * src/debug.cc: Make sure all the names are prefixed with
4687 double (or single) underscore.
4689 2004-01-19 Paolo Carlini <pcarlini@suse.de>
4691 * src/debug.cc: Trivial formatting change.
4693 2004-01-19 Paolo Carlini <pcarlini@suse.de>
4695 * include/bits/basic_string.tcc (_S_construct(size_type,
4696 _CharT, const _Alloc&)): Remove redundant try/catch.
4697 (_M_mutate(size_type, size_type, size_type)): Ditto.
4698 (_M_clone(const _Alloc&, size_type)): Ditto.
4700 2004-01-18 Paolo Carlini <pcarlini@suse.de>
4702 * include/bits/basic_string.h (c_str()): Simplify, due to
4703 21.3.4 the internal representation is always kept null-terminated.
4704 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
4705 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
4706 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
4709 2004-01-18 Paolo Carlini <pcarlini@suse.de>
4711 * include/bits/basic_string.h (append(size_type, _CharT)):
4712 Moved inline, just call _M_replace_aux, no source iterators at
4713 risk of being clobbered.
4714 (assign(size_type, _CharT)): Call directly _M_replace_aux.
4715 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4716 input_iterator_tag)): Remove fifth unused argument.
4717 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4718 _InputIterator, __false_type)): Update call.
4719 * include/bits/basic_string.tcc (replace(size_type, size_type,
4720 const _CharT*, size_type)): Update call.
4721 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
4722 throw string literal.
4723 (_M_replace_safe(iterator, iterator, _ForwardIterator,
4724 _ForwardIterator)): Likewise.
4725 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4726 input_iterator_tag)): Remove fifth unused argument.
4727 (append(size_type __n, _CharT __c)): Move inline.
4728 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
4729 const C*, const C*, input_iterator_tag)): Remove fifth unused
4732 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
4734 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
4735 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
4737 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4739 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
4742 2004-01-15 Stefan Olsson <stefan@snon.net>
4744 * include/ext/mt_allocator.h: Reuse thread id's as soon as
4745 possible by changing the behaviour of thread_freelist to do
4746 push_front when threads die instead of push_back.
4748 2004-01-14 Paolo Carlini <pcarlini@suse.de>
4750 * include/bits/locale_facets.h (struct __numpunct_cache):
4751 Add member _M_grouping_size, caching the length of _M_grouping.
4752 (__numpunct_cache<>::_M_cache): Assign the latter.
4753 (__verify_grouping): Move declaration...
4754 * include/bits/locale_facets.tcc (__verify_grouping):
4755 ... here, change signature to take a const char* and a size_t
4756 for the grouping; not a template anymore.
4757 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
4758 Likewise change signature and tweak consistently.
4759 (num_get::_M_extract_float, num_get::_M_extract_int,
4760 num_put::_M_insert_int, num_put::_M_insert_float,
4761 money_get::do_get(string_type&), money_get::do_put(string_type)):
4763 * config/locale/generic/numeric_members.cc
4764 (numpunct<>::_M_initialize_numpunct): Assign the new member.
4765 * config/locale/gnu/numeric_members.cc
4766 (numpunct<>::_M_initialize_numpunct): Likewise.
4767 * src/locale-inst.cc (__add_grouping): Tweak signature.
4768 (__verify_grouping): Don't instantiate, not a template anymore.
4770 * include/bits/locale_facets.h: Rename _M_truename_len ->
4771 _M_truename_size, _M_falsename_len -> _M_falsename_size.
4772 * include/bits/locale_facets.tcc: Likewise.
4773 * config/locale/generic/numeric_members.cc: Likewise.
4774 * config/locale/gnu/numeric_members.cc: Likewise.
4776 2004-01-14 Stefan Olsson <stefan@snon.net>
4778 * include/ext/mt_allocator.h: Fixups.
4779 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
4780 * testsuite/performance/allocator_thread.cc: Same.
4782 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
4784 * testsuite/performance/ifstream_extract_float.cc: Add higher
4786 * testsuite/performance/ofstream_insert_float.cc: Same.
4788 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4790 * src/locale-misc-inst.cc (__convert_from_v(long),
4791 __convert_from_v(unsigned long), __convert_from_v(long long),
4792 __convert_from_v(unsigned long long)): Remove, unused.
4794 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
4796 * testsuite/performance/ifstream_extract_float.cc: New.
4797 * testsuite/performance/ofstream_insert_float.cc: Float generation
4800 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
4801 * 20_util/auto_ptr/1.cc: ...this.
4802 * 20_util/auto_ptr/2.cc: Same.
4803 * 20_util/auto_ptr/3.cc: Same.
4804 * 20_util/auto_ptr/3946.cc: Same.
4805 * 20_util/auto_ptr/4.cc: Same.
4806 * 20_util/auto_ptr/5.cc: Same.
4807 * 20_util/auto_ptr/6.cc: Same.
4808 * 20_util/auto_ptr/7.cc: Same.
4809 * 20_util/auto_ptr/assign_neg.cc
4810 * 20_util/pairs.cc: Break into...
4811 * 20_util/pair/1.cc: ...this.
4812 * 20_util/pair/2.cc: Same.
4813 * 20_util/pair/3.cc: Same.
4814 * 20_util/pair/4.cc: Same.
4816 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4818 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
4819 Set correctly just basefield, the only group that matters.
4821 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4823 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
4824 (_Rope_rep_base): Inherit directly from the rope allocator;
4825 use rebinding instead of _Alloc_traits; pick up data member
4826 from _Rope_rep_alloc_base.
4827 (_Rope_alloc_base): Eliminate.
4828 (_Rope_base): Inherit directly from the rope allocator; use
4829 rebinding instead of _Alloc_traits; pick up data member from
4831 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
4832 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
4834 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4837 * include/bits/basic_string.tcc (compare(size_type, size_type,
4838 const _CharT*, size_type)): Implement correctly the resolution
4839 of DR 5: basically, s is a char array, -not- a C string.
4840 * include/bits/basic_string.h: Tweak some comments.
4841 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
4842 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
4844 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
4846 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
4849 2004-01-12 Paolo Carlini <pcarlini@suse.de>
4851 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
4853 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
4856 2004-01-12 Paolo Carlini <pcarlini@suse.de>
4858 * include/bits/locale_facets.h (struct __numpunct_cache):
4859 Add members _M_truename_len and _M_falsename_len, caching
4860 the lengths of _M_truename and _M_falsename.
4861 (__numpunct_cache<>::_M_cache): Assign the latter.
4862 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
4863 num_put::do_put(bool)): Use the new members, thus avoiding
4864 computing string lengths again and again.
4865 * config/locale/generic/numeric_members.cc
4866 (numpunct<>::_M_initialize_numpunct): Assign the new members.
4867 * config/locale/gnu/numeric_members.cc
4868 (numpunct<>::_M_initialize_numpunct): Likewise.
4870 2004-01-12 Mark Mitchell <mark@codesourcery.com>
4872 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
4873 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
4875 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
4876 and remove Cygwin XFAIL.
4877 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
4878 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
4879 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
4880 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
4882 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4883 * testsuite/27_io/objects/char/7.cc: Likewise.
4884 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
4885 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
4886 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
4888 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
4890 * include/std/std_complex.h (std::complex<>::real): Return a
4891 reference. Add non-const overload.
4892 (std::complex<>::real): Likewise.
4893 (std::real): Likewise.
4894 (std::imag): Likewise.
4895 (std::operator+): Tidy.
4896 (std::operator-): Likewise.
4897 (std::operator*): Likewise.
4898 (std::operator/): Likewise.
4899 (std::operator>>): Likewise.
4901 2004-01-11 Paolo Carlini <pcarlini@suse.de>
4904 * include/bits/fstream.tcc (imbue): Exploit the external
4905 buffer to imbue 'on the fly' a new locale and convert its
4906 remainder with the new codecvt facet.
4907 (underflow): Tweak slightly to deal with this special case.
4908 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
4909 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
4910 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
4911 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
4912 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
4914 2004-01-10 Paolo Carlini <pcarlini@suse.de>
4916 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
4919 2004-01-10 Paolo Carlini <pcarlini@suse.de>
4922 * include/bits/locale_classes.h (class locale): Fix category
4924 * testsuite/22_locale/locale/13630.cc: Add.
4926 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
4928 * include/bits/locale_facets.h: Make a name really dependent. This
4929 will be needed when Core Issue 224 is implemented.
4931 2004-01-09 Paolo Carlini <pcarlini@suse.de>
4933 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
4934 * testsuite/performance/allocator_thread.cc: Likewise.
4936 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
4938 * crossconfig.m4: Add LFS, io bits to linux cross config.
4939 * acconfig.h: Remove obsolete bits, reorder.
4940 * config.h.in: Regenerate.
4944 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
4946 * include/bits/stl_list.h:
4947 * include/bits/list.tc:
4949 Performance enhancements for destructor, push_front(),
4950 push_back(), pop_front(), pop_back(), sort()
4951 Eliminated static_casts where possible.
4952 Moved code out of header files into new src/list.cc
4953 implementation file for library where possible.
4954 Remove inheritance from iterator class and create separate
4955 classes for non-constant and constant iterators.
4956 * include/bits/stl_tree.h (_Rb_tree class):
4958 Only erase contents in destructor.
4959 Eliminate unnecessary initialization in assignment operator.
4960 Optimize for the nominal case by not checking whether
4961 container is empty in clear().
4962 Re-order test in _M_insert() to improve performance.
4963 Move initialization of new node's left & right pointers to
4964 src/tree.cc to where new node's colour is initialized
4965 and to reduce the amount of inline code.
4966 Use _M_leftmost() and _M_end() to improve readability where
4968 Create separate classes for non-constant and constant
4969 iterators to clarify code, avoid extra template parameters and
4970 casting away constness.
4972 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
4974 * src/Makefile.am (sources): Add list.cc, tree.cc.
4975 * src/stl_tree.cc: Move to...
4976 * src/tree.cc: ...here.
4978 * config/linker-map.gnu: Tweaks.
4979 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
4980 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
4982 * bits/stl_vector.h: Column wrap comments.
4984 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
4986 (re-open) PR libstdc++/12658
4987 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
4988 (locale::global): Likewise.
4990 2004-01-07 Paolo Carlini <pcarlini@suse.de>
4992 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
4993 Remove redundant #include.
4994 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
4995 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
4996 re-enable normal testing.
4997 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
4999 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5000 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
5002 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
5004 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
5006 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
5008 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
5010 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
5012 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
5014 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
5015 More properly, #include <locale>.
5016 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
5017 Remove redundant #include.
5018 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
5019 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
5020 redundant DejaGnu directive.
5021 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
5024 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
5025 Stefan Olsson <stefan@snon.net>
5027 * scripts/check_performance: Use -pthread.
5028 * testsuite/performance/allocator.cc: Tweaks, add list.
5029 * testsuite/performance/allocator_thread.cc: New.
5031 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
5033 * include/bits/locale_facets.h: Document public classes and
5035 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
5038 2004-01-06 Paolo Carlini <pcarlini@suse.de>
5040 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
5041 Remove redundant #includes.
5042 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
5044 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
5046 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
5047 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
5048 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
5049 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
5050 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
5051 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
5052 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
5053 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
5054 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
5055 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
5056 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
5057 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
5058 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
5059 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
5060 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
5062 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
5064 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
5066 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
5068 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
5070 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
5071 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
5072 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
5074 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5076 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5077 Remove redundant #includes.
5078 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
5080 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
5082 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
5084 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
5086 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
5088 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5090 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5092 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
5094 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
5096 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
5098 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
5100 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
5103 2004-01-04 Mark Mitchell <mark@codesourcery.com>
5106 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
5108 * testsuite/27_io/basic_fstream/4.cc: Likewise.
5109 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
5110 * testsuite/27_io/basic_ios/4.cc: Likewise.
5111 * testsuite/27_io/basic_iostream/4.cc: Likewise.
5112 * testsuite/27_io/basic_istream/4.cc: Likewise.
5113 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
5114 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
5115 * testsuite/27_io/basic_ostream/4.cc: Likewise.
5116 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
5117 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
5118 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
5120 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5122 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
5123 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
5124 always use double underscored names.
5125 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
5127 * include/bits/locale_facets.h (struct __numpunct_cache):
5128 Dimension _M_atoms_out and _M_atoms_in one position smaller.
5129 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out