1 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3 * config/locale/gnu/monetary_members.cc
4 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
5 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
6 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
7 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
8 * config/locale/gnu/numeric_members.cc
9 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
10 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
12 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
14 Fixups for EDG front end.
15 * include/ext/rope: Instead of non-existent function
16 _Data_allocate, use allocator's allocate. Use this.
17 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
18 enumerations from _Rope_RopeRep here.
19 * include/ext/ropeimpl.h: Same.
20 * src/ext-inst.cc (_S_min_len): Fix up definition.
22 * config/locale/gnu/ctype_members.cc: Qualify base class members
24 * config/locale/generic/ctype_members.cc: Same.
25 * config/locale/gnu/messages_members.h: Same.
26 * config/locale/generic/messages_members.h: Same.
28 * include/bits/codecvt.h: Same.
30 * include/bits/boost_concept_check.h: Declare.
31 (__error_type_must_be_an_unsigned_integer_type): Remove this.
32 (__error_type_must_be_an_integer_type): Remove this.
33 (__error_type_must_be_a_signed_integer_type): Remove this.
35 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
37 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
38 specification to definition.
39 (__cxa_allocate_exception): Same.
40 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
41 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
42 (__cxa_get_globals): Same.
44 * libsupc++/del_op.cc: Add comment about freestanding.
46 2004-04-05 Paolo Carlini <pcarlini@suse.de>
48 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
49 The critical section is actually very small, only two assignments.
51 2004-04-04 Paolo Carlini <pcarlini@suse.de>
52 Petur Runolfsson <peturr02@ru.is>
54 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
55 adapted from libstdc++/11378.
57 2004-04-03 Paolo Carlini <pcarlini@suse.de>
59 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
61 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
62 in the single threaded case.
63 * testsuite/performance/20_util/allocator/list_sort_search.cc:
64 Reorder and renumber the tests consistently with the other testfiles.
65 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
66 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
67 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
69 2004-04-02 Paolo Carlini <pcarlini@suse.de>
71 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
72 Rearrange arithmetic to avoid computing two divisions at
75 2004-04-01 Paolo Carlini <pcarlini@suse.de>
77 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
78 Streamline the second half, wrapping it in a single
79 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
80 conditionals inside loops.
82 2004-04-01 Paolo Carlini <pcarlini@suse.de>
85 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
86 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
87 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
88 to _GLIBCXX_RES_LIMITS.
89 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
91 * testsuite/testsuite_hooks.h: Declare set_file_limit.
92 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
93 and setrlimit(RLIMIT_FSIZE).
94 * testsuite/27_io/fpos/14775.cc: New.
95 * config.h.in: Regenerate.
96 * configure: Likewise.
98 2004-03-31 Paolo Carlini <pcarlini@suse.de>
100 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
101 In v3 uses of sscanf, the special floating-point numbers INF,
102 INFINITY, etc., cannot occur in input, therefore, if the latter
103 is too large, ERANGE is always stored in errno, no need of finitel.
105 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
108 * include/bits/stl_tree.h: Adjust initialization list order.
110 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
112 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
114 2004-03-29 Paolo Carlini <pcarlini@suse.de>
116 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
117 on allocator behavior, the memory pointed by data2 may well be not
120 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
123 * include/bits/basic_string.tcc
124 (basic_string::basic_string(const basic_string&)): Pass to
125 _Rep::_M_grab the actual allocator of the string being constructed
126 not the default constructed one.
128 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
131 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
132 (__enc_traits::_M_destroy): New.
133 (__enc_traits::~__enc_traits): Use it.
134 (__enc_traits::operator=): Use _M_destroy, _M_init.
135 (__enc_traits::__enc_traits): Same.
137 2004-03-27 Petur Runolfsson <peturr02@ru.is>
139 * testsuite/ext/enc_filebuf/char/13598.cc: New.
141 2004-03-27 Paolo Carlini <pcarlini@suse.de>
143 * include/ext/mt_allocator.h: Uglify consistently names of
144 variables, members and classes; tidy.
146 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
148 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
149 Deallocation loop rewrote.
151 2004-03-26 Paolo Carlini <pcarlini@suse.de>
153 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
154 __mt_alloc<>::deallocate): Protect two instances of
155 block->thread_id with __GTHREADS.
157 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
159 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
160 default argument in constructors.
161 (_Rb_tree::_M_empty_initialize): Remove.
163 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
165 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
166 * testsuite/23_containers/set/operators/1_neg.cc: Same.
168 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
170 * include/bits/cpp_type_traits.h: Changed __is_pod
171 completely. Now, it does not use any of the previous type_traits
172 to detect the pod types, and it also detects function pointers as
175 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
176 which encapsulates the internal implementation of an rb_tree. Made
177 the allocator a base class of this class instead of the rb_tree,
178 which was not conforming. This _Rb_tree_impl class is also
179 specialized on whether the _Compare parameter is a POD type or
180 not. If so, then it maintains the comparison function as a data
181 member, otherwise it makes the _Compare parameter a base class of
182 itself. Also, _M_key_compare is now a function instead of a data
183 member, so that the above trick can work properly. Delegated the
184 initialization of the other data members to this newly created
185 class. Also, now other member functions of rb_tree must refer to
186 _M_key_compare as _M_impl._M_key_compare(). The other data members
187 (*) can be referenced to as _M_impl.(*), where
188 (*) includes _M_header, and _M_node_count.
190 2004-03-25 Paolo Carlini <pcarlini@suse.de>
192 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
193 Add _M_min_bin, the size in bytes of the smallest bin.
194 (__mt_alloc<>::tune()): Tweak accordingly.
195 (__mt_alloc<>::tune(size_t, ...)): Likewise.
196 (__mt_alloc<>::block_record): Change to a union: members next
197 and thread_id are never used at the same time.
198 (__mt_alloc<>::allocate): Update consistently.
199 (__mt_alloc<>::deallocate): Likewise.
200 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
201 _S_bin_size for the configurable _M_min_size.
203 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
205 * include/bits/stl_list.h: Created a _List_impl class and made it
206 derive from the allocator, instead of the list deriving from the
207 allocator class, which was not conformant. Changed all references
208 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
209 as above (changed all references to the concerned variables).
211 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
213 * include/bits/stl_deque.h: Created a _Deque_impl class and made
214 it derive from the allocator, instead of the deque deriving from
215 the allocator class, which was not conformant. Changed all
216 references to the _M_start, _M_finish, _M_map, and _M_map_size to
218 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
219 qualification in 2 places where it was missing.
220 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
222 * include/bits/deque.tcc: Same as above (changed all references to
223 the concerned variables).
225 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
227 * include/bits/stl_vector.h: Created a _Vector_impl class and made
228 it derive from the allocator, instead of the _Vector_base class,
229 deriving from the allocator which was not conformant. Changed all
230 references to the _M_start, _M_finish, and _M_end_of_storage to
232 * include/bits/vector.tcc: Same as above (changed all references
233 to the concerned variables).
235 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
237 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
238 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
239 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
241 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
243 * include/ext/malloc_allocator.h: Fixed the construct function to
244 call global placement new instead of assignment. Added a check
245 after the return from malloc to check whether returned pointer is
246 NULL, and if so, throw std::bad_alloc().
247 * include/ext/debug_allocator.h: Added a check in the deallocate
248 function to check whether the user has passed a NULL pointer or
251 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
253 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
255 2004-03-24 Andreas Schwab <schwab@suse.de>
257 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
258 warning from IA64 assembler.
260 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
262 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
263 function call __builtin_ctz instead of the while loop.
264 (allocate) -> If condition has __builtin_expect.
265 (deallocate) -> Ditto.
266 Renamed a few left-over variables and typedefs according to the
267 C++STYLE mentioned in the documentation.
268 Protected calls to __gthread* by __gthread_active_p(), whose value
269 is cached in the local variable __threads_active.
271 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
273 * testsuite/performance/20_util/allocator/producer_consumer.cc:
274 Use linear algorithm for producer.
276 2004-03-24 Paolo Carlini <pcarlini@suse.de>
278 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
279 __mt_alloc<>::deallocate): Avoid redundant conditionals.
281 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
283 * include/bits/locale_facets.h: Tweaks for 80 column.
284 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
285 (__moneypunct_cache::_M_cache): Same.
286 (num_get): Don't inherit from __num_base.
288 (money_get): Don't inherit from money_base.
290 (__timepunct::_M_am_pm_format): New.
291 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
292 (time_get::_M_extract_name): Same.
293 (time_get::_M_extract_via_format): Same.
294 * include/bits/locale_facets.tcc: Tweaks for 80 column.
295 Use _M_getloc instead of getloc.
296 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
297 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
298 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
300 2004-03-22 Paolo Carlini <pcarlini@suse.de>
302 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
303 * configure: Regenerate.
304 * config/allocator/pool_allocator_base.h: New.
305 * include/ext/pool_allocator.h: Convert to a standard-conforming
307 * src/allocator.cc: Tweak instantiations.
308 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
309 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
310 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
311 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
312 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
313 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
315 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
317 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
318 inline" and attribute-unused. Qualify parameter __mem with
320 (__exchange_and_add): Ditto. Add back memory clobber to asm.
322 2004-03-20 Paolo Carlini <pcarlini@suse.de>
324 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
326 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
328 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
330 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
332 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
334 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
336 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
338 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
340 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
342 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
345 2004-03-20 Paolo Carlini <pcarlini@suse.de>
347 * include/std/std_valarray.h: Document DR389 [Ready].
348 * docs/html/ext/howto.html: Add an entry for DR389.
350 2004-03-19 Michael Eager <eager@mvista.com>
352 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
355 2004-03-19 Paolo Carlini <pcarlini@suse.de>
357 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
359 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
360 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
361 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
362 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
363 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
364 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
365 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
366 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
367 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
369 2004-03-19 Paolo Carlini <pcarlini@suse.de>
370 Petur Runolfsson <peturr02@ru.is>
373 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
374 no way to find out the conversion used by the underlying FILE*.
375 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
376 * testsuite/27_io/objects/char/9.cc: Tweak.
378 2004-03-19 Paolo Carlini <pcarlini@suse.de>
381 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
382 memory allocation/deallocation calls.
383 * testsuite/ext/14648.cc: New.
385 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
388 * include/backward/bvector.h (bit_vector): Allocator is in std
391 2004-03-19 Phil Edwards <phil@codesourcery.com>
393 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
394 not libiconv. SUBST this variable as well.
395 * testsuite/Makefile.am (site.exp): New target, based on that
396 created by automake. Also set libiconv.
398 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
399 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
400 testsuite/Makefile.in: Regenerate.
402 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
404 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
405 new_allocator for all hosts.
406 * configure: Regenerate.
408 2004-03-16 Paolo Carlini <pcarlini@suse.de>
410 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
411 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
413 2004-03-15 Paolo Carlini <pcarlini@suse.de>
415 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
416 Adjust the logic underlying the parsing of symbol to deal
417 correctly with an optional sign component (i.e., when either
418 negative_sign or positive_sign is empty)
419 * testsuite/22_locale/money_get/get/char/19.cc: New.
420 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
422 2004-03-15 Paolo Carlini <pcarlini@suse.de>
424 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
425 Do not accept an incomplete currency symbol.
426 * testsuite/22_locale/money_get/get/char/18.cc: New.
427 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
429 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
431 * config/allocator: New.
432 * config/allocator/bitmap_allocator_base.h: New.
433 * config/allocator/malloc_allocator_base.h: New.
434 * config/allocator/mt_allocator_base.h: New.
435 * config/allocator/new_allocator_base.h: New.
436 * include/bits/allocator.h: Include c++allocator.h.
437 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
438 * aclocal.m4: Regenerate.
439 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
440 * configure: Regenerate.
441 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
442 * include/Makefile.in: Regenerate.
443 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
445 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
447 * include/bits/allocator.h: Revert.
449 2004-03-12 Paolo Carlini <pcarlini@suse.de>
451 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
452 * include/bits/gslice_array.h: Add comment about DR 253.
453 * include/bits/indirect_array.h: Likewise.
454 * include/bits/mask_array.h: Likewise.
455 * include/bits/slice_array.h: Likewise.
457 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
459 * testsuite/20_util/allocator/14176.cc: New.
460 * include/ext/mt_allocator.h: Formatting fixes.
462 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
464 * include/Makefile.am (ext_headers): Add
465 ${ext_srcdir}/bitmap_allocator.h .
466 * include/Makefile.in: Regenerate.
467 * docs/html/ext/ballocator_doc.txt: New file.
468 * include/ext/bitmap_allocator.h: New file.
469 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
471 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
472 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
473 test for the bitmap_allocator<>.
474 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
475 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
476 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
478 2004-03-11 Paolo Carlini <pcarlini@suse.de>
480 * include/std/std_complex.h (pow(const complex&, const _Tp&),
481 pow(const _Tp&, const complex&), pow(const complex&,
482 const complex&)): Fully qualify with std:: a few calls.
483 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
485 2004-03-11 Steven Bosscher <stevenb@suse.de>
488 * include/c_std/cmath.tcc (__cmath_power): Define inline.
490 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
492 * configure.ac: Bump AC_PREREQ to 2.59.
494 2004-03-10 Paolo Carlini <pcarlini@suse.de>
496 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
498 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
499 Paolo Carlini <pcarlini@suse.de>
502 * include/std/std_complex.h (pow(const complex&, const _Tp&),
503 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
504 * testsuite/26_numerics/complex/13450.cc: New.
506 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
507 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
509 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
512 * include/bits/gslice_array.h (gslice_array()): Make public.
513 (operator=(gslice_array)): Make public. Implement.
514 * include/bits/indirect_array.h (indirect_array()): Make public.
515 * include/bits/mask_array.h (mask_array()): Make public.
516 (operator=(mask_array)): Make public. Implement.
517 * include/bits/valarray_array.tcc (__valarray_copy):
518 Comment. Add versions for gslice_array and mask_array.
519 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
521 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
523 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
525 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
526 * testsuite/23_containers/set/modifiers/swap.cc: Same.
527 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
528 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
529 * testsuite/23_containers/map/modifiers/swap.cc: Same.
530 * testsuite/23_containers/list/modifiers/swap.cc: Same.
532 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
534 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
537 * testsuite/23_containers/deque/modifiers/swap.cc: New.
538 * testsuite/23_containers/list/modifiers/swap.cc: New.
539 * testsuite/23_containers/map/modifiers/swap.cc: New.
540 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
541 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
542 * testsuite/23_containers/set/modifiers/swap.cc: New.
543 * testsuite/23_containers/vector/modifiers/swap.cc: New.
545 2004-03-08 Petur Runolfsson <peturr02@ru.is>
548 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
550 2004-03-08 Paolo Carlini <pcarlini@suse.de>
552 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
553 * include/bits/stl_multiset.h: Add comment about DR 103.
554 * include/bits/stl_set.h: Likewise.
556 2004-03-08 Paolo Carlini <pcarlini@suse.de>
558 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
559 The value _space_ indicates that at least one space is required
561 * testsuite/22_locale/money_get/get/char/17.cc: New.
562 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
564 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
565 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
567 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
568 Remove redundant conditional on __str.size().
570 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
572 * include/bits/allocator.h: Switch defaults to mt_alloc.
574 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
576 * include/ext/mt_allocator.h (_S_initialize): If
577 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
579 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
582 * src/locale_init.cc (locale::locale): Lock critical regions with
584 (locale::global): Same.
585 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
586 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
587 (__glibcxx_mutex_lock): Same.
589 * config/cpu/generic/atomicity.h: Remove
590 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
591 * src/misc-inst.cc: Move all locking bits out of this file.
593 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
594 * src/misc-inst.cc: Same.
595 * config/cpu/hppa/atomicity.h: Same.
597 * config/linker-map.gnu: Remove types in the signature of atomic
598 exports, as they may vary.
600 2004-03-06 Paolo Carlini <pcarlini@suse.de>
602 * include/bits/locale_facets.tcc: Tweak the comment preceding
603 has_facet: doesn't throw.
605 2004-03-06 Paolo Carlini <pcarlini@suse.de>
607 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
608 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
609 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
610 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
611 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
612 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
613 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
614 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
616 2004-03-06 Paolo Carlini <pcarlini@suse.de>
618 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
619 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
620 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
621 * testsuite/testsuite_character.h (struct __gnu_test::character):
623 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
626 2004-03-05 Paolo Carlini <pcarlini@suse.de>
628 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
630 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
632 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
634 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
636 * testsuite/23_containers/deque/invalidation/4.cc: Same.
637 * testsuite/23_containers/list/invalidation/1.cc: Same.
638 * testsuite/23_containers/list/invalidation/2.cc: Same.
639 * testsuite/23_containers/list/invalidation/3.cc: Same.
640 * testsuite/23_containers/list/invalidation/4.cc: Same.
641 * testsuite/23_containers/map/invalidation/2.cc: Same.
642 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
643 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
644 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
645 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
646 * testsuite/23_containers/set/invalidation/1.cc: Same.
647 * testsuite/23_containers/set/invalidation/2.cc: Same.
648 * testsuite/23_containers/vector/invalidation/1.cc: Same.
649 * testsuite/23_containers/vector/invalidation/2.cc: Same.
650 * testsuite/23_containers/vector/invalidation/3.cc: Same.
651 * testsuite/23_containers/vector/invalidation/4.cc: Same.
653 2004-03-04 Paolo Carlini <pcarlini@suse.de>
655 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
657 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
659 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
661 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
662 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
663 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
664 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
665 * testsuite/23_containers/vector/resize/1.cc: Likewise.
666 * testsuite/26_numerics/complex_value.cc: Likewise.
667 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
668 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
669 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
670 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
671 * testsuite/27_io/objects/char/5.cc: Likewise.
672 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
673 * testsuite/backward/11460.cc: Likewise.
674 * testsuite/thread/pthread7-rope.cc: Likewise.
676 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
677 missing test variable.
678 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
679 missing test variable.
681 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
683 * testsuite/20_util/allocator/1.cc: Provide explicit
684 instantiations for non-weak systems.
685 * testsuite/20_util/binders.cc: Same.
686 * testsuite/20_util/allocator/8230.cc: Same.
687 * testsuite/20_util/allocator/10378.cc: Same.
688 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
689 * testsuite/22_locale/ctype/is/char/2.cc: Same.
690 * testsuite/thread/pthread7-rope.cc: Same.
691 * testsuite/thread/pthread6.cc: Same.
692 * testsuite/thread/pthread5.cc: Same.
693 * testsuite/thread/pthread4.cc: Same.
694 * testsuite/thread/pthread1.cc: Same.
695 * testsuite/ext/rope.cc: Same.
696 * testsuite/ext/hash_set.cc: Same.
697 * testsuite/ext/hash_map.cc: Same.
698 * testsuite/ext/concept_checks.cc: Same.
699 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
700 * testsuite/25_algorithms/unique/2.cc: Same.
701 * testsuite/25_algorithms/unique/1.cc: Same.
702 * testsuite/25_algorithms/rotate.cc: Same.
703 * testsuite/25_algorithms/min_max.cc: Same.
704 * testsuite/25_algorithms/equal.cc: Same.
705 * testsuite/24_iterators/rel_ops.cc: Same.
706 * testsuite/24_iterators/iterator.cc: Same.
707 * testsuite/24_iterators/insert_iterator.cc: Same.
708 * testsuite/24_iterators/front_insert_iterator.cc: Same.
709 * testsuite/24_iterators/back_insert_iterator.cc: Same.
710 * testsuite/23_containers/vector/resize/1.cc: Same.
711 * testsuite/23_containers/vector/modifiers/2.cc: Same.
712 * testsuite/23_containers/vector/modifiers/1.cc: Same.
713 * testsuite/23_containers/vector/invalidation/4.cc: Same.
714 * testsuite/23_containers/vector/invalidation/3.cc: Same.
715 * testsuite/23_containers/vector/invalidation/2.cc: Same.
716 * testsuite/23_containers/vector/invalidation/1.cc: Same.
717 * testsuite/23_containers/vector/element_access/1.cc: Same.
718 * testsuite/23_containers/vector/cons/6513.cc: Same.
719 * testsuite/23_containers/vector/cons/3.cc: Same.
720 * testsuite/23_containers/vector/cons/2.cc: Same.
721 * testsuite/23_containers/vector/cons/1.cc: Same.
722 * testsuite/23_containers/vector/capacity/8230.cc: Same.
723 * testsuite/23_containers/vector/capacity/1.cc: Same.
724 * testsuite/23_containers/vector/bool/6886.cc: Same.
725 * testsuite/23_containers/stack/members/7158.cc: Same.
726 * testsuite/23_containers/set/invalidation/2.cc: Same.
727 * testsuite/23_containers/set/invalidation/1.cc: Same.
728 * testsuite/23_containers/queue/members/7157.cc: Same.
729 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
730 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
731 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
732 * testsuite/23_containers/multiset/insert/1.cc: Same.
733 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
734 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
735 * testsuite/23_containers/map/operators/1.cc: Same.
736 * testsuite/23_containers/map/invalidation/2.cc: Same.
737 * testsuite/23_containers/map/invalidation/1.cc: Same.
738 * testsuite/23_containers/map/insert/1.cc: Same.
739 * testsuite/23_containers/list/operators/4.cc: Same.
740 * testsuite/23_containers/list/operators/3.cc: Same.
741 * testsuite/23_containers/list/operators/2.cc: Same.
742 * testsuite/23_containers/list/operators/1.cc: Same.
743 * testsuite/23_containers/list/modifiers/3.cc: Same.
744 * testsuite/23_containers/list/modifiers/2.cc: Same.
745 * testsuite/23_containers/list/modifiers/1.cc: Same.
746 * testsuite/23_containers/list/invalidation/4.cc: Same.
747 * testsuite/23_containers/list/invalidation/3.cc: Same.
748 * testsuite/23_containers/list/invalidation/2.cc: Same.
749 * testsuite/23_containers/list/invalidation/1.cc: Same.
750 * testsuite/23_containers/list/cons/9.cc: Same.
751 * testsuite/23_containers/list/cons/8.cc: Same.
752 * testsuite/23_containers/list/cons/7.cc: Same.
753 * testsuite/23_containers/list/cons/6.cc: Same.
754 * testsuite/23_containers/list/cons/5.cc: Same.
755 * testsuite/23_containers/list/cons/4.cc: Same.
756 * testsuite/23_containers/list/cons/3.cc: Same.
757 * testsuite/23_containers/list/cons/2.cc: Same.
758 * testsuite/23_containers/list/cons/1.cc: Same.
759 * testsuite/23_containers/list/capacity/1.cc: Same.
760 * testsuite/23_containers/deque/operators/1.cc: Same.
761 * testsuite/23_containers/deque/invalidation/4.cc: Same.
762 * testsuite/23_containers/deque/invalidation/3.cc: Same.
763 * testsuite/23_containers/deque/invalidation/2.cc: Same.
764 * testsuite/23_containers/deque/invalidation/1.cc: Same.
765 * testsuite/23_containers/deque/cons/2.cc: Same.
766 * testsuite/23_containers/deque/cons/1.cc: Same.
768 * src/allocator.cc: Add char, wchar_t instantiations
769 to match extern template declarations in memory.h.
771 2004-03-03 Paolo Carlini <pcarlini@suse.de>
773 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
774 Fix warning regression.
776 2004-03-03 Paolo Carlini <pcarlini@suse.de>
778 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
779 Deal properly with empty __digits and negative frac_digits,
782 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
784 * docs/html/documentation.html: Regenerate.
786 2004-03-02 Paolo Carlini <pcarlini@suse.de>
789 * include/bits/postypes.h (class streamoff): Remove, now
790 streamoff is just typedef a 64 bit signed integer type.
791 (class fpos): Tweak consistently.
792 * testsuite/27_io/fpos/14320-1.cc: New.
793 * testsuite/27_io/fpos/14320-2.cc: New.
794 * testsuite/27_io/fpos/14320-3.cc: New.
795 * testsuite/27_io/fpos/14320-4.cc: New.
796 * testsuite/27_io/fpos/14320-5.cc: New.
797 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
799 2004-03-02 Paolo Carlini <pcarlini@suse.de>
801 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
802 Reorganize a bit the main parsing loop, thus early detecting
803 an empty value component.
804 * testsuite/22_locale/money_get/get/char/16.cc: New.
805 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
807 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
809 Support automake 1.8.2
810 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
811 * po/Makefile.am (EXTRA_DIST): New.
812 * po/Makefile.in: Regenerate.
814 * include/Makefile.in: Same.
815 * libmath/Makefile.in: Same.
816 * libsupc++/Makefile.in: Same.
817 * src/Makefile.in: Same.
818 * testsuite/Makefile.in: Same.
820 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
821 __GXX_WEAK__ instead of SUPPORTS_WEAK.
822 (${host_builddir}/gthr-default.h): Same.
823 (${host_builddir}/gthr.h): Same.
824 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
825 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
827 * aclocal.m4: Regenerate.
828 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
829 * config.h.in: Regenerate.
832 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
834 Support autoconf 2.59
835 * acinclude.m4: Quote correctly.
836 * aclocal.m4: Regenerate.
839 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
841 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
843 * docs/html/18_support/howto.html: Add bit about writing to
844 stderr, mostly by Zack.
846 2004-03-01 Paolo Carlini <pcarlini@suse.de>
848 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
849 money_get<>::do_get(string_type&)): ... and two more.
851 2004-03-01 Paolo Carlini <pcarlini@suse.de>
853 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
854 Fix thinkos in the switch from string_type& to string& as last
857 2004-03-01 Paolo Carlini <pcarlini@suse.de>
859 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
860 Also when parsing exponent sign, first look for thousands_sep
861 and decimal_point; tweak a bit.
862 * testsuite/22_locale/num_get/get/char/15.cc: New.
863 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
865 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
866 num_get<>::_M_extract_int): Reorder some conditionals.
868 2004-03-01 Paolo Carlini <pcarlini@suse.de>
870 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
871 Consistently with numpunct, enforce the requirements in
872 22.2.6.3, p3 for the thousands separators; tweak a bit.
873 * testsuite/22_locale/money_get/get/char/15.cc: New.
874 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
876 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
878 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
879 testsuite_files from correct multilib blddir when running
882 2004-02-29 Phil Edwards <phil@codesourcery.com>
884 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
885 the summary file to the logfile.
886 * testsuite/Makefile.in: Regenerate.
888 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
890 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
892 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
893 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
895 2004-02-28 Paolo Carlini <pcarlini@suse.de>
897 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
898 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
899 no 'decimal-point' in the middle: in this case too we must fix
900 up __found_grouping; slightly tweak.
901 * testsuite/22_locale/num_get/get/char/14.cc: New.
902 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
904 2004-02-27 Eric Christopher <echristo@redhat.com>
905 Phil Edwards <phil@codesourcery.com>
907 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
908 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
909 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
910 testsuite/22_locale/collate/hash/wchar_t/2.cc,
911 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
912 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
913 testsuite/22_locale/collate/transform/wchar_t/2.cc,
914 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
915 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
916 Use dg-require-iconv.
917 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
919 2004-02-27 Phil Edwards <phil@codesourcery.com>
920 Eric Christopher <echristo@redhat.com>
922 * testsuite/config/default.exp: Update with comments.
923 (${tool}_target_compile): New wrapper routine.
924 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
925 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
927 (load_gcc_lib, v3track): New routines.
928 (v3-init): Rename to libstdc++_init.
929 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
930 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
932 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
934 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
936 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
938 * config/os/irix/irix5.2/atomicity.h: Merge..
939 * config/os/irix/irix6.5/atomicity.h: Merge..
940 * config/os/irix/atomicity.h: ...into this.
941 * config/os/irix/atomic_word.h: New.
942 * configure.host: Set atomic_word_dir for irix.
944 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
945 * i386/atomicity.h: Same.
946 * m68k/atomicity.h: Same.
947 * sparc/atomicity.h: Same.
949 2004-02-27 David Edelsohn <edelsohn@gnu.org>
951 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
952 static, and inline keywords.
954 2004-02-27 Paolo Carlini <pcarlini@suse.de>
956 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
957 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
958 call reserve on the __tmp_gruping string.
959 (num_get<>::_M_extract_float): Don't append unnecessarily a
960 char() to the returned string.
961 * include/bits/locale_facets.tcc: Trivial reformattings.
963 2004-02-27 Paolo Carlini <pcarlini@suse.de>
965 * include/bits/locale_facets.h (money_get<>::_M_extract):
966 Change signature: now takes a plain string&.
967 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
968 Update consistently the definition; use the moneypunct cache
969 to parse the value; use swap to change __units.
970 (money_get<>::do_get(long double&)): Update call of _M_extract,
971 avoid ctype::narrow, not correct wrt the standard.
972 (money_get<>::do_get(string_type&)): Likewise, update call
973 of _M_extract, use ctype::widen.
974 * src/locale-inst.cc: Tweak instantiations of _M_extract.
976 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
978 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
979 * testsuite/demangle/abi_examples/02.cc: Likewise.
980 * testsuite/demangle/regression/cw-11.cc: Likewise.
981 * testsuite/demangle/regression/cw-16.cc: Change two expected
982 results to match libiberty demangler output.
984 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
987 * libsupc++/Makefile.am: Use libiberty demangler.
988 (c_sources): Add cp-demangle.c.
989 * libsupc++/Makefile.in: Regenerate.
990 * src/Makefile.am (sources): Remove demangle.cc.
991 * src/Makefile.in: Regenerate.
992 * include/Makefile.am (bits_headers): Move demangle.h.
993 (ext_headers): ...here.
994 * include/Makefile.in: Regenerate.
995 * include/bits/demangle.h: Move...
996 * include/ext/demangle.h: ...here.
997 * src/demangle.cc: Remove.
999 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
1001 * include/bits/demangle.h: Add type template parameter to all
1002 templates with just an Allocator template parameter.
1004 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
1006 * include/bits/atomicity.h: New, forward declarations for __atomic_add
1007 and __exchange_and_add.
1008 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
1009 * config/cpu/cris/atomic_word.h: Same.
1010 * config/cpu/sparc/atomic_word.h: Same.
1011 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
1012 Qualifiy with __gnu_cxx.
1013 (_Callback_list::_M_add_reference): Same.
1014 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
1015 (locale::facet::_M_remove_reference): Same.
1016 (locale::_Impl::_M_add_reference): Add.
1017 (locale::_Impl::_M_remove_reference): Same.
1018 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
1019 (basic_string::_Rep::_M_dispose): Same.
1020 * src/ios.cc (ios_base::xalloc): Same.
1021 * src/ios_init.cc (ios_base::Init::Init): Same.
1022 (ios_base::Init::~Init): Same.
1023 * src/locale.cc (locale::id::_M_id): Same.
1024 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
1025 static, and inline keywords.
1026 * config/cpu/alpha/atomicity.h: Same.
1027 * config/cpu/cris/atomicity.h: Same.
1028 * config/cpu/generic/atomicity.h: Same.
1029 * config/cpu/hppa/atomicity.h: Same.
1030 * config/cpu/i386/atomicity.h: Same.
1031 * config/cpu/ia64/atomicity.h: Same.
1032 * config/cpu/m68k/atomicity.h: Same.
1033 * config/cpu/mips/atomicity.h: Same.
1034 * config/cpu/powerpc/atomicity.h: Same.
1035 * config/cpu/s390/atomicity.h: Same.
1036 * config/cpu/sparc/atomicity.h: Same.
1038 * src/Makefile.am (host_sources): Add atomicity.cc.
1039 (atomicity.cc): New rule.
1040 * src/Makefile.in: Regenerate.
1041 * include/Makefile.am (host_headers): Remove host atomicity.h.
1042 (host_headers): Add atomic_word.h.
1043 (bits_headers): Add bits atomicity.h.
1044 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
1045 * include/Makefile.in: Regenerate.
1046 * configure.host (atomic_word_dir): Add.
1047 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
1048 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
1049 * configure: Regenerate.
1050 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
1052 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
1053 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1055 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
1057 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
1058 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
1059 Fix markup, more <link> tags.
1061 2004-02-25 Carlo Wood <carlo@alinoe.com>
1064 namespace __gnu_cxx::demangler
1065 (session<Allocator>::qualifier_list_Allocator): Add
1066 (session<Allocator>::M_qualifier_list_alloc): Add
1067 (session<Allocator>::decode_type_with_postfix):
1068 Use M_qualifier_list_alloc instead of calling operator new/delete.
1070 2004-02-24 Paolo Carlini <pcarlini@suse.de>
1073 * include/bits/postypes.h (class streamoff): Add operator++(),
1074 operator++(int), operator--() and operator--(int).
1075 * testsuite/27_io/fpos/14252.cc: New.
1077 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
1079 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
1080 error in handling of hex constants.
1082 2004-02-24 Paolo Carlini <pcarlini@suse.de>
1084 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1085 Prefer basic_string::append to operator+= and a temporary.
1087 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
1089 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
1090 Only use fputs, not write.
1092 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
1094 * include/ext/malloc_allocator.h: Add operators ==, !=.
1095 * include/ext/new_allocator.h: Add operators ==, !=.
1096 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
1097 (__mt_alloc::_S_get_options): New.
1098 (__mt_alloc::_S_set_options): New.
1099 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
1100 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
1101 Move functions out of line, simplify, format.
1102 * src/allocator.cc: Simplify explicit instantiations.
1103 * include/bits/allocator.h: Tweak.
1105 2004-02-22 Paolo Carlini <pcarlini@suse.de>
1107 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1108 Restructure formatting of value component, first dealing with
1109 the non-decimal digits; use reserve.
1111 2004-02-22 Paolo Carlini <pcarlini@suse.de>
1113 * include/bits/locale_facets.h (class money_get): Inherit
1114 from money_base too; tweak declaration of _M_extract, now
1115 parameterized on _Intl too.
1116 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1117 Update definition to use the cache; call reserve on __res to
1118 avoid multiple reallocations; fix parsing of sign component
1119 according to 22.2.6.1.2, p3.
1120 (money_get<>::do_get(long double&),
1121 money_get<>::do_get(string_type&)): Update calls of _M_extract.
1122 * src/locale-inst.cc: Add instantiations of
1123 money_get::_M_extract<false> and money_get::_M_extract<true>.
1124 * testsuite/22_locale/money_get/get/char/14.cc: New.
1125 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
1127 2004-02-21 Mark Mitchell <mark@codesourcery.com>
1129 * libsupc++/vterminate.cc
1130 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
1132 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
1134 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
1135 not set RLIMIT_AS on HP-UX.
1137 2004-02-21 Mark Mitchell <mark@codesourcery.com>
1139 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
1140 not set RLIMIT_AS on HP-UX.
1142 2004-02-21 Paolo Carlini <pcarlini@suse.de>
1144 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
1145 _S_zero, _S_end } enum, _S_atoms.
1146 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
1147 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
1148 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
1149 (__moneypunct_cache<>::~__moneypunct_cache): Update.
1150 (__moneypunct_cache<>::_M_cache): Fill the cache.
1151 (class moneypunct): Tweak __cache_type typedef.
1152 (class money_put): Inherit from money_base too; tweak declaration
1153 of _M_insert, now parameterized on _Intl.
1154 * include/bits/locale_facets.tcc
1155 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
1156 (money_put<>::_M_insert): Update definition to use the cache;
1157 call reserve on __res to avoid multiple reallocations.
1158 (money_put<>::do_put(long double),
1159 money_put<>::do_put(const string_type&): Update calls of _M_insert.
1160 * config/locale/generic/monetary_members.cc
1161 (moneypunct<char, true>::_M_initialize_moneypunct,
1162 moneypunct<char, false>::_M_initialize_moneypunct,
1163 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
1164 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
1165 * config/locale/gnu/monetary_members.cc: Likewise.
1166 * config/locale/gnu/monetary_members.cc
1167 (moneypunct<wchar_t, true>::~moneypunct(),
1168 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
1169 * src/globals_locale.cc: Tweak fake_money_cache_c.
1170 * src/locale-inst.cc: Add instantiations for
1171 money_put::_M_insert<false> and money_put::_M_insert<true> and
1172 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
1173 * src/locale_facets.cc: Define money_base::_S_atoms.
1174 * src/locale_init.cc: Update placement new of
1175 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
1176 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
1178 * config/locale/generic/numeric_members.cc: Clean up.
1179 * config/locale/gnu/numeric_members.cc: Likewise.
1180 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
1181 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
1182 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
1183 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
1184 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1185 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1187 2004-02-20 Mark Mitchell <mark@codesourcery.com>
1189 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
1190 FIFO for writing with ios_base::in|ios_base::out.
1191 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
1192 * testsuite/27_io/objects/char/7.cc: Likewise.
1193 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
1196 2004-02-19 David Edelsohn <edelsohn@gnu.org>
1198 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
1199 from iso-8859-1 to ISO8859-1.
1200 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
1201 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
1202 * 22_locale/collate/hash/wchar_t/2.cc: Same.
1203 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
1204 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
1205 * 22_locale/collate/transform/wchar_t/2.cc: Same.
1206 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
1207 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
1209 2004-02-18 Paolo Carlini <pcarlini@suse.de>
1211 * include/bits/locale_facets.h (money_get<>::_M_extract):
1212 New, helper for do_get.
1213 (money_put<>::_M_insert): Likewise, for do_put.
1214 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
1215 money_put<>::_M_insert): Define.
1216 (money_get<>::do_get(long double&), money_get<>::do_get(
1217 string_type&), money_put::do_put(long double),
1218 money_put::do_put(const string_type&)): Use the helpers.
1220 2004-02-18 Paolo Carlini <pcarlini@suse.de>
1222 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
1223 Rewrite, avoiding recursion.
1224 (__gnu_internal::xwrite): Minor tweaks.
1226 2004-02-17 Stefan Olsson <stefan@xapa.se>
1228 * include/ext/mt_allocator.h: Removed the last
1229 pointer. Deallocated blocks are now added to the front of
1230 freelists as proposed by Felix Yen. This gives roughly 10%
1231 performance boost and saves some memory.
1232 * docs/html/ext/mt_allocator.html: Change due to that deallocated
1233 blocks now are added to the front of freelists. The reason to this
1234 approach is also explained.
1236 2004-02-17 Paolo Carlini <pcarlini@suse.de>
1238 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1239 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
1240 grouping fidelity conditional.
1242 2004-02-16 Paolo Carlini <pcarlini@suse.de>
1244 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
1245 Qualify exception with std::.
1246 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
1247 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
1248 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1249 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1250 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1252 2004-02-16 Paolo Carlini <pcarlini@suse.de>
1254 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
1255 for now that the catch block is not reached.
1256 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
1258 2004-02-16 Paolo Carlini <pcarlini@suse.de>
1260 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
1261 Fix parsing of the remaining sign characters.
1262 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
1263 the input is scanned 'til eof.
1264 * 22_locale/money_get/get/char/4.cc: Likewise.
1265 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
1266 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
1267 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
1268 not do_pos_format: the former is the only one that matters during
1270 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
1272 * 22_locale/money_get/get/char/6.cc: Minor tweak.
1273 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
1275 2004-02-15 David Asher <david.asher@cavium.com>
1278 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
1279 access __olds beyond __oldlen.
1281 2004-02-14 Paolo Carlini <pcarlini@suse.de>
1283 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
1284 sure the exception is actually thrown.
1285 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1286 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1287 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1289 2004-02-14 Paolo Carlini <pcarlini@suse.de>
1292 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
1293 In case of conversion errors, throw ios_failure; simplify.
1294 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
1295 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
1296 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
1297 previously we didn't throw in case of conversion errors, instead
1298 just returned eof().
1299 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1300 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1301 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1303 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
1304 Trivial simplification of a conditional.
1306 2004-02-12 Paolo Carlini <pcarlini@suse.de>
1308 PR libstdc++/13731 (final part: writev)
1309 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
1310 New, a wrapper around writev() handling partial writes.
1311 (__basic_file<char>::xwrite): Move to __gnu_internal and make
1313 (__basic_file<char>::xsputn): Update call.
1314 (__basic_file<char>::xsputn_2): Likewise.
1315 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
1316 Don't declare, now static.
1318 2004-02-11 Stefan Olsson <stefan@xapa.se>
1320 * docs/html/ext/mt_allocator.html: New.
1322 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
1324 * docs/html/20_util/allocator.html: New file, consolidate
1325 allocator information here. Revamp.
1326 * docs/html/documentation.html: Change links.
1327 * docs/html/20_util/howto.html: Same.
1328 * docs/html/ext/howto.html: Same.
1330 2004-02-11 Paolo Carlini <pcarlini@suse.de>
1332 PR libstdc++/13731 (first part: write)
1333 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
1335 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
1336 Define it: a wrapper around write() handling partial write.
1337 (__basic_file<char>::xsputn): Use it.
1338 (__basic_file<char>::xsputn_2): Likewise.
1340 2004-02-11 Paolo Carlini <pcarlini@suse.de>
1341 Petur Runolfsson <peturr02@ru.is>
1344 * include/std/std_istream.h (operator>>(__istream_type& (*)
1345 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
1346 operator>>(ios_base& (*)(ios_base&))): Declare inline.
1347 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
1348 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
1349 operator<<(ios_base& (*) (ios_base&))): Likewise.
1350 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
1352 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
1355 * config/linker-map.gnu: Add typeinfo and typeinfo name for
1356 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
1359 * config/linker-map.gnu: Add typeinfo and typeinfo name for
1360 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
1362 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
1364 * include/ext/pool_allocator.h: Include c++config.h.
1366 2004-02-09 Stefan Olsson <stefan@xapa.se>
1368 * include/ext/mt_allocator.h: thread_id is unused in non threaded
1369 applications and now has a ifdef to remove it completely on
1370 compilers without thread support. Include stdlib.h due to a
1371 compiler warning on getenv().
1373 2004-02-09 Paul Brook <paul@codesourcery.com>
1375 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
1377 2004-02-09 Paolo Carlini <pcarlini@suse.de>
1380 * src/locale_init.cc (locale::global(const locale&)): Use
1381 locale::name() in order to decide whether calling setlocale.
1382 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
1384 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
1385 Avoid computing &= unnecessarily.
1387 2004-02-09 James E Wilson <wilson@specifixinc.com>
1390 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
1391 __builtin_extend_pointer.
1393 2004-02-09 Paolo Carlini <pcarlini@suse.de>
1396 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
1397 Don't leave dangling pointers.
1398 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
1399 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
1400 facet is needed in the final test.
1402 2004-02-09 Bernardo Innocenti <bernie@develer.com>
1404 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
1405 * configure: Regenerate.
1407 2004-02-08 Richard Henderson <rth@redhat.com>
1410 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
1411 uncaughtExceptions during nested catch rethrow.
1412 * testsuite/18_support/14026.cc: New.
1414 2004-02-08 Paolo Carlini <pcarlini@suse.de>
1416 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
1417 When working in place remember to set the state to sharable
1418 (otherwise, _M_mutate does it).
1420 2004-02-08 Bernardo Innocenti <bernie@develer.com>
1422 * include/bits/allocator.h, include/bits/basic_ios.h,
1423 include/bits/basic_ios.tcc, include/bits/basic_string.h,
1424 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
1425 include/bits/char_traits.h, include/bits/codecvt.h,
1426 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
1427 include/bits/demangle.h, include/bits/deque.tcc,
1428 include/bits/fstream.tcc, include/bits/functexcept.h,
1429 include/bits/gslice.h, include/bits/gslice_array.h,
1430 include/bits/indirect_array.h, include/bits/ios_base.h,
1431 include/bits/istream.tcc, include/bits/list.tcc,
1432 include/bits/locale_classes.h, include/bits/locale_facets.h,
1433 include/bits/locale_facets.tcc, include/bits/localefwd.h,
1434 include/bits/mask_array.h, include/bits/ostream.tcc,
1435 include/bits/postypes.h, include/bits/slice_array.h,
1436 include/bits/sstream.tcc, include/bits/stl_algo.h,
1437 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
1438 include/bits/stl_construct.h, include/bits/stl_deque.h,
1439 include/bits/stl_function.h, include/bits/stl_heap.h,
1440 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
1441 include/bits/stl_list.h, include/bits/stl_map.h,
1442 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
1443 include/bits/stl_numeric.h, include/bits/stl_pair.h,
1444 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
1445 include/bits/stl_relops.h, include/bits/stl_set.h,
1446 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
1447 include/bits/stl_threads.h, include/bits/stl_tree.h,
1448 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
1449 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
1450 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
1451 include/bits/type_traits.h, include/bits/valarray_after.h,
1452 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
1453 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
1454 trailing whitespace.
1456 2004-02-06 Paolo Carlini <pcarlini@suse.de>
1458 * include/bits/basic_string.h: Fix comment.
1460 2004-02-06 Paolo Carlini <pcarlini@suse.de>
1462 * include/bits/stl_construct.h: Wrap overlong lines, reformat
1463 according to the coding standards.
1464 * include/bits/stl_pair.h: Likewise.
1465 * include/bits/stl_raw_storage_iter.h: Likewise.
1466 * include/bits/stl_stack.h: Likewise.
1467 * include/bits/stl_uninitialized.h: Likewise.
1468 * include/bits/stream_iterator.h: Likewise.
1469 * include/bits/streambuf_iterator.h: Likewise.
1470 * include/bits/type_traits.h: Likewise.
1472 2004-02-06 Paolo Carlini <pcarlini@suse.de>
1474 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
1477 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
1479 * scripts/check_performance: Support PCH.
1481 * scripts/check_performance (CXX): Add -DNOTHREAD.
1482 * testsuite/performance/20_util/allocator/insert.cc: Integrate
1483 threaded tests from insert_insert.cc. Tweak iterations,
1484 remove special cases.
1485 * testsuite/performance/20_util/allocator/insert_insert.cc:
1486 Make all tests single-threaded. Tweak iterations.
1487 * testsuite/performance/20_util/allocator/map_thread.cc:
1489 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1492 2004-02-05 Geoffrey Keating <geoffk@apple.com>
1496 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
1497 'gcc-lib'. Add comment about poorly-named variables.
1498 * aclocal.m4: Regenerate.
1499 * configure: Regenerate.
1501 2004-02-05 Paolo Carlini <pcarlini@suse.de>
1503 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
1504 Thousands-sep are always optional; thousands-sep are not allowed
1505 after the decimal_point.
1506 * testsuite/22_locale/money_get/get/char/12.cc: New.
1507 * testsuite/22_locale/money_get/get/char/13.cc: New.
1508 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
1509 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
1511 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
1512 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1513 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1514 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1515 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1516 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1517 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1518 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1520 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
1522 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
1524 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
1526 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
1528 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
1529 it to decide whether FIONREAD should take an off_t or int argument.
1531 2004-02-05 Paolo Carlini <pcarlini@suse.de>
1533 * include/bits/stl_function.h: Minor formatting changes.
1535 2004-02-04 Zack Weinberg <zack@codesourcery.com>
1537 Revert previous change to config/abi/*/baseline_symbols.txt.
1539 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
1540 Zack Weinberg <zack@codesourcery.com>
1542 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
1544 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
1545 (__basic_file<char>::_M_open_mode): Delete.
1546 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
1548 * testsuite/27_io/basic_filebuf/close/char/9964.cc
1549 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
1550 Correct flags to filebuf::open calls.
1552 * config/abi/alpha-freebsd5/baseline_symbols.txt
1553 * config/abi/alpha-linux-gnu/baseline_symbols.txt
1554 * config/abi/hppa-linux-gnu/baseline_symbols.txt
1555 * config/abi/i386-freebsd4/baseline_symbols.txt
1556 * config/abi/i386-freebsd5/baseline_symbols.txt
1557 * config/abi/i486-linux-gnu/baseline_symbols.txt
1558 * config/abi/ia64-linux-gnu/baseline_symbols.txt
1559 * config/abi/mips-linux-gnu/baseline_symbols.txt
1560 * config/abi/sparc-freebsd5/baseline_symbols.txt
1561 * config/abi/sparc-linux-gnu/baseline_symbols.txt
1562 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
1563 Remove entry for __basic_file<char>::_M_open_mode.
1565 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
1567 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
1569 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
1571 * testsuite/performance/20_util/producer_consumer.cc: New.
1572 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
1574 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
1576 * testsuite/performance/20_util/allocator.cc: Move to..
1577 * testsuite/performance/20_util/allocator/insert.cc: ...here.
1578 * testsuite/performance/20_util/allocator_thread.cc: Move to...
1579 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
1580 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
1581 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
1583 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
1585 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
1586 * docs/html/faq/index.txt: Regenerate.
1588 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
1590 * include/ext/debug_allocator.h: _M_extra now stands for the
1591 number of extra objects instead of the number of extra bytes.
1592 (debug_allocator::allocate): Adjust.
1593 (debug_allocator::deallocate): Adjust.
1595 * include/ext/pool_allocator.h: Fix typo.
1597 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
1598 Benjamin Kosnik <bkoz@redhat.com>
1600 * testsuite/performance/20_util/allocator.cc: Add map,
1602 * testsuite/performance/20_util/allocator_thread.cc: Same.
1604 2004-02-03 Paolo Carlini <pcarlini@suse.de>
1606 * include/bits/basic_string.h (insert(iterator)): Remove,
1607 non-standard and already scheduled for removal.
1609 2004-02-03 Paolo Carlini <pcarlini@suse.de>
1611 * include/bits/stl_iterator_base_funcs.h: Minor formatting
1612 and indentation tweaks.
1613 * include/bits/stl_iterator_base_types.h: Likewise.
1614 * include/bits/stl_list.h: Likewise.
1615 * include/bits/stl_map.h: Likewise.
1616 * include/bits/stl_tempbuf.h: Likewise.
1618 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
1620 * include/bits/gslice.h, include/bits/gslice_array.h,
1621 include/bits/indirect_array.h, include/bits/mask_array.h,
1622 include/bits/slice_array.h, include/bits/stl_numeric.h,
1623 include/std/std_valarray.h: Update copyright years.
1625 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
1627 * include/bits/gslice.h (gslice): Document.
1628 * include/bits/gslice_array.h (gslice_array): Document.
1629 * include/bits/indirect_array (indirect_array): Document.
1630 * include/bits/mask_array (mask_array): Document.
1631 * include/bits/slice_array.h (slice,slice_array): Document.
1632 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
1633 adjacent_difference): Document
1634 * include/std/std_valarray.h (valarray): Document.
1636 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
1638 * docs/html/19_diagnostics/howto.html: Move verbose terminate
1640 * docs/html/18_support/howto.html: Here.
1641 * docs/html/documentation.html: Add reference here.
1643 2004-02-02 Paolo Carlini <pcarlini@suse.de>
1645 * config/locale/gnu/c++locale_internal.h: Remove prototypes
1646 of no longer used GLIBC thread locale functions.
1648 2004-02-02 Eric Christopher <echristo@redhat.com>
1649 Zack Weinberg <zack@codesourcery.com>
1651 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
1653 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
1654 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
1655 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
1656 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
1657 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
1658 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
1659 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
1660 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
1663 2004-02-02 Paolo Carlini <pcarlini@suse.de>
1665 * include/bits/stl_function.h: Additional minor tweaks.
1666 * include/bits/stl_multiset.h: Likewise.
1668 * include/bits/stl_queue.h: Minor tweaks.
1670 2004-02-02 Paolo Carlini <pcarlini@suse.de>
1672 PR libstdc++/13976 (continued)
1673 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
1674 Make the second parameter unnamed, to void unused parameter
1676 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
1678 2004-02-02 Paolo Carlini <pcarlini@suse.de>
1681 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
1682 Make the second parameter unnamed, to void unused parameter
1684 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
1685 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
1687 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1689 * include/bits/stl_algo.h: Additional minor tweaks.
1690 * include/bits/stl_map.h: Likewise.
1691 * include/bits/stl_multimap.h: Likewise.
1692 * include/bits/stl_multiset.h: Likewise.
1693 * include/bits/stl_set.h: Likewise.
1694 * include/bits/stl_tree.h: Likewise.
1696 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1698 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
1701 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1703 * include/bits/stl_function.h: Additional minor tweaks.
1705 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1707 * include/bits/deque.tcc: Wrap overlong lines, constify
1708 a few variables, reformat according to the coding standards.
1709 * include/bits/list.tcc: Likewise.
1710 * include/bits/stl_deque.h: Likewise.
1711 * include/bits/stl_function.h: Likewise.
1712 * include/bits/stl_iterator.h: Likewise.
1713 * include/bits/stl_iterator_base_funcs.h: Likewise.
1714 * include/bits/stl_iterator_base_types.h: Likewise.
1715 * include/bits/stl_list.h: Likewise.
1716 * include/bits/stl_map.h: Likewise.
1717 * include/bits/stl_multimap.h: Likewise.
1718 * include/bits/stl_multiset.h: Likewise.
1719 * include/bits/stl_relops.h: Likewise.
1720 * include/bits/stl_set.h: Likewise.
1722 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1724 * include/bits/stl_bvector.h: Wrap overlong lines, constify
1725 a few variables, reformat according to the coding standards.
1726 * include/bits/stl_tree.h: Likewise.
1728 2004-01-31 Paolo Carlini <pcarlini@suse.de>
1730 * include/bits/stl_algo.h: Minor additional reformat, add
1732 * include/bits/stl_algobase.h: Add copyright year.
1734 2004-01-31 Paolo Carlini <pcarlini@suse.de>
1736 * include/bits/stl_algo.h: Wrap overlong lines, constify
1737 a few variables, reformat according to the coding standards.
1738 * include/bits/stl_algobase.h: Likewise.
1739 * include/bits/stl_heap.h: Likewise.
1741 2004-01-31 Paolo Carlini <pcarlini@suse.de>
1743 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
1745 * include/bits/basic_string.h: Fix two comments.
1747 2004-01-31 Per Bothner <per@bothner.com>
1749 * include/ext/mt_allocator.h
1750 (__mt_alloc::_S_thread_freelist_mutex): Guard with
1751 __GTHREAD_MUTEX_INIT.
1753 2004-01-31 Paolo Carlini <pcarlini@suse.de>
1755 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
1757 2004-01-30 Paolo Carlini <pcarlini@suse.de>
1759 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
1760 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
1761 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
1763 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
1765 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
1766 Don't use clear, but instead assign. Use insert.
1768 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
1770 * src/demangle.cc: Add instantiations.
1771 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
1772 * src/Makefile.in: Regenerate.
1774 2004-01-30 David Edelsohn <edelsohn@gnu.org>
1776 * src/allocator.cc: Protect _S_get_thread_id() and
1777 _S_thread_key_destr() with #ifdef __GTHREADS.
1779 2004-01-30 Paolo Carlini <pcarlini@suse.de>
1781 Reshuffle performance testsuite.
1782 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
1783 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
1784 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
1785 fstream_seek_write.cc, ifstream_extract_float.cc,
1786 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
1787 list_create_fill_sort.cc, map_create_fill.cc,
1788 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
1789 ofstream_insert_float.cc, ofstream_insert_int.cc,
1790 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
1791 wchar_t_out.cc: Split into...
1792 * testsuite/performance/20_util/allocator.cc: New.
1793 * testsuite/performance/20_util/allocator_map_thread.cc: New.
1794 * testsuite/performance/20_util/allocator_thread.cc: New.
1795 * testsuite/performance/21_strings/string_append: New.
1796 * testsuite/performance/22_locale/is_wchar_t.cc: New.
1797 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
1798 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
1799 * testsuite/performance/22_locale/wchar_t_in.cc: New.
1800 * testsuite/performance/22_locale/wchar_t_length.cc: New.
1801 * testsuite/performance/22_locale/wchar_t_out.cc: New.
1802 * testsuite/performance/23_containers/container_benchmark.cc: New.
1803 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
1804 * testsuite/performance/23_containers/map_create_fill.cc: New.
1805 * testsuite/performance/26_numerics/complex_norm.cc: New.
1806 * testsuite/performance/27_io/cout_insert_int.cc: New.
1807 * testsuite/performance/27_io/filebuf_copy.cc: New.
1808 * testsuite/performance/27_io/filebuf_sputc.cc: New.
1809 * testsuite/performance/27_io/fstream_seek_write.cc: New.
1810 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
1811 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
1812 * testsuite/performance/27_io/ifstream_getline.cc: New.
1813 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
1814 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
1816 2004-01-30 Paolo Carlini <pcarlini@suse.de>
1818 * include/bits/basic_string.tcc (_Rep::_S_create):
1819 Never allocate a string bigger than max_size(); always keep
1820 __capacity and __size in sync to avoid memory leaks at
1823 2004-01-30 Paolo Carlini <pcarlini@suse.de>
1825 * include/bits/basic_string.tcc (_S_construct(_InIterator,
1826 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
1827 the double loop, streamline.
1829 * include/bits/basic_string.tcc: Very minor tweaks.
1831 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
1833 * scripts/check_performance: Only compile with $THREAD_FLAG
1834 when test is marked to require it. Allow multiple
1835 compilations/executions of marked tests.
1836 * testsuite/testsuite_performance.h (report_performance):
1837 Report dynamic thread support status.
1838 (report_header): Likewise.
1839 * testsuite/performance/allocator.cc: Stabilize iteration
1840 count. Support more allocators. Mark each allocator test to
1841 run and report independently.
1842 * testsuite/performance/allocator_map_thread.cc: Likewise.
1843 * testsuite/performance/allocator_thread.cc: Likewise.
1845 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
1847 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
1848 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
1849 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
1850 std::get_temporary_buffer() instead of duplicating its code.
1851 Update to C++STYLE conventions.
1852 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
1853 new() instead of std::malloc().
1854 (return_temporary_buffer): Use ::operator delete() instead of
1857 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
1859 * include/bits/allocator.h: Temporary switch to new_allocator as
1860 the default to unjam bootstraps.
1862 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
1864 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
1865 * include/Makefile.in: Regenerate.
1866 * include/bits/allocator_traits.h: Remove.
1867 * include/bits/allocator.h: Remove allocator_traits.h include, and
1869 (allocator): Empty base class, inherit from the underlying allocator.
1870 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
1871 * src/allocator.cc: ...here. New. For the underlying allocators.
1872 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
1873 * config/linker-map.gnu: Remove __pool_alloc bits.
1874 * src/Makefile.am (sources): Add allocator.cc.
1875 * src/Makefile.in: Regenerate.
1876 * testsuite/20_util/allocator/1.cc: Split second test into...
1877 * testsuite/20_util/allocator/8230.cc: ...this.
1878 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
1879 typedef to use std::allocatore. Format.
1880 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
1882 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
1883 __throw_bad_alloc calls. Don't include <memory>.
1884 * include/ext/malloc_allocator.h: Remove <memory> include.
1885 * include/ext/new_allocator.h (new_allocator): Same.
1886 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
1887 declaration. Switch __alloc to _Alloc.
1888 * include/ext/hashtable.h: Remove __alloc.
1889 * include/backward/alloc.h: Only inject allocator, not
1890 implementation details.
1892 * include/ext/mt_allocator.h: Replace free with delete.
1894 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
1896 * src/globals_io.cc: Change to __gnu_internal namespace.
1897 * src/globals_locale.cc: Same.
1898 * src/locale_init.cc: Same.
1899 * src/ios_init.cc: Same.
1901 2004-01-28 Stefan Olsson <stefan@snon.net>
1903 * include/ext/mt_allocator.h: Replaced all malloc() calls with
1904 operator new(). Added support for the env variable
1905 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
1906 one in allocate() as well). Fix typos.
1908 2004-01-28 Paolo Carlini <pcarlini@suse.de>
1910 * include/bits/basic_string.h (_S_create(size_t,
1911 const _Alloc&): Change signature to take two size_type
1913 * include/bits/basic_string.tcc (_S_construct(_InIterator,
1914 _InIterator, const _Alloc&, input_iterator_tag)): Update
1916 (_S_construct(_InIterator, _InIterator, const _Alloc&,
1917 forward_iterator_tag)): Likewise.
1918 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
1919 (_M_mutate(size_type, size_type, size_type)): Don't
1920 implement the exponential growth policy, demand it to
1921 _S_create, update call and simplify.
1922 (_M_clone(const _Alloc&, size_type)): Likewise.
1923 (_S_create(size_type, size_type, const _Alloc&)): Implement
1924 the growth policy, simplify otherwise.
1926 * include/bits/basic_string.h (_Rep::operator[]): Tweak
1927 signature to take a size_type, consistently with the other
1930 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
1932 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
1933 delete declarations, add include and test variable.
1935 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
1937 * include/bits/codecvt.h, include/bits/locale_facets.h,
1938 include/bits/postypes.h, include/bits/stl_bvector.h,
1939 include/bits/stl_multiset.h, include/bits/stl_set.h,
1940 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
1941 include/std/std_complex.h: Document.
1943 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
1946 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
1947 iword/pword selector.
1948 (ios_base::iword, ios_base::pword): Use it.
1949 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
1950 iword or pword member on alloc failure.
1951 * testsuite/27_io/ios_base/storage/11584.cc: New test.
1953 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
1954 PJ Darcy <darcypj@us.ibm.com>
1956 * configure.host: Add support for *-tpf.
1957 * crossconfig.m4: Likewise.
1958 * configure: Regenerate.
1959 * config/os/tpf: New directory.
1960 * config/os/tpf/os_defines.h: New file.
1961 * config/os/tpf/ctype_base.h: Likewise.
1962 * config/os/tpf/ctype_inline.h: Likewise.
1963 * config/os/tpf/ctype_noninline.h: Likewise.
1965 2004-01-27 Paolo Carlini <pcarlini@suse.de>
1968 * include/bits/sstream.tcc: Guard use of extern template.
1970 2004-01-27 Paolo Carlini <pcarlini@suse.de>
1972 * include/bits/basic_string.tcc
1973 (basic_string(const basic_string&, size_type, size_type),
1974 basic_string(const basic_string&, size_type, size_type,
1975 const _Alloc&)): Avoid unnecessarily constructing iterators.
1977 2004-01-26 Paolo Carlini <pcarlini@suse.de>
1979 * config/locale/generic/c_locale.cc: Fix throw messages
1980 to use the __N marker.
1981 * config/locale/gnu/c_locale.cc: Likewise.
1982 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
1984 * docs/html/17_intro/C++STYLE: Likewise.
1985 * include/bits/basic_ios.tcc: Likewise.
1986 * include/bits/fstream.tcc: Likewise.
1987 * include/bits/vector.tcc: Likewise.
1988 * include/ext/ropeimpl.h: Likewise.
1989 * include/std/std_bitset.h: Likewise.
1990 * src/ios.cc: Likewise.
1991 * src/locale.cc: Likewise.
1992 * src/localename.cc: Likewise.
1994 2004-01-26 Paolo Carlini <pcarlini@suse.de>
1996 * include/bits/basic_string.h (_M_replace_aux): Use the
1997 __N marker in throw message.
1998 * include/bits/basic_string.tcc (assign(const _CharT*,
1999 size_type), insert(size_type, const _CharT*, size_type),
2000 replace(size_type, size_type, const _CharT*, size_type),
2001 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
2004 * include/bits/basic_string.h, include/bits/basic_string.tcc:
2005 Fold overlong lines, minor formatting changes.
2007 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2009 * include/bits/basic_string.h (replace(iterator, iterator,
2010 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
2011 (replace(iterator, iterator, const _CharT*)): Ditto.
2012 (replace(iterator, iterator, const _CharT*, size_type)):
2013 Add missing _GLIBCXX_DEBUG_PEDASSERT.
2015 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2017 * include/bits/basic_string.tcc (replace(size_type,
2018 size_type, const _CharT*, size_type)): Implement optimized
2019 in-place algorithm for non-overlapping ranges.
2020 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
2021 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
2023 * include/bits/basic_string.tcc (insert(size_type,
2024 const _CharT*, size_type)): Tweak slightly.
2026 2004-01-26 Andreas Schwab <schwab@suse.de>
2028 * config/locale/gnu/monetary_members.cc: Restore locale before
2029 rethrowing exception.
2031 2004-01-25 Paolo Carlini <pcarlini@suse.de>
2033 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2035 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
2038 * include/bits/basic_string.tcc: Very minor tweaks.
2040 2004-01-25 Paolo Carlini <pcarlini@suse.de>
2042 * testsuite/performance/string_append.cc: Increase number
2045 2004-01-25 Paolo Carlini <pcarlini@suse.de>
2047 * include/bits/basic_string.h (erase(size_type, size_type),
2048 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
2049 instead, thus avoiding redundant check for length_error.
2051 * include/bits/basic_string.h: Tweak some comments.
2053 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2055 * include/bits/basic_string.tcc (operator+(const _CharT*,
2056 const basic_string&)): No need to go through the append
2057 taking two iterators.
2059 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2061 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
2062 Revert last change to use std::min: machine language is worse.
2063 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
2064 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
2065 (find_last_not_of(_CharT, size_type)): Ditto.
2067 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
2068 size_type)): Discard the value returned by _M_check.
2069 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
2070 (append(const basic_string&, size_type, size_type)): Ditto.
2071 (copy(_CharT*, size_type, size_type)): Ditto.
2072 (compare(size_type, size_type, const basic_string&)): Ditto.
2073 (compare(size_type, size_type, const basic_string&,
2074 size_type, size_type)): Ditto.
2075 (compare(size_type, size_type, const _CharT*)): Ditto.
2076 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
2078 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2080 * include/bits/basic_string.h (insert(size_type,
2081 const basic_string&, size_type, size_type)): Define inline here.
2082 * include/bits/basic_string.tcc (insert(size_type,
2083 const basic_string&, size_type, size_type)): Move inline.
2085 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2087 * include/bits/basic_string.h (assign(const basic_string&,
2088 size_type, size_type)): Define inline here.
2089 (replace(size_type, size_type, const basic_string&,
2090 size_type, size_type)): Ditto.
2091 (_M_replace_dispatch(iterator, iterator, _InputIterator,
2092 _InputIterator, __false_type)): Only declare.
2093 (_M_replace(iterator, iterator, _InputIterator,
2094 _InputIterator)): Remove.
2095 * include/bits/basic_string.tcc (assign(const basic_string&,
2096 size_type, size_type)): Move inline.
2097 (replace(size_type, size_type, const basic_string&,
2098 size_type, size_type)): Ditto.
2099 (_M_replace_dispatch(iterator, iterator, _InputIterator,
2100 _InputIterator, __false_type)): Define, now does also what
2101 _M_replace did before.
2102 * src/string-inst.cc (_M_replace): Don't instantiate.
2104 * include/bits/basic_string.tcc (find(const _CharT*,
2105 size_type, size_type)): Tidy.
2106 (rfind(_CharT, size_type)): Ditto.
2107 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
2108 (find_first_not_of(_CharT, size_type)): Ditto.
2109 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
2110 (find_last_not_of(_CharT, size_type)): Ditto.
2112 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2115 * include/debug/bitset (operator|=): Fix typo.
2116 * testsuite/23_containers/bitset/operations/13838.cc: New.
2118 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2120 * include/bits/basic_string.tcc (insert(size_type,
2121 const _CharT*, size_type __n)): Fix length_error check.
2122 (replace(size_type, size_type, const _CharT*, size_type):
2123 Ditto; call _M_replace_safe.
2124 (_M_replace_aux(size_type, size_type, size_type, _CharT):
2125 Fix length_error check.
2126 (_M_replace(iterator, iterator, _InputIterator,
2127 _InputIterator)): Ditto, tweak.
2128 (_M_replace_safe(size_type, size_type, const _CharT*,
2129 size_type)): Remove length_error check.
2131 * include/bits/basic_string.tcc (append(const basic_string&),
2132 append(const basic_string&, size_type, size_type)): Tweak
2135 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
2136 size_type)): If __n == 0 don't call traits::copy.
2138 2004-01-23 Stefan Olsson <stefan@snon.net>
2140 * include/ext/mt_allocator.h: Reduce lock contention.
2142 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2145 * include/bits/fstream.tcc (underflow): Remove unused
2147 * include/bits/streambuf_iterator.h (equal): Ditto.
2148 * include/bits/locale_facets.h (_M_convert_from_char):
2151 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2154 * config/linker-map.gnu (nan): Delete.
2155 * libmath/mathconf.h (NAN, nan): Delete.
2156 * linkage.m4 (nan): Don't check for it.
2157 * libmath/nan.c: Delete file.
2159 * config.h.in, configure: Regenerate.
2161 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2163 * include/bits/basic_string.h (push_back(_CharT)):
2164 Call _M_replace_aux.
2165 (insert(size_type, const basic_string&)): Trivial tweak.
2166 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
2167 (insert(iterator, _CharT)): Ditto.
2168 (erase(size_type, size_type)): Ditto.
2169 (erase(iterator)): Ditto.
2170 (erase(iterator, iterator)): Ditto.
2171 (replace(size_type, size_type, size_type, _CharT)): Ditto.
2173 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
2176 * testsuite/performance/allocator_map_thread.cc: New test.
2178 2004-01-22 Paolo Carlini <pcarlini@suse.de>
2180 * include/bits/locale_facets.tcc
2181 (money_put::do_put(..., long double)): Use the basic_string
2182 constructor for char arrays, not that for C-strings, to pass
2183 __digits to do_put(..., const string_type&): __ws isn't
2186 2004-01-22 Paolo Carlini <pcarlini@suse.de>
2188 * include/bits/basic_string.h (_M_replace_safe): Change
2189 signatures to take size_types and const _CharT*.
2190 (_M_replace_aux): Likewise, takes size_types instead of
2192 (append(size_type, _CharT)): Update call.
2193 (assign(size_type, _CharT)): Ditto.
2194 (replace(iterator, iterator, size_type, _CharT)): Ditto.
2195 (_M_replace_dispatch(iterator, iterator, _Integer,
2196 _Integer, __true_type)): Ditto.
2197 * include/bits/basic_string.tcc (assign(const _CharT*,
2199 (insert(size_type, const _CharT*, size_type)): Ditto.
2200 (replace(size_type, size_type, const _CharT*,
2202 (_M_replace(iterator, iterator, _InputIterator,
2203 _InputIterator)): Ditto.
2204 (append(const basic_string&)): Ditto.
2205 (append(const basic_string&, size_type, size_type): Ditto.
2206 (append(const _CharT*, size_type): Ditto.
2207 (_M_replace_safe, _M_replace_safe): Change definitions
2208 accordingly, simplify.
2209 * string-inst.cc (_M_replace_safe): Don't instantiate.
2211 2004-01-21 Paolo Carlini <pcarlini@suse.de>
2213 * include/bits/basic_string.tcc (append(const basic_string&)):
2214 Revert previous change.
2215 (append(const basic_string&, size_type, size_type)): Revert
2216 previous change, use _M_check and _M_limit.
2218 2004-01-21 Paolo Carlini <pcarlini@suse.de>
2220 * include/bits/basic_string.h (_M_check): Change to return
2221 a checked __pos and take an additional const char* argument.
2222 (_M_fold): Rename to _M_limit, change to return a size_type,
2223 corresponding to the __off limited to the actual length.
2224 (insert(size_type, size_type, _CharT)): Update call, call
2226 (insert(iterator, _CharT)): Call replace(iterator, iterator,
2227 size_type, _CharT) instead.
2228 (erase(size_type, size_type)): Update calls.
2229 (replace(size_type, size_type, size_type, _CharT)): Ditto.
2230 (substr(size_type, size_type)): Use _M_check.
2231 * include/bits/basic_string.tcc (basic_string(const basic_string&,
2232 size_type, size_type)): Update calls.
2233 (basic_string(const basic_string&, size_type, size_type,
2234 const _Alloc&)): Ditto.
2235 (assign(const basic_string&, size_type, size_type)): Use the
2236 new _M_check and _M_limit.
2237 (insert(size_type, const basic_string&, size_type, size_type):
2239 (insert(size_type, const _CharT*, size_type)): Ditto.
2240 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
2241 (replace(size_type, size_type, const basic_string&,
2242 size_type, size_type)): Ditto.
2243 (append(const basic_string&)): Ditto.
2244 (append(const basic_string&, size_type, size_type)): Ditto.
2245 (copy(_CharT*, size_type, size_type)): Ditto.
2246 (compare(size_type, size_type, const basic_string&)): Ditto.
2247 (compare(size_type, size_type, const basic_string&,size_type,
2249 (compare(size_type, size_type, const _CharT*)): Ditto.
2250 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
2252 2004-01-19 Stefan Olsson <stefan@snon.net>
2254 * include/ext/mt_allocator.h: If a thread, when it dies, still has
2255 memory on it's freelist this memory is not returned to global
2256 list. Simplification of deallocate so that memory is always
2257 returned to the calling thread id's freelist instead of to
2258 global. Fix typos. Add volatile where appropriate.
2260 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
2262 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
2263 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
2264 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
2266 2004-01-19 Paolo Carlini <pcarlini@suse.de>
2268 * src/debug.cc: Make sure all the names are prefixed with
2269 double (or single) underscore.
2271 2004-01-19 Paolo Carlini <pcarlini@suse.de>
2273 * src/debug.cc: Trivial formatting change.
2275 2004-01-19 Paolo Carlini <pcarlini@suse.de>
2277 * include/bits/basic_string.tcc (_S_construct(size_type,
2278 _CharT, const _Alloc&)): Remove redundant try/catch.
2279 (_M_mutate(size_type, size_type, size_type)): Ditto.
2280 (_M_clone(const _Alloc&, size_type)): Ditto.
2282 2004-01-18 Paolo Carlini <pcarlini@suse.de>
2284 * include/bits/basic_string.h (c_str()): Simplify, due to
2285 21.3.4 the internal representation is always kept null-terminated.
2286 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
2287 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
2288 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
2291 2004-01-18 Paolo Carlini <pcarlini@suse.de>
2293 * include/bits/basic_string.h (append(size_type, _CharT)):
2294 Moved inline, just call _M_replace_aux, no source iterators at
2295 risk of being clobbered.
2296 (assign(size_type, _CharT)): Call directly _M_replace_aux.
2297 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
2298 input_iterator_tag)): Remove fifth unused argument.
2299 (_M_replace_dispatch(iterator, iterator, _InputIterator,
2300 _InputIterator, __false_type)): Update call.
2301 * include/bits/basic_string.tcc (replace(size_type, size_type,
2302 const _CharT*, size_type)): Update call.
2303 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
2304 throw string literal.
2305 (_M_replace_safe(iterator, iterator, _ForwardIterator,
2306 _ForwardIterator)): Likewise.
2307 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
2308 input_iterator_tag)): Remove fifth unused argument.
2309 (append(size_type __n, _CharT __c)): Move inline.
2310 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
2311 const C*, const C*, input_iterator_tag)): Remove fifth unused
2314 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
2316 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
2317 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
2319 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
2321 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
2324 2004-01-15 Stefan Olsson <stefan@snon.net>
2326 * include/ext/mt_allocator.h: Reuse thread id's as soon as
2327 possible by changing the behaviour of thread_freelist to do
2328 push_front when threads die instead of push_back.
2330 2004-01-14 Paolo Carlini <pcarlini@suse.de>
2332 * include/bits/locale_facets.h (struct __numpunct_cache):
2333 Add member _M_grouping_size, caching the length of _M_grouping.
2334 (__numpunct_cache<>::_M_cache): Assign the latter.
2335 (__verify_grouping): Move declaration...
2336 * include/bits/locale_facets.tcc (__verify_grouping):
2337 ... here, change signature to take a const char* and a size_t
2338 for the grouping; not a template anymore.
2339 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
2340 Likewise change signature and tweak consistently.
2341 (num_get::_M_extract_float, num_get::_M_extract_int,
2342 num_put::_M_insert_int, num_put::_M_insert_float,
2343 money_get::do_get(string_type&), money_get::do_put(string_type)):
2345 * config/locale/generic/numeric_members.cc
2346 (numpunct<>::_M_initialize_numpunct): Assign the new member.
2347 * config/locale/gnu/numeric_members.cc
2348 (numpunct<>::_M_initialize_numpunct): Likewise.
2349 * src/locale-inst.cc (__add_grouping): Tweak signature.
2350 (__verify_grouping): Don't instantiate, not a template anymore.
2352 * include/bits/locale_facets.h: Rename _M_truename_len ->
2353 _M_truename_size, _M_falsename_len -> _M_falsename_size.
2354 * include/bits/locale_facets.tcc: Likewise.
2355 * config/locale/generic/numeric_members.cc: Likewise.
2356 * config/locale/gnu/numeric_members.cc: Likewise.
2358 2004-01-14 Stefan Olsson <stefan@snon.net>
2360 * include/ext/mt_allocator.h: Fixups.
2361 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
2362 * testsuite/performance/allocator_thread.cc: Same.
2364 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
2366 * testsuite/performance/ifstream_extract_float.cc: Add higher
2368 * testsuite/performance/ofstream_insert_float.cc: Same.
2370 2004-01-13 Paolo Carlini <pcarlini@suse.de>
2372 * src/locale-misc-inst.cc (__convert_from_v(long),
2373 __convert_from_v(unsigned long), __convert_from_v(long long),
2374 __convert_from_v(unsigned long long)): Remove, unused.
2376 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
2378 * testsuite/performance/ifstream_extract_float.cc: New.
2379 * testsuite/performance/ofstream_insert_float.cc: Float generation
2382 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
2383 * 20_util/auto_ptr/1.cc: ...this.
2384 * 20_util/auto_ptr/2.cc: Same.
2385 * 20_util/auto_ptr/3.cc: Same.
2386 * 20_util/auto_ptr/3946.cc: Same.
2387 * 20_util/auto_ptr/4.cc: Same.
2388 * 20_util/auto_ptr/5.cc: Same.
2389 * 20_util/auto_ptr/6.cc: Same.
2390 * 20_util/auto_ptr/7.cc: Same.
2391 * 20_util/auto_ptr/assign_neg.cc
2392 * 20_util/pairs.cc: Break into...
2393 * 20_util/pair/1.cc: ...this.
2394 * 20_util/pair/2.cc: Same.
2395 * 20_util/pair/3.cc: Same.
2396 * 20_util/pair/4.cc: Same.
2398 2004-01-13 Paolo Carlini <pcarlini@suse.de>
2400 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
2401 Set correctly just basefield, the only group that matters.
2403 2004-01-13 Paolo Carlini <pcarlini@suse.de>
2405 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
2406 (_Rope_rep_base): Inherit directly from the rope allocator;
2407 use rebinding instead of _Alloc_traits; pick up data member
2408 from _Rope_rep_alloc_base.
2409 (_Rope_alloc_base): Eliminate.
2410 (_Rope_base): Inherit directly from the rope allocator; use
2411 rebinding instead of _Alloc_traits; pick up data member from
2413 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
2414 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
2416 2004-01-13 Paolo Carlini <pcarlini@suse.de>
2419 * include/bits/basic_string.tcc (compare(size_type, size_type,
2420 const _CharT*, size_type)): Implement correctly the resolution
2421 of DR 5: basically, s is a char array, -not- a C string.
2422 * include/bits/basic_string.h: Tweak some comments.
2423 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
2424 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
2426 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
2428 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
2431 2004-01-12 Paolo Carlini <pcarlini@suse.de>
2433 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
2435 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
2438 2004-01-12 Paolo Carlini <pcarlini@suse.de>
2440 * include/bits/locale_facets.h (struct __numpunct_cache):
2441 Add members _M_truename_len and _M_falsename_len, caching
2442 the lengths of _M_truename and _M_falsename.
2443 (__numpunct_cache<>::_M_cache): Assign the latter.
2444 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
2445 num_put::do_put(bool)): Use the new members, thus avoiding
2446 computing string lengths again and again.
2447 * config/locale/generic/numeric_members.cc
2448 (numpunct<>::_M_initialize_numpunct): Assign the new members.
2449 * config/locale/gnu/numeric_members.cc
2450 (numpunct<>::_M_initialize_numpunct): Likewise.
2452 2004-01-12 Mark Mitchell <mark@codesourcery.com>
2454 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
2455 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
2457 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
2458 and remove Cygwin XFAIL.
2459 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
2460 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
2461 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
2462 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
2464 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2465 * testsuite/27_io/objects/char/7.cc: Likewise.
2466 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
2467 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
2468 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
2470 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
2472 * include/std/std_complex.h (std::complex<>::real): Return a
2473 reference. Add non-const overload.
2474 (std::complex<>::real): Likewise.
2475 (std::real): Likewise.
2476 (std::imag): Likewise.
2477 (std::operator+): Tidy.
2478 (std::operator-): Likewise.
2479 (std::operator*): Likewise.
2480 (std::operator/): Likewise.
2481 (std::operator>>): Likewise.
2483 2004-01-11 Paolo Carlini <pcarlini@suse.de>
2486 * include/bits/fstream.tcc (imbue): Exploit the external
2487 buffer to imbue 'on the fly' a new locale and convert its
2488 remainder with the new codecvt facet.
2489 (underflow): Tweak slightly to deal with this special case.
2490 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
2491 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
2492 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
2493 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
2494 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
2496 2004-01-10 Paolo Carlini <pcarlini@suse.de>
2498 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
2501 2004-01-10 Paolo Carlini <pcarlini@suse.de>
2504 * include/bits/locale_classes.h (class locale): Fix category
2506 * testsuite/22_locale/locale/13630.cc: Add.
2508 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2510 * include/bits/locale_facets.h: Make a name really dependent. This
2511 will be needed when Core Issue 224 is implemented.
2513 2004-01-09 Paolo Carlini <pcarlini@suse.de>
2515 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
2516 * testsuite/performance/allocator_thread.cc: Likewise.
2518 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
2520 * crossconfig.m4: Add LFS, io bits to linux cross config.
2521 * acconfig.h: Remove obsolete bits, reorder.
2522 * config.h.in: Regenerate.
2526 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
2528 * include/bits/stl_list.h:
2529 * include/bits/list.tc:
2531 Performance enhancements for destructor, push_front(),
2532 push_back(), pop_front(), pop_back(), sort()
2533 Eliminated static_casts where possible.
2534 Moved code out of header files into new src/list.cc
2535 implementation file for library where possible.
2536 Remove inheritance from iterator class and create separate
2537 classes for non-constant and constant iterators.
2538 * include/bits/stl_tree.h (_Rb_tree class):
2540 Only erase contents in destructor.
2541 Eliminate unnecessary initialization in assignment operator.
2542 Optimize for the nominal case by not checking whether
2543 container is empty in clear().
2544 Re-order test in _M_insert() to improve performance.
2545 Move initialization of new node's left & right pointers to
2546 src/tree.cc to where new node's colour is initialized
2547 and to reduce the amount of inline code.
2548 Use _M_leftmost() and _M_end() to improve readability where
2550 Create separate classes for non-constant and constant
2551 iterators to clarify code, avoid extra template parameters and
2552 casting away constness.
2554 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
2556 * src/Makefile.am (sources): Add list.cc, tree.cc.
2557 * src/stl_tree.cc: Move to...
2558 * src/tree.cc: ...here.
2560 * config/linker-map.gnu: Tweaks.
2561 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
2562 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
2564 * bits/stl_vector.h: Column wrap comments.
2566 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
2568 (re-open) PR libstdc++/12658
2569 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
2570 (locale::global): Likewise.
2572 2004-01-07 Paolo Carlini <pcarlini@suse.de>
2574 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
2575 Remove redundant #include.
2576 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
2577 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
2578 re-enable normal testing.
2579 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
2581 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
2582 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
2584 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
2586 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
2588 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
2590 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
2592 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
2594 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
2596 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
2597 More properly, #include <locale>.
2598 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
2599 Remove redundant #include.
2600 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
2601 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
2602 redundant DejaGnu directive.
2603 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
2606 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
2607 Stefan Olsson <stefan@snon.net>
2609 * scripts/check_performance: Use -pthread.
2610 * testsuite/performance/allocator.cc: Tweaks, add list.
2611 * testsuite/performance/allocator_thread.cc: New.
2613 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
2615 * include/bits/locale_facets.h: Document public classes and
2617 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
2620 2004-01-06 Paolo Carlini <pcarlini@suse.de>
2622 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
2623 Remove redundant #includes.
2624 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
2626 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
2628 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
2629 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
2630 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
2631 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
2632 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
2633 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
2634 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
2635 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
2636 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
2637 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
2638 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
2639 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
2640 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
2641 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
2642 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
2644 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
2646 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
2648 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
2650 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
2652 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
2653 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
2654 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
2656 2004-01-04 Paolo Carlini <pcarlini@suse.de>
2658 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
2659 Remove redundant #includes.
2660 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
2662 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
2664 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
2666 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
2668 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
2670 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
2672 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
2674 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
2676 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
2678 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
2680 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
2682 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
2685 2004-01-04 Mark Mitchell <mark@codesourcery.com>
2688 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
2690 * testsuite/27_io/basic_fstream/4.cc: Likewise.
2691 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
2692 * testsuite/27_io/basic_ios/4.cc: Likewise.
2693 * testsuite/27_io/basic_iostream/4.cc: Likewise.
2694 * testsuite/27_io/basic_istream/4.cc: Likewise.
2695 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
2696 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
2697 * testsuite/27_io/basic_ostream/4.cc: Likewise.
2698 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
2699 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
2700 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
2702 2004-01-04 Paolo Carlini <pcarlini@suse.de>
2704 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
2705 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
2706 always use double underscored names.
2707 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
2709 * include/bits/locale_facets.h (struct __numpunct_cache):
2710 Dimension _M_atoms_out and _M_atoms_in one position smaller.
2711 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out