1 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3 * config/locale/generic/time_members.cc
4 (__timepunct<char>::_M_initialize_timepunct,
5 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
6 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
7 * config/locale/gnu/time_members.cc
8 (__timepunct<char>::_M_initialize_timepunct,
9 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
10 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
11 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
13 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
14 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
15 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
16 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
17 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
18 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
19 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
20 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
21 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
22 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
23 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
24 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
25 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
26 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
27 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
28 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
29 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
30 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
31 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
32 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
33 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
34 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
35 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
36 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
37 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
38 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
39 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
40 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
41 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
42 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
43 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
44 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
45 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
46 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
47 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
48 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
50 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
52 2004-04-07 Paolo Carlini <pcarlini@suse.de>
54 * config/locale/gnu/monetary_members.cc
55 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
56 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
57 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
58 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
59 * config/locale/gnu/numeric_members.cc
60 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
61 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
63 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
65 Fixups for EDG front end.
66 * include/ext/rope: Instead of non-existent function
67 _Data_allocate, use allocator's allocate. Use this.
68 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
69 enumerations from _Rope_RopeRep here.
70 * include/ext/ropeimpl.h: Same.
71 * src/ext-inst.cc (_S_min_len): Fix up definition.
73 * config/locale/gnu/ctype_members.cc: Qualify base class members
75 * config/locale/generic/ctype_members.cc: Same.
76 * config/locale/gnu/messages_members.h: Same.
77 * config/locale/generic/messages_members.h: Same.
79 * include/bits/codecvt.h: Same.
81 * include/bits/boost_concept_check.h: Declare.
82 (__error_type_must_be_an_unsigned_integer_type): Remove this.
83 (__error_type_must_be_an_integer_type): Remove this.
84 (__error_type_must_be_a_signed_integer_type): Remove this.
86 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
88 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
89 specification to definition.
90 (__cxa_allocate_exception): Same.
91 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
92 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
93 (__cxa_get_globals): Same.
95 * libsupc++/del_op.cc: Add comment about freestanding.
97 2004-04-05 Paolo Carlini <pcarlini@suse.de>
99 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
100 The critical section is actually very small, only two assignments.
102 2004-04-04 Paolo Carlini <pcarlini@suse.de>
103 Petur Runolfsson <peturr02@ru.is>
105 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
106 adapted from libstdc++/11378.
108 2004-04-03 Paolo Carlini <pcarlini@suse.de>
110 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
111 some duplicated code.
112 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
113 in the single threaded case.
114 * testsuite/performance/20_util/allocator/list_sort_search.cc:
115 Reorder and renumber the tests consistently with the other testfiles.
116 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
117 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
118 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
120 2004-04-02 Paolo Carlini <pcarlini@suse.de>
122 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
123 Rearrange arithmetic to avoid computing two divisions at
126 2004-04-01 Paolo Carlini <pcarlini@suse.de>
128 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
129 Streamline the second half, wrapping it in a single
130 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
131 conditionals inside loops.
133 2004-04-01 Paolo Carlini <pcarlini@suse.de>
136 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
137 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
138 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
139 to _GLIBCXX_RES_LIMITS.
140 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
142 * testsuite/testsuite_hooks.h: Declare set_file_limit.
143 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
144 and setrlimit(RLIMIT_FSIZE).
145 * testsuite/27_io/fpos/14775.cc: New.
146 * config.h.in: Regenerate.
147 * configure: Likewise.
149 2004-03-31 Paolo Carlini <pcarlini@suse.de>
151 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
152 In v3 uses of sscanf, the special floating-point numbers INF,
153 INFINITY, etc., cannot occur in input, therefore, if the latter
154 is too large, ERANGE is always stored in errno, no need of finitel.
156 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
159 * include/bits/stl_tree.h: Adjust initialization list order.
161 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
163 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
165 2004-03-29 Paolo Carlini <pcarlini@suse.de>
167 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
168 on allocator behavior, the memory pointed by data2 may well be not
171 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
174 * include/bits/basic_string.tcc
175 (basic_string::basic_string(const basic_string&)): Pass to
176 _Rep::_M_grab the actual allocator of the string being constructed
177 not the default constructed one.
179 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
182 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
183 (__enc_traits::_M_destroy): New.
184 (__enc_traits::~__enc_traits): Use it.
185 (__enc_traits::operator=): Use _M_destroy, _M_init.
186 (__enc_traits::__enc_traits): Same.
188 2004-03-27 Petur Runolfsson <peturr02@ru.is>
190 * testsuite/ext/enc_filebuf/char/13598.cc: New.
192 2004-03-27 Paolo Carlini <pcarlini@suse.de>
194 * include/ext/mt_allocator.h: Uglify consistently names of
195 variables, members and classes; tidy.
197 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
199 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
200 Deallocation loop rewrote.
202 2004-03-26 Paolo Carlini <pcarlini@suse.de>
204 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
205 __mt_alloc<>::deallocate): Protect two instances of
206 block->thread_id with __GTHREADS.
208 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
210 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
211 default argument in constructors.
212 (_Rb_tree::_M_empty_initialize): Remove.
214 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
216 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
217 * testsuite/23_containers/set/operators/1_neg.cc: Same.
219 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
221 * include/bits/cpp_type_traits.h: Changed __is_pod
222 completely. Now, it does not use any of the previous type_traits
223 to detect the pod types, and it also detects function pointers as
226 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
227 which encapsulates the internal implementation of an rb_tree. Made
228 the allocator a base class of this class instead of the rb_tree,
229 which was not conforming. This _Rb_tree_impl class is also
230 specialized on whether the _Compare parameter is a POD type or
231 not. If so, then it maintains the comparison function as a data
232 member, otherwise it makes the _Compare parameter a base class of
233 itself. Also, _M_key_compare is now a function instead of a data
234 member, so that the above trick can work properly. Delegated the
235 initialization of the other data members to this newly created
236 class. Also, now other member functions of rb_tree must refer to
237 _M_key_compare as _M_impl._M_key_compare(). The other data members
238 (*) can be referenced to as _M_impl.(*), where
239 (*) includes _M_header, and _M_node_count.
241 2004-03-25 Paolo Carlini <pcarlini@suse.de>
243 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
244 Add _M_min_bin, the size in bytes of the smallest bin.
245 (__mt_alloc<>::tune()): Tweak accordingly.
246 (__mt_alloc<>::tune(size_t, ...)): Likewise.
247 (__mt_alloc<>::block_record): Change to a union: members next
248 and thread_id are never used at the same time.
249 (__mt_alloc<>::allocate): Update consistently.
250 (__mt_alloc<>::deallocate): Likewise.
251 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
252 _S_bin_size for the configurable _M_min_size.
254 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
256 * include/bits/stl_list.h: Created a _List_impl class and made it
257 derive from the allocator, instead of the list deriving from the
258 allocator class, which was not conformant. Changed all references
259 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
260 as above (changed all references to the concerned variables).
262 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
264 * include/bits/stl_deque.h: Created a _Deque_impl class and made
265 it derive from the allocator, instead of the deque deriving from
266 the allocator class, which was not conformant. Changed all
267 references to the _M_start, _M_finish, _M_map, and _M_map_size to
269 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
270 qualification in 2 places where it was missing.
271 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
273 * include/bits/deque.tcc: Same as above (changed all references to
274 the concerned variables).
276 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
278 * include/bits/stl_vector.h: Created a _Vector_impl class and made
279 it derive from the allocator, instead of the _Vector_base class,
280 deriving from the allocator which was not conformant. Changed all
281 references to the _M_start, _M_finish, and _M_end_of_storage to
283 * include/bits/vector.tcc: Same as above (changed all references
284 to the concerned variables).
286 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
288 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
289 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
290 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
292 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
294 * include/ext/malloc_allocator.h: Fixed the construct function to
295 call global placement new instead of assignment. Added a check
296 after the return from malloc to check whether returned pointer is
297 NULL, and if so, throw std::bad_alloc().
298 * include/ext/debug_allocator.h: Added a check in the deallocate
299 function to check whether the user has passed a NULL pointer or
302 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
304 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
306 2004-03-24 Andreas Schwab <schwab@suse.de>
308 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
309 warning from IA64 assembler.
311 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
313 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
314 function call __builtin_ctz instead of the while loop.
315 (allocate) -> If condition has __builtin_expect.
316 (deallocate) -> Ditto.
317 Renamed a few left-over variables and typedefs according to the
318 C++STYLE mentioned in the documentation.
319 Protected calls to __gthread* by __gthread_active_p(), whose value
320 is cached in the local variable __threads_active.
322 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
324 * testsuite/performance/20_util/allocator/producer_consumer.cc:
325 Use linear algorithm for producer.
327 2004-03-24 Paolo Carlini <pcarlini@suse.de>
329 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
330 __mt_alloc<>::deallocate): Avoid redundant conditionals.
332 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
334 * include/bits/locale_facets.h: Tweaks for 80 column.
335 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
336 (__moneypunct_cache::_M_cache): Same.
337 (num_get): Don't inherit from __num_base.
339 (money_get): Don't inherit from money_base.
341 (__timepunct::_M_am_pm_format): New.
342 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
343 (time_get::_M_extract_name): Same.
344 (time_get::_M_extract_via_format): Same.
345 * include/bits/locale_facets.tcc: Tweaks for 80 column.
346 Use _M_getloc instead of getloc.
347 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
348 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
349 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
351 2004-03-22 Paolo Carlini <pcarlini@suse.de>
353 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
354 * configure: Regenerate.
355 * config/allocator/pool_allocator_base.h: New.
356 * include/ext/pool_allocator.h: Convert to a standard-conforming
358 * src/allocator.cc: Tweak instantiations.
359 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
360 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
361 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
362 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
363 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
364 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
366 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
368 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
369 inline" and attribute-unused. Qualify parameter __mem with
371 (__exchange_and_add): Ditto. Add back memory clobber to asm.
373 2004-03-20 Paolo Carlini <pcarlini@suse.de>
375 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
377 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
379 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
381 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
383 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
385 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
387 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
389 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
391 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
393 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
396 2004-03-20 Paolo Carlini <pcarlini@suse.de>
398 * include/std/std_valarray.h: Document DR389 [Ready].
399 * docs/html/ext/howto.html: Add an entry for DR389.
401 2004-03-19 Michael Eager <eager@mvista.com>
403 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
406 2004-03-19 Paolo Carlini <pcarlini@suse.de>
408 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
410 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
411 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
412 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
413 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
414 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
415 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
416 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
417 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
418 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
420 2004-03-19 Paolo Carlini <pcarlini@suse.de>
421 Petur Runolfsson <peturr02@ru.is>
424 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
425 no way to find out the conversion used by the underlying FILE*.
426 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
427 * testsuite/27_io/objects/char/9.cc: Tweak.
429 2004-03-19 Paolo Carlini <pcarlini@suse.de>
432 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
433 memory allocation/deallocation calls.
434 * testsuite/ext/14648.cc: New.
436 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
439 * include/backward/bvector.h (bit_vector): Allocator is in std
442 2004-03-19 Phil Edwards <phil@codesourcery.com>
444 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
445 not libiconv. SUBST this variable as well.
446 * testsuite/Makefile.am (site.exp): New target, based on that
447 created by automake. Also set libiconv.
449 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
450 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
451 testsuite/Makefile.in: Regenerate.
453 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
455 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
456 new_allocator for all hosts.
457 * configure: Regenerate.
459 2004-03-16 Paolo Carlini <pcarlini@suse.de>
461 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
462 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
464 2004-03-15 Paolo Carlini <pcarlini@suse.de>
466 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
467 Adjust the logic underlying the parsing of symbol to deal
468 correctly with an optional sign component (i.e., when either
469 negative_sign or positive_sign is empty)
470 * testsuite/22_locale/money_get/get/char/19.cc: New.
471 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
473 2004-03-15 Paolo Carlini <pcarlini@suse.de>
475 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
476 Do not accept an incomplete currency symbol.
477 * testsuite/22_locale/money_get/get/char/18.cc: New.
478 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
480 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
482 * config/allocator: New.
483 * config/allocator/bitmap_allocator_base.h: New.
484 * config/allocator/malloc_allocator_base.h: New.
485 * config/allocator/mt_allocator_base.h: New.
486 * config/allocator/new_allocator_base.h: New.
487 * include/bits/allocator.h: Include c++allocator.h.
488 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
489 * aclocal.m4: Regenerate.
490 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
491 * configure: Regenerate.
492 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
493 * include/Makefile.in: Regenerate.
494 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
496 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
498 * include/bits/allocator.h: Revert.
500 2004-03-12 Paolo Carlini <pcarlini@suse.de>
502 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
503 * include/bits/gslice_array.h: Add comment about DR 253.
504 * include/bits/indirect_array.h: Likewise.
505 * include/bits/mask_array.h: Likewise.
506 * include/bits/slice_array.h: Likewise.
508 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
510 * testsuite/20_util/allocator/14176.cc: New.
511 * include/ext/mt_allocator.h: Formatting fixes.
513 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
515 * include/Makefile.am (ext_headers): Add
516 ${ext_srcdir}/bitmap_allocator.h .
517 * include/Makefile.in: Regenerate.
518 * docs/html/ext/ballocator_doc.txt: New file.
519 * include/ext/bitmap_allocator.h: New file.
520 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
522 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
523 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
524 test for the bitmap_allocator<>.
525 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
526 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
527 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
529 2004-03-11 Paolo Carlini <pcarlini@suse.de>
531 * include/std/std_complex.h (pow(const complex&, const _Tp&),
532 pow(const _Tp&, const complex&), pow(const complex&,
533 const complex&)): Fully qualify with std:: a few calls.
534 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
536 2004-03-11 Steven Bosscher <stevenb@suse.de>
539 * include/c_std/cmath.tcc (__cmath_power): Define inline.
541 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
543 * configure.ac: Bump AC_PREREQ to 2.59.
545 2004-03-10 Paolo Carlini <pcarlini@suse.de>
547 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
549 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
550 Paolo Carlini <pcarlini@suse.de>
553 * include/std/std_complex.h (pow(const complex&, const _Tp&),
554 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
555 * testsuite/26_numerics/complex/13450.cc: New.
557 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
558 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
560 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
563 * include/bits/gslice_array.h (gslice_array()): Make public.
564 (operator=(gslice_array)): Make public. Implement.
565 * include/bits/indirect_array.h (indirect_array()): Make public.
566 * include/bits/mask_array.h (mask_array()): Make public.
567 (operator=(mask_array)): Make public. Implement.
568 * include/bits/valarray_array.tcc (__valarray_copy):
569 Comment. Add versions for gslice_array and mask_array.
570 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
572 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
574 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
576 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
577 * testsuite/23_containers/set/modifiers/swap.cc: Same.
578 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
579 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
580 * testsuite/23_containers/map/modifiers/swap.cc: Same.
581 * testsuite/23_containers/list/modifiers/swap.cc: Same.
583 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
585 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
588 * testsuite/23_containers/deque/modifiers/swap.cc: New.
589 * testsuite/23_containers/list/modifiers/swap.cc: New.
590 * testsuite/23_containers/map/modifiers/swap.cc: New.
591 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
592 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
593 * testsuite/23_containers/set/modifiers/swap.cc: New.
594 * testsuite/23_containers/vector/modifiers/swap.cc: New.
596 2004-03-08 Petur Runolfsson <peturr02@ru.is>
599 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
601 2004-03-08 Paolo Carlini <pcarlini@suse.de>
603 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
604 * include/bits/stl_multiset.h: Add comment about DR 103.
605 * include/bits/stl_set.h: Likewise.
607 2004-03-08 Paolo Carlini <pcarlini@suse.de>
609 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
610 The value _space_ indicates that at least one space is required
612 * testsuite/22_locale/money_get/get/char/17.cc: New.
613 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
615 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
616 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
618 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
619 Remove redundant conditional on __str.size().
621 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
623 * include/bits/allocator.h: Switch defaults to mt_alloc.
625 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
627 * include/ext/mt_allocator.h (_S_initialize): If
628 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
630 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
633 * src/locale_init.cc (locale::locale): Lock critical regions with
635 (locale::global): Same.
636 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
637 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
638 (__glibcxx_mutex_lock): Same.
640 * config/cpu/generic/atomicity.h: Remove
641 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
642 * src/misc-inst.cc: Move all locking bits out of this file.
644 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
645 * src/misc-inst.cc: Same.
646 * config/cpu/hppa/atomicity.h: Same.
648 * config/linker-map.gnu: Remove types in the signature of atomic
649 exports, as they may vary.
651 2004-03-06 Paolo Carlini <pcarlini@suse.de>
653 * include/bits/locale_facets.tcc: Tweak the comment preceding
654 has_facet: doesn't throw.
656 2004-03-06 Paolo Carlini <pcarlini@suse.de>
658 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
659 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
660 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
661 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
662 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
663 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
664 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
665 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
667 2004-03-06 Paolo Carlini <pcarlini@suse.de>
669 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
670 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
671 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
672 * testsuite/testsuite_character.h (struct __gnu_test::character):
674 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
677 2004-03-05 Paolo Carlini <pcarlini@suse.de>
679 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
681 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
683 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
685 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
687 * testsuite/23_containers/deque/invalidation/4.cc: Same.
688 * testsuite/23_containers/list/invalidation/1.cc: Same.
689 * testsuite/23_containers/list/invalidation/2.cc: Same.
690 * testsuite/23_containers/list/invalidation/3.cc: Same.
691 * testsuite/23_containers/list/invalidation/4.cc: Same.
692 * testsuite/23_containers/map/invalidation/2.cc: Same.
693 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
694 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
695 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
696 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
697 * testsuite/23_containers/set/invalidation/1.cc: Same.
698 * testsuite/23_containers/set/invalidation/2.cc: Same.
699 * testsuite/23_containers/vector/invalidation/1.cc: Same.
700 * testsuite/23_containers/vector/invalidation/2.cc: Same.
701 * testsuite/23_containers/vector/invalidation/3.cc: Same.
702 * testsuite/23_containers/vector/invalidation/4.cc: Same.
704 2004-03-04 Paolo Carlini <pcarlini@suse.de>
706 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
708 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
710 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
712 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
713 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
714 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
715 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
716 * testsuite/23_containers/vector/resize/1.cc: Likewise.
717 * testsuite/26_numerics/complex_value.cc: Likewise.
718 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
719 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
720 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
721 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
722 * testsuite/27_io/objects/char/5.cc: Likewise.
723 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
724 * testsuite/backward/11460.cc: Likewise.
725 * testsuite/thread/pthread7-rope.cc: Likewise.
727 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
728 missing test variable.
729 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
730 missing test variable.
732 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
734 * testsuite/20_util/allocator/1.cc: Provide explicit
735 instantiations for non-weak systems.
736 * testsuite/20_util/binders.cc: Same.
737 * testsuite/20_util/allocator/8230.cc: Same.
738 * testsuite/20_util/allocator/10378.cc: Same.
739 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
740 * testsuite/22_locale/ctype/is/char/2.cc: Same.
741 * testsuite/thread/pthread7-rope.cc: Same.
742 * testsuite/thread/pthread6.cc: Same.
743 * testsuite/thread/pthread5.cc: Same.
744 * testsuite/thread/pthread4.cc: Same.
745 * testsuite/thread/pthread1.cc: Same.
746 * testsuite/ext/rope.cc: Same.
747 * testsuite/ext/hash_set.cc: Same.
748 * testsuite/ext/hash_map.cc: Same.
749 * testsuite/ext/concept_checks.cc: Same.
750 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
751 * testsuite/25_algorithms/unique/2.cc: Same.
752 * testsuite/25_algorithms/unique/1.cc: Same.
753 * testsuite/25_algorithms/rotate.cc: Same.
754 * testsuite/25_algorithms/min_max.cc: Same.
755 * testsuite/25_algorithms/equal.cc: Same.
756 * testsuite/24_iterators/rel_ops.cc: Same.
757 * testsuite/24_iterators/iterator.cc: Same.
758 * testsuite/24_iterators/insert_iterator.cc: Same.
759 * testsuite/24_iterators/front_insert_iterator.cc: Same.
760 * testsuite/24_iterators/back_insert_iterator.cc: Same.
761 * testsuite/23_containers/vector/resize/1.cc: Same.
762 * testsuite/23_containers/vector/modifiers/2.cc: Same.
763 * testsuite/23_containers/vector/modifiers/1.cc: Same.
764 * testsuite/23_containers/vector/invalidation/4.cc: Same.
765 * testsuite/23_containers/vector/invalidation/3.cc: Same.
766 * testsuite/23_containers/vector/invalidation/2.cc: Same.
767 * testsuite/23_containers/vector/invalidation/1.cc: Same.
768 * testsuite/23_containers/vector/element_access/1.cc: Same.
769 * testsuite/23_containers/vector/cons/6513.cc: Same.
770 * testsuite/23_containers/vector/cons/3.cc: Same.
771 * testsuite/23_containers/vector/cons/2.cc: Same.
772 * testsuite/23_containers/vector/cons/1.cc: Same.
773 * testsuite/23_containers/vector/capacity/8230.cc: Same.
774 * testsuite/23_containers/vector/capacity/1.cc: Same.
775 * testsuite/23_containers/vector/bool/6886.cc: Same.
776 * testsuite/23_containers/stack/members/7158.cc: Same.
777 * testsuite/23_containers/set/invalidation/2.cc: Same.
778 * testsuite/23_containers/set/invalidation/1.cc: Same.
779 * testsuite/23_containers/queue/members/7157.cc: Same.
780 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
781 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
782 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
783 * testsuite/23_containers/multiset/insert/1.cc: Same.
784 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
785 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
786 * testsuite/23_containers/map/operators/1.cc: Same.
787 * testsuite/23_containers/map/invalidation/2.cc: Same.
788 * testsuite/23_containers/map/invalidation/1.cc: Same.
789 * testsuite/23_containers/map/insert/1.cc: Same.
790 * testsuite/23_containers/list/operators/4.cc: Same.
791 * testsuite/23_containers/list/operators/3.cc: Same.
792 * testsuite/23_containers/list/operators/2.cc: Same.
793 * testsuite/23_containers/list/operators/1.cc: Same.
794 * testsuite/23_containers/list/modifiers/3.cc: Same.
795 * testsuite/23_containers/list/modifiers/2.cc: Same.
796 * testsuite/23_containers/list/modifiers/1.cc: Same.
797 * testsuite/23_containers/list/invalidation/4.cc: Same.
798 * testsuite/23_containers/list/invalidation/3.cc: Same.
799 * testsuite/23_containers/list/invalidation/2.cc: Same.
800 * testsuite/23_containers/list/invalidation/1.cc: Same.
801 * testsuite/23_containers/list/cons/9.cc: Same.
802 * testsuite/23_containers/list/cons/8.cc: Same.
803 * testsuite/23_containers/list/cons/7.cc: Same.
804 * testsuite/23_containers/list/cons/6.cc: Same.
805 * testsuite/23_containers/list/cons/5.cc: Same.
806 * testsuite/23_containers/list/cons/4.cc: Same.
807 * testsuite/23_containers/list/cons/3.cc: Same.
808 * testsuite/23_containers/list/cons/2.cc: Same.
809 * testsuite/23_containers/list/cons/1.cc: Same.
810 * testsuite/23_containers/list/capacity/1.cc: Same.
811 * testsuite/23_containers/deque/operators/1.cc: Same.
812 * testsuite/23_containers/deque/invalidation/4.cc: Same.
813 * testsuite/23_containers/deque/invalidation/3.cc: Same.
814 * testsuite/23_containers/deque/invalidation/2.cc: Same.
815 * testsuite/23_containers/deque/invalidation/1.cc: Same.
816 * testsuite/23_containers/deque/cons/2.cc: Same.
817 * testsuite/23_containers/deque/cons/1.cc: Same.
819 * src/allocator.cc: Add char, wchar_t instantiations
820 to match extern template declarations in memory.h.
822 2004-03-03 Paolo Carlini <pcarlini@suse.de>
824 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
825 Fix warning regression.
827 2004-03-03 Paolo Carlini <pcarlini@suse.de>
829 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
830 Deal properly with empty __digits and negative frac_digits,
833 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
835 * docs/html/documentation.html: Regenerate.
837 2004-03-02 Paolo Carlini <pcarlini@suse.de>
840 * include/bits/postypes.h (class streamoff): Remove, now
841 streamoff is just typedef a 64 bit signed integer type.
842 (class fpos): Tweak consistently.
843 * testsuite/27_io/fpos/14320-1.cc: New.
844 * testsuite/27_io/fpos/14320-2.cc: New.
845 * testsuite/27_io/fpos/14320-3.cc: New.
846 * testsuite/27_io/fpos/14320-4.cc: New.
847 * testsuite/27_io/fpos/14320-5.cc: New.
848 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
850 2004-03-02 Paolo Carlini <pcarlini@suse.de>
852 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
853 Reorganize a bit the main parsing loop, thus early detecting
854 an empty value component.
855 * testsuite/22_locale/money_get/get/char/16.cc: New.
856 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
858 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
860 Support automake 1.8.2
861 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
862 * po/Makefile.am (EXTRA_DIST): New.
863 * po/Makefile.in: Regenerate.
865 * include/Makefile.in: Same.
866 * libmath/Makefile.in: Same.
867 * libsupc++/Makefile.in: Same.
868 * src/Makefile.in: Same.
869 * testsuite/Makefile.in: Same.
871 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
872 __GXX_WEAK__ instead of SUPPORTS_WEAK.
873 (${host_builddir}/gthr-default.h): Same.
874 (${host_builddir}/gthr.h): Same.
875 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
876 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
878 * aclocal.m4: Regenerate.
879 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
880 * config.h.in: Regenerate.
883 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
885 Support autoconf 2.59
886 * acinclude.m4: Quote correctly.
887 * aclocal.m4: Regenerate.
890 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
892 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
894 * docs/html/18_support/howto.html: Add bit about writing to
895 stderr, mostly by Zack.
897 2004-03-01 Paolo Carlini <pcarlini@suse.de>
899 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
900 money_get<>::do_get(string_type&)): ... and two more.
902 2004-03-01 Paolo Carlini <pcarlini@suse.de>
904 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
905 Fix thinkos in the switch from string_type& to string& as last
908 2004-03-01 Paolo Carlini <pcarlini@suse.de>
910 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
911 Also when parsing exponent sign, first look for thousands_sep
912 and decimal_point; tweak a bit.
913 * testsuite/22_locale/num_get/get/char/15.cc: New.
914 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
916 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
917 num_get<>::_M_extract_int): Reorder some conditionals.
919 2004-03-01 Paolo Carlini <pcarlini@suse.de>
921 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
922 Consistently with numpunct, enforce the requirements in
923 22.2.6.3, p3 for the thousands separators; tweak a bit.
924 * testsuite/22_locale/money_get/get/char/15.cc: New.
925 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
927 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
929 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
930 testsuite_files from correct multilib blddir when running
933 2004-02-29 Phil Edwards <phil@codesourcery.com>
935 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
936 the summary file to the logfile.
937 * testsuite/Makefile.in: Regenerate.
939 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
941 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
943 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
944 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
946 2004-02-28 Paolo Carlini <pcarlini@suse.de>
948 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
949 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
950 no 'decimal-point' in the middle: in this case too we must fix
951 up __found_grouping; slightly tweak.
952 * testsuite/22_locale/num_get/get/char/14.cc: New.
953 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
955 2004-02-27 Eric Christopher <echristo@redhat.com>
956 Phil Edwards <phil@codesourcery.com>
958 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
959 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
960 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
961 testsuite/22_locale/collate/hash/wchar_t/2.cc,
962 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
963 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
964 testsuite/22_locale/collate/transform/wchar_t/2.cc,
965 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
966 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
967 Use dg-require-iconv.
968 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
970 2004-02-27 Phil Edwards <phil@codesourcery.com>
971 Eric Christopher <echristo@redhat.com>
973 * testsuite/config/default.exp: Update with comments.
974 (${tool}_target_compile): New wrapper routine.
975 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
976 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
978 (load_gcc_lib, v3track): New routines.
979 (v3-init): Rename to libstdc++_init.
980 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
981 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
983 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
985 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
987 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
989 * config/os/irix/irix5.2/atomicity.h: Merge..
990 * config/os/irix/irix6.5/atomicity.h: Merge..
991 * config/os/irix/atomicity.h: ...into this.
992 * config/os/irix/atomic_word.h: New.
993 * configure.host: Set atomic_word_dir for irix.
995 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
996 * i386/atomicity.h: Same.
997 * m68k/atomicity.h: Same.
998 * sparc/atomicity.h: Same.
1000 2004-02-27 David Edelsohn <edelsohn@gnu.org>
1002 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
1003 static, and inline keywords.
1005 2004-02-27 Paolo Carlini <pcarlini@suse.de>
1007 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1008 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
1009 call reserve on the __tmp_gruping string.
1010 (num_get<>::_M_extract_float): Don't append unnecessarily a
1011 char() to the returned string.
1012 * include/bits/locale_facets.tcc: Trivial reformattings.
1014 2004-02-27 Paolo Carlini <pcarlini@suse.de>
1016 * include/bits/locale_facets.h (money_get<>::_M_extract):
1017 Change signature: now takes a plain string&.
1018 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1019 Update consistently the definition; use the moneypunct cache
1020 to parse the value; use swap to change __units.
1021 (money_get<>::do_get(long double&)): Update call of _M_extract,
1022 avoid ctype::narrow, not correct wrt the standard.
1023 (money_get<>::do_get(string_type&)): Likewise, update call
1024 of _M_extract, use ctype::widen.
1025 * src/locale-inst.cc: Tweak instantiations of _M_extract.
1027 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
1029 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
1030 * testsuite/demangle/abi_examples/02.cc: Likewise.
1031 * testsuite/demangle/regression/cw-11.cc: Likewise.
1032 * testsuite/demangle/regression/cw-16.cc: Change two expected
1033 results to match libiberty demangler output.
1035 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
1038 * libsupc++/Makefile.am: Use libiberty demangler.
1039 (c_sources): Add cp-demangle.c.
1040 * libsupc++/Makefile.in: Regenerate.
1041 * src/Makefile.am (sources): Remove demangle.cc.
1042 * src/Makefile.in: Regenerate.
1043 * include/Makefile.am (bits_headers): Move demangle.h.
1044 (ext_headers): ...here.
1045 * include/Makefile.in: Regenerate.
1046 * include/bits/demangle.h: Move...
1047 * include/ext/demangle.h: ...here.
1048 * src/demangle.cc: Remove.
1050 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
1052 * include/bits/demangle.h: Add type template parameter to all
1053 templates with just an Allocator template parameter.
1055 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
1057 * include/bits/atomicity.h: New, forward declarations for __atomic_add
1058 and __exchange_and_add.
1059 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
1060 * config/cpu/cris/atomic_word.h: Same.
1061 * config/cpu/sparc/atomic_word.h: Same.
1062 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
1063 Qualifiy with __gnu_cxx.
1064 (_Callback_list::_M_add_reference): Same.
1065 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
1066 (locale::facet::_M_remove_reference): Same.
1067 (locale::_Impl::_M_add_reference): Add.
1068 (locale::_Impl::_M_remove_reference): Same.
1069 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
1070 (basic_string::_Rep::_M_dispose): Same.
1071 * src/ios.cc (ios_base::xalloc): Same.
1072 * src/ios_init.cc (ios_base::Init::Init): Same.
1073 (ios_base::Init::~Init): Same.
1074 * src/locale.cc (locale::id::_M_id): Same.
1075 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
1076 static, and inline keywords.
1077 * config/cpu/alpha/atomicity.h: Same.
1078 * config/cpu/cris/atomicity.h: Same.
1079 * config/cpu/generic/atomicity.h: Same.
1080 * config/cpu/hppa/atomicity.h: Same.
1081 * config/cpu/i386/atomicity.h: Same.
1082 * config/cpu/ia64/atomicity.h: Same.
1083 * config/cpu/m68k/atomicity.h: Same.
1084 * config/cpu/mips/atomicity.h: Same.
1085 * config/cpu/powerpc/atomicity.h: Same.
1086 * config/cpu/s390/atomicity.h: Same.
1087 * config/cpu/sparc/atomicity.h: Same.
1089 * src/Makefile.am (host_sources): Add atomicity.cc.
1090 (atomicity.cc): New rule.
1091 * src/Makefile.in: Regenerate.
1092 * include/Makefile.am (host_headers): Remove host atomicity.h.
1093 (host_headers): Add atomic_word.h.
1094 (bits_headers): Add bits atomicity.h.
1095 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
1096 * include/Makefile.in: Regenerate.
1097 * configure.host (atomic_word_dir): Add.
1098 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
1099 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
1100 * configure: Regenerate.
1101 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
1103 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
1104 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1106 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
1108 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
1109 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
1110 Fix markup, more <link> tags.
1112 2004-02-25 Carlo Wood <carlo@alinoe.com>
1115 namespace __gnu_cxx::demangler
1116 (session<Allocator>::qualifier_list_Allocator): Add
1117 (session<Allocator>::M_qualifier_list_alloc): Add
1118 (session<Allocator>::decode_type_with_postfix):
1119 Use M_qualifier_list_alloc instead of calling operator new/delete.
1121 2004-02-24 Paolo Carlini <pcarlini@suse.de>
1124 * include/bits/postypes.h (class streamoff): Add operator++(),
1125 operator++(int), operator--() and operator--(int).
1126 * testsuite/27_io/fpos/14252.cc: New.
1128 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
1130 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
1131 error in handling of hex constants.
1133 2004-02-24 Paolo Carlini <pcarlini@suse.de>
1135 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1136 Prefer basic_string::append to operator+= and a temporary.
1138 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
1140 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
1141 Only use fputs, not write.
1143 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
1145 * include/ext/malloc_allocator.h: Add operators ==, !=.
1146 * include/ext/new_allocator.h: Add operators ==, !=.
1147 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
1148 (__mt_alloc::_S_get_options): New.
1149 (__mt_alloc::_S_set_options): New.
1150 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
1151 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
1152 Move functions out of line, simplify, format.
1153 * src/allocator.cc: Simplify explicit instantiations.
1154 * include/bits/allocator.h: Tweak.
1156 2004-02-22 Paolo Carlini <pcarlini@suse.de>
1158 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1159 Restructure formatting of value component, first dealing with
1160 the non-decimal digits; use reserve.
1162 2004-02-22 Paolo Carlini <pcarlini@suse.de>
1164 * include/bits/locale_facets.h (class money_get): Inherit
1165 from money_base too; tweak declaration of _M_extract, now
1166 parameterized on _Intl too.
1167 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1168 Update definition to use the cache; call reserve on __res to
1169 avoid multiple reallocations; fix parsing of sign component
1170 according to 22.2.6.1.2, p3.
1171 (money_get<>::do_get(long double&),
1172 money_get<>::do_get(string_type&)): Update calls of _M_extract.
1173 * src/locale-inst.cc: Add instantiations of
1174 money_get::_M_extract<false> and money_get::_M_extract<true>.
1175 * testsuite/22_locale/money_get/get/char/14.cc: New.
1176 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
1178 2004-02-21 Mark Mitchell <mark@codesourcery.com>
1180 * libsupc++/vterminate.cc
1181 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
1183 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
1185 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
1186 not set RLIMIT_AS on HP-UX.
1188 2004-02-21 Mark Mitchell <mark@codesourcery.com>
1190 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
1191 not set RLIMIT_AS on HP-UX.
1193 2004-02-21 Paolo Carlini <pcarlini@suse.de>
1195 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
1196 _S_zero, _S_end } enum, _S_atoms.
1197 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
1198 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
1199 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
1200 (__moneypunct_cache<>::~__moneypunct_cache): Update.
1201 (__moneypunct_cache<>::_M_cache): Fill the cache.
1202 (class moneypunct): Tweak __cache_type typedef.
1203 (class money_put): Inherit from money_base too; tweak declaration
1204 of _M_insert, now parameterized on _Intl.
1205 * include/bits/locale_facets.tcc
1206 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
1207 (money_put<>::_M_insert): Update definition to use the cache;
1208 call reserve on __res to avoid multiple reallocations.
1209 (money_put<>::do_put(long double),
1210 money_put<>::do_put(const string_type&): Update calls of _M_insert.
1211 * config/locale/generic/monetary_members.cc
1212 (moneypunct<char, true>::_M_initialize_moneypunct,
1213 moneypunct<char, false>::_M_initialize_moneypunct,
1214 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
1215 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
1216 * config/locale/gnu/monetary_members.cc: Likewise.
1217 * config/locale/gnu/monetary_members.cc
1218 (moneypunct<wchar_t, true>::~moneypunct(),
1219 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
1220 * src/globals_locale.cc: Tweak fake_money_cache_c.
1221 * src/locale-inst.cc: Add instantiations for
1222 money_put::_M_insert<false> and money_put::_M_insert<true> and
1223 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
1224 * src/locale_facets.cc: Define money_base::_S_atoms.
1225 * src/locale_init.cc: Update placement new of
1226 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
1227 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
1229 * config/locale/generic/numeric_members.cc: Clean up.
1230 * config/locale/gnu/numeric_members.cc: Likewise.
1231 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
1232 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
1233 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
1234 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
1235 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1236 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1238 2004-02-20 Mark Mitchell <mark@codesourcery.com>
1240 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
1241 FIFO for writing with ios_base::in|ios_base::out.
1242 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
1243 * testsuite/27_io/objects/char/7.cc: Likewise.
1244 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
1247 2004-02-19 David Edelsohn <edelsohn@gnu.org>
1249 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
1250 from iso-8859-1 to ISO8859-1.
1251 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
1252 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
1253 * 22_locale/collate/hash/wchar_t/2.cc: Same.
1254 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
1255 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
1256 * 22_locale/collate/transform/wchar_t/2.cc: Same.
1257 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
1258 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
1260 2004-02-18 Paolo Carlini <pcarlini@suse.de>
1262 * include/bits/locale_facets.h (money_get<>::_M_extract):
1263 New, helper for do_get.
1264 (money_put<>::_M_insert): Likewise, for do_put.
1265 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
1266 money_put<>::_M_insert): Define.
1267 (money_get<>::do_get(long double&), money_get<>::do_get(
1268 string_type&), money_put::do_put(long double),
1269 money_put::do_put(const string_type&)): Use the helpers.
1271 2004-02-18 Paolo Carlini <pcarlini@suse.de>
1273 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
1274 Rewrite, avoiding recursion.
1275 (__gnu_internal::xwrite): Minor tweaks.
1277 2004-02-17 Stefan Olsson <stefan@xapa.se>
1279 * include/ext/mt_allocator.h: Removed the last
1280 pointer. Deallocated blocks are now added to the front of
1281 freelists as proposed by Felix Yen. This gives roughly 10%
1282 performance boost and saves some memory.
1283 * docs/html/ext/mt_allocator.html: Change due to that deallocated
1284 blocks now are added to the front of freelists. The reason to this
1285 approach is also explained.
1287 2004-02-17 Paolo Carlini <pcarlini@suse.de>
1289 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1290 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
1291 grouping fidelity conditional.
1293 2004-02-16 Paolo Carlini <pcarlini@suse.de>
1295 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
1296 Qualify exception with std::.
1297 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
1298 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
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 2004-02-16 Paolo Carlini <pcarlini@suse.de>
1305 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
1306 for now that the catch block is not reached.
1307 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
1309 2004-02-16 Paolo Carlini <pcarlini@suse.de>
1311 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
1312 Fix parsing of the remaining sign characters.
1313 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
1314 the input is scanned 'til eof.
1315 * 22_locale/money_get/get/char/4.cc: Likewise.
1316 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
1317 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
1318 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
1319 not do_pos_format: the former is the only one that matters during
1321 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
1323 * 22_locale/money_get/get/char/6.cc: Minor tweak.
1324 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
1326 2004-02-15 David Asher <david.asher@cavium.com>
1329 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
1330 access __olds beyond __oldlen.
1332 2004-02-14 Paolo Carlini <pcarlini@suse.de>
1334 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
1335 sure the exception is actually thrown.
1336 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1337 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1338 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1340 2004-02-14 Paolo Carlini <pcarlini@suse.de>
1343 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
1344 In case of conversion errors, throw ios_failure; simplify.
1345 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
1346 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
1347 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
1348 previously we didn't throw in case of conversion errors, instead
1349 just returned eof().
1350 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1351 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1352 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1354 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
1355 Trivial simplification of a conditional.
1357 2004-02-12 Paolo Carlini <pcarlini@suse.de>
1359 PR libstdc++/13731 (final part: writev)
1360 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
1361 New, a wrapper around writev() handling partial writes.
1362 (__basic_file<char>::xwrite): Move to __gnu_internal and make
1364 (__basic_file<char>::xsputn): Update call.
1365 (__basic_file<char>::xsputn_2): Likewise.
1366 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
1367 Don't declare, now static.
1369 2004-02-11 Stefan Olsson <stefan@xapa.se>
1371 * docs/html/ext/mt_allocator.html: New.
1373 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
1375 * docs/html/20_util/allocator.html: New file, consolidate
1376 allocator information here. Revamp.
1377 * docs/html/documentation.html: Change links.
1378 * docs/html/20_util/howto.html: Same.
1379 * docs/html/ext/howto.html: Same.
1381 2004-02-11 Paolo Carlini <pcarlini@suse.de>
1383 PR libstdc++/13731 (first part: write)
1384 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
1386 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
1387 Define it: a wrapper around write() handling partial write.
1388 (__basic_file<char>::xsputn): Use it.
1389 (__basic_file<char>::xsputn_2): Likewise.
1391 2004-02-11 Paolo Carlini <pcarlini@suse.de>
1392 Petur Runolfsson <peturr02@ru.is>
1395 * include/std/std_istream.h (operator>>(__istream_type& (*)
1396 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
1397 operator>>(ios_base& (*)(ios_base&))): Declare inline.
1398 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
1399 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
1400 operator<<(ios_base& (*) (ios_base&))): Likewise.
1401 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
1403 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
1406 * config/linker-map.gnu: Add typeinfo and typeinfo name for
1407 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
1410 * config/linker-map.gnu: Add typeinfo and typeinfo name for
1411 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
1413 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
1415 * include/ext/pool_allocator.h: Include c++config.h.
1417 2004-02-09 Stefan Olsson <stefan@xapa.se>
1419 * include/ext/mt_allocator.h: thread_id is unused in non threaded
1420 applications and now has a ifdef to remove it completely on
1421 compilers without thread support. Include stdlib.h due to a
1422 compiler warning on getenv().
1424 2004-02-09 Paul Brook <paul@codesourcery.com>
1426 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
1428 2004-02-09 Paolo Carlini <pcarlini@suse.de>
1431 * src/locale_init.cc (locale::global(const locale&)): Use
1432 locale::name() in order to decide whether calling setlocale.
1433 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
1435 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
1436 Avoid computing &= unnecessarily.
1438 2004-02-09 James E Wilson <wilson@specifixinc.com>
1441 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
1442 __builtin_extend_pointer.
1444 2004-02-09 Paolo Carlini <pcarlini@suse.de>
1447 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
1448 Don't leave dangling pointers.
1449 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
1450 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
1451 facet is needed in the final test.
1453 2004-02-09 Bernardo Innocenti <bernie@develer.com>
1455 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
1456 * configure: Regenerate.
1458 2004-02-08 Richard Henderson <rth@redhat.com>
1461 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
1462 uncaughtExceptions during nested catch rethrow.
1463 * testsuite/18_support/14026.cc: New.
1465 2004-02-08 Paolo Carlini <pcarlini@suse.de>
1467 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
1468 When working in place remember to set the state to sharable
1469 (otherwise, _M_mutate does it).
1471 2004-02-08 Bernardo Innocenti <bernie@develer.com>
1473 * include/bits/allocator.h, include/bits/basic_ios.h,
1474 include/bits/basic_ios.tcc, include/bits/basic_string.h,
1475 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
1476 include/bits/char_traits.h, include/bits/codecvt.h,
1477 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
1478 include/bits/demangle.h, include/bits/deque.tcc,
1479 include/bits/fstream.tcc, include/bits/functexcept.h,
1480 include/bits/gslice.h, include/bits/gslice_array.h,
1481 include/bits/indirect_array.h, include/bits/ios_base.h,
1482 include/bits/istream.tcc, include/bits/list.tcc,
1483 include/bits/locale_classes.h, include/bits/locale_facets.h,
1484 include/bits/locale_facets.tcc, include/bits/localefwd.h,
1485 include/bits/mask_array.h, include/bits/ostream.tcc,
1486 include/bits/postypes.h, include/bits/slice_array.h,
1487 include/bits/sstream.tcc, include/bits/stl_algo.h,
1488 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
1489 include/bits/stl_construct.h, include/bits/stl_deque.h,
1490 include/bits/stl_function.h, include/bits/stl_heap.h,
1491 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
1492 include/bits/stl_list.h, include/bits/stl_map.h,
1493 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
1494 include/bits/stl_numeric.h, include/bits/stl_pair.h,
1495 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
1496 include/bits/stl_relops.h, include/bits/stl_set.h,
1497 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
1498 include/bits/stl_threads.h, include/bits/stl_tree.h,
1499 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
1500 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
1501 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
1502 include/bits/type_traits.h, include/bits/valarray_after.h,
1503 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
1504 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
1505 trailing whitespace.
1507 2004-02-06 Paolo Carlini <pcarlini@suse.de>
1509 * include/bits/basic_string.h: Fix comment.
1511 2004-02-06 Paolo Carlini <pcarlini@suse.de>
1513 * include/bits/stl_construct.h: Wrap overlong lines, reformat
1514 according to the coding standards.
1515 * include/bits/stl_pair.h: Likewise.
1516 * include/bits/stl_raw_storage_iter.h: Likewise.
1517 * include/bits/stl_stack.h: Likewise.
1518 * include/bits/stl_uninitialized.h: Likewise.
1519 * include/bits/stream_iterator.h: Likewise.
1520 * include/bits/streambuf_iterator.h: Likewise.
1521 * include/bits/type_traits.h: Likewise.
1523 2004-02-06 Paolo Carlini <pcarlini@suse.de>
1525 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
1528 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
1530 * scripts/check_performance: Support PCH.
1532 * scripts/check_performance (CXX): Add -DNOTHREAD.
1533 * testsuite/performance/20_util/allocator/insert.cc: Integrate
1534 threaded tests from insert_insert.cc. Tweak iterations,
1535 remove special cases.
1536 * testsuite/performance/20_util/allocator/insert_insert.cc:
1537 Make all tests single-threaded. Tweak iterations.
1538 * testsuite/performance/20_util/allocator/map_thread.cc:
1540 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1543 2004-02-05 Geoffrey Keating <geoffk@apple.com>
1547 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
1548 'gcc-lib'. Add comment about poorly-named variables.
1549 * aclocal.m4: Regenerate.
1550 * configure: Regenerate.
1552 2004-02-05 Paolo Carlini <pcarlini@suse.de>
1554 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
1555 Thousands-sep are always optional; thousands-sep are not allowed
1556 after the decimal_point.
1557 * testsuite/22_locale/money_get/get/char/12.cc: New.
1558 * testsuite/22_locale/money_get/get/char/13.cc: New.
1559 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
1560 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
1562 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
1563 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1564 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1565 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1566 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1567 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1568 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1569 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1571 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
1573 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
1575 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
1577 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
1579 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
1580 it to decide whether FIONREAD should take an off_t or int argument.
1582 2004-02-05 Paolo Carlini <pcarlini@suse.de>
1584 * include/bits/stl_function.h: Minor formatting changes.
1586 2004-02-04 Zack Weinberg <zack@codesourcery.com>
1588 Revert previous change to config/abi/*/baseline_symbols.txt.
1590 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
1591 Zack Weinberg <zack@codesourcery.com>
1593 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
1595 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
1596 (__basic_file<char>::_M_open_mode): Delete.
1597 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
1599 * testsuite/27_io/basic_filebuf/close/char/9964.cc
1600 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
1601 Correct flags to filebuf::open calls.
1603 * config/abi/alpha-freebsd5/baseline_symbols.txt
1604 * config/abi/alpha-linux-gnu/baseline_symbols.txt
1605 * config/abi/hppa-linux-gnu/baseline_symbols.txt
1606 * config/abi/i386-freebsd4/baseline_symbols.txt
1607 * config/abi/i386-freebsd5/baseline_symbols.txt
1608 * config/abi/i486-linux-gnu/baseline_symbols.txt
1609 * config/abi/ia64-linux-gnu/baseline_symbols.txt
1610 * config/abi/mips-linux-gnu/baseline_symbols.txt
1611 * config/abi/sparc-freebsd5/baseline_symbols.txt
1612 * config/abi/sparc-linux-gnu/baseline_symbols.txt
1613 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
1614 Remove entry for __basic_file<char>::_M_open_mode.
1616 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
1618 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
1620 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
1622 * testsuite/performance/20_util/producer_consumer.cc: New.
1623 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
1625 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
1627 * testsuite/performance/20_util/allocator.cc: Move to..
1628 * testsuite/performance/20_util/allocator/insert.cc: ...here.
1629 * testsuite/performance/20_util/allocator_thread.cc: Move to...
1630 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
1631 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
1632 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
1634 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
1636 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
1637 * docs/html/faq/index.txt: Regenerate.
1639 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
1641 * include/ext/debug_allocator.h: _M_extra now stands for the
1642 number of extra objects instead of the number of extra bytes.
1643 (debug_allocator::allocate): Adjust.
1644 (debug_allocator::deallocate): Adjust.
1646 * include/ext/pool_allocator.h: Fix typo.
1648 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
1649 Benjamin Kosnik <bkoz@redhat.com>
1651 * testsuite/performance/20_util/allocator.cc: Add map,
1653 * testsuite/performance/20_util/allocator_thread.cc: Same.
1655 2004-02-03 Paolo Carlini <pcarlini@suse.de>
1657 * include/bits/basic_string.h (insert(iterator)): Remove,
1658 non-standard and already scheduled for removal.
1660 2004-02-03 Paolo Carlini <pcarlini@suse.de>
1662 * include/bits/stl_iterator_base_funcs.h: Minor formatting
1663 and indentation tweaks.
1664 * include/bits/stl_iterator_base_types.h: Likewise.
1665 * include/bits/stl_list.h: Likewise.
1666 * include/bits/stl_map.h: Likewise.
1667 * include/bits/stl_tempbuf.h: Likewise.
1669 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
1671 * include/bits/gslice.h, include/bits/gslice_array.h,
1672 include/bits/indirect_array.h, include/bits/mask_array.h,
1673 include/bits/slice_array.h, include/bits/stl_numeric.h,
1674 include/std/std_valarray.h: Update copyright years.
1676 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
1678 * include/bits/gslice.h (gslice): Document.
1679 * include/bits/gslice_array.h (gslice_array): Document.
1680 * include/bits/indirect_array (indirect_array): Document.
1681 * include/bits/mask_array (mask_array): Document.
1682 * include/bits/slice_array.h (slice,slice_array): Document.
1683 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
1684 adjacent_difference): Document
1685 * include/std/std_valarray.h (valarray): Document.
1687 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
1689 * docs/html/19_diagnostics/howto.html: Move verbose terminate
1691 * docs/html/18_support/howto.html: Here.
1692 * docs/html/documentation.html: Add reference here.
1694 2004-02-02 Paolo Carlini <pcarlini@suse.de>
1696 * config/locale/gnu/c++locale_internal.h: Remove prototypes
1697 of no longer used GLIBC thread locale functions.
1699 2004-02-02 Eric Christopher <echristo@redhat.com>
1700 Zack Weinberg <zack@codesourcery.com>
1702 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
1704 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
1705 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
1706 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
1707 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
1708 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
1709 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
1710 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
1711 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
1714 2004-02-02 Paolo Carlini <pcarlini@suse.de>
1716 * include/bits/stl_function.h: Additional minor tweaks.
1717 * include/bits/stl_multiset.h: Likewise.
1719 * include/bits/stl_queue.h: Minor tweaks.
1721 2004-02-02 Paolo Carlini <pcarlini@suse.de>
1723 PR libstdc++/13976 (continued)
1724 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
1725 Make the second parameter unnamed, to void unused parameter
1727 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
1729 2004-02-02 Paolo Carlini <pcarlini@suse.de>
1732 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
1733 Make the second parameter unnamed, to void unused parameter
1735 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
1736 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
1738 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1740 * include/bits/stl_algo.h: Additional minor tweaks.
1741 * include/bits/stl_map.h: Likewise.
1742 * include/bits/stl_multimap.h: Likewise.
1743 * include/bits/stl_multiset.h: Likewise.
1744 * include/bits/stl_set.h: Likewise.
1745 * include/bits/stl_tree.h: Likewise.
1747 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1749 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
1752 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1754 * include/bits/stl_function.h: Additional minor tweaks.
1756 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1758 * include/bits/deque.tcc: Wrap overlong lines, constify
1759 a few variables, reformat according to the coding standards.
1760 * include/bits/list.tcc: Likewise.
1761 * include/bits/stl_deque.h: Likewise.
1762 * include/bits/stl_function.h: Likewise.
1763 * include/bits/stl_iterator.h: Likewise.
1764 * include/bits/stl_iterator_base_funcs.h: Likewise.
1765 * include/bits/stl_iterator_base_types.h: Likewise.
1766 * include/bits/stl_list.h: Likewise.
1767 * include/bits/stl_map.h: Likewise.
1768 * include/bits/stl_multimap.h: Likewise.
1769 * include/bits/stl_multiset.h: Likewise.
1770 * include/bits/stl_relops.h: Likewise.
1771 * include/bits/stl_set.h: Likewise.
1773 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1775 * include/bits/stl_bvector.h: Wrap overlong lines, constify
1776 a few variables, reformat according to the coding standards.
1777 * include/bits/stl_tree.h: Likewise.
1779 2004-01-31 Paolo Carlini <pcarlini@suse.de>
1781 * include/bits/stl_algo.h: Minor additional reformat, add
1783 * include/bits/stl_algobase.h: Add copyright year.
1785 2004-01-31 Paolo Carlini <pcarlini@suse.de>
1787 * include/bits/stl_algo.h: Wrap overlong lines, constify
1788 a few variables, reformat according to the coding standards.
1789 * include/bits/stl_algobase.h: Likewise.
1790 * include/bits/stl_heap.h: Likewise.
1792 2004-01-31 Paolo Carlini <pcarlini@suse.de>
1794 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
1796 * include/bits/basic_string.h: Fix two comments.
1798 2004-01-31 Per Bothner <per@bothner.com>
1800 * include/ext/mt_allocator.h
1801 (__mt_alloc::_S_thread_freelist_mutex): Guard with
1802 __GTHREAD_MUTEX_INIT.
1804 2004-01-31 Paolo Carlini <pcarlini@suse.de>
1806 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
1808 2004-01-30 Paolo Carlini <pcarlini@suse.de>
1810 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
1811 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
1812 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
1814 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
1816 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
1817 Don't use clear, but instead assign. Use insert.
1819 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
1821 * src/demangle.cc: Add instantiations.
1822 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
1823 * src/Makefile.in: Regenerate.
1825 2004-01-30 David Edelsohn <edelsohn@gnu.org>
1827 * src/allocator.cc: Protect _S_get_thread_id() and
1828 _S_thread_key_destr() with #ifdef __GTHREADS.
1830 2004-01-30 Paolo Carlini <pcarlini@suse.de>
1832 Reshuffle performance testsuite.
1833 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
1834 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
1835 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
1836 fstream_seek_write.cc, ifstream_extract_float.cc,
1837 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
1838 list_create_fill_sort.cc, map_create_fill.cc,
1839 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
1840 ofstream_insert_float.cc, ofstream_insert_int.cc,
1841 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
1842 wchar_t_out.cc: Split into...
1843 * testsuite/performance/20_util/allocator.cc: New.
1844 * testsuite/performance/20_util/allocator_map_thread.cc: New.
1845 * testsuite/performance/20_util/allocator_thread.cc: New.
1846 * testsuite/performance/21_strings/string_append: New.
1847 * testsuite/performance/22_locale/is_wchar_t.cc: New.
1848 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
1849 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
1850 * testsuite/performance/22_locale/wchar_t_in.cc: New.
1851 * testsuite/performance/22_locale/wchar_t_length.cc: New.
1852 * testsuite/performance/22_locale/wchar_t_out.cc: New.
1853 * testsuite/performance/23_containers/container_benchmark.cc: New.
1854 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
1855 * testsuite/performance/23_containers/map_create_fill.cc: New.
1856 * testsuite/performance/26_numerics/complex_norm.cc: New.
1857 * testsuite/performance/27_io/cout_insert_int.cc: New.
1858 * testsuite/performance/27_io/filebuf_copy.cc: New.
1859 * testsuite/performance/27_io/filebuf_sputc.cc: New.
1860 * testsuite/performance/27_io/fstream_seek_write.cc: New.
1861 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
1862 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
1863 * testsuite/performance/27_io/ifstream_getline.cc: New.
1864 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
1865 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
1867 2004-01-30 Paolo Carlini <pcarlini@suse.de>
1869 * include/bits/basic_string.tcc (_Rep::_S_create):
1870 Never allocate a string bigger than max_size(); always keep
1871 __capacity and __size in sync to avoid memory leaks at
1874 2004-01-30 Paolo Carlini <pcarlini@suse.de>
1876 * include/bits/basic_string.tcc (_S_construct(_InIterator,
1877 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
1878 the double loop, streamline.
1880 * include/bits/basic_string.tcc: Very minor tweaks.
1882 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
1884 * scripts/check_performance: Only compile with $THREAD_FLAG
1885 when test is marked to require it. Allow multiple
1886 compilations/executions of marked tests.
1887 * testsuite/testsuite_performance.h (report_performance):
1888 Report dynamic thread support status.
1889 (report_header): Likewise.
1890 * testsuite/performance/allocator.cc: Stabilize iteration
1891 count. Support more allocators. Mark each allocator test to
1892 run and report independently.
1893 * testsuite/performance/allocator_map_thread.cc: Likewise.
1894 * testsuite/performance/allocator_thread.cc: Likewise.
1896 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
1898 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
1899 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
1900 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
1901 std::get_temporary_buffer() instead of duplicating its code.
1902 Update to C++STYLE conventions.
1903 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
1904 new() instead of std::malloc().
1905 (return_temporary_buffer): Use ::operator delete() instead of
1908 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
1910 * include/bits/allocator.h: Temporary switch to new_allocator as
1911 the default to unjam bootstraps.
1913 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
1915 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
1916 * include/Makefile.in: Regenerate.
1917 * include/bits/allocator_traits.h: Remove.
1918 * include/bits/allocator.h: Remove allocator_traits.h include, and
1920 (allocator): Empty base class, inherit from the underlying allocator.
1921 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
1922 * src/allocator.cc: ...here. New. For the underlying allocators.
1923 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
1924 * config/linker-map.gnu: Remove __pool_alloc bits.
1925 * src/Makefile.am (sources): Add allocator.cc.
1926 * src/Makefile.in: Regenerate.
1927 * testsuite/20_util/allocator/1.cc: Split second test into...
1928 * testsuite/20_util/allocator/8230.cc: ...this.
1929 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
1930 typedef to use std::allocatore. Format.
1931 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
1933 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
1934 __throw_bad_alloc calls. Don't include <memory>.
1935 * include/ext/malloc_allocator.h: Remove <memory> include.
1936 * include/ext/new_allocator.h (new_allocator): Same.
1937 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
1938 declaration. Switch __alloc to _Alloc.
1939 * include/ext/hashtable.h: Remove __alloc.
1940 * include/backward/alloc.h: Only inject allocator, not
1941 implementation details.
1943 * include/ext/mt_allocator.h: Replace free with delete.
1945 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
1947 * src/globals_io.cc: Change to __gnu_internal namespace.
1948 * src/globals_locale.cc: Same.
1949 * src/locale_init.cc: Same.
1950 * src/ios_init.cc: Same.
1952 2004-01-28 Stefan Olsson <stefan@snon.net>
1954 * include/ext/mt_allocator.h: Replaced all malloc() calls with
1955 operator new(). Added support for the env variable
1956 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
1957 one in allocate() as well). Fix typos.
1959 2004-01-28 Paolo Carlini <pcarlini@suse.de>
1961 * include/bits/basic_string.h (_S_create(size_t,
1962 const _Alloc&): Change signature to take two size_type
1964 * include/bits/basic_string.tcc (_S_construct(_InIterator,
1965 _InIterator, const _Alloc&, input_iterator_tag)): Update
1967 (_S_construct(_InIterator, _InIterator, const _Alloc&,
1968 forward_iterator_tag)): Likewise.
1969 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
1970 (_M_mutate(size_type, size_type, size_type)): Don't
1971 implement the exponential growth policy, demand it to
1972 _S_create, update call and simplify.
1973 (_M_clone(const _Alloc&, size_type)): Likewise.
1974 (_S_create(size_type, size_type, const _Alloc&)): Implement
1975 the growth policy, simplify otherwise.
1977 * include/bits/basic_string.h (_Rep::operator[]): Tweak
1978 signature to take a size_type, consistently with the other
1981 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
1983 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
1984 delete declarations, add include and test variable.
1986 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
1988 * include/bits/codecvt.h, include/bits/locale_facets.h,
1989 include/bits/postypes.h, include/bits/stl_bvector.h,
1990 include/bits/stl_multiset.h, include/bits/stl_set.h,
1991 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
1992 include/std/std_complex.h: Document.
1994 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
1997 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
1998 iword/pword selector.
1999 (ios_base::iword, ios_base::pword): Use it.
2000 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
2001 iword or pword member on alloc failure.
2002 * testsuite/27_io/ios_base/storage/11584.cc: New test.
2004 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
2005 PJ Darcy <darcypj@us.ibm.com>
2007 * configure.host: Add support for *-tpf.
2008 * crossconfig.m4: Likewise.
2009 * configure: Regenerate.
2010 * config/os/tpf: New directory.
2011 * config/os/tpf/os_defines.h: New file.
2012 * config/os/tpf/ctype_base.h: Likewise.
2013 * config/os/tpf/ctype_inline.h: Likewise.
2014 * config/os/tpf/ctype_noninline.h: Likewise.
2016 2004-01-27 Paolo Carlini <pcarlini@suse.de>
2019 * include/bits/sstream.tcc: Guard use of extern template.
2021 2004-01-27 Paolo Carlini <pcarlini@suse.de>
2023 * include/bits/basic_string.tcc
2024 (basic_string(const basic_string&, size_type, size_type),
2025 basic_string(const basic_string&, size_type, size_type,
2026 const _Alloc&)): Avoid unnecessarily constructing iterators.
2028 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2030 * config/locale/generic/c_locale.cc: Fix throw messages
2031 to use the __N marker.
2032 * config/locale/gnu/c_locale.cc: Likewise.
2033 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
2035 * docs/html/17_intro/C++STYLE: Likewise.
2036 * include/bits/basic_ios.tcc: Likewise.
2037 * include/bits/fstream.tcc: Likewise.
2038 * include/bits/vector.tcc: Likewise.
2039 * include/ext/ropeimpl.h: Likewise.
2040 * include/std/std_bitset.h: Likewise.
2041 * src/ios.cc: Likewise.
2042 * src/locale.cc: Likewise.
2043 * src/localename.cc: Likewise.
2045 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2047 * include/bits/basic_string.h (_M_replace_aux): Use the
2048 __N marker in throw message.
2049 * include/bits/basic_string.tcc (assign(const _CharT*,
2050 size_type), insert(size_type, const _CharT*, size_type),
2051 replace(size_type, size_type, const _CharT*, size_type),
2052 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
2055 * include/bits/basic_string.h, include/bits/basic_string.tcc:
2056 Fold overlong lines, minor formatting changes.
2058 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2060 * include/bits/basic_string.h (replace(iterator, iterator,
2061 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
2062 (replace(iterator, iterator, const _CharT*)): Ditto.
2063 (replace(iterator, iterator, const _CharT*, size_type)):
2064 Add missing _GLIBCXX_DEBUG_PEDASSERT.
2066 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2068 * include/bits/basic_string.tcc (replace(size_type,
2069 size_type, const _CharT*, size_type)): Implement optimized
2070 in-place algorithm for non-overlapping ranges.
2071 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
2072 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
2074 * include/bits/basic_string.tcc (insert(size_type,
2075 const _CharT*, size_type)): Tweak slightly.
2077 2004-01-26 Andreas Schwab <schwab@suse.de>
2079 * config/locale/gnu/monetary_members.cc: Restore locale before
2080 rethrowing exception.
2082 2004-01-25 Paolo Carlini <pcarlini@suse.de>
2084 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2086 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
2089 * include/bits/basic_string.tcc: Very minor tweaks.
2091 2004-01-25 Paolo Carlini <pcarlini@suse.de>
2093 * testsuite/performance/string_append.cc: Increase number
2096 2004-01-25 Paolo Carlini <pcarlini@suse.de>
2098 * include/bits/basic_string.h (erase(size_type, size_type),
2099 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
2100 instead, thus avoiding redundant check for length_error.
2102 * include/bits/basic_string.h: Tweak some comments.
2104 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2106 * include/bits/basic_string.tcc (operator+(const _CharT*,
2107 const basic_string&)): No need to go through the append
2108 taking two iterators.
2110 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2112 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
2113 Revert last change to use std::min: machine language is worse.
2114 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
2115 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
2116 (find_last_not_of(_CharT, size_type)): Ditto.
2118 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
2119 size_type)): Discard the value returned by _M_check.
2120 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
2121 (append(const basic_string&, size_type, size_type)): Ditto.
2122 (copy(_CharT*, size_type, size_type)): Ditto.
2123 (compare(size_type, size_type, const basic_string&)): Ditto.
2124 (compare(size_type, size_type, const basic_string&,
2125 size_type, size_type)): Ditto.
2126 (compare(size_type, size_type, const _CharT*)): Ditto.
2127 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
2129 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2131 * include/bits/basic_string.h (insert(size_type,
2132 const basic_string&, size_type, size_type)): Define inline here.
2133 * include/bits/basic_string.tcc (insert(size_type,
2134 const basic_string&, size_type, size_type)): Move inline.
2136 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2138 * include/bits/basic_string.h (assign(const basic_string&,
2139 size_type, size_type)): Define inline here.
2140 (replace(size_type, size_type, const basic_string&,
2141 size_type, size_type)): Ditto.
2142 (_M_replace_dispatch(iterator, iterator, _InputIterator,
2143 _InputIterator, __false_type)): Only declare.
2144 (_M_replace(iterator, iterator, _InputIterator,
2145 _InputIterator)): Remove.
2146 * include/bits/basic_string.tcc (assign(const basic_string&,
2147 size_type, size_type)): Move inline.
2148 (replace(size_type, size_type, const basic_string&,
2149 size_type, size_type)): Ditto.
2150 (_M_replace_dispatch(iterator, iterator, _InputIterator,
2151 _InputIterator, __false_type)): Define, now does also what
2152 _M_replace did before.
2153 * src/string-inst.cc (_M_replace): Don't instantiate.
2155 * include/bits/basic_string.tcc (find(const _CharT*,
2156 size_type, size_type)): Tidy.
2157 (rfind(_CharT, size_type)): Ditto.
2158 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
2159 (find_first_not_of(_CharT, size_type)): Ditto.
2160 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
2161 (find_last_not_of(_CharT, size_type)): Ditto.
2163 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2166 * include/debug/bitset (operator|=): Fix typo.
2167 * testsuite/23_containers/bitset/operations/13838.cc: New.
2169 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2171 * include/bits/basic_string.tcc (insert(size_type,
2172 const _CharT*, size_type __n)): Fix length_error check.
2173 (replace(size_type, size_type, const _CharT*, size_type):
2174 Ditto; call _M_replace_safe.
2175 (_M_replace_aux(size_type, size_type, size_type, _CharT):
2176 Fix length_error check.
2177 (_M_replace(iterator, iterator, _InputIterator,
2178 _InputIterator)): Ditto, tweak.
2179 (_M_replace_safe(size_type, size_type, const _CharT*,
2180 size_type)): Remove length_error check.
2182 * include/bits/basic_string.tcc (append(const basic_string&),
2183 append(const basic_string&, size_type, size_type)): Tweak
2186 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
2187 size_type)): If __n == 0 don't call traits::copy.
2189 2004-01-23 Stefan Olsson <stefan@snon.net>
2191 * include/ext/mt_allocator.h: Reduce lock contention.
2193 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2196 * include/bits/fstream.tcc (underflow): Remove unused
2198 * include/bits/streambuf_iterator.h (equal): Ditto.
2199 * include/bits/locale_facets.h (_M_convert_from_char):
2202 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2205 * config/linker-map.gnu (nan): Delete.
2206 * libmath/mathconf.h (NAN, nan): Delete.
2207 * linkage.m4 (nan): Don't check for it.
2208 * libmath/nan.c: Delete file.
2210 * config.h.in, configure: Regenerate.
2212 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2214 * include/bits/basic_string.h (push_back(_CharT)):
2215 Call _M_replace_aux.
2216 (insert(size_type, const basic_string&)): Trivial tweak.
2217 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
2218 (insert(iterator, _CharT)): Ditto.
2219 (erase(size_type, size_type)): Ditto.
2220 (erase(iterator)): Ditto.
2221 (erase(iterator, iterator)): Ditto.
2222 (replace(size_type, size_type, size_type, _CharT)): Ditto.
2224 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
2227 * testsuite/performance/allocator_map_thread.cc: New test.
2229 2004-01-22 Paolo Carlini <pcarlini@suse.de>
2231 * include/bits/locale_facets.tcc
2232 (money_put::do_put(..., long double)): Use the basic_string
2233 constructor for char arrays, not that for C-strings, to pass
2234 __digits to do_put(..., const string_type&): __ws isn't
2237 2004-01-22 Paolo Carlini <pcarlini@suse.de>
2239 * include/bits/basic_string.h (_M_replace_safe): Change
2240 signatures to take size_types and const _CharT*.
2241 (_M_replace_aux): Likewise, takes size_types instead of
2243 (append(size_type, _CharT)): Update call.
2244 (assign(size_type, _CharT)): Ditto.
2245 (replace(iterator, iterator, size_type, _CharT)): Ditto.
2246 (_M_replace_dispatch(iterator, iterator, _Integer,
2247 _Integer, __true_type)): Ditto.
2248 * include/bits/basic_string.tcc (assign(const _CharT*,
2250 (insert(size_type, const _CharT*, size_type)): Ditto.
2251 (replace(size_type, size_type, const _CharT*,
2253 (_M_replace(iterator, iterator, _InputIterator,
2254 _InputIterator)): Ditto.
2255 (append(const basic_string&)): Ditto.
2256 (append(const basic_string&, size_type, size_type): Ditto.
2257 (append(const _CharT*, size_type): Ditto.
2258 (_M_replace_safe, _M_replace_safe): Change definitions
2259 accordingly, simplify.
2260 * string-inst.cc (_M_replace_safe): Don't instantiate.
2262 2004-01-21 Paolo Carlini <pcarlini@suse.de>
2264 * include/bits/basic_string.tcc (append(const basic_string&)):
2265 Revert previous change.
2266 (append(const basic_string&, size_type, size_type)): Revert
2267 previous change, use _M_check and _M_limit.
2269 2004-01-21 Paolo Carlini <pcarlini@suse.de>
2271 * include/bits/basic_string.h (_M_check): Change to return
2272 a checked __pos and take an additional const char* argument.
2273 (_M_fold): Rename to _M_limit, change to return a size_type,
2274 corresponding to the __off limited to the actual length.
2275 (insert(size_type, size_type, _CharT)): Update call, call
2277 (insert(iterator, _CharT)): Call replace(iterator, iterator,
2278 size_type, _CharT) instead.
2279 (erase(size_type, size_type)): Update calls.
2280 (replace(size_type, size_type, size_type, _CharT)): Ditto.
2281 (substr(size_type, size_type)): Use _M_check.
2282 * include/bits/basic_string.tcc (basic_string(const basic_string&,
2283 size_type, size_type)): Update calls.
2284 (basic_string(const basic_string&, size_type, size_type,
2285 const _Alloc&)): Ditto.
2286 (assign(const basic_string&, size_type, size_type)): Use the
2287 new _M_check and _M_limit.
2288 (insert(size_type, const basic_string&, size_type, size_type):
2290 (insert(size_type, const _CharT*, size_type)): Ditto.
2291 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
2292 (replace(size_type, size_type, const basic_string&,
2293 size_type, size_type)): Ditto.
2294 (append(const basic_string&)): Ditto.
2295 (append(const basic_string&, size_type, size_type)): Ditto.
2296 (copy(_CharT*, size_type, size_type)): Ditto.
2297 (compare(size_type, size_type, const basic_string&)): Ditto.
2298 (compare(size_type, size_type, const basic_string&,size_type,
2300 (compare(size_type, size_type, const _CharT*)): Ditto.
2301 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
2303 2004-01-19 Stefan Olsson <stefan@snon.net>
2305 * include/ext/mt_allocator.h: If a thread, when it dies, still has
2306 memory on it's freelist this memory is not returned to global
2307 list. Simplification of deallocate so that memory is always
2308 returned to the calling thread id's freelist instead of to
2309 global. Fix typos. Add volatile where appropriate.
2311 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
2313 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
2314 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
2315 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
2317 2004-01-19 Paolo Carlini <pcarlini@suse.de>
2319 * src/debug.cc: Make sure all the names are prefixed with
2320 double (or single) underscore.
2322 2004-01-19 Paolo Carlini <pcarlini@suse.de>
2324 * src/debug.cc: Trivial formatting change.
2326 2004-01-19 Paolo Carlini <pcarlini@suse.de>
2328 * include/bits/basic_string.tcc (_S_construct(size_type,
2329 _CharT, const _Alloc&)): Remove redundant try/catch.
2330 (_M_mutate(size_type, size_type, size_type)): Ditto.
2331 (_M_clone(const _Alloc&, size_type)): Ditto.
2333 2004-01-18 Paolo Carlini <pcarlini@suse.de>
2335 * include/bits/basic_string.h (c_str()): Simplify, due to
2336 21.3.4 the internal representation is always kept null-terminated.
2337 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
2338 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
2339 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
2342 2004-01-18 Paolo Carlini <pcarlini@suse.de>
2344 * include/bits/basic_string.h (append(size_type, _CharT)):
2345 Moved inline, just call _M_replace_aux, no source iterators at
2346 risk of being clobbered.
2347 (assign(size_type, _CharT)): Call directly _M_replace_aux.
2348 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
2349 input_iterator_tag)): Remove fifth unused argument.
2350 (_M_replace_dispatch(iterator, iterator, _InputIterator,
2351 _InputIterator, __false_type)): Update call.
2352 * include/bits/basic_string.tcc (replace(size_type, size_type,
2353 const _CharT*, size_type)): Update call.
2354 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
2355 throw string literal.
2356 (_M_replace_safe(iterator, iterator, _ForwardIterator,
2357 _ForwardIterator)): Likewise.
2358 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
2359 input_iterator_tag)): Remove fifth unused argument.
2360 (append(size_type __n, _CharT __c)): Move inline.
2361 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
2362 const C*, const C*, input_iterator_tag)): Remove fifth unused
2365 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
2367 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
2368 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
2370 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
2372 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
2375 2004-01-15 Stefan Olsson <stefan@snon.net>
2377 * include/ext/mt_allocator.h: Reuse thread id's as soon as
2378 possible by changing the behaviour of thread_freelist to do
2379 push_front when threads die instead of push_back.
2381 2004-01-14 Paolo Carlini <pcarlini@suse.de>
2383 * include/bits/locale_facets.h (struct __numpunct_cache):
2384 Add member _M_grouping_size, caching the length of _M_grouping.
2385 (__numpunct_cache<>::_M_cache): Assign the latter.
2386 (__verify_grouping): Move declaration...
2387 * include/bits/locale_facets.tcc (__verify_grouping):
2388 ... here, change signature to take a const char* and a size_t
2389 for the grouping; not a template anymore.
2390 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
2391 Likewise change signature and tweak consistently.
2392 (num_get::_M_extract_float, num_get::_M_extract_int,
2393 num_put::_M_insert_int, num_put::_M_insert_float,
2394 money_get::do_get(string_type&), money_get::do_put(string_type)):
2396 * config/locale/generic/numeric_members.cc
2397 (numpunct<>::_M_initialize_numpunct): Assign the new member.
2398 * config/locale/gnu/numeric_members.cc
2399 (numpunct<>::_M_initialize_numpunct): Likewise.
2400 * src/locale-inst.cc (__add_grouping): Tweak signature.
2401 (__verify_grouping): Don't instantiate, not a template anymore.
2403 * include/bits/locale_facets.h: Rename _M_truename_len ->
2404 _M_truename_size, _M_falsename_len -> _M_falsename_size.
2405 * include/bits/locale_facets.tcc: Likewise.
2406 * config/locale/generic/numeric_members.cc: Likewise.
2407 * config/locale/gnu/numeric_members.cc: Likewise.
2409 2004-01-14 Stefan Olsson <stefan@snon.net>
2411 * include/ext/mt_allocator.h: Fixups.
2412 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
2413 * testsuite/performance/allocator_thread.cc: Same.
2415 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
2417 * testsuite/performance/ifstream_extract_float.cc: Add higher
2419 * testsuite/performance/ofstream_insert_float.cc: Same.
2421 2004-01-13 Paolo Carlini <pcarlini@suse.de>
2423 * src/locale-misc-inst.cc (__convert_from_v(long),
2424 __convert_from_v(unsigned long), __convert_from_v(long long),
2425 __convert_from_v(unsigned long long)): Remove, unused.
2427 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
2429 * testsuite/performance/ifstream_extract_float.cc: New.
2430 * testsuite/performance/ofstream_insert_float.cc: Float generation
2433 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
2434 * 20_util/auto_ptr/1.cc: ...this.
2435 * 20_util/auto_ptr/2.cc: Same.
2436 * 20_util/auto_ptr/3.cc: Same.
2437 * 20_util/auto_ptr/3946.cc: Same.
2438 * 20_util/auto_ptr/4.cc: Same.
2439 * 20_util/auto_ptr/5.cc: Same.
2440 * 20_util/auto_ptr/6.cc: Same.
2441 * 20_util/auto_ptr/7.cc: Same.
2442 * 20_util/auto_ptr/assign_neg.cc
2443 * 20_util/pairs.cc: Break into...
2444 * 20_util/pair/1.cc: ...this.
2445 * 20_util/pair/2.cc: Same.
2446 * 20_util/pair/3.cc: Same.
2447 * 20_util/pair/4.cc: Same.
2449 2004-01-13 Paolo Carlini <pcarlini@suse.de>
2451 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
2452 Set correctly just basefield, the only group that matters.
2454 2004-01-13 Paolo Carlini <pcarlini@suse.de>
2456 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
2457 (_Rope_rep_base): Inherit directly from the rope allocator;
2458 use rebinding instead of _Alloc_traits; pick up data member
2459 from _Rope_rep_alloc_base.
2460 (_Rope_alloc_base): Eliminate.
2461 (_Rope_base): Inherit directly from the rope allocator; use
2462 rebinding instead of _Alloc_traits; pick up data member from
2464 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
2465 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
2467 2004-01-13 Paolo Carlini <pcarlini@suse.de>
2470 * include/bits/basic_string.tcc (compare(size_type, size_type,
2471 const _CharT*, size_type)): Implement correctly the resolution
2472 of DR 5: basically, s is a char array, -not- a C string.
2473 * include/bits/basic_string.h: Tweak some comments.
2474 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
2475 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
2477 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
2479 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
2482 2004-01-12 Paolo Carlini <pcarlini@suse.de>
2484 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
2486 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
2489 2004-01-12 Paolo Carlini <pcarlini@suse.de>
2491 * include/bits/locale_facets.h (struct __numpunct_cache):
2492 Add members _M_truename_len and _M_falsename_len, caching
2493 the lengths of _M_truename and _M_falsename.
2494 (__numpunct_cache<>::_M_cache): Assign the latter.
2495 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
2496 num_put::do_put(bool)): Use the new members, thus avoiding
2497 computing string lengths again and again.
2498 * config/locale/generic/numeric_members.cc
2499 (numpunct<>::_M_initialize_numpunct): Assign the new members.
2500 * config/locale/gnu/numeric_members.cc
2501 (numpunct<>::_M_initialize_numpunct): Likewise.
2503 2004-01-12 Mark Mitchell <mark@codesourcery.com>
2505 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
2506 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
2508 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
2509 and remove Cygwin XFAIL.
2510 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
2511 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
2512 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
2513 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
2515 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2516 * testsuite/27_io/objects/char/7.cc: Likewise.
2517 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
2518 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
2519 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
2521 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
2523 * include/std/std_complex.h (std::complex<>::real): Return a
2524 reference. Add non-const overload.
2525 (std::complex<>::real): Likewise.
2526 (std::real): Likewise.
2527 (std::imag): Likewise.
2528 (std::operator+): Tidy.
2529 (std::operator-): Likewise.
2530 (std::operator*): Likewise.
2531 (std::operator/): Likewise.
2532 (std::operator>>): Likewise.
2534 2004-01-11 Paolo Carlini <pcarlini@suse.de>
2537 * include/bits/fstream.tcc (imbue): Exploit the external
2538 buffer to imbue 'on the fly' a new locale and convert its
2539 remainder with the new codecvt facet.
2540 (underflow): Tweak slightly to deal with this special case.
2541 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
2542 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
2543 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
2544 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
2545 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
2547 2004-01-10 Paolo Carlini <pcarlini@suse.de>
2549 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
2552 2004-01-10 Paolo Carlini <pcarlini@suse.de>
2555 * include/bits/locale_classes.h (class locale): Fix category
2557 * testsuite/22_locale/locale/13630.cc: Add.
2559 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2561 * include/bits/locale_facets.h: Make a name really dependent. This
2562 will be needed when Core Issue 224 is implemented.
2564 2004-01-09 Paolo Carlini <pcarlini@suse.de>
2566 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
2567 * testsuite/performance/allocator_thread.cc: Likewise.
2569 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
2571 * crossconfig.m4: Add LFS, io bits to linux cross config.
2572 * acconfig.h: Remove obsolete bits, reorder.
2573 * config.h.in: Regenerate.
2577 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
2579 * include/bits/stl_list.h:
2580 * include/bits/list.tc:
2582 Performance enhancements for destructor, push_front(),
2583 push_back(), pop_front(), pop_back(), sort()
2584 Eliminated static_casts where possible.
2585 Moved code out of header files into new src/list.cc
2586 implementation file for library where possible.
2587 Remove inheritance from iterator class and create separate
2588 classes for non-constant and constant iterators.
2589 * include/bits/stl_tree.h (_Rb_tree class):
2591 Only erase contents in destructor.
2592 Eliminate unnecessary initialization in assignment operator.
2593 Optimize for the nominal case by not checking whether
2594 container is empty in clear().
2595 Re-order test in _M_insert() to improve performance.
2596 Move initialization of new node's left & right pointers to
2597 src/tree.cc to where new node's colour is initialized
2598 and to reduce the amount of inline code.
2599 Use _M_leftmost() and _M_end() to improve readability where
2601 Create separate classes for non-constant and constant
2602 iterators to clarify code, avoid extra template parameters and
2603 casting away constness.
2605 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
2607 * src/Makefile.am (sources): Add list.cc, tree.cc.
2608 * src/stl_tree.cc: Move to...
2609 * src/tree.cc: ...here.
2611 * config/linker-map.gnu: Tweaks.
2612 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
2613 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
2615 * bits/stl_vector.h: Column wrap comments.
2617 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
2619 (re-open) PR libstdc++/12658
2620 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
2621 (locale::global): Likewise.
2623 2004-01-07 Paolo Carlini <pcarlini@suse.de>
2625 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
2626 Remove redundant #include.
2627 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
2628 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
2629 re-enable normal testing.
2630 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
2632 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
2633 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
2635 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
2637 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
2639 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
2641 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
2643 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
2645 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
2647 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
2648 More properly, #include <locale>.
2649 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
2650 Remove redundant #include.
2651 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
2652 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
2653 redundant DejaGnu directive.
2654 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
2657 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
2658 Stefan Olsson <stefan@snon.net>
2660 * scripts/check_performance: Use -pthread.
2661 * testsuite/performance/allocator.cc: Tweaks, add list.
2662 * testsuite/performance/allocator_thread.cc: New.
2664 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
2666 * include/bits/locale_facets.h: Document public classes and
2668 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
2671 2004-01-06 Paolo Carlini <pcarlini@suse.de>
2673 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
2674 Remove redundant #includes.
2675 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
2677 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
2679 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
2680 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
2681 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
2682 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
2683 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
2684 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
2685 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
2686 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
2687 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
2688 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
2689 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
2690 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
2691 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
2692 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
2693 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
2695 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
2697 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
2699 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
2701 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
2703 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
2704 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
2705 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
2707 2004-01-04 Paolo Carlini <pcarlini@suse.de>
2709 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
2710 Remove redundant #includes.
2711 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
2713 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
2715 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
2717 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
2719 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
2721 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
2723 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
2725 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
2727 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
2729 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
2731 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
2733 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
2736 2004-01-04 Mark Mitchell <mark@codesourcery.com>
2739 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
2741 * testsuite/27_io/basic_fstream/4.cc: Likewise.
2742 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
2743 * testsuite/27_io/basic_ios/4.cc: Likewise.
2744 * testsuite/27_io/basic_iostream/4.cc: Likewise.
2745 * testsuite/27_io/basic_istream/4.cc: Likewise.
2746 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
2747 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
2748 * testsuite/27_io/basic_ostream/4.cc: Likewise.
2749 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
2750 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
2751 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
2753 2004-01-04 Paolo Carlini <pcarlini@suse.de>
2755 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
2756 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
2757 always use double underscored names.
2758 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
2760 * include/bits/locale_facets.h (struct __numpunct_cache):
2761 Dimension _M_atoms_out and _M_atoms_in one position smaller.
2762 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out