1 2004-04-12 Paolo Carlini <pcarlini@suse.de>
3 * config/locale/gnu/numeric_members.cc
4 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
5 in __uselocale, since btowc is called for chars belonging to
6 the basic character set.
8 2004-04-09 Paolo Carlini <pcarlini@suse.de>
10 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
11 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
12 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
13 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
14 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
15 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
16 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
17 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
18 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
19 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
20 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
21 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
22 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
23 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
24 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
25 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
26 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
28 2004-04-07 Paolo Carlini <pcarlini@suse.de>
30 * config/locale/generic/time_members.cc
31 (__timepunct<char>::_M_initialize_timepunct,
32 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
33 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
34 * config/locale/gnu/time_members.cc
35 (__timepunct<char>::_M_initialize_timepunct,
36 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
37 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
38 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
40 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
41 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
42 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
43 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
44 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
45 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
46 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
47 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
48 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
49 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
50 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
51 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
52 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
53 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
54 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
55 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
56 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
57 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
58 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
59 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
60 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
61 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
62 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
63 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
64 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
65 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
66 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
67 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
68 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
69 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
70 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
71 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
72 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
73 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
74 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
75 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
77 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
79 2004-04-07 Paolo Carlini <pcarlini@suse.de>
81 * config/locale/gnu/monetary_members.cc
82 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
83 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
84 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
85 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
86 * config/locale/gnu/numeric_members.cc
87 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
88 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
90 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
92 Fixups for EDG front end.
93 * include/ext/rope: Instead of non-existent function
94 _Data_allocate, use allocator's allocate. Use this.
95 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
96 enumerations from _Rope_RopeRep here.
97 * include/ext/ropeimpl.h: Same.
98 * src/ext-inst.cc (_S_min_len): Fix up definition.
100 * config/locale/gnu/ctype_members.cc: Qualify base class members
102 * config/locale/generic/ctype_members.cc: Same.
103 * config/locale/gnu/messages_members.h: Same.
104 * config/locale/generic/messages_members.h: Same.
105 * src/ctype.cc: Same.
106 * include/bits/codecvt.h: Same.
108 * include/bits/boost_concept_check.h: Declare.
109 (__error_type_must_be_an_unsigned_integer_type): Remove this.
110 (__error_type_must_be_an_integer_type): Remove this.
111 (__error_type_must_be_a_signed_integer_type): Remove this.
113 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
115 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
116 specification to definition.
117 (__cxa_allocate_exception): Same.
118 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
119 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
120 (__cxa_get_globals): Same.
122 * libsupc++/del_op.cc: Add comment about freestanding.
124 2004-04-05 Paolo Carlini <pcarlini@suse.de>
126 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
127 The critical section is actually very small, only two assignments.
129 2004-04-04 Paolo Carlini <pcarlini@suse.de>
130 Petur Runolfsson <peturr02@ru.is>
132 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
133 adapted from libstdc++/11378.
135 2004-04-03 Paolo Carlini <pcarlini@suse.de>
137 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
138 some duplicated code.
139 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
140 in the single threaded case.
141 * testsuite/performance/20_util/allocator/list_sort_search.cc:
142 Reorder and renumber the tests consistently with the other testfiles.
143 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
144 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
145 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
147 2004-04-02 Paolo Carlini <pcarlini@suse.de>
149 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
150 Rearrange arithmetic to avoid computing two divisions at
153 2004-04-01 Paolo Carlini <pcarlini@suse.de>
155 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
156 Streamline the second half, wrapping it in a single
157 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
158 conditionals inside loops.
160 2004-04-01 Paolo Carlini <pcarlini@suse.de>
163 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
164 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
165 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
166 to _GLIBCXX_RES_LIMITS.
167 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
169 * testsuite/testsuite_hooks.h: Declare set_file_limit.
170 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
171 and setrlimit(RLIMIT_FSIZE).
172 * testsuite/27_io/fpos/14775.cc: New.
173 * config.h.in: Regenerate.
174 * configure: Likewise.
176 2004-03-31 Paolo Carlini <pcarlini@suse.de>
178 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
179 In v3 uses of sscanf, the special floating-point numbers INF,
180 INFINITY, etc., cannot occur in input, therefore, if the latter
181 is too large, ERANGE is always stored in errno, no need of finitel.
183 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
186 * include/bits/stl_tree.h: Adjust initialization list order.
188 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
190 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
192 2004-03-29 Paolo Carlini <pcarlini@suse.de>
194 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
195 on allocator behavior, the memory pointed by data2 may well be not
198 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
201 * include/bits/basic_string.tcc
202 (basic_string::basic_string(const basic_string&)): Pass to
203 _Rep::_M_grab the actual allocator of the string being constructed
204 not the default constructed one.
206 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
209 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
210 (__enc_traits::_M_destroy): New.
211 (__enc_traits::~__enc_traits): Use it.
212 (__enc_traits::operator=): Use _M_destroy, _M_init.
213 (__enc_traits::__enc_traits): Same.
215 2004-03-27 Petur Runolfsson <peturr02@ru.is>
217 * testsuite/ext/enc_filebuf/char/13598.cc: New.
219 2004-03-27 Paolo Carlini <pcarlini@suse.de>
221 * include/ext/mt_allocator.h: Uglify consistently names of
222 variables, members and classes; tidy.
224 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
226 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
227 Deallocation loop rewrote.
229 2004-03-26 Paolo Carlini <pcarlini@suse.de>
231 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
232 __mt_alloc<>::deallocate): Protect two instances of
233 block->thread_id with __GTHREADS.
235 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
237 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
238 default argument in constructors.
239 (_Rb_tree::_M_empty_initialize): Remove.
241 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
243 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
244 * testsuite/23_containers/set/operators/1_neg.cc: Same.
246 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
248 * include/bits/cpp_type_traits.h: Changed __is_pod
249 completely. Now, it does not use any of the previous type_traits
250 to detect the pod types, and it also detects function pointers as
253 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
254 which encapsulates the internal implementation of an rb_tree. Made
255 the allocator a base class of this class instead of the rb_tree,
256 which was not conforming. This _Rb_tree_impl class is also
257 specialized on whether the _Compare parameter is a POD type or
258 not. If so, then it maintains the comparison function as a data
259 member, otherwise it makes the _Compare parameter a base class of
260 itself. Also, _M_key_compare is now a function instead of a data
261 member, so that the above trick can work properly. Delegated the
262 initialization of the other data members to this newly created
263 class. Also, now other member functions of rb_tree must refer to
264 _M_key_compare as _M_impl._M_key_compare(). The other data members
265 (*) can be referenced to as _M_impl.(*), where
266 (*) includes _M_header, and _M_node_count.
268 2004-03-25 Paolo Carlini <pcarlini@suse.de>
270 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
271 Add _M_min_bin, the size in bytes of the smallest bin.
272 (__mt_alloc<>::tune()): Tweak accordingly.
273 (__mt_alloc<>::tune(size_t, ...)): Likewise.
274 (__mt_alloc<>::block_record): Change to a union: members next
275 and thread_id are never used at the same time.
276 (__mt_alloc<>::allocate): Update consistently.
277 (__mt_alloc<>::deallocate): Likewise.
278 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
279 _S_bin_size for the configurable _M_min_size.
281 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
283 * include/bits/stl_list.h: Created a _List_impl class and made it
284 derive from the allocator, instead of the list deriving from the
285 allocator class, which was not conformant. Changed all references
286 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
287 as above (changed all references to the concerned variables).
289 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
291 * include/bits/stl_deque.h: Created a _Deque_impl class and made
292 it derive from the allocator, instead of the deque deriving from
293 the allocator class, which was not conformant. Changed all
294 references to the _M_start, _M_finish, _M_map, and _M_map_size to
296 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
297 qualification in 2 places where it was missing.
298 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
300 * include/bits/deque.tcc: Same as above (changed all references to
301 the concerned variables).
303 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
305 * include/bits/stl_vector.h: Created a _Vector_impl class and made
306 it derive from the allocator, instead of the _Vector_base class,
307 deriving from the allocator which was not conformant. Changed all
308 references to the _M_start, _M_finish, and _M_end_of_storage to
310 * include/bits/vector.tcc: Same as above (changed all references
311 to the concerned variables).
313 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
315 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
316 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
317 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
319 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
321 * include/ext/malloc_allocator.h: Fixed the construct function to
322 call global placement new instead of assignment. Added a check
323 after the return from malloc to check whether returned pointer is
324 NULL, and if so, throw std::bad_alloc().
325 * include/ext/debug_allocator.h: Added a check in the deallocate
326 function to check whether the user has passed a NULL pointer or
329 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
331 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
333 2004-03-24 Andreas Schwab <schwab@suse.de>
335 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
336 warning from IA64 assembler.
338 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
340 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
341 function call __builtin_ctz instead of the while loop.
342 (allocate) -> If condition has __builtin_expect.
343 (deallocate) -> Ditto.
344 Renamed a few left-over variables and typedefs according to the
345 C++STYLE mentioned in the documentation.
346 Protected calls to __gthread* by __gthread_active_p(), whose value
347 is cached in the local variable __threads_active.
349 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
351 * testsuite/performance/20_util/allocator/producer_consumer.cc:
352 Use linear algorithm for producer.
354 2004-03-24 Paolo Carlini <pcarlini@suse.de>
356 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
357 __mt_alloc<>::deallocate): Avoid redundant conditionals.
359 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
361 * include/bits/locale_facets.h: Tweaks for 80 column.
362 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
363 (__moneypunct_cache::_M_cache): Same.
364 (num_get): Don't inherit from __num_base.
366 (money_get): Don't inherit from money_base.
368 (__timepunct::_M_am_pm_format): New.
369 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
370 (time_get::_M_extract_name): Same.
371 (time_get::_M_extract_via_format): Same.
372 * include/bits/locale_facets.tcc: Tweaks for 80 column.
373 Use _M_getloc instead of getloc.
374 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
375 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
376 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
378 2004-03-22 Paolo Carlini <pcarlini@suse.de>
380 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
381 * configure: Regenerate.
382 * config/allocator/pool_allocator_base.h: New.
383 * include/ext/pool_allocator.h: Convert to a standard-conforming
385 * src/allocator.cc: Tweak instantiations.
386 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
387 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
388 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
389 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
390 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
391 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
393 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
395 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
396 inline" and attribute-unused. Qualify parameter __mem with
398 (__exchange_and_add): Ditto. Add back memory clobber to asm.
400 2004-03-20 Paolo Carlini <pcarlini@suse.de>
402 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
404 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
406 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
408 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
410 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
412 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
414 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
416 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
418 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
420 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
423 2004-03-20 Paolo Carlini <pcarlini@suse.de>
425 * include/std/std_valarray.h: Document DR389 [Ready].
426 * docs/html/ext/howto.html: Add an entry for DR389.
428 2004-03-19 Michael Eager <eager@mvista.com>
430 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
433 2004-03-19 Paolo Carlini <pcarlini@suse.de>
435 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
437 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
438 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
439 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
440 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
441 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
442 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
443 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
444 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
445 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
447 2004-03-19 Paolo Carlini <pcarlini@suse.de>
448 Petur Runolfsson <peturr02@ru.is>
451 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
452 no way to find out the conversion used by the underlying FILE*.
453 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
454 * testsuite/27_io/objects/char/9.cc: Tweak.
456 2004-03-19 Paolo Carlini <pcarlini@suse.de>
459 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
460 memory allocation/deallocation calls.
461 * testsuite/ext/14648.cc: New.
463 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
466 * include/backward/bvector.h (bit_vector): Allocator is in std
469 2004-03-19 Phil Edwards <phil@codesourcery.com>
471 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
472 not libiconv. SUBST this variable as well.
473 * testsuite/Makefile.am (site.exp): New target, based on that
474 created by automake. Also set libiconv.
476 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
477 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
478 testsuite/Makefile.in: Regenerate.
480 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
482 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
483 new_allocator for all hosts.
484 * configure: Regenerate.
486 2004-03-16 Paolo Carlini <pcarlini@suse.de>
488 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
489 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
491 2004-03-15 Paolo Carlini <pcarlini@suse.de>
493 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
494 Adjust the logic underlying the parsing of symbol to deal
495 correctly with an optional sign component (i.e., when either
496 negative_sign or positive_sign is empty)
497 * testsuite/22_locale/money_get/get/char/19.cc: New.
498 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
500 2004-03-15 Paolo Carlini <pcarlini@suse.de>
502 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
503 Do not accept an incomplete currency symbol.
504 * testsuite/22_locale/money_get/get/char/18.cc: New.
505 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
507 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
509 * config/allocator: New.
510 * config/allocator/bitmap_allocator_base.h: New.
511 * config/allocator/malloc_allocator_base.h: New.
512 * config/allocator/mt_allocator_base.h: New.
513 * config/allocator/new_allocator_base.h: New.
514 * include/bits/allocator.h: Include c++allocator.h.
515 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
516 * aclocal.m4: Regenerate.
517 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
518 * configure: Regenerate.
519 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
520 * include/Makefile.in: Regenerate.
521 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
523 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
525 * include/bits/allocator.h: Revert.
527 2004-03-12 Paolo Carlini <pcarlini@suse.de>
529 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
530 * include/bits/gslice_array.h: Add comment about DR 253.
531 * include/bits/indirect_array.h: Likewise.
532 * include/bits/mask_array.h: Likewise.
533 * include/bits/slice_array.h: Likewise.
535 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
537 * testsuite/20_util/allocator/14176.cc: New.
538 * include/ext/mt_allocator.h: Formatting fixes.
540 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
542 * include/Makefile.am (ext_headers): Add
543 ${ext_srcdir}/bitmap_allocator.h .
544 * include/Makefile.in: Regenerate.
545 * docs/html/ext/ballocator_doc.txt: New file.
546 * include/ext/bitmap_allocator.h: New file.
547 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
549 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
550 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
551 test for the bitmap_allocator<>.
552 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
553 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
554 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
556 2004-03-11 Paolo Carlini <pcarlini@suse.de>
558 * include/std/std_complex.h (pow(const complex&, const _Tp&),
559 pow(const _Tp&, const complex&), pow(const complex&,
560 const complex&)): Fully qualify with std:: a few calls.
561 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
563 2004-03-11 Steven Bosscher <stevenb@suse.de>
566 * include/c_std/cmath.tcc (__cmath_power): Define inline.
568 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
570 * configure.ac: Bump AC_PREREQ to 2.59.
572 2004-03-10 Paolo Carlini <pcarlini@suse.de>
574 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
576 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
577 Paolo Carlini <pcarlini@suse.de>
580 * include/std/std_complex.h (pow(const complex&, const _Tp&),
581 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
582 * testsuite/26_numerics/complex/13450.cc: New.
584 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
585 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
587 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
590 * include/bits/gslice_array.h (gslice_array()): Make public.
591 (operator=(gslice_array)): Make public. Implement.
592 * include/bits/indirect_array.h (indirect_array()): Make public.
593 * include/bits/mask_array.h (mask_array()): Make public.
594 (operator=(mask_array)): Make public. Implement.
595 * include/bits/valarray_array.tcc (__valarray_copy):
596 Comment. Add versions for gslice_array and mask_array.
597 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
599 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
601 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
603 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
604 * testsuite/23_containers/set/modifiers/swap.cc: Same.
605 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
606 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
607 * testsuite/23_containers/map/modifiers/swap.cc: Same.
608 * testsuite/23_containers/list/modifiers/swap.cc: Same.
610 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
612 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
615 * testsuite/23_containers/deque/modifiers/swap.cc: New.
616 * testsuite/23_containers/list/modifiers/swap.cc: New.
617 * testsuite/23_containers/map/modifiers/swap.cc: New.
618 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
619 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
620 * testsuite/23_containers/set/modifiers/swap.cc: New.
621 * testsuite/23_containers/vector/modifiers/swap.cc: New.
623 2004-03-08 Petur Runolfsson <peturr02@ru.is>
626 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
628 2004-03-08 Paolo Carlini <pcarlini@suse.de>
630 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
631 * include/bits/stl_multiset.h: Add comment about DR 103.
632 * include/bits/stl_set.h: Likewise.
634 2004-03-08 Paolo Carlini <pcarlini@suse.de>
636 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
637 The value _space_ indicates that at least one space is required
639 * testsuite/22_locale/money_get/get/char/17.cc: New.
640 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
642 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
643 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
645 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
646 Remove redundant conditional on __str.size().
648 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
650 * include/bits/allocator.h: Switch defaults to mt_alloc.
652 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
654 * include/ext/mt_allocator.h (_S_initialize): If
655 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
657 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
660 * src/locale_init.cc (locale::locale): Lock critical regions with
662 (locale::global): Same.
663 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
664 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
665 (__glibcxx_mutex_lock): Same.
667 * config/cpu/generic/atomicity.h: Remove
668 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
669 * src/misc-inst.cc: Move all locking bits out of this file.
671 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
672 * src/misc-inst.cc: Same.
673 * config/cpu/hppa/atomicity.h: Same.
675 * config/linker-map.gnu: Remove types in the signature of atomic
676 exports, as they may vary.
678 2004-03-06 Paolo Carlini <pcarlini@suse.de>
680 * include/bits/locale_facets.tcc: Tweak the comment preceding
681 has_facet: doesn't throw.
683 2004-03-06 Paolo Carlini <pcarlini@suse.de>
685 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
686 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
687 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
688 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
689 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
690 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
691 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
692 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
694 2004-03-06 Paolo Carlini <pcarlini@suse.de>
696 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
697 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
698 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
699 * testsuite/testsuite_character.h (struct __gnu_test::character):
701 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
704 2004-03-05 Paolo Carlini <pcarlini@suse.de>
706 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
708 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
710 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
712 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
714 * testsuite/23_containers/deque/invalidation/4.cc: Same.
715 * testsuite/23_containers/list/invalidation/1.cc: Same.
716 * testsuite/23_containers/list/invalidation/2.cc: Same.
717 * testsuite/23_containers/list/invalidation/3.cc: Same.
718 * testsuite/23_containers/list/invalidation/4.cc: Same.
719 * testsuite/23_containers/map/invalidation/2.cc: Same.
720 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
721 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
722 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
723 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
724 * testsuite/23_containers/set/invalidation/1.cc: Same.
725 * testsuite/23_containers/set/invalidation/2.cc: Same.
726 * testsuite/23_containers/vector/invalidation/1.cc: Same.
727 * testsuite/23_containers/vector/invalidation/2.cc: Same.
728 * testsuite/23_containers/vector/invalidation/3.cc: Same.
729 * testsuite/23_containers/vector/invalidation/4.cc: Same.
731 2004-03-04 Paolo Carlini <pcarlini@suse.de>
733 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
735 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
737 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
739 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
740 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
741 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
742 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
743 * testsuite/23_containers/vector/resize/1.cc: Likewise.
744 * testsuite/26_numerics/complex_value.cc: Likewise.
745 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
746 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
747 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
748 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
749 * testsuite/27_io/objects/char/5.cc: Likewise.
750 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
751 * testsuite/backward/11460.cc: Likewise.
752 * testsuite/thread/pthread7-rope.cc: Likewise.
754 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
755 missing test variable.
756 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
757 missing test variable.
759 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
761 * testsuite/20_util/allocator/1.cc: Provide explicit
762 instantiations for non-weak systems.
763 * testsuite/20_util/binders.cc: Same.
764 * testsuite/20_util/allocator/8230.cc: Same.
765 * testsuite/20_util/allocator/10378.cc: Same.
766 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
767 * testsuite/22_locale/ctype/is/char/2.cc: Same.
768 * testsuite/thread/pthread7-rope.cc: Same.
769 * testsuite/thread/pthread6.cc: Same.
770 * testsuite/thread/pthread5.cc: Same.
771 * testsuite/thread/pthread4.cc: Same.
772 * testsuite/thread/pthread1.cc: Same.
773 * testsuite/ext/rope.cc: Same.
774 * testsuite/ext/hash_set.cc: Same.
775 * testsuite/ext/hash_map.cc: Same.
776 * testsuite/ext/concept_checks.cc: Same.
777 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
778 * testsuite/25_algorithms/unique/2.cc: Same.
779 * testsuite/25_algorithms/unique/1.cc: Same.
780 * testsuite/25_algorithms/rotate.cc: Same.
781 * testsuite/25_algorithms/min_max.cc: Same.
782 * testsuite/25_algorithms/equal.cc: Same.
783 * testsuite/24_iterators/rel_ops.cc: Same.
784 * testsuite/24_iterators/iterator.cc: Same.
785 * testsuite/24_iterators/insert_iterator.cc: Same.
786 * testsuite/24_iterators/front_insert_iterator.cc: Same.
787 * testsuite/24_iterators/back_insert_iterator.cc: Same.
788 * testsuite/23_containers/vector/resize/1.cc: Same.
789 * testsuite/23_containers/vector/modifiers/2.cc: Same.
790 * testsuite/23_containers/vector/modifiers/1.cc: Same.
791 * testsuite/23_containers/vector/invalidation/4.cc: Same.
792 * testsuite/23_containers/vector/invalidation/3.cc: Same.
793 * testsuite/23_containers/vector/invalidation/2.cc: Same.
794 * testsuite/23_containers/vector/invalidation/1.cc: Same.
795 * testsuite/23_containers/vector/element_access/1.cc: Same.
796 * testsuite/23_containers/vector/cons/6513.cc: Same.
797 * testsuite/23_containers/vector/cons/3.cc: Same.
798 * testsuite/23_containers/vector/cons/2.cc: Same.
799 * testsuite/23_containers/vector/cons/1.cc: Same.
800 * testsuite/23_containers/vector/capacity/8230.cc: Same.
801 * testsuite/23_containers/vector/capacity/1.cc: Same.
802 * testsuite/23_containers/vector/bool/6886.cc: Same.
803 * testsuite/23_containers/stack/members/7158.cc: Same.
804 * testsuite/23_containers/set/invalidation/2.cc: Same.
805 * testsuite/23_containers/set/invalidation/1.cc: Same.
806 * testsuite/23_containers/queue/members/7157.cc: Same.
807 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
808 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
809 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
810 * testsuite/23_containers/multiset/insert/1.cc: Same.
811 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
812 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
813 * testsuite/23_containers/map/operators/1.cc: Same.
814 * testsuite/23_containers/map/invalidation/2.cc: Same.
815 * testsuite/23_containers/map/invalidation/1.cc: Same.
816 * testsuite/23_containers/map/insert/1.cc: Same.
817 * testsuite/23_containers/list/operators/4.cc: Same.
818 * testsuite/23_containers/list/operators/3.cc: Same.
819 * testsuite/23_containers/list/operators/2.cc: Same.
820 * testsuite/23_containers/list/operators/1.cc: Same.
821 * testsuite/23_containers/list/modifiers/3.cc: Same.
822 * testsuite/23_containers/list/modifiers/2.cc: Same.
823 * testsuite/23_containers/list/modifiers/1.cc: Same.
824 * testsuite/23_containers/list/invalidation/4.cc: Same.
825 * testsuite/23_containers/list/invalidation/3.cc: Same.
826 * testsuite/23_containers/list/invalidation/2.cc: Same.
827 * testsuite/23_containers/list/invalidation/1.cc: Same.
828 * testsuite/23_containers/list/cons/9.cc: Same.
829 * testsuite/23_containers/list/cons/8.cc: Same.
830 * testsuite/23_containers/list/cons/7.cc: Same.
831 * testsuite/23_containers/list/cons/6.cc: Same.
832 * testsuite/23_containers/list/cons/5.cc: Same.
833 * testsuite/23_containers/list/cons/4.cc: Same.
834 * testsuite/23_containers/list/cons/3.cc: Same.
835 * testsuite/23_containers/list/cons/2.cc: Same.
836 * testsuite/23_containers/list/cons/1.cc: Same.
837 * testsuite/23_containers/list/capacity/1.cc: Same.
838 * testsuite/23_containers/deque/operators/1.cc: Same.
839 * testsuite/23_containers/deque/invalidation/4.cc: Same.
840 * testsuite/23_containers/deque/invalidation/3.cc: Same.
841 * testsuite/23_containers/deque/invalidation/2.cc: Same.
842 * testsuite/23_containers/deque/invalidation/1.cc: Same.
843 * testsuite/23_containers/deque/cons/2.cc: Same.
844 * testsuite/23_containers/deque/cons/1.cc: Same.
846 * src/allocator.cc: Add char, wchar_t instantiations
847 to match extern template declarations in memory.h.
849 2004-03-03 Paolo Carlini <pcarlini@suse.de>
851 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
852 Fix warning regression.
854 2004-03-03 Paolo Carlini <pcarlini@suse.de>
856 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
857 Deal properly with empty __digits and negative frac_digits,
860 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
862 * docs/html/documentation.html: Regenerate.
864 2004-03-02 Paolo Carlini <pcarlini@suse.de>
867 * include/bits/postypes.h (class streamoff): Remove, now
868 streamoff is just typedef a 64 bit signed integer type.
869 (class fpos): Tweak consistently.
870 * testsuite/27_io/fpos/14320-1.cc: New.
871 * testsuite/27_io/fpos/14320-2.cc: New.
872 * testsuite/27_io/fpos/14320-3.cc: New.
873 * testsuite/27_io/fpos/14320-4.cc: New.
874 * testsuite/27_io/fpos/14320-5.cc: New.
875 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
877 2004-03-02 Paolo Carlini <pcarlini@suse.de>
879 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
880 Reorganize a bit the main parsing loop, thus early detecting
881 an empty value component.
882 * testsuite/22_locale/money_get/get/char/16.cc: New.
883 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
885 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
887 Support automake 1.8.2
888 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
889 * po/Makefile.am (EXTRA_DIST): New.
890 * po/Makefile.in: Regenerate.
892 * include/Makefile.in: Same.
893 * libmath/Makefile.in: Same.
894 * libsupc++/Makefile.in: Same.
895 * src/Makefile.in: Same.
896 * testsuite/Makefile.in: Same.
898 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
899 __GXX_WEAK__ instead of SUPPORTS_WEAK.
900 (${host_builddir}/gthr-default.h): Same.
901 (${host_builddir}/gthr.h): Same.
902 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
903 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
905 * aclocal.m4: Regenerate.
906 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
907 * config.h.in: Regenerate.
910 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
912 Support autoconf 2.59
913 * acinclude.m4: Quote correctly.
914 * aclocal.m4: Regenerate.
917 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
919 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
921 * docs/html/18_support/howto.html: Add bit about writing to
922 stderr, mostly by Zack.
924 2004-03-01 Paolo Carlini <pcarlini@suse.de>
926 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
927 money_get<>::do_get(string_type&)): ... and two more.
929 2004-03-01 Paolo Carlini <pcarlini@suse.de>
931 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
932 Fix thinkos in the switch from string_type& to string& as last
935 2004-03-01 Paolo Carlini <pcarlini@suse.de>
937 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
938 Also when parsing exponent sign, first look for thousands_sep
939 and decimal_point; tweak a bit.
940 * testsuite/22_locale/num_get/get/char/15.cc: New.
941 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
943 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
944 num_get<>::_M_extract_int): Reorder some conditionals.
946 2004-03-01 Paolo Carlini <pcarlini@suse.de>
948 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
949 Consistently with numpunct, enforce the requirements in
950 22.2.6.3, p3 for the thousands separators; tweak a bit.
951 * testsuite/22_locale/money_get/get/char/15.cc: New.
952 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
954 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
956 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
957 testsuite_files from correct multilib blddir when running
960 2004-02-29 Phil Edwards <phil@codesourcery.com>
962 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
963 the summary file to the logfile.
964 * testsuite/Makefile.in: Regenerate.
966 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
968 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
970 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
971 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
973 2004-02-28 Paolo Carlini <pcarlini@suse.de>
975 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
976 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
977 no 'decimal-point' in the middle: in this case too we must fix
978 up __found_grouping; slightly tweak.
979 * testsuite/22_locale/num_get/get/char/14.cc: New.
980 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
982 2004-02-27 Eric Christopher <echristo@redhat.com>
983 Phil Edwards <phil@codesourcery.com>
985 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
986 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
987 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
988 testsuite/22_locale/collate/hash/wchar_t/2.cc,
989 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
990 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
991 testsuite/22_locale/collate/transform/wchar_t/2.cc,
992 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
993 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
994 Use dg-require-iconv.
995 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
997 2004-02-27 Phil Edwards <phil@codesourcery.com>
998 Eric Christopher <echristo@redhat.com>
1000 * testsuite/config/default.exp: Update with comments.
1001 (${tool}_target_compile): New wrapper routine.
1002 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
1003 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
1005 (load_gcc_lib, v3track): New routines.
1006 (v3-init): Rename to libstdc++_init.
1007 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
1008 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
1010 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
1012 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
1014 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
1016 * config/os/irix/irix5.2/atomicity.h: Merge..
1017 * config/os/irix/irix6.5/atomicity.h: Merge..
1018 * config/os/irix/atomicity.h: ...into this.
1019 * config/os/irix/atomic_word.h: New.
1020 * configure.host: Set atomic_word_dir for irix.
1022 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
1023 * i386/atomicity.h: Same.
1024 * m68k/atomicity.h: Same.
1025 * sparc/atomicity.h: Same.
1027 2004-02-27 David Edelsohn <edelsohn@gnu.org>
1029 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
1030 static, and inline keywords.
1032 2004-02-27 Paolo Carlini <pcarlini@suse.de>
1034 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1035 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
1036 call reserve on the __tmp_gruping string.
1037 (num_get<>::_M_extract_float): Don't append unnecessarily a
1038 char() to the returned string.
1039 * include/bits/locale_facets.tcc: Trivial reformattings.
1041 2004-02-27 Paolo Carlini <pcarlini@suse.de>
1043 * include/bits/locale_facets.h (money_get<>::_M_extract):
1044 Change signature: now takes a plain string&.
1045 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1046 Update consistently the definition; use the moneypunct cache
1047 to parse the value; use swap to change __units.
1048 (money_get<>::do_get(long double&)): Update call of _M_extract,
1049 avoid ctype::narrow, not correct wrt the standard.
1050 (money_get<>::do_get(string_type&)): Likewise, update call
1051 of _M_extract, use ctype::widen.
1052 * src/locale-inst.cc: Tweak instantiations of _M_extract.
1054 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
1056 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
1057 * testsuite/demangle/abi_examples/02.cc: Likewise.
1058 * testsuite/demangle/regression/cw-11.cc: Likewise.
1059 * testsuite/demangle/regression/cw-16.cc: Change two expected
1060 results to match libiberty demangler output.
1062 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
1065 * libsupc++/Makefile.am: Use libiberty demangler.
1066 (c_sources): Add cp-demangle.c.
1067 * libsupc++/Makefile.in: Regenerate.
1068 * src/Makefile.am (sources): Remove demangle.cc.
1069 * src/Makefile.in: Regenerate.
1070 * include/Makefile.am (bits_headers): Move demangle.h.
1071 (ext_headers): ...here.
1072 * include/Makefile.in: Regenerate.
1073 * include/bits/demangle.h: Move...
1074 * include/ext/demangle.h: ...here.
1075 * src/demangle.cc: Remove.
1077 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
1079 * include/bits/demangle.h: Add type template parameter to all
1080 templates with just an Allocator template parameter.
1082 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
1084 * include/bits/atomicity.h: New, forward declarations for __atomic_add
1085 and __exchange_and_add.
1086 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
1087 * config/cpu/cris/atomic_word.h: Same.
1088 * config/cpu/sparc/atomic_word.h: Same.
1089 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
1090 Qualifiy with __gnu_cxx.
1091 (_Callback_list::_M_add_reference): Same.
1092 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
1093 (locale::facet::_M_remove_reference): Same.
1094 (locale::_Impl::_M_add_reference): Add.
1095 (locale::_Impl::_M_remove_reference): Same.
1096 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
1097 (basic_string::_Rep::_M_dispose): Same.
1098 * src/ios.cc (ios_base::xalloc): Same.
1099 * src/ios_init.cc (ios_base::Init::Init): Same.
1100 (ios_base::Init::~Init): Same.
1101 * src/locale.cc (locale::id::_M_id): Same.
1102 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
1103 static, and inline keywords.
1104 * config/cpu/alpha/atomicity.h: Same.
1105 * config/cpu/cris/atomicity.h: Same.
1106 * config/cpu/generic/atomicity.h: Same.
1107 * config/cpu/hppa/atomicity.h: Same.
1108 * config/cpu/i386/atomicity.h: Same.
1109 * config/cpu/ia64/atomicity.h: Same.
1110 * config/cpu/m68k/atomicity.h: Same.
1111 * config/cpu/mips/atomicity.h: Same.
1112 * config/cpu/powerpc/atomicity.h: Same.
1113 * config/cpu/s390/atomicity.h: Same.
1114 * config/cpu/sparc/atomicity.h: Same.
1116 * src/Makefile.am (host_sources): Add atomicity.cc.
1117 (atomicity.cc): New rule.
1118 * src/Makefile.in: Regenerate.
1119 * include/Makefile.am (host_headers): Remove host atomicity.h.
1120 (host_headers): Add atomic_word.h.
1121 (bits_headers): Add bits atomicity.h.
1122 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
1123 * include/Makefile.in: Regenerate.
1124 * configure.host (atomic_word_dir): Add.
1125 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
1126 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
1127 * configure: Regenerate.
1128 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
1130 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
1131 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1133 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
1135 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
1136 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
1137 Fix markup, more <link> tags.
1139 2004-02-25 Carlo Wood <carlo@alinoe.com>
1142 namespace __gnu_cxx::demangler
1143 (session<Allocator>::qualifier_list_Allocator): Add
1144 (session<Allocator>::M_qualifier_list_alloc): Add
1145 (session<Allocator>::decode_type_with_postfix):
1146 Use M_qualifier_list_alloc instead of calling operator new/delete.
1148 2004-02-24 Paolo Carlini <pcarlini@suse.de>
1151 * include/bits/postypes.h (class streamoff): Add operator++(),
1152 operator++(int), operator--() and operator--(int).
1153 * testsuite/27_io/fpos/14252.cc: New.
1155 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
1157 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
1158 error in handling of hex constants.
1160 2004-02-24 Paolo Carlini <pcarlini@suse.de>
1162 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1163 Prefer basic_string::append to operator+= and a temporary.
1165 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
1167 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
1168 Only use fputs, not write.
1170 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
1172 * include/ext/malloc_allocator.h: Add operators ==, !=.
1173 * include/ext/new_allocator.h: Add operators ==, !=.
1174 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
1175 (__mt_alloc::_S_get_options): New.
1176 (__mt_alloc::_S_set_options): New.
1177 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
1178 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
1179 Move functions out of line, simplify, format.
1180 * src/allocator.cc: Simplify explicit instantiations.
1181 * include/bits/allocator.h: Tweak.
1183 2004-02-22 Paolo Carlini <pcarlini@suse.de>
1185 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1186 Restructure formatting of value component, first dealing with
1187 the non-decimal digits; use reserve.
1189 2004-02-22 Paolo Carlini <pcarlini@suse.de>
1191 * include/bits/locale_facets.h (class money_get): Inherit
1192 from money_base too; tweak declaration of _M_extract, now
1193 parameterized on _Intl too.
1194 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1195 Update definition to use the cache; call reserve on __res to
1196 avoid multiple reallocations; fix parsing of sign component
1197 according to 22.2.6.1.2, p3.
1198 (money_get<>::do_get(long double&),
1199 money_get<>::do_get(string_type&)): Update calls of _M_extract.
1200 * src/locale-inst.cc: Add instantiations of
1201 money_get::_M_extract<false> and money_get::_M_extract<true>.
1202 * testsuite/22_locale/money_get/get/char/14.cc: New.
1203 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
1205 2004-02-21 Mark Mitchell <mark@codesourcery.com>
1207 * libsupc++/vterminate.cc
1208 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
1210 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
1212 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
1213 not set RLIMIT_AS on HP-UX.
1215 2004-02-21 Mark Mitchell <mark@codesourcery.com>
1217 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
1218 not set RLIMIT_AS on HP-UX.
1220 2004-02-21 Paolo Carlini <pcarlini@suse.de>
1222 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
1223 _S_zero, _S_end } enum, _S_atoms.
1224 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
1225 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
1226 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
1227 (__moneypunct_cache<>::~__moneypunct_cache): Update.
1228 (__moneypunct_cache<>::_M_cache): Fill the cache.
1229 (class moneypunct): Tweak __cache_type typedef.
1230 (class money_put): Inherit from money_base too; tweak declaration
1231 of _M_insert, now parameterized on _Intl.
1232 * include/bits/locale_facets.tcc
1233 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
1234 (money_put<>::_M_insert): Update definition to use the cache;
1235 call reserve on __res to avoid multiple reallocations.
1236 (money_put<>::do_put(long double),
1237 money_put<>::do_put(const string_type&): Update calls of _M_insert.
1238 * config/locale/generic/monetary_members.cc
1239 (moneypunct<char, true>::_M_initialize_moneypunct,
1240 moneypunct<char, false>::_M_initialize_moneypunct,
1241 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
1242 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
1243 * config/locale/gnu/monetary_members.cc: Likewise.
1244 * config/locale/gnu/monetary_members.cc
1245 (moneypunct<wchar_t, true>::~moneypunct(),
1246 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
1247 * src/globals_locale.cc: Tweak fake_money_cache_c.
1248 * src/locale-inst.cc: Add instantiations for
1249 money_put::_M_insert<false> and money_put::_M_insert<true> and
1250 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
1251 * src/locale_facets.cc: Define money_base::_S_atoms.
1252 * src/locale_init.cc: Update placement new of
1253 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
1254 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
1256 * config/locale/generic/numeric_members.cc: Clean up.
1257 * config/locale/gnu/numeric_members.cc: Likewise.
1258 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
1259 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
1260 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
1261 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
1262 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1263 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1265 2004-02-20 Mark Mitchell <mark@codesourcery.com>
1267 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
1268 FIFO for writing with ios_base::in|ios_base::out.
1269 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
1270 * testsuite/27_io/objects/char/7.cc: Likewise.
1271 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
1274 2004-02-19 David Edelsohn <edelsohn@gnu.org>
1276 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
1277 from iso-8859-1 to ISO8859-1.
1278 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
1279 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
1280 * 22_locale/collate/hash/wchar_t/2.cc: Same.
1281 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
1282 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
1283 * 22_locale/collate/transform/wchar_t/2.cc: Same.
1284 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
1285 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
1287 2004-02-18 Paolo Carlini <pcarlini@suse.de>
1289 * include/bits/locale_facets.h (money_get<>::_M_extract):
1290 New, helper for do_get.
1291 (money_put<>::_M_insert): Likewise, for do_put.
1292 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
1293 money_put<>::_M_insert): Define.
1294 (money_get<>::do_get(long double&), money_get<>::do_get(
1295 string_type&), money_put::do_put(long double),
1296 money_put::do_put(const string_type&)): Use the helpers.
1298 2004-02-18 Paolo Carlini <pcarlini@suse.de>
1300 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
1301 Rewrite, avoiding recursion.
1302 (__gnu_internal::xwrite): Minor tweaks.
1304 2004-02-17 Stefan Olsson <stefan@xapa.se>
1306 * include/ext/mt_allocator.h: Removed the last
1307 pointer. Deallocated blocks are now added to the front of
1308 freelists as proposed by Felix Yen. This gives roughly 10%
1309 performance boost and saves some memory.
1310 * docs/html/ext/mt_allocator.html: Change due to that deallocated
1311 blocks now are added to the front of freelists. The reason to this
1312 approach is also explained.
1314 2004-02-17 Paolo Carlini <pcarlini@suse.de>
1316 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1317 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
1318 grouping fidelity conditional.
1320 2004-02-16 Paolo Carlini <pcarlini@suse.de>
1322 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
1323 Qualify exception with std::.
1324 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
1325 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
1326 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1327 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1328 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1330 2004-02-16 Paolo Carlini <pcarlini@suse.de>
1332 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
1333 for now that the catch block is not reached.
1334 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
1336 2004-02-16 Paolo Carlini <pcarlini@suse.de>
1338 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
1339 Fix parsing of the remaining sign characters.
1340 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
1341 the input is scanned 'til eof.
1342 * 22_locale/money_get/get/char/4.cc: Likewise.
1343 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
1344 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
1345 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
1346 not do_pos_format: the former is the only one that matters during
1348 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
1350 * 22_locale/money_get/get/char/6.cc: Minor tweak.
1351 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
1353 2004-02-15 David Asher <david.asher@cavium.com>
1356 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
1357 access __olds beyond __oldlen.
1359 2004-02-14 Paolo Carlini <pcarlini@suse.de>
1361 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
1362 sure the exception is actually thrown.
1363 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1364 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1365 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1367 2004-02-14 Paolo Carlini <pcarlini@suse.de>
1370 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
1371 In case of conversion errors, throw ios_failure; simplify.
1372 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
1373 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
1374 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
1375 previously we didn't throw in case of conversion errors, instead
1376 just returned eof().
1377 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1378 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1379 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1381 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
1382 Trivial simplification of a conditional.
1384 2004-02-12 Paolo Carlini <pcarlini@suse.de>
1386 PR libstdc++/13731 (final part: writev)
1387 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
1388 New, a wrapper around writev() handling partial writes.
1389 (__basic_file<char>::xwrite): Move to __gnu_internal and make
1391 (__basic_file<char>::xsputn): Update call.
1392 (__basic_file<char>::xsputn_2): Likewise.
1393 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
1394 Don't declare, now static.
1396 2004-02-11 Stefan Olsson <stefan@xapa.se>
1398 * docs/html/ext/mt_allocator.html: New.
1400 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
1402 * docs/html/20_util/allocator.html: New file, consolidate
1403 allocator information here. Revamp.
1404 * docs/html/documentation.html: Change links.
1405 * docs/html/20_util/howto.html: Same.
1406 * docs/html/ext/howto.html: Same.
1408 2004-02-11 Paolo Carlini <pcarlini@suse.de>
1410 PR libstdc++/13731 (first part: write)
1411 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
1413 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
1414 Define it: a wrapper around write() handling partial write.
1415 (__basic_file<char>::xsputn): Use it.
1416 (__basic_file<char>::xsputn_2): Likewise.
1418 2004-02-11 Paolo Carlini <pcarlini@suse.de>
1419 Petur Runolfsson <peturr02@ru.is>
1422 * include/std/std_istream.h (operator>>(__istream_type& (*)
1423 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
1424 operator>>(ios_base& (*)(ios_base&))): Declare inline.
1425 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
1426 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
1427 operator<<(ios_base& (*) (ios_base&))): Likewise.
1428 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
1430 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
1433 * config/linker-map.gnu: Add typeinfo and typeinfo name for
1434 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
1437 * config/linker-map.gnu: Add typeinfo and typeinfo name for
1438 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
1440 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
1442 * include/ext/pool_allocator.h: Include c++config.h.
1444 2004-02-09 Stefan Olsson <stefan@xapa.se>
1446 * include/ext/mt_allocator.h: thread_id is unused in non threaded
1447 applications and now has a ifdef to remove it completely on
1448 compilers without thread support. Include stdlib.h due to a
1449 compiler warning on getenv().
1451 2004-02-09 Paul Brook <paul@codesourcery.com>
1453 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
1455 2004-02-09 Paolo Carlini <pcarlini@suse.de>
1458 * src/locale_init.cc (locale::global(const locale&)): Use
1459 locale::name() in order to decide whether calling setlocale.
1460 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
1462 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
1463 Avoid computing &= unnecessarily.
1465 2004-02-09 James E Wilson <wilson@specifixinc.com>
1468 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
1469 __builtin_extend_pointer.
1471 2004-02-09 Paolo Carlini <pcarlini@suse.de>
1474 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
1475 Don't leave dangling pointers.
1476 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
1477 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
1478 facet is needed in the final test.
1480 2004-02-09 Bernardo Innocenti <bernie@develer.com>
1482 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
1483 * configure: Regenerate.
1485 2004-02-08 Richard Henderson <rth@redhat.com>
1488 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
1489 uncaughtExceptions during nested catch rethrow.
1490 * testsuite/18_support/14026.cc: New.
1492 2004-02-08 Paolo Carlini <pcarlini@suse.de>
1494 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
1495 When working in place remember to set the state to sharable
1496 (otherwise, _M_mutate does it).
1498 2004-02-08 Bernardo Innocenti <bernie@develer.com>
1500 * include/bits/allocator.h, include/bits/basic_ios.h,
1501 include/bits/basic_ios.tcc, include/bits/basic_string.h,
1502 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
1503 include/bits/char_traits.h, include/bits/codecvt.h,
1504 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
1505 include/bits/demangle.h, include/bits/deque.tcc,
1506 include/bits/fstream.tcc, include/bits/functexcept.h,
1507 include/bits/gslice.h, include/bits/gslice_array.h,
1508 include/bits/indirect_array.h, include/bits/ios_base.h,
1509 include/bits/istream.tcc, include/bits/list.tcc,
1510 include/bits/locale_classes.h, include/bits/locale_facets.h,
1511 include/bits/locale_facets.tcc, include/bits/localefwd.h,
1512 include/bits/mask_array.h, include/bits/ostream.tcc,
1513 include/bits/postypes.h, include/bits/slice_array.h,
1514 include/bits/sstream.tcc, include/bits/stl_algo.h,
1515 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
1516 include/bits/stl_construct.h, include/bits/stl_deque.h,
1517 include/bits/stl_function.h, include/bits/stl_heap.h,
1518 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
1519 include/bits/stl_list.h, include/bits/stl_map.h,
1520 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
1521 include/bits/stl_numeric.h, include/bits/stl_pair.h,
1522 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
1523 include/bits/stl_relops.h, include/bits/stl_set.h,
1524 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
1525 include/bits/stl_threads.h, include/bits/stl_tree.h,
1526 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
1527 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
1528 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
1529 include/bits/type_traits.h, include/bits/valarray_after.h,
1530 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
1531 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
1532 trailing whitespace.
1534 2004-02-06 Paolo Carlini <pcarlini@suse.de>
1536 * include/bits/basic_string.h: Fix comment.
1538 2004-02-06 Paolo Carlini <pcarlini@suse.de>
1540 * include/bits/stl_construct.h: Wrap overlong lines, reformat
1541 according to the coding standards.
1542 * include/bits/stl_pair.h: Likewise.
1543 * include/bits/stl_raw_storage_iter.h: Likewise.
1544 * include/bits/stl_stack.h: Likewise.
1545 * include/bits/stl_uninitialized.h: Likewise.
1546 * include/bits/stream_iterator.h: Likewise.
1547 * include/bits/streambuf_iterator.h: Likewise.
1548 * include/bits/type_traits.h: Likewise.
1550 2004-02-06 Paolo Carlini <pcarlini@suse.de>
1552 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
1555 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
1557 * scripts/check_performance: Support PCH.
1559 * scripts/check_performance (CXX): Add -DNOTHREAD.
1560 * testsuite/performance/20_util/allocator/insert.cc: Integrate
1561 threaded tests from insert_insert.cc. Tweak iterations,
1562 remove special cases.
1563 * testsuite/performance/20_util/allocator/insert_insert.cc:
1564 Make all tests single-threaded. Tweak iterations.
1565 * testsuite/performance/20_util/allocator/map_thread.cc:
1567 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1570 2004-02-05 Geoffrey Keating <geoffk@apple.com>
1574 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
1575 'gcc-lib'. Add comment about poorly-named variables.
1576 * aclocal.m4: Regenerate.
1577 * configure: Regenerate.
1579 2004-02-05 Paolo Carlini <pcarlini@suse.de>
1581 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
1582 Thousands-sep are always optional; thousands-sep are not allowed
1583 after the decimal_point.
1584 * testsuite/22_locale/money_get/get/char/12.cc: New.
1585 * testsuite/22_locale/money_get/get/char/13.cc: New.
1586 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
1587 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
1589 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
1590 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1591 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1592 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1593 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1594 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1595 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1596 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1598 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
1600 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
1602 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
1604 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
1606 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
1607 it to decide whether FIONREAD should take an off_t or int argument.
1609 2004-02-05 Paolo Carlini <pcarlini@suse.de>
1611 * include/bits/stl_function.h: Minor formatting changes.
1613 2004-02-04 Zack Weinberg <zack@codesourcery.com>
1615 Revert previous change to config/abi/*/baseline_symbols.txt.
1617 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
1618 Zack Weinberg <zack@codesourcery.com>
1620 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
1622 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
1623 (__basic_file<char>::_M_open_mode): Delete.
1624 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
1626 * testsuite/27_io/basic_filebuf/close/char/9964.cc
1627 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
1628 Correct flags to filebuf::open calls.
1630 * config/abi/alpha-freebsd5/baseline_symbols.txt
1631 * config/abi/alpha-linux-gnu/baseline_symbols.txt
1632 * config/abi/hppa-linux-gnu/baseline_symbols.txt
1633 * config/abi/i386-freebsd4/baseline_symbols.txt
1634 * config/abi/i386-freebsd5/baseline_symbols.txt
1635 * config/abi/i486-linux-gnu/baseline_symbols.txt
1636 * config/abi/ia64-linux-gnu/baseline_symbols.txt
1637 * config/abi/mips-linux-gnu/baseline_symbols.txt
1638 * config/abi/sparc-freebsd5/baseline_symbols.txt
1639 * config/abi/sparc-linux-gnu/baseline_symbols.txt
1640 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
1641 Remove entry for __basic_file<char>::_M_open_mode.
1643 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
1645 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
1647 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
1649 * testsuite/performance/20_util/producer_consumer.cc: New.
1650 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
1652 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
1654 * testsuite/performance/20_util/allocator.cc: Move to..
1655 * testsuite/performance/20_util/allocator/insert.cc: ...here.
1656 * testsuite/performance/20_util/allocator_thread.cc: Move to...
1657 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
1658 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
1659 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
1661 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
1663 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
1664 * docs/html/faq/index.txt: Regenerate.
1666 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
1668 * include/ext/debug_allocator.h: _M_extra now stands for the
1669 number of extra objects instead of the number of extra bytes.
1670 (debug_allocator::allocate): Adjust.
1671 (debug_allocator::deallocate): Adjust.
1673 * include/ext/pool_allocator.h: Fix typo.
1675 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
1676 Benjamin Kosnik <bkoz@redhat.com>
1678 * testsuite/performance/20_util/allocator.cc: Add map,
1680 * testsuite/performance/20_util/allocator_thread.cc: Same.
1682 2004-02-03 Paolo Carlini <pcarlini@suse.de>
1684 * include/bits/basic_string.h (insert(iterator)): Remove,
1685 non-standard and already scheduled for removal.
1687 2004-02-03 Paolo Carlini <pcarlini@suse.de>
1689 * include/bits/stl_iterator_base_funcs.h: Minor formatting
1690 and indentation tweaks.
1691 * include/bits/stl_iterator_base_types.h: Likewise.
1692 * include/bits/stl_list.h: Likewise.
1693 * include/bits/stl_map.h: Likewise.
1694 * include/bits/stl_tempbuf.h: Likewise.
1696 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
1698 * include/bits/gslice.h, include/bits/gslice_array.h,
1699 include/bits/indirect_array.h, include/bits/mask_array.h,
1700 include/bits/slice_array.h, include/bits/stl_numeric.h,
1701 include/std/std_valarray.h: Update copyright years.
1703 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
1705 * include/bits/gslice.h (gslice): Document.
1706 * include/bits/gslice_array.h (gslice_array): Document.
1707 * include/bits/indirect_array (indirect_array): Document.
1708 * include/bits/mask_array (mask_array): Document.
1709 * include/bits/slice_array.h (slice,slice_array): Document.
1710 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
1711 adjacent_difference): Document
1712 * include/std/std_valarray.h (valarray): Document.
1714 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
1716 * docs/html/19_diagnostics/howto.html: Move verbose terminate
1718 * docs/html/18_support/howto.html: Here.
1719 * docs/html/documentation.html: Add reference here.
1721 2004-02-02 Paolo Carlini <pcarlini@suse.de>
1723 * config/locale/gnu/c++locale_internal.h: Remove prototypes
1724 of no longer used GLIBC thread locale functions.
1726 2004-02-02 Eric Christopher <echristo@redhat.com>
1727 Zack Weinberg <zack@codesourcery.com>
1729 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
1731 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
1732 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
1733 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
1734 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
1735 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
1736 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
1737 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
1738 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
1741 2004-02-02 Paolo Carlini <pcarlini@suse.de>
1743 * include/bits/stl_function.h: Additional minor tweaks.
1744 * include/bits/stl_multiset.h: Likewise.
1746 * include/bits/stl_queue.h: Minor tweaks.
1748 2004-02-02 Paolo Carlini <pcarlini@suse.de>
1750 PR libstdc++/13976 (continued)
1751 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
1752 Make the second parameter unnamed, to void unused parameter
1754 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
1756 2004-02-02 Paolo Carlini <pcarlini@suse.de>
1759 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
1760 Make the second parameter unnamed, to void unused parameter
1762 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
1763 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
1765 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1767 * include/bits/stl_algo.h: Additional minor tweaks.
1768 * include/bits/stl_map.h: Likewise.
1769 * include/bits/stl_multimap.h: Likewise.
1770 * include/bits/stl_multiset.h: Likewise.
1771 * include/bits/stl_set.h: Likewise.
1772 * include/bits/stl_tree.h: Likewise.
1774 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1776 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
1779 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1781 * include/bits/stl_function.h: Additional minor tweaks.
1783 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1785 * include/bits/deque.tcc: Wrap overlong lines, constify
1786 a few variables, reformat according to the coding standards.
1787 * include/bits/list.tcc: Likewise.
1788 * include/bits/stl_deque.h: Likewise.
1789 * include/bits/stl_function.h: Likewise.
1790 * include/bits/stl_iterator.h: Likewise.
1791 * include/bits/stl_iterator_base_funcs.h: Likewise.
1792 * include/bits/stl_iterator_base_types.h: Likewise.
1793 * include/bits/stl_list.h: Likewise.
1794 * include/bits/stl_map.h: Likewise.
1795 * include/bits/stl_multimap.h: Likewise.
1796 * include/bits/stl_multiset.h: Likewise.
1797 * include/bits/stl_relops.h: Likewise.
1798 * include/bits/stl_set.h: Likewise.
1800 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1802 * include/bits/stl_bvector.h: Wrap overlong lines, constify
1803 a few variables, reformat according to the coding standards.
1804 * include/bits/stl_tree.h: Likewise.
1806 2004-01-31 Paolo Carlini <pcarlini@suse.de>
1808 * include/bits/stl_algo.h: Minor additional reformat, add
1810 * include/bits/stl_algobase.h: Add copyright year.
1812 2004-01-31 Paolo Carlini <pcarlini@suse.de>
1814 * include/bits/stl_algo.h: Wrap overlong lines, constify
1815 a few variables, reformat according to the coding standards.
1816 * include/bits/stl_algobase.h: Likewise.
1817 * include/bits/stl_heap.h: Likewise.
1819 2004-01-31 Paolo Carlini <pcarlini@suse.de>
1821 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
1823 * include/bits/basic_string.h: Fix two comments.
1825 2004-01-31 Per Bothner <per@bothner.com>
1827 * include/ext/mt_allocator.h
1828 (__mt_alloc::_S_thread_freelist_mutex): Guard with
1829 __GTHREAD_MUTEX_INIT.
1831 2004-01-31 Paolo Carlini <pcarlini@suse.de>
1833 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
1835 2004-01-30 Paolo Carlini <pcarlini@suse.de>
1837 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
1838 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
1839 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
1841 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
1843 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
1844 Don't use clear, but instead assign. Use insert.
1846 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
1848 * src/demangle.cc: Add instantiations.
1849 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
1850 * src/Makefile.in: Regenerate.
1852 2004-01-30 David Edelsohn <edelsohn@gnu.org>
1854 * src/allocator.cc: Protect _S_get_thread_id() and
1855 _S_thread_key_destr() with #ifdef __GTHREADS.
1857 2004-01-30 Paolo Carlini <pcarlini@suse.de>
1859 Reshuffle performance testsuite.
1860 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
1861 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
1862 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
1863 fstream_seek_write.cc, ifstream_extract_float.cc,
1864 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
1865 list_create_fill_sort.cc, map_create_fill.cc,
1866 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
1867 ofstream_insert_float.cc, ofstream_insert_int.cc,
1868 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
1869 wchar_t_out.cc: Split into...
1870 * testsuite/performance/20_util/allocator.cc: New.
1871 * testsuite/performance/20_util/allocator_map_thread.cc: New.
1872 * testsuite/performance/20_util/allocator_thread.cc: New.
1873 * testsuite/performance/21_strings/string_append: New.
1874 * testsuite/performance/22_locale/is_wchar_t.cc: New.
1875 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
1876 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
1877 * testsuite/performance/22_locale/wchar_t_in.cc: New.
1878 * testsuite/performance/22_locale/wchar_t_length.cc: New.
1879 * testsuite/performance/22_locale/wchar_t_out.cc: New.
1880 * testsuite/performance/23_containers/container_benchmark.cc: New.
1881 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
1882 * testsuite/performance/23_containers/map_create_fill.cc: New.
1883 * testsuite/performance/26_numerics/complex_norm.cc: New.
1884 * testsuite/performance/27_io/cout_insert_int.cc: New.
1885 * testsuite/performance/27_io/filebuf_copy.cc: New.
1886 * testsuite/performance/27_io/filebuf_sputc.cc: New.
1887 * testsuite/performance/27_io/fstream_seek_write.cc: New.
1888 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
1889 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
1890 * testsuite/performance/27_io/ifstream_getline.cc: New.
1891 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
1892 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
1894 2004-01-30 Paolo Carlini <pcarlini@suse.de>
1896 * include/bits/basic_string.tcc (_Rep::_S_create):
1897 Never allocate a string bigger than max_size(); always keep
1898 __capacity and __size in sync to avoid memory leaks at
1901 2004-01-30 Paolo Carlini <pcarlini@suse.de>
1903 * include/bits/basic_string.tcc (_S_construct(_InIterator,
1904 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
1905 the double loop, streamline.
1907 * include/bits/basic_string.tcc: Very minor tweaks.
1909 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
1911 * scripts/check_performance: Only compile with $THREAD_FLAG
1912 when test is marked to require it. Allow multiple
1913 compilations/executions of marked tests.
1914 * testsuite/testsuite_performance.h (report_performance):
1915 Report dynamic thread support status.
1916 (report_header): Likewise.
1917 * testsuite/performance/allocator.cc: Stabilize iteration
1918 count. Support more allocators. Mark each allocator test to
1919 run and report independently.
1920 * testsuite/performance/allocator_map_thread.cc: Likewise.
1921 * testsuite/performance/allocator_thread.cc: Likewise.
1923 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
1925 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
1926 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
1927 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
1928 std::get_temporary_buffer() instead of duplicating its code.
1929 Update to C++STYLE conventions.
1930 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
1931 new() instead of std::malloc().
1932 (return_temporary_buffer): Use ::operator delete() instead of
1935 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
1937 * include/bits/allocator.h: Temporary switch to new_allocator as
1938 the default to unjam bootstraps.
1940 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
1942 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
1943 * include/Makefile.in: Regenerate.
1944 * include/bits/allocator_traits.h: Remove.
1945 * include/bits/allocator.h: Remove allocator_traits.h include, and
1947 (allocator): Empty base class, inherit from the underlying allocator.
1948 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
1949 * src/allocator.cc: ...here. New. For the underlying allocators.
1950 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
1951 * config/linker-map.gnu: Remove __pool_alloc bits.
1952 * src/Makefile.am (sources): Add allocator.cc.
1953 * src/Makefile.in: Regenerate.
1954 * testsuite/20_util/allocator/1.cc: Split second test into...
1955 * testsuite/20_util/allocator/8230.cc: ...this.
1956 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
1957 typedef to use std::allocatore. Format.
1958 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
1960 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
1961 __throw_bad_alloc calls. Don't include <memory>.
1962 * include/ext/malloc_allocator.h: Remove <memory> include.
1963 * include/ext/new_allocator.h (new_allocator): Same.
1964 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
1965 declaration. Switch __alloc to _Alloc.
1966 * include/ext/hashtable.h: Remove __alloc.
1967 * include/backward/alloc.h: Only inject allocator, not
1968 implementation details.
1970 * include/ext/mt_allocator.h: Replace free with delete.
1972 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
1974 * src/globals_io.cc: Change to __gnu_internal namespace.
1975 * src/globals_locale.cc: Same.
1976 * src/locale_init.cc: Same.
1977 * src/ios_init.cc: Same.
1979 2004-01-28 Stefan Olsson <stefan@snon.net>
1981 * include/ext/mt_allocator.h: Replaced all malloc() calls with
1982 operator new(). Added support for the env variable
1983 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
1984 one in allocate() as well). Fix typos.
1986 2004-01-28 Paolo Carlini <pcarlini@suse.de>
1988 * include/bits/basic_string.h (_S_create(size_t,
1989 const _Alloc&): Change signature to take two size_type
1991 * include/bits/basic_string.tcc (_S_construct(_InIterator,
1992 _InIterator, const _Alloc&, input_iterator_tag)): Update
1994 (_S_construct(_InIterator, _InIterator, const _Alloc&,
1995 forward_iterator_tag)): Likewise.
1996 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
1997 (_M_mutate(size_type, size_type, size_type)): Don't
1998 implement the exponential growth policy, demand it to
1999 _S_create, update call and simplify.
2000 (_M_clone(const _Alloc&, size_type)): Likewise.
2001 (_S_create(size_type, size_type, const _Alloc&)): Implement
2002 the growth policy, simplify otherwise.
2004 * include/bits/basic_string.h (_Rep::operator[]): Tweak
2005 signature to take a size_type, consistently with the other
2008 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
2010 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
2011 delete declarations, add include and test variable.
2013 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
2015 * include/bits/codecvt.h, include/bits/locale_facets.h,
2016 include/bits/postypes.h, include/bits/stl_bvector.h,
2017 include/bits/stl_multiset.h, include/bits/stl_set.h,
2018 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
2019 include/std/std_complex.h: Document.
2021 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
2024 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
2025 iword/pword selector.
2026 (ios_base::iword, ios_base::pword): Use it.
2027 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
2028 iword or pword member on alloc failure.
2029 * testsuite/27_io/ios_base/storage/11584.cc: New test.
2031 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
2032 PJ Darcy <darcypj@us.ibm.com>
2034 * configure.host: Add support for *-tpf.
2035 * crossconfig.m4: Likewise.
2036 * configure: Regenerate.
2037 * config/os/tpf: New directory.
2038 * config/os/tpf/os_defines.h: New file.
2039 * config/os/tpf/ctype_base.h: Likewise.
2040 * config/os/tpf/ctype_inline.h: Likewise.
2041 * config/os/tpf/ctype_noninline.h: Likewise.
2043 2004-01-27 Paolo Carlini <pcarlini@suse.de>
2046 * include/bits/sstream.tcc: Guard use of extern template.
2048 2004-01-27 Paolo Carlini <pcarlini@suse.de>
2050 * include/bits/basic_string.tcc
2051 (basic_string(const basic_string&, size_type, size_type),
2052 basic_string(const basic_string&, size_type, size_type,
2053 const _Alloc&)): Avoid unnecessarily constructing iterators.
2055 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2057 * config/locale/generic/c_locale.cc: Fix throw messages
2058 to use the __N marker.
2059 * config/locale/gnu/c_locale.cc: Likewise.
2060 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
2062 * docs/html/17_intro/C++STYLE: Likewise.
2063 * include/bits/basic_ios.tcc: Likewise.
2064 * include/bits/fstream.tcc: Likewise.
2065 * include/bits/vector.tcc: Likewise.
2066 * include/ext/ropeimpl.h: Likewise.
2067 * include/std/std_bitset.h: Likewise.
2068 * src/ios.cc: Likewise.
2069 * src/locale.cc: Likewise.
2070 * src/localename.cc: Likewise.
2072 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2074 * include/bits/basic_string.h (_M_replace_aux): Use the
2075 __N marker in throw message.
2076 * include/bits/basic_string.tcc (assign(const _CharT*,
2077 size_type), insert(size_type, const _CharT*, size_type),
2078 replace(size_type, size_type, const _CharT*, size_type),
2079 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
2082 * include/bits/basic_string.h, include/bits/basic_string.tcc:
2083 Fold overlong lines, minor formatting changes.
2085 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2087 * include/bits/basic_string.h (replace(iterator, iterator,
2088 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
2089 (replace(iterator, iterator, const _CharT*)): Ditto.
2090 (replace(iterator, iterator, const _CharT*, size_type)):
2091 Add missing _GLIBCXX_DEBUG_PEDASSERT.
2093 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2095 * include/bits/basic_string.tcc (replace(size_type,
2096 size_type, const _CharT*, size_type)): Implement optimized
2097 in-place algorithm for non-overlapping ranges.
2098 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
2099 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
2101 * include/bits/basic_string.tcc (insert(size_type,
2102 const _CharT*, size_type)): Tweak slightly.
2104 2004-01-26 Andreas Schwab <schwab@suse.de>
2106 * config/locale/gnu/monetary_members.cc: Restore locale before
2107 rethrowing exception.
2109 2004-01-25 Paolo Carlini <pcarlini@suse.de>
2111 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2113 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
2116 * include/bits/basic_string.tcc: Very minor tweaks.
2118 2004-01-25 Paolo Carlini <pcarlini@suse.de>
2120 * testsuite/performance/string_append.cc: Increase number
2123 2004-01-25 Paolo Carlini <pcarlini@suse.de>
2125 * include/bits/basic_string.h (erase(size_type, size_type),
2126 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
2127 instead, thus avoiding redundant check for length_error.
2129 * include/bits/basic_string.h: Tweak some comments.
2131 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2133 * include/bits/basic_string.tcc (operator+(const _CharT*,
2134 const basic_string&)): No need to go through the append
2135 taking two iterators.
2137 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2139 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
2140 Revert last change to use std::min: machine language is worse.
2141 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
2142 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
2143 (find_last_not_of(_CharT, size_type)): Ditto.
2145 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
2146 size_type)): Discard the value returned by _M_check.
2147 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
2148 (append(const basic_string&, size_type, size_type)): Ditto.
2149 (copy(_CharT*, size_type, size_type)): Ditto.
2150 (compare(size_type, size_type, const basic_string&)): Ditto.
2151 (compare(size_type, size_type, const basic_string&,
2152 size_type, size_type)): Ditto.
2153 (compare(size_type, size_type, const _CharT*)): Ditto.
2154 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
2156 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2158 * include/bits/basic_string.h (insert(size_type,
2159 const basic_string&, size_type, size_type)): Define inline here.
2160 * include/bits/basic_string.tcc (insert(size_type,
2161 const basic_string&, size_type, size_type)): Move inline.
2163 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2165 * include/bits/basic_string.h (assign(const basic_string&,
2166 size_type, size_type)): Define inline here.
2167 (replace(size_type, size_type, const basic_string&,
2168 size_type, size_type)): Ditto.
2169 (_M_replace_dispatch(iterator, iterator, _InputIterator,
2170 _InputIterator, __false_type)): Only declare.
2171 (_M_replace(iterator, iterator, _InputIterator,
2172 _InputIterator)): Remove.
2173 * include/bits/basic_string.tcc (assign(const basic_string&,
2174 size_type, size_type)): Move inline.
2175 (replace(size_type, size_type, const basic_string&,
2176 size_type, size_type)): Ditto.
2177 (_M_replace_dispatch(iterator, iterator, _InputIterator,
2178 _InputIterator, __false_type)): Define, now does also what
2179 _M_replace did before.
2180 * src/string-inst.cc (_M_replace): Don't instantiate.
2182 * include/bits/basic_string.tcc (find(const _CharT*,
2183 size_type, size_type)): Tidy.
2184 (rfind(_CharT, size_type)): Ditto.
2185 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
2186 (find_first_not_of(_CharT, size_type)): Ditto.
2187 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
2188 (find_last_not_of(_CharT, size_type)): Ditto.
2190 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2193 * include/debug/bitset (operator|=): Fix typo.
2194 * testsuite/23_containers/bitset/operations/13838.cc: New.
2196 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2198 * include/bits/basic_string.tcc (insert(size_type,
2199 const _CharT*, size_type __n)): Fix length_error check.
2200 (replace(size_type, size_type, const _CharT*, size_type):
2201 Ditto; call _M_replace_safe.
2202 (_M_replace_aux(size_type, size_type, size_type, _CharT):
2203 Fix length_error check.
2204 (_M_replace(iterator, iterator, _InputIterator,
2205 _InputIterator)): Ditto, tweak.
2206 (_M_replace_safe(size_type, size_type, const _CharT*,
2207 size_type)): Remove length_error check.
2209 * include/bits/basic_string.tcc (append(const basic_string&),
2210 append(const basic_string&, size_type, size_type)): Tweak
2213 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
2214 size_type)): If __n == 0 don't call traits::copy.
2216 2004-01-23 Stefan Olsson <stefan@snon.net>
2218 * include/ext/mt_allocator.h: Reduce lock contention.
2220 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2223 * include/bits/fstream.tcc (underflow): Remove unused
2225 * include/bits/streambuf_iterator.h (equal): Ditto.
2226 * include/bits/locale_facets.h (_M_convert_from_char):
2229 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2232 * config/linker-map.gnu (nan): Delete.
2233 * libmath/mathconf.h (NAN, nan): Delete.
2234 * linkage.m4 (nan): Don't check for it.
2235 * libmath/nan.c: Delete file.
2237 * config.h.in, configure: Regenerate.
2239 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2241 * include/bits/basic_string.h (push_back(_CharT)):
2242 Call _M_replace_aux.
2243 (insert(size_type, const basic_string&)): Trivial tweak.
2244 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
2245 (insert(iterator, _CharT)): Ditto.
2246 (erase(size_type, size_type)): Ditto.
2247 (erase(iterator)): Ditto.
2248 (erase(iterator, iterator)): Ditto.
2249 (replace(size_type, size_type, size_type, _CharT)): Ditto.
2251 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
2254 * testsuite/performance/allocator_map_thread.cc: New test.
2256 2004-01-22 Paolo Carlini <pcarlini@suse.de>
2258 * include/bits/locale_facets.tcc
2259 (money_put::do_put(..., long double)): Use the basic_string
2260 constructor for char arrays, not that for C-strings, to pass
2261 __digits to do_put(..., const string_type&): __ws isn't
2264 2004-01-22 Paolo Carlini <pcarlini@suse.de>
2266 * include/bits/basic_string.h (_M_replace_safe): Change
2267 signatures to take size_types and const _CharT*.
2268 (_M_replace_aux): Likewise, takes size_types instead of
2270 (append(size_type, _CharT)): Update call.
2271 (assign(size_type, _CharT)): Ditto.
2272 (replace(iterator, iterator, size_type, _CharT)): Ditto.
2273 (_M_replace_dispatch(iterator, iterator, _Integer,
2274 _Integer, __true_type)): Ditto.
2275 * include/bits/basic_string.tcc (assign(const _CharT*,
2277 (insert(size_type, const _CharT*, size_type)): Ditto.
2278 (replace(size_type, size_type, const _CharT*,
2280 (_M_replace(iterator, iterator, _InputIterator,
2281 _InputIterator)): Ditto.
2282 (append(const basic_string&)): Ditto.
2283 (append(const basic_string&, size_type, size_type): Ditto.
2284 (append(const _CharT*, size_type): Ditto.
2285 (_M_replace_safe, _M_replace_safe): Change definitions
2286 accordingly, simplify.
2287 * string-inst.cc (_M_replace_safe): Don't instantiate.
2289 2004-01-21 Paolo Carlini <pcarlini@suse.de>
2291 * include/bits/basic_string.tcc (append(const basic_string&)):
2292 Revert previous change.
2293 (append(const basic_string&, size_type, size_type)): Revert
2294 previous change, use _M_check and _M_limit.
2296 2004-01-21 Paolo Carlini <pcarlini@suse.de>
2298 * include/bits/basic_string.h (_M_check): Change to return
2299 a checked __pos and take an additional const char* argument.
2300 (_M_fold): Rename to _M_limit, change to return a size_type,
2301 corresponding to the __off limited to the actual length.
2302 (insert(size_type, size_type, _CharT)): Update call, call
2304 (insert(iterator, _CharT)): Call replace(iterator, iterator,
2305 size_type, _CharT) instead.
2306 (erase(size_type, size_type)): Update calls.
2307 (replace(size_type, size_type, size_type, _CharT)): Ditto.
2308 (substr(size_type, size_type)): Use _M_check.
2309 * include/bits/basic_string.tcc (basic_string(const basic_string&,
2310 size_type, size_type)): Update calls.
2311 (basic_string(const basic_string&, size_type, size_type,
2312 const _Alloc&)): Ditto.
2313 (assign(const basic_string&, size_type, size_type)): Use the
2314 new _M_check and _M_limit.
2315 (insert(size_type, const basic_string&, size_type, size_type):
2317 (insert(size_type, const _CharT*, size_type)): Ditto.
2318 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
2319 (replace(size_type, size_type, const basic_string&,
2320 size_type, size_type)): Ditto.
2321 (append(const basic_string&)): Ditto.
2322 (append(const basic_string&, size_type, size_type)): Ditto.
2323 (copy(_CharT*, size_type, size_type)): Ditto.
2324 (compare(size_type, size_type, const basic_string&)): Ditto.
2325 (compare(size_type, size_type, const basic_string&,size_type,
2327 (compare(size_type, size_type, const _CharT*)): Ditto.
2328 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
2330 2004-01-19 Stefan Olsson <stefan@snon.net>
2332 * include/ext/mt_allocator.h: If a thread, when it dies, still has
2333 memory on it's freelist this memory is not returned to global
2334 list. Simplification of deallocate so that memory is always
2335 returned to the calling thread id's freelist instead of to
2336 global. Fix typos. Add volatile where appropriate.
2338 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
2340 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
2341 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
2342 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
2344 2004-01-19 Paolo Carlini <pcarlini@suse.de>
2346 * src/debug.cc: Make sure all the names are prefixed with
2347 double (or single) underscore.
2349 2004-01-19 Paolo Carlini <pcarlini@suse.de>
2351 * src/debug.cc: Trivial formatting change.
2353 2004-01-19 Paolo Carlini <pcarlini@suse.de>
2355 * include/bits/basic_string.tcc (_S_construct(size_type,
2356 _CharT, const _Alloc&)): Remove redundant try/catch.
2357 (_M_mutate(size_type, size_type, size_type)): Ditto.
2358 (_M_clone(const _Alloc&, size_type)): Ditto.
2360 2004-01-18 Paolo Carlini <pcarlini@suse.de>
2362 * include/bits/basic_string.h (c_str()): Simplify, due to
2363 21.3.4 the internal representation is always kept null-terminated.
2364 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
2365 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
2366 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
2369 2004-01-18 Paolo Carlini <pcarlini@suse.de>
2371 * include/bits/basic_string.h (append(size_type, _CharT)):
2372 Moved inline, just call _M_replace_aux, no source iterators at
2373 risk of being clobbered.
2374 (assign(size_type, _CharT)): Call directly _M_replace_aux.
2375 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
2376 input_iterator_tag)): Remove fifth unused argument.
2377 (_M_replace_dispatch(iterator, iterator, _InputIterator,
2378 _InputIterator, __false_type)): Update call.
2379 * include/bits/basic_string.tcc (replace(size_type, size_type,
2380 const _CharT*, size_type)): Update call.
2381 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
2382 throw string literal.
2383 (_M_replace_safe(iterator, iterator, _ForwardIterator,
2384 _ForwardIterator)): Likewise.
2385 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
2386 input_iterator_tag)): Remove fifth unused argument.
2387 (append(size_type __n, _CharT __c)): Move inline.
2388 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
2389 const C*, const C*, input_iterator_tag)): Remove fifth unused
2392 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
2394 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
2395 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
2397 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
2399 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
2402 2004-01-15 Stefan Olsson <stefan@snon.net>
2404 * include/ext/mt_allocator.h: Reuse thread id's as soon as
2405 possible by changing the behaviour of thread_freelist to do
2406 push_front when threads die instead of push_back.
2408 2004-01-14 Paolo Carlini <pcarlini@suse.de>
2410 * include/bits/locale_facets.h (struct __numpunct_cache):
2411 Add member _M_grouping_size, caching the length of _M_grouping.
2412 (__numpunct_cache<>::_M_cache): Assign the latter.
2413 (__verify_grouping): Move declaration...
2414 * include/bits/locale_facets.tcc (__verify_grouping):
2415 ... here, change signature to take a const char* and a size_t
2416 for the grouping; not a template anymore.
2417 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
2418 Likewise change signature and tweak consistently.
2419 (num_get::_M_extract_float, num_get::_M_extract_int,
2420 num_put::_M_insert_int, num_put::_M_insert_float,
2421 money_get::do_get(string_type&), money_get::do_put(string_type)):
2423 * config/locale/generic/numeric_members.cc
2424 (numpunct<>::_M_initialize_numpunct): Assign the new member.
2425 * config/locale/gnu/numeric_members.cc
2426 (numpunct<>::_M_initialize_numpunct): Likewise.
2427 * src/locale-inst.cc (__add_grouping): Tweak signature.
2428 (__verify_grouping): Don't instantiate, not a template anymore.
2430 * include/bits/locale_facets.h: Rename _M_truename_len ->
2431 _M_truename_size, _M_falsename_len -> _M_falsename_size.
2432 * include/bits/locale_facets.tcc: Likewise.
2433 * config/locale/generic/numeric_members.cc: Likewise.
2434 * config/locale/gnu/numeric_members.cc: Likewise.
2436 2004-01-14 Stefan Olsson <stefan@snon.net>
2438 * include/ext/mt_allocator.h: Fixups.
2439 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
2440 * testsuite/performance/allocator_thread.cc: Same.
2442 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
2444 * testsuite/performance/ifstream_extract_float.cc: Add higher
2446 * testsuite/performance/ofstream_insert_float.cc: Same.
2448 2004-01-13 Paolo Carlini <pcarlini@suse.de>
2450 * src/locale-misc-inst.cc (__convert_from_v(long),
2451 __convert_from_v(unsigned long), __convert_from_v(long long),
2452 __convert_from_v(unsigned long long)): Remove, unused.
2454 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
2456 * testsuite/performance/ifstream_extract_float.cc: New.
2457 * testsuite/performance/ofstream_insert_float.cc: Float generation
2460 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
2461 * 20_util/auto_ptr/1.cc: ...this.
2462 * 20_util/auto_ptr/2.cc: Same.
2463 * 20_util/auto_ptr/3.cc: Same.
2464 * 20_util/auto_ptr/3946.cc: Same.
2465 * 20_util/auto_ptr/4.cc: Same.
2466 * 20_util/auto_ptr/5.cc: Same.
2467 * 20_util/auto_ptr/6.cc: Same.
2468 * 20_util/auto_ptr/7.cc: Same.
2469 * 20_util/auto_ptr/assign_neg.cc
2470 * 20_util/pairs.cc: Break into...
2471 * 20_util/pair/1.cc: ...this.
2472 * 20_util/pair/2.cc: Same.
2473 * 20_util/pair/3.cc: Same.
2474 * 20_util/pair/4.cc: Same.
2476 2004-01-13 Paolo Carlini <pcarlini@suse.de>
2478 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
2479 Set correctly just basefield, the only group that matters.
2481 2004-01-13 Paolo Carlini <pcarlini@suse.de>
2483 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
2484 (_Rope_rep_base): Inherit directly from the rope allocator;
2485 use rebinding instead of _Alloc_traits; pick up data member
2486 from _Rope_rep_alloc_base.
2487 (_Rope_alloc_base): Eliminate.
2488 (_Rope_base): Inherit directly from the rope allocator; use
2489 rebinding instead of _Alloc_traits; pick up data member from
2491 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
2492 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
2494 2004-01-13 Paolo Carlini <pcarlini@suse.de>
2497 * include/bits/basic_string.tcc (compare(size_type, size_type,
2498 const _CharT*, size_type)): Implement correctly the resolution
2499 of DR 5: basically, s is a char array, -not- a C string.
2500 * include/bits/basic_string.h: Tweak some comments.
2501 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
2502 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
2504 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
2506 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
2509 2004-01-12 Paolo Carlini <pcarlini@suse.de>
2511 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
2513 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
2516 2004-01-12 Paolo Carlini <pcarlini@suse.de>
2518 * include/bits/locale_facets.h (struct __numpunct_cache):
2519 Add members _M_truename_len and _M_falsename_len, caching
2520 the lengths of _M_truename and _M_falsename.
2521 (__numpunct_cache<>::_M_cache): Assign the latter.
2522 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
2523 num_put::do_put(bool)): Use the new members, thus avoiding
2524 computing string lengths again and again.
2525 * config/locale/generic/numeric_members.cc
2526 (numpunct<>::_M_initialize_numpunct): Assign the new members.
2527 * config/locale/gnu/numeric_members.cc
2528 (numpunct<>::_M_initialize_numpunct): Likewise.
2530 2004-01-12 Mark Mitchell <mark@codesourcery.com>
2532 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
2533 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
2535 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
2536 and remove Cygwin XFAIL.
2537 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
2538 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
2539 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
2540 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
2542 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2543 * testsuite/27_io/objects/char/7.cc: Likewise.
2544 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
2545 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
2546 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
2548 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
2550 * include/std/std_complex.h (std::complex<>::real): Return a
2551 reference. Add non-const overload.
2552 (std::complex<>::real): Likewise.
2553 (std::real): Likewise.
2554 (std::imag): Likewise.
2555 (std::operator+): Tidy.
2556 (std::operator-): Likewise.
2557 (std::operator*): Likewise.
2558 (std::operator/): Likewise.
2559 (std::operator>>): Likewise.
2561 2004-01-11 Paolo Carlini <pcarlini@suse.de>
2564 * include/bits/fstream.tcc (imbue): Exploit the external
2565 buffer to imbue 'on the fly' a new locale and convert its
2566 remainder with the new codecvt facet.
2567 (underflow): Tweak slightly to deal with this special case.
2568 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
2569 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
2570 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
2571 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
2572 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
2574 2004-01-10 Paolo Carlini <pcarlini@suse.de>
2576 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
2579 2004-01-10 Paolo Carlini <pcarlini@suse.de>
2582 * include/bits/locale_classes.h (class locale): Fix category
2584 * testsuite/22_locale/locale/13630.cc: Add.
2586 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2588 * include/bits/locale_facets.h: Make a name really dependent. This
2589 will be needed when Core Issue 224 is implemented.
2591 2004-01-09 Paolo Carlini <pcarlini@suse.de>
2593 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
2594 * testsuite/performance/allocator_thread.cc: Likewise.
2596 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
2598 * crossconfig.m4: Add LFS, io bits to linux cross config.
2599 * acconfig.h: Remove obsolete bits, reorder.
2600 * config.h.in: Regenerate.
2604 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
2606 * include/bits/stl_list.h:
2607 * include/bits/list.tc:
2609 Performance enhancements for destructor, push_front(),
2610 push_back(), pop_front(), pop_back(), sort()
2611 Eliminated static_casts where possible.
2612 Moved code out of header files into new src/list.cc
2613 implementation file for library where possible.
2614 Remove inheritance from iterator class and create separate
2615 classes for non-constant and constant iterators.
2616 * include/bits/stl_tree.h (_Rb_tree class):
2618 Only erase contents in destructor.
2619 Eliminate unnecessary initialization in assignment operator.
2620 Optimize for the nominal case by not checking whether
2621 container is empty in clear().
2622 Re-order test in _M_insert() to improve performance.
2623 Move initialization of new node's left & right pointers to
2624 src/tree.cc to where new node's colour is initialized
2625 and to reduce the amount of inline code.
2626 Use _M_leftmost() and _M_end() to improve readability where
2628 Create separate classes for non-constant and constant
2629 iterators to clarify code, avoid extra template parameters and
2630 casting away constness.
2632 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
2634 * src/Makefile.am (sources): Add list.cc, tree.cc.
2635 * src/stl_tree.cc: Move to...
2636 * src/tree.cc: ...here.
2638 * config/linker-map.gnu: Tweaks.
2639 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
2640 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
2642 * bits/stl_vector.h: Column wrap comments.
2644 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
2646 (re-open) PR libstdc++/12658
2647 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
2648 (locale::global): Likewise.
2650 2004-01-07 Paolo Carlini <pcarlini@suse.de>
2652 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
2653 Remove redundant #include.
2654 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
2655 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
2656 re-enable normal testing.
2657 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
2659 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
2660 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
2662 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
2664 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
2666 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
2668 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
2670 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
2672 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
2674 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
2675 More properly, #include <locale>.
2676 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
2677 Remove redundant #include.
2678 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
2679 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
2680 redundant DejaGnu directive.
2681 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
2684 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
2685 Stefan Olsson <stefan@snon.net>
2687 * scripts/check_performance: Use -pthread.
2688 * testsuite/performance/allocator.cc: Tweaks, add list.
2689 * testsuite/performance/allocator_thread.cc: New.
2691 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
2693 * include/bits/locale_facets.h: Document public classes and
2695 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
2698 2004-01-06 Paolo Carlini <pcarlini@suse.de>
2700 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
2701 Remove redundant #includes.
2702 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
2704 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
2706 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
2707 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
2708 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
2709 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
2710 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
2711 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
2712 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
2713 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
2714 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
2715 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
2716 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
2717 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
2718 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
2719 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
2720 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
2722 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
2724 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
2726 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
2728 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
2730 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
2731 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
2732 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
2734 2004-01-04 Paolo Carlini <pcarlini@suse.de>
2736 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
2737 Remove redundant #includes.
2738 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
2740 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
2742 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
2744 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
2746 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
2748 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
2750 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
2752 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
2754 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
2756 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
2758 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
2760 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
2763 2004-01-04 Mark Mitchell <mark@codesourcery.com>
2766 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
2768 * testsuite/27_io/basic_fstream/4.cc: Likewise.
2769 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
2770 * testsuite/27_io/basic_ios/4.cc: Likewise.
2771 * testsuite/27_io/basic_iostream/4.cc: Likewise.
2772 * testsuite/27_io/basic_istream/4.cc: Likewise.
2773 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
2774 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
2775 * testsuite/27_io/basic_ostream/4.cc: Likewise.
2776 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
2777 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
2778 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
2780 2004-01-04 Paolo Carlini <pcarlini@suse.de>
2782 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
2783 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
2784 always use double underscored names.
2785 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
2787 * include/bits/locale_facets.h (struct __numpunct_cache):
2788 Dimension _M_atoms_out and _M_atoms_in one position smaller.
2789 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out