1 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
3 * testsuite/ext/headers.cc: Add includes, compile only.
4 * testsuite/ext/hash_map.cc: Move to...
5 * testsuite/ext/hash_map/1.cc: ...here.
6 * testsuite/ext/14648.cc: Move to...
7 * testsuite/ext/hash_map/14648.cc: ...here.
8 * testsuite/ext/hash_map/instantiate.cc: Add.
9 * testsuite/ext/hash_set.cc: Move to...
10 * testsuite/ext/hash_set/1.cc: ...here.
11 * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
12 * testsuite/ext/hash_set/instantiate.cc: ...here.
13 * testsuite/ext/hash_check_construct_destroy.cc: Move to...
14 * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
15 * testsuite/ext/slist_check_construct_destroy.cc: Move to...
16 * testsuite/ext/slist/check_construct_destroy.cc: ...here.
17 * testsuite/ext/slist_explicit_instantiation.cc: Move to...
18 * testsuite/ext/slist/instantiate.cc: ...here.
20 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
22 * include/ext/mt_allocator.h: Tweaks.
23 * src/mt_allocator.cc: Same.
25 2004-10-14 Dhruv Matani <dhruvbird@gmx.net>
27 * ext/bitmap_allocator.h: Clean-up add/remove functions.
28 * src/bitmap_allocator.cc: New file. Contains the out-of-line
29 function definitions, static initialization of variables, and
30 explicit instantiations needed for the allocator.
31 * src/Makefile.am: Add.
32 * src/Makefile.in: Regenerate.
33 * config/linker.map.gnu: Add the necessary symbols.
35 2004-10-13 Paolo Carlini <pcarlini@suse.de>
37 * include/bits/basic_string.tcc (_S_create): Use consistently
38 the exponential policy, simplify.
39 * testsuite/performance/21_strings/string_append_2.cc: New.
41 * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
42 * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
43 that case sizeof(_Rep) == 24).
45 2004-10-12 Paolo Carlini <pcarlini@suse.de>
48 * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
49 wrong commit of 2004-10-07.
51 2004-10-12 Scott Snyder <snyder@fnal.gov>
54 * testsuite/23_containers/set/modifiers/17948.cc: New.
56 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
58 * include/bits/stl_deque.h: Correct for over-long lines.
60 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
63 * include/ext/mt_allocator.h (__pool::_M_destroy): New.
64 * src/mt_allocator.cc (__pool::~__pool): Change definitions to
66 * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
67 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
68 * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
69 * configure: Regenerate.
70 * config/linker-map.gnu: Tweak exports.
71 * docs/html/ext/mt_allocator.html: Update docs.
72 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
73 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.
74 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
75 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
76 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
77 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
78 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
79 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
81 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
83 PR libstdc++/16614 continued.
84 * include/ext/mt_allocator.h
85 (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
86 specific type characteristics.
87 (__pool_base): Add constructor that takes a _Tune argument.
89 * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
90 * testsuite/ext/mt_allocator/tune-4.cc: Same.
91 * testsuite/ext/mt_allocator/tune-3.cc: Same.
93 2004-10-11 Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
94 Paolo Carlini <pcarlini@suse.de>
96 * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
97 Deal properly with exceptions thrown by ::operator new(size_t).
98 * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
100 * include/ext/pool_allocator.h: Include <cstdlib>.
102 2004-10-10 Benjamin Kosnik <bkoz@redhat.com>
104 * include/bits/functexcept.h: Add guards.
106 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
107 * configure: Regenerate.
109 2004-10-10 Paolo Carlini <pcarlini@suse.de>
111 * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
112 Give __ret a default value, thus avoiding spurious warnings.
114 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
115 words or linux.words, otherwise exit.
116 * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
118 2004-10-09 Paolo Carlini <pcarlini@suse.de>
120 * include/std/std_memory.h (__get_temporary_buffer): Don't use
121 INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
123 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
126 2004-10-08 Benjamin Kosnik <bkoz@redhat.com>
128 * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
129 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
130 * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
131 * configure: Regenerate.
132 * src/mt_allocator.cc (__pool::~__pool): Make conditional on
133 _GLIBCXX_USE___CXA_ATEXIT macro.
134 * docs/html/ext/mt_allocator.html: Add note about deallocation.
135 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
136 with _GLIBCXX_USE___CXA_ATEXIT.
137 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
138 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
139 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
140 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
141 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
142 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
143 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
145 2004-10-07 Phil Edwards <phil@codesourcery.com>
147 * testsuite/lib/libstdc++.exp: Update list of undefined functions.
149 2004-10-07 Paolo Carlini <pcarlini@suse.de>
151 * include/bits/list.tcc (operator=): Avoid iterator postincrement.
152 * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
154 2004-10-07 Benjamin Kosnik <bkoz@redhat.com>
157 * include/tr1/array: New.
158 * include/Makefile.am (tr1_headers): New.
160 (install-headers): New.
161 (allstamped): Add stamp-tr1.
163 * include/ext/array_allocator.h: New.
164 * include/Makefile.am: Add.
165 * include/Makefile.in: Regenerate.
166 * testsuite/ext/array_allocator/1.cc: New.
167 * testsuite/ext/array_allocator/2.cc: New.
169 2004-10-07 Richard Earnshaw <rearnsha@arm.com>
171 * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
173 2004-10-07 Roger Sayle <roger@eyesopen.com>
176 * configure.ac: Newlib does not provide strtold.
177 * configure: Regenerate.
179 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
181 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
182 (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
183 * configure: Regenerated.
184 * testsuite/Makefile.am (CLEANFILES): Add TEST for
185 check-performance executables.
188 * testsuite/Makefile.in: Regenerate.
189 * scripts/create_testsuite_files: Filter thread tests.
191 * testsuite/thread/pthread1.cc: Remove macro conditionals: this
192 file will only be run by thread enabled configurations.
193 * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
194 * testsuite/thread/pthread6.cc: Same.
195 * testsuite/thread/pthread5.cc: Same.
196 * testsuite/thread/pthread4.cc: Same.
197 * testsuite/thread/pthread3.cc: Same.
198 * testsuite/thread/pthread2.cc: Same.
200 * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
201 * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
202 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
203 * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
204 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
205 * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
206 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
207 * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
208 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
210 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
211 Paolo Carlini <pcarlini@suse.de>
214 * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
215 to old locking order.
217 2004-10-06 Paolo Carlini <pcarlini@suse.de>
219 * include/std/std_sstream.h (_M_sync): When the caller is
220 setbuf, don't trust _M_string.capacity() to be the size of
221 the buffer area, use _M_string.size() in this case.
222 * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
223 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
225 * include/bits/sstream.tcc (overflow): Avoid calling string::assign
226 unnecessarily when the current _M_string is empty.
228 2004-10-06 Paolo Carlini <pcarlini@suse.de>
230 * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
231 Avoid iterator postincrement.
232 (__rotate): Likewise.
234 * include/bits/stl_algo.h: Minor formatting tweaks.
236 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
238 * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
239 Avoid iterator postincrement; fix swapping middle element with
240 itself on odd-length inputs.
242 2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
245 * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
246 options as compile-time constant enums.
247 (__pool_base::_Tune::is_default): New.
248 (__pool_base::_Block_address): New.
249 (__pool_base): Rearrange data members.
250 (__pool::_M_reserve_memory): To _M_reserve_block.
251 (__pool::_M_reclaim_memory): To _M_reclaim_block.
252 (__pool::_Bin_record): Add _Block_address data member.
253 (__pool<false>): Add _M_thread_freelist_initial.
254 (__pool::~__pool): Declare.
255 (__common_pool_policy): Move static data member to...
256 (__common_pool_policy::_S_get_pool): ...here, make static local.
257 (__per_type_pool_policy): Move static data member to...
258 (__per_type_pool_policy::_S_get_pool): ...here, make static local.
259 (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
260 Remove static member definitions. Use define for __default_policy.
261 * src/mt_allocator.cc: Same.
262 * config/linker-map.gnu: Don't export _S_get_pool. Renames.
263 * testsuite/ext/new_allocator: New.
264 * testsuite/ext/new_allocator/instantiate.cc: New.
265 * testsuite/ext/new_allocator/check_new.cc: New.
266 * testsuite/ext/new_allocator/deallocate_global.cc: New.
267 * testsuite/ext/new_allocator/deallocate_local.cc: New.
268 * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
270 * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
271 * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
272 * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
273 * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
274 * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
275 * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
276 * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
277 * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
278 * testsuite/ext/mt_allocator/deallocate.cc: New.
279 * testsuite/ext/malloc_allocator/deallocate.cc: New.
280 * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
281 * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
283 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
285 * configure.host (abi_baseline_pair): Define for s390-*-linux* and
287 * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
288 * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
290 2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
292 * include/bits/stl_algobase.h (iter_swap): delegate to swap via
293 __iter_swap when iterator's value_types are equal.
294 (struct __iter_swap): New.
296 2004-10-04 Benjamin Kosnik <bkoz@redhat.com>
298 * configure.ac (libtool_VERSION): To 6:3:0.
299 * configure: Regnerate.
300 * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
302 2004-10-04 Roger Sayle <roger@eyesopen.com>
303 Eric Botcazou <ebotcazou@libertysurf.fr>
306 * config/linker-map.gnu: Synchronize the current list of stub
307 functions from libmath.
309 2004-10-03 Roger Sayle <roger@eyesopen.com>
311 * config/locale/generic/c_locale.cc (__convert_to_v): Use
312 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
313 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
314 to check for presence of strtold.
316 2004-10-03 Paolo Carlini <pcarlini@suse.de>
318 * include/bits/stl_list.h: Trivial formatting fixes.
319 * include/bits/stl_tree.h: Likewise.
321 2004-10-03 Paolo Carlini <pcarlini@suse.de>
323 * include/bits/sstream.tcc (seekpos): In case of success, just
326 2004-10-01 Paolo Carlini <pcarlini@suse.de>
328 * include/bits/sstream.tcc (pbackfail): Implement correctly
329 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
331 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
332 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
333 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
334 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
335 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
337 2004-10-01 Paolo Carlini <pcarlini@suse.de>
339 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
340 conditionals consistently with seekoff.
341 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
342 (_M_sync): Simplify a bit, clean-up comment.
344 2004-09-30 Paolo Carlini <pcarlini@suse.de>
346 PR libstdc++/10975 (DR 453)
347 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
349 * docs/html/ext/howto.html: Add an entry for DR 453.
350 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
351 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
352 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
353 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
354 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
355 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
357 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
358 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
360 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
362 2004-09-29 Paolo Carlini <pcarlini@suse.de>
364 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
365 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
366 (str()): Slightly tweak, protect from pptr() == 0.
367 (_M_update_egptr()): Likewise.
368 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
369 for an empty buffer use __beg instead of _M_string.capacity().
370 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
371 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
373 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
374 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
375 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
376 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
378 2004-09-29 Paolo Carlini <pcarlini@suse.de>
379 Benjamin Kosnik <bkoz@redhat.com>
381 * testsuite/testsuite_io.h (class constraint_buf): New, extended
382 and templatized version of constraint_filebuf; add typedefs for
383 streambuf/stringbuf/filebuf and wchar_t counterparts.
385 2004-09-28 Paolo Carlini <pcarlini@suse.de>
388 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
389 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
390 don't deal with _S_empty_rep.
391 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
392 _M_leak_hard, _M_mutate): Likewise.
393 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
394 * acconfig.h: Add corresponding undef.
395 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
396 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
397 * configure: Regenerate.
398 * config.h.in: Likewise.
400 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
401 Paolo Carlini <pcarlini@suse.de>
403 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
404 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
405 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
406 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
409 2004-09-28 Paolo Carlini <pcarlini@suse.de>
411 * README: Remove obsolete entry about include/c_shadow.
413 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
416 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
418 2004-09-24 Paolo Carlini <pcarlini@suse.de>
420 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
421 rename a variable, move an assignment.
422 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
424 2004-09-24 Paul Brook <paul@codesourcery.com>
426 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
428 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
429 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
430 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
431 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
432 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
433 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
435 2004-09-23 Zack Weinberg <zack@codesourcery.com>
437 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
438 * testsuite/23_containers/map/operators/1_neg.cc
439 * testsuite/23_containers/set/operators/1_neg.cc:
440 Update locations and/or regexps of dg-error markers.
442 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
444 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
445 Add rule to build ${host_builddir}/gthr-tpf.h.
446 * include/Makefile.in: Regenerate.
448 2004-09-23 Paolo Carlini <pcarlini@suse.de>
449 Magnus Fromreide <magfr@lysator.liu.se>
451 * include/bits/boost_concept_check.h (struct _SequenceConcept):
452 Remove wrong requirement, i.e., not present in Table 67.
454 2004-09-21 Paolo Carlini <pcarlini@suse.de>
456 PR libstdc++/12882 (cont)
457 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
458 * configure: Regenerate.
459 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
460 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
461 trivial showmanyc for large files too.
463 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
465 * include/bits/stl_algo.h (remove): Remove too restrictive
468 2004-09-17 Paolo Carlini <pcarlini@suse.de>
470 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
471 as per Nathan's original suggestion.
473 2004-09-17 Paolo Carlini <pcarlini@suse.de>
475 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
477 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
478 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
479 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
481 2004-09-17 Paolo Carlini <pcarlini@suse.de>
482 Andrea Arcangeli <andrea@suse.de>
484 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
485 call unnecessarily sync, that is fflush: the library, since 3.4.0
486 does not use buffered fread/fwrite.
487 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
489 2004-09-15 Mark Mitchell <mark@codesourcery.com>
491 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
493 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
495 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
496 (__cxa_vec_new): Use it.
497 (__cxa_vec_new2): Likewise.
498 (__cxa_vec_new3): Likewise.
499 (__cxa_vec_cdtor): Likewise.
500 (__cxa_vec_cctor): Likeiwse.
501 (__cxa_vec_dtor): Likewise.
502 (__cxa_vec_cleanup): Likewise.
503 (__cxa_vec_delete2): Likewise.
504 (__cxa_vec_delete3): Likewise.
505 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
506 (__cxa_vec_new2): Likewise.
507 (__cxa_vec_new3): Likewise.
508 (__cxa_vec_cdtor): Likewise.
509 (__cxa_vec_cctor): Likeiwse.
510 (__cxa_vec_dtor): Likewise.
511 (__cxa_vec_cleanup): Likewise.
512 (__cxa_vec_delete2): Likewise.
513 (__cxa_vec_delete3): Likewise.
514 (__aeabi_vec_ctor_nocookie_nodtor): New function.
515 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
516 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
517 (__aeabi_vec_new_cookie_noctor): Likewise.
518 (__aeabi_vec_new_nocookie): Likewise.
519 (__aeabi_vec_new_cookie_nodtor): Likewise.
520 (__aeabi_vec_new_cookie): Likewise.
521 (__aeabi_vec_dtor): Likewise.
522 (__aeabi_vec_dtor_cookie): Likewise.
523 (__aeabi_vec_delete): Likewise.
524 (__aeabi_vec_delete3): Likewise.
525 (__aeabi_vec_delete3_nodtor): Likewise.
526 (__aeabi_atexit): Likewise.
528 2004-09-14 Nathan Myers <ncm@cantrip.org>
530 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
531 for 11722: copy can replace move; the common case is __avail == 0.
533 2004-09-14 Paolo Carlini <pcarlini@suse.de>
535 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
536 to __is_scalar, more clear and consistent with "tr1" naming.
537 * include/bits/stl_algobase.h: Update consistently throughout.
539 2004-09-13 Paolo Carlini <pcarlini@suse.de>
542 * include/std/std_fstream.h (xsgetn): Declare only.
543 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
544 always_noconv() case: when __n > __buflen, copy the available
545 buffer and issue a direct read.
546 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
548 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
551 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
553 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
554 libstdc++_maybe_build_wrapper instead of using local code.
556 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
558 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
560 2004-09-03 Jan Beulich <jbeulich@novell.com>
562 * crossconfig.m4: Add NetWare as a target.
563 * configure: Regenerate.
565 2004-09-02 Mark Mitchell <mark@codesourcery.com>
567 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
570 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
571 Simon Richter <Simon.Richter@hogyros.de>
574 * include/bits/istream.tcc: Add extern template for iostream
575 char and wchar_t instantiations.
577 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
578 Leland Wang <llwang@infor.org>
581 * include/ext/ropeimpl.h (rope::_S_compare): Use
582 _Rope_constants::_S_leaf.
584 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
587 * include/Makefile.am (ext_headers): Remove demangle.h.
588 * include/Makefile.in: Regenerate.
589 * include/ext/demangle.h: Remove.
591 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
594 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
596 (__pool): New, specialize.
597 (__common_pool): New, static bits here.
598 (__per_type_pool): New, and here.
599 (__mt_alloc_base): New.
600 (__mt_alloc): Add template parameter, inherit from it.
601 * src/allocator.cc: Split this...
602 * src/allocator-inst.cc: And this...
603 * src/pool_allocator.cc: ...into this.
604 * src/mt_allocator.cc: ... and this. Add definitions for
606 * src/Makefile.am (sources): Split allocator.cc to
607 pool_allocator.cc and mt_allocator.cc.
608 * src/Makefile.in: Regenerate.
609 * config/linker-map.gnu: Add symbols.
610 * docs/html/ext/mt_allocator.html: Document new design.
611 * testsuite/ext/mt_allocator/tune-1.cc: New.
612 * testsuite/ext/mt_allocator/tune-2.cc: New.
613 * testsuite/ext/mt_allocator/tune-3.cc: New.
614 * testsuite/ext/mt_allocator/tune-4.cc: New.
616 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
617 * testsuite/ext/allocators.cc: Use check_new, split into...
618 * testsuite/ext/mt_allocator/check_new.cc: this.
619 * testsuite/ext/pool_allocator/check_new.cc: this.
620 * testsuite/ext/malloc_allocator/check_new.cc: this.
621 * testsuite/ext/debug_allocator/check_new.cc: this.
622 * testsuite/ext/mt_allocator/instantiate.cc: this.
623 * testsuite/ext/pool_allocator/instantiate.cc: this.
624 * testsuite/ext/malloc_allocator/instantiate.cc: this.
625 * testsuite/ext/debug_allocator/instantiate.cc: this.
627 2004-08-30 Phil Edwards <phil@codesourcery.com>
629 * docs/html/install.html: Update locales list (from Paolo).
630 Remove other redundant information and point to the GCC install
633 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
635 * include/ext/pool_allocator.h: Rename __pool_base to
637 * src/allocator.cc: Same.
638 * config/linker-map.gnu: Same.
640 2004-08-30 Paolo Carlini <pcarlini@suse.de>
641 Kenneth C. Schalk <ken@xorian.net>
644 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
645 Check the return value of fclose/sync, loop on EINTR.
646 (__basic_file<char>::sys_open): Likewise, for sync.
648 2004-08-29 Paolo Carlini <pcarlini@suse.de>
650 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
651 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
652 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
653 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
654 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
656 2004-08-27 Jason Merrill <jason@redhat.com>
659 * libsupc++/guard.cc (static_mutex): Internal class implementing a
660 recursive mutex which controls initialization of local statics.
661 (__gnu_cxx::recursive_init): New exception class.
662 (__cxa_guard_acquire): Deal with locking and recursion detection.
663 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
665 2004-08-27 Matthias Klose <doko@debian.org>
667 * configure.host: For mips*-*-linux* update cpu_include_dir
668 after atomicity_dir is set.
670 2004-08-27 Matthias Klose <doko@debian.org>
672 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
673 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
674 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
677 2004-08-27 Paolo Carlini <pcarlini@suse.de>
679 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
680 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
681 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
682 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
683 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
685 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
687 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
688 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
689 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
690 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
692 2004-08-25 Paolo Carlini <pcarlini@suse.de>
694 PR libstdc++/17038 (partial)
695 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
697 * include/bits/locale_facets.h (class __timepunct): Add FIXME
698 comment about _M_put.
699 * config/locale/generic/time_members.cc (_M_put): Always null
701 * config/locale/gnu/time_members.cc (_M_put): Likewise.
702 * testsuite/22_locale/time_put/put/char/17038.cc: New.
703 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
705 2004-08-24 Paolo Carlini <pcarlini@suse.de>
707 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
708 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
709 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
710 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
711 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
712 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
714 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
716 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
718 2004-08-22 Matthias Klose <doko@debian.org>
720 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
721 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
723 2004-08-23 Paolo Carlini <pcarlini@suse.de>
725 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
726 * aclocal.m4: Regenerate with automake-1.9.1.
727 * configure: Regenerate.
728 * Makefile.in: Likewise.
729 * include/Makefile.in: Likewise.
730 * libmath/Makefile.in: Likewise.
731 * libsupc++/Makefile.in: Likewise.
732 * po/Makefile.in: Likewise.
733 * src/Makefile.in: Likewise.
734 * testsuite/Makefile.in: Likewise.
736 2004-08-22 Paolo Carlini <pcarlini@suse.de>
738 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
739 to a signed type, long according to the resolution of DR 359.
740 * testsuite/22_locale/num_put/put/char/9.cc: New.
741 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
743 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
744 Simplify a bit: no need to clear showpos.
746 2004-08-21 Paolo Carlini <pcarlini@suse.de>
748 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
751 2004-08-21 Paolo Carlini <pcarlini@suse.de>
753 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
754 wchar_t type for the fill argument; minor formatting tweaks.
755 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
756 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
757 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
758 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
759 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
760 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
762 2004-08-21 Paolo Carlini <pcarlini@suse.de>
764 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
765 with _M_word != _M_local_word two times, redundantly.
767 2004-08-20 Jason Merrill <jason@redhat.com>
769 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
770 _GLIBCXX_ to #pragma lines.
771 * include/Makefile.in: Update.
773 2004-08-20 Paolo Carlini <pcarlini@suse.de>
775 PR libstdc++/7219 (continued)
776 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
778 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
779 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
781 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
783 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
785 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
786 barrier to locking asm.
788 2004-08-20 Paolo Carlini <pcarlini@suse.de>
790 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
791 actually the warning is a front-end bug (c++/17120).
793 2004-08-20 Matthias Klose <doko@debian.org>
795 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
797 2004-08-20 Paolo Carlini <pcarlini@suse.de>
799 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
800 used as truth value warning.
802 2004-08-20 Paolo Carlini <pcarlini@suse.de>
804 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
807 2004-08-20 Paolo Carlini <pcarlini@suse.de>
809 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
811 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
813 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
815 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
817 2004-08-19 Paolo Carlini <pcarlini@suse.de>
819 * testsuite/performance/20_util/allocator/insert.cc: For std::map
820 instantiate the allocator for a correct pair type.
821 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
822 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
823 * testsuite/performance/20_util/allocator/producer_consumer.cc:
826 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
827 minor formatting fixes.
828 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
830 2004-08-19 Paolo Carlini <pcarlini@suse.de>
832 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
834 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
835 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
836 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
837 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
838 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
839 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
840 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
842 2004-08-19 Paolo Carlini <pcarlini@suse.de>
844 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
846 2004-08-18 Matthias Klose <doko@debian.org>
848 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
849 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
850 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
852 2004-08-17 Paolo Carlini <pcarlini@suse.de>
854 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
856 2004-08-17 Paolo Carlini <pcarlini@suse.de>
858 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
860 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
862 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
864 2004-08-16 Paolo Carlini <pcarlini@suse.de>
866 * include/bits/indirect_array.h: Trivial formatting fixes.
867 * include/bits/valarray_after.h: Likewise.
868 * include/bits/valarray_array.h: Likewise.
869 * src/valarray-inst.cc: Likewise.
871 2004-08-15 Paolo Carlini <pcarlini@suse.de>
873 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
874 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
875 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
877 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
878 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
879 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
880 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
881 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
883 2004-08-15 Paolo Carlini <pcarlini@suse.de>
885 * include/bits/deque.tcc: Trivial formatting fixes.
887 2004-08-15 Paolo Carlini <pcarlini@suse.de>
889 * include/bits/deque.tcc: Trivial formatting fixes.
891 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
892 Remove unneded typedef.
894 * include/bits/locale_facets.tcc: Very minor tweaks.
896 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
897 type for the fill argument.
898 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
899 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
900 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
901 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
902 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
903 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
904 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
905 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
907 2004-08-13 Paolo Carlini <pcarlini@suse.de>
909 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
910 memmove is not needed, memcpy suffices.
912 2004-08-13 Paolo Carlini <pcarlini@suse.de>
914 * include/std/std_fstream.h (class basic_ifstream,
915 class basic_ofstream, class basic_fstream): Add const overloads
916 of is_open, as per DR 365 [WP].
917 * docs/html/ext/howto.html: Add an entry for DR 365.
919 2004-08-12 Paolo Carlini <pcarlini@suse.de>
921 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
923 2004-08-12 Paolo Carlini <pcarlini@suse.de>
926 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
927 to the returned value, reorganize a bit.
928 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
929 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
931 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
932 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
933 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
934 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
936 2004-08-12 Paul Brook <paul@codesourcery.com>
938 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
939 _GLIBCXX_CXA_VEC_CTOR_RETURN.
940 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
941 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
942 __cxa_vec_ctor_return.
943 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
944 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
946 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
948 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
949 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
950 src/Makefile.in, testsuite/Makefile.in: Regenerate
952 2004-08-12 Jan Beulich <jbeulich@novell.com>
954 * config/locale/generic/ctype_members.cc
955 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
956 initializer for return value, as that is invalid for enumerated types.
957 * config/locale/gnu/ctype_members.cc
958 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
960 2004-08-11 Paolo Carlini <pcarlini@suse.de>
962 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
964 2004-08-11 Paolo Carlini <pcarlini@suse.de>
966 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
968 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
969 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
970 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
971 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
972 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
973 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
974 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
975 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
976 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
977 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
978 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
979 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
980 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
981 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
982 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
983 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
984 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
985 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
986 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
987 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
988 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
990 2004-08-11 Paolo Carlini <pcarlini@suse.de>
991 Petur Runolfsson <peturr02@ru.is>
994 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
995 standard streams are constructed.
996 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
998 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1000 * include/bits/stl_bvector.h: Trivial formatting fixes.
1002 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1004 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1006 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
1007 Paolo Carlini <pcarlini@suse.de>
1009 * src/debug.cc (_Error_formatter::_M_print_string): In order
1010 to print individual words from __string, _M_format_word can't
1011 be called since may be just sprintf, thus ignoring completely
1012 __n: instead, use memmove and append '\0' by hand.
1014 2004-08-07 Paolo Carlini <pcarlini@suse.de>
1016 * config/locale/generic/c_locale.h (__convert_from_v): Don't
1017 use a default for __prec, assume __prec >= 0 and simplify.
1018 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1019 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1020 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1022 2004-08-04 Phil Edwards <phil@codesourcery.com>
1024 * docs/html/configopts.html: Emphasize that options change.
1025 * docs/html/17_intro/configury.html: Update links.
1027 2004-08-03 Paolo Carlini <pcarlini@suse.de>
1029 * include/bits/list.tcc: Trivial formatting fixes.
1031 2004-08-03 Mark Mitchell <mark@codesourcery.com>
1033 * libsupc++/new_op.cc: Update comments.
1034 * libsupc++/del_op.cc: Likewise.
1036 2004-08-02 Mark Mitchell <mark@codesourcery.com>
1038 * libsupc++/cxxabi.h: Make all declarations have default
1040 * libsupc++/exception: Likewise.
1041 * libsupc++/new: Likewise.
1042 * libsupc++/typeinfo: Likewise.
1043 * libsupc++/unwind-cxx.h: Likewise.
1044 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
1045 the __cxxabiv1 namespace.
1046 (__cxa_free_exception): Likewise.
1047 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
1048 (__cxa_bad_typeid): Likewise.
1049 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1050 (__cxa_end_catch): Likewise.
1051 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
1052 (__cxa_get_globals): Likewise.
1053 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
1054 (__cxa_rethrow): Likewise.
1055 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1056 * libsupc++/eh_type.cc: Include <cxxabi.h>.
1058 * Makefile.am (hosted_source): Add libmath and testsuite.
1059 (SUBDIRS): Remove them.
1060 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1061 on arm*-*-symbianelf*.
1062 * crossconfig.m4: Add arm*-*-symbianelf* support.
1063 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1064 when freestanding. Do not bring names into std:: namespace with
1065 "using" when freestanding. Declare required functions and macros
1067 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
1069 * libsupc++/del_op.cc: Declare "free" only when freestanding.
1070 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
1071 (malloc): Declare when freestanding.
1074 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
1076 (__cxa_free_exception): Likewise for free.
1077 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
1078 * libsupc++/pure.cc (writestr): Define to nothing when
1080 * libsupc++/vterminate.cc: Do not define anything when
1082 * Makefile.in: Regenerated.
1083 * aclocal.m4: Likewise.
1084 * configure: Likewise.
1085 * include/Makefile.in: Likewise.
1086 * libmath/Makefile.in: Likewise.
1087 * libsupc++/Makefile.in: Likewise.
1088 * po/Makefile.in: Likewise.
1089 * src/Makefile.in: Likewise.
1090 * testsuite/Makefile.in: Likewise.
1092 2004-08-01 Matt Austern <austern@apple.com>
1095 * include/bits/stl_list.h (_M_create_node): Remove unused
1096 zero-argument version.
1097 * include/ext/slist (_M_create_node): Pass two arguments to
1098 allocator's construct() member function.
1099 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
1100 * testsuite/23_containers/list/explicit_instantiation.cc: New.
1101 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
1102 * testsuite/23_containers/map/explicit_instantiation.cc: New.
1103 * testsuite/23_containers/set/explicit_instantiation.cc: New.
1104 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
1105 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
1106 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
1107 * testsuite/ext/slist_explicit_instantiation.cc: New.
1109 2004-07-30 Paolo Carlini <pcarlini@suse.de>
1111 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1112 num_get<>::_M_extract_int): In the main parsing loop delay the
1113 life of __q to the actual use point.
1115 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1118 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
1119 Don't clip the precision passed down to __convert_from_v:
1120 22.2.2.2.2 nowhere says so.
1121 * testsuite/22_locale/num_put/put/char/14220.cc: New.
1122 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
1124 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1126 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1128 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1129 Petur Runolfsson <peturr02@ru.is>
1131 PR libstdc++/12658 (continued)
1132 * src/locale_init.cc (locale::locale, locale::global): Use
1133 a single locale_mutex instead of two separate mutexes.
1135 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1138 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
1140 * testsuite/23_containers/map/insert/16813.cc: New.
1142 2004-07-29 Phil Edwards <phil@codesourcery.com>
1144 * docs/html/faq/index.html: Update version references. Make
1145 clear that code from SGI has diverged greatly. Remove references
1146 to library snapshots and what's-new sections.
1147 * docs/html/faq/index.txt: Regenerate.
1149 2004-07-28 Matt Austern <austern@apple.com>
1151 * include/bits/stl_construct.h (_Destroy): New three-argument
1152 overload that takes an allocator argument. Another inline
1153 three-argument overload that takes std::allocator and dispatches
1154 to the two-argument version.
1155 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
1156 Change return type to void to match uninitialized_fill_n.
1157 (__uninitialized_copy_a_): New function. Like uninitialized_copy
1158 except that it takes an allocator and uses it for construct and
1159 destroy. If the allocator is std::allocator, dispatches to
1161 (__uninitialized_fill_a): Likewise.
1162 (__uninitialized_fill_n_a): Likewise.
1163 (__uninitialized_copy_copy): Give it an allocator argument.
1164 (__uninitialized_fill_copy): Likewise.
1165 (__uninitialized_copy_fill): Likewise.
1166 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
1167 and stl_uninitialized.h. Replace use of single-argument _Construct
1168 and _Destroy with use of allocator's construct and destroy methods.
1169 * include/bits/list.tcc: Likewise.
1170 * include/bits/stl_deque.h: Likewise.
1171 * include/bits/stl_list.h: Likewise.
1172 * include/bits/stl_tree.h: Likewise.
1173 * include/bits/stl_vector.h: Likewise.
1174 * include/bits/vector.tcc: Likewise.
1175 * include/ext/hashtable.h: Use rebind so that allocator_type
1176 has correct type for a container's allocator. Replace use of
1177 single-argument _Construct and _Destroy with use of allocator's
1178 construct and destroy methods.
1179 * include/ext/memory (__uninitialized_copy_n_a): New function.
1180 Like uninitialized_copy_n except that it takes an extra parameter,
1181 an allocator, and uses it for construct and destroy operations.
1182 * include/ext/rope: Use new forms defined in stl_construct.h,
1183 stl_uninitialized.h, and ext/memory. Replace use of single-argument
1184 _Construct and _Destroy with allocator construct and destroy methods.
1185 * include/ext/ropeimpl.h: Likewise.
1186 * include/ext/slist.h: Likewise.
1187 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
1188 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
1189 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
1190 * testsuite/23_containers/list/check_construct_destroy.cc: New.
1191 * testsuite/23_containers/set/check_construct_destroy.cc: New.
1192 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
1193 * testsuite/ext/hash_check_construct_destroy.cc: New.
1194 * testsuite/ext/slist_check_construct_destroy.cc: New.
1196 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
1198 2003-10-01 Eric Christopher <echristo@redhat.com>
1199 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
1201 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1202 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
1204 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
1207 * include/bits/locale_facets.tcc: Fix for -Werror.
1209 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
1211 * docs/html/debug.html: Say debug mode only available since 3.4.0.
1213 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
1215 * docs/doxygen/mainpage.html: Clarify links.
1216 * docs/doxygen/stdheader.cc: Add files.
1217 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
1218 * docs/doxygen/user.cfg.in: New options, wrap.
1220 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
1222 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
1224 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
1227 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
1229 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
1232 * scripts/create_testsuite_files: Pass -print to find.
1234 2004-07-15 Paolo Carlini <pcarlini@suse.de>
1236 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
1237 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
1239 2004-07-15 Jakub Jelinek <jakub@redhat.com>
1242 * acinclude.m4 (glibcxx_shared_libgcc): Correct
1243 glibcxx_shared_libgcc test for multilibs.
1244 * configure: Rebuilt.
1246 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1249 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
1250 the signature to return void, as per 20.4.4.3.
1251 * include/bits/stl_vector.h (vector::vector(size_type,
1252 const value_type&, const allocator_type&), vector::vector(size_type),
1253 vector::_M_initialize_dispatch): Adjust callers.
1254 * include/bits/vector.tcc (vector<>::_M_fill_assign,
1255 vector<>::_M_fill_insert): Likewise.
1256 * testsuite/20_util/memory/16505.cc: New.
1258 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1260 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
1261 12658_thread-2.cc: Use __gnu_test::try_named_locale.
1263 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1265 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
1266 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
1267 (__mt_alloc::_S_set_options): Same.
1270 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1272 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
1274 * configure: Regenerated.
1276 2004-07-13 Paolo Carlini <pcarlini@suse.de>
1278 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
1279 to 12658_thread-1.cc and xfail.
1280 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
1281 simpler version of 12658_thread-1.cc, still failing on 3_3 and
1282 not failing on 3_4/mainline - both on single processor and
1283 multiprocessor machines.
1285 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
1287 * docs/html/abi.html: Remove non-public qualification.
1289 * include/bits/concurrence.h: Tweak comments.
1291 2004-07-11 Paolo Carlini <pcarlini@suse.de>
1293 Add wchar_t counterparts of the basic_streambbuf<char> tests.
1294 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
1295 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
1297 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
1298 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
1300 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
1301 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
1302 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
1303 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
1304 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
1306 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1308 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
1310 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
1312 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
1313 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
1315 2004-07-11 Phil Edwards <phil@codesourcery.com>
1317 * acinclude.m4: Cosmetic shell syntax fixes.
1318 * configure.ac: Bring comment inline with reality.
1319 * configure.host: Both of the above. Move 'arm' case to right
1320 place in host_cpu switch.
1321 * aclocal.m4, configure: Regenerate.
1323 2004-07-09 Paolo Carlini <pcarlini@suse.de>
1325 Add wchar_t counterparts of the basic_stringbuf<char> tests.
1326 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
1327 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
1328 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
1329 3599.cc, 9988.cc: Likewise.
1330 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
1332 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
1334 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
1336 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1338 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1339 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1340 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1341 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
1343 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1344 9404-1.cc: Likewise.
1345 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1346 9404-2.cc: Likewise.
1347 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1349 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1350 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1352 2004-07-08 Paolo Carlini <pcarlini@suse.de>
1354 * include/bits/gslice.h: Trivial formatting fixes.
1355 * include/bits/gslice_array.h: Likewise.
1356 * include/bits/indirect_array.h: Likewise.
1357 * include/bits/mask_array.h: Likewise.
1358 * include/bits/slice_array.h: Likewise.
1359 * include/bits/valarray_after.h: Likewise.
1360 * include/bits/valarray_array.h: Likewise.
1361 * include/bits/valarray_before.h: Likewise.
1362 * include/std/std_valarray.h: Likewise.
1364 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
1367 * include/bits/basic_string.h (basic_string::operator=): Revert.
1369 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1371 * configure.ac (libtool_VERSION): To 6:2:0.
1372 * configure: Regenerated.
1374 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1376 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1379 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1381 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1383 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1386 2004-07-07 Paolo Carlini <pcarlini@suse.de>
1389 * include/bits/sstream.tcc (overflow): When reallocating _M_string
1390 use an exponential grow policy.
1391 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1392 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1394 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
1397 * crossconfig.m4: Add in bits for djgpp.
1398 * configure: Regenerate.
1400 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
1402 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1403 instantiation of set and multiset (functor param given as int).
1405 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1407 * include/bits/basic_string.h: Trivial formatting fixes and/or
1408 const-ification of some variables.
1409 * include/bits/deque.tcc: Likewise.
1410 * include/bits/stl_algobase.h: Likewise.
1411 * include/bits/stl_bvector.h: Likewise.
1412 * include/bits/stl_construct.h: Likewise.
1413 * include/bits/stl_deque.h: Likewise.
1414 * include/bits/stl_pair.h: Likewise.
1415 * include/bits/stl_vector.h: Likewise.
1416 * include/bits/vector.tcc: Likewise.
1418 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1420 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
1421 systems with no COMDAT or weak support.
1422 * testsuite/25_algorithms/copy/2.cc: Likewise.
1423 * testsuite/25_algorithms/copy/3.cc: Likewise.
1424 * testsuite/25_algorithms/copy/4.cc: Likewise.
1426 2004-07-03 Paul Brook <paul@codesourcery.com>
1428 * configure.ac: Set ABI_TWEAKS_SRCDIR.
1429 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
1430 setting atomicity_dir. Override type_cpu for arm based targets.
1431 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1432 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1433 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1434 * libsupc++/vec.cc: Ditto.
1435 * config/cpu/arm/cxxabi_tweaks.h: New file.
1436 * config/cpu/generic/cxxabi_tweaks.h: New file.
1437 * */Makefile.in: Regenerate.
1438 * configure: Regenerate.
1440 2004-07-02 Paolo Carlini <pcarlini@suse.de>
1442 * include/bits/type_traits.h (_Is_normal_iterator): Move...
1443 * include/bits/cpp_type_traits.h: ... here, renamed to
1444 __is_normal_iterator and consistent with the other traits.
1445 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
1446 to the struct __copy_normal and three specializations.
1447 (__copy_backward_output_normal_iterator,
1448 __copy_backward_input_normal_iterator): Likewise, convert to
1449 the struct __copy_backward_normal and three specializations.
1450 (copy, copy_backward): Use the latter.
1451 (__copy_aux, __copy_backward_aux): Very minor tweaks.
1453 2004-07-01 Paolo Carlini <pcarlini@suse.de>
1455 * include/bits/stl_algobase.h (__copy_trivial): Remove.
1456 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1457 __is_trivially_copyable, __are_same and __copy::copy.
1458 (__copy): Rewrite as a class template and two specializations.
1459 (__copy_ni2): Simplify, just call __copy_aux.
1461 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1463 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
1464 for destination value type != source value type.
1466 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
1467 Per Bothner <per@bothner.com>
1468 Mohan Embar <gnustuff@thisiscool.com>
1471 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
1472 (__glibcxx_mutex): Encapsulate mutex init function into type for
1473 threaded configurations without __GTHREAD_MUTEX_INIT.
1474 (lock::lock): Make device member a reference.
1475 (lock::~lock): Same.
1476 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
1478 * src/allocator.cc: Same.
1480 2004-06-30 Brad Spencer <spencer@infointeractive.com>
1482 * include/ext/mt_allocator.h: Handle allocations at static
1483 initialization that happen before _S_options is (automatically)
1484 constructed; set _S_init even if _M_force_new is true.
1486 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1488 * config/linker-map.gnu: Revert new exports.
1490 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1491 Stuart Anderson <anderson@netsweng.com>
1493 * config/linker-map.gnu: Add destructor exports for abstract base
1494 classes to conform to LSB.
1496 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1497 Paolo Carlini <pcarlini@suse.de>
1499 * include/bits/cpp_type_traits.h: Add __is_pointer and
1500 __is_trivially_copyable.
1501 * include/bits/stl_algobase.h (fill, fill_n): Slightly
1502 tweak to use the latter.
1503 (__copy_backward_dispatch): Remove.
1504 (__copy_backward_aux): Rewrite to use __is_pointer and
1505 __is_trivially_copyable and __copy_backward::copy_b.
1506 (__copy_backward): Rewrite as a class template and two
1509 2004-06-30 Paolo Carlini <pcarlini@suse.de>
1511 * testsuite/25_algorithms/copy.cc: Move to...
1512 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
1513 * testsuite/25_algorithms/copy/2.cc: New.
1514 * testsuite/25_algorithms/copy/3.cc: New.
1515 * testsuite/25_algorithms/copy/4.cc: New.
1517 2004-06-29 Paul Brook <paul@codesourcery.com>
1519 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
1520 element size in the cookie.
1522 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1524 * include/bits/cpp_type_traits.h: Move the additions to
1525 namespace __gnu_internal outside of namespace std; trivial
1528 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
1530 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
1531 Revert -Weffc++ changes that defined copy ctory and or assignment
1533 * libsupc++/tinfo.cc (__upcast_result): Same.
1535 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1537 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
1538 the algorithm used to name the categories.
1540 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
1542 * include/Makefile.am: Give a .gch extension to
1543 the PCH files, not only to the directory.
1544 * include/Makefile.in: Regenerate.
1546 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1548 * config/locale/gnu/monetary_members.cc
1549 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
1550 assignments of _M_decimal_point and _M_thousands_sep.
1552 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1554 * docs/html/17_intro/contribute.html: Update some links.
1555 * docs/html/17_intro/porting-howto.html: Likewise.
1556 * docs/html/17_intro/porting-howto.xml: Likewise.
1557 * docs/html/18_support/howto.html: Likewise.
1558 * docs/html/21_strings/howto.html: Likewise.
1559 * docs/html/27_io/howto.html: Likewise.
1560 * docs/html/configopts.html: Likewise.
1561 * docs/html/ext/howto.html: Likewise.
1562 * docs/html/faq/index.html: Likewise.
1563 * docs/html/install.html: Don't mention 2.x compilers.
1565 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1567 * include/ext/rope: Trivial formatting fixes.
1568 * include/ext/ropeimpl.h: Likewise.
1570 2004-06-26 Paolo Carlini <pcarlini@suse.de>
1573 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
1574 availability of strto(u)ll, not used anymore in the iostreams.
1575 * configure: Regenerate.
1577 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1580 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
1582 * configure: Regenerate.
1584 2004-06-25 Paul Brook <paul@codesourcery.com>
1586 * libsupc++/cxxabi.h: Define __ARM_EABI__
1588 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
1590 2004-06-25 Paul Brook <paul@codesourcery.com>
1592 * include/bits/concurrence.h: Still create mutex object when
1595 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1597 * include/bits/stl_algobase.h (fill, fill_n): Revert last
1598 change: actually we need to copy construct an object of type
1599 _Tp, not of type iterator_traits<>::value_type, therefore the
1602 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1604 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
1605 dispatch: use iterator_traits<>::value_type, not _Tp.
1607 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1609 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
1610 * testsuite/25_algorithms/fill/2.cc: Likewise.
1612 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
1613 Paolo Carlini <pcarlini@suse.de>
1615 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
1616 for fill and fill_n, respectively: when copying is cheap, use a
1617 temporary to avoid a memory read in each iteration.
1619 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1621 * testsuite/25_algorithms/fill/1.cc: New.
1622 * testsuite/25_algorithms/fill/2.cc: Likewise.
1624 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1626 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
1627 Remove copy constructor and assignment operator.
1629 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
1631 * include/bits/concurrence.h (__gnu_cxx::lock): New.
1632 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
1633 (__pool_base::_M_get_mutex): New.
1634 * include/bits/allocator.h: Tweak.
1635 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
1636 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
1637 * include/bits/stl_threads.h: Remove.
1638 * include/Makefile.am: Also here.
1639 * include/Makefile.in: Regenerate.
1641 * src/locale_init.cc: Use __gnu_cxx::lock.
1643 * src/allocator.cc: Move all instantiations...
1644 * src/allocator-inst.cc: ...here.
1646 2004-06-23 Andrew Pinski <apinski@apple.com>
1648 * linkage.m4: Remove check for libmx.
1649 * configure: Regenerate.
1651 2004-06-23 Paolo Carlini <pcarlini@suse.de>
1654 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
1655 Don't require the _DefaultConstructibleConcept.
1656 (struct _ForwardIteratorConcept): Require it here.
1658 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
1660 * include/bits/istream.tcc (getline): Make sure arguments passed
1661 to min/max have the same type.
1662 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
1663 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
1665 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
1667 * docs/html/abi.html: Update links.
1669 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1671 * testsuite/26_numerics/complex_inserters_extractors.cc,
1672 complex_value.cc, buggy_complex.cc: Move to...
1673 * testsuite/26_numerics/complex/: ... here.
1674 * testsuite/26_numerics/c99_classification_macros_c++.cc,
1675 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
1676 fabs_inline.cc: Move to...
1677 * testsuite/26_numerics/cmath/: ... here.
1678 * testsuite/26_numerics/binary_closure.cc, slice.cc,
1679 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
1680 valarray_name_lookup.cc, valarray_operators.cc,
1681 valarray_subset_assignment.cc: Move to...
1682 * testsuite/26_numerics/valarray/: ... here (new dir).
1683 * testsuite/26_numerics/sum_diff.cc: Move to...
1684 * testsuite/26_numerics/numeric/: ... here (new dir).
1686 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1688 * include/std/std_istream.h (ignore(streamsize __n = 1,
1689 int_type __delim = traits_type::eof())): Split into...
1690 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1691 int_type __delim)): The first two can be much more simpler
1692 and efficient than the fully general case; also, the last
1693 two can take advantage of the same mechanism already used
1695 * include/bits/istream.tcc (ignore(streamsize __n = 1,
1696 int_type __delim = traits_type::eof()): Remove.
1697 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1698 int_type __delim)): New.
1700 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
1702 * config/linker-map.gnu: Use wildcards for
1703 __basic_file::sys_open(FILE*, _Ios_Openmode).
1705 2004-06-20 Paolo Carlini <pcarlini@suse.de>
1707 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
1709 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1711 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
1712 the alignment requested.
1713 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
1714 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
1715 (__mt_alloc<>::deallocate): Likewise.
1717 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1720 * include/debug/safe_base.h
1721 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
1722 _Safe_sequence_base::operator=): Provide definitions.
1723 * testsuite/23_containers/bitset/cons/16020.cc: New.
1725 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
1727 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
1728 (__pool_base): Remove unused template parameter. Add
1729 protected. Move lock data into __pool_base::_Lock. Remove static
1730 on member functions.
1731 (__pool_base::_M_get_free_list): New.
1732 (__pool_alloc): Move _S_force new here.
1733 * src/allocator.cc: Move out of line __pool_base definitions here.
1734 * config/linker-map.gnu: Export bits from __pool_base.
1736 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1738 * config/locale/gnu/numeric_members.cc
1739 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
1740 assignments of _M_decimal_point and _M_thousands_sep.
1741 * config/locale/gnu/time_members.cc
1742 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
1743 and reformat assignments of date and time fields.
1745 2004-06-16 Paolo Carlini <pcarlini@suse.de>
1747 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
1748 to use _Data_allocate.
1749 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
1750 (rope<>::_S_substring): Likewise.
1751 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
1752 (rope<>::c_str()): Likewise.
1753 (rope<>::replace_with_c_str()): Likewise.
1755 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
1756 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
1758 (_Rope_iterator_base<>::_S_setcache): Likewise.
1759 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
1760 (rope<>::_S_substring): Likewise.
1761 (rope<>::_S_dump): Likewise.
1762 (rope<>::_S_fetch_ptr): Likewise.
1763 (rope<>::_S_compare): Likewise.
1764 (rope<>::replace_with_c_str()): Likewise.
1766 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
1767 * testsuite/ext/rope/2.cc: New.
1769 2004-06-16 Paolo Carlini <pcarlini@suse.de>
1770 Matt Austern <austern@apple.com>
1772 * testsuite/ext/rope/3.cc: New.
1774 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1776 * acinclude.m4: Remove useless multilib configury.
1777 * Makefile.am: Remove useless multilib rules.
1778 * aclocal.m4: Regenerate.
1779 * Makefile.in: Regenerate.
1780 * configure: Regenerate.
1782 2004-06-15 Paolo Carlini <pcarlini@suse.de>
1784 * include/ext/hashtable.h: Trivial formatting fixes.
1785 * include/ext/rb_tree: Likewise.
1787 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1789 * include/ext/hash_map: Trivial formatting fixes.
1790 * include/ext/hash_set: Likewise.
1791 * include/ext/memory: Likewise.
1792 * include/ext/numeric: Likewise.
1794 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
1796 * Makefile.in: Regenerate with automake 1.8.5.
1798 * include/Makefile.in: Same.
1799 * libmath/Makefile.in: Same.
1800 * libsupc++/Makefile.in: Same.
1801 * po/Makefile.in: Same.
1802 * src/Makefile.in: Same.
1803 * testsuite/Makefile.in: Same.
1805 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1807 * include/ext/slist: Trivial formatting fixes.
1809 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1811 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
1812 Don't use the 'magic number' 10 in the computation of __minlen;
1813 never access __name past __minlen; in the loop over __i3, don't
1814 decrease __nmatches and increase __i3 at once, only either of
1817 2004-06-13 Paolo Carlini <pcarlini@suse.de>
1819 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
1820 time_get<>::do_get_date): Use only once _M_extract_via_format,
1821 instead of going through "%X"/"%x" and calling it two times
1824 2004-06-12 Paolo Carlini <pcarlini@suse.de>
1826 * include/ext/algorithm: Trivial formatting fixes.
1827 * include/ext/functional: Likewise.
1828 * include/ext/hash_fun.h: Likewise.
1829 * include/ext/iterator: Likewise.
1831 2004-06-12 Paolo Carlini <pcarlini@suse.de>
1833 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
1834 size_type)): Reimplement using std::search.
1835 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
1837 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
1839 * testsuite/performance/21_strings/string_find.cc: New.
1841 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1843 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
1845 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
1847 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
1848 this function return a value.
1850 2004-06-09 Paolo Carlini <pcarlini@suse.de>
1853 * include/bits/stl_deque.h: Consistently with stl_set.h, define
1854 pointer as allocator's pointer, likewise for reference,
1855 const_pointer, and const_reference.
1856 * include/bits/stl_list.h: Likewise.
1857 * include/bits/stl_map.h: Likewise.
1858 * include/bits/stl_multimap.h: Likewise.
1859 * include/bits/stl_vector.h: Likewise.
1861 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
1863 * crossconfig.m4: Remove signbit, signbitf, signbitl.
1864 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
1865 builtin math functions instead of AC_DEFINE_UNQUOTED.
1866 * configure: Regenerate.
1868 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
1870 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
1871 * docs/doxygen/mainpage.html: Remove links.
1873 2004-06-08 Jason Merrill <jason@redhat.com>
1875 * config/linker-map.gnu: Use wildcards for
1876 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
1878 2004-06-08 Paolo Carlini <pcarlini@suse.de>
1880 * include/ext/pool_allocator.h: Convert to a global free-list,
1881 as per the original SGI/HP design: move the implementation
1882 details to struct __pool_base, from which __pool_alloc derives.
1883 * src/allocator.cc: Instantiate __pool_base.
1885 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
1886 Paolo Carlini <pcarlini@suse.de>
1888 * testsuite/testsuite_performance.h
1889 (resource_counter::allocated_memory): Make it return the right
1890 number of bytes requested by the allocators/application. This is
1891 the sbrk+mmaped memory.
1893 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
1895 * include/std/std_complex.h (log): Tidy.
1897 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
1899 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
1900 * testsuite/testsuite_abi.cc: Same.
1901 * configure.ac (libtool_VERSION): Bump to 6:1:0.
1902 * configure: Regenerate.
1903 * aclocal.m4: Regenerate.
1905 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1907 * include/std/std_complex.h (complex<_Tp>): Properly indent
1909 (complex<>::__rep): New.
1910 (__complex_abs): New. Dispatch to built-ins.
1912 (__complex_arg): New. Dispatch to built-ins.
1914 (__complex_cos): New. Dispatch to built-ins.
1916 (__complex_cosh): New. Dispatch to built-ins.
1918 (__complex_exp): New. Dispatch to built-ins.
1920 (__complex_log): New. Dispatch to built-ins.
1922 (__complex_sin): New. Dispatch to built-ins.
1924 (__complex_sinh): New. Dispatch to built-ins.
1926 (__complex_sqrt): New. Dispatch to built-ins.
1928 (__complex_tan): New. Dispatch to built-ins.
1930 (__complex_tanh): New. Dispatch to built-ins.
1932 (__complex_pow): New. Dispatch to built-ins.
1935 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
1936 Benjamin Kosnik <bkoz@redhat.com>
1939 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
1940 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
1941 * config/io/basic_file_stdio.cc (__basic_file::file): New.
1942 * config/io/basic_file_stdio.h: Define.
1944 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
1947 * docs/html/documentation.html: Update doxygen links for 3.4.0.
1949 2004-05-27 Jan Beulich <jbeulich@novell.com>
1951 * scripts/create_testsuite_files: Tweak.
1953 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
1956 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
1957 bits to do the same thing.
1959 2004-05-24 Paolo Carlini <pcarlini@suse.de>
1961 * include/bits/istream.tcc (ignore): Correctly deal with
1962 n == numeric_limits<streamsize>::max().
1963 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
1965 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
1966 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
1967 __n == numeric_limits<>::min().
1969 * include/bits/istream.tcc: Minor tweaks.
1971 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1973 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1975 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1977 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1979 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1981 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1984 Fixups for -Weffc++.
1985 * include/bits/basic_string.h (basic_string::operator=): Return
1986 pointer to this instead of result of assign. Although redundant,
1987 this doesn't impact resultant codegen.
1989 * include/bits/locale_facets.h (__numpunct_cache): Declare
1990 assignment opxserator and copy constructor private.
1991 (__timepunct_cache): Same.
1992 (__moneypunct_cache): Same.
1993 (collate): Use member initialization list for _M_c_locale_collate.
1994 * config/locale/gnu/messages_members.h: Same.
1995 * config/locale/gnu/time_members.h (__timepunct): Same.
1996 * src/codecvt.cc: Use member initialization list to initialize
1997 _M_c_locale_codecvt.
1998 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
1999 * config/os/gnu-linux/ctype_noninline.h: Same.
2000 * src/locale.cc (_Impl): Same.
2001 * src/locale_init.cc: Same.
2002 * src/localename.cc: Same.
2004 * include/bits/basic_ios.h (basic_ios): Complete member
2005 initialization list.
2006 * include/bits/istream.tcc (basic_istream::sentry): Same.
2007 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2008 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2009 _M_pback to member initialization list.
2010 * include/std/std_streambuf.h: Same.
2011 * include/std/std_sstream.h: Same, for _M_mode.
2012 * src/ios.cc (ios_base): Same.
2014 * include/ext/rope: Make derived classes match exception
2016 specifications. Add copy constructors and assignment operators.
2018 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2019 constructor and assignment operator protected.
2020 (_Safe_iterator_base): Same.
2021 * include/debug/formatter.h (_Error_formatter): Define copy
2022 constructor and assignment operator.
2024 * include/backward/strstream: Declare assignment operator and copy
2025 constructor private.
2027 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2029 * testsuite/testsuite_hooks.h (func_callback): Declare copy
2030 constructor and assignment operator private.
2031 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2032 exception specifications of base class.
2033 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2034 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2035 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2037 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2039 * libsupc++/cxxabi.h: Remove duplicated and useless public and
2040 private keywords in class declarations. Format. Use
2041 stddef.h. Expose declarations to "C" compilation.
2042 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
2043 assignment operator.
2044 (__dyncast_result): Same.
2045 * libsupc++/vec.cc (uncatch_exception): Same, use member
2046 initialization list.
2048 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2050 * testsuite/abi_check.cc: Add unistd.h.
2052 2004-05-22 Paolo Carlini <pcarlini@suse.de>
2055 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2056 __int_to_char(unsigned long long)): Showpos is not relevant
2058 * testsuite/22_locale/num_put/put/char/15565.cc: New.
2059 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2061 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2063 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2064 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2065 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2066 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
2067 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2068 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
2070 2004-05-21 Matthias Klose <doko@debian.org>
2072 * docs/doxygen/run_doxygen: Bump required version.
2074 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
2076 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
2077 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
2079 2004-05-21 Paolo Carlini <pcarlini@suse.de>
2081 * include/bits/istream.tcc (ignore): Remove redundant line.
2082 (readsome): Tidy, closely following 27.6.1.3, p30.
2084 2004-05-20 Paolo Carlini <pcarlini@suse.de>
2086 * include/bits/istream.tcc (operator>>(basic_istream<>&,
2087 basic_string<>&)): Use a temporary buffer, thus avoiding
2088 reallocation for common case.
2089 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2091 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2094 * include/bits/istream.tcc: Const-ification of a few variables.
2096 * include/bits/ostream.tcc: Trivial formatting fixes and
2097 const-ification of some variables.
2099 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
2103 * docs/doxygen/Intro.3: Remove Allocators.3.
2104 Add new extension headers, extension namespace list.
2105 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
2106 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
2107 __gnu_debug::. Remove __policy_ renames.
2108 * docs/doxygen/guide.html: Add dot note.
2109 * docs/doxygen/stdheader.cc: Edit, add files.
2110 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
2112 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2114 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
2116 2004-05-18 Jan Beulich <jbeulich@novell.com>
2119 * scripts/create_testsuite_files: Also find source files through
2122 2004-05-18 Jan Beulich <jbeulich@novell.com>
2125 * testsuite/lib/libstdc++.exp: Make test files writable.
2127 2004-05-18 Paolo Carlini <pcarlini@suse.de>
2129 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2132 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
2134 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2135 allocation loop which removes blocks from the global free list
2136 from O(N) to O(1) when the required blocks are <= the number
2139 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2141 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
2143 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
2145 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
2146 * testsuite/23_containers/deque/14340.cc: New.
2147 * testsuite/23_containers/list/14340.cc: New.
2148 * testsuite/23_containers/map/14340.cc: New.
2149 * testsuite/23_containers/multimap/14340.cc: New.
2150 * testsuite/23_containers/multiset/14340.cc: New.
2151 * testsuite/23_containers/set/14340.cc: New.
2152 * testsuite/23_containers/vector/14340.cc: New.
2154 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
2157 * include/debug/safe_iterator.h (_Safe_iterator converting
2158 constructor): Only allow declaration to instantiate when the
2159 incoming _Safe_iterator has exactly the right iterator type.
2161 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
2163 * include/bits/boost_concept_check.h: Fix old attribute syntax.
2164 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
2165 to pass concept-checks.
2166 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2167 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2168 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2170 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2172 * include/std/std_bitset.h: Minor formatting fixes.
2174 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2176 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2177 Consistently update __bin._M_free[0].
2178 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2179 __bin._M_free[0] to simplify the while loop (i.e., the number
2180 of iterations becomes known at the outset).
2182 2004-05-15 Paolo Carlini <pcarlini@suse.de>
2184 * include/std/std_bitset.h: Trivial formatting fixes.
2186 2004-05-14 Paolo Carlini <pcarlini@suse.de>
2187 Ivan Godard <igodard@pacbell.net>
2190 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
2191 * testsuite/23_containers/bitset/ext/15361.cc: New.
2193 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2196 * crossconfig.m4: Add C99 math bits for linux crosses.
2197 * configure: Regenerate.
2199 2004-05-13 Simon Marshall <simon.marshall@misys.com>
2200 Benjamin Kosnik <bkoz@redhat.com>
2203 * include/bits/locale_facets.h: Fix for -fno-for-scope.
2204 * include/debug/safe_sequence.h: Same.
2205 * include/debug/safe_iterator.tcc: Same.
2206 * src/debug.cc: Same.
2207 * src/locale.cc: Same.
2208 * src/locale_init.cc: Same.
2209 * src/localename.cc: Same.
2210 * config/locale/gnu/ctype_members.cc: Same.
2211 * config/locale/gnu/numeric_members.cc: Same.
2212 * testsuite/testsuite_abi.cc: Same.
2213 * testsuite/testsuite_hooks.cc: Same.
2215 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
2217 * docs/html/abi.html: Document effect of -fabi-version on value
2218 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
2221 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2224 * docs/html/faq/index.html: Update docs for libsupc++ usage.
2226 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2229 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
2231 (_GLIBCXX_mutex_address): Same.
2232 (_GLIBCXX_once): Same.
2233 (_GLIBCXX_mutex_init): Same.
2234 (_GLIBCXX_mutex_address_init): Same.
2236 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2238 * docs/html/abi.html: New.
2239 * docs/html/abi.txt: Remove.
2240 * docs/html/documentation.html: Add link.
2241 * testsuite/Makefile.am: Add files.
2242 * testsuite/Makefile.in: Regenerated.
2243 * testsuite/abi_check.cc: Move and modify code into...
2244 * testsuite/testsuite_abi.cc: Add.
2245 * testsuite/testsuite_abi.h: Add.
2247 * docs/html/17_intro/TODO: Update.
2248 * include/bits/stl_pair.h: Format.
2250 2004-05-06 Matthias Klose <doko@debian.org>
2252 * include/backward/iterator.h: Add GPL copyright info,
2253 with exception clause.
2254 * include/bits/boost_concept_check.h: Likewise.
2256 * libsupc++/tinfo.h: Likewise.
2257 * po/string_literals.cc: Likewise.
2259 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
2261 * acinclude.m4: Replace -W with more speaking -Wextra.
2262 * configure: Rebuilt.
2264 2004-05-03 Paolo Carlini <pcarlini@suse.de>
2266 Optimize locale::_M_impl->_M_names for the most common cases:
2267 !_M_names[0] means unnamed; !_M_names[1] means all the categories
2268 the same name (_M_names[0] && _M_names[1] means that the full set
2269 of _M_names must be processed, the general case).
2270 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
2271 Tweak, saving work when !_M_names[1].
2272 (locale::locale(const locale&, _Facet*): Simplify: now just setting
2273 _M_names[0] = 0 means unnamed.
2274 * src/locale.cc (locale::operator==): Deal first with the common,
2275 easy cases, otherwise fall back to locale::name().
2276 (locale::name()): Tweak, if !_M_names[0] just return "*".
2277 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
2278 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
2279 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
2280 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
2281 Simplify when !std::strchr, just updating _M_names[0]; clean up.
2282 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
2283 for the general case (full set of names), then do the usual work;
2286 * src/locale.cc (locale::name()): Reserve space in __ret.
2287 * src/locale_init.cc (locale::global(const locale&)): Save
2288 the name in a temporary.
2289 * src/localename.cc (locale::locale(const char*)): Reserve space
2292 2004-04-29 Paolo Carlini <pcarlini@suse.de>
2294 * src/locale.cc (locale::operator==): Always avoid constructing
2295 locale::name(), directly compare pairs of _M_names.
2297 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2299 * include/bits/istream.tcc: Fix comment.
2301 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2303 * include/bits/stl_vector.h: Trivial formatting fixes.
2304 * include/bits/vector.tcc: Likewise.
2306 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2308 PR libstdc++/15002 (continued again)
2309 * include/bits/istream.tcc (getline(basic_istream<>&,
2310 basic_string<>&, _CharT)): Use a temporary buffer, thus
2311 avoiding reallocation for common case.
2313 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2314 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
2315 of temporary buffer to a power of two.
2317 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
2319 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2321 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2323 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2325 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2327 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2328 Petur Runolfsson <peturr02@ru.is>
2330 PR libstdc++/15002 (continued)
2331 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
2332 streamsize, char_type)): Use traits::find/copy in a loop to speed
2333 up greatly the function in the common case (I/O buffer size >> 1).
2335 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2337 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2339 * include/bits/istream.tcc (getline(basic_istream<>&,
2340 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2341 of sbumpc(), consistently with the other functions, thus also
2342 dealing correctly with the case of exceeded string::max_size().
2344 2004-04-24 Matthias Klose <doko@debian.org>
2346 Jonathan Wakely <cow@compsoc.man.ac.uk>
2347 * docs/html/configopts.html: Fix reference to allocator config option.
2349 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
2351 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2352 * configure: Regenerate.
2354 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
2356 PR libstdc++/15047, libstdc++/11610
2357 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2358 (libstdc++_init): Don't pass outdir to v3-copy-files.
2360 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2362 * include/bits/deque.tcc: Trivial formatting fixes.
2363 * include/bits/stl_deque.h: Likewise.
2364 * include/bits/stl_list.h: Likewise.
2365 * include/bits/stl_tree.h: Likewise.
2367 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2368 Andrew Pinski <pinskia@physics.uc.edu>
2370 * include/bits/basic_string.tcc (_M_mutate): Don't compute
2371 __src unnecessarily.
2373 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
2375 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2376 Clarify assertion, set test variable to false before assert.
2377 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2378 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2379 * testsuite/27_io/ios_base/storage/2.cc: Same.
2381 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2383 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2384 * testsuite/27_io/fpos/14320-3.cc: Same.
2386 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2387 * testsuite/27_io/fpos/1.cc: Same.
2388 * testsuite/27_io/basic_stringstream/2.cc: Same.
2389 * testsuite/27_io/basic_stringbuf/4.cc: Same.
2390 * testsuite/27_io/basic_stringbuf/1.cc: Same.
2391 * testsuite/27_io/basic_stringbuf/2.cc: Same.
2392 * testsuite/27_io/basic_streambuf/2.cc: Same.
2393 * testsuite/27_io/basic_ostringstream/2.cc: Same.
2394 * testsuite/27_io/basic_ostream/2.cc: Same.
2395 * testsuite/27_io/basic_ofstream/2.cc: Same.
2396 * testsuite/27_io/basic_istringstream/2.cc: Same.
2397 * testsuite/27_io/basic_istream/2.cc: Same.
2398 * testsuite/27_io/basic_iostream/2.cc: Same.
2399 * testsuite/27_io/basic_ios/2.cc: Same.
2400 * testsuite/27_io/basic_ifstream/2.cc: Same.
2401 * testsuite/27_io/basic_fstream/2.cc: Same.
2402 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2404 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2405 unsigned against zero.
2406 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2407 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2409 * testsuite/18_support/new_delete_placement.cc: Initialize
2410 variables before first use.
2411 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
2412 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
2413 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
2414 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
2416 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
2417 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
2419 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
2420 * testsuite/27_io/types/2.cc: Same.
2422 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2424 * testsuite/27_io/fpos/14775.cc: Same.
2426 2004-04-19 Paolo Carlini <pcarlini@suse.de>
2428 PR libstdc++/15002 (partial)
2429 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2430 Special case __n2 == 1, not calling traits_type::assign/copy.
2432 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
2434 * include/bits/stl_bvector.h: Use _M_impl._M_start.
2436 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
2438 * include/bits/c++config (_GLIBCXX_STD): New.
2439 * src/list.cc: Use it.
2440 * include/std/std_bitset.h: Same.
2441 * include/bits/vector.tcc: Same.
2442 * include/bits/stl_set.h: Same.
2443 * include/bits/stl_multiset.h: Same.
2444 * include/bits/stl_multimap.h: Same.
2445 * include/bits/stl_map.h: Same.
2446 * include/bits/stl_list.h: Same.
2447 * include/bits/stl_vector.h: Same.
2448 * include/bits/stl_bvector.h: Same.
2449 * include/bits/stl_deque.h: Same.
2450 * include/bits/deque.tcc: Same.
2451 * include/bits/list.tcc: Same.
2452 * include/debug/vector: Same.
2453 * include/debug/set.h: Same.
2454 * include/debug/multiset.h: Same.
2455 * include/debug/multimap.h: Same.
2456 * include/debug/map.h: Same.
2457 * include/debug/list: Same.
2458 * include/debug/deque: Same.
2459 * include/debug/bitset: Same.
2460 * include/debug/formatter.h (__gnu_debug): Remove using directive.
2461 Add using declaration for std::type_info.
2462 * include/debug/safe_iterator.h: Add using declaration for
2463 std::iterator_traits and std::pair.
2464 * src/debug_list.cc: New.
2465 * src/Makefile.am: Add debug_list.cc.
2466 * src/Makefile.in: Regenerate.
2467 * config/linker-map.gnu: Add _List_node_base exports for std and
2470 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
2471 idiom that other containers use.
2472 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2474 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2477 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
2479 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
2480 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
2482 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2484 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
2486 * config.h.in: Regenerate.
2488 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2490 * config/locale/generic/monetary_members.cc
2491 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
2492 btowc unnecessarily, just cast to wchar_t (the concerned chars
2493 all belong to the basic character set).
2494 * config/locale/generic/numeric_members.cc
2495 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2496 * config/locale/gnu/monetary_members.cc
2497 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
2498 * config/locale/gnu/numeric_members.cc
2499 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2501 2004-04-15 Paolo Carlini <pcarlini@suse.de>
2503 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
2504 avoid constructing unnecessarily this->name().
2506 2004-04-14 Zack Weinberg <zack@codesourcery.com>
2508 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
2509 Change definition of CXX to use $(shell) instead of backticks.
2510 * testsuite/Makefile.in: Regenerate.
2512 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
2514 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2515 Minor formatting fixes.
2516 * testsuite/performance/20_util/allocator/map_mt_find.cc:
2519 2004-04-12 Paolo Carlini <pcarlini@suse.de>
2521 * config/locale/gnu/numeric_members.cc
2522 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
2523 in __uselocale, since btowc is called for chars belonging to
2524 the basic character set.
2526 2004-04-09 Paolo Carlini <pcarlini@suse.de>
2528 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
2529 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
2530 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
2531 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
2532 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
2533 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
2534 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
2535 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
2536 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
2537 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
2538 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
2539 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
2540 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
2541 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
2542 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
2543 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
2544 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
2546 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2548 * config/locale/generic/time_members.cc
2549 (__timepunct<char>::_M_initialize_timepunct,
2550 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
2551 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
2552 * config/locale/gnu/time_members.cc
2553 (__timepunct<char>::_M_initialize_timepunct,
2554 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
2555 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
2556 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
2558 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
2559 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
2560 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
2561 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
2562 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
2563 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
2564 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
2565 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
2566 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
2567 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
2568 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
2569 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
2570 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
2571 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
2572 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
2573 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
2574 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
2575 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
2576 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
2577 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
2578 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
2579 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
2580 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
2581 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
2582 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
2583 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
2584 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
2585 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
2586 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
2587 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
2588 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
2589 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
2590 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
2591 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
2592 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
2593 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
2595 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
2597 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2599 * config/locale/gnu/monetary_members.cc
2600 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
2601 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
2602 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
2603 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
2604 * config/locale/gnu/numeric_members.cc
2605 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
2606 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
2608 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
2610 Fixups for EDG front end.
2611 * include/ext/rope: Instead of non-existent function
2612 _Data_allocate, use allocator's allocate. Use this.
2613 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
2614 enumerations from _Rope_RopeRep here.
2615 * include/ext/ropeimpl.h: Same.
2616 * src/ext-inst.cc (_S_min_len): Fix up definition.
2618 * config/locale/gnu/ctype_members.cc: Qualify base class members
2620 * config/locale/generic/ctype_members.cc: Same.
2621 * config/locale/gnu/messages_members.h: Same.
2622 * config/locale/generic/messages_members.h: Same.
2623 * src/ctype.cc: Same.
2624 * include/bits/codecvt.h: Same.
2626 * include/bits/boost_concept_check.h: Declare.
2627 (__error_type_must_be_an_unsigned_integer_type): Remove this.
2628 (__error_type_must_be_an_integer_type): Remove this.
2629 (__error_type_must_be_a_signed_integer_type): Remove this.
2631 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
2633 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
2634 specification to definition.
2635 (__cxa_allocate_exception): Same.
2636 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
2637 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
2638 (__cxa_get_globals): Same.
2640 * libsupc++/del_op.cc: Add comment about freestanding.
2642 2004-04-05 Paolo Carlini <pcarlini@suse.de>
2644 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2645 The critical section is actually very small, only two assignments.
2647 2004-04-04 Paolo Carlini <pcarlini@suse.de>
2648 Petur Runolfsson <peturr02@ru.is>
2650 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
2651 adapted from libstdc++/11378.
2653 2004-04-03 Paolo Carlini <pcarlini@suse.de>
2655 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
2656 some duplicated code.
2657 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
2658 in the single threaded case.
2659 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2660 Reorder and renumber the tests consistently with the other testfiles.
2661 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2662 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2663 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2665 2004-04-02 Paolo Carlini <pcarlini@suse.de>
2667 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2668 Rearrange arithmetic to avoid computing two divisions at
2671 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2673 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
2674 Streamline the second half, wrapping it in a single
2675 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
2676 conditionals inside loops.
2678 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2681 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
2682 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
2683 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
2684 to _GLIBCXX_RES_LIMITS.
2685 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
2687 * testsuite/testsuite_hooks.h: Declare set_file_limit.
2688 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
2689 and setrlimit(RLIMIT_FSIZE).
2690 * testsuite/27_io/fpos/14775.cc: New.
2691 * config.h.in: Regenerate.
2692 * configure: Likewise.
2694 2004-03-31 Paolo Carlini <pcarlini@suse.de>
2696 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
2697 In v3 uses of sscanf, the special floating-point numbers INF,
2698 INFINITY, etc., cannot occur in input, therefore, if the latter
2699 is too large, ERANGE is always stored in errno, no need of finitel.
2701 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
2704 * include/bits/stl_tree.h: Adjust initialization list order.
2706 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
2708 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
2710 2004-03-29 Paolo Carlini <pcarlini@suse.de>
2712 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
2713 on allocator behavior, the memory pointed by data2 may well be not
2716 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
2719 * include/bits/basic_string.tcc
2720 (basic_string::basic_string(const basic_string&)): Pass to
2721 _Rep::_M_grab the actual allocator of the string being constructed
2722 not the default constructed one.
2724 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
2727 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2728 (__enc_traits::_M_destroy): New.
2729 (__enc_traits::~__enc_traits): Use it.
2730 (__enc_traits::operator=): Use _M_destroy, _M_init.
2731 (__enc_traits::__enc_traits): Same.
2733 2004-03-27 Petur Runolfsson <peturr02@ru.is>
2735 * testsuite/ext/enc_filebuf/char/13598.cc: New.
2737 2004-03-27 Paolo Carlini <pcarlini@suse.de>
2739 * include/ext/mt_allocator.h: Uglify consistently names of
2740 variables, members and classes; tidy.
2742 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
2744 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2745 Deallocation loop rewrote.
2747 2004-03-26 Paolo Carlini <pcarlini@suse.de>
2749 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2750 __mt_alloc<>::deallocate): Protect two instances of
2751 block->thread_id with __GTHREADS.
2753 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
2755 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
2756 default argument in constructors.
2757 (_Rb_tree::_M_empty_initialize): Remove.
2759 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
2761 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
2762 * testsuite/23_containers/set/operators/1_neg.cc: Same.
2764 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2766 * include/bits/cpp_type_traits.h: Changed __is_pod
2767 completely. Now, it does not use any of the previous type_traits
2768 to detect the pod types, and it also detects function pointers as
2771 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
2772 which encapsulates the internal implementation of an rb_tree. Made
2773 the allocator a base class of this class instead of the rb_tree,
2774 which was not conforming. This _Rb_tree_impl class is also
2775 specialized on whether the _Compare parameter is a POD type or
2776 not. If so, then it maintains the comparison function as a data
2777 member, otherwise it makes the _Compare parameter a base class of
2778 itself. Also, _M_key_compare is now a function instead of a data
2779 member, so that the above trick can work properly. Delegated the
2780 initialization of the other data members to this newly created
2781 class. Also, now other member functions of rb_tree must refer to
2782 _M_key_compare as _M_impl._M_key_compare(). The other data members
2783 (*) can be referenced to as _M_impl.(*), where
2784 (*) includes _M_header, and _M_node_count.
2786 2004-03-25 Paolo Carlini <pcarlini@suse.de>
2788 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
2789 Add _M_min_bin, the size in bytes of the smallest bin.
2790 (__mt_alloc<>::tune()): Tweak accordingly.
2791 (__mt_alloc<>::tune(size_t, ...)): Likewise.
2792 (__mt_alloc<>::block_record): Change to a union: members next
2793 and thread_id are never used at the same time.
2794 (__mt_alloc<>::allocate): Update consistently.
2795 (__mt_alloc<>::deallocate): Likewise.
2796 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
2797 _S_bin_size for the configurable _M_min_size.
2799 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2801 * include/bits/stl_list.h: Created a _List_impl class and made it
2802 derive from the allocator, instead of the list deriving from the
2803 allocator class, which was not conformant. Changed all references
2804 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
2805 as above (changed all references to the concerned variables).
2807 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2809 * include/bits/stl_deque.h: Created a _Deque_impl class and made
2810 it derive from the allocator, instead of the deque deriving from
2811 the allocator class, which was not conformant. Changed all
2812 references to the _M_start, _M_finish, _M_map, and _M_map_size to
2814 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
2815 qualification in 2 places where it was missing.
2816 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
2818 * include/bits/deque.tcc: Same as above (changed all references to
2819 the concerned variables).
2821 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2823 * include/bits/stl_vector.h: Created a _Vector_impl class and made
2824 it derive from the allocator, instead of the _Vector_base class,
2825 deriving from the allocator which was not conformant. Changed all
2826 references to the _M_start, _M_finish, and _M_end_of_storage to
2828 * include/bits/vector.tcc: Same as above (changed all references
2829 to the concerned variables).
2831 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2833 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
2834 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
2835 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
2837 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
2839 * include/ext/malloc_allocator.h: Fixed the construct function to
2840 call global placement new instead of assignment. Added a check
2841 after the return from malloc to check whether returned pointer is
2842 NULL, and if so, throw std::bad_alloc().
2843 * include/ext/debug_allocator.h: Added a check in the deallocate
2844 function to check whether the user has passed a NULL pointer or
2847 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
2849 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
2851 2004-03-24 Andreas Schwab <schwab@suse.de>
2853 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
2854 warning from IA64 assembler.
2856 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
2858 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
2859 function call __builtin_ctz instead of the while loop.
2860 (allocate) -> If condition has __builtin_expect.
2861 (deallocate) -> Ditto.
2862 Renamed a few left-over variables and typedefs according to the
2863 C++STYLE mentioned in the documentation.
2864 Protected calls to __gthread* by __gthread_active_p(), whose value
2865 is cached in the local variable __threads_active.
2867 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
2869 * testsuite/performance/20_util/allocator/producer_consumer.cc:
2870 Use linear algorithm for producer.
2872 2004-03-24 Paolo Carlini <pcarlini@suse.de>
2874 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2875 __mt_alloc<>::deallocate): Avoid redundant conditionals.
2877 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
2879 * include/bits/locale_facets.h: Tweaks for 80 column.
2880 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
2881 (__moneypunct_cache::_M_cache): Same.
2882 (num_get): Don't inherit from __num_base.
2884 (money_get): Don't inherit from money_base.
2886 (__timepunct::_M_am_pm_format): New.
2887 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
2888 (time_get::_M_extract_name): Same.
2889 (time_get::_M_extract_via_format): Same.
2890 * include/bits/locale_facets.tcc: Tweaks for 80 column.
2891 Use _M_getloc instead of getloc.
2892 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
2893 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
2894 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
2896 2004-03-22 Paolo Carlini <pcarlini@suse.de>
2898 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
2899 * configure: Regenerate.
2900 * config/allocator/pool_allocator_base.h: New.
2901 * include/ext/pool_allocator.h: Convert to a standard-conforming
2903 * src/allocator.cc: Tweak instantiations.
2904 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
2905 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
2906 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
2907 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2908 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2909 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2911 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
2913 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
2914 inline" and attribute-unused. Qualify parameter __mem with
2916 (__exchange_and_add): Ditto. Add back memory clobber to asm.
2918 2004-03-20 Paolo Carlini <pcarlini@suse.de>
2920 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
2922 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
2924 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
2926 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
2928 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
2930 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
2932 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
2934 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
2936 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
2938 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
2941 2004-03-20 Paolo Carlini <pcarlini@suse.de>
2943 * include/std/std_valarray.h: Document DR389 [Ready].
2944 * docs/html/ext/howto.html: Add an entry for DR389.
2946 2004-03-19 Michael Eager <eager@mvista.com>
2948 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
2951 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2953 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
2955 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
2956 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
2957 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
2958 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
2959 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
2960 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
2961 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
2962 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
2963 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
2965 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2966 Petur Runolfsson <peturr02@ru.is>
2969 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
2970 no way to find out the conversion used by the underlying FILE*.
2971 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
2972 * testsuite/27_io/objects/char/9.cc: Tweak.
2974 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2977 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
2978 memory allocation/deallocation calls.
2979 * testsuite/ext/14648.cc: New.
2981 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
2984 * include/backward/bvector.h (bit_vector): Allocator is in std
2987 2004-03-19 Phil Edwards <phil@codesourcery.com>
2989 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
2990 not libiconv. SUBST this variable as well.
2991 * testsuite/Makefile.am (site.exp): New target, based on that
2992 created by automake. Also set libiconv.
2994 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2995 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2996 testsuite/Makefile.in: Regenerate.
2998 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
3000 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
3001 new_allocator for all hosts.
3002 * configure: Regenerate.
3004 2004-03-16 Paolo Carlini <pcarlini@suse.de>
3006 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
3007 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3009 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3011 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3012 Adjust the logic underlying the parsing of symbol to deal
3013 correctly with an optional sign component (i.e., when either
3014 negative_sign or positive_sign is empty)
3015 * testsuite/22_locale/money_get/get/char/19.cc: New.
3016 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
3018 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3020 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3021 Do not accept an incomplete currency symbol.
3022 * testsuite/22_locale/money_get/get/char/18.cc: New.
3023 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
3025 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
3027 * config/allocator: New.
3028 * config/allocator/bitmap_allocator_base.h: New.
3029 * config/allocator/malloc_allocator_base.h: New.
3030 * config/allocator/mt_allocator_base.h: New.
3031 * config/allocator/new_allocator_base.h: New.
3032 * include/bits/allocator.h: Include c++allocator.h.
3033 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
3034 * aclocal.m4: Regenerate.
3035 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
3036 * configure: Regenerate.
3037 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
3038 * include/Makefile.in: Regenerate.
3039 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
3041 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3043 * include/bits/allocator.h: Revert.
3045 2004-03-12 Paolo Carlini <pcarlini@suse.de>
3047 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
3048 * include/bits/gslice_array.h: Add comment about DR 253.
3049 * include/bits/indirect_array.h: Likewise.
3050 * include/bits/mask_array.h: Likewise.
3051 * include/bits/slice_array.h: Likewise.
3053 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3055 * testsuite/20_util/allocator/14176.cc: New.
3056 * include/ext/mt_allocator.h: Formatting fixes.
3058 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
3060 * include/Makefile.am (ext_headers): Add
3061 ${ext_srcdir}/bitmap_allocator.h .
3062 * include/Makefile.in: Regenerate.
3063 * docs/html/ext/ballocator_doc.txt: New file.
3064 * include/ext/bitmap_allocator.h: New file.
3065 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
3067 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
3068 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
3069 test for the bitmap_allocator<>.
3070 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
3071 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
3072 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
3074 2004-03-11 Paolo Carlini <pcarlini@suse.de>
3076 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3077 pow(const _Tp&, const complex&), pow(const complex&,
3078 const complex&)): Fully qualify with std:: a few calls.
3079 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
3081 2004-03-11 Steven Bosscher <stevenb@suse.de>
3084 * include/c_std/cmath.tcc (__cmath_power): Define inline.
3086 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
3088 * configure.ac: Bump AC_PREREQ to 2.59.
3090 2004-03-10 Paolo Carlini <pcarlini@suse.de>
3092 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
3094 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
3095 Paolo Carlini <pcarlini@suse.de>
3098 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3099 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
3100 * testsuite/26_numerics/complex/13450.cc: New.
3102 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
3103 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
3105 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
3108 * include/bits/gslice_array.h (gslice_array()): Make public.
3109 (operator=(gslice_array)): Make public. Implement.
3110 * include/bits/indirect_array.h (indirect_array()): Make public.
3111 * include/bits/mask_array.h (mask_array()): Make public.
3112 (operator=(mask_array)): Make public. Implement.
3113 * include/bits/valarray_array.tcc (__valarray_copy):
3114 Comment. Add versions for gslice_array and mask_array.
3115 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
3117 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
3119 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
3121 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
3122 * testsuite/23_containers/set/modifiers/swap.cc: Same.
3123 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3124 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3125 * testsuite/23_containers/map/modifiers/swap.cc: Same.
3126 * testsuite/23_containers/list/modifiers/swap.cc: Same.
3128 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
3130 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3133 * testsuite/23_containers/deque/modifiers/swap.cc: New.
3134 * testsuite/23_containers/list/modifiers/swap.cc: New.
3135 * testsuite/23_containers/map/modifiers/swap.cc: New.
3136 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
3137 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
3138 * testsuite/23_containers/set/modifiers/swap.cc: New.
3139 * testsuite/23_containers/vector/modifiers/swap.cc: New.
3141 2004-03-08 Petur Runolfsson <peturr02@ru.is>
3144 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
3146 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3148 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
3149 * include/bits/stl_multiset.h: Add comment about DR 103.
3150 * include/bits/stl_set.h: Likewise.
3152 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3154 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3155 The value _space_ indicates that at least one space is required
3157 * testsuite/22_locale/money_get/get/char/17.cc: New.
3158 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
3160 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
3161 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
3163 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
3164 Remove redundant conditional on __str.size().
3166 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3168 * include/bits/allocator.h: Switch defaults to mt_alloc.
3170 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3172 * include/ext/mt_allocator.h (_S_initialize): If
3173 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
3175 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3178 * src/locale_init.cc (locale::locale): Lock critical regions with
3180 (locale::global): Same.
3181 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
3182 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
3183 (__glibcxx_mutex_lock): Same.
3185 * config/cpu/generic/atomicity.h: Remove
3186 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
3187 * src/misc-inst.cc: Move all locking bits out of this file.
3189 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
3190 * src/misc-inst.cc: Same.
3191 * config/cpu/hppa/atomicity.h: Same.
3193 * config/linker-map.gnu: Remove types in the signature of atomic
3194 exports, as they may vary.
3196 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3198 * include/bits/locale_facets.tcc: Tweak the comment preceding
3199 has_facet: doesn't throw.
3201 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3203 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
3204 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3205 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3206 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3207 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3208 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3209 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3210 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3212 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3214 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3215 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
3216 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
3217 * testsuite/testsuite_character.h (struct __gnu_test::character):
3219 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
3222 2004-03-05 Paolo Carlini <pcarlini@suse.de>
3224 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
3226 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3228 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
3230 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
3232 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3233 * testsuite/23_containers/list/invalidation/1.cc: Same.
3234 * testsuite/23_containers/list/invalidation/2.cc: Same.
3235 * testsuite/23_containers/list/invalidation/3.cc: Same.
3236 * testsuite/23_containers/list/invalidation/4.cc: Same.
3237 * testsuite/23_containers/map/invalidation/2.cc: Same.
3238 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
3239 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3240 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
3241 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3242 * testsuite/23_containers/set/invalidation/1.cc: Same.
3243 * testsuite/23_containers/set/invalidation/2.cc: Same.
3244 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3245 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3246 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3247 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3249 2004-03-04 Paolo Carlini <pcarlini@suse.de>
3251 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
3253 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
3255 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
3256 from the dg-options.
3257 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
3258 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
3259 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
3260 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
3261 * testsuite/23_containers/vector/resize/1.cc: Likewise.
3262 * testsuite/26_numerics/complex_value.cc: Likewise.
3263 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
3264 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3265 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
3266 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
3267 * testsuite/27_io/objects/char/5.cc: Likewise.
3268 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
3269 * testsuite/backward/11460.cc: Likewise.
3270 * testsuite/thread/pthread7-rope.cc: Likewise.
3272 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
3273 missing test variable.
3274 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
3275 missing test variable.
3277 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3279 * testsuite/20_util/allocator/1.cc: Provide explicit
3280 instantiations for non-weak systems.
3281 * testsuite/20_util/binders.cc: Same.
3282 * testsuite/20_util/allocator/8230.cc: Same.
3283 * testsuite/20_util/allocator/10378.cc: Same.
3284 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3285 * testsuite/22_locale/ctype/is/char/2.cc: Same.
3286 * testsuite/thread/pthread7-rope.cc: Same.
3287 * testsuite/thread/pthread6.cc: Same.
3288 * testsuite/thread/pthread5.cc: Same.
3289 * testsuite/thread/pthread4.cc: Same.
3290 * testsuite/thread/pthread1.cc: Same.
3291 * testsuite/ext/rope.cc: Same.
3292 * testsuite/ext/hash_set.cc: Same.
3293 * testsuite/ext/hash_map.cc: Same.
3294 * testsuite/ext/concept_checks.cc: Same.
3295 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
3296 * testsuite/25_algorithms/unique/2.cc: Same.
3297 * testsuite/25_algorithms/unique/1.cc: Same.
3298 * testsuite/25_algorithms/rotate.cc: Same.
3299 * testsuite/25_algorithms/min_max.cc: Same.
3300 * testsuite/25_algorithms/equal.cc: Same.
3301 * testsuite/24_iterators/rel_ops.cc: Same.
3302 * testsuite/24_iterators/iterator.cc: Same.
3303 * testsuite/24_iterators/insert_iterator.cc: Same.
3304 * testsuite/24_iterators/front_insert_iterator.cc: Same.
3305 * testsuite/24_iterators/back_insert_iterator.cc: Same.
3306 * testsuite/23_containers/vector/resize/1.cc: Same.
3307 * testsuite/23_containers/vector/modifiers/2.cc: Same.
3308 * testsuite/23_containers/vector/modifiers/1.cc: Same.
3309 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3310 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3311 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3312 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3313 * testsuite/23_containers/vector/element_access/1.cc: Same.
3314 * testsuite/23_containers/vector/cons/6513.cc: Same.
3315 * testsuite/23_containers/vector/cons/3.cc: Same.
3316 * testsuite/23_containers/vector/cons/2.cc: Same.
3317 * testsuite/23_containers/vector/cons/1.cc: Same.
3318 * testsuite/23_containers/vector/capacity/8230.cc: Same.
3319 * testsuite/23_containers/vector/capacity/1.cc: Same.
3320 * testsuite/23_containers/vector/bool/6886.cc: Same.
3321 * testsuite/23_containers/stack/members/7158.cc: Same.
3322 * testsuite/23_containers/set/invalidation/2.cc: Same.
3323 * testsuite/23_containers/set/invalidation/1.cc: Same.
3324 * testsuite/23_containers/queue/members/7157.cc: Same.
3325 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
3326 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3327 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3328 * testsuite/23_containers/multiset/insert/1.cc: Same.
3329 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3330 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3331 * testsuite/23_containers/map/operators/1.cc: Same.
3332 * testsuite/23_containers/map/invalidation/2.cc: Same.
3333 * testsuite/23_containers/map/invalidation/1.cc: Same.
3334 * testsuite/23_containers/map/insert/1.cc: Same.
3335 * testsuite/23_containers/list/operators/4.cc: Same.
3336 * testsuite/23_containers/list/operators/3.cc: Same.
3337 * testsuite/23_containers/list/operators/2.cc: Same.
3338 * testsuite/23_containers/list/operators/1.cc: Same.
3339 * testsuite/23_containers/list/modifiers/3.cc: Same.
3340 * testsuite/23_containers/list/modifiers/2.cc: Same.
3341 * testsuite/23_containers/list/modifiers/1.cc: Same.
3342 * testsuite/23_containers/list/invalidation/4.cc: Same.
3343 * testsuite/23_containers/list/invalidation/3.cc: Same.
3344 * testsuite/23_containers/list/invalidation/2.cc: Same.
3345 * testsuite/23_containers/list/invalidation/1.cc: Same.
3346 * testsuite/23_containers/list/cons/9.cc: Same.
3347 * testsuite/23_containers/list/cons/8.cc: Same.
3348 * testsuite/23_containers/list/cons/7.cc: Same.
3349 * testsuite/23_containers/list/cons/6.cc: Same.
3350 * testsuite/23_containers/list/cons/5.cc: Same.
3351 * testsuite/23_containers/list/cons/4.cc: Same.
3352 * testsuite/23_containers/list/cons/3.cc: Same.
3353 * testsuite/23_containers/list/cons/2.cc: Same.
3354 * testsuite/23_containers/list/cons/1.cc: Same.
3355 * testsuite/23_containers/list/capacity/1.cc: Same.
3356 * testsuite/23_containers/deque/operators/1.cc: Same.
3357 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3358 * testsuite/23_containers/deque/invalidation/3.cc: Same.
3359 * testsuite/23_containers/deque/invalidation/2.cc: Same.
3360 * testsuite/23_containers/deque/invalidation/1.cc: Same.
3361 * testsuite/23_containers/deque/cons/2.cc: Same.
3362 * testsuite/23_containers/deque/cons/1.cc: Same.
3364 * src/allocator.cc: Add char, wchar_t instantiations
3365 to match extern template declarations in memory.h.
3367 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3369 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3370 Fix warning regression.
3372 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3374 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3375 Deal properly with empty __digits and negative frac_digits,
3378 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
3380 * docs/html/documentation.html: Regenerate.
3382 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3385 * include/bits/postypes.h (class streamoff): Remove, now
3386 streamoff is just typedef a 64 bit signed integer type.
3387 (class fpos): Tweak consistently.
3388 * testsuite/27_io/fpos/14320-1.cc: New.
3389 * testsuite/27_io/fpos/14320-2.cc: New.
3390 * testsuite/27_io/fpos/14320-3.cc: New.
3391 * testsuite/27_io/fpos/14320-4.cc: New.
3392 * testsuite/27_io/fpos/14320-5.cc: New.
3393 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
3395 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3397 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3398 Reorganize a bit the main parsing loop, thus early detecting
3399 an empty value component.
3400 * testsuite/22_locale/money_get/get/char/16.cc: New.
3401 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
3403 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
3405 Support automake 1.8.2
3406 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
3407 * po/Makefile.am (EXTRA_DIST): New.
3408 * po/Makefile.in: Regenerate.
3409 * Makefile.in: Same.
3410 * include/Makefile.in: Same.
3411 * libmath/Makefile.in: Same.
3412 * libsupc++/Makefile.in: Same.
3413 * src/Makefile.in: Same.
3414 * testsuite/Makefile.in: Same.
3416 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
3417 __GXX_WEAK__ instead of SUPPORTS_WEAK.
3418 (${host_builddir}/gthr-default.h): Same.
3419 (${host_builddir}/gthr.h): Same.
3420 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
3421 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
3423 * aclocal.m4: Regenerate.
3424 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
3425 * config.h.in: Regenerate.
3428 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3430 Support autoconf 2.59
3431 * acinclude.m4: Quote correctly.
3432 * aclocal.m4: Regenerate.
3435 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3437 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
3439 * docs/html/18_support/howto.html: Add bit about writing to
3440 stderr, mostly by Zack.
3442 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3444 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3445 money_get<>::do_get(string_type&)): ... and two more.
3447 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3449 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3450 Fix thinkos in the switch from string_type& to string& as last
3453 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3455 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3456 Also when parsing exponent sign, first look for thousands_sep
3457 and decimal_point; tweak a bit.
3458 * testsuite/22_locale/num_get/get/char/15.cc: New.
3459 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
3461 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3462 num_get<>::_M_extract_int): Reorder some conditionals.
3464 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3466 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3467 Consistently with numpunct, enforce the requirements in
3468 22.2.6.3, p3 for the thousands separators; tweak a bit.
3469 * testsuite/22_locale/money_get/get/char/15.cc: New.
3470 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
3472 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
3474 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
3475 testsuite_files from correct multilib blddir when running
3478 2004-02-29 Phil Edwards <phil@codesourcery.com>
3480 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
3481 the summary file to the logfile.
3482 * testsuite/Makefile.in: Regenerate.
3484 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3486 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
3488 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
3489 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
3491 2004-02-28 Paolo Carlini <pcarlini@suse.de>
3493 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3494 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
3495 no 'decimal-point' in the middle: in this case too we must fix
3496 up __found_grouping; slightly tweak.
3497 * testsuite/22_locale/num_get/get/char/14.cc: New.
3498 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
3500 2004-02-27 Eric Christopher <echristo@redhat.com>
3501 Phil Edwards <phil@codesourcery.com>
3503 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
3504 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
3505 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
3506 testsuite/22_locale/collate/hash/wchar_t/2.cc,
3507 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
3508 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
3509 testsuite/22_locale/collate/transform/wchar_t/2.cc,
3510 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
3511 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3512 Use dg-require-iconv.
3513 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
3515 2004-02-27 Phil Edwards <phil@codesourcery.com>
3516 Eric Christopher <echristo@redhat.com>
3518 * testsuite/config/default.exp: Update with comments.
3519 (${tool}_target_compile): New wrapper routine.
3520 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
3521 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
3523 (load_gcc_lib, v3track): New routines.
3524 (v3-init): Rename to libstdc++_init.
3525 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
3526 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
3528 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
3530 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
3532 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
3534 * config/os/irix/irix5.2/atomicity.h: Merge..
3535 * config/os/irix/irix6.5/atomicity.h: Merge..
3536 * config/os/irix/atomicity.h: ...into this.
3537 * config/os/irix/atomic_word.h: New.
3538 * configure.host: Set atomic_word_dir for irix.
3540 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
3541 * i386/atomicity.h: Same.
3542 * m68k/atomicity.h: Same.
3543 * sparc/atomicity.h: Same.
3545 2004-02-27 David Edelsohn <edelsohn@gnu.org>
3547 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
3548 static, and inline keywords.
3550 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3552 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3553 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
3554 call reserve on the __tmp_gruping string.
3555 (num_get<>::_M_extract_float): Don't append unnecessarily a
3556 char() to the returned string.
3557 * include/bits/locale_facets.tcc: Trivial reformattings.
3559 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3561 * include/bits/locale_facets.h (money_get<>::_M_extract):
3562 Change signature: now takes a plain string&.
3563 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3564 Update consistently the definition; use the moneypunct cache
3565 to parse the value; use swap to change __units.
3566 (money_get<>::do_get(long double&)): Update call of _M_extract,
3567 avoid ctype::narrow, not correct wrt the standard.
3568 (money_get<>::do_get(string_type&)): Likewise, update call
3569 of _M_extract, use ctype::widen.
3570 * src/locale-inst.cc: Tweak instantiations of _M_extract.
3572 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
3574 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
3575 * testsuite/demangle/abi_examples/02.cc: Likewise.
3576 * testsuite/demangle/regression/cw-11.cc: Likewise.
3577 * testsuite/demangle/regression/cw-16.cc: Change two expected
3578 results to match libiberty demangler output.
3580 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3583 * libsupc++/Makefile.am: Use libiberty demangler.
3584 (c_sources): Add cp-demangle.c.
3585 * libsupc++/Makefile.in: Regenerate.
3586 * src/Makefile.am (sources): Remove demangle.cc.
3587 * src/Makefile.in: Regenerate.
3588 * include/Makefile.am (bits_headers): Move demangle.h.
3589 (ext_headers): ...here.
3590 * include/Makefile.in: Regenerate.
3591 * include/bits/demangle.h: Move...
3592 * include/ext/demangle.h: ...here.
3593 * src/demangle.cc: Remove.
3595 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3597 * include/bits/demangle.h: Add type template parameter to all
3598 templates with just an Allocator template parameter.
3600 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
3602 * include/bits/atomicity.h: New, forward declarations for __atomic_add
3603 and __exchange_and_add.
3604 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
3605 * config/cpu/cris/atomic_word.h: Same.
3606 * config/cpu/sparc/atomic_word.h: Same.
3607 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
3608 Qualifiy with __gnu_cxx.
3609 (_Callback_list::_M_add_reference): Same.
3610 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
3611 (locale::facet::_M_remove_reference): Same.
3612 (locale::_Impl::_M_add_reference): Add.
3613 (locale::_Impl::_M_remove_reference): Same.
3614 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
3615 (basic_string::_Rep::_M_dispose): Same.
3616 * src/ios.cc (ios_base::xalloc): Same.
3617 * src/ios_init.cc (ios_base::Init::Init): Same.
3618 (ios_base::Init::~Init): Same.
3619 * src/locale.cc (locale::id::_M_id): Same.
3620 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
3621 static, and inline keywords.
3622 * config/cpu/alpha/atomicity.h: Same.
3623 * config/cpu/cris/atomicity.h: Same.
3624 * config/cpu/generic/atomicity.h: Same.
3625 * config/cpu/hppa/atomicity.h: Same.
3626 * config/cpu/i386/atomicity.h: Same.
3627 * config/cpu/ia64/atomicity.h: Same.
3628 * config/cpu/m68k/atomicity.h: Same.
3629 * config/cpu/mips/atomicity.h: Same.
3630 * config/cpu/powerpc/atomicity.h: Same.
3631 * config/cpu/s390/atomicity.h: Same.
3632 * config/cpu/sparc/atomicity.h: Same.
3634 * src/Makefile.am (host_sources): Add atomicity.cc.
3635 (atomicity.cc): New rule.
3636 * src/Makefile.in: Regenerate.
3637 * include/Makefile.am (host_headers): Remove host atomicity.h.
3638 (host_headers): Add atomic_word.h.
3639 (bits_headers): Add bits atomicity.h.
3640 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3641 * include/Makefile.in: Regenerate.
3642 * configure.host (atomic_word_dir): Add.
3643 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
3644 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3645 * configure: Regenerate.
3646 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
3648 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
3649 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3651 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
3653 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
3654 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
3655 Fix markup, more <link> tags.
3657 2004-02-25 Carlo Wood <carlo@alinoe.com>
3660 namespace __gnu_cxx::demangler
3661 (session<Allocator>::qualifier_list_Allocator): Add
3662 (session<Allocator>::M_qualifier_list_alloc): Add
3663 (session<Allocator>::decode_type_with_postfix):
3664 Use M_qualifier_list_alloc instead of calling operator new/delete.
3666 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3669 * include/bits/postypes.h (class streamoff): Add operator++(),
3670 operator++(int), operator--() and operator--(int).
3671 * testsuite/27_io/fpos/14252.cc: New.
3673 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
3675 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
3676 error in handling of hex constants.
3678 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3680 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3681 Prefer basic_string::append to operator+= and a temporary.
3683 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3685 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
3686 Only use fputs, not write.
3688 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3690 * include/ext/malloc_allocator.h: Add operators ==, !=.
3691 * include/ext/new_allocator.h: Add operators ==, !=.
3692 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
3693 (__mt_alloc::_S_get_options): New.
3694 (__mt_alloc::_S_set_options): New.
3695 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
3696 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
3697 Move functions out of line, simplify, format.
3698 * src/allocator.cc: Simplify explicit instantiations.
3699 * include/bits/allocator.h: Tweak.
3701 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3703 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3704 Restructure formatting of value component, first dealing with
3705 the non-decimal digits; use reserve.
3707 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3709 * include/bits/locale_facets.h (class money_get): Inherit
3710 from money_base too; tweak declaration of _M_extract, now
3711 parameterized on _Intl too.
3712 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3713 Update definition to use the cache; call reserve on __res to
3714 avoid multiple reallocations; fix parsing of sign component
3715 according to 22.2.6.1.2, p3.
3716 (money_get<>::do_get(long double&),
3717 money_get<>::do_get(string_type&)): Update calls of _M_extract.
3718 * src/locale-inst.cc: Add instantiations of
3719 money_get::_M_extract<false> and money_get::_M_extract<true>.
3720 * testsuite/22_locale/money_get/get/char/14.cc: New.
3721 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
3723 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3725 * libsupc++/vterminate.cc
3726 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
3728 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
3730 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3731 not set RLIMIT_AS on HP-UX.
3733 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3735 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3736 not set RLIMIT_AS on HP-UX.
3738 2004-02-21 Paolo Carlini <pcarlini@suse.de>
3740 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
3741 _S_zero, _S_end } enum, _S_atoms.
3742 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
3743 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
3744 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
3745 (__moneypunct_cache<>::~__moneypunct_cache): Update.
3746 (__moneypunct_cache<>::_M_cache): Fill the cache.
3747 (class moneypunct): Tweak __cache_type typedef.
3748 (class money_put): Inherit from money_base too; tweak declaration
3749 of _M_insert, now parameterized on _Intl.
3750 * include/bits/locale_facets.tcc
3751 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
3752 (money_put<>::_M_insert): Update definition to use the cache;
3753 call reserve on __res to avoid multiple reallocations.
3754 (money_put<>::do_put(long double),
3755 money_put<>::do_put(const string_type&): Update calls of _M_insert.
3756 * config/locale/generic/monetary_members.cc
3757 (moneypunct<char, true>::_M_initialize_moneypunct,
3758 moneypunct<char, false>::_M_initialize_moneypunct,
3759 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
3760 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
3761 * config/locale/gnu/monetary_members.cc: Likewise.
3762 * config/locale/gnu/monetary_members.cc
3763 (moneypunct<wchar_t, true>::~moneypunct(),
3764 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
3765 * src/globals_locale.cc: Tweak fake_money_cache_c.
3766 * src/locale-inst.cc: Add instantiations for
3767 money_put::_M_insert<false> and money_put::_M_insert<true> and
3768 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
3769 * src/locale_facets.cc: Define money_base::_S_atoms.
3770 * src/locale_init.cc: Update placement new of
3771 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
3772 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
3774 * config/locale/generic/numeric_members.cc: Clean up.
3775 * config/locale/gnu/numeric_members.cc: Likewise.
3776 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
3777 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
3778 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
3779 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
3780 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
3781 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
3783 2004-02-20 Mark Mitchell <mark@codesourcery.com>
3785 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
3786 FIFO for writing with ios_base::in|ios_base::out.
3787 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3788 * testsuite/27_io/objects/char/7.cc: Likewise.
3789 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
3792 2004-02-19 David Edelsohn <edelsohn@gnu.org>
3794 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
3795 from iso-8859-1 to ISO8859-1.
3796 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
3797 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
3798 * 22_locale/collate/hash/wchar_t/2.cc: Same.
3799 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
3800 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
3801 * 22_locale/collate/transform/wchar_t/2.cc: Same.
3802 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
3803 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
3805 2004-02-18 Paolo Carlini <pcarlini@suse.de>
3807 * include/bits/locale_facets.h (money_get<>::_M_extract):
3808 New, helper for do_get.
3809 (money_put<>::_M_insert): Likewise, for do_put.
3810 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3811 money_put<>::_M_insert): Define.
3812 (money_get<>::do_get(long double&), money_get<>::do_get(
3813 string_type&), money_put::do_put(long double),
3814 money_put::do_put(const string_type&)): Use the helpers.
3816 2004-02-18 Paolo Carlini <pcarlini@suse.de>
3818 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3819 Rewrite, avoiding recursion.
3820 (__gnu_internal::xwrite): Minor tweaks.
3822 2004-02-17 Stefan Olsson <stefan@xapa.se>
3824 * include/ext/mt_allocator.h: Removed the last
3825 pointer. Deallocated blocks are now added to the front of
3826 freelists as proposed by Felix Yen. This gives roughly 10%
3827 performance boost and saves some memory.
3828 * docs/html/ext/mt_allocator.html: Change due to that deallocated
3829 blocks now are added to the front of freelists. The reason to this
3830 approach is also explained.
3832 2004-02-17 Paolo Carlini <pcarlini@suse.de>
3834 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3835 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
3836 grouping fidelity conditional.
3838 2004-02-16 Paolo Carlini <pcarlini@suse.de>
3840 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
3841 Qualify exception with std::.
3842 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
3843 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3844 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3845 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3846 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3848 2004-02-16 Paolo Carlini <pcarlini@suse.de>
3850 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
3851 for now that the catch block is not reached.
3852 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
3854 2004-02-16 Paolo Carlini <pcarlini@suse.de>
3856 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3857 Fix parsing of the remaining sign characters.
3858 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
3859 the input is scanned 'til eof.
3860 * 22_locale/money_get/get/char/4.cc: Likewise.
3861 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
3862 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
3863 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
3864 not do_pos_format: the former is the only one that matters during
3866 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
3868 * 22_locale/money_get/get/char/6.cc: Minor tweak.
3869 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
3871 2004-02-15 David Asher <david.asher@cavium.com>
3874 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
3875 access __olds beyond __oldlen.
3877 2004-02-14 Paolo Carlini <pcarlini@suse.de>
3879 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
3880 sure the exception is actually thrown.
3881 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3882 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3883 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3885 2004-02-14 Paolo Carlini <pcarlini@suse.de>
3888 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
3889 In case of conversion errors, throw ios_failure; simplify.
3890 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
3891 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3892 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
3893 previously we didn't throw in case of conversion errors, instead
3894 just returned eof().
3895 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3896 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3897 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3899 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
3900 Trivial simplification of a conditional.
3902 2004-02-12 Paolo Carlini <pcarlini@suse.de>
3904 PR libstdc++/13731 (final part: writev)
3905 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3906 New, a wrapper around writev() handling partial writes.
3907 (__basic_file<char>::xwrite): Move to __gnu_internal and make
3909 (__basic_file<char>::xsputn): Update call.
3910 (__basic_file<char>::xsputn_2): Likewise.
3911 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3912 Don't declare, now static.
3914 2004-02-11 Stefan Olsson <stefan@xapa.se>
3916 * docs/html/ext/mt_allocator.html: New.
3918 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
3920 * docs/html/20_util/allocator.html: New file, consolidate
3921 allocator information here. Revamp.
3922 * docs/html/documentation.html: Change links.
3923 * docs/html/20_util/howto.html: Same.
3924 * docs/html/ext/howto.html: Same.
3926 2004-02-11 Paolo Carlini <pcarlini@suse.de>
3928 PR libstdc++/13731 (first part: write)
3929 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3931 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
3932 Define it: a wrapper around write() handling partial write.
3933 (__basic_file<char>::xsputn): Use it.
3934 (__basic_file<char>::xsputn_2): Likewise.
3936 2004-02-11 Paolo Carlini <pcarlini@suse.de>
3937 Petur Runolfsson <peturr02@ru.is>
3940 * include/std/std_istream.h (operator>>(__istream_type& (*)
3941 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
3942 operator>>(ios_base& (*)(ios_base&))): Declare inline.
3943 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
3944 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
3945 operator<<(ios_base& (*) (ios_base&))): Likewise.
3946 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
3948 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
3951 * config/linker-map.gnu: Add typeinfo and typeinfo name for
3952 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
3955 * config/linker-map.gnu: Add typeinfo and typeinfo name for
3956 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
3958 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
3960 * include/ext/pool_allocator.h: Include c++config.h.
3962 2004-02-09 Stefan Olsson <stefan@xapa.se>
3964 * include/ext/mt_allocator.h: thread_id is unused in non threaded
3965 applications and now has a ifdef to remove it completely on
3966 compilers without thread support. Include stdlib.h due to a
3967 compiler warning on getenv().
3969 2004-02-09 Paul Brook <paul@codesourcery.com>
3971 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
3973 2004-02-09 Paolo Carlini <pcarlini@suse.de>
3976 * src/locale_init.cc (locale::global(const locale&)): Use
3977 locale::name() in order to decide whether calling setlocale.
3978 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
3980 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
3981 Avoid computing &= unnecessarily.
3983 2004-02-09 James E Wilson <wilson@specifixinc.com>
3986 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
3987 __builtin_extend_pointer.
3989 2004-02-09 Paolo Carlini <pcarlini@suse.de>
3992 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
3993 Don't leave dangling pointers.
3994 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
3995 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
3996 facet is needed in the final test.
3998 2004-02-09 Bernardo Innocenti <bernie@develer.com>
4000 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
4001 * configure: Regenerate.
4003 2004-02-08 Richard Henderson <rth@redhat.com>
4006 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
4007 uncaughtExceptions during nested catch rethrow.
4008 * testsuite/18_support/14026.cc: New.
4010 2004-02-08 Paolo Carlini <pcarlini@suse.de>
4012 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
4013 When working in place remember to set the state to sharable
4014 (otherwise, _M_mutate does it).
4016 2004-02-08 Bernardo Innocenti <bernie@develer.com>
4018 * include/bits/allocator.h, include/bits/basic_ios.h,
4019 include/bits/basic_ios.tcc, include/bits/basic_string.h,
4020 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
4021 include/bits/char_traits.h, include/bits/codecvt.h,
4022 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
4023 include/bits/demangle.h, include/bits/deque.tcc,
4024 include/bits/fstream.tcc, include/bits/functexcept.h,
4025 include/bits/gslice.h, include/bits/gslice_array.h,
4026 include/bits/indirect_array.h, include/bits/ios_base.h,
4027 include/bits/istream.tcc, include/bits/list.tcc,
4028 include/bits/locale_classes.h, include/bits/locale_facets.h,
4029 include/bits/locale_facets.tcc, include/bits/localefwd.h,
4030 include/bits/mask_array.h, include/bits/ostream.tcc,
4031 include/bits/postypes.h, include/bits/slice_array.h,
4032 include/bits/sstream.tcc, include/bits/stl_algo.h,
4033 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4034 include/bits/stl_construct.h, include/bits/stl_deque.h,
4035 include/bits/stl_function.h, include/bits/stl_heap.h,
4036 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
4037 include/bits/stl_list.h, include/bits/stl_map.h,
4038 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
4039 include/bits/stl_numeric.h, include/bits/stl_pair.h,
4040 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
4041 include/bits/stl_relops.h, include/bits/stl_set.h,
4042 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
4043 include/bits/stl_threads.h, include/bits/stl_tree.h,
4044 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
4045 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
4046 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
4047 include/bits/type_traits.h, include/bits/valarray_after.h,
4048 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
4049 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
4050 trailing whitespace.
4052 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4054 * include/bits/basic_string.h: Fix comment.
4056 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4058 * include/bits/stl_construct.h: Wrap overlong lines, reformat
4059 according to the coding standards.
4060 * include/bits/stl_pair.h: Likewise.
4061 * include/bits/stl_raw_storage_iter.h: Likewise.
4062 * include/bits/stl_stack.h: Likewise.
4063 * include/bits/stl_uninitialized.h: Likewise.
4064 * include/bits/stream_iterator.h: Likewise.
4065 * include/bits/streambuf_iterator.h: Likewise.
4066 * include/bits/type_traits.h: Likewise.
4068 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4070 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4073 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
4075 * scripts/check_performance: Support PCH.
4077 * scripts/check_performance (CXX): Add -DNOTHREAD.
4078 * testsuite/performance/20_util/allocator/insert.cc: Integrate
4079 threaded tests from insert_insert.cc. Tweak iterations,
4080 remove special cases.
4081 * testsuite/performance/20_util/allocator/insert_insert.cc:
4082 Make all tests single-threaded. Tweak iterations.
4083 * testsuite/performance/20_util/allocator/map_thread.cc:
4085 * testsuite/performance/20_util/allocator/producer_consumer.cc:
4088 2004-02-05 Geoffrey Keating <geoffk@apple.com>
4092 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
4093 'gcc-lib'. Add comment about poorly-named variables.
4094 * aclocal.m4: Regenerate.
4095 * configure: Regenerate.
4097 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4099 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4100 Thousands-sep are always optional; thousands-sep are not allowed
4101 after the decimal_point.
4102 * testsuite/22_locale/money_get/get/char/12.cc: New.
4103 * testsuite/22_locale/money_get/get/char/13.cc: New.
4104 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
4105 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
4107 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
4108 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4109 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4110 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4111 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4112 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4113 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4114 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4116 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
4118 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
4120 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
4122 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
4124 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
4125 it to decide whether FIONREAD should take an off_t or int argument.
4127 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4129 * include/bits/stl_function.h: Minor formatting changes.
4131 2004-02-04 Zack Weinberg <zack@codesourcery.com>
4133 Revert previous change to config/abi/*/baseline_symbols.txt.
4135 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4136 Zack Weinberg <zack@codesourcery.com>
4138 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
4140 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
4141 (__basic_file<char>::_M_open_mode): Delete.
4142 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
4144 * testsuite/27_io/basic_filebuf/close/char/9964.cc
4145 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4146 Correct flags to filebuf::open calls.
4148 * config/abi/alpha-freebsd5/baseline_symbols.txt
4149 * config/abi/alpha-linux-gnu/baseline_symbols.txt
4150 * config/abi/hppa-linux-gnu/baseline_symbols.txt
4151 * config/abi/i386-freebsd4/baseline_symbols.txt
4152 * config/abi/i386-freebsd5/baseline_symbols.txt
4153 * config/abi/i486-linux-gnu/baseline_symbols.txt
4154 * config/abi/ia64-linux-gnu/baseline_symbols.txt
4155 * config/abi/mips-linux-gnu/baseline_symbols.txt
4156 * config/abi/sparc-freebsd5/baseline_symbols.txt
4157 * config/abi/sparc-linux-gnu/baseline_symbols.txt
4158 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
4159 Remove entry for __basic_file<char>::_M_open_mode.
4161 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
4163 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
4165 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
4167 * testsuite/performance/20_util/producer_consumer.cc: New.
4168 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
4170 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4172 * testsuite/performance/20_util/allocator.cc: Move to..
4173 * testsuite/performance/20_util/allocator/insert.cc: ...here.
4174 * testsuite/performance/20_util/allocator_thread.cc: Move to...
4175 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
4176 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
4177 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
4179 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
4181 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
4182 * docs/html/faq/index.txt: Regenerate.
4184 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
4186 * include/ext/debug_allocator.h: _M_extra now stands for the
4187 number of extra objects instead of the number of extra bytes.
4188 (debug_allocator::allocate): Adjust.
4189 (debug_allocator::deallocate): Adjust.
4191 * include/ext/pool_allocator.h: Fix typo.
4193 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
4194 Benjamin Kosnik <bkoz@redhat.com>
4196 * testsuite/performance/20_util/allocator.cc: Add map,
4198 * testsuite/performance/20_util/allocator_thread.cc: Same.
4200 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4202 * include/bits/basic_string.h (insert(iterator)): Remove,
4203 non-standard and already scheduled for removal.
4205 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4207 * include/bits/stl_iterator_base_funcs.h: Minor formatting
4208 and indentation tweaks.
4209 * include/bits/stl_iterator_base_types.h: Likewise.
4210 * include/bits/stl_list.h: Likewise.
4211 * include/bits/stl_map.h: Likewise.
4212 * include/bits/stl_tempbuf.h: Likewise.
4214 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4216 * include/bits/gslice.h, include/bits/gslice_array.h,
4217 include/bits/indirect_array.h, include/bits/mask_array.h,
4218 include/bits/slice_array.h, include/bits/stl_numeric.h,
4219 include/std/std_valarray.h: Update copyright years.
4221 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4223 * include/bits/gslice.h (gslice): Document.
4224 * include/bits/gslice_array.h (gslice_array): Document.
4225 * include/bits/indirect_array (indirect_array): Document.
4226 * include/bits/mask_array (mask_array): Document.
4227 * include/bits/slice_array.h (slice,slice_array): Document.
4228 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
4229 adjacent_difference): Document
4230 * include/std/std_valarray.h (valarray): Document.
4232 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
4234 * docs/html/19_diagnostics/howto.html: Move verbose terminate
4236 * docs/html/18_support/howto.html: Here.
4237 * docs/html/documentation.html: Add reference here.
4239 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4241 * config/locale/gnu/c++locale_internal.h: Remove prototypes
4242 of no longer used GLIBC thread locale functions.
4244 2004-02-02 Eric Christopher <echristo@redhat.com>
4245 Zack Weinberg <zack@codesourcery.com>
4247 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
4249 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
4250 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
4251 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
4252 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
4253 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
4254 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
4255 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
4256 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4259 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4261 * include/bits/stl_function.h: Additional minor tweaks.
4262 * include/bits/stl_multiset.h: Likewise.
4264 * include/bits/stl_queue.h: Minor tweaks.
4266 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4268 PR libstdc++/13976 (continued)
4269 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
4270 Make the second parameter unnamed, to void unused parameter
4272 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
4274 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4277 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
4278 Make the second parameter unnamed, to void unused parameter
4280 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
4281 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
4283 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4285 * include/bits/stl_algo.h: Additional minor tweaks.
4286 * include/bits/stl_map.h: Likewise.
4287 * include/bits/stl_multimap.h: Likewise.
4288 * include/bits/stl_multiset.h: Likewise.
4289 * include/bits/stl_set.h: Likewise.
4290 * include/bits/stl_tree.h: Likewise.
4292 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4294 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
4297 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4299 * include/bits/stl_function.h: Additional minor tweaks.
4301 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4303 * include/bits/deque.tcc: Wrap overlong lines, constify
4304 a few variables, reformat according to the coding standards.
4305 * include/bits/list.tcc: Likewise.
4306 * include/bits/stl_deque.h: Likewise.
4307 * include/bits/stl_function.h: Likewise.
4308 * include/bits/stl_iterator.h: Likewise.
4309 * include/bits/stl_iterator_base_funcs.h: Likewise.
4310 * include/bits/stl_iterator_base_types.h: Likewise.
4311 * include/bits/stl_list.h: Likewise.
4312 * include/bits/stl_map.h: Likewise.
4313 * include/bits/stl_multimap.h: Likewise.
4314 * include/bits/stl_multiset.h: Likewise.
4315 * include/bits/stl_relops.h: Likewise.
4316 * include/bits/stl_set.h: Likewise.
4318 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4320 * include/bits/stl_bvector.h: Wrap overlong lines, constify
4321 a few variables, reformat according to the coding standards.
4322 * include/bits/stl_tree.h: Likewise.
4324 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4326 * include/bits/stl_algo.h: Minor additional reformat, add
4328 * include/bits/stl_algobase.h: Add copyright year.
4330 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4332 * include/bits/stl_algo.h: Wrap overlong lines, constify
4333 a few variables, reformat according to the coding standards.
4334 * include/bits/stl_algobase.h: Likewise.
4335 * include/bits/stl_heap.h: Likewise.
4337 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4339 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
4341 * include/bits/basic_string.h: Fix two comments.
4343 2004-01-31 Per Bothner <per@bothner.com>
4345 * include/ext/mt_allocator.h
4346 (__mt_alloc::_S_thread_freelist_mutex): Guard with
4347 __GTHREAD_MUTEX_INIT.
4349 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4351 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
4353 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4355 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
4356 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
4357 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
4359 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
4361 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
4362 Don't use clear, but instead assign. Use insert.
4364 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
4366 * src/demangle.cc: Add instantiations.
4367 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
4368 * src/Makefile.in: Regenerate.
4370 2004-01-30 David Edelsohn <edelsohn@gnu.org>
4372 * src/allocator.cc: Protect _S_get_thread_id() and
4373 _S_thread_key_destr() with #ifdef __GTHREADS.
4375 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4377 Reshuffle performance testsuite.
4378 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
4379 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
4380 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
4381 fstream_seek_write.cc, ifstream_extract_float.cc,
4382 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
4383 list_create_fill_sort.cc, map_create_fill.cc,
4384 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
4385 ofstream_insert_float.cc, ofstream_insert_int.cc,
4386 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
4387 wchar_t_out.cc: Split into...
4388 * testsuite/performance/20_util/allocator.cc: New.
4389 * testsuite/performance/20_util/allocator_map_thread.cc: New.
4390 * testsuite/performance/20_util/allocator_thread.cc: New.
4391 * testsuite/performance/21_strings/string_append: New.
4392 * testsuite/performance/22_locale/is_wchar_t.cc: New.
4393 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
4394 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
4395 * testsuite/performance/22_locale/wchar_t_in.cc: New.
4396 * testsuite/performance/22_locale/wchar_t_length.cc: New.
4397 * testsuite/performance/22_locale/wchar_t_out.cc: New.
4398 * testsuite/performance/23_containers/container_benchmark.cc: New.
4399 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
4400 * testsuite/performance/23_containers/map_create_fill.cc: New.
4401 * testsuite/performance/26_numerics/complex_norm.cc: New.
4402 * testsuite/performance/27_io/cout_insert_int.cc: New.
4403 * testsuite/performance/27_io/filebuf_copy.cc: New.
4404 * testsuite/performance/27_io/filebuf_sputc.cc: New.
4405 * testsuite/performance/27_io/fstream_seek_write.cc: New.
4406 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
4407 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
4408 * testsuite/performance/27_io/ifstream_getline.cc: New.
4409 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
4410 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
4412 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4414 * include/bits/basic_string.tcc (_Rep::_S_create):
4415 Never allocate a string bigger than max_size(); always keep
4416 __capacity and __size in sync to avoid memory leaks at
4419 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4421 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4422 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
4423 the double loop, streamline.
4425 * include/bits/basic_string.tcc: Very minor tweaks.
4427 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
4429 * scripts/check_performance: Only compile with $THREAD_FLAG
4430 when test is marked to require it. Allow multiple
4431 compilations/executions of marked tests.
4432 * testsuite/testsuite_performance.h (report_performance):
4433 Report dynamic thread support status.
4434 (report_header): Likewise.
4435 * testsuite/performance/allocator.cc: Stabilize iteration
4436 count. Support more allocators. Mark each allocator test to
4437 run and report independently.
4438 * testsuite/performance/allocator_map_thread.cc: Likewise.
4439 * testsuite/performance/allocator_thread.cc: Likewise.
4441 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
4443 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
4444 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
4445 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
4446 std::get_temporary_buffer() instead of duplicating its code.
4447 Update to C++STYLE conventions.
4448 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
4449 new() instead of std::malloc().
4450 (return_temporary_buffer): Use ::operator delete() instead of
4453 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
4455 * include/bits/allocator.h: Temporary switch to new_allocator as
4456 the default to unjam bootstraps.
4458 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4460 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
4461 * include/Makefile.in: Regenerate.
4462 * include/bits/allocator_traits.h: Remove.
4463 * include/bits/allocator.h: Remove allocator_traits.h include, and
4465 (allocator): Empty base class, inherit from the underlying allocator.
4466 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
4467 * src/allocator.cc: ...here. New. For the underlying allocators.
4468 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
4469 * config/linker-map.gnu: Remove __pool_alloc bits.
4470 * src/Makefile.am (sources): Add allocator.cc.
4471 * src/Makefile.in: Regenerate.
4472 * testsuite/20_util/allocator/1.cc: Split second test into...
4473 * testsuite/20_util/allocator/8230.cc: ...this.
4474 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
4475 typedef to use std::allocatore. Format.
4476 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
4478 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
4479 __throw_bad_alloc calls. Don't include <memory>.
4480 * include/ext/malloc_allocator.h: Remove <memory> include.
4481 * include/ext/new_allocator.h (new_allocator): Same.
4482 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
4483 declaration. Switch __alloc to _Alloc.
4484 * include/ext/hashtable.h: Remove __alloc.
4485 * include/backward/alloc.h: Only inject allocator, not
4486 implementation details.
4488 * include/ext/mt_allocator.h: Replace free with delete.
4490 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4492 * src/globals_io.cc: Change to __gnu_internal namespace.
4493 * src/globals_locale.cc: Same.
4494 * src/locale_init.cc: Same.
4495 * src/ios_init.cc: Same.
4497 2004-01-28 Stefan Olsson <stefan@snon.net>
4499 * include/ext/mt_allocator.h: Replaced all malloc() calls with
4500 operator new(). Added support for the env variable
4501 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
4502 one in allocate() as well). Fix typos.
4504 2004-01-28 Paolo Carlini <pcarlini@suse.de>
4506 * include/bits/basic_string.h (_S_create(size_t,
4507 const _Alloc&): Change signature to take two size_type
4509 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4510 _InIterator, const _Alloc&, input_iterator_tag)): Update
4512 (_S_construct(_InIterator, _InIterator, const _Alloc&,
4513 forward_iterator_tag)): Likewise.
4514 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
4515 (_M_mutate(size_type, size_type, size_type)): Don't
4516 implement the exponential growth policy, demand it to
4517 _S_create, update call and simplify.
4518 (_M_clone(const _Alloc&, size_type)): Likewise.
4519 (_S_create(size_type, size_type, const _Alloc&)): Implement
4520 the growth policy, simplify otherwise.
4522 * include/bits/basic_string.h (_Rep::operator[]): Tweak
4523 signature to take a size_type, consistently with the other
4526 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
4528 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
4529 delete declarations, add include and test variable.
4531 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
4533 * include/bits/codecvt.h, include/bits/locale_facets.h,
4534 include/bits/postypes.h, include/bits/stl_bvector.h,
4535 include/bits/stl_multiset.h, include/bits/stl_set.h,
4536 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
4537 include/std/std_complex.h: Document.
4539 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
4542 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
4543 iword/pword selector.
4544 (ios_base::iword, ios_base::pword): Use it.
4545 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
4546 iword or pword member on alloc failure.
4547 * testsuite/27_io/ios_base/storage/11584.cc: New test.
4549 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
4550 PJ Darcy <darcypj@us.ibm.com>
4552 * configure.host: Add support for *-tpf.
4553 * crossconfig.m4: Likewise.
4554 * configure: Regenerate.
4555 * config/os/tpf: New directory.
4556 * config/os/tpf/os_defines.h: New file.
4557 * config/os/tpf/ctype_base.h: Likewise.
4558 * config/os/tpf/ctype_inline.h: Likewise.
4559 * config/os/tpf/ctype_noninline.h: Likewise.
4561 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4564 * include/bits/sstream.tcc: Guard use of extern template.
4566 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4568 * include/bits/basic_string.tcc
4569 (basic_string(const basic_string&, size_type, size_type),
4570 basic_string(const basic_string&, size_type, size_type,
4571 const _Alloc&)): Avoid unnecessarily constructing iterators.
4573 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4575 * config/locale/generic/c_locale.cc: Fix throw messages
4576 to use the __N marker.
4577 * config/locale/gnu/c_locale.cc: Likewise.
4578 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
4580 * docs/html/17_intro/C++STYLE: Likewise.
4581 * include/bits/basic_ios.tcc: Likewise.
4582 * include/bits/fstream.tcc: Likewise.
4583 * include/bits/vector.tcc: Likewise.
4584 * include/ext/ropeimpl.h: Likewise.
4585 * include/std/std_bitset.h: Likewise.
4586 * src/ios.cc: Likewise.
4587 * src/locale.cc: Likewise.
4588 * src/localename.cc: Likewise.
4590 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4592 * include/bits/basic_string.h (_M_replace_aux): Use the
4593 __N marker in throw message.
4594 * include/bits/basic_string.tcc (assign(const _CharT*,
4595 size_type), insert(size_type, const _CharT*, size_type),
4596 replace(size_type, size_type, const _CharT*, size_type),
4597 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
4600 * include/bits/basic_string.h, include/bits/basic_string.tcc:
4601 Fold overlong lines, minor formatting changes.
4603 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4605 * include/bits/basic_string.h (replace(iterator, iterator,
4606 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
4607 (replace(iterator, iterator, const _CharT*)): Ditto.
4608 (replace(iterator, iterator, const _CharT*, size_type)):
4609 Add missing _GLIBCXX_DEBUG_PEDASSERT.
4611 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4613 * include/bits/basic_string.tcc (replace(size_type,
4614 size_type, const _CharT*, size_type)): Implement optimized
4615 in-place algorithm for non-overlapping ranges.
4616 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
4617 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
4619 * include/bits/basic_string.tcc (insert(size_type,
4620 const _CharT*, size_type)): Tweak slightly.
4622 2004-01-26 Andreas Schwab <schwab@suse.de>
4624 * config/locale/gnu/monetary_members.cc: Restore locale before
4625 rethrowing exception.
4627 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4629 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
4631 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
4634 * include/bits/basic_string.tcc: Very minor tweaks.
4636 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4638 * testsuite/performance/string_append.cc: Increase number
4641 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4643 * include/bits/basic_string.h (erase(size_type, size_type),
4644 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
4645 instead, thus avoiding redundant check for length_error.
4647 * include/bits/basic_string.h: Tweak some comments.
4649 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4651 * include/bits/basic_string.tcc (operator+(const _CharT*,
4652 const basic_string&)): No need to go through the append
4653 taking two iterators.
4655 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4657 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
4658 Revert last change to use std::min: machine language is worse.
4659 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
4660 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4661 (find_last_not_of(_CharT, size_type)): Ditto.
4663 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
4664 size_type)): Discard the value returned by _M_check.
4665 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
4666 (append(const basic_string&, size_type, size_type)): Ditto.
4667 (copy(_CharT*, size_type, size_type)): Ditto.
4668 (compare(size_type, size_type, const basic_string&)): Ditto.
4669 (compare(size_type, size_type, const basic_string&,
4670 size_type, size_type)): Ditto.
4671 (compare(size_type, size_type, const _CharT*)): Ditto.
4672 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4674 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4676 * include/bits/basic_string.h (insert(size_type,
4677 const basic_string&, size_type, size_type)): Define inline here.
4678 * include/bits/basic_string.tcc (insert(size_type,
4679 const basic_string&, size_type, size_type)): Move inline.
4681 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4683 * include/bits/basic_string.h (assign(const basic_string&,
4684 size_type, size_type)): Define inline here.
4685 (replace(size_type, size_type, const basic_string&,
4686 size_type, size_type)): Ditto.
4687 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4688 _InputIterator, __false_type)): Only declare.
4689 (_M_replace(iterator, iterator, _InputIterator,
4690 _InputIterator)): Remove.
4691 * include/bits/basic_string.tcc (assign(const basic_string&,
4692 size_type, size_type)): Move inline.
4693 (replace(size_type, size_type, const basic_string&,
4694 size_type, size_type)): Ditto.
4695 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4696 _InputIterator, __false_type)): Define, now does also what
4697 _M_replace did before.
4698 * src/string-inst.cc (_M_replace): Don't instantiate.
4700 * include/bits/basic_string.tcc (find(const _CharT*,
4701 size_type, size_type)): Tidy.
4702 (rfind(_CharT, size_type)): Ditto.
4703 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
4704 (find_first_not_of(_CharT, size_type)): Ditto.
4705 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4706 (find_last_not_of(_CharT, size_type)): Ditto.
4708 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4711 * include/debug/bitset (operator|=): Fix typo.
4712 * testsuite/23_containers/bitset/operations/13838.cc: New.
4714 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4716 * include/bits/basic_string.tcc (insert(size_type,
4717 const _CharT*, size_type __n)): Fix length_error check.
4718 (replace(size_type, size_type, const _CharT*, size_type):
4719 Ditto; call _M_replace_safe.
4720 (_M_replace_aux(size_type, size_type, size_type, _CharT):
4721 Fix length_error check.
4722 (_M_replace(iterator, iterator, _InputIterator,
4723 _InputIterator)): Ditto, tweak.
4724 (_M_replace_safe(size_type, size_type, const _CharT*,
4725 size_type)): Remove length_error check.
4727 * include/bits/basic_string.tcc (append(const basic_string&),
4728 append(const basic_string&, size_type, size_type)): Tweak
4731 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
4732 size_type)): If __n == 0 don't call traits::copy.
4734 2004-01-23 Stefan Olsson <stefan@snon.net>
4736 * include/ext/mt_allocator.h: Reduce lock contention.
4738 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4741 * include/bits/fstream.tcc (underflow): Remove unused
4743 * include/bits/streambuf_iterator.h (equal): Ditto.
4744 * include/bits/locale_facets.h (_M_convert_from_char):
4747 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4750 * config/linker-map.gnu (nan): Delete.
4751 * libmath/mathconf.h (NAN, nan): Delete.
4752 * linkage.m4 (nan): Don't check for it.
4753 * libmath/nan.c: Delete file.
4755 * config.h.in, configure: Regenerate.
4757 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4759 * include/bits/basic_string.h (push_back(_CharT)):
4760 Call _M_replace_aux.
4761 (insert(size_type, const basic_string&)): Trivial tweak.
4762 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
4763 (insert(iterator, _CharT)): Ditto.
4764 (erase(size_type, size_type)): Ditto.
4765 (erase(iterator)): Ditto.
4766 (erase(iterator, iterator)): Ditto.
4767 (replace(size_type, size_type, size_type, _CharT)): Ditto.
4769 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
4772 * testsuite/performance/allocator_map_thread.cc: New test.
4774 2004-01-22 Paolo Carlini <pcarlini@suse.de>
4776 * include/bits/locale_facets.tcc
4777 (money_put::do_put(..., long double)): Use the basic_string
4778 constructor for char arrays, not that for C-strings, to pass
4779 __digits to do_put(..., const string_type&): __ws isn't
4782 2004-01-22 Paolo Carlini <pcarlini@suse.de>
4784 * include/bits/basic_string.h (_M_replace_safe): Change
4785 signatures to take size_types and const _CharT*.
4786 (_M_replace_aux): Likewise, takes size_types instead of
4788 (append(size_type, _CharT)): Update call.
4789 (assign(size_type, _CharT)): Ditto.
4790 (replace(iterator, iterator, size_type, _CharT)): Ditto.
4791 (_M_replace_dispatch(iterator, iterator, _Integer,
4792 _Integer, __true_type)): Ditto.
4793 * include/bits/basic_string.tcc (assign(const _CharT*,
4795 (insert(size_type, const _CharT*, size_type)): Ditto.
4796 (replace(size_type, size_type, const _CharT*,
4798 (_M_replace(iterator, iterator, _InputIterator,
4799 _InputIterator)): Ditto.
4800 (append(const basic_string&)): Ditto.
4801 (append(const basic_string&, size_type, size_type): Ditto.
4802 (append(const _CharT*, size_type): Ditto.
4803 (_M_replace_safe, _M_replace_safe): Change definitions
4804 accordingly, simplify.
4805 * string-inst.cc (_M_replace_safe): Don't instantiate.
4807 2004-01-21 Paolo Carlini <pcarlini@suse.de>
4809 * include/bits/basic_string.tcc (append(const basic_string&)):
4810 Revert previous change.
4811 (append(const basic_string&, size_type, size_type)): Revert
4812 previous change, use _M_check and _M_limit.
4814 2004-01-21 Paolo Carlini <pcarlini@suse.de>
4816 * include/bits/basic_string.h (_M_check): Change to return
4817 a checked __pos and take an additional const char* argument.
4818 (_M_fold): Rename to _M_limit, change to return a size_type,
4819 corresponding to the __off limited to the actual length.
4820 (insert(size_type, size_type, _CharT)): Update call, call
4822 (insert(iterator, _CharT)): Call replace(iterator, iterator,
4823 size_type, _CharT) instead.
4824 (erase(size_type, size_type)): Update calls.
4825 (replace(size_type, size_type, size_type, _CharT)): Ditto.
4826 (substr(size_type, size_type)): Use _M_check.
4827 * include/bits/basic_string.tcc (basic_string(const basic_string&,
4828 size_type, size_type)): Update calls.
4829 (basic_string(const basic_string&, size_type, size_type,
4830 const _Alloc&)): Ditto.
4831 (assign(const basic_string&, size_type, size_type)): Use the
4832 new _M_check and _M_limit.
4833 (insert(size_type, const basic_string&, size_type, size_type):
4835 (insert(size_type, const _CharT*, size_type)): Ditto.
4836 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
4837 (replace(size_type, size_type, const basic_string&,
4838 size_type, size_type)): Ditto.
4839 (append(const basic_string&)): Ditto.
4840 (append(const basic_string&, size_type, size_type)): Ditto.
4841 (copy(_CharT*, size_type, size_type)): Ditto.
4842 (compare(size_type, size_type, const basic_string&)): Ditto.
4843 (compare(size_type, size_type, const basic_string&,size_type,
4845 (compare(size_type, size_type, const _CharT*)): Ditto.
4846 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4848 2004-01-19 Stefan Olsson <stefan@snon.net>
4850 * include/ext/mt_allocator.h: If a thread, when it dies, still has
4851 memory on it's freelist this memory is not returned to global
4852 list. Simplification of deallocate so that memory is always
4853 returned to the calling thread id's freelist instead of to
4854 global. Fix typos. Add volatile where appropriate.
4856 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
4858 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
4859 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
4860 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
4862 2004-01-19 Paolo Carlini <pcarlini@suse.de>
4864 * src/debug.cc: Make sure all the names are prefixed with
4865 double (or single) underscore.
4867 2004-01-19 Paolo Carlini <pcarlini@suse.de>
4869 * src/debug.cc: Trivial formatting change.
4871 2004-01-19 Paolo Carlini <pcarlini@suse.de>
4873 * include/bits/basic_string.tcc (_S_construct(size_type,
4874 _CharT, const _Alloc&)): Remove redundant try/catch.
4875 (_M_mutate(size_type, size_type, size_type)): Ditto.
4876 (_M_clone(const _Alloc&, size_type)): Ditto.
4878 2004-01-18 Paolo Carlini <pcarlini@suse.de>
4880 * include/bits/basic_string.h (c_str()): Simplify, due to
4881 21.3.4 the internal representation is always kept null-terminated.
4882 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
4883 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
4884 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
4887 2004-01-18 Paolo Carlini <pcarlini@suse.de>
4889 * include/bits/basic_string.h (append(size_type, _CharT)):
4890 Moved inline, just call _M_replace_aux, no source iterators at
4891 risk of being clobbered.
4892 (assign(size_type, _CharT)): Call directly _M_replace_aux.
4893 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4894 input_iterator_tag)): Remove fifth unused argument.
4895 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4896 _InputIterator, __false_type)): Update call.
4897 * include/bits/basic_string.tcc (replace(size_type, size_type,
4898 const _CharT*, size_type)): Update call.
4899 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
4900 throw string literal.
4901 (_M_replace_safe(iterator, iterator, _ForwardIterator,
4902 _ForwardIterator)): Likewise.
4903 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4904 input_iterator_tag)): Remove fifth unused argument.
4905 (append(size_type __n, _CharT __c)): Move inline.
4906 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
4907 const C*, const C*, input_iterator_tag)): Remove fifth unused
4910 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
4912 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
4913 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
4915 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4917 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
4920 2004-01-15 Stefan Olsson <stefan@snon.net>
4922 * include/ext/mt_allocator.h: Reuse thread id's as soon as
4923 possible by changing the behaviour of thread_freelist to do
4924 push_front when threads die instead of push_back.
4926 2004-01-14 Paolo Carlini <pcarlini@suse.de>
4928 * include/bits/locale_facets.h (struct __numpunct_cache):
4929 Add member _M_grouping_size, caching the length of _M_grouping.
4930 (__numpunct_cache<>::_M_cache): Assign the latter.
4931 (__verify_grouping): Move declaration...
4932 * include/bits/locale_facets.tcc (__verify_grouping):
4933 ... here, change signature to take a const char* and a size_t
4934 for the grouping; not a template anymore.
4935 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
4936 Likewise change signature and tweak consistently.
4937 (num_get::_M_extract_float, num_get::_M_extract_int,
4938 num_put::_M_insert_int, num_put::_M_insert_float,
4939 money_get::do_get(string_type&), money_get::do_put(string_type)):
4941 * config/locale/generic/numeric_members.cc
4942 (numpunct<>::_M_initialize_numpunct): Assign the new member.
4943 * config/locale/gnu/numeric_members.cc
4944 (numpunct<>::_M_initialize_numpunct): Likewise.
4945 * src/locale-inst.cc (__add_grouping): Tweak signature.
4946 (__verify_grouping): Don't instantiate, not a template anymore.
4948 * include/bits/locale_facets.h: Rename _M_truename_len ->
4949 _M_truename_size, _M_falsename_len -> _M_falsename_size.
4950 * include/bits/locale_facets.tcc: Likewise.
4951 * config/locale/generic/numeric_members.cc: Likewise.
4952 * config/locale/gnu/numeric_members.cc: Likewise.
4954 2004-01-14 Stefan Olsson <stefan@snon.net>
4956 * include/ext/mt_allocator.h: Fixups.
4957 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
4958 * testsuite/performance/allocator_thread.cc: Same.
4960 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
4962 * testsuite/performance/ifstream_extract_float.cc: Add higher
4964 * testsuite/performance/ofstream_insert_float.cc: Same.
4966 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4968 * src/locale-misc-inst.cc (__convert_from_v(long),
4969 __convert_from_v(unsigned long), __convert_from_v(long long),
4970 __convert_from_v(unsigned long long)): Remove, unused.
4972 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
4974 * testsuite/performance/ifstream_extract_float.cc: New.
4975 * testsuite/performance/ofstream_insert_float.cc: Float generation
4978 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
4979 * 20_util/auto_ptr/1.cc: ...this.
4980 * 20_util/auto_ptr/2.cc: Same.
4981 * 20_util/auto_ptr/3.cc: Same.
4982 * 20_util/auto_ptr/3946.cc: Same.
4983 * 20_util/auto_ptr/4.cc: Same.
4984 * 20_util/auto_ptr/5.cc: Same.
4985 * 20_util/auto_ptr/6.cc: Same.
4986 * 20_util/auto_ptr/7.cc: Same.
4987 * 20_util/auto_ptr/assign_neg.cc
4988 * 20_util/pairs.cc: Break into...
4989 * 20_util/pair/1.cc: ...this.
4990 * 20_util/pair/2.cc: Same.
4991 * 20_util/pair/3.cc: Same.
4992 * 20_util/pair/4.cc: Same.
4994 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4996 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
4997 Set correctly just basefield, the only group that matters.
4999 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5001 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
5002 (_Rope_rep_base): Inherit directly from the rope allocator;
5003 use rebinding instead of _Alloc_traits; pick up data member
5004 from _Rope_rep_alloc_base.
5005 (_Rope_alloc_base): Eliminate.
5006 (_Rope_base): Inherit directly from the rope allocator; use
5007 rebinding instead of _Alloc_traits; pick up data member from
5009 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
5010 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
5012 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5015 * include/bits/basic_string.tcc (compare(size_type, size_type,
5016 const _CharT*, size_type)): Implement correctly the resolution
5017 of DR 5: basically, s is a char array, -not- a C string.
5018 * include/bits/basic_string.h: Tweak some comments.
5019 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
5020 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
5022 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
5024 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
5027 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5029 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
5031 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
5034 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5036 * include/bits/locale_facets.h (struct __numpunct_cache):
5037 Add members _M_truename_len and _M_falsename_len, caching
5038 the lengths of _M_truename and _M_falsename.
5039 (__numpunct_cache<>::_M_cache): Assign the latter.
5040 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
5041 num_put::do_put(bool)): Use the new members, thus avoiding
5042 computing string lengths again and again.
5043 * config/locale/generic/numeric_members.cc
5044 (numpunct<>::_M_initialize_numpunct): Assign the new members.
5045 * config/locale/gnu/numeric_members.cc
5046 (numpunct<>::_M_initialize_numpunct): Likewise.
5048 2004-01-12 Mark Mitchell <mark@codesourcery.com>
5050 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
5051 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
5053 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
5054 and remove Cygwin XFAIL.
5055 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5056 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5057 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5058 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
5060 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5061 * testsuite/27_io/objects/char/7.cc: Likewise.
5062 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5063 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5064 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5066 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
5068 * include/std/std_complex.h (std::complex<>::real): Return a
5069 reference. Add non-const overload.
5070 (std::complex<>::real): Likewise.
5071 (std::real): Likewise.
5072 (std::imag): Likewise.
5073 (std::operator+): Tidy.
5074 (std::operator-): Likewise.
5075 (std::operator*): Likewise.
5076 (std::operator/): Likewise.
5077 (std::operator>>): Likewise.
5079 2004-01-11 Paolo Carlini <pcarlini@suse.de>
5082 * include/bits/fstream.tcc (imbue): Exploit the external
5083 buffer to imbue 'on the fly' a new locale and convert its
5084 remainder with the new codecvt facet.
5085 (underflow): Tweak slightly to deal with this special case.
5086 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
5087 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
5088 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
5089 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
5090 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
5092 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5094 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
5097 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5100 * include/bits/locale_classes.h (class locale): Fix category
5102 * testsuite/22_locale/locale/13630.cc: Add.
5104 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
5106 * include/bits/locale_facets.h: Make a name really dependent. This
5107 will be needed when Core Issue 224 is implemented.
5109 2004-01-09 Paolo Carlini <pcarlini@suse.de>
5111 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
5112 * testsuite/performance/allocator_thread.cc: Likewise.
5114 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5116 * crossconfig.m4: Add LFS, io bits to linux cross config.
5117 * acconfig.h: Remove obsolete bits, reorder.
5118 * config.h.in: Regenerate.
5122 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
5124 * include/bits/stl_list.h:
5125 * include/bits/list.tc:
5127 Performance enhancements for destructor, push_front(),
5128 push_back(), pop_front(), pop_back(), sort()
5129 Eliminated static_casts where possible.
5130 Moved code out of header files into new src/list.cc
5131 implementation file for library where possible.
5132 Remove inheritance from iterator class and create separate
5133 classes for non-constant and constant iterators.
5134 * include/bits/stl_tree.h (_Rb_tree class):
5136 Only erase contents in destructor.
5137 Eliminate unnecessary initialization in assignment operator.
5138 Optimize for the nominal case by not checking whether
5139 container is empty in clear().
5140 Re-order test in _M_insert() to improve performance.
5141 Move initialization of new node's left & right pointers to
5142 src/tree.cc to where new node's colour is initialized
5143 and to reduce the amount of inline code.
5144 Use _M_leftmost() and _M_end() to improve readability where
5146 Create separate classes for non-constant and constant
5147 iterators to clarify code, avoid extra template parameters and
5148 casting away constness.
5150 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5152 * src/Makefile.am (sources): Add list.cc, tree.cc.
5153 * src/stl_tree.cc: Move to...
5154 * src/tree.cc: ...here.
5156 * config/linker-map.gnu: Tweaks.
5157 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
5158 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
5160 * bits/stl_vector.h: Column wrap comments.
5162 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
5164 (re-open) PR libstdc++/12658
5165 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
5166 (locale::global): Likewise.
5168 2004-01-07 Paolo Carlini <pcarlini@suse.de>
5170 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
5171 Remove redundant #include.
5172 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
5173 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
5174 re-enable normal testing.
5175 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
5177 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5178 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
5180 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
5182 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
5184 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
5186 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
5188 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
5190 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
5192 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
5193 More properly, #include <locale>.
5194 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
5195 Remove redundant #include.
5196 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
5197 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
5198 redundant DejaGnu directive.
5199 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
5202 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
5203 Stefan Olsson <stefan@snon.net>
5205 * scripts/check_performance: Use -pthread.
5206 * testsuite/performance/allocator.cc: Tweaks, add list.
5207 * testsuite/performance/allocator_thread.cc: New.
5209 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
5211 * include/bits/locale_facets.h: Document public classes and
5213 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
5216 2004-01-06 Paolo Carlini <pcarlini@suse.de>
5218 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
5219 Remove redundant #includes.
5220 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
5222 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
5224 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
5225 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
5226 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
5227 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
5228 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
5229 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
5230 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
5231 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
5232 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
5233 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
5234 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
5235 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
5236 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
5237 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
5238 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
5240 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
5242 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
5244 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
5246 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
5248 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
5249 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
5250 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
5252 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5254 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5255 Remove redundant #includes.
5256 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
5258 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
5260 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
5262 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
5264 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
5266 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5268 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5270 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
5272 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
5274 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
5276 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
5278 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
5281 2004-01-04 Mark Mitchell <mark@codesourcery.com>
5284 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
5286 * testsuite/27_io/basic_fstream/4.cc: Likewise.
5287 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
5288 * testsuite/27_io/basic_ios/4.cc: Likewise.
5289 * testsuite/27_io/basic_iostream/4.cc: Likewise.
5290 * testsuite/27_io/basic_istream/4.cc: Likewise.
5291 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
5292 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
5293 * testsuite/27_io/basic_ostream/4.cc: Likewise.
5294 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
5295 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
5296 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
5298 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5300 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
5301 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
5302 always use double underscored names.
5303 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
5305 * include/bits/locale_facets.h (struct __numpunct_cache):
5306 Dimension _M_atoms_out and _M_atoms_in one position smaller.
5307 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out