1 2004-03-19 Paolo Carlini <pcarlini@suse.de>
4 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
5 memory allocation/deallocation calls.
6 * testsuite/ext/14648.cc: New.
8 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
11 * include/backward/bvector.h (bit_vector): Allocator is in std
14 2004-03-19 Phil Edwards <phil@codesourcery.com>
16 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
17 not libiconv. SUBST this variable as well.
18 * testsuite/Makefile.am (site.exp): New target, based on that
19 created by automake. Also set libiconv.
21 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
22 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
23 testsuite/Makefile.in: Regenerate.
25 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
27 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
28 new_allocator for all hosts.
29 * configure: Regenerate.
31 2004-03-16 Paolo Carlini <pcarlini@suse.de>
33 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
34 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
36 2004-03-15 Paolo Carlini <pcarlini@suse.de>
38 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
39 Adjust the logic underlying the parsing of symbol to deal
40 correctly with an optional sign component (i.e., when either
41 negative_sign or positive_sign is empty)
42 * testsuite/22_locale/money_get/get/char/19.cc: New.
43 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
45 2004-03-15 Paolo Carlini <pcarlini@suse.de>
47 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
48 Do not accept an incomplete currency symbol.
49 * testsuite/22_locale/money_get/get/char/18.cc: New.
50 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
52 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
54 * config/allocator: New.
55 * config/allocator/bitmap_allocator_base.h: New.
56 * config/allocator/malloc_allocator_base.h: New.
57 * config/allocator/mt_allocator_base.h: New.
58 * config/allocator/new_allocator_base.h: New.
59 * include/bits/allocator.h: Include c++allocator.h.
60 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
61 * aclocal.m4: Regenerate.
62 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
63 * configure: Regenerate.
64 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
65 * include/Makefile.in: Regenerate.
66 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
68 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
70 * include/bits/allocator.h: Revert.
72 2004-03-12 Paolo Carlini <pcarlini@suse.de>
74 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
75 * include/bits/gslice_array.h: Add comment about DR 253.
76 * include/bits/indirect_array.h: Likewise.
77 * include/bits/mask_array.h: Likewise.
78 * include/bits/slice_array.h: Likewise.
80 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
82 * testsuite/20_util/allocator/14176.cc: New.
83 * include/ext/mt_allocator.h: Formatting fixes.
85 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
87 * include/Makefile.am (ext_headers): Add
88 ${ext_srcdir}/bitmap_allocator.h .
89 * include/Makefile.in: Regenerate.
90 * docs/html/ext/ballocator_doc.txt: New file.
91 * include/ext/bitmap_allocator.h: New file.
92 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
94 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
95 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
96 test for the bitmap_allocator<>.
97 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
98 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
99 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
101 2004-03-11 Paolo Carlini <pcarlini@suse.de>
103 * include/std/std_complex.h (pow(const complex&, const _Tp&),
104 pow(const _Tp&, const complex&), pow(const complex&,
105 const complex&)): Fully qualify with std:: a few calls.
106 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
108 2004-03-11 Steven Bosscher <stevenb@suse.de>
111 * include/c_std/cmath.tcc (__cmath_power): Define inline.
113 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
115 * configure.ac: Bump AC_PREREQ to 2.59.
117 2004-03-10 Paolo Carlini <pcarlini@suse.de>
119 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
121 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
122 Paolo Carlini <pcarlini@suse.de>
125 * include/std/std_complex.h (pow(const complex&, const _Tp&),
126 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
127 * testsuite/26_numerics/complex/13450.cc: New.
129 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
130 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
132 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
135 * include/bits/gslice_array.h (gslice_array()): Make public.
136 (operator=(gslice_array)): Make public. Implement.
137 * include/bits/indirect_array.h (indirect_array()): Make public.
138 * include/bits/mask_array.h (mask_array()): Make public.
139 (operator=(mask_array)): Make public. Implement.
140 * include/bits/valarray_array.tcc (__valarray_copy):
141 Comment. Add versions for gslice_array and mask_array.
142 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
144 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
146 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
148 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
149 * testsuite/23_containers/set/modifiers/swap.cc: Same.
150 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
151 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
152 * testsuite/23_containers/map/modifiers/swap.cc: Same.
153 * testsuite/23_containers/list/modifiers/swap.cc: Same.
155 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
157 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
160 * testsuite/23_containers/deque/modifiers/swap.cc: New.
161 * testsuite/23_containers/list/modifiers/swap.cc: New.
162 * testsuite/23_containers/map/modifiers/swap.cc: New.
163 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
164 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
165 * testsuite/23_containers/set/modifiers/swap.cc: New.
166 * testsuite/23_containers/vector/modifiers/swap.cc: New.
168 2004-03-08 Petur Runolfsson <peturr02@ru.is>
171 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
173 2004-03-08 Paolo Carlini <pcarlini@suse.de>
175 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
176 * include/bits/stl_multiset.h: Add comment about DR 103.
177 * include/bits/stl_set.h: Likewise.
179 2004-03-08 Paolo Carlini <pcarlini@suse.de>
181 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
182 The value _space_ indicates that at least one space is required
184 * testsuite/22_locale/money_get/get/char/17.cc: New.
185 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
187 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
188 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
190 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
191 Remove redundant conditional on __str.size().
193 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
195 * include/bits/allocator.h: Switch defaults to mt_alloc.
197 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
199 * include/ext/mt_allocator.h (_S_initialize): If
200 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
202 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
205 * src/locale_init.cc (locale::locale): Lock critical regions with
207 (locale::global): Same.
208 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
209 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
210 (__glibcxx_mutex_lock): Same.
212 * config/cpu/generic/atomicity.h: Remove
213 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
214 * src/misc-inst.cc: Move all locking bits out of this file.
216 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
217 * src/misc-inst.cc: Same.
218 * config/cpu/hppa/atomicity.h: Same.
220 * config/linker-map.gnu: Remove types in the signature of atomic
221 exports, as they may vary.
223 2004-03-06 Paolo Carlini <pcarlini@suse.de>
225 * include/bits/locale_facets.tcc: Tweak the comment preceding
226 has_facet: doesn't throw.
228 2004-03-06 Paolo Carlini <pcarlini@suse.de>
230 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
231 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
232 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
233 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
234 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
235 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
236 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
237 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
239 2004-03-06 Paolo Carlini <pcarlini@suse.de>
241 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
242 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
243 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
244 * testsuite/testsuite_character.h (struct __gnu_test::character):
246 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
249 2004-03-05 Paolo Carlini <pcarlini@suse.de>
251 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
253 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
255 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
257 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
259 * testsuite/23_containers/deque/invalidation/4.cc: Same.
260 * testsuite/23_containers/list/invalidation/1.cc: Same.
261 * testsuite/23_containers/list/invalidation/2.cc: Same.
262 * testsuite/23_containers/list/invalidation/3.cc: Same.
263 * testsuite/23_containers/list/invalidation/4.cc: Same.
264 * testsuite/23_containers/map/invalidation/2.cc: Same.
265 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
266 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
267 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
268 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
269 * testsuite/23_containers/set/invalidation/1.cc: Same.
270 * testsuite/23_containers/set/invalidation/2.cc: Same.
271 * testsuite/23_containers/vector/invalidation/1.cc: Same.
272 * testsuite/23_containers/vector/invalidation/2.cc: Same.
273 * testsuite/23_containers/vector/invalidation/3.cc: Same.
274 * testsuite/23_containers/vector/invalidation/4.cc: Same.
276 2004-03-04 Paolo Carlini <pcarlini@suse.de>
278 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
280 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
282 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
284 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
285 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
286 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
287 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
288 * testsuite/23_containers/vector/resize/1.cc: Likewise.
289 * testsuite/26_numerics/complex_value.cc: Likewise.
290 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
291 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
292 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
293 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
294 * testsuite/27_io/objects/char/5.cc: Likewise.
295 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
296 * testsuite/backward/11460.cc: Likewise.
297 * testsuite/thread/pthread7-rope.cc: Likewise.
299 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
300 missing test variable.
301 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
302 missing test variable.
304 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
306 * testsuite/20_util/allocator/1.cc: Provide explicit
307 instantiations for non-weak systems.
308 * testsuite/20_util/binders.cc: Same.
309 * testsuite/20_util/allocator/8230.cc: Same.
310 * testsuite/20_util/allocator/10378.cc: Same.
311 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
312 * testsuite/22_locale/ctype/is/char/2.cc: Same.
313 * testsuite/thread/pthread7-rope.cc: Same.
314 * testsuite/thread/pthread6.cc: Same.
315 * testsuite/thread/pthread5.cc: Same.
316 * testsuite/thread/pthread4.cc: Same.
317 * testsuite/thread/pthread1.cc: Same.
318 * testsuite/ext/rope.cc: Same.
319 * testsuite/ext/hash_set.cc: Same.
320 * testsuite/ext/hash_map.cc: Same.
321 * testsuite/ext/concept_checks.cc: Same.
322 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
323 * testsuite/25_algorithms/unique/2.cc: Same.
324 * testsuite/25_algorithms/unique/1.cc: Same.
325 * testsuite/25_algorithms/rotate.cc: Same.
326 * testsuite/25_algorithms/min_max.cc: Same.
327 * testsuite/25_algorithms/equal.cc: Same.
328 * testsuite/24_iterators/rel_ops.cc: Same.
329 * testsuite/24_iterators/iterator.cc: Same.
330 * testsuite/24_iterators/insert_iterator.cc: Same.
331 * testsuite/24_iterators/front_insert_iterator.cc: Same.
332 * testsuite/24_iterators/back_insert_iterator.cc: Same.
333 * testsuite/23_containers/vector/resize/1.cc: Same.
334 * testsuite/23_containers/vector/modifiers/2.cc: Same.
335 * testsuite/23_containers/vector/modifiers/1.cc: Same.
336 * testsuite/23_containers/vector/invalidation/4.cc: Same.
337 * testsuite/23_containers/vector/invalidation/3.cc: Same.
338 * testsuite/23_containers/vector/invalidation/2.cc: Same.
339 * testsuite/23_containers/vector/invalidation/1.cc: Same.
340 * testsuite/23_containers/vector/element_access/1.cc: Same.
341 * testsuite/23_containers/vector/cons/6513.cc: Same.
342 * testsuite/23_containers/vector/cons/3.cc: Same.
343 * testsuite/23_containers/vector/cons/2.cc: Same.
344 * testsuite/23_containers/vector/cons/1.cc: Same.
345 * testsuite/23_containers/vector/capacity/8230.cc: Same.
346 * testsuite/23_containers/vector/capacity/1.cc: Same.
347 * testsuite/23_containers/vector/bool/6886.cc: Same.
348 * testsuite/23_containers/stack/members/7158.cc: Same.
349 * testsuite/23_containers/set/invalidation/2.cc: Same.
350 * testsuite/23_containers/set/invalidation/1.cc: Same.
351 * testsuite/23_containers/queue/members/7157.cc: Same.
352 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
353 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
354 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
355 * testsuite/23_containers/multiset/insert/1.cc: Same.
356 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
357 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
358 * testsuite/23_containers/map/operators/1.cc: Same.
359 * testsuite/23_containers/map/invalidation/2.cc: Same.
360 * testsuite/23_containers/map/invalidation/1.cc: Same.
361 * testsuite/23_containers/map/insert/1.cc: Same.
362 * testsuite/23_containers/list/operators/4.cc: Same.
363 * testsuite/23_containers/list/operators/3.cc: Same.
364 * testsuite/23_containers/list/operators/2.cc: Same.
365 * testsuite/23_containers/list/operators/1.cc: Same.
366 * testsuite/23_containers/list/modifiers/3.cc: Same.
367 * testsuite/23_containers/list/modifiers/2.cc: Same.
368 * testsuite/23_containers/list/modifiers/1.cc: Same.
369 * testsuite/23_containers/list/invalidation/4.cc: Same.
370 * testsuite/23_containers/list/invalidation/3.cc: Same.
371 * testsuite/23_containers/list/invalidation/2.cc: Same.
372 * testsuite/23_containers/list/invalidation/1.cc: Same.
373 * testsuite/23_containers/list/cons/9.cc: Same.
374 * testsuite/23_containers/list/cons/8.cc: Same.
375 * testsuite/23_containers/list/cons/7.cc: Same.
376 * testsuite/23_containers/list/cons/6.cc: Same.
377 * testsuite/23_containers/list/cons/5.cc: Same.
378 * testsuite/23_containers/list/cons/4.cc: Same.
379 * testsuite/23_containers/list/cons/3.cc: Same.
380 * testsuite/23_containers/list/cons/2.cc: Same.
381 * testsuite/23_containers/list/cons/1.cc: Same.
382 * testsuite/23_containers/list/capacity/1.cc: Same.
383 * testsuite/23_containers/deque/operators/1.cc: Same.
384 * testsuite/23_containers/deque/invalidation/4.cc: Same.
385 * testsuite/23_containers/deque/invalidation/3.cc: Same.
386 * testsuite/23_containers/deque/invalidation/2.cc: Same.
387 * testsuite/23_containers/deque/invalidation/1.cc: Same.
388 * testsuite/23_containers/deque/cons/2.cc: Same.
389 * testsuite/23_containers/deque/cons/1.cc: Same.
391 * src/allocator.cc: Add char, wchar_t instantiations
392 to match extern template declarations in memory.h.
394 2004-03-03 Paolo Carlini <pcarlini@suse.de>
396 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
397 Fix warning regression.
399 2004-03-03 Paolo Carlini <pcarlini@suse.de>
401 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
402 Deal properly with empty __digits and negative frac_digits,
405 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
407 * docs/html/documentation.html: Regenerate.
409 2004-03-02 Paolo Carlini <pcarlini@suse.de>
412 * include/bits/postypes.h (class streamoff): Remove, now
413 streamoff is just typedef a 64 bit signed integer type.
414 (class fpos): Tweak consistently.
415 * testsuite/27_io/fpos/14320-1.cc: New.
416 * testsuite/27_io/fpos/14320-2.cc: New.
417 * testsuite/27_io/fpos/14320-3.cc: New.
418 * testsuite/27_io/fpos/14320-4.cc: New.
419 * testsuite/27_io/fpos/14320-5.cc: New.
420 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
422 2004-03-02 Paolo Carlini <pcarlini@suse.de>
424 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
425 Reorganize a bit the main parsing loop, thus early detecting
426 an empty value component.
427 * testsuite/22_locale/money_get/get/char/16.cc: New.
428 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
430 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
432 Support automake 1.8.2
433 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
434 * po/Makefile.am (EXTRA_DIST): New.
435 * po/Makefile.in: Regenerate.
437 * include/Makefile.in: Same.
438 * libmath/Makefile.in: Same.
439 * libsupc++/Makefile.in: Same.
440 * src/Makefile.in: Same.
441 * testsuite/Makefile.in: Same.
443 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
444 __GXX_WEAK__ instead of SUPPORTS_WEAK.
445 (${host_builddir}/gthr-default.h): Same.
446 (${host_builddir}/gthr.h): Same.
447 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
448 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
450 * aclocal.m4: Regenerate.
451 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
452 * config.h.in: Regenerate.
455 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
457 Support autoconf 2.59
458 * acinclude.m4: Quote correctly.
459 * aclocal.m4: Regenerate.
462 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
464 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
466 * docs/html/18_support/howto.html: Add bit about writing to
467 stderr, mostly by Zack.
469 2004-03-01 Paolo Carlini <pcarlini@suse.de>
471 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
472 money_get<>::do_get(string_type&)): ... and two more.
474 2004-03-01 Paolo Carlini <pcarlini@suse.de>
476 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
477 Fix thinkos in the switch from string_type& to string& as last
480 2004-03-01 Paolo Carlini <pcarlini@suse.de>
482 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
483 Also when parsing exponent sign, first look for thousands_sep
484 and decimal_point; tweak a bit.
485 * testsuite/22_locale/num_get/get/char/15.cc: New.
486 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
488 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
489 num_get<>::_M_extract_int): Reorder some conditionals.
491 2004-03-01 Paolo Carlini <pcarlini@suse.de>
493 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
494 Consistently with numpunct, enforce the requirements in
495 22.2.6.3, p3 for the thousands separators; tweak a bit.
496 * testsuite/22_locale/money_get/get/char/15.cc: New.
497 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
499 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
501 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
502 testsuite_files from correct multilib blddir when running
505 2004-02-29 Phil Edwards <phil@codesourcery.com>
507 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
508 the summary file to the logfile.
509 * testsuite/Makefile.in: Regenerate.
511 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
513 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
515 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
516 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
518 2004-02-28 Paolo Carlini <pcarlini@suse.de>
520 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
521 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
522 no 'decimal-point' in the middle: in this case too we must fix
523 up __found_grouping; slightly tweak.
524 * testsuite/22_locale/num_get/get/char/14.cc: New.
525 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
527 2004-02-27 Eric Christopher <echristo@redhat.com>
528 Phil Edwards <phil@codesourcery.com>
530 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
531 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
532 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
533 testsuite/22_locale/collate/hash/wchar_t/2.cc,
534 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
535 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
536 testsuite/22_locale/collate/transform/wchar_t/2.cc,
537 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
538 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
539 Use dg-require-iconv.
540 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
542 2004-02-27 Phil Edwards <phil@codesourcery.com>
543 Eric Christopher <echristo@redhat.com>
545 * testsuite/config/default.exp: Update with comments.
546 (${tool}_target_compile): New wrapper routine.
547 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
548 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
550 (load_gcc_lib, v3track): New routines.
551 (v3-init): Rename to libstdc++_init.
552 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
553 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
555 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
557 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
559 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
561 * config/os/irix/irix5.2/atomicity.h: Merge..
562 * config/os/irix/irix6.5/atomicity.h: Merge..
563 * config/os/irix/atomicity.h: ...into this.
564 * config/os/irix/atomic_word.h: New.
565 * configure.host: Set atomic_word_dir for irix.
567 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
568 * i386/atomicity.h: Same.
569 * m68k/atomicity.h: Same.
570 * sparc/atomicity.h: Same.
572 2004-02-27 David Edelsohn <edelsohn@gnu.org>
574 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
575 static, and inline keywords.
577 2004-02-27 Paolo Carlini <pcarlini@suse.de>
579 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
580 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
581 call reserve on the __tmp_gruping string.
582 (num_get<>::_M_extract_float): Don't append unnecessarily a
583 char() to the returned string.
584 * include/bits/locale_facets.tcc: Trivial reformattings.
586 2004-02-27 Paolo Carlini <pcarlini@suse.de>
588 * include/bits/locale_facets.h (money_get<>::_M_extract):
589 Change signature: now takes a plain string&.
590 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
591 Update consistently the definition; use the moneypunct cache
592 to parse the value; use swap to change __units.
593 (money_get<>::do_get(long double&)): Update call of _M_extract,
594 avoid ctype::narrow, not correct wrt the standard.
595 (money_get<>::do_get(string_type&)): Likewise, update call
596 of _M_extract, use ctype::widen.
597 * src/locale-inst.cc: Tweak instantiations of _M_extract.
599 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
601 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
602 * testsuite/demangle/abi_examples/02.cc: Likewise.
603 * testsuite/demangle/regression/cw-11.cc: Likewise.
604 * testsuite/demangle/regression/cw-16.cc: Change two expected
605 results to match libiberty demangler output.
607 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
610 * libsupc++/Makefile.am: Use libiberty demangler.
611 (c_sources): Add cp-demangle.c.
612 * libsupc++/Makefile.in: Regenerate.
613 * src/Makefile.am (sources): Remove demangle.cc.
614 * src/Makefile.in: Regenerate.
615 * include/Makefile.am (bits_headers): Move demangle.h.
616 (ext_headers): ...here.
617 * include/Makefile.in: Regenerate.
618 * include/bits/demangle.h: Move...
619 * include/ext/demangle.h: ...here.
620 * src/demangle.cc: Remove.
622 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
624 * include/bits/demangle.h: Add type template parameter to all
625 templates with just an Allocator template parameter.
627 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
629 * include/bits/atomicity.h: New, forward declarations for __atomic_add
630 and __exchange_and_add.
631 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
632 * config/cpu/cris/atomic_word.h: Same.
633 * config/cpu/sparc/atomic_word.h: Same.
634 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
635 Qualifiy with __gnu_cxx.
636 (_Callback_list::_M_add_reference): Same.
637 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
638 (locale::facet::_M_remove_reference): Same.
639 (locale::_Impl::_M_add_reference): Add.
640 (locale::_Impl::_M_remove_reference): Same.
641 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
642 (basic_string::_Rep::_M_dispose): Same.
643 * src/ios.cc (ios_base::xalloc): Same.
644 * src/ios_init.cc (ios_base::Init::Init): Same.
645 (ios_base::Init::~Init): Same.
646 * src/locale.cc (locale::id::_M_id): Same.
647 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
648 static, and inline keywords.
649 * config/cpu/alpha/atomicity.h: Same.
650 * config/cpu/cris/atomicity.h: Same.
651 * config/cpu/generic/atomicity.h: Same.
652 * config/cpu/hppa/atomicity.h: Same.
653 * config/cpu/i386/atomicity.h: Same.
654 * config/cpu/ia64/atomicity.h: Same.
655 * config/cpu/m68k/atomicity.h: Same.
656 * config/cpu/mips/atomicity.h: Same.
657 * config/cpu/powerpc/atomicity.h: Same.
658 * config/cpu/s390/atomicity.h: Same.
659 * config/cpu/sparc/atomicity.h: Same.
661 * src/Makefile.am (host_sources): Add atomicity.cc.
662 (atomicity.cc): New rule.
663 * src/Makefile.in: Regenerate.
664 * include/Makefile.am (host_headers): Remove host atomicity.h.
665 (host_headers): Add atomic_word.h.
666 (bits_headers): Add bits atomicity.h.
667 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
668 * include/Makefile.in: Regenerate.
669 * configure.host (atomic_word_dir): Add.
670 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
671 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
672 * configure: Regenerate.
673 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
675 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
676 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
678 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
680 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
681 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
682 Fix markup, more <link> tags.
684 2004-02-25 Carlo Wood <carlo@alinoe.com>
687 namespace __gnu_cxx::demangler
688 (session<Allocator>::qualifier_list_Allocator): Add
689 (session<Allocator>::M_qualifier_list_alloc): Add
690 (session<Allocator>::decode_type_with_postfix):
691 Use M_qualifier_list_alloc instead of calling operator new/delete.
693 2004-02-24 Paolo Carlini <pcarlini@suse.de>
696 * include/bits/postypes.h (class streamoff): Add operator++(),
697 operator++(int), operator--() and operator--(int).
698 * testsuite/27_io/fpos/14252.cc: New.
700 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
702 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
703 error in handling of hex constants.
705 2004-02-24 Paolo Carlini <pcarlini@suse.de>
707 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
708 Prefer basic_string::append to operator+= and a temporary.
710 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
712 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
713 Only use fputs, not write.
715 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
717 * include/ext/malloc_allocator.h: Add operators ==, !=.
718 * include/ext/new_allocator.h: Add operators ==, !=.
719 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
720 (__mt_alloc::_S_get_options): New.
721 (__mt_alloc::_S_set_options): New.
722 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
723 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
724 Move functions out of line, simplify, format.
725 * src/allocator.cc: Simplify explicit instantiations.
726 * include/bits/allocator.h: Tweak.
728 2004-02-22 Paolo Carlini <pcarlini@suse.de>
730 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
731 Restructure formatting of value component, first dealing with
732 the non-decimal digits; use reserve.
734 2004-02-22 Paolo Carlini <pcarlini@suse.de>
736 * include/bits/locale_facets.h (class money_get): Inherit
737 from money_base too; tweak declaration of _M_extract, now
738 parameterized on _Intl too.
739 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
740 Update definition to use the cache; call reserve on __res to
741 avoid multiple reallocations; fix parsing of sign component
742 according to 22.2.6.1.2, p3.
743 (money_get<>::do_get(long double&),
744 money_get<>::do_get(string_type&)): Update calls of _M_extract.
745 * src/locale-inst.cc: Add instantiations of
746 money_get::_M_extract<false> and money_get::_M_extract<true>.
747 * testsuite/22_locale/money_get/get/char/14.cc: New.
748 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
750 2004-02-21 Mark Mitchell <mark@codesourcery.com>
752 * libsupc++/vterminate.cc
753 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
755 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
757 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
758 not set RLIMIT_AS on HP-UX.
760 2004-02-21 Mark Mitchell <mark@codesourcery.com>
762 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
763 not set RLIMIT_AS on HP-UX.
765 2004-02-21 Paolo Carlini <pcarlini@suse.de>
767 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
768 _S_zero, _S_end } enum, _S_atoms.
769 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
770 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
771 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
772 (__moneypunct_cache<>::~__moneypunct_cache): Update.
773 (__moneypunct_cache<>::_M_cache): Fill the cache.
774 (class moneypunct): Tweak __cache_type typedef.
775 (class money_put): Inherit from money_base too; tweak declaration
776 of _M_insert, now parameterized on _Intl.
777 * include/bits/locale_facets.tcc
778 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
779 (money_put<>::_M_insert): Update definition to use the cache;
780 call reserve on __res to avoid multiple reallocations.
781 (money_put<>::do_put(long double),
782 money_put<>::do_put(const string_type&): Update calls of _M_insert.
783 * config/locale/generic/monetary_members.cc
784 (moneypunct<char, true>::_M_initialize_moneypunct,
785 moneypunct<char, false>::_M_initialize_moneypunct,
786 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
787 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
788 * config/locale/gnu/monetary_members.cc: Likewise.
789 * config/locale/gnu/monetary_members.cc
790 (moneypunct<wchar_t, true>::~moneypunct(),
791 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
792 * src/globals_locale.cc: Tweak fake_money_cache_c.
793 * src/locale-inst.cc: Add instantiations for
794 money_put::_M_insert<false> and money_put::_M_insert<true> and
795 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
796 * src/locale_facets.cc: Define money_base::_S_atoms.
797 * src/locale_init.cc: Update placement new of
798 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
799 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
801 * config/locale/generic/numeric_members.cc: Clean up.
802 * config/locale/gnu/numeric_members.cc: Likewise.
803 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
804 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
805 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
806 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
807 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
808 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
810 2004-02-20 Mark Mitchell <mark@codesourcery.com>
812 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
813 FIFO for writing with ios_base::in|ios_base::out.
814 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
815 * testsuite/27_io/objects/char/7.cc: Likewise.
816 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
819 2004-02-19 David Edelsohn <edelsohn@gnu.org>
821 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
822 from iso-8859-1 to ISO8859-1.
823 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
824 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
825 * 22_locale/collate/hash/wchar_t/2.cc: Same.
826 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
827 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
828 * 22_locale/collate/transform/wchar_t/2.cc: Same.
829 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
830 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
832 2004-02-18 Paolo Carlini <pcarlini@suse.de>
834 * include/bits/locale_facets.h (money_get<>::_M_extract):
835 New, helper for do_get.
836 (money_put<>::_M_insert): Likewise, for do_put.
837 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
838 money_put<>::_M_insert): Define.
839 (money_get<>::do_get(long double&), money_get<>::do_get(
840 string_type&), money_put::do_put(long double),
841 money_put::do_put(const string_type&)): Use the helpers.
843 2004-02-18 Paolo Carlini <pcarlini@suse.de>
845 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
846 Rewrite, avoiding recursion.
847 (__gnu_internal::xwrite): Minor tweaks.
849 2004-02-17 Stefan Olsson <stefan@xapa.se>
851 * include/ext/mt_allocator.h: Removed the last
852 pointer. Deallocated blocks are now added to the front of
853 freelists as proposed by Felix Yen. This gives roughly 10%
854 performance boost and saves some memory.
855 * docs/html/ext/mt_allocator.html: Change due to that deallocated
856 blocks now are added to the front of freelists. The reason to this
857 approach is also explained.
859 2004-02-17 Paolo Carlini <pcarlini@suse.de>
861 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
862 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
863 grouping fidelity conditional.
865 2004-02-16 Paolo Carlini <pcarlini@suse.de>
867 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
868 Qualify exception with std::.
869 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
870 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
871 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
872 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
873 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
875 2004-02-16 Paolo Carlini <pcarlini@suse.de>
877 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
878 for now that the catch block is not reached.
879 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
881 2004-02-16 Paolo Carlini <pcarlini@suse.de>
883 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
884 Fix parsing of the remaining sign characters.
885 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
886 the input is scanned 'til eof.
887 * 22_locale/money_get/get/char/4.cc: Likewise.
888 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
889 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
890 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
891 not do_pos_format: the former is the only one that matters during
893 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
895 * 22_locale/money_get/get/char/6.cc: Minor tweak.
896 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
898 2004-02-15 David Asher <david.asher@cavium.com>
901 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
902 access __olds beyond __oldlen.
904 2004-02-14 Paolo Carlini <pcarlini@suse.de>
906 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
907 sure the exception is actually thrown.
908 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
909 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
910 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
912 2004-02-14 Paolo Carlini <pcarlini@suse.de>
915 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
916 In case of conversion errors, throw ios_failure; simplify.
917 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
918 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
919 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
920 previously we didn't throw in case of conversion errors, instead
922 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
923 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
924 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
926 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
927 Trivial simplification of a conditional.
929 2004-02-12 Paolo Carlini <pcarlini@suse.de>
931 PR libstdc++/13731 (final part: writev)
932 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
933 New, a wrapper around writev() handling partial writes.
934 (__basic_file<char>::xwrite): Move to __gnu_internal and make
936 (__basic_file<char>::xsputn): Update call.
937 (__basic_file<char>::xsputn_2): Likewise.
938 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
939 Don't declare, now static.
941 2004-02-11 Stefan Olsson <stefan@xapa.se>
943 * docs/html/ext/mt_allocator.html: New.
945 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
947 * docs/html/20_util/allocator.html: New file, consolidate
948 allocator information here. Revamp.
949 * docs/html/documentation.html: Change links.
950 * docs/html/20_util/howto.html: Same.
951 * docs/html/ext/howto.html: Same.
953 2004-02-11 Paolo Carlini <pcarlini@suse.de>
955 PR libstdc++/13731 (first part: write)
956 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
958 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
959 Define it: a wrapper around write() handling partial write.
960 (__basic_file<char>::xsputn): Use it.
961 (__basic_file<char>::xsputn_2): Likewise.
963 2004-02-11 Paolo Carlini <pcarlini@suse.de>
964 Petur Runolfsson <peturr02@ru.is>
967 * include/std/std_istream.h (operator>>(__istream_type& (*)
968 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
969 operator>>(ios_base& (*)(ios_base&))): Declare inline.
970 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
971 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
972 operator<<(ios_base& (*) (ios_base&))): Likewise.
973 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
975 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
978 * config/linker-map.gnu: Add typeinfo and typeinfo name for
979 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
982 * config/linker-map.gnu: Add typeinfo and typeinfo name for
983 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
985 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
987 * include/ext/pool_allocator.h: Include c++config.h.
989 2004-02-09 Stefan Olsson <stefan@xapa.se>
991 * include/ext/mt_allocator.h: thread_id is unused in non threaded
992 applications and now has a ifdef to remove it completely on
993 compilers without thread support. Include stdlib.h due to a
994 compiler warning on getenv().
996 2004-02-09 Paul Brook <paul@codesourcery.com>
998 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
1000 2004-02-09 Paolo Carlini <pcarlini@suse.de>
1003 * src/locale_init.cc (locale::global(const locale&)): Use
1004 locale::name() in order to decide whether calling setlocale.
1005 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
1007 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
1008 Avoid computing &= unnecessarily.
1010 2004-02-09 James E Wilson <wilson@specifixinc.com>
1013 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
1014 __builtin_extend_pointer.
1016 2004-02-09 Paolo Carlini <pcarlini@suse.de>
1019 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
1020 Don't leave dangling pointers.
1021 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
1022 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
1023 facet is needed in the final test.
1025 2004-02-09 Bernardo Innocenti <bernie@develer.com>
1027 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
1028 * configure: Regenerate.
1030 2004-02-08 Richard Henderson <rth@redhat.com>
1033 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
1034 uncaughtExceptions during nested catch rethrow.
1035 * testsuite/18_support/14026.cc: New.
1037 2004-02-08 Paolo Carlini <pcarlini@suse.de>
1039 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
1040 When working in place remember to set the state to sharable
1041 (otherwise, _M_mutate does it).
1043 2004-02-08 Bernardo Innocenti <bernie@develer.com>
1045 * include/bits/allocator.h, include/bits/basic_ios.h,
1046 include/bits/basic_ios.tcc, include/bits/basic_string.h,
1047 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
1048 include/bits/char_traits.h, include/bits/codecvt.h,
1049 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
1050 include/bits/demangle.h, include/bits/deque.tcc,
1051 include/bits/fstream.tcc, include/bits/functexcept.h,
1052 include/bits/gslice.h, include/bits/gslice_array.h,
1053 include/bits/indirect_array.h, include/bits/ios_base.h,
1054 include/bits/istream.tcc, include/bits/list.tcc,
1055 include/bits/locale_classes.h, include/bits/locale_facets.h,
1056 include/bits/locale_facets.tcc, include/bits/localefwd.h,
1057 include/bits/mask_array.h, include/bits/ostream.tcc,
1058 include/bits/postypes.h, include/bits/slice_array.h,
1059 include/bits/sstream.tcc, include/bits/stl_algo.h,
1060 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
1061 include/bits/stl_construct.h, include/bits/stl_deque.h,
1062 include/bits/stl_function.h, include/bits/stl_heap.h,
1063 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
1064 include/bits/stl_list.h, include/bits/stl_map.h,
1065 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
1066 include/bits/stl_numeric.h, include/bits/stl_pair.h,
1067 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
1068 include/bits/stl_relops.h, include/bits/stl_set.h,
1069 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
1070 include/bits/stl_threads.h, include/bits/stl_tree.h,
1071 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
1072 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
1073 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
1074 include/bits/type_traits.h, include/bits/valarray_after.h,
1075 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
1076 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
1077 trailing whitespace.
1079 2004-02-06 Paolo Carlini <pcarlini@suse.de>
1081 * include/bits/basic_string.h: Fix comment.
1083 2004-02-06 Paolo Carlini <pcarlini@suse.de>
1085 * include/bits/stl_construct.h: Wrap overlong lines, reformat
1086 according to the coding standards.
1087 * include/bits/stl_pair.h: Likewise.
1088 * include/bits/stl_raw_storage_iter.h: Likewise.
1089 * include/bits/stl_stack.h: Likewise.
1090 * include/bits/stl_uninitialized.h: Likewise.
1091 * include/bits/stream_iterator.h: Likewise.
1092 * include/bits/streambuf_iterator.h: Likewise.
1093 * include/bits/type_traits.h: Likewise.
1095 2004-02-06 Paolo Carlini <pcarlini@suse.de>
1097 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
1100 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
1102 * scripts/check_performance: Support PCH.
1104 * scripts/check_performance (CXX): Add -DNOTHREAD.
1105 * testsuite/performance/20_util/allocator/insert.cc: Integrate
1106 threaded tests from insert_insert.cc. Tweak iterations,
1107 remove special cases.
1108 * testsuite/performance/20_util/allocator/insert_insert.cc:
1109 Make all tests single-threaded. Tweak iterations.
1110 * testsuite/performance/20_util/allocator/map_thread.cc:
1112 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1115 2004-02-05 Geoffrey Keating <geoffk@apple.com>
1119 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
1120 'gcc-lib'. Add comment about poorly-named variables.
1121 * aclocal.m4: Regenerate.
1122 * configure: Regenerate.
1124 2004-02-05 Paolo Carlini <pcarlini@suse.de>
1126 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
1127 Thousands-sep are always optional; thousands-sep are not allowed
1128 after the decimal_point.
1129 * testsuite/22_locale/money_get/get/char/12.cc: New.
1130 * testsuite/22_locale/money_get/get/char/13.cc: New.
1131 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
1132 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
1134 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
1135 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1136 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1137 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1138 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1139 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1140 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1141 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1143 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
1145 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
1147 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
1149 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
1151 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
1152 it to decide whether FIONREAD should take an off_t or int argument.
1154 2004-02-05 Paolo Carlini <pcarlini@suse.de>
1156 * include/bits/stl_function.h: Minor formatting changes.
1158 2004-02-04 Zack Weinberg <zack@codesourcery.com>
1160 Revert previous change to config/abi/*/baseline_symbols.txt.
1162 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
1163 Zack Weinberg <zack@codesourcery.com>
1165 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
1167 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
1168 (__basic_file<char>::_M_open_mode): Delete.
1169 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
1171 * testsuite/27_io/basic_filebuf/close/char/9964.cc
1172 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
1173 Correct flags to filebuf::open calls.
1175 * config/abi/alpha-freebsd5/baseline_symbols.txt
1176 * config/abi/alpha-linux-gnu/baseline_symbols.txt
1177 * config/abi/hppa-linux-gnu/baseline_symbols.txt
1178 * config/abi/i386-freebsd4/baseline_symbols.txt
1179 * config/abi/i386-freebsd5/baseline_symbols.txt
1180 * config/abi/i486-linux-gnu/baseline_symbols.txt
1181 * config/abi/ia64-linux-gnu/baseline_symbols.txt
1182 * config/abi/mips-linux-gnu/baseline_symbols.txt
1183 * config/abi/sparc-freebsd5/baseline_symbols.txt
1184 * config/abi/sparc-linux-gnu/baseline_symbols.txt
1185 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
1186 Remove entry for __basic_file<char>::_M_open_mode.
1188 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
1190 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
1192 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
1194 * testsuite/performance/20_util/producer_consumer.cc: New.
1195 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
1197 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
1199 * testsuite/performance/20_util/allocator.cc: Move to..
1200 * testsuite/performance/20_util/allocator/insert.cc: ...here.
1201 * testsuite/performance/20_util/allocator_thread.cc: Move to...
1202 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
1203 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
1204 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
1206 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
1208 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
1209 * docs/html/faq/index.txt: Regenerate.
1211 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
1213 * include/ext/debug_allocator.h: _M_extra now stands for the
1214 number of extra objects instead of the number of extra bytes.
1215 (debug_allocator::allocate): Adjust.
1216 (debug_allocator::deallocate): Adjust.
1218 * include/ext/pool_allocator.h: Fix typo.
1220 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
1221 Benjamin Kosnik <bkoz@redhat.com>
1223 * testsuite/performance/20_util/allocator.cc: Add map,
1225 * testsuite/performance/20_util/allocator_thread.cc: Same.
1227 2004-02-03 Paolo Carlini <pcarlini@suse.de>
1229 * include/bits/basic_string.h (insert(iterator)): Remove,
1230 non-standard and already scheduled for removal.
1232 2004-02-03 Paolo Carlini <pcarlini@suse.de>
1234 * include/bits/stl_iterator_base_funcs.h: Minor formatting
1235 and indentation tweaks.
1236 * include/bits/stl_iterator_base_types.h: Likewise.
1237 * include/bits/stl_list.h: Likewise.
1238 * include/bits/stl_map.h: Likewise.
1239 * include/bits/stl_tempbuf.h: Likewise.
1241 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
1243 * include/bits/gslice.h, include/bits/gslice_array.h,
1244 include/bits/indirect_array.h, include/bits/mask_array.h,
1245 include/bits/slice_array.h, include/bits/stl_numeric.h,
1246 include/std/std_valarray.h: Update copyright years.
1248 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
1250 * include/bits/gslice.h (gslice): Document.
1251 * include/bits/gslice_array.h (gslice_array): Document.
1252 * include/bits/indirect_array (indirect_array): Document.
1253 * include/bits/mask_array (mask_array): Document.
1254 * include/bits/slice_array.h (slice,slice_array): Document.
1255 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
1256 adjacent_difference): Document
1257 * include/std/std_valarray.h (valarray): Document.
1259 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
1261 * docs/html/19_diagnostics/howto.html: Move verbose terminate
1263 * docs/html/18_support/howto.html: Here.
1264 * docs/html/documentation.html: Add reference here.
1266 2004-02-02 Paolo Carlini <pcarlini@suse.de>
1268 * config/locale/gnu/c++locale_internal.h: Remove prototypes
1269 of no longer used GLIBC thread locale functions.
1271 2004-02-02 Eric Christopher <echristo@redhat.com>
1272 Zack Weinberg <zack@codesourcery.com>
1274 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
1276 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
1277 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
1278 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
1279 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
1280 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
1281 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
1282 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
1283 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
1286 2004-02-02 Paolo Carlini <pcarlini@suse.de>
1288 * include/bits/stl_function.h: Additional minor tweaks.
1289 * include/bits/stl_multiset.h: Likewise.
1291 * include/bits/stl_queue.h: Minor tweaks.
1293 2004-02-02 Paolo Carlini <pcarlini@suse.de>
1295 PR libstdc++/13976 (continued)
1296 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
1297 Make the second parameter unnamed, to void unused parameter
1299 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
1301 2004-02-02 Paolo Carlini <pcarlini@suse.de>
1304 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
1305 Make the second parameter unnamed, to void unused parameter
1307 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
1308 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
1310 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1312 * include/bits/stl_algo.h: Additional minor tweaks.
1313 * include/bits/stl_map.h: Likewise.
1314 * include/bits/stl_multimap.h: Likewise.
1315 * include/bits/stl_multiset.h: Likewise.
1316 * include/bits/stl_set.h: Likewise.
1317 * include/bits/stl_tree.h: Likewise.
1319 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1321 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
1324 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1326 * include/bits/stl_function.h: Additional minor tweaks.
1328 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1330 * include/bits/deque.tcc: Wrap overlong lines, constify
1331 a few variables, reformat according to the coding standards.
1332 * include/bits/list.tcc: Likewise.
1333 * include/bits/stl_deque.h: Likewise.
1334 * include/bits/stl_function.h: Likewise.
1335 * include/bits/stl_iterator.h: Likewise.
1336 * include/bits/stl_iterator_base_funcs.h: Likewise.
1337 * include/bits/stl_iterator_base_types.h: Likewise.
1338 * include/bits/stl_list.h: Likewise.
1339 * include/bits/stl_map.h: Likewise.
1340 * include/bits/stl_multimap.h: Likewise.
1341 * include/bits/stl_multiset.h: Likewise.
1342 * include/bits/stl_relops.h: Likewise.
1343 * include/bits/stl_set.h: Likewise.
1345 2004-02-01 Paolo Carlini <pcarlini@suse.de>
1347 * include/bits/stl_bvector.h: Wrap overlong lines, constify
1348 a few variables, reformat according to the coding standards.
1349 * include/bits/stl_tree.h: Likewise.
1351 2004-01-31 Paolo Carlini <pcarlini@suse.de>
1353 * include/bits/stl_algo.h: Minor additional reformat, add
1355 * include/bits/stl_algobase.h: Add copyright year.
1357 2004-01-31 Paolo Carlini <pcarlini@suse.de>
1359 * include/bits/stl_algo.h: Wrap overlong lines, constify
1360 a few variables, reformat according to the coding standards.
1361 * include/bits/stl_algobase.h: Likewise.
1362 * include/bits/stl_heap.h: Likewise.
1364 2004-01-31 Paolo Carlini <pcarlini@suse.de>
1366 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
1368 * include/bits/basic_string.h: Fix two comments.
1370 2004-01-31 Per Bothner <per@bothner.com>
1372 * include/ext/mt_allocator.h
1373 (__mt_alloc::_S_thread_freelist_mutex): Guard with
1374 __GTHREAD_MUTEX_INIT.
1376 2004-01-31 Paolo Carlini <pcarlini@suse.de>
1378 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
1380 2004-01-30 Paolo Carlini <pcarlini@suse.de>
1382 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
1383 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
1384 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
1386 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
1388 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
1389 Don't use clear, but instead assign. Use insert.
1391 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
1393 * src/demangle.cc: Add instantiations.
1394 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
1395 * src/Makefile.in: Regenerate.
1397 2004-01-30 David Edelsohn <edelsohn@gnu.org>
1399 * src/allocator.cc: Protect _S_get_thread_id() and
1400 _S_thread_key_destr() with #ifdef __GTHREADS.
1402 2004-01-30 Paolo Carlini <pcarlini@suse.de>
1404 Reshuffle performance testsuite.
1405 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
1406 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
1407 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
1408 fstream_seek_write.cc, ifstream_extract_float.cc,
1409 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
1410 list_create_fill_sort.cc, map_create_fill.cc,
1411 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
1412 ofstream_insert_float.cc, ofstream_insert_int.cc,
1413 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
1414 wchar_t_out.cc: Split into...
1415 * testsuite/performance/20_util/allocator.cc: New.
1416 * testsuite/performance/20_util/allocator_map_thread.cc: New.
1417 * testsuite/performance/20_util/allocator_thread.cc: New.
1418 * testsuite/performance/21_strings/string_append: New.
1419 * testsuite/performance/22_locale/is_wchar_t.cc: New.
1420 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
1421 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
1422 * testsuite/performance/22_locale/wchar_t_in.cc: New.
1423 * testsuite/performance/22_locale/wchar_t_length.cc: New.
1424 * testsuite/performance/22_locale/wchar_t_out.cc: New.
1425 * testsuite/performance/23_containers/container_benchmark.cc: New.
1426 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
1427 * testsuite/performance/23_containers/map_create_fill.cc: New.
1428 * testsuite/performance/26_numerics/complex_norm.cc: New.
1429 * testsuite/performance/27_io/cout_insert_int.cc: New.
1430 * testsuite/performance/27_io/filebuf_copy.cc: New.
1431 * testsuite/performance/27_io/filebuf_sputc.cc: New.
1432 * testsuite/performance/27_io/fstream_seek_write.cc: New.
1433 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
1434 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
1435 * testsuite/performance/27_io/ifstream_getline.cc: New.
1436 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
1437 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
1439 2004-01-30 Paolo Carlini <pcarlini@suse.de>
1441 * include/bits/basic_string.tcc (_Rep::_S_create):
1442 Never allocate a string bigger than max_size(); always keep
1443 __capacity and __size in sync to avoid memory leaks at
1446 2004-01-30 Paolo Carlini <pcarlini@suse.de>
1448 * include/bits/basic_string.tcc (_S_construct(_InIterator,
1449 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
1450 the double loop, streamline.
1452 * include/bits/basic_string.tcc: Very minor tweaks.
1454 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
1456 * scripts/check_performance: Only compile with $THREAD_FLAG
1457 when test is marked to require it. Allow multiple
1458 compilations/executions of marked tests.
1459 * testsuite/testsuite_performance.h (report_performance):
1460 Report dynamic thread support status.
1461 (report_header): Likewise.
1462 * testsuite/performance/allocator.cc: Stabilize iteration
1463 count. Support more allocators. Mark each allocator test to
1464 run and report independently.
1465 * testsuite/performance/allocator_map_thread.cc: Likewise.
1466 * testsuite/performance/allocator_thread.cc: Likewise.
1468 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
1470 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
1471 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
1472 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
1473 std::get_temporary_buffer() instead of duplicating its code.
1474 Update to C++STYLE conventions.
1475 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
1476 new() instead of std::malloc().
1477 (return_temporary_buffer): Use ::operator delete() instead of
1480 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
1482 * include/bits/allocator.h: Temporary switch to new_allocator as
1483 the default to unjam bootstraps.
1485 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
1487 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
1488 * include/Makefile.in: Regenerate.
1489 * include/bits/allocator_traits.h: Remove.
1490 * include/bits/allocator.h: Remove allocator_traits.h include, and
1492 (allocator): Empty base class, inherit from the underlying allocator.
1493 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
1494 * src/allocator.cc: ...here. New. For the underlying allocators.
1495 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
1496 * config/linker-map.gnu: Remove __pool_alloc bits.
1497 * src/Makefile.am (sources): Add allocator.cc.
1498 * src/Makefile.in: Regenerate.
1499 * testsuite/20_util/allocator/1.cc: Split second test into...
1500 * testsuite/20_util/allocator/8230.cc: ...this.
1501 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
1502 typedef to use std::allocatore. Format.
1503 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
1505 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
1506 __throw_bad_alloc calls. Don't include <memory>.
1507 * include/ext/malloc_allocator.h: Remove <memory> include.
1508 * include/ext/new_allocator.h (new_allocator): Same.
1509 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
1510 declaration. Switch __alloc to _Alloc.
1511 * include/ext/hashtable.h: Remove __alloc.
1512 * include/backward/alloc.h: Only inject allocator, not
1513 implementation details.
1515 * include/ext/mt_allocator.h: Replace free with delete.
1517 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
1519 * src/globals_io.cc: Change to __gnu_internal namespace.
1520 * src/globals_locale.cc: Same.
1521 * src/locale_init.cc: Same.
1522 * src/ios_init.cc: Same.
1524 2004-01-28 Stefan Olsson <stefan@snon.net>
1526 * include/ext/mt_allocator.h: Replaced all malloc() calls with
1527 operator new(). Added support for the env variable
1528 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
1529 one in allocate() as well). Fix typos.
1531 2004-01-28 Paolo Carlini <pcarlini@suse.de>
1533 * include/bits/basic_string.h (_S_create(size_t,
1534 const _Alloc&): Change signature to take two size_type
1536 * include/bits/basic_string.tcc (_S_construct(_InIterator,
1537 _InIterator, const _Alloc&, input_iterator_tag)): Update
1539 (_S_construct(_InIterator, _InIterator, const _Alloc&,
1540 forward_iterator_tag)): Likewise.
1541 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
1542 (_M_mutate(size_type, size_type, size_type)): Don't
1543 implement the exponential growth policy, demand it to
1544 _S_create, update call and simplify.
1545 (_M_clone(const _Alloc&, size_type)): Likewise.
1546 (_S_create(size_type, size_type, const _Alloc&)): Implement
1547 the growth policy, simplify otherwise.
1549 * include/bits/basic_string.h (_Rep::operator[]): Tweak
1550 signature to take a size_type, consistently with the other
1553 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
1555 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
1556 delete declarations, add include and test variable.
1558 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
1560 * include/bits/codecvt.h, include/bits/locale_facets.h,
1561 include/bits/postypes.h, include/bits/stl_bvector.h,
1562 include/bits/stl_multiset.h, include/bits/stl_set.h,
1563 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
1564 include/std/std_complex.h: Document.
1566 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
1569 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
1570 iword/pword selector.
1571 (ios_base::iword, ios_base::pword): Use it.
1572 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
1573 iword or pword member on alloc failure.
1574 * testsuite/27_io/ios_base/storage/11584.cc: New test.
1576 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
1577 PJ Darcy <darcypj@us.ibm.com>
1579 * configure.host: Add support for *-tpf.
1580 * crossconfig.m4: Likewise.
1581 * configure: Regenerate.
1582 * config/os/tpf: New directory.
1583 * config/os/tpf/os_defines.h: New file.
1584 * config/os/tpf/ctype_base.h: Likewise.
1585 * config/os/tpf/ctype_inline.h: Likewise.
1586 * config/os/tpf/ctype_noninline.h: Likewise.
1588 2004-01-27 Paolo Carlini <pcarlini@suse.de>
1591 * include/bits/sstream.tcc: Guard use of extern template.
1593 2004-01-27 Paolo Carlini <pcarlini@suse.de>
1595 * include/bits/basic_string.tcc
1596 (basic_string(const basic_string&, size_type, size_type),
1597 basic_string(const basic_string&, size_type, size_type,
1598 const _Alloc&)): Avoid unnecessarily constructing iterators.
1600 2004-01-26 Paolo Carlini <pcarlini@suse.de>
1602 * config/locale/generic/c_locale.cc: Fix throw messages
1603 to use the __N marker.
1604 * config/locale/gnu/c_locale.cc: Likewise.
1605 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
1607 * docs/html/17_intro/C++STYLE: Likewise.
1608 * include/bits/basic_ios.tcc: Likewise.
1609 * include/bits/fstream.tcc: Likewise.
1610 * include/bits/vector.tcc: Likewise.
1611 * include/ext/ropeimpl.h: Likewise.
1612 * include/std/std_bitset.h: Likewise.
1613 * src/ios.cc: Likewise.
1614 * src/locale.cc: Likewise.
1615 * src/localename.cc: Likewise.
1617 2004-01-26 Paolo Carlini <pcarlini@suse.de>
1619 * include/bits/basic_string.h (_M_replace_aux): Use the
1620 __N marker in throw message.
1621 * include/bits/basic_string.tcc (assign(const _CharT*,
1622 size_type), insert(size_type, const _CharT*, size_type),
1623 replace(size_type, size_type, const _CharT*, size_type),
1624 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
1627 * include/bits/basic_string.h, include/bits/basic_string.tcc:
1628 Fold overlong lines, minor formatting changes.
1630 2004-01-26 Paolo Carlini <pcarlini@suse.de>
1632 * include/bits/basic_string.h (replace(iterator, iterator,
1633 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
1634 (replace(iterator, iterator, const _CharT*)): Ditto.
1635 (replace(iterator, iterator, const _CharT*, size_type)):
1636 Add missing _GLIBCXX_DEBUG_PEDASSERT.
1638 2004-01-26 Paolo Carlini <pcarlini@suse.de>
1640 * include/bits/basic_string.tcc (replace(size_type,
1641 size_type, const _CharT*, size_type)): Implement optimized
1642 in-place algorithm for non-overlapping ranges.
1643 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
1644 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
1646 * include/bits/basic_string.tcc (insert(size_type,
1647 const _CharT*, size_type)): Tweak slightly.
1649 2004-01-26 Andreas Schwab <schwab@suse.de>
1651 * config/locale/gnu/monetary_members.cc: Restore locale before
1652 rethrowing exception.
1654 2004-01-25 Paolo Carlini <pcarlini@suse.de>
1656 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
1658 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
1661 * include/bits/basic_string.tcc: Very minor tweaks.
1663 2004-01-25 Paolo Carlini <pcarlini@suse.de>
1665 * testsuite/performance/string_append.cc: Increase number
1668 2004-01-25 Paolo Carlini <pcarlini@suse.de>
1670 * include/bits/basic_string.h (erase(size_type, size_type),
1671 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
1672 instead, thus avoiding redundant check for length_error.
1674 * include/bits/basic_string.h: Tweak some comments.
1676 2004-01-24 Paolo Carlini <pcarlini@suse.de>
1678 * include/bits/basic_string.tcc (operator+(const _CharT*,
1679 const basic_string&)): No need to go through the append
1680 taking two iterators.
1682 2004-01-24 Paolo Carlini <pcarlini@suse.de>
1684 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
1685 Revert last change to use std::min: machine language is worse.
1686 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
1687 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
1688 (find_last_not_of(_CharT, size_type)): Ditto.
1690 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
1691 size_type)): Discard the value returned by _M_check.
1692 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
1693 (append(const basic_string&, size_type, size_type)): Ditto.
1694 (copy(_CharT*, size_type, size_type)): Ditto.
1695 (compare(size_type, size_type, const basic_string&)): Ditto.
1696 (compare(size_type, size_type, const basic_string&,
1697 size_type, size_type)): Ditto.
1698 (compare(size_type, size_type, const _CharT*)): Ditto.
1699 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
1701 2004-01-24 Paolo Carlini <pcarlini@suse.de>
1703 * include/bits/basic_string.h (insert(size_type,
1704 const basic_string&, size_type, size_type)): Define inline here.
1705 * include/bits/basic_string.tcc (insert(size_type,
1706 const basic_string&, size_type, size_type)): Move inline.
1708 2004-01-24 Paolo Carlini <pcarlini@suse.de>
1710 * include/bits/basic_string.h (assign(const basic_string&,
1711 size_type, size_type)): Define inline here.
1712 (replace(size_type, size_type, const basic_string&,
1713 size_type, size_type)): Ditto.
1714 (_M_replace_dispatch(iterator, iterator, _InputIterator,
1715 _InputIterator, __false_type)): Only declare.
1716 (_M_replace(iterator, iterator, _InputIterator,
1717 _InputIterator)): Remove.
1718 * include/bits/basic_string.tcc (assign(const basic_string&,
1719 size_type, size_type)): Move inline.
1720 (replace(size_type, size_type, const basic_string&,
1721 size_type, size_type)): Ditto.
1722 (_M_replace_dispatch(iterator, iterator, _InputIterator,
1723 _InputIterator, __false_type)): Define, now does also what
1724 _M_replace did before.
1725 * src/string-inst.cc (_M_replace): Don't instantiate.
1727 * include/bits/basic_string.tcc (find(const _CharT*,
1728 size_type, size_type)): Tidy.
1729 (rfind(_CharT, size_type)): Ditto.
1730 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
1731 (find_first_not_of(_CharT, size_type)): Ditto.
1732 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
1733 (find_last_not_of(_CharT, size_type)): Ditto.
1735 2004-01-23 Paolo Carlini <pcarlini@suse.de>
1738 * include/debug/bitset (operator|=): Fix typo.
1739 * testsuite/23_containers/bitset/operations/13838.cc: New.
1741 2004-01-23 Paolo Carlini <pcarlini@suse.de>
1743 * include/bits/basic_string.tcc (insert(size_type,
1744 const _CharT*, size_type __n)): Fix length_error check.
1745 (replace(size_type, size_type, const _CharT*, size_type):
1746 Ditto; call _M_replace_safe.
1747 (_M_replace_aux(size_type, size_type, size_type, _CharT):
1748 Fix length_error check.
1749 (_M_replace(iterator, iterator, _InputIterator,
1750 _InputIterator)): Ditto, tweak.
1751 (_M_replace_safe(size_type, size_type, const _CharT*,
1752 size_type)): Remove length_error check.
1754 * include/bits/basic_string.tcc (append(const basic_string&),
1755 append(const basic_string&, size_type, size_type)): Tweak
1758 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
1759 size_type)): If __n == 0 don't call traits::copy.
1761 2004-01-23 Stefan Olsson <stefan@snon.net>
1763 * include/ext/mt_allocator.h: Reduce lock contention.
1765 2004-01-23 Paolo Carlini <pcarlini@suse.de>
1768 * include/bits/fstream.tcc (underflow): Remove unused
1770 * include/bits/streambuf_iterator.h (equal): Ditto.
1771 * include/bits/locale_facets.h (_M_convert_from_char):
1774 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1777 * config/linker-map.gnu (nan): Delete.
1778 * libmath/mathconf.h (NAN, nan): Delete.
1779 * linkage.m4 (nan): Don't check for it.
1780 * libmath/nan.c: Delete file.
1782 * config.h.in, configure: Regenerate.
1784 2004-01-23 Paolo Carlini <pcarlini@suse.de>
1786 * include/bits/basic_string.h (push_back(_CharT)):
1787 Call _M_replace_aux.
1788 (insert(size_type, const basic_string&)): Trivial tweak.
1789 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
1790 (insert(iterator, _CharT)): Ditto.
1791 (erase(size_type, size_type)): Ditto.
1792 (erase(iterator)): Ditto.
1793 (erase(iterator, iterator)): Ditto.
1794 (replace(size_type, size_type, size_type, _CharT)): Ditto.
1796 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
1799 * testsuite/performance/allocator_map_thread.cc: New test.
1801 2004-01-22 Paolo Carlini <pcarlini@suse.de>
1803 * include/bits/locale_facets.tcc
1804 (money_put::do_put(..., long double)): Use the basic_string
1805 constructor for char arrays, not that for C-strings, to pass
1806 __digits to do_put(..., const string_type&): __ws isn't
1809 2004-01-22 Paolo Carlini <pcarlini@suse.de>
1811 * include/bits/basic_string.h (_M_replace_safe): Change
1812 signatures to take size_types and const _CharT*.
1813 (_M_replace_aux): Likewise, takes size_types instead of
1815 (append(size_type, _CharT)): Update call.
1816 (assign(size_type, _CharT)): Ditto.
1817 (replace(iterator, iterator, size_type, _CharT)): Ditto.
1818 (_M_replace_dispatch(iterator, iterator, _Integer,
1819 _Integer, __true_type)): Ditto.
1820 * include/bits/basic_string.tcc (assign(const _CharT*,
1822 (insert(size_type, const _CharT*, size_type)): Ditto.
1823 (replace(size_type, size_type, const _CharT*,
1825 (_M_replace(iterator, iterator, _InputIterator,
1826 _InputIterator)): Ditto.
1827 (append(const basic_string&)): Ditto.
1828 (append(const basic_string&, size_type, size_type): Ditto.
1829 (append(const _CharT*, size_type): Ditto.
1830 (_M_replace_safe, _M_replace_safe): Change definitions
1831 accordingly, simplify.
1832 * string-inst.cc (_M_replace_safe): Don't instantiate.
1834 2004-01-21 Paolo Carlini <pcarlini@suse.de>
1836 * include/bits/basic_string.tcc (append(const basic_string&)):
1837 Revert previous change.
1838 (append(const basic_string&, size_type, size_type)): Revert
1839 previous change, use _M_check and _M_limit.
1841 2004-01-21 Paolo Carlini <pcarlini@suse.de>
1843 * include/bits/basic_string.h (_M_check): Change to return
1844 a checked __pos and take an additional const char* argument.
1845 (_M_fold): Rename to _M_limit, change to return a size_type,
1846 corresponding to the __off limited to the actual length.
1847 (insert(size_type, size_type, _CharT)): Update call, call
1849 (insert(iterator, _CharT)): Call replace(iterator, iterator,
1850 size_type, _CharT) instead.
1851 (erase(size_type, size_type)): Update calls.
1852 (replace(size_type, size_type, size_type, _CharT)): Ditto.
1853 (substr(size_type, size_type)): Use _M_check.
1854 * include/bits/basic_string.tcc (basic_string(const basic_string&,
1855 size_type, size_type)): Update calls.
1856 (basic_string(const basic_string&, size_type, size_type,
1857 const _Alloc&)): Ditto.
1858 (assign(const basic_string&, size_type, size_type)): Use the
1859 new _M_check and _M_limit.
1860 (insert(size_type, const basic_string&, size_type, size_type):
1862 (insert(size_type, const _CharT*, size_type)): Ditto.
1863 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
1864 (replace(size_type, size_type, const basic_string&,
1865 size_type, size_type)): Ditto.
1866 (append(const basic_string&)): Ditto.
1867 (append(const basic_string&, size_type, size_type)): Ditto.
1868 (copy(_CharT*, size_type, size_type)): Ditto.
1869 (compare(size_type, size_type, const basic_string&)): Ditto.
1870 (compare(size_type, size_type, const basic_string&,size_type,
1872 (compare(size_type, size_type, const _CharT*)): Ditto.
1873 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
1875 2004-01-19 Stefan Olsson <stefan@snon.net>
1877 * include/ext/mt_allocator.h: If a thread, when it dies, still has
1878 memory on it's freelist this memory is not returned to global
1879 list. Simplification of deallocate so that memory is always
1880 returned to the calling thread id's freelist instead of to
1881 global. Fix typos. Add volatile where appropriate.
1883 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
1885 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
1886 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
1887 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
1889 2004-01-19 Paolo Carlini <pcarlini@suse.de>
1891 * src/debug.cc: Make sure all the names are prefixed with
1892 double (or single) underscore.
1894 2004-01-19 Paolo Carlini <pcarlini@suse.de>
1896 * src/debug.cc: Trivial formatting change.
1898 2004-01-19 Paolo Carlini <pcarlini@suse.de>
1900 * include/bits/basic_string.tcc (_S_construct(size_type,
1901 _CharT, const _Alloc&)): Remove redundant try/catch.
1902 (_M_mutate(size_type, size_type, size_type)): Ditto.
1903 (_M_clone(const _Alloc&, size_type)): Ditto.
1905 2004-01-18 Paolo Carlini <pcarlini@suse.de>
1907 * include/bits/basic_string.h (c_str()): Simplify, due to
1908 21.3.4 the internal representation is always kept null-terminated.
1909 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
1910 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
1911 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
1914 2004-01-18 Paolo Carlini <pcarlini@suse.de>
1916 * include/bits/basic_string.h (append(size_type, _CharT)):
1917 Moved inline, just call _M_replace_aux, no source iterators at
1918 risk of being clobbered.
1919 (assign(size_type, _CharT)): Call directly _M_replace_aux.
1920 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
1921 input_iterator_tag)): Remove fifth unused argument.
1922 (_M_replace_dispatch(iterator, iterator, _InputIterator,
1923 _InputIterator, __false_type)): Update call.
1924 * include/bits/basic_string.tcc (replace(size_type, size_type,
1925 const _CharT*, size_type)): Update call.
1926 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
1927 throw string literal.
1928 (_M_replace_safe(iterator, iterator, _ForwardIterator,
1929 _ForwardIterator)): Likewise.
1930 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
1931 input_iterator_tag)): Remove fifth unused argument.
1932 (append(size_type __n, _CharT __c)): Move inline.
1933 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
1934 const C*, const C*, input_iterator_tag)): Remove fifth unused
1937 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
1939 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
1940 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
1942 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1944 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
1947 2004-01-15 Stefan Olsson <stefan@snon.net>
1949 * include/ext/mt_allocator.h: Reuse thread id's as soon as
1950 possible by changing the behaviour of thread_freelist to do
1951 push_front when threads die instead of push_back.
1953 2004-01-14 Paolo Carlini <pcarlini@suse.de>
1955 * include/bits/locale_facets.h (struct __numpunct_cache):
1956 Add member _M_grouping_size, caching the length of _M_grouping.
1957 (__numpunct_cache<>::_M_cache): Assign the latter.
1958 (__verify_grouping): Move declaration...
1959 * include/bits/locale_facets.tcc (__verify_grouping):
1960 ... here, change signature to take a const char* and a size_t
1961 for the grouping; not a template anymore.
1962 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
1963 Likewise change signature and tweak consistently.
1964 (num_get::_M_extract_float, num_get::_M_extract_int,
1965 num_put::_M_insert_int, num_put::_M_insert_float,
1966 money_get::do_get(string_type&), money_get::do_put(string_type)):
1968 * config/locale/generic/numeric_members.cc
1969 (numpunct<>::_M_initialize_numpunct): Assign the new member.
1970 * config/locale/gnu/numeric_members.cc
1971 (numpunct<>::_M_initialize_numpunct): Likewise.
1972 * src/locale-inst.cc (__add_grouping): Tweak signature.
1973 (__verify_grouping): Don't instantiate, not a template anymore.
1975 * include/bits/locale_facets.h: Rename _M_truename_len ->
1976 _M_truename_size, _M_falsename_len -> _M_falsename_size.
1977 * include/bits/locale_facets.tcc: Likewise.
1978 * config/locale/generic/numeric_members.cc: Likewise.
1979 * config/locale/gnu/numeric_members.cc: Likewise.
1981 2004-01-14 Stefan Olsson <stefan@snon.net>
1983 * include/ext/mt_allocator.h: Fixups.
1984 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
1985 * testsuite/performance/allocator_thread.cc: Same.
1987 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
1989 * testsuite/performance/ifstream_extract_float.cc: Add higher
1991 * testsuite/performance/ofstream_insert_float.cc: Same.
1993 2004-01-13 Paolo Carlini <pcarlini@suse.de>
1995 * src/locale-misc-inst.cc (__convert_from_v(long),
1996 __convert_from_v(unsigned long), __convert_from_v(long long),
1997 __convert_from_v(unsigned long long)): Remove, unused.
1999 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
2001 * testsuite/performance/ifstream_extract_float.cc: New.
2002 * testsuite/performance/ofstream_insert_float.cc: Float generation
2005 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
2006 * 20_util/auto_ptr/1.cc: ...this.
2007 * 20_util/auto_ptr/2.cc: Same.
2008 * 20_util/auto_ptr/3.cc: Same.
2009 * 20_util/auto_ptr/3946.cc: Same.
2010 * 20_util/auto_ptr/4.cc: Same.
2011 * 20_util/auto_ptr/5.cc: Same.
2012 * 20_util/auto_ptr/6.cc: Same.
2013 * 20_util/auto_ptr/7.cc: Same.
2014 * 20_util/auto_ptr/assign_neg.cc
2015 * 20_util/pairs.cc: Break into...
2016 * 20_util/pair/1.cc: ...this.
2017 * 20_util/pair/2.cc: Same.
2018 * 20_util/pair/3.cc: Same.
2019 * 20_util/pair/4.cc: Same.
2021 2004-01-13 Paolo Carlini <pcarlini@suse.de>
2023 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
2024 Set correctly just basefield, the only group that matters.
2026 2004-01-13 Paolo Carlini <pcarlini@suse.de>
2028 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
2029 (_Rope_rep_base): Inherit directly from the rope allocator;
2030 use rebinding instead of _Alloc_traits; pick up data member
2031 from _Rope_rep_alloc_base.
2032 (_Rope_alloc_base): Eliminate.
2033 (_Rope_base): Inherit directly from the rope allocator; use
2034 rebinding instead of _Alloc_traits; pick up data member from
2036 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
2037 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
2039 2004-01-13 Paolo Carlini <pcarlini@suse.de>
2042 * include/bits/basic_string.tcc (compare(size_type, size_type,
2043 const _CharT*, size_type)): Implement correctly the resolution
2044 of DR 5: basically, s is a char array, -not- a C string.
2045 * include/bits/basic_string.h: Tweak some comments.
2046 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
2047 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
2049 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
2051 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
2054 2004-01-12 Paolo Carlini <pcarlini@suse.de>
2056 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
2058 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
2061 2004-01-12 Paolo Carlini <pcarlini@suse.de>
2063 * include/bits/locale_facets.h (struct __numpunct_cache):
2064 Add members _M_truename_len and _M_falsename_len, caching
2065 the lengths of _M_truename and _M_falsename.
2066 (__numpunct_cache<>::_M_cache): Assign the latter.
2067 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
2068 num_put::do_put(bool)): Use the new members, thus avoiding
2069 computing string lengths again and again.
2070 * config/locale/generic/numeric_members.cc
2071 (numpunct<>::_M_initialize_numpunct): Assign the new members.
2072 * config/locale/gnu/numeric_members.cc
2073 (numpunct<>::_M_initialize_numpunct): Likewise.
2075 2004-01-12 Mark Mitchell <mark@codesourcery.com>
2077 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
2078 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
2080 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
2081 and remove Cygwin XFAIL.
2082 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
2083 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
2084 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
2085 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
2087 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2088 * testsuite/27_io/objects/char/7.cc: Likewise.
2089 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
2090 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
2091 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
2093 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
2095 * include/std/std_complex.h (std::complex<>::real): Return a
2096 reference. Add non-const overload.
2097 (std::complex<>::real): Likewise.
2098 (std::real): Likewise.
2099 (std::imag): Likewise.
2100 (std::operator+): Tidy.
2101 (std::operator-): Likewise.
2102 (std::operator*): Likewise.
2103 (std::operator/): Likewise.
2104 (std::operator>>): Likewise.
2106 2004-01-11 Paolo Carlini <pcarlini@suse.de>
2109 * include/bits/fstream.tcc (imbue): Exploit the external
2110 buffer to imbue 'on the fly' a new locale and convert its
2111 remainder with the new codecvt facet.
2112 (underflow): Tweak slightly to deal with this special case.
2113 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
2114 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
2115 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
2116 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
2117 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
2119 2004-01-10 Paolo Carlini <pcarlini@suse.de>
2121 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
2124 2004-01-10 Paolo Carlini <pcarlini@suse.de>
2127 * include/bits/locale_classes.h (class locale): Fix category
2129 * testsuite/22_locale/locale/13630.cc: Add.
2131 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2133 * include/bits/locale_facets.h: Make a name really dependent. This
2134 will be needed when Core Issue 224 is implemented.
2136 2004-01-09 Paolo Carlini <pcarlini@suse.de>
2138 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
2139 * testsuite/performance/allocator_thread.cc: Likewise.
2141 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
2143 * crossconfig.m4: Add LFS, io bits to linux cross config.
2144 * acconfig.h: Remove obsolete bits, reorder.
2145 * config.h.in: Regenerate.
2149 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
2151 * include/bits/stl_list.h:
2152 * include/bits/list.tc:
2154 Performance enhancements for destructor, push_front(),
2155 push_back(), pop_front(), pop_back(), sort()
2156 Eliminated static_casts where possible.
2157 Moved code out of header files into new src/list.cc
2158 implementation file for library where possible.
2159 Remove inheritance from iterator class and create separate
2160 classes for non-constant and constant iterators.
2161 * include/bits/stl_tree.h (_Rb_tree class):
2163 Only erase contents in destructor.
2164 Eliminate unnecessary initialization in assignment operator.
2165 Optimize for the nominal case by not checking whether
2166 container is empty in clear().
2167 Re-order test in _M_insert() to improve performance.
2168 Move initialization of new node's left & right pointers to
2169 src/tree.cc to where new node's colour is initialized
2170 and to reduce the amount of inline code.
2171 Use _M_leftmost() and _M_end() to improve readability where
2173 Create separate classes for non-constant and constant
2174 iterators to clarify code, avoid extra template parameters and
2175 casting away constness.
2177 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
2179 * src/Makefile.am (sources): Add list.cc, tree.cc.
2180 * src/stl_tree.cc: Move to...
2181 * src/tree.cc: ...here.
2183 * config/linker-map.gnu: Tweaks.
2184 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
2185 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
2187 * bits/stl_vector.h: Column wrap comments.
2189 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
2191 (re-open) PR libstdc++/12658
2192 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
2193 (locale::global): Likewise.
2195 2004-01-07 Paolo Carlini <pcarlini@suse.de>
2197 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
2198 Remove redundant #include.
2199 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
2200 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
2201 re-enable normal testing.
2202 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
2204 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
2205 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
2207 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
2209 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
2211 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
2213 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
2215 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
2217 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
2219 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
2220 More properly, #include <locale>.
2221 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
2222 Remove redundant #include.
2223 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
2224 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
2225 redundant DejaGnu directive.
2226 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
2229 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
2230 Stefan Olsson <stefan@snon.net>
2232 * scripts/check_performance: Use -pthread.
2233 * testsuite/performance/allocator.cc: Tweaks, add list.
2234 * testsuite/performance/allocator_thread.cc: New.
2236 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
2238 * include/bits/locale_facets.h: Document public classes and
2240 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
2243 2004-01-06 Paolo Carlini <pcarlini@suse.de>
2245 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
2246 Remove redundant #includes.
2247 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
2249 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
2251 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
2252 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
2253 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
2254 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
2255 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
2256 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
2257 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
2258 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
2259 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
2260 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
2261 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
2262 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
2263 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
2264 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
2265 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
2267 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
2269 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
2271 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
2273 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
2275 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
2276 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
2277 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
2279 2004-01-04 Paolo Carlini <pcarlini@suse.de>
2281 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
2282 Remove redundant #includes.
2283 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
2285 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
2287 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
2289 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
2291 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
2293 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
2295 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
2297 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
2299 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
2301 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
2303 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
2305 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
2308 2004-01-04 Mark Mitchell <mark@codesourcery.com>
2311 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
2313 * testsuite/27_io/basic_fstream/4.cc: Likewise.
2314 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
2315 * testsuite/27_io/basic_ios/4.cc: Likewise.
2316 * testsuite/27_io/basic_iostream/4.cc: Likewise.
2317 * testsuite/27_io/basic_istream/4.cc: Likewise.
2318 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
2319 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
2320 * testsuite/27_io/basic_ostream/4.cc: Likewise.
2321 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
2322 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
2323 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
2325 2004-01-04 Paolo Carlini <pcarlini@suse.de>
2327 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
2328 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
2329 always use double underscored names.
2330 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
2332 * include/bits/locale_facets.h (struct __numpunct_cache):
2333 Dimension _M_atoms_out and _M_atoms_in one position smaller.
2334 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out