1 2004-12-27 Jason Merrill <jason@redhat.com>
3 Add memory barriers to the double-checked locking used for static
5 * libsupc++/guard.cc (__test_and_acquire): Define default.
6 (_GLIBCXX_GUARD_TEST_AND_ACQUIRE, __set_and_release)
7 (_GLIBCXX_GUARD_SET_AND_RELEASE): Likewise.
8 (recursion_push, recursion_pop): New abstraction functions.
9 (__cxa_guard_acquire): Use _GLIBCXX_GUARD_TEST_AND_ACQUIRE.
10 (__cxa_guard_release): Use _GLIBCXX_GUARD_SET_AND_RELEASE.
11 * config/cpu/generic/cxxabi_tweaks.h (_GLIBCXX_GUARD_TEST): Rename
12 from _GLIBCXX_GUARD_ACQUIRE and reverse sense.
13 (_GLIBCXX_GUARD_SET): Rename from _GLIBCXX_GUARD_RELEASE.
14 * config/cpu/arm/cxxabi_tweaks.h: Likewise.
15 * config/cpu/alpha/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER)
16 (_GLIBCXX_WRITE_MEM_BARRIER): Define.
17 * config/cpu/powerpc/atomic_word.h: Likewise.
18 * config/cpu/sparc/atomic_word.h: Likewise.
19 * config/cpu/generic/atomic_word.h: Define them, commented out.
20 * include/bits/atomicity.h: Define defaults.
21 * config/cpu/ia64/atomic_word.h (__test_and_acquire)
22 (__set_and_release): New inlines.
23 (_GLIBCXX_GUARD_TEST_AND_ACQUIRE): Define.
24 (_GLIBCXX_GUARD_SET_AND_RELEASE): Define.
26 * libsupc++/guard.cc (acquire_1): Use __builtin_trap instead of
29 2004-12-27 Paolo Carlini <pcarlini@suse.de>
31 * include/tr1/type_traits: Rework the _DEFINE_SPEC* macros.
33 2004-12-26 Paolo Carlini <pcarlini@suse.de>
35 * include/tr1/type_traits (__is_enum_helper): Slightly simplify,
36 make __convert non template.
38 2004-12-26 Paolo Carlini <pcarlini@suse.de>
40 * include/tr1/type_traits: Implement is_pod, has_trivial_constructor,
41 and has_trivial_destructor.
42 * testsuite/tr1/4_metaprogramming/type_properties/
43 has_trivial_constructor/has_trivial_constructor.cc: New.
44 * testsuite/tr1/4_metaprogramming/type_properties/
45 has_trivial_constructor/typedefs.cc: Likewise.
46 * testsuite/tr1/4_metaprogramming/type_properties/
47 has_trivial_destructor/has_trivial_destructor.cc: Likewise.
48 * testsuite/tr1/4_metaprogramming/type_properties/
49 has_trivial_destructor/typedefs.cc: Likewise.
50 * testsuite/tr1/4_metaprogramming/type_properties/
51 is_pod/is_pod.cc: Likewise.
52 * testsuite/tr1/4_metaprogramming/type_properties/
53 is_pod/typedefs.cc: Likewise.
55 2004-12-25 Paolo Carlini <pcarlini@suse.de>
57 * include/tr1/type_traits (is_enum): Minor tweak.
59 2004-12-25 Paolo Carlini <pcarlini@suse.de>
61 * include/tr1/type_traits: Implement is_enum (usual caveats about
62 the nasty consequences of c++/19076...).
63 * testsuite/testsuite_tr1.h: Add ConvType.
64 * testsuite/tr1/4_metaprogramming/composite_type_traits/
65 is_scalar/is_scalar.cc: New.
66 * testsuite/tr1/4_metaprogramming/composite_type_traits/
67 is_scalar/typedefs.cc: Likewise.
68 * testsuite/tr1/4_metaprogramming/primary_type_categories/
69 is_enum/is_enum.cc: Likewise.
70 * testsuite/tr1/4_metaprogramming/primary_type_categories/
71 is_enum/typedefs.cc: Likewise.
73 2004-12-24 Paolo Carlini <pcarlini@suse.de>
75 * include/tr1/type_traits: Add missing undef.
77 2004-12-24 Paolo Carlini <pcarlini@suse.de>
79 * include/tr1/type_traits: Implement is_member_object_pointer,
80 is_member_function_pointer. N.B. Due to c++/19076, the latter
81 doesn't really work at the moment (a rather ugly work around
82 will be provided in case the front-end bug doesn't get fixed
83 soon); generalize and extend the _DEFINE_SPEC macros.
84 * testsuite/tr1/4_metaprogramming/composite_type_traits/
85 is_member_pointer/is_member_pointer.cc: New.
86 * testsuite/tr1/4_metaprogramming/composite_type_traits/
87 is_member_pointer/typedefs.cc: Likewise.
88 * testsuite/tr1/4_metaprogramming/primary_type_categories/
89 is_member_function_pointer/is_member_function_pointer.cc: Likewise.
90 * testsuite/tr1/4_metaprogramming/primary_type_categories/
91 is_member_function_pointer/typedefs.cc: Likewise.
92 * testsuite/tr1/4_metaprogramming/primary_type_categories/
93 is_member_object_pointer/is_member_object_pointer.cc: Likewise.
94 * testsuite/tr1/4_metaprogramming/primary_type_categories/
95 is_member_object_pointer/typedefs.cc: Likewise.
97 2004-12-22 Paolo Carlini <pcarlini@suse.de>
99 * include/tr1/type_traits_fwd.h: New, forward declarations.
100 * include/tr1/type_traits: Clean-up.
101 * include/Makefile.am: Add.
102 * include/Makefile.in: Regenerate.
104 2004-12-20 Paolo Carlini <pcarlini@suse.de>
106 * testsuite/27_io/basic_istream/peek/wchar_t/1.cc: New.
107 * testsuite/27_io/basic_istream/peek/wchar_t/12296.cc: Likewise.
108 * testsuite/27_io/basic_istream/peek/wchar_t/6414.cc: Likewise.
109 * testsuite/27_io/basic_istream/putback/wchar_t/1.cc: Likewise.
110 * testsuite/27_io/basic_istream/read/wchar_t/1.cc: Likewise.
111 * testsuite/27_io/basic_istream/read/wchar_t/2.cc: Likewise.
112 * testsuite/27_io/basic_istream/read/wchar_t/3.cc: Likewise.
113 * testsuite/27_io/basic_istream/readsome/wchar_t/6746-1.cc: Likewise.
114 * testsuite/27_io/basic_istream/readsome/wchar_t/6746-2.cc: Likewise.
115 * testsuite/27_io/basic_istream/readsome/wchar_t/8258.cc: Likewise.
116 * testsuite/27_io/basic_istream/seekg/wchar_t/2.cc: Likewise.
117 * testsuite/27_io/basic_istream/seekg/wchar_t/8348-1.cc: Likewise.
118 * testsuite/27_io/basic_istream/seekg/wchar_t/8348-2.cc: Likewise.
119 * testsuite/27_io/basic_istream/seekg/wchar_t/
120 exceptions_badbit_throw.cc: Likewise.
121 * testsuite/27_io/basic_istream/seekg/wchar_t/fstream.cc: Likewise.
122 * testsuite/27_io/basic_istream/seekg/wchar_t/sstream.cc: Likewise.
123 * testsuite/27_io/basic_istream/sentry/wchar_t/1.cc: Likewise.
124 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
125 * testsuite/27_io/basic_istream/sentry/wchar_t/2.cc: Likewise.
126 * testsuite/27_io/basic_istream/sentry/wchar_t/3.cc: Likewise.
127 * testsuite/27_io/basic_istream/tellg/wchar_t/1.cc: Likewise.
128 * testsuite/27_io/basic_istream/tellg/wchar_t/2.cc: Likewise.
129 * testsuite/27_io/basic_istream/tellg/wchar_t/8348.cc: Likewise.
130 * testsuite/27_io/basic_istream/tellg/wchar_t/
131 exceptions_badbit_throw.cc: Likewise.
132 * testsuite/27_io/basic_istream/tellg/wchar_t/fstream.cc: Likewise.
133 * testsuite/27_io/basic_istream/tellg/wchar_t/sstream.cc: Likewise.
134 * testsuite/27_io/basic_istream/ws/wchar_t/1.cc: Likewise.
136 * testsuite/data/wistream_extractor_other-1.tst: New.
137 * testsuite/data/wistream_extractor_other-1.txt: Likewise.
138 * testsuite/data/wistream_extractor_other-2.tst: Likewise.
139 * testsuite/data/wistream_seeks-1.tst: Likewise.
140 * testsuite/data/wistream_seeks-1.txt: Likewise.
141 * testsuite/data/wistream_unformatted-1.tst: Likewise.
142 * testsuite/data/wistream_unformatted-1.txt: Likewise.
144 * testsuite/27_io/basic_istream/extractors_other/wchar_t/2.cc:
145 Use wistream_extractor_other-1.txt.
147 * testsuite/27_io/basic_istream/peek/char/6414.cc: Minor clean-up.
148 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
149 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
150 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
152 2004-12-19 Paolo Carlini <pcarlini@suse.de>
154 * testsuite/27_io/basic_istream/exceptions/wchar_t/9561.cc: New.
155 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
157 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
159 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
161 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
163 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
165 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
167 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
169 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
171 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
173 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
175 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
177 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
178 9555-ia.cc: Likewise.
179 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
180 exceptions_badbit_throw.cc: Likewise.
181 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
182 exceptions_failbit.cc: Likewise.
183 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
184 exceptions_failbit_throw.cc: Likewise.
185 * testsuite/27_io/basic_istream/extractors_character/wchar_t/
187 * testsuite/27_io/basic_istream/extractors_character/wchar_t/
188 11095-i.cc: Likewise.
189 * testsuite/27_io/basic_istream/extractors_character/wchar_t/
191 * testsuite/27_io/basic_istream/extractors_character/wchar_t/
193 * testsuite/27_io/basic_istream/extractors_character/wchar_t/
194 9555-ic.cc: Likewise.
195 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
197 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
199 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
201 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
202 9318-in.cc: Likewise.
203 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
204 9424-in.cc: Likewise.
205 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
206 9555-io.cc: Likewise.
207 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
208 error_failbit.cc: Likewise.
209 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
210 exceptions_badbit_throw.cc: Likewise.
211 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
212 exceptions_failbit_throw.cc: Likewise.
213 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
214 exceptions_null.cc: Likewise.
216 * testsuite/27_io/basic_istream/extractors_other/char/2.cc: Minor
219 * testsuite/testsuite_io.h (struct fail_buf): Fix type of
222 2004-12-19 Dhruv Matani <dhruvbird@gmx.net>
224 * include/ext/bitmap_allocator.h: Make doxygen style comments for
225 internal functions and classes.
227 2004-12-19 Dhruv Matani <dhruvbird@gmx.net>
229 * docs/html/20_util/allocator.html: Correct link.
230 * docs/html/ext/ballocator_doc.txt: Remove.
231 * docs/html/ext/ballocator_doc.html: Add.
233 2004-12-16 Danny Smith <dannysmith@users.sourceforge.net>
236 * config/os/newlib/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK):
237 Define to 0 for __CYGWIN__.
239 2004-12-16 Paolo Carlini <pcarlini@suse.de>
241 * include/tr1/type_traits: Implement add_const, add_volatile,
243 * testsuite/tr1/4_metaprogramming/const_volatile_modifications/
245 * testsuite/tr1/4_metaprogramming/const_volatile_modifications/
247 * testsuite/tr1/4_metaprogramming/const_volatile_modifications/
248 add_volatile.cc: Likewise.
250 2004-12-16 Paolo Carlini <pcarlini@suse.de>
252 * include/tr1/type_traits: Implement is_function.
253 (struct __sfinae_types, struct __is_function_helper): New.
254 * testsuite/tr1/4_metaprogramming/composite_type_traits/
255 is_object/is_object.cc: New.
256 * testsuite/tr1/4_metaprogramming/composite_type_traits/
257 is_object/typedefs.cc: Likewise.
258 * testsuite/tr1/4_metaprogramming/primary_type_categories/
259 is_function/is_function.cc: Likewise.
260 * testsuite/tr1/4_metaprogramming/primary_type_categories/
261 is_function/typedefs.cc: Likewise.
263 2004-12-13 Paolo Carlini <pcarlini@suse.de>
265 * include/tr1/type_traits (extent): Minor tweak (i.e., public).
267 2004-12-12 Paolo Carlini <pcarlini@suse.de>
269 * include/tr1/type_traits: Minor tweak.
270 * testsuite/tr1/4_metaprogramming/type_properties/extent/
271 typedefs.cc: Fix date.
273 2004-12-12 Paolo Carlini <pcarlini@suse.de>
275 * include/tr1/type_traits: Implement extent.
276 * testsuite/tr1/4_metaprogramming/type_properties/extent/
278 * testsuite/tr1/4_metaprogramming/type_properties/extent/
279 typedefs.cc: Likewise.
281 2004-12-12 Paolo Carlini <pcarlini@suse.de>
283 * include/tr1/type_traits: Implement is_pointer, remove_pointer,
284 and add_pointer; reformat.
285 (_DEFINE_PRIMARY_SPEC_HELPER, _DEFINE_PRIMARY_SPEC): Generalize
286 and rename to _DEFINE_SPEC_HELPER and _DEFINE_SPEC; update uses.
287 * testsuite/tr1/4_metaprogramming/pointer_modifications/
289 * testsuite/tr1/4_metaprogramming/pointer_modifications/
290 remove_pointer.cc: Likewise.
291 * testsuite/tr1/4_metaprogramming/primary_type_categories/
292 is_pointer/is_pointer.cc: Likewise.
293 * testsuite/tr1/4_metaprogramming/primary_type_categories/
294 is_pointer/typedefs.cc: Likewise.
296 * testsuite/tr1/4_metaprogramming/primary_type_categories/
297 is_reference/is_reference.cc: Slightly tweak consistently.
299 2004-12-11 Paolo Carlini <pcarlini@suse.de>
301 * include/tr1/type_traits: Implement rank.
302 * testsuite/testsuite_tr1.h (test_property): Generalize to any
304 (test_category, test_relationship): Slightly tweak consistently.
305 * testsuite/tr1/4_metaprogramming/type_properties/rank/
307 * testsuite/tr1/4_metaprogramming/type_properties/rank/
308 typedefs.cc: Likewise.
310 * testsuite/tr1/4_metaprogramming/composite_type_traits/
311 is_compound/is_compound.cc: New.
312 * testsuite/tr1/4_metaprogramming/composite_type_traits/
313 is_compound/typedefs.cc: Likewise.
315 * testsuite/tr1/4_metaprogramming/composite_type_traits/
316 is_arithmetic/is_arithmetic.cc: Tweak consistently with the
317 testsuite_tr1.h changes.
318 * testsuite/tr1/4_metaprogramming/composite_type_traits/
319 is_fundamental/is_fundamental.cc: Likewise.
320 * testsuite/tr1/4_metaprogramming/primary_type_categories/
321 is_array/is_array.cc: Likewise.
322 * testsuite/tr1/4_metaprogramming/primary_type_categories/
323 is_floating_point/is_floating_point.cc: Likewise.
324 * testsuite/tr1/4_metaprogramming/primary_type_categories/
325 is_integral/is_integral.cc: Likewise.
326 * testsuite/tr1/4_metaprogramming/primary_type_categories/
327 is_reference/is_reference.cc: Likewise.
328 * testsuite/tr1/4_metaprogramming/primary_type_categories/
329 is_void/is_void.cc: Likewise.
330 * testsuite/tr1/4_metaprogramming/relationships_between_types/
331 is_same/is_same.cc: Likewise.
332 * testsuite/tr1/4_metaprogramming/type_properties/is_const/
333 is_const.cc: Likewise.
334 * testsuite/tr1/4_metaprogramming/type_properties/is_volatile/
335 is_volatile.cc: Likewise.
337 2004-12-10 Paolo Carlini <pcarlini@suse.de>
339 * include/tr1/type_traits: Implement remove_const, remove_volatile,
341 * testsuite/tr1/4_metaprogramming/const_volatile_modifications/
342 remove_const.cc: New.
343 * testsuite/tr1/4_metaprogramming/const_volatile_modifications/
344 remove_cv.cc: Likewise.
345 * testsuite/tr1/4_metaprogramming/const_volatile_modifications/
346 remove_volatile.cc: Likewise.
348 * testsuite/tr1/4_metaprogramming/primary_type_categories/
349 is_array/is_array.cc: Slightly tweak consistently, remove typedefs,
352 2004-12-09 Paolo Carlini <pcarlini@suse.de>
354 * include/tr1/type_traits: Implement remove_extent and
356 * testsuite/tr1/4_metaprogramming/array_modifications/
357 remove_all_extents.cc: New.
358 * testsuite/tr1/4_metaprogramming/array_modifications/
359 remove_extent.cc: Likewise.
361 2004-12-08 Paolo Carlini <pcarlini@suse.de>
363 * include/tr1/type_traits: Implement is_same, add_reference and
365 * testsuite/testsuite_tr1.h (test_relationship): New.
366 * testsuite/tr1/4_metaprogramming/reference_modifications/
367 add_reference.cc: New.
368 * testsuite/tr1/4_metaprogramming/reference_modifications/
369 remove_reference.cc: Likewise.
370 * testsuite/tr1/4_metaprogramming/relationships_between_types/
371 is_same/is_same.cc: Likewise.
372 * testsuite/tr1/4_metaprogramming/relationships_between_types/
373 is_same/typedefs.cc: Likewise.
375 * testsuite/tr1/4_metaprogramming/type_properties/is_const/
376 is_const.cc: Minor tweaks.
377 * testsuite/tr1/4_metaprogramming/type_properties/is_volatile/
378 is_volatile.cc: Likewise.
380 2004-12-08 David Edelsohn <edelsohn@gnu.org>
382 * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
384 * Makefile.in: Regenerated.
386 2004-12-07 Paolo Carlini <pcarlini@suse.de>
388 * include/tr1/type_traits: Implement is_const and is_volatile.
389 * testsuite/testsuite_tr1.h (test_property): New.
390 * testsuite/tr1/4_metaprogramming/type_properties/
391 is_const/is_const.c: New.
392 * testsuite/tr1/4_metaprogramming/type_properties/
393 is_const/typedefs.cc: Likewise.
394 * testsuite/tr1/4_metaprogramming/type_properties/
395 is_volatile/is_volatile.cc: Likewise.
396 * testsuite/tr1/4_metaprogramming/type_properties/
397 is_volatile/typedefs.cc: Likewise.
398 * testsuite/tr1/4_metaprogramming/composite_type_traits/
399 is_arithmetic/is_arithmetic.cc: Slightly tweak to use ClassType
400 from testsuite_tr1.h.
401 * testsuite/tr1/4_metaprogramming/composite_type_traits/
402 is_fundamental/is_fundamental.cc: Likewise.
403 * testsuite/tr1/4_metaprogramming/primary_type_categories/
404 is_array/is_array.cc: Likewise.
405 * testsuite/tr1/4_metaprogramming/primary_type_categories/
406 is_floating_point/is_floating_point.cc: Likewise.
407 * testsuite/tr1/4_metaprogramming/primary_type_categories/
408 is_integral/is_integral.cc: Likewise.
409 * testsuite/tr1/4_metaprogramming/primary_type_categories/
410 is_reference/is_reference.cc: Likewise.
411 * testsuite/tr1/4_metaprogramming/primary_type_categories/
412 is_void/is_void.cc: Likewise.
414 2004-12-06 Paolo Carlini <pcarlini@suse.de>
416 * include/tr1/type_traits: Implement is_reference.
417 * testsuite/tr1/4_metaprogramming/primary_type_categories/
418 is_reference/is_reference.cc: New.
419 * testsuite/tr1/4_metaprogramming/primary_type_categories/
420 is_reference/typedefs.cc: Likewise.
422 2004-12-05 Paolo Carlini <pcarlini@suse.de>
425 * testsuite/testsuite_performance.h: Fix mallinfo macros for
428 2004-12-04 Richard Henderson <rth@redhat.com>
430 * testsuite/26_numerics/complex/pow.cc: Use -mieee on alpha.
432 2004-12-04 Richard Henderson <rth@redhat.com>
434 * include/ext/malloc_allocator.h: Include cstdlib.
436 2004-12-04 Paolo Carlini <pcarlini@suse.de>
438 * include/tr1/type_traits: New.
439 * include/Makefile.am: Add.
440 * include/Makefile.in: Regenerate.
441 * testsuite/testsuite_tr1.h: New.
442 * testsuite/tr1/4_metaprogramming/composite_type_traits/
443 is_arithmetic/is_arithmetic.cc: New.
444 * testsuite/tr1/4_metaprogramming/composite_type_traits/
445 is_arithmetic/typedefs.cc: Likewise.
446 * testsuite/tr1/4_metaprogramming/composite_type_traits/
447 is_fundamental/is_fundamental.cc: Likewise.
448 * testsuite/tr1/4_metaprogramming/composite_type_traits/
449 is_fundamental/typedefs.cc: Likewise.
450 * testsuite/tr1/4_metaprogramming/helper_classes/
451 true_false_type.cc: Likewise.
452 * testsuite/tr1/4_metaprogramming/helper_classes/
453 true_false_type_typedefs.cc: Likewise.
454 * testsuite/tr1/4_metaprogramming/helper_classes/
455 typedefs.cc: Likewise.
456 * testsuite/tr1/4_metaprogramming/primary_type_categories/
457 is_array/is_array.cc: Likewise.
458 * testsuite/tr1/4_metaprogramming/primary_type_categories/
459 is_array/typedefs.cc: Likewise.
460 * testsuite/tr1/4_metaprogramming/primary_type_categories/
461 is_floating_point/is_floating_point.cc: Likewise.
462 * testsuite/tr1/4_metaprogramming/primary_type_categories/
463 is_floating_point/typedefs.cc: Likewise.
464 * testsuite/tr1/4_metaprogramming/primary_type_categories/
465 is_integral/is_integral.cc: Likewise.
466 * testsuite/tr1/4_metaprogramming/primary_type_categories/
467 is_integral/typedefs.cc: Likewise.
468 * testsuite/tr1/4_metaprogramming/primary_type_categories/
469 is_void/is_void.cc: Likewise.
470 * testsuite/tr1/4_metaprogramming/primary_type_categories/
471 is_void/typedefs.cc: Likewise.
473 2004-12-02 Paolo Carlini <pcarlini@suse.de>
475 * testsuite/testsuite_io.h (class sync_buf): New, templatized
476 version of sync_streambuf; add typedefs for streambuf/wstreambuf.
477 (class fail_buf): Likewise, for fail_streambuf.
478 (class fail_num_get): Templatize and add char/wchar_t typedefs.
479 (class fail_num_put): Likewise.
480 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
481 exceptions_badbit_throw.cc: Use the latter.
482 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
483 exceptions_failbit_throw.cc: Likewise.
484 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
485 exceptions_badbit_throw.cc: Likewise.
486 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
487 exceptions_failbit_throw.cc: Likewise.
489 2004-12-01 Paolo Carlini <pcarlini@suse.de>
491 * testsuite/27_io/basic_istream/get/wchar_t/1.cc: New.
492 * testsuite/27_io/basic_istream/get/wchar_t/2.cc: Likewise.
493 * testsuite/27_io/basic_istream/get/wchar_t/3.cc: Likewise.
494 * testsuite/27_io/basic_istream/ignore/wchar_t/1.cc: Likewise.
495 * testsuite/27_io/basic_istream/ignore/wchar_t/2.cc: Likewise.
496 * testsuite/27_io/basic_istream/ignore/wchar_t/3.cc: Likewise.
497 * testsuite/27_io/basic_istream/ignore/wchar_t/6360.cc: Likewise.
498 * testsuite/27_io/basic_istream/ignore/wchar_t/7220.cc: Likewise.
500 2004-11-29 Paolo Carlini <pcarlini@suse.de>
502 * testsuite/21_strings/basic_string/capacity/char/18654.cc: Use
504 * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: Same.
506 2004-11-29 Paolo Carlini <pcarlini@suse.de>
509 * include/bits/basic_string.tcc (_Rep::_S_create): When shrinking,
510 do not round to pagesize.
511 * testsuite/21_strings/basic_string/capacity/char/18654.cc: New.
512 * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: New.
514 2004-11-27 Paolo Carlini <pcarlini@suse.de>
517 * include/tr1/utility (get(pair), get(const pair)): Change
518 occurrences of _I to _Int.
520 2004-11-27 Paolo Carlini <pcarlini@suse.de>
522 * testsuite/27_io/basic_istream/getline/wchar_t/2.cc: Fix typo.
523 * testsuite/27_io/basic_istream/getline/wchar_t/4.cc: Likewise.
525 * testsuite/22_locale/time_put/put/char/17038.cc: Use VERIFY.
526 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
527 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: Likewise.
528 * testsuite/27_io/basic_ios/exceptions/char/2.cc: Likewise.
530 2004-11-26 Paolo Carlini <pcarlini@suse.de>
532 DR 243. get and getline when sentry reports failure [WP]
533 * include/bits/istream.tcc (istream<>::get, istream<>::getline):
534 Store a null character only if the array has a non-zero size.
535 * src/istream.cc (istream<char>::getline, istream<wchar_t>::getline):
537 * testsuite/27_io/basic_istream/get/char/3.cc: New.
538 * testsuite/27_io/basic_istream/getline/char/6.cc: New.
539 * testsuite/27_io/basic_istream/getline/wchar_t/6.cc: New.
540 * docs/html/ext/howto.html: Add an entry for DR 243.
542 * testsuite/27_io/basic_istream/getline/wchar_t/1.cc: New.
543 * testsuite/27_io/basic_istream/getline/wchar_t/2.cc: New.
544 * testsuite/27_io/basic_istream/getline/wchar_t/3.cc: New.
545 * testsuite/27_io/basic_istream/getline/wchar_t/4.cc: New.
546 * testsuite/27_io/basic_istream/getline/wchar_t/5.cc: New.
548 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
550 * configure: Regenerate for libtool change.
552 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
554 * Makefile.in, aclocal.m4: Regenerate with automake 1.9.3.
555 * include/Makefile.in: Likewise.
556 * libmath/Makefile.in: Likewise.
557 * libsupc++/Makefile.in: Likewise.
558 * po/Makefile.in: Likewise.
559 * src/Makefile.in: Likewise.
560 * testsuite/Makefile.in: Likewise.
562 2004-11-24 Jonathan Wakely <redi@kayari.org>
564 * docs/html/ext/howto.html: Fix incorrect link.
565 * docs/html/documentation.html: Regenerate.
567 2004-11-24 Nathan Myers <ncm@cantrip.org>
569 * include/bits/streambuf_iterator.h
570 (istreambuf_iterator<>::operator++(), operator++(int)): Don't
571 check unnecessarily the return value of _M_sbuf->sbumpc().
573 2004-11-24 Benjamin Kosnik <bkoz@redhat.com>
575 * include/Makefile.am (tr1_headers): Add utility, functional.
576 * include/Makefile.in: Regenerate.
578 2004-11-24 Chris Jefferson <chris@bubblescope.net>
580 * include/tr1/tuple(operator!=): Change operator
581 definition to match (draft) technical report.
585 (ref): Move to include/tr1/functional.
587 (tuple_size<pair>): Move to include/tr1/utility.
588 (tuple_element<,pair>): Same.
589 * include/tr1/functional: New.
590 * include/tr1/utility: New.
591 * testsuite/tr1/6_container/utility/pair.cc: New.
593 2004-11-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
595 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
596 (do_out, do_unshift, do_in): Remove redundant typedef.
598 2004-11-23 Chris Jefferson <chris@bubblescope.net>
600 * testsuite/testsuite_iterators.h: New.
601 * testsuite/25_algorithms/search_n/iterator.cc: New.
602 * testsuite/performance/25_algorithms/search_n.cc: New.
604 2004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
606 * testsuite/lib/libstdc++.exp: Use new procs in target-libpath.exp.
608 2004-11-23 Benjamin Kosnik <bkoz@redhat.com>
610 * docs/doxygen/doxygroups.cc: Add std::tr1 namespace.
611 * docs/doxygen/run_doxygen: Renames for std::tr1.
612 * docs/doxygen/user.cfg.in: Add cxxabi.h.
613 * include/bits/*.tcc: Add file markup.
614 * include/bits/allocator.h: Add link to allocator.html.
615 * include/bits/atomicity.h: Add file markup.
616 * include/bits/concurrence.h: Same.
617 * include/bits/functexcept.h: Same.
618 * include/ext*: Adjust file markup, remove GCC3 bits.
619 * include/std/*: Adjust file markup, remove bits about renamed files.
620 * libsupc++/cxxabi.h: Add file markup.
621 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust line numbers.
623 2004-11-22 Benjamin Kosnik <bkoz@redhat.com>
625 * include/bits/locale_facets.h (isspace, isprint, isupper,
626 islower, isalpha, isdigit, ispunct, isxdigit, isalnum, isgraph,
627 toupper, tolower): Add doxygen markup.
628 (codecvt_byname, ctype_byname, numpunct_byname, collate_byname,
629 time_get_byname, time_put_byname, moneypunct_byname,
630 messages_byname): Same.
631 * include/std/std_fstream.h: Remove superfluous markup.
632 * include/std/std_sstream.h: Same.
633 * include/std/std_streambuf.h: Same.
634 * include/ext/enc_filebuf.h: Adjust markup.
635 * include/ext/stdio_filebuf.h: Same.
636 * include/ext/stdio_sync_filebuf.h: Same.
637 * include/bits/codecvt.h: Same.
638 * config/os/gnu-linux/ctype_base.h: Same.
639 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
640 * include/tr1/array: Add markup.
641 * include/tr1/tuple: Same.
643 * docs/doxygen/run_doxygen: Print arguments.
645 * docs/doxygen/user.cfg.in: Tweaks.
647 2004-11-19 Jonathan Wakely <redi@gcc.gnu.org>
649 * include/bits/basic_string.h, include/bits/locale_classes.h,
650 include/bits/valarray_after.h, include/bits/valarray_before.h,
651 include/ext/stdio_sync_filebuf.h, include/std/std_algorithm.h,
652 include/std/std_functional.h, include/std/std_memory.h,
653 include/std/std_numeric.h: Doxygen fixes.
655 2004-11-19 Paolo Carlini <pcarlini@suse.de>
657 * testsuite/22_locale/time_get/get_date/char/1.cc: In the checks
658 use, more correctly (and consistently with other testcases) the
659 return value of the facet (the iterator arguments are by value).
660 * testsuite/22_locale/time_get/get_date/char/12791.cc: Likewise.
661 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
662 * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: Likewise.
663 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
664 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
665 * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
666 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
667 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
668 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
669 * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
670 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
672 2004-11-19 Jonathan Wakely <redi@gcc.gnu.org>
674 * Makefile.am (doxygen, doxygen-maint, doxygen-man): Remove extra '$'
675 from host_alias variable.
676 * Makefile.in: Regenerate.
678 2004-11-19 Chris Jefferson <chris@bubblescope.net>
680 * include/bits/stl_list.h (list::back, list::back const):
681 Don't decrement temporary.
683 2004-11-19 Paolo Carlini <pcarlini@suse.de>
685 * include/bits/stl_deque.h (deque::front, deque::front const,
686 deque::back, deque::back const): Slightly tweak for stylistic
689 2004-11-18 Paolo Carlini <pcarlini@suse.de>
691 * testsuite/26_numerics/numeric/sum_diff.cc: Use VERIFY.
692 * testsuite/ext/array_allocator/1.cc: Likewise.
693 * testsuite/ext/array_allocator/2.cc: Likewise.
694 * testsuite/ext/array_allocator/3.cc: Likewise.
695 * testsuite/ext/enc_filebuf/char/13598.cc: Likewise.
697 2004-11-18 Paolo Carlini <pcarlini@suse.de>
699 * include/bits/locale_facets.tcc (num_get<>::do_get(void*&)):
700 If the failbit is set, don't set it again.
701 (money_get<>::_M_extract): Minor stylistic tweak: consistently
702 with the other functions, take care of eofbit at the end.
704 2004-11-18 Paolo Carlini <pcarlini@suse.de>
706 DR 434. bitset::to_string() hard to use [Ready]
707 * include/std/std_bitset.h (to_string): Add three overloads, taking
708 fewer template arguments.
709 * docs/html/ext/howto.html: Add an entry for DR 434.
710 * testsuite/23_containers/bitset/to_string/1.cc: New.
712 2004-11-17 Paolo Carlini <pcarlini@suse.de>
714 * include/bits/istream.tcc (getline(basic_istream<>&, basic_string<>&,
715 _CharT)): Remove temporary kludge for libstdc++/15002.
716 * include/std/std_streambuf.h (class basic_streambuf): Declare
717 getline(basic_istream<>&, basic_string<>&, _CharT) as friend.
718 * include/bits/basic_string.h (getline(basic_istream<>&,
719 basic_string<>&, _CharT)): Declare optimized specializations for
720 char and wchar_t, using protected members of basic_streambuf.
721 * src/istream.cc: Define the latter.
723 2004-11-16 Jonathan Wakely <redi@gcc.gnu.org>
725 * docs/html/19_diagnostics/howto.html: Document change from
726 _GLIBCPP_CONCEPT_CHECKS to _GLIBCXX_CONCEPT_CHECKS in 3.4.
728 2004-11-16 Matthias Klose <doko@debian.org>
730 * docs/doxygen/user.cfg.in: Set HAVE_DOT to NO.
732 2004-11-16 Matthias Klose <doko@debian.org>
734 * Makefile.am (doxygen, doxygen-maint, doxygen-man): Use host_alias
735 instead of build_alias.
736 * docs/doxygen/run_doxygen: Likewise.
737 * docs/doxygen/user.cfg.in: Likewise.
738 * Makefile.in: Regenerate.
740 2004-11-15 Paolo Carlini <pcarlini@suse.de>
742 * include/bits/streambuf.tcc (__copy_streambufs): Provide
743 a generic version of the function, not using the protected
744 members of basic_streambuf.
745 * include/std/std_streambuf.h (__copy_streambufs): Declare
746 optimized specializations for char and wchar_t.
747 * src/streambuf.cc: New file, define the latter.
748 * src/Makefile.am: Add.
749 * src/Makefile.in: Regenerate.
751 2004-11-15 Matthias Klose <doko@debian.org>
753 * docs/doxygen/run_doxygen: Add --build_alias option,
754 substitute it in docs/doxygen/user.cfg.in.
755 * docs/doxygen/user.cfg.in: Use build_alias.
756 * Makefile.am: Pass --build_alias to run_doxygen
757 * Makefile.in: Regenerate.
759 2004-11-15 Benjamin Kosnik <bkoz@redhat.com>
761 * testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.4.
763 2004-11-15 Paolo Carlini <pcarlini@suse.de>
765 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 33.
767 2004-11-14 Paolo Carlini <pcarlini@suse.de>
769 * include/bits/streambuf_iterator.h (istreambuf_iterator::_M_get):
770 Slightly tweak for clarity (also leads to measurably better code).
772 2004-11-12 Andrew Pinski <pinskia@physics.uc.edu>
775 * testsuite/lib/libstdc++.exp: Set LC_ALL and LANG to C.
777 2004-11-09 Paolo Carlini <pcarlini@suse.de>
779 * include/bits/locale_facets.tcc (time_get<>::do_get_weekday,
780 time_get<>::do_get_monthname): Absolutely avoid dereferencing
783 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
786 2004-11-08 Benjamin Kosnik <bkoz@redhat.com>
787 Doug Gregor <dgregor@cs.indiana.edu>
790 * src/debug.cc : Just use one mutex.
792 2004-11-08 Benjamin Kosnik <bkoz@redhat.com>
794 * configure.ac (libtool_VERSION): To 6:4:0.
795 * configure: Regenerate.
797 * config/linker-map.gnu: Slide new symbols into GLIBCXX_3.4.4.
799 * docs/doxygen/user.cfg.in: Add more extension files.
801 2004-11-08 Paolo Carlini <pcarlini@suse.de>
803 * include/bits/streambuf_iterator.h (class istreambuf_iterator):
804 Consistently use _M_c to cache the current char, i.e., not only
805 when operator++(int) is involved; change _M_c to mutable.
806 (_M_get()): Always save the return value of _M_sbuf->sgetc() into
808 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Fix
809 (long standing) typo.
810 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
811 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
812 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
814 2004-11-08 Paolo Carlini <pcarlini@suse.de>
816 * include/bits/istream.tcc (getline(char_type*, streamsize,
817 char_type), ignore(streamsize), ignore(streamsize, int_type)):
818 Restore a generic version of the functions, not using the
819 protected members of basic_streambuf.
820 * include/std/std_istream.h (getline(char_type*, streamsize,
821 char_type), ignore(streamsize), ignore(streamsize, int_type)):
822 Declare optimized specializations for char and wchar_t.
823 * src/istream.cc: New file, define the latter.
824 * src/Makefile.am: Add.
825 * src/Makefile.in: Regenerate.
827 2004-11-07 Paolo Carlini <pcarlini@suse.de>
829 * testsuite/performance/27_io/ifstream_getline-2.cc: New.
831 2004-11-05 Benjamin Kosnik <bkoz@redhat.com>
835 * docs/doxygen/filter: Remove.
836 * docs/doxygen/filter.sed: Remove.
837 * docs/doxygen/mainpage.html: Add link to functions.
838 * docs/doxygen/run_doxygen: Changes due to new source filtering.
839 * docs/doxygen/user.cfg.in: Update to doxygen 1.3.9.1, tweak.
840 * include/bits/allocator.h: Tweaks for doxygen.
841 * include/bits/char_traits.h: Same.
842 * include/bits/codecvt.h: Same.
843 * include/bits/concurrence.h: Same.
844 * include/bits/locale_facets.h: Same.
845 * include/ext/array_allocator.h: Same.
846 * include/ext/debug_allocator.h: Same.
847 * include/ext/malloc_allocator.h: Same.
848 * include/ext/mt_allocator.h: Same.
849 * include/ext/new_allocator.h: Same.
850 * include/ext/pool_allocator.h: Same.
851 * include/ext/stdio_sync_filebuf.h: Same.
852 * include/std/std_memory.h: Same.
853 * include/tr1/array: Same.
854 * include/tr1/tuple: Same.
855 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
856 * config/os/gnu-linux/ctype_base.h: Same.
858 2004-11-04 Paolo Carlini <pcarlini@suse.de>
860 * include/bits/locale_facets.tcc (num_get<>::do_get(bool&)):
861 Evaluate __beg == __end the exact strict minimum number of times.
863 2004-11-03 Jonathan Wakely <redi@gcc.gnu.org>
865 * include/bits/stl_numeric.h (partial_sum, adjacent_difference):
866 Avoid dereferencing two times __first in the prologue.
868 2004-11-03 Paolo Carlini <pcarlini@suse.de>
870 * include/bits/stl_numeric.h: Trivial formatting fixes.
872 2004-11-03 Benjamin Kosnik <bkoz@redhat.com>
874 * include/bits/c++config: Spacing.
875 * libsupc++/del_op.cc: Include c++config.h.
876 * libsupc++/del_opnt.cc: Same.
877 * libsupc++/del_opv.cc: Same.
878 * libsupc++/del_opvnt.cc: Same.
879 * libsupc++/new_op.cc: Same.
880 * libsupc++/new_opnt.cc: Same.
881 * libsupc++/new_opv.cc: Same.
882 * libsupc++/new_opvnt.cc: Same.
884 2004-11-03 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
886 * config/os/bsd/darwin/os_defines.h
887 (_GLIBCXX_WEAK_DEFINITION): Define.
888 * include/bits/c++config (_GLIBCXX_WEAK_DEFINITION): Define.
889 * libsupc++/del_op.cc (operator delete(void *)): Use
890 _GLIBCXX_WEAK_DEFINITION.
891 * libsupc++/del_opnt.cc
892 (operator delete(void *, const std::nothrow_t&)): Same.
893 * libsupc++/del_opv.cc (operator delete[](void *)): Same.
894 * libsupc++/del_opvnt.cc
895 (operator delete[](void *, const std::nothrow_t&)): Same.
896 * libsupc++/new_op.cc (operator new(std::size_t)): Same.
897 * libsupc++/new_opnt.cc
898 (operator new(std::size_t, const std::nothrow_t&)): Same
899 * libsupc++/new_opv.cc (operator new[](std::size_t)): Same.
900 * libsupc++/new_opvnt.cc
901 (operator new[](std::size_t, const std::nothrow_t&)): Same.
903 2004-11-02 Paolo Carlini <pcarlini@suse.de>
905 * include/bits/locale_facets.tcc (num_get<>::_M_extract_int):
906 Evaluate *__beg the exact strict minimum number of times; likewise
907 for __beg != __end; slightly simplify main parsing loop.
909 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
910 Lothar Werzinger <lothar@xcerla.com>
913 * src/debug.cc: Include concurrence, use mutexes.
914 (_Safe_iterator_base::_M_attach): Here.
915 (_Safe_iterator_base::_M_detach): Here.
917 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
920 * include/bits/ios_base.h : Add enum values.
921 * testsuite/testsuite_hooks.h (bitmask_operators): Add function.
922 * testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: New.
923 * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: New.
924 * testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: New.
925 * testsuite/27_io/ios_base/types/iostate/case_label.cc: New.
926 * testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: New.
927 * testsuite/27_io/ios_base/types/openmode/case_label.cc: New.
928 * testsuite/27_io/ios_base/types/seekdir/case_label.cc: New.
930 * config/io/c_io_stdio.h (__ios_flags): Mark deprecated.
933 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
934 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
936 2004-11-01 Momchil Velikov <velco@fadata.bg>
939 * libsupc++/eh_globals.cc (get_globals_dtor): Delete unhandled
941 * testsuite/thread/18185.cc: New.
943 2004-11-01 Chris Jefferson <chris@bubblescope.net>
946 * include/tr1/tuple (get(pair)): Change occurrences of _I to _Int.
947 (get(const pair)): Likewise.
949 2004-11-01 Paolo Carlini <pcarlini@suse.de>
951 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
952 Evaluate *__beg the exact strict minimum number of times; likewise
953 for __beg != __end; in the main parsing loop, call ++__beg in two
954 places only. The former is also a correctness issue, because,
955 according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
956 dereferenced only one time for each increment.
958 2004-10-31 Benjamin Kosnik <bkoz@redhat.com>
961 * testsuite/23_containers/set/modifiers/16728.cc: New.
963 2004-10-30 Paolo Carlini <pcarlini@suse.de>
965 * include/ext/bitmap_allocator.h (allocate(size_type)): Minor tweak.
967 * testsuite/ext/bitmap_allocator/check_delete.cc: New.
968 * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
970 2004-10-29 Geoffrey Keating <geoffk@apple.com>
972 * configure.host (darwin*): Set os_include_dir to a separate directory
974 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add a new C locale kind,
976 * config/locale/darwin/ctype_members.cc: New.
977 * config/os/bsd/darwin/ctype_base.h: New.
978 * config/os/bsd/darwin/ctype_inline.h: New.
979 * config/os/bsd/darwin/ctype_noninline.h: New.
980 * config/os/bsd/darwin/os_defines.h: New.
982 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Only xfail
985 2004-10-29 Chris Jefferson <chris@bubblescope.net>
987 * include/bit/stl_algo.h (find_first_of(,,,,pred)):
988 Remove invalid EqualOpConcept.
989 * testsuite/25_algorithms/find_first_of/concept_check_1.cc: New.
991 2004-10-29 Benjamin Kosnik <bkoz@redhat.com>
993 * testsuite/testsuite_allocator.h (check_delete): New.
994 (check_new): Simplify.
995 * testsuite/ext/array_allocator/check_delete.cc: New.
996 * testsuite/ext/array_allocator/check_new.cc: Simplify.
997 * testsuite/ext/debug_allocator/check_delete.cc: New.
998 * testsuite/ext/debug_allocator/check_new.cc: Simplify.
999 * testsuite/ext/malloc_allocator/check_delete.cc: New.
1000 * testsuite/ext/malloc_allocator/check_new.cc: Simplify.
1001 * testsuite/ext/mt_allocator/check_delete.cc: New.
1002 * testsuite/ext/mt_allocator/check_new.cc: Simplify.
1003 * testsuite/ext/new_allocator/check_delete.cc: New.
1004 * testsuite/ext/new_allocator/check_new.cc: Simplify.
1005 * testsuite/ext/pool_allocator/check_delete.cc: New.
1006 * testsuite/ext/pool_allocator/check_new.cc: Simplify.
1008 2004-10-28 Chris Jefferson <chris@bubblescope.net>
1011 * include/tr1/tuple: Fix, change formatting.
1013 2004-10-28 Benjamin Kosnik <bkoz@redhat.com>
1015 * include/ext/mt_allocator.h (__common_pool_policy): Add template
1016 template parameter for pool class type.
1017 (__per_type_pool_policy): Same.
1018 (__mt_allocator): Don't inherit policy. Qualify policy_type calls.
1019 * testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix.
1020 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same.
1021 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
1022 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
1023 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
1024 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
1025 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
1026 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
1027 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
1028 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
1029 * testsuite/ext/mt_allocator/instantiate.cc: Same.
1030 * testsuite/ext/mt_allocator/tune-1.cc: Same.
1031 * testsuite/ext/mt_allocator/tune-2.cc: Same.
1032 * testsuite/ext/mt_allocator/tune-3.cc: Same.
1033 * testsuite/ext/mt_allocator/tune-4.cc: Same.
1035 2004-10-28 Paolo Carlini <pcarlini@suse.de>
1037 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
1038 Cache *__beg in __c when parsing exponent sign too.
1039 (num_get<>::do_get(..., bool&)): Cache *__beg.
1040 (money_get<>::_M_extract)): Likewise, in money_base::value.
1042 2004-10-27 Paolo Carlini <pcarlini@suse.de>
1044 * include/bits/basic_string.h (assign(const basic_string&)):
1046 * include/bits/basic_string.tcc: ... here.
1048 2004-10-27 Paolo Carlini <pcarlini@suse.de>
1050 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
1052 * include/bits/basic_string.tcc: ... here.
1054 2004-10-26 Paolo Carlini <pcarlini@suse.de>
1056 * include/bits/basic_string.h (append(const basic_string&),
1057 append(size_type, _CharT)): Move out of line...
1058 * include/bits/basic_string.tcc: ... here.
1060 2004-10-26 Paolo Carlini <pcarlini@suse.de>
1062 * include/bits/basic_string.h (erase(size_type, size_type),
1063 erase(iterator), erase(iterator, iterator)): Call _M_mutate
1064 instead of _M_replace_safe, equivalent when the fourth argument
1065 is zero and simpler.
1067 2004-10-26 Benjamin Kosnik <bkoz@redhat.com>
1069 * include/ext/array_allocator.h (array::allocate): Check for valid
1070 array object, use its size member function directly.
1071 * testsuite/ext/array_allocator/3.cc: New.
1072 * docs/html/20_util/allocator.html: Add docs.
1074 2004-10-25 Geoffrey Keating <geoffk@apple.com>
1076 * configure.host (darwin*): Build libstdc++ single module
1078 * libsupc++/new_op.cc (new): Make weak.
1079 * libsupc++/new_opnt.cc (new): Make weak.
1080 * libsupc++/new_opv.cc (new): Make weak.
1081 * libsupc++/new_opvnt.cc (new): Make weak.
1082 * libsupc++/delete_op.cc (delete): Make weak.
1083 * libsupc++/delete_opnt.cc (delete): Make weak.
1084 * libsupc++/delete_opv.cc (delete): Make weak.
1085 * libsupc++/delete_opvnt.cc (delete): Make weak.
1087 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
1089 * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
1090 (AUTOMAKE_OPTIONS): Add nostdinc.
1091 * testsuite/Makefile.in: Regenerate.
1092 * scripts/testsuite_flags.in (build-includes): Remove redundant
1093 search for libsupc++.
1094 * fragment.am: Clean.
1096 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
1098 * include/Makefile.am (tr1_headers): Add tuple.
1099 * include/Makefile.in: Regenerate.
1101 2004-10-25 Chris Jefferson <chris@bubblescope.net>
1103 * include/tr1/tuple: Implementation of tuple from library TR.
1104 * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
1105 * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
1106 * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
1108 * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
1109 * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
1110 * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
1111 * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc:
1113 * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
1114 * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
1116 2004-10-25 Paolo Carlini <pcarlini@suse.de>
1118 * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
1119 basic_string as _M_disjunct, adjust to take only __s.
1120 * include/bits/basic_string.tcc: Adjust consistently callers.
1122 2004-10-25 Paolo Carlini <pcarlini@suse.de>
1124 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
1125 Adjust bit missing from the previous commit.
1127 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
1130 * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
1132 2004-10-25 Paolo Carlini <pcarlini@suse.de>
1134 * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
1135 _M_move, _M_copy, _M_assign): New, use througout.
1136 (operator+=(_CharT)): Define in terms of push_back.
1137 (append(const basic_string&)): Define here, inline, and simplify,
1138 don't use the full _M_replace_safe.
1139 (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
1140 (push_back): Likewise.
1141 (assign(const basic_string&)): Define here, inline.
1142 * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
1143 Fix: when s points inside the _Rep, upon reallocation (reserve) we
1144 were copying from deallocated memory.
1145 (append(const basic_string&, size_type, size_type)): Simplify,
1146 don't use _M_replace_safe.
1147 (replace(size_type, size_type, const _CharT*, size_type)): Slightly
1149 (reserve): Likewise.
1150 * testsuite/21_strings/basic_string/append/char/2.cc: New.
1151 * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
1152 * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
1153 * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
1155 * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
1156 * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
1158 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
1160 * testsuite/ext/mt_allocator/deallocate_global-2.c:
1161 s/value_t/value_type/. s/traits_t/traits_type/.
1162 s/policy_t/policy_type/. s/allocator_t/allocator_type/.
1163 s/string_t/string_type/. s/list_t/list_type/.
1164 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
1165 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
1166 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
1167 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
1168 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
1169 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
1170 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
1172 2004-10-21 Benjamin Kosnik <bkoz@redhat.com>
1174 * include/tr1/array (array): Make safe for zero-sized arrays.
1175 (array::end): Return one past the end.
1176 (array::at): Use __throw_out_of_range, include functexcept.h.
1177 (operator==): Implement.
1183 * testsuite/tr1/6_containers/array/capacity/(empty.cc,
1184 max_size.cc, size.cc): New.
1185 * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
1186 greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
1188 * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
1190 * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc:
1192 * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
1193 * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
1194 instantiate, typedefs, zero_size_arrays): New.
1196 2004-10-21 Paolo Carlini <pcarlini@suse.de>
1197 Benjamin Kosnik <bkoz@redhat.com>
1199 * include/bits/basic_string.h (_M_set_length_and_sharable): New.
1200 * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
1201 size_type), _M_mutate, _M_clone): Use it.
1202 (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
1204 2004-10-21 Paolo Carlini <pcarlini@suse.de>
1205 Dhruv Matani <dhruvbird@gmx.net>
1206 Nathan Myers <ncm@cantrip.org>
1208 * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
1209 _M_range_insert): Check at the outset that we are not trying
1210 to exceed max_size, then deal properly with __len overflows.
1211 * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
1213 * testsuite/testsuite_allocator.h: Remove redundant include.
1215 2004-10-20 Paolo Carlini <pcarlini@suse.de>
1217 * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
1218 when n > max_size().
1219 * include/ext/malloc_allocator.h (allocate): Likewise.
1220 * include/ext/mt_allocator.h (allocate): Likewise.
1221 * include/ext/new_allocator.h (allocate): Likewise.
1222 * include/ext/array_allocator.h: Use __throw_bad_alloc().
1223 * include/ext/pool_allocator.h: Use __builtin_expect.
1224 * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
1225 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
1226 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
1227 * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
1228 * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
1229 * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
1230 * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
1232 2004-10-19 Paolo Carlini <pcarlini@suse.de>
1234 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1235 Include <ext/new_allocator.h>.
1236 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1238 2004-10-18 Paolo Carlini <pcarlini@suse.de>
1240 * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
1241 unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
1242 == capacity() (== 0): is ok to just leave everything unchanged.
1244 * include/bits/basic_string.h: Minor formatting fixes.
1245 * include/bits/basic_string.tcc: Likewise.
1247 2004-10-17 Benjamin Kosnik <bkoz@redhat.com>
1249 * include/ext/mt_allocator.h (__pool::_M_get_align): New.
1250 (__mt_alloc::allocate): Use it.
1251 * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
1252 (__pool::_M_reserve_block): Simplify block allocation.
1254 2004-10-17 Dhruv Matani <dhruvbird@gmx.net>
1255 Paolo Carlini <pcarlini@suse.de>
1257 * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
1258 makes the code 64-bit correct and also fixes (together with using at
1259 the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
1260 8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
1261 Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
1262 * src/bitmap_allocator.cc: Change to size_t.
1263 * config/linker-map.gnu: Adjust.
1265 2004-10-16 Benjamin Kosnik <bkoz@redhat.com>
1267 * include/tr1/array: Don't use layout_type.
1269 2004-10-16 Sashan Govender <sashang@gmail.com>
1271 * include/tr1/array (array::end const): Fix casting from iterator
1274 2004-10-15 Paolo Carlini <pcarlini@suse.de>
1276 * include/ext/bitmap_allocator.h: Qualify ::operator delete.
1277 * src/bitmap_allocator.cc: Likewise.
1278 * src/mt_allocator.cc: Use ::operator delete, not delete,
1279 consistently with ::operator new.
1281 * include/ext/bitmap_allocator.h (deallocate): Check for null
1283 * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
1284 * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
1286 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
1288 * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
1290 * include/ext/pool_allocator.h (debug_allocator::deallocate):
1291 Check pointer value.
1292 * include/ext/debug_allocator.h (debug_allocator::deallocate):
1293 Throw exceptions, don't abort.
1294 * include/ext/array_allocator.h
1295 (array_allocator_base::deallocate): Remove unused parameters.
1296 * testsuite/testsuite_allocator.h (check_deallocate_null): New.
1297 * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
1298 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
1299 * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
1300 * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
1301 * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
1302 * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
1303 * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
1305 * testsuite/testsuite_allocator.h (check_new): Add instance argument.
1306 * testsuite/ext/array_allocator/check_new.cc: New.
1308 2004-10-14 Paolo Carlini <pcarlini@suse.de>
1310 * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
1311 Rename __unused to __M_unused.
1313 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
1315 * testsuite/ext/headers.cc: Add includes, compile only.
1316 * testsuite/ext/hash_map.cc: Move to...
1317 * testsuite/ext/hash_map/1.cc: ...here.
1318 * testsuite/ext/14648.cc: Move to...
1319 * testsuite/ext/hash_map/14648.cc: ...here.
1320 * testsuite/ext/hash_map/instantiate.cc: Add.
1321 * testsuite/ext/hash_set.cc: Move to...
1322 * testsuite/ext/hash_set/1.cc: ...here.
1323 * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
1324 * testsuite/ext/hash_set/instantiate.cc: ...here.
1325 * testsuite/ext/hash_check_construct_destroy.cc: Move to...
1326 * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
1327 * testsuite/ext/slist_check_construct_destroy.cc: Move to...
1328 * testsuite/ext/slist/check_construct_destroy.cc: ...here.
1329 * testsuite/ext/slist_explicit_instantiation.cc: Move to...
1330 * testsuite/ext/slist/instantiate.cc: ...here.
1332 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
1334 * include/ext/mt_allocator.h: Tweaks.
1335 * src/mt_allocator.cc: Same.
1337 2004-10-14 Dhruv Matani <dhruvbird@gmx.net>
1339 * ext/bitmap_allocator.h: Clean-up add/remove functions.
1340 * src/bitmap_allocator.cc: New file. Contains the out-of-line
1341 function definitions, static initialization of variables, and
1342 explicit instantiations needed for the allocator.
1343 * src/Makefile.am: Add.
1344 * src/Makefile.in: Regenerate.
1345 * config/linker.map.gnu: Add the necessary symbols.
1347 2004-10-13 Paolo Carlini <pcarlini@suse.de>
1349 * include/bits/basic_string.tcc (_S_create): Use consistently
1350 the exponential policy, simplify.
1351 * testsuite/performance/21_strings/string_append_2.cc: New.
1353 * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
1354 * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
1355 that case sizeof(_Rep) == 24).
1357 2004-10-12 Paolo Carlini <pcarlini@suse.de>
1360 * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
1361 wrong commit of 2004-10-07.
1363 2004-10-12 Scott Snyder <snyder@fnal.gov>
1366 * testsuite/23_containers/set/modifiers/17948.cc: New.
1368 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
1370 * include/bits/stl_deque.h: Correct for over-long lines.
1372 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
1375 * include/ext/mt_allocator.h (__pool::_M_destroy): New.
1376 * src/mt_allocator.cc (__pool::~__pool): Change definitions to
1378 * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
1379 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
1380 * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
1381 * configure: Regenerate.
1382 * config/linker-map.gnu: Tweak exports.
1383 * docs/html/ext/mt_allocator.html: Update docs.
1384 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
1385 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.
1386 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
1387 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
1388 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
1389 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
1390 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
1391 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
1393 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
1395 PR libstdc++/16614 continued.
1396 * include/ext/mt_allocator.h
1397 (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
1398 specific type characteristics.
1399 (__pool_base): Add constructor that takes a _Tune argument.
1401 * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
1402 * testsuite/ext/mt_allocator/tune-4.cc: Same.
1403 * testsuite/ext/mt_allocator/tune-3.cc: Same.
1405 2004-10-11 Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
1406 Paolo Carlini <pcarlini@suse.de>
1408 * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
1409 Deal properly with exceptions thrown by ::operator new(size_t).
1410 * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
1412 * include/ext/pool_allocator.h: Include <cstdlib>.
1414 2004-10-10 Benjamin Kosnik <bkoz@redhat.com>
1416 * include/bits/functexcept.h: Add guards.
1418 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
1419 * configure: Regenerate.
1421 2004-10-10 Paolo Carlini <pcarlini@suse.de>
1423 * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
1424 Give __ret a default value, thus avoiding spurious warnings.
1426 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
1427 words or linux.words, otherwise exit.
1428 * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
1430 2004-10-09 Paolo Carlini <pcarlini@suse.de>
1432 * include/std/std_memory.h (__get_temporary_buffer): Don't use
1433 INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
1435 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
1438 2004-10-08 Benjamin Kosnik <bkoz@redhat.com>
1440 * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
1441 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
1442 * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
1443 * configure: Regenerate.
1444 * src/mt_allocator.cc (__pool::~__pool): Make conditional on
1445 _GLIBCXX_USE___CXA_ATEXIT macro.
1446 * docs/html/ext/mt_allocator.html: Add note about deallocation.
1447 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
1448 with _GLIBCXX_USE___CXA_ATEXIT.
1449 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
1450 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
1451 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
1452 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
1453 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
1454 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
1455 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
1457 2004-10-07 Phil Edwards <phil@codesourcery.com>
1459 * testsuite/lib/libstdc++.exp: Update list of undefined functions.
1461 2004-10-07 Paolo Carlini <pcarlini@suse.de>
1463 * include/bits/list.tcc (operator=): Avoid iterator postincrement.
1464 * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
1466 2004-10-07 Benjamin Kosnik <bkoz@redhat.com>
1469 * include/tr1/array: New.
1470 * include/Makefile.am (tr1_headers): New.
1472 (install-headers): New.
1473 (allstamped): Add stamp-tr1.
1475 * include/ext/array_allocator.h: New.
1476 * include/Makefile.am: Add.
1477 * include/Makefile.in: Regenerate.
1478 * testsuite/ext/array_allocator/1.cc: New.
1479 * testsuite/ext/array_allocator/2.cc: New.
1481 2004-10-07 Richard Earnshaw <rearnsha@arm.com>
1483 * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
1485 2004-10-07 Roger Sayle <roger@eyesopen.com>
1488 * configure.ac: Newlib does not provide strtold.
1489 * configure: Regenerate.
1491 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
1493 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
1494 (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
1495 * configure: Regenerated.
1496 * testsuite/Makefile.am (CLEANFILES): Add TEST for
1497 check-performance executables.
1498 (stamp_thread): New.
1499 (all-local): Use it.
1500 * testsuite/Makefile.in: Regenerate.
1501 * scripts/create_testsuite_files: Filter thread tests.
1503 * testsuite/thread/pthread1.cc: Remove macro conditionals: this
1504 file will only be run by thread enabled configurations.
1505 * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
1506 * testsuite/thread/pthread6.cc: Same.
1507 * testsuite/thread/pthread5.cc: Same.
1508 * testsuite/thread/pthread4.cc: Same.
1509 * testsuite/thread/pthread3.cc: Same.
1510 * testsuite/thread/pthread2.cc: Same.
1512 * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
1513 * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
1514 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
1515 * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
1516 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
1517 * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
1518 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
1519 * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
1520 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
1522 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
1523 Paolo Carlini <pcarlini@suse.de>
1526 * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
1527 to old locking order.
1529 2004-10-06 Paolo Carlini <pcarlini@suse.de>
1531 * include/std/std_sstream.h (_M_sync): When the caller is
1532 setbuf, don't trust _M_string.capacity() to be the size of
1533 the buffer area, use _M_string.size() in this case.
1534 * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
1535 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
1537 * include/bits/sstream.tcc (overflow): Avoid calling string::assign
1538 unnecessarily when the current _M_string is empty.
1540 2004-10-06 Paolo Carlini <pcarlini@suse.de>
1542 * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
1543 Avoid iterator postincrement.
1544 (__rotate): Likewise.
1546 * include/bits/stl_algo.h: Minor formatting tweaks.
1548 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
1550 * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
1551 Avoid iterator postincrement; fix swapping middle element with
1552 itself on odd-length inputs.
1554 2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
1557 * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
1558 options as compile-time constant enums.
1559 (__pool_base::_Tune::is_default): New.
1560 (__pool_base::_Block_address): New.
1561 (__pool_base): Rearrange data members.
1562 (__pool::_M_reserve_memory): To _M_reserve_block.
1563 (__pool::_M_reclaim_memory): To _M_reclaim_block.
1564 (__pool::_Bin_record): Add _Block_address data member.
1565 (__pool<false>): Add _M_thread_freelist_initial.
1566 (__pool::~__pool): Declare.
1567 (__common_pool_policy): Move static data member to...
1568 (__common_pool_policy::_S_get_pool): ...here, make static local.
1569 (__per_type_pool_policy): Move static data member to...
1570 (__per_type_pool_policy::_S_get_pool): ...here, make static local.
1571 (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
1572 Remove static member definitions. Use define for __default_policy.
1573 * src/mt_allocator.cc: Same.
1574 * config/linker-map.gnu: Don't export _S_get_pool. Renames.
1575 * testsuite/ext/new_allocator: New.
1576 * testsuite/ext/new_allocator/instantiate.cc: New.
1577 * testsuite/ext/new_allocator/check_new.cc: New.
1578 * testsuite/ext/new_allocator/deallocate_global.cc: New.
1579 * testsuite/ext/new_allocator/deallocate_local.cc: New.
1580 * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
1582 * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
1583 * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
1584 * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
1585 * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
1586 * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
1587 * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
1588 * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
1589 * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
1590 * testsuite/ext/mt_allocator/deallocate.cc: New.
1591 * testsuite/ext/malloc_allocator/deallocate.cc: New.
1592 * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
1593 * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
1595 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1597 * configure.host (abi_baseline_pair): Define for s390-*-linux* and
1599 * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
1600 * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
1602 2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
1604 * include/bits/stl_algobase.h (iter_swap): delegate to swap via
1605 __iter_swap when iterator's value_types are equal.
1606 (struct __iter_swap): New.
1608 2004-10-04 Benjamin Kosnik <bkoz@redhat.com>
1610 * configure.ac (libtool_VERSION): To 6:3:0.
1611 * configure: Regnerate.
1612 * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
1614 2004-10-04 Roger Sayle <roger@eyesopen.com>
1615 Eric Botcazou <ebotcazou@libertysurf.fr>
1618 * config/linker-map.gnu: Synchronize the current list of stub
1619 functions from libmath.
1621 2004-10-03 Roger Sayle <roger@eyesopen.com>
1623 * config/locale/generic/c_locale.cc (__convert_to_v): Use
1624 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
1625 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
1626 to check for presence of strtold.
1628 2004-10-03 Paolo Carlini <pcarlini@suse.de>
1630 * include/bits/stl_list.h: Trivial formatting fixes.
1631 * include/bits/stl_tree.h: Likewise.
1633 2004-10-03 Paolo Carlini <pcarlini@suse.de>
1635 * include/bits/sstream.tcc (seekpos): In case of success, just
1638 2004-10-01 Paolo Carlini <pcarlini@suse.de>
1640 * include/bits/sstream.tcc (pbackfail): Implement correctly
1641 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
1642 write in the buffer.
1643 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
1644 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
1645 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
1646 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
1647 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
1649 2004-10-01 Paolo Carlini <pcarlini@suse.de>
1651 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
1652 conditionals consistently with seekoff.
1653 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
1654 (_M_sync): Simplify a bit, clean-up comment.
1656 2004-09-30 Paolo Carlini <pcarlini@suse.de>
1658 PR libstdc++/10975 (DR 453)
1659 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
1661 * docs/html/ext/howto.html: Add an entry for DR 453.
1662 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
1663 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
1664 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
1665 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
1666 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
1667 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
1669 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
1670 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
1672 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
1674 2004-09-29 Paolo Carlini <pcarlini@suse.de>
1676 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
1677 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
1678 (str()): Slightly tweak, protect from pptr() == 0.
1679 (_M_update_egptr()): Likewise.
1680 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
1681 for an empty buffer use __beg instead of _M_string.capacity().
1682 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
1683 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
1685 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
1686 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
1687 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
1688 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
1690 2004-09-29 Paolo Carlini <pcarlini@suse.de>
1691 Benjamin Kosnik <bkoz@redhat.com>
1693 * testsuite/testsuite_io.h (class constraint_buf): New, extended
1694 and templatized version of constraint_filebuf; add typedefs for
1695 streambuf/stringbuf/filebuf and wchar_t counterparts.
1697 2004-09-28 Paolo Carlini <pcarlini@suse.de>
1700 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
1701 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
1702 don't deal with _S_empty_rep.
1703 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
1704 _M_leak_hard, _M_mutate): Likewise.
1705 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
1706 * acconfig.h: Add corresponding undef.
1707 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
1708 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
1709 * configure: Regenerate.
1710 * config.h.in: Likewise.
1712 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
1713 Paolo Carlini <pcarlini@suse.de>
1715 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
1716 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
1717 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
1718 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
1721 2004-09-28 Paolo Carlini <pcarlini@suse.de>
1723 * README: Remove obsolete entry about include/c_shadow.
1725 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
1728 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
1730 2004-09-24 Paolo Carlini <pcarlini@suse.de>
1732 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
1733 rename a variable, move an assignment.
1734 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
1736 2004-09-24 Paul Brook <paul@codesourcery.com>
1738 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
1740 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1741 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
1742 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
1743 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
1744 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
1745 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
1747 2004-09-23 Zack Weinberg <zack@codesourcery.com>
1749 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
1750 * testsuite/23_containers/map/operators/1_neg.cc
1751 * testsuite/23_containers/set/operators/1_neg.cc:
1752 Update locations and/or regexps of dg-error markers.
1754 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
1756 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
1757 Add rule to build ${host_builddir}/gthr-tpf.h.
1758 * include/Makefile.in: Regenerate.
1760 2004-09-23 Paolo Carlini <pcarlini@suse.de>
1761 Magnus Fromreide <magfr@lysator.liu.se>
1763 * include/bits/boost_concept_check.h (struct _SequenceConcept):
1764 Remove wrong requirement, i.e., not present in Table 67.
1766 2004-09-21 Paolo Carlini <pcarlini@suse.de>
1768 PR libstdc++/12882 (cont)
1769 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
1770 * configure: Regenerate.
1771 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
1772 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
1773 trivial showmanyc for large files too.
1775 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
1777 * include/bits/stl_algo.h (remove): Remove too restrictive
1780 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1782 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
1783 as per Nathan's original suggestion.
1785 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1787 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
1789 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
1790 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
1791 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
1793 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1794 Andrea Arcangeli <andrea@suse.de>
1796 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
1797 call unnecessarily sync, that is fflush: the library, since 3.4.0
1798 does not use buffered fread/fwrite.
1799 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
1801 2004-09-15 Mark Mitchell <mark@codesourcery.com>
1803 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1805 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1807 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
1808 (__cxa_vec_new): Use it.
1809 (__cxa_vec_new2): Likewise.
1810 (__cxa_vec_new3): Likewise.
1811 (__cxa_vec_cdtor): Likewise.
1812 (__cxa_vec_cctor): Likeiwse.
1813 (__cxa_vec_dtor): Likewise.
1814 (__cxa_vec_cleanup): Likewise.
1815 (__cxa_vec_delete2): Likewise.
1816 (__cxa_vec_delete3): Likewise.
1817 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
1818 (__cxa_vec_new2): Likewise.
1819 (__cxa_vec_new3): Likewise.
1820 (__cxa_vec_cdtor): Likewise.
1821 (__cxa_vec_cctor): Likeiwse.
1822 (__cxa_vec_dtor): Likewise.
1823 (__cxa_vec_cleanup): Likewise.
1824 (__cxa_vec_delete2): Likewise.
1825 (__cxa_vec_delete3): Likewise.
1826 (__aeabi_vec_ctor_nocookie_nodtor): New function.
1827 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
1828 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
1829 (__aeabi_vec_new_cookie_noctor): Likewise.
1830 (__aeabi_vec_new_nocookie): Likewise.
1831 (__aeabi_vec_new_cookie_nodtor): Likewise.
1832 (__aeabi_vec_new_cookie): Likewise.
1833 (__aeabi_vec_dtor): Likewise.
1834 (__aeabi_vec_dtor_cookie): Likewise.
1835 (__aeabi_vec_delete): Likewise.
1836 (__aeabi_vec_delete3): Likewise.
1837 (__aeabi_vec_delete3_nodtor): Likewise.
1838 (__aeabi_atexit): Likewise.
1840 2004-09-14 Nathan Myers <ncm@cantrip.org>
1842 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
1843 for 11722: copy can replace move; the common case is __avail == 0.
1845 2004-09-14 Paolo Carlini <pcarlini@suse.de>
1847 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
1848 to __is_scalar, more clear and consistent with "tr1" naming.
1849 * include/bits/stl_algobase.h: Update consistently throughout.
1851 2004-09-13 Paolo Carlini <pcarlini@suse.de>
1854 * include/std/std_fstream.h (xsgetn): Declare only.
1855 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
1856 always_noconv() case: when __n > __buflen, copy the available
1857 buffer and issue a direct read.
1858 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
1860 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
1863 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
1865 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
1866 libstdc++_maybe_build_wrapper instead of using local code.
1868 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
1870 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
1872 2004-09-03 Jan Beulich <jbeulich@novell.com>
1874 * crossconfig.m4: Add NetWare as a target.
1875 * configure: Regenerate.
1877 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1879 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
1882 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1883 Simon Richter <Simon.Richter@hogyros.de>
1886 * include/bits/istream.tcc: Add extern template for iostream
1887 char and wchar_t instantiations.
1889 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1890 Leland Wang <llwang@infor.org>
1893 * include/ext/ropeimpl.h (rope::_S_compare): Use
1894 _Rope_constants::_S_leaf.
1896 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1899 * include/Makefile.am (ext_headers): Remove demangle.h.
1900 * include/Makefile.in: Regenerate.
1901 * include/ext/demangle.h: Remove.
1903 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
1906 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
1908 (__pool): New, specialize.
1909 (__common_pool): New, static bits here.
1910 (__per_type_pool): New, and here.
1911 (__mt_alloc_base): New.
1912 (__mt_alloc): Add template parameter, inherit from it.
1913 * src/allocator.cc: Split this...
1914 * src/allocator-inst.cc: And this...
1915 * src/pool_allocator.cc: ...into this.
1916 * src/mt_allocator.cc: ... and this. Add definitions for
1918 * src/Makefile.am (sources): Split allocator.cc to
1919 pool_allocator.cc and mt_allocator.cc.
1920 * src/Makefile.in: Regenerate.
1921 * config/linker-map.gnu: Add symbols.
1922 * docs/html/ext/mt_allocator.html: Document new design.
1923 * testsuite/ext/mt_allocator/tune-1.cc: New.
1924 * testsuite/ext/mt_allocator/tune-2.cc: New.
1925 * testsuite/ext/mt_allocator/tune-3.cc: New.
1926 * testsuite/ext/mt_allocator/tune-4.cc: New.
1928 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
1929 * testsuite/ext/allocators.cc: Use check_new, split into...
1930 * testsuite/ext/mt_allocator/check_new.cc: this.
1931 * testsuite/ext/pool_allocator/check_new.cc: this.
1932 * testsuite/ext/malloc_allocator/check_new.cc: this.
1933 * testsuite/ext/debug_allocator/check_new.cc: this.
1934 * testsuite/ext/mt_allocator/instantiate.cc: this.
1935 * testsuite/ext/pool_allocator/instantiate.cc: this.
1936 * testsuite/ext/malloc_allocator/instantiate.cc: this.
1937 * testsuite/ext/debug_allocator/instantiate.cc: this.
1939 2004-08-30 Phil Edwards <phil@codesourcery.com>
1941 * docs/html/install.html: Update locales list (from Paolo).
1942 Remove other redundant information and point to the GCC install
1945 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
1947 * include/ext/pool_allocator.h: Rename __pool_base to
1949 * src/allocator.cc: Same.
1950 * config/linker-map.gnu: Same.
1952 2004-08-30 Paolo Carlini <pcarlini@suse.de>
1953 Kenneth C. Schalk <ken@xorian.net>
1956 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
1957 Check the return value of fclose/sync, loop on EINTR.
1958 (__basic_file<char>::sys_open): Likewise, for sync.
1960 2004-08-29 Paolo Carlini <pcarlini@suse.de>
1962 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
1963 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
1964 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
1965 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
1966 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
1968 2004-08-27 Jason Merrill <jason@redhat.com>
1971 * libsupc++/guard.cc (static_mutex): Internal class implementing a
1972 recursive mutex which controls initialization of local statics.
1973 (__gnu_cxx::recursive_init): New exception class.
1974 (__cxa_guard_acquire): Deal with locking and recursion detection.
1975 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
1977 2004-08-27 Matthias Klose <doko@debian.org>
1979 * configure.host: For mips*-*-linux* update cpu_include_dir
1980 after atomicity_dir is set.
1982 2004-08-27 Matthias Klose <doko@debian.org>
1984 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
1985 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1986 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
1989 2004-08-27 Paolo Carlini <pcarlini@suse.de>
1991 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
1992 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
1993 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
1994 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
1995 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
1997 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
1999 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
2000 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
2001 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
2002 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
2004 2004-08-25 Paolo Carlini <pcarlini@suse.de>
2006 PR libstdc++/17038 (partial)
2007 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
2009 * include/bits/locale_facets.h (class __timepunct): Add FIXME
2010 comment about _M_put.
2011 * config/locale/generic/time_members.cc (_M_put): Always null
2013 * config/locale/gnu/time_members.cc (_M_put): Likewise.
2014 * testsuite/22_locale/time_put/put/char/17038.cc: New.
2015 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
2017 2004-08-24 Paolo Carlini <pcarlini@suse.de>
2019 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
2020 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
2021 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
2022 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
2023 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
2024 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
2026 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
2028 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
2030 2004-08-22 Matthias Klose <doko@debian.org>
2032 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
2033 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
2035 2004-08-23 Paolo Carlini <pcarlini@suse.de>
2037 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
2038 * aclocal.m4: Regenerate with automake-1.9.1.
2039 * configure: Regenerate.
2040 * Makefile.in: Likewise.
2041 * include/Makefile.in: Likewise.
2042 * libmath/Makefile.in: Likewise.
2043 * libsupc++/Makefile.in: Likewise.
2044 * po/Makefile.in: Likewise.
2045 * src/Makefile.in: Likewise.
2046 * testsuite/Makefile.in: Likewise.
2048 2004-08-22 Paolo Carlini <pcarlini@suse.de>
2050 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
2051 to a signed type, long according to the resolution of DR 359.
2052 * testsuite/22_locale/num_put/put/char/9.cc: New.
2053 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
2055 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
2056 Simplify a bit: no need to clear showpos.
2058 2004-08-21 Paolo Carlini <pcarlini@suse.de>
2060 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
2063 2004-08-21 Paolo Carlini <pcarlini@suse.de>
2065 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
2066 wchar_t type for the fill argument; minor formatting tweaks.
2067 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
2068 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
2069 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
2070 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
2071 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
2072 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
2074 2004-08-21 Paolo Carlini <pcarlini@suse.de>
2076 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
2077 with _M_word != _M_local_word two times, redundantly.
2079 2004-08-20 Jason Merrill <jason@redhat.com>
2081 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
2082 _GLIBCXX_ to #pragma lines.
2083 * include/Makefile.in: Update.
2085 2004-08-20 Paolo Carlini <pcarlini@suse.de>
2087 PR libstdc++/7219 (continued)
2088 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
2089 typedefs by default.
2090 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
2091 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
2093 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
2095 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2097 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
2098 barrier to locking asm.
2100 2004-08-20 Paolo Carlini <pcarlini@suse.de>
2102 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
2103 actually the warning is a front-end bug (c++/17120).
2105 2004-08-20 Matthias Klose <doko@debian.org>
2107 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
2109 2004-08-20 Paolo Carlini <pcarlini@suse.de>
2111 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
2112 used as truth value warning.
2114 2004-08-20 Paolo Carlini <pcarlini@suse.de>
2116 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
2119 2004-08-20 Paolo Carlini <pcarlini@suse.de>
2121 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
2123 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
2125 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
2127 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
2129 2004-08-19 Paolo Carlini <pcarlini@suse.de>
2131 * testsuite/performance/20_util/allocator/insert.cc: For std::map
2132 instantiate the allocator for a correct pair type.
2133 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
2134 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
2135 * testsuite/performance/20_util/allocator/producer_consumer.cc:
2138 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
2139 minor formatting fixes.
2140 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
2142 2004-08-19 Paolo Carlini <pcarlini@suse.de>
2144 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
2146 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
2147 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
2148 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
2149 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
2150 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
2151 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
2152 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
2154 2004-08-19 Paolo Carlini <pcarlini@suse.de>
2156 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
2158 2004-08-18 Matthias Klose <doko@debian.org>
2160 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
2161 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
2162 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
2164 2004-08-17 Paolo Carlini <pcarlini@suse.de>
2166 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
2168 2004-08-17 Paolo Carlini <pcarlini@suse.de>
2170 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
2172 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
2174 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
2176 2004-08-16 Paolo Carlini <pcarlini@suse.de>
2178 * include/bits/indirect_array.h: Trivial formatting fixes.
2179 * include/bits/valarray_after.h: Likewise.
2180 * include/bits/valarray_array.h: Likewise.
2181 * src/valarray-inst.cc: Likewise.
2183 2004-08-15 Paolo Carlini <pcarlini@suse.de>
2185 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
2186 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
2187 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
2189 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
2190 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
2191 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
2192 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
2193 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
2195 2004-08-15 Paolo Carlini <pcarlini@suse.de>
2197 * include/bits/deque.tcc: Trivial formatting fixes.
2199 2004-08-15 Paolo Carlini <pcarlini@suse.de>
2201 * include/bits/deque.tcc: Trivial formatting fixes.
2203 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
2204 Remove unneded typedef.
2206 * include/bits/locale_facets.tcc: Very minor tweaks.
2208 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
2209 type for the fill argument.
2210 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
2211 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
2212 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
2213 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
2214 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
2215 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
2216 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
2217 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
2219 2004-08-13 Paolo Carlini <pcarlini@suse.de>
2221 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
2222 memmove is not needed, memcpy suffices.
2224 2004-08-13 Paolo Carlini <pcarlini@suse.de>
2226 * include/std/std_fstream.h (class basic_ifstream,
2227 class basic_ofstream, class basic_fstream): Add const overloads
2228 of is_open, as per DR 365 [WP].
2229 * docs/html/ext/howto.html: Add an entry for DR 365.
2231 2004-08-12 Paolo Carlini <pcarlini@suse.de>
2233 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
2235 2004-08-12 Paolo Carlini <pcarlini@suse.de>
2238 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
2239 to the returned value, reorganize a bit.
2240 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
2241 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
2243 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
2244 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
2245 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
2246 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
2248 2004-08-12 Paul Brook <paul@codesourcery.com>
2250 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
2251 _GLIBCXX_CXA_VEC_CTOR_RETURN.
2252 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
2253 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
2254 __cxa_vec_ctor_return.
2255 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
2256 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
2258 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
2260 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
2261 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2262 src/Makefile.in, testsuite/Makefile.in: Regenerate
2264 2004-08-12 Jan Beulich <jbeulich@novell.com>
2266 * config/locale/generic/ctype_members.cc
2267 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
2268 initializer for return value, as that is invalid for enumerated types.
2269 * config/locale/gnu/ctype_members.cc
2270 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
2272 2004-08-11 Paolo Carlini <pcarlini@suse.de>
2274 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
2276 2004-08-11 Paolo Carlini <pcarlini@suse.de>
2278 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
2280 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
2281 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
2282 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
2283 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
2284 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
2285 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
2286 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
2287 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
2288 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
2289 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
2290 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
2291 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
2292 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
2293 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
2294 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
2295 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
2296 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
2297 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
2298 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
2299 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
2300 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
2302 2004-08-11 Paolo Carlini <pcarlini@suse.de>
2303 Petur Runolfsson <peturr02@ru.is>
2306 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
2307 standard streams are constructed.
2308 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
2310 2004-08-09 Paolo Carlini <pcarlini@suse.de>
2312 * include/bits/stl_bvector.h: Trivial formatting fixes.
2314 2004-08-09 Paolo Carlini <pcarlini@suse.de>
2316 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
2318 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
2319 Paolo Carlini <pcarlini@suse.de>
2321 * src/debug.cc (_Error_formatter::_M_print_string): In order
2322 to print individual words from __string, _M_format_word can't
2323 be called since may be just sprintf, thus ignoring completely
2324 __n: instead, use memmove and append '\0' by hand.
2326 2004-08-07 Paolo Carlini <pcarlini@suse.de>
2328 * config/locale/generic/c_locale.h (__convert_from_v): Don't
2329 use a default for __prec, assume __prec >= 0 and simplify.
2330 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
2331 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
2332 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
2334 2004-08-04 Phil Edwards <phil@codesourcery.com>
2336 * docs/html/configopts.html: Emphasize that options change.
2337 * docs/html/17_intro/configury.html: Update links.
2339 2004-08-03 Paolo Carlini <pcarlini@suse.de>
2341 * include/bits/list.tcc: Trivial formatting fixes.
2343 2004-08-03 Mark Mitchell <mark@codesourcery.com>
2345 * libsupc++/new_op.cc: Update comments.
2346 * libsupc++/del_op.cc: Likewise.
2348 2004-08-02 Mark Mitchell <mark@codesourcery.com>
2350 * libsupc++/cxxabi.h: Make all declarations have default
2352 * libsupc++/exception: Likewise.
2353 * libsupc++/new: Likewise.
2354 * libsupc++/typeinfo: Likewise.
2355 * libsupc++/unwind-cxx.h: Likewise.
2356 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
2357 the __cxxabiv1 namespace.
2358 (__cxa_free_exception): Likewise.
2359 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
2360 (__cxa_bad_typeid): Likewise.
2361 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
2362 (__cxa_end_catch): Likewise.
2363 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
2364 (__cxa_get_globals): Likewise.
2365 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
2366 (__cxa_rethrow): Likewise.
2367 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
2368 * libsupc++/eh_type.cc: Include <cxxabi.h>.
2370 * Makefile.am (hosted_source): Add libmath and testsuite.
2371 (SUBDIRS): Remove them.
2372 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
2373 on arm*-*-symbianelf*.
2374 * crossconfig.m4: Add arm*-*-symbianelf* support.
2375 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
2376 when freestanding. Do not bring names into std:: namespace with
2377 "using" when freestanding. Declare required functions and macros
2379 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
2381 * libsupc++/del_op.cc: Declare "free" only when freestanding.
2382 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
2383 (malloc): Declare when freestanding.
2386 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
2388 (__cxa_free_exception): Likewise for free.
2389 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
2390 * libsupc++/pure.cc (writestr): Define to nothing when
2392 * libsupc++/vterminate.cc: Do not define anything when
2394 * Makefile.in: Regenerated.
2395 * aclocal.m4: Likewise.
2396 * configure: Likewise.
2397 * include/Makefile.in: Likewise.
2398 * libmath/Makefile.in: Likewise.
2399 * libsupc++/Makefile.in: Likewise.
2400 * po/Makefile.in: Likewise.
2401 * src/Makefile.in: Likewise.
2402 * testsuite/Makefile.in: Likewise.
2404 2004-08-01 Matt Austern <austern@apple.com>
2407 * include/bits/stl_list.h (_M_create_node): Remove unused
2408 zero-argument version.
2409 * include/ext/slist (_M_create_node): Pass two arguments to
2410 allocator's construct() member function.
2411 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
2412 * testsuite/23_containers/list/explicit_instantiation.cc: New.
2413 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
2414 * testsuite/23_containers/map/explicit_instantiation.cc: New.
2415 * testsuite/23_containers/set/explicit_instantiation.cc: New.
2416 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
2417 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
2418 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
2419 * testsuite/ext/slist_explicit_instantiation.cc: New.
2421 2004-07-30 Paolo Carlini <pcarlini@suse.de>
2423 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2424 num_get<>::_M_extract_int): In the main parsing loop delay the
2425 life of __q to the actual use point.
2427 2004-07-29 Paolo Carlini <pcarlini@suse.de>
2430 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
2431 Don't clip the precision passed down to __convert_from_v:
2432 22.2.2.2.2 nowhere says so.
2433 * testsuite/22_locale/num_put/put/char/14220.cc: New.
2434 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
2436 2004-07-29 Paolo Carlini <pcarlini@suse.de>
2438 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
2440 2004-07-29 Paolo Carlini <pcarlini@suse.de>
2441 Petur Runolfsson <peturr02@ru.is>
2443 PR libstdc++/12658 (continued)
2444 * src/locale_init.cc (locale::locale, locale::global): Use
2445 a single locale_mutex instead of two separate mutexes.
2447 2004-07-29 Paolo Carlini <pcarlini@suse.de>
2450 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
2452 * testsuite/23_containers/map/insert/16813.cc: New.
2454 2004-07-29 Phil Edwards <phil@codesourcery.com>
2456 * docs/html/faq/index.html: Update version references. Make
2457 clear that code from SGI has diverged greatly. Remove references
2458 to library snapshots and what's-new sections.
2459 * docs/html/faq/index.txt: Regenerate.
2461 2004-07-28 Matt Austern <austern@apple.com>
2463 * include/bits/stl_construct.h (_Destroy): New three-argument
2464 overload that takes an allocator argument. Another inline
2465 three-argument overload that takes std::allocator and dispatches
2466 to the two-argument version.
2467 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
2468 Change return type to void to match uninitialized_fill_n.
2469 (__uninitialized_copy_a_): New function. Like uninitialized_copy
2470 except that it takes an allocator and uses it for construct and
2471 destroy. If the allocator is std::allocator, dispatches to
2473 (__uninitialized_fill_a): Likewise.
2474 (__uninitialized_fill_n_a): Likewise.
2475 (__uninitialized_copy_copy): Give it an allocator argument.
2476 (__uninitialized_fill_copy): Likewise.
2477 (__uninitialized_copy_fill): Likewise.
2478 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
2479 and stl_uninitialized.h. Replace use of single-argument _Construct
2480 and _Destroy with use of allocator's construct and destroy methods.
2481 * include/bits/list.tcc: Likewise.
2482 * include/bits/stl_deque.h: Likewise.
2483 * include/bits/stl_list.h: Likewise.
2484 * include/bits/stl_tree.h: Likewise.
2485 * include/bits/stl_vector.h: Likewise.
2486 * include/bits/vector.tcc: Likewise.
2487 * include/ext/hashtable.h: Use rebind so that allocator_type
2488 has correct type for a container's allocator. Replace use of
2489 single-argument _Construct and _Destroy with use of allocator's
2490 construct and destroy methods.
2491 * include/ext/memory (__uninitialized_copy_n_a): New function.
2492 Like uninitialized_copy_n except that it takes an extra parameter,
2493 an allocator, and uses it for construct and destroy operations.
2494 * include/ext/rope: Use new forms defined in stl_construct.h,
2495 stl_uninitialized.h, and ext/memory. Replace use of single-argument
2496 _Construct and _Destroy with allocator construct and destroy methods.
2497 * include/ext/ropeimpl.h: Likewise.
2498 * include/ext/slist.h: Likewise.
2499 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
2500 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
2501 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
2502 * testsuite/23_containers/list/check_construct_destroy.cc: New.
2503 * testsuite/23_containers/set/check_construct_destroy.cc: New.
2504 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
2505 * testsuite/ext/hash_check_construct_destroy.cc: New.
2506 * testsuite/ext/slist_check_construct_destroy.cc: New.
2508 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
2510 2003-10-01 Eric Christopher <echristo@redhat.com>
2511 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
2513 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
2514 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
2516 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
2519 * include/bits/locale_facets.tcc: Fix for -Werror.
2521 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
2523 * docs/html/debug.html: Say debug mode only available since 3.4.0.
2525 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
2527 * docs/doxygen/mainpage.html: Clarify links.
2528 * docs/doxygen/stdheader.cc: Add files.
2529 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
2530 * docs/doxygen/user.cfg.in: New options, wrap.
2532 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
2534 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
2536 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
2539 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
2541 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
2544 * scripts/create_testsuite_files: Pass -print to find.
2546 2004-07-15 Paolo Carlini <pcarlini@suse.de>
2548 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
2549 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
2551 2004-07-15 Jakub Jelinek <jakub@redhat.com>
2554 * acinclude.m4 (glibcxx_shared_libgcc): Correct
2555 glibcxx_shared_libgcc test for multilibs.
2556 * configure: Rebuilt.
2558 2004-07-14 Paolo Carlini <pcarlini@suse.de>
2561 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
2562 the signature to return void, as per 20.4.4.3.
2563 * include/bits/stl_vector.h (vector::vector(size_type,
2564 const value_type&, const allocator_type&), vector::vector(size_type),
2565 vector::_M_initialize_dispatch): Adjust callers.
2566 * include/bits/vector.tcc (vector<>::_M_fill_assign,
2567 vector<>::_M_fill_insert): Likewise.
2568 * testsuite/20_util/memory/16505.cc: New.
2570 2004-07-14 Paolo Carlini <pcarlini@suse.de>
2572 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
2573 12658_thread-2.cc: Use __gnu_test::try_named_locale.
2575 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
2577 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
2578 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
2579 (__mt_alloc::_S_set_options): Same.
2582 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
2584 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
2586 * configure: Regenerated.
2588 2004-07-13 Paolo Carlini <pcarlini@suse.de>
2590 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
2591 to 12658_thread-1.cc and xfail.
2592 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
2593 simpler version of 12658_thread-1.cc, still failing on 3_3 and
2594 not failing on 3_4/mainline - both on single processor and
2595 multiprocessor machines.
2597 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
2599 * docs/html/abi.html: Remove non-public qualification.
2601 * include/bits/concurrence.h: Tweak comments.
2603 2004-07-11 Paolo Carlini <pcarlini@suse.de>
2605 Add wchar_t counterparts of the basic_streambbuf<char> tests.
2606 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
2607 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
2609 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
2610 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
2612 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
2613 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
2614 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
2615 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
2616 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
2618 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
2620 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
2622 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
2624 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
2625 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
2627 2004-07-11 Phil Edwards <phil@codesourcery.com>
2629 * acinclude.m4: Cosmetic shell syntax fixes.
2630 * configure.ac: Bring comment inline with reality.
2631 * configure.host: Both of the above. Move 'arm' case to right
2632 place in host_cpu switch.
2633 * aclocal.m4, configure: Regenerate.
2635 2004-07-09 Paolo Carlini <pcarlini@suse.de>
2637 Add wchar_t counterparts of the basic_stringbuf<char> tests.
2638 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
2639 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
2640 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
2641 3599.cc, 9988.cc: Likewise.
2642 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
2644 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
2646 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
2648 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
2650 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
2651 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
2652 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
2653 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
2655 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
2656 9404-1.cc: Likewise.
2657 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
2658 9404-2.cc: Likewise.
2659 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
2661 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
2662 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
2664 2004-07-08 Paolo Carlini <pcarlini@suse.de>
2666 * include/bits/gslice.h: Trivial formatting fixes.
2667 * include/bits/gslice_array.h: Likewise.
2668 * include/bits/indirect_array.h: Likewise.
2669 * include/bits/mask_array.h: Likewise.
2670 * include/bits/slice_array.h: Likewise.
2671 * include/bits/valarray_after.h: Likewise.
2672 * include/bits/valarray_array.h: Likewise.
2673 * include/bits/valarray_before.h: Likewise.
2674 * include/std/std_valarray.h: Likewise.
2676 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
2679 * include/bits/basic_string.h (basic_string::operator=): Revert.
2681 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
2683 * configure.ac (libtool_VERSION): To 6:2:0.
2684 * configure: Regenerated.
2686 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
2688 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2691 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
2693 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
2695 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
2698 2004-07-07 Paolo Carlini <pcarlini@suse.de>
2701 * include/bits/sstream.tcc (overflow): When reallocating _M_string
2702 use an exponential grow policy.
2703 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
2704 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
2706 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
2709 * crossconfig.m4: Add in bits for djgpp.
2710 * configure: Regenerate.
2712 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
2714 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
2715 instantiation of set and multiset (functor param given as int).
2717 2004-07-04 Paolo Carlini <pcarlini@suse.de>
2719 * include/bits/basic_string.h: Trivial formatting fixes and/or
2720 const-ification of some variables.
2721 * include/bits/deque.tcc: Likewise.
2722 * include/bits/stl_algobase.h: Likewise.
2723 * include/bits/stl_bvector.h: Likewise.
2724 * include/bits/stl_construct.h: Likewise.
2725 * include/bits/stl_deque.h: Likewise.
2726 * include/bits/stl_pair.h: Likewise.
2727 * include/bits/stl_vector.h: Likewise.
2728 * include/bits/vector.tcc: Likewise.
2730 2004-07-04 Paolo Carlini <pcarlini@suse.de>
2732 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
2733 systems with no COMDAT or weak support.
2734 * testsuite/25_algorithms/copy/2.cc: Likewise.
2735 * testsuite/25_algorithms/copy/3.cc: Likewise.
2736 * testsuite/25_algorithms/copy/4.cc: Likewise.
2738 2004-07-03 Paul Brook <paul@codesourcery.com>
2740 * configure.ac: Set ABI_TWEAKS_SRCDIR.
2741 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
2742 setting atomicity_dir. Override type_cpu for arm based targets.
2743 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
2744 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
2745 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
2746 * libsupc++/vec.cc: Ditto.
2747 * config/cpu/arm/cxxabi_tweaks.h: New file.
2748 * config/cpu/generic/cxxabi_tweaks.h: New file.
2749 * */Makefile.in: Regenerate.
2750 * configure: Regenerate.
2752 2004-07-02 Paolo Carlini <pcarlini@suse.de>
2754 * include/bits/type_traits.h (_Is_normal_iterator): Move...
2755 * include/bits/cpp_type_traits.h: ... here, renamed to
2756 __is_normal_iterator and consistent with the other traits.
2757 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
2758 to the struct __copy_normal and three specializations.
2759 (__copy_backward_output_normal_iterator,
2760 __copy_backward_input_normal_iterator): Likewise, convert to
2761 the struct __copy_backward_normal and three specializations.
2762 (copy, copy_backward): Use the latter.
2763 (__copy_aux, __copy_backward_aux): Very minor tweaks.
2765 2004-07-01 Paolo Carlini <pcarlini@suse.de>
2767 * include/bits/stl_algobase.h (__copy_trivial): Remove.
2768 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
2769 __is_trivially_copyable, __are_same and __copy::copy.
2770 (__copy): Rewrite as a class template and two specializations.
2771 (__copy_ni2): Simplify, just call __copy_aux.
2773 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
2775 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
2776 for destination value type != source value type.
2778 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
2779 Per Bothner <per@bothner.com>
2780 Mohan Embar <gnustuff@thisiscool.com>
2783 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
2784 (__glibcxx_mutex): Encapsulate mutex init function into type for
2785 threaded configurations without __GTHREAD_MUTEX_INIT.
2786 (lock::lock): Make device member a reference.
2787 (lock::~lock): Same.
2788 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
2790 * src/allocator.cc: Same.
2792 2004-06-30 Brad Spencer <spencer@infointeractive.com>
2794 * include/ext/mt_allocator.h: Handle allocations at static
2795 initialization that happen before _S_options is (automatically)
2796 constructed; set _S_init even if _M_force_new is true.
2798 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
2800 * config/linker-map.gnu: Revert new exports.
2802 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
2803 Stuart Anderson <anderson@netsweng.com>
2805 * config/linker-map.gnu: Add destructor exports for abstract base
2806 classes to conform to LSB.
2808 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2809 Paolo Carlini <pcarlini@suse.de>
2811 * include/bits/cpp_type_traits.h: Add __is_pointer and
2812 __is_trivially_copyable.
2813 * include/bits/stl_algobase.h (fill, fill_n): Slightly
2814 tweak to use the latter.
2815 (__copy_backward_dispatch): Remove.
2816 (__copy_backward_aux): Rewrite to use __is_pointer and
2817 __is_trivially_copyable and __copy_backward::copy_b.
2818 (__copy_backward): Rewrite as a class template and two
2821 2004-06-30 Paolo Carlini <pcarlini@suse.de>
2823 * testsuite/25_algorithms/copy.cc: Move to...
2824 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
2825 * testsuite/25_algorithms/copy/2.cc: New.
2826 * testsuite/25_algorithms/copy/3.cc: New.
2827 * testsuite/25_algorithms/copy/4.cc: New.
2829 2004-06-29 Paul Brook <paul@codesourcery.com>
2831 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
2832 element size in the cookie.
2834 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2836 * include/bits/cpp_type_traits.h: Move the additions to
2837 namespace __gnu_internal outside of namespace std; trivial
2840 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
2842 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
2843 Revert -Weffc++ changes that defined copy ctory and or assignment
2845 * libsupc++/tinfo.cc (__upcast_result): Same.
2847 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2849 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
2850 the algorithm used to name the categories.
2852 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
2854 * include/Makefile.am: Give a .gch extension to
2855 the PCH files, not only to the directory.
2856 * include/Makefile.in: Regenerate.
2858 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2860 * config/locale/gnu/monetary_members.cc
2861 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
2862 assignments of _M_decimal_point and _M_thousands_sep.
2864 2004-06-27 Paolo Carlini <pcarlini@suse.de>
2866 * docs/html/17_intro/contribute.html: Update some links.
2867 * docs/html/17_intro/porting-howto.html: Likewise.
2868 * docs/html/17_intro/porting-howto.xml: Likewise.
2869 * docs/html/18_support/howto.html: Likewise.
2870 * docs/html/21_strings/howto.html: Likewise.
2871 * docs/html/27_io/howto.html: Likewise.
2872 * docs/html/configopts.html: Likewise.
2873 * docs/html/ext/howto.html: Likewise.
2874 * docs/html/faq/index.html: Likewise.
2875 * docs/html/install.html: Don't mention 2.x compilers.
2877 2004-06-27 Paolo Carlini <pcarlini@suse.de>
2879 * include/ext/rope: Trivial formatting fixes.
2880 * include/ext/ropeimpl.h: Likewise.
2882 2004-06-26 Paolo Carlini <pcarlini@suse.de>
2885 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
2886 availability of strto(u)ll, not used anymore in the iostreams.
2887 * configure: Regenerate.
2889 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2892 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
2894 * configure: Regenerate.
2896 2004-06-25 Paul Brook <paul@codesourcery.com>
2898 * libsupc++/cxxabi.h: Define __ARM_EABI__
2900 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
2902 2004-06-25 Paul Brook <paul@codesourcery.com>
2904 * include/bits/concurrence.h: Still create mutex object when
2907 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2909 * include/bits/stl_algobase.h (fill, fill_n): Revert last
2910 change: actually we need to copy construct an object of type
2911 _Tp, not of type iterator_traits<>::value_type, therefore the
2914 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2916 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
2917 dispatch: use iterator_traits<>::value_type, not _Tp.
2919 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2921 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
2922 * testsuite/25_algorithms/fill/2.cc: Likewise.
2924 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
2925 Paolo Carlini <pcarlini@suse.de>
2927 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
2928 for fill and fill_n, respectively: when copying is cheap, use a
2929 temporary to avoid a memory read in each iteration.
2931 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2933 * testsuite/25_algorithms/fill/1.cc: New.
2934 * testsuite/25_algorithms/fill/2.cc: Likewise.
2936 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2938 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
2939 Remove copy constructor and assignment operator.
2941 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
2943 * include/bits/concurrence.h (__gnu_cxx::lock): New.
2944 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
2945 (__pool_base::_M_get_mutex): New.
2946 * include/bits/allocator.h: Tweak.
2947 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
2948 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
2949 * include/bits/stl_threads.h: Remove.
2950 * include/Makefile.am: Also here.
2951 * include/Makefile.in: Regenerate.
2953 * src/locale_init.cc: Use __gnu_cxx::lock.
2955 * src/allocator.cc: Move all instantiations...
2956 * src/allocator-inst.cc: ...here.
2958 2004-06-23 Andrew Pinski <apinski@apple.com>
2960 * linkage.m4: Remove check for libmx.
2961 * configure: Regenerate.
2963 2004-06-23 Paolo Carlini <pcarlini@suse.de>
2966 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
2967 Don't require the _DefaultConstructibleConcept.
2968 (struct _ForwardIteratorConcept): Require it here.
2970 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
2972 * include/bits/istream.tcc (getline): Make sure arguments passed
2973 to min/max have the same type.
2974 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
2975 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
2977 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
2979 * docs/html/abi.html: Update links.
2981 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2983 * testsuite/26_numerics/complex_inserters_extractors.cc,
2984 complex_value.cc, buggy_complex.cc: Move to...
2985 * testsuite/26_numerics/complex/: ... here.
2986 * testsuite/26_numerics/c99_classification_macros_c++.cc,
2987 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
2988 fabs_inline.cc: Move to...
2989 * testsuite/26_numerics/cmath/: ... here.
2990 * testsuite/26_numerics/binary_closure.cc, slice.cc,
2991 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
2992 valarray_name_lookup.cc, valarray_operators.cc,
2993 valarray_subset_assignment.cc: Move to...
2994 * testsuite/26_numerics/valarray/: ... here (new dir).
2995 * testsuite/26_numerics/sum_diff.cc: Move to...
2996 * testsuite/26_numerics/numeric/: ... here (new dir).
2998 2004-06-22 Paolo Carlini <pcarlini@suse.de>
3000 * include/std/std_istream.h (ignore(streamsize __n = 1,
3001 int_type __delim = traits_type::eof())): Split into...
3002 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
3003 int_type __delim)): The first two can be much more simpler
3004 and efficient than the fully general case; also, the last
3005 two can take advantage of the same mechanism already used
3007 * include/bits/istream.tcc (ignore(streamsize __n = 1,
3008 int_type __delim = traits_type::eof()): Remove.
3009 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
3010 int_type __delim)): New.
3012 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
3014 * config/linker-map.gnu: Use wildcards for
3015 __basic_file::sys_open(FILE*, _Ios_Openmode).
3017 2004-06-20 Paolo Carlini <pcarlini@suse.de>
3019 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
3021 2004-06-18 Paolo Carlini <pcarlini@suse.de>
3023 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
3024 the alignment requested.
3025 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
3026 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
3027 (__mt_alloc<>::deallocate): Likewise.
3029 2004-06-18 Paolo Carlini <pcarlini@suse.de>
3032 * include/debug/safe_base.h
3033 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
3034 _Safe_sequence_base::operator=): Provide definitions.
3035 * testsuite/23_containers/bitset/cons/16020.cc: New.
3037 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
3039 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
3040 (__pool_base): Remove unused template parameter. Add
3041 protected. Move lock data into __pool_base::_Lock. Remove static
3042 on member functions.
3043 (__pool_base::_M_get_free_list): New.
3044 (__pool_alloc): Move _S_force new here.
3045 * src/allocator.cc: Move out of line __pool_base definitions here.
3046 * config/linker-map.gnu: Export bits from __pool_base.
3048 2004-06-18 Paolo Carlini <pcarlini@suse.de>
3050 * config/locale/gnu/numeric_members.cc
3051 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
3052 assignments of _M_decimal_point and _M_thousands_sep.
3053 * config/locale/gnu/time_members.cc
3054 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
3055 and reformat assignments of date and time fields.
3057 2004-06-16 Paolo Carlini <pcarlini@suse.de>
3059 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
3060 to use _Data_allocate.
3061 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
3062 (rope<>::_S_substring): Likewise.
3063 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
3064 (rope<>::c_str()): Likewise.
3065 (rope<>::replace_with_c_str()): Likewise.
3067 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
3068 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
3070 (_Rope_iterator_base<>::_S_setcache): Likewise.
3071 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
3072 (rope<>::_S_substring): Likewise.
3073 (rope<>::_S_dump): Likewise.
3074 (rope<>::_S_fetch_ptr): Likewise.
3075 (rope<>::_S_compare): Likewise.
3076 (rope<>::replace_with_c_str()): Likewise.
3078 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
3079 * testsuite/ext/rope/2.cc: New.
3081 2004-06-16 Paolo Carlini <pcarlini@suse.de>
3082 Matt Austern <austern@apple.com>
3084 * testsuite/ext/rope/3.cc: New.
3086 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
3088 * acinclude.m4: Remove useless multilib configury.
3089 * Makefile.am: Remove useless multilib rules.
3090 * aclocal.m4: Regenerate.
3091 * Makefile.in: Regenerate.
3092 * configure: Regenerate.
3094 2004-06-15 Paolo Carlini <pcarlini@suse.de>
3096 * include/ext/hashtable.h: Trivial formatting fixes.
3097 * include/ext/rb_tree: Likewise.
3099 2004-06-14 Paolo Carlini <pcarlini@suse.de>
3101 * include/ext/hash_map: Trivial formatting fixes.
3102 * include/ext/hash_set: Likewise.
3103 * include/ext/memory: Likewise.
3104 * include/ext/numeric: Likewise.
3106 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
3108 * Makefile.in: Regenerate with automake 1.8.5.
3110 * include/Makefile.in: Same.
3111 * libmath/Makefile.in: Same.
3112 * libsupc++/Makefile.in: Same.
3113 * po/Makefile.in: Same.
3114 * src/Makefile.in: Same.
3115 * testsuite/Makefile.in: Same.
3117 2004-06-14 Paolo Carlini <pcarlini@suse.de>
3119 * include/ext/slist: Trivial formatting fixes.
3121 2004-06-14 Paolo Carlini <pcarlini@suse.de>
3123 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
3124 Don't use the 'magic number' 10 in the computation of __minlen;
3125 never access __name past __minlen; in the loop over __i3, don't
3126 decrease __nmatches and increase __i3 at once, only either of
3129 2004-06-13 Paolo Carlini <pcarlini@suse.de>
3131 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
3132 time_get<>::do_get_date): Use only once _M_extract_via_format,
3133 instead of going through "%X"/"%x" and calling it two times
3136 2004-06-12 Paolo Carlini <pcarlini@suse.de>
3138 * include/ext/algorithm: Trivial formatting fixes.
3139 * include/ext/functional: Likewise.
3140 * include/ext/hash_fun.h: Likewise.
3141 * include/ext/iterator: Likewise.
3143 2004-06-12 Paolo Carlini <pcarlini@suse.de>
3145 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
3146 size_type)): Reimplement using std::search.
3147 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
3149 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
3151 * testsuite/performance/21_strings/string_find.cc: New.
3153 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
3155 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
3157 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
3159 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
3160 this function return a value.
3162 2004-06-09 Paolo Carlini <pcarlini@suse.de>
3165 * include/bits/stl_deque.h: Consistently with stl_set.h, define
3166 pointer as allocator's pointer, likewise for reference,
3167 const_pointer, and const_reference.
3168 * include/bits/stl_list.h: Likewise.
3169 * include/bits/stl_map.h: Likewise.
3170 * include/bits/stl_multimap.h: Likewise.
3171 * include/bits/stl_vector.h: Likewise.
3173 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
3175 * crossconfig.m4: Remove signbit, signbitf, signbitl.
3176 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
3177 builtin math functions instead of AC_DEFINE_UNQUOTED.
3178 * configure: Regenerate.
3180 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
3182 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
3183 * docs/doxygen/mainpage.html: Remove links.
3185 2004-06-08 Jason Merrill <jason@redhat.com>
3187 * config/linker-map.gnu: Use wildcards for
3188 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
3190 2004-06-08 Paolo Carlini <pcarlini@suse.de>
3192 * include/ext/pool_allocator.h: Convert to a global free-list,
3193 as per the original SGI/HP design: move the implementation
3194 details to struct __pool_base, from which __pool_alloc derives.
3195 * src/allocator.cc: Instantiate __pool_base.
3197 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
3198 Paolo Carlini <pcarlini@suse.de>
3200 * testsuite/testsuite_performance.h
3201 (resource_counter::allocated_memory): Make it return the right
3202 number of bytes requested by the allocators/application. This is
3203 the sbrk+mmaped memory.
3205 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
3207 * include/std/std_complex.h (log): Tidy.
3209 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
3211 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
3212 * testsuite/testsuite_abi.cc: Same.
3213 * configure.ac (libtool_VERSION): Bump to 6:1:0.
3214 * configure: Regenerate.
3215 * aclocal.m4: Regenerate.
3217 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3219 * include/std/std_complex.h (complex<_Tp>): Properly indent
3221 (complex<>::__rep): New.
3222 (__complex_abs): New. Dispatch to built-ins.
3224 (__complex_arg): New. Dispatch to built-ins.
3226 (__complex_cos): New. Dispatch to built-ins.
3228 (__complex_cosh): New. Dispatch to built-ins.
3230 (__complex_exp): New. Dispatch to built-ins.
3232 (__complex_log): New. Dispatch to built-ins.
3234 (__complex_sin): New. Dispatch to built-ins.
3236 (__complex_sinh): New. Dispatch to built-ins.
3238 (__complex_sqrt): New. Dispatch to built-ins.
3240 (__complex_tan): New. Dispatch to built-ins.
3242 (__complex_tanh): New. Dispatch to built-ins.
3244 (__complex_pow): New. Dispatch to built-ins.
3247 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
3248 Benjamin Kosnik <bkoz@redhat.com>
3251 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
3252 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
3253 * config/io/basic_file_stdio.cc (__basic_file::file): New.
3254 * config/io/basic_file_stdio.h: Define.
3256 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
3259 * docs/html/documentation.html: Update doxygen links for 3.4.0.
3261 2004-05-27 Jan Beulich <jbeulich@novell.com>
3263 * scripts/create_testsuite_files: Tweak.
3265 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
3268 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
3269 bits to do the same thing.
3271 2004-05-24 Paolo Carlini <pcarlini@suse.de>
3273 * include/bits/istream.tcc (ignore): Correctly deal with
3274 n == numeric_limits<streamsize>::max().
3275 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
3277 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
3278 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
3279 __n == numeric_limits<>::min().
3281 * include/bits/istream.tcc: Minor tweaks.
3283 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
3285 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
3287 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
3289 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
3291 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
3293 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
3296 Fixups for -Weffc++.
3297 * include/bits/basic_string.h (basic_string::operator=): Return
3298 pointer to this instead of result of assign. Although redundant,
3299 this doesn't impact resultant codegen.
3301 * include/bits/locale_facets.h (__numpunct_cache): Declare
3302 assignment opxserator and copy constructor private.
3303 (__timepunct_cache): Same.
3304 (__moneypunct_cache): Same.
3305 (collate): Use member initialization list for _M_c_locale_collate.
3306 * config/locale/gnu/messages_members.h: Same.
3307 * config/locale/gnu/time_members.h (__timepunct): Same.
3308 * src/codecvt.cc: Use member initialization list to initialize
3309 _M_c_locale_codecvt.
3310 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
3311 * config/os/gnu-linux/ctype_noninline.h: Same.
3312 * src/locale.cc (_Impl): Same.
3313 * src/locale_init.cc: Same.
3314 * src/localename.cc: Same.
3316 * include/bits/basic_ios.h (basic_ios): Complete member
3317 initialization list.
3318 * include/bits/istream.tcc (basic_istream::sentry): Same.
3319 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
3320 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
3321 _M_pback to member initialization list.
3322 * include/std/std_streambuf.h: Same.
3323 * include/std/std_sstream.h: Same, for _M_mode.
3324 * src/ios.cc (ios_base): Same.
3326 * include/ext/rope: Make derived classes match exception
3328 specifications. Add copy constructors and assignment operators.
3330 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
3331 constructor and assignment operator protected.
3332 (_Safe_iterator_base): Same.
3333 * include/debug/formatter.h (_Error_formatter): Define copy
3334 constructor and assignment operator.
3336 * include/backward/strstream: Declare assignment operator and copy
3337 constructor private.
3339 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
3341 * testsuite/testsuite_hooks.h (func_callback): Declare copy
3342 constructor and assignment operator private.
3343 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
3344 exception specifications of base class.
3345 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
3346 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
3347 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
3349 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
3351 * libsupc++/cxxabi.h: Remove duplicated and useless public and
3352 private keywords in class declarations. Format. Use
3353 stddef.h. Expose declarations to "C" compilation.
3354 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
3355 assignment operator.
3356 (__dyncast_result): Same.
3357 * libsupc++/vec.cc (uncatch_exception): Same, use member
3358 initialization list.
3360 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
3362 * testsuite/abi_check.cc: Add unistd.h.
3364 2004-05-22 Paolo Carlini <pcarlini@suse.de>
3367 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
3368 __int_to_char(unsigned long long)): Showpos is not relevant
3370 * testsuite/22_locale/num_put/put/char/15565.cc: New.
3371 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
3373 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
3375 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
3376 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
3377 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3378 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
3379 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
3380 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
3382 2004-05-21 Matthias Klose <doko@debian.org>
3384 * docs/doxygen/run_doxygen: Bump required version.
3386 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
3388 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
3389 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
3391 2004-05-21 Paolo Carlini <pcarlini@suse.de>
3393 * include/bits/istream.tcc (ignore): Remove redundant line.
3394 (readsome): Tidy, closely following 27.6.1.3, p30.
3396 2004-05-20 Paolo Carlini <pcarlini@suse.de>
3398 * include/bits/istream.tcc (operator>>(basic_istream<>&,
3399 basic_string<>&)): Use a temporary buffer, thus avoiding
3400 reallocation for common case.
3401 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
3403 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
3406 * include/bits/istream.tcc: Const-ification of a few variables.
3408 * include/bits/ostream.tcc: Trivial formatting fixes and
3409 const-ification of some variables.
3411 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
3415 * docs/doxygen/Intro.3: Remove Allocators.3.
3416 Add new extension headers, extension namespace list.
3417 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
3418 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
3419 __gnu_debug::. Remove __policy_ renames.
3420 * docs/doxygen/guide.html: Add dot note.
3421 * docs/doxygen/stdheader.cc: Edit, add files.
3422 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
3424 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
3426 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
3428 2004-05-18 Jan Beulich <jbeulich@novell.com>
3431 * scripts/create_testsuite_files: Also find source files through
3434 2004-05-18 Jan Beulich <jbeulich@novell.com>
3437 * testsuite/lib/libstdc++.exp: Make test files writable.
3439 2004-05-18 Paolo Carlini <pcarlini@suse.de>
3441 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
3444 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
3446 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
3447 allocation loop which removes blocks from the global free list
3448 from O(N) to O(1) when the required blocks are <= the number
3451 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
3453 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
3455 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
3457 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
3458 * testsuite/23_containers/deque/14340.cc: New.
3459 * testsuite/23_containers/list/14340.cc: New.
3460 * testsuite/23_containers/map/14340.cc: New.
3461 * testsuite/23_containers/multimap/14340.cc: New.
3462 * testsuite/23_containers/multiset/14340.cc: New.
3463 * testsuite/23_containers/set/14340.cc: New.
3464 * testsuite/23_containers/vector/14340.cc: New.
3466 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
3469 * include/debug/safe_iterator.h (_Safe_iterator converting
3470 constructor): Only allow declaration to instantiate when the
3471 incoming _Safe_iterator has exactly the right iterator type.
3473 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
3475 * include/bits/boost_concept_check.h: Fix old attribute syntax.
3476 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
3477 to pass concept-checks.
3478 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3479 * testsuite/23_containers/set/modifiers/swap.cc: Same.
3480 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3482 2004-05-16 Paolo Carlini <pcarlini@suse.de>
3484 * include/std/std_bitset.h: Minor formatting fixes.
3486 2004-05-16 Paolo Carlini <pcarlini@suse.de>
3488 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3489 Consistently update __bin._M_free[0].
3490 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
3491 __bin._M_free[0] to simplify the while loop (i.e., the number
3492 of iterations becomes known at the outset).
3494 2004-05-15 Paolo Carlini <pcarlini@suse.de>
3496 * include/std/std_bitset.h: Trivial formatting fixes.
3498 2004-05-14 Paolo Carlini <pcarlini@suse.de>
3499 Ivan Godard <igodard@pacbell.net>
3502 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
3503 * testsuite/23_containers/bitset/ext/15361.cc: New.
3505 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
3508 * crossconfig.m4: Add C99 math bits for linux crosses.
3509 * configure: Regenerate.
3511 2004-05-13 Simon Marshall <simon.marshall@misys.com>
3512 Benjamin Kosnik <bkoz@redhat.com>
3515 * include/bits/locale_facets.h: Fix for -fno-for-scope.
3516 * include/debug/safe_sequence.h: Same.
3517 * include/debug/safe_iterator.tcc: Same.
3518 * src/debug.cc: Same.
3519 * src/locale.cc: Same.
3520 * src/locale_init.cc: Same.
3521 * src/localename.cc: Same.
3522 * config/locale/gnu/ctype_members.cc: Same.
3523 * config/locale/gnu/numeric_members.cc: Same.
3524 * testsuite/testsuite_abi.cc: Same.
3525 * testsuite/testsuite_hooks.cc: Same.
3527 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
3529 * docs/html/abi.html: Document effect of -fabi-version on value
3530 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
3533 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
3536 * docs/html/faq/index.html: Update docs for libsupc++ usage.
3538 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
3541 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
3543 (_GLIBCXX_mutex_address): Same.
3544 (_GLIBCXX_once): Same.
3545 (_GLIBCXX_mutex_init): Same.
3546 (_GLIBCXX_mutex_address_init): Same.
3548 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
3550 * docs/html/abi.html: New.
3551 * docs/html/abi.txt: Remove.
3552 * docs/html/documentation.html: Add link.
3553 * testsuite/Makefile.am: Add files.
3554 * testsuite/Makefile.in: Regenerated.
3555 * testsuite/abi_check.cc: Move and modify code into...
3556 * testsuite/testsuite_abi.cc: Add.
3557 * testsuite/testsuite_abi.h: Add.
3559 * docs/html/17_intro/TODO: Update.
3560 * include/bits/stl_pair.h: Format.
3562 2004-05-06 Matthias Klose <doko@debian.org>
3564 * include/backward/iterator.h: Add GPL copyright info,
3565 with exception clause.
3566 * include/bits/boost_concept_check.h: Likewise.
3568 * libsupc++/tinfo.h: Likewise.
3569 * po/string_literals.cc: Likewise.
3571 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
3573 * acinclude.m4: Replace -W with more speaking -Wextra.
3574 * configure: Rebuilt.
3576 2004-05-03 Paolo Carlini <pcarlini@suse.de>
3578 Optimize locale::_M_impl->_M_names for the most common cases:
3579 !_M_names[0] means unnamed; !_M_names[1] means all the categories
3580 the same name (_M_names[0] && _M_names[1] means that the full set
3581 of _M_names must be processed, the general case).
3582 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
3583 Tweak, saving work when !_M_names[1].
3584 (locale::locale(const locale&, _Facet*): Simplify: now just setting
3585 _M_names[0] = 0 means unnamed.
3586 * src/locale.cc (locale::operator==): Deal first with the common,
3587 easy cases, otherwise fall back to locale::name().
3588 (locale::name()): Tweak, if !_M_names[0] just return "*".
3589 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
3590 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
3591 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
3592 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
3593 Simplify when !std::strchr, just updating _M_names[0]; clean up.
3594 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
3595 for the general case (full set of names), then do the usual work;
3598 * src/locale.cc (locale::name()): Reserve space in __ret.
3599 * src/locale_init.cc (locale::global(const locale&)): Save
3600 the name in a temporary.
3601 * src/localename.cc (locale::locale(const char*)): Reserve space
3604 2004-04-29 Paolo Carlini <pcarlini@suse.de>
3606 * src/locale.cc (locale::operator==): Always avoid constructing
3607 locale::name(), directly compare pairs of _M_names.
3609 2004-04-26 Paolo Carlini <pcarlini@suse.de>
3611 * include/bits/istream.tcc: Fix comment.
3613 2004-04-26 Paolo Carlini <pcarlini@suse.de>
3615 * include/bits/stl_vector.h: Trivial formatting fixes.
3616 * include/bits/vector.tcc: Likewise.
3618 2004-04-25 Paolo Carlini <pcarlini@suse.de>
3620 PR libstdc++/15002 (continued again)
3621 * include/bits/istream.tcc (getline(basic_istream<>&,
3622 basic_string<>&, _CharT)): Use a temporary buffer, thus
3623 avoiding reallocation for common case.
3625 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3626 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
3627 of temporary buffer to a power of two.
3629 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
3631 2004-04-25 Paolo Carlini <pcarlini@suse.de>
3633 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
3635 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
3637 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
3639 2004-04-24 Paolo Carlini <pcarlini@suse.de>
3640 Petur Runolfsson <peturr02@ru.is>
3642 PR libstdc++/15002 (continued)
3643 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
3644 streamsize, char_type)): Use traits::find/copy in a loop to speed
3645 up greatly the function in the common case (I/O buffer size >> 1).
3647 2004-04-24 Paolo Carlini <pcarlini@suse.de>
3649 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
3651 * include/bits/istream.tcc (getline(basic_istream<>&,
3652 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
3653 of sbumpc(), consistently with the other functions, thus also
3654 dealing correctly with the case of exceeded string::max_size().
3656 2004-04-24 Matthias Klose <doko@debian.org>
3658 Jonathan Wakely <cow@compsoc.man.ac.uk>
3659 * docs/html/configopts.html: Fix reference to allocator config option.
3661 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
3663 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
3664 * configure: Regenerate.
3666 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
3668 PR libstdc++/15047, libstdc++/11610
3669 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
3670 (libstdc++_init): Don't pass outdir to v3-copy-files.
3672 2004-04-21 Paolo Carlini <pcarlini@suse.de>
3674 * include/bits/deque.tcc: Trivial formatting fixes.
3675 * include/bits/stl_deque.h: Likewise.
3676 * include/bits/stl_list.h: Likewise.
3677 * include/bits/stl_tree.h: Likewise.
3679 2004-04-21 Paolo Carlini <pcarlini@suse.de>
3680 Andrew Pinski <pinskia@physics.uc.edu>
3682 * include/bits/basic_string.tcc (_M_mutate): Don't compute
3683 __src unnecessarily.
3685 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
3687 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
3688 Clarify assertion, set test variable to false before assert.
3689 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
3690 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
3691 * testsuite/27_io/ios_base/storage/2.cc: Same.
3693 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
3695 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
3696 * testsuite/27_io/fpos/14320-3.cc: Same.
3698 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
3699 * testsuite/27_io/fpos/1.cc: Same.
3700 * testsuite/27_io/basic_stringstream/2.cc: Same.
3701 * testsuite/27_io/basic_stringbuf/4.cc: Same.
3702 * testsuite/27_io/basic_stringbuf/1.cc: Same.
3703 * testsuite/27_io/basic_stringbuf/2.cc: Same.
3704 * testsuite/27_io/basic_streambuf/2.cc: Same.
3705 * testsuite/27_io/basic_ostringstream/2.cc: Same.
3706 * testsuite/27_io/basic_ostream/2.cc: Same.
3707 * testsuite/27_io/basic_ofstream/2.cc: Same.
3708 * testsuite/27_io/basic_istringstream/2.cc: Same.
3709 * testsuite/27_io/basic_istream/2.cc: Same.
3710 * testsuite/27_io/basic_iostream/2.cc: Same.
3711 * testsuite/27_io/basic_ios/2.cc: Same.
3712 * testsuite/27_io/basic_ifstream/2.cc: Same.
3713 * testsuite/27_io/basic_fstream/2.cc: Same.
3714 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
3716 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
3717 unsigned against zero.
3718 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
3719 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
3721 * testsuite/18_support/new_delete_placement.cc: Initialize
3722 variables before first use.
3723 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
3724 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
3725 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
3726 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
3728 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
3729 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
3731 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
3732 * testsuite/27_io/types/2.cc: Same.
3734 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
3736 * testsuite/27_io/fpos/14775.cc: Same.
3738 2004-04-19 Paolo Carlini <pcarlini@suse.de>
3740 PR libstdc++/15002 (partial)
3741 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3742 Special case __n2 == 1, not calling traits_type::assign/copy.
3744 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
3746 * include/bits/stl_bvector.h: Use _M_impl._M_start.
3748 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
3750 * include/bits/c++config (_GLIBCXX_STD): New.
3751 * src/list.cc: Use it.
3752 * include/std/std_bitset.h: Same.
3753 * include/bits/vector.tcc: Same.
3754 * include/bits/stl_set.h: Same.
3755 * include/bits/stl_multiset.h: Same.
3756 * include/bits/stl_multimap.h: Same.
3757 * include/bits/stl_map.h: Same.
3758 * include/bits/stl_list.h: Same.
3759 * include/bits/stl_vector.h: Same.
3760 * include/bits/stl_bvector.h: Same.
3761 * include/bits/stl_deque.h: Same.
3762 * include/bits/deque.tcc: Same.
3763 * include/bits/list.tcc: Same.
3764 * include/debug/vector: Same.
3765 * include/debug/set.h: Same.
3766 * include/debug/multiset.h: Same.
3767 * include/debug/multimap.h: Same.
3768 * include/debug/map.h: Same.
3769 * include/debug/list: Same.
3770 * include/debug/deque: Same.
3771 * include/debug/bitset: Same.
3772 * include/debug/formatter.h (__gnu_debug): Remove using directive.
3773 Add using declaration for std::type_info.
3774 * include/debug/safe_iterator.h: Add using declaration for
3775 std::iterator_traits and std::pair.
3776 * src/debug_list.cc: New.
3777 * src/Makefile.am: Add debug_list.cc.
3778 * src/Makefile.in: Regenerate.
3779 * config/linker-map.gnu: Add _List_node_base exports for std and
3782 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
3783 idiom that other containers use.
3784 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
3786 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3789 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
3791 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
3792 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
3794 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3796 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
3798 * config.h.in: Regenerate.
3800 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3802 * config/locale/generic/monetary_members.cc
3803 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
3804 btowc unnecessarily, just cast to wchar_t (the concerned chars
3805 all belong to the basic character set).
3806 * config/locale/generic/numeric_members.cc
3807 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3808 * config/locale/gnu/monetary_members.cc
3809 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
3810 * config/locale/gnu/numeric_members.cc
3811 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3813 2004-04-15 Paolo Carlini <pcarlini@suse.de>
3815 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
3816 avoid constructing unnecessarily this->name().
3818 2004-04-14 Zack Weinberg <zack@codesourcery.com>
3820 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
3821 Change definition of CXX to use $(shell) instead of backticks.
3822 * testsuite/Makefile.in: Regenerate.
3824 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
3826 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3827 Minor formatting fixes.
3828 * testsuite/performance/20_util/allocator/map_mt_find.cc:
3831 2004-04-12 Paolo Carlini <pcarlini@suse.de>
3833 * config/locale/gnu/numeric_members.cc
3834 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
3835 in __uselocale, since btowc is called for chars belonging to
3836 the basic character set.
3838 2004-04-09 Paolo Carlini <pcarlini@suse.de>
3840 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
3841 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
3842 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
3843 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
3844 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
3845 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
3846 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
3847 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
3848 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
3849 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
3850 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
3851 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
3852 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
3853 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
3854 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
3855 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
3856 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
3858 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3860 * config/locale/generic/time_members.cc
3861 (__timepunct<char>::_M_initialize_timepunct,
3862 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
3863 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
3864 * config/locale/gnu/time_members.cc
3865 (__timepunct<char>::_M_initialize_timepunct,
3866 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
3867 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
3868 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
3870 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
3871 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
3872 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
3873 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
3874 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
3875 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
3876 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
3877 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
3878 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
3879 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
3880 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
3881 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
3882 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
3883 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
3884 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
3885 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
3886 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
3887 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
3888 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
3889 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
3890 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
3891 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
3892 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
3893 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
3894 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
3895 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
3896 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
3897 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
3898 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
3899 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
3900 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
3901 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
3902 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
3903 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
3904 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
3905 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
3907 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
3909 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3911 * config/locale/gnu/monetary_members.cc
3912 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
3913 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
3914 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
3915 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
3916 * config/locale/gnu/numeric_members.cc
3917 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
3918 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
3920 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
3922 Fixups for EDG front end.
3923 * include/ext/rope: Instead of non-existent function
3924 _Data_allocate, use allocator's allocate. Use this.
3925 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
3926 enumerations from _Rope_RopeRep here.
3927 * include/ext/ropeimpl.h: Same.
3928 * src/ext-inst.cc (_S_min_len): Fix up definition.
3930 * config/locale/gnu/ctype_members.cc: Qualify base class members
3932 * config/locale/generic/ctype_members.cc: Same.
3933 * config/locale/gnu/messages_members.h: Same.
3934 * config/locale/generic/messages_members.h: Same.
3935 * src/ctype.cc: Same.
3936 * include/bits/codecvt.h: Same.
3938 * include/bits/boost_concept_check.h: Declare.
3939 (__error_type_must_be_an_unsigned_integer_type): Remove this.
3940 (__error_type_must_be_an_integer_type): Remove this.
3941 (__error_type_must_be_a_signed_integer_type): Remove this.
3943 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
3945 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
3946 specification to definition.
3947 (__cxa_allocate_exception): Same.
3948 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
3949 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
3950 (__cxa_get_globals): Same.
3952 * libsupc++/del_op.cc: Add comment about freestanding.
3954 2004-04-05 Paolo Carlini <pcarlini@suse.de>
3956 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3957 The critical section is actually very small, only two assignments.
3959 2004-04-04 Paolo Carlini <pcarlini@suse.de>
3960 Petur Runolfsson <peturr02@ru.is>
3962 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
3963 adapted from libstdc++/11378.
3965 2004-04-03 Paolo Carlini <pcarlini@suse.de>
3967 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
3968 some duplicated code.
3969 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
3970 in the single threaded case.
3971 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3972 Reorder and renumber the tests consistently with the other testfiles.
3973 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3974 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3975 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3977 2004-04-02 Paolo Carlini <pcarlini@suse.de>
3979 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3980 Rearrange arithmetic to avoid computing two divisions at
3983 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3985 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
3986 Streamline the second half, wrapping it in a single
3987 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
3988 conditionals inside loops.
3990 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3993 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
3994 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
3995 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
3996 to _GLIBCXX_RES_LIMITS.
3997 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
3999 * testsuite/testsuite_hooks.h: Declare set_file_limit.
4000 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
4001 and setrlimit(RLIMIT_FSIZE).
4002 * testsuite/27_io/fpos/14775.cc: New.
4003 * config.h.in: Regenerate.
4004 * configure: Likewise.
4006 2004-03-31 Paolo Carlini <pcarlini@suse.de>
4008 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
4009 In v3 uses of sscanf, the special floating-point numbers INF,
4010 INFINITY, etc., cannot occur in input, therefore, if the latter
4011 is too large, ERANGE is always stored in errno, no need of finitel.
4013 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
4016 * include/bits/stl_tree.h: Adjust initialization list order.
4018 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
4020 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
4022 2004-03-29 Paolo Carlini <pcarlini@suse.de>
4024 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
4025 on allocator behavior, the memory pointed by data2 may well be not
4028 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
4031 * include/bits/basic_string.tcc
4032 (basic_string::basic_string(const basic_string&)): Pass to
4033 _Rep::_M_grab the actual allocator of the string being constructed
4034 not the default constructed one.
4036 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
4039 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
4040 (__enc_traits::_M_destroy): New.
4041 (__enc_traits::~__enc_traits): Use it.
4042 (__enc_traits::operator=): Use _M_destroy, _M_init.
4043 (__enc_traits::__enc_traits): Same.
4045 2004-03-27 Petur Runolfsson <peturr02@ru.is>
4047 * testsuite/ext/enc_filebuf/char/13598.cc: New.
4049 2004-03-27 Paolo Carlini <pcarlini@suse.de>
4051 * include/ext/mt_allocator.h: Uglify consistently names of
4052 variables, members and classes; tidy.
4054 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
4056 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
4057 Deallocation loop rewrote.
4059 2004-03-26 Paolo Carlini <pcarlini@suse.de>
4061 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
4062 __mt_alloc<>::deallocate): Protect two instances of
4063 block->thread_id with __GTHREADS.
4065 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
4067 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
4068 default argument in constructors.
4069 (_Rb_tree::_M_empty_initialize): Remove.
4071 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
4073 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
4074 * testsuite/23_containers/set/operators/1_neg.cc: Same.
4076 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
4078 * include/bits/cpp_type_traits.h: Changed __is_pod
4079 completely. Now, it does not use any of the previous type_traits
4080 to detect the pod types, and it also detects function pointers as
4083 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
4084 which encapsulates the internal implementation of an rb_tree. Made
4085 the allocator a base class of this class instead of the rb_tree,
4086 which was not conforming. This _Rb_tree_impl class is also
4087 specialized on whether the _Compare parameter is a POD type or
4088 not. If so, then it maintains the comparison function as a data
4089 member, otherwise it makes the _Compare parameter a base class of
4090 itself. Also, _M_key_compare is now a function instead of a data
4091 member, so that the above trick can work properly. Delegated the
4092 initialization of the other data members to this newly created
4093 class. Also, now other member functions of rb_tree must refer to
4094 _M_key_compare as _M_impl._M_key_compare(). The other data members
4095 (*) can be referenced to as _M_impl.(*), where
4096 (*) includes _M_header, and _M_node_count.
4098 2004-03-25 Paolo Carlini <pcarlini@suse.de>
4100 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
4101 Add _M_min_bin, the size in bytes of the smallest bin.
4102 (__mt_alloc<>::tune()): Tweak accordingly.
4103 (__mt_alloc<>::tune(size_t, ...)): Likewise.
4104 (__mt_alloc<>::block_record): Change to a union: members next
4105 and thread_id are never used at the same time.
4106 (__mt_alloc<>::allocate): Update consistently.
4107 (__mt_alloc<>::deallocate): Likewise.
4108 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
4109 _S_bin_size for the configurable _M_min_size.
4111 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
4113 * include/bits/stl_list.h: Created a _List_impl class and made it
4114 derive from the allocator, instead of the list deriving from the
4115 allocator class, which was not conformant. Changed all references
4116 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
4117 as above (changed all references to the concerned variables).
4119 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
4121 * include/bits/stl_deque.h: Created a _Deque_impl class and made
4122 it derive from the allocator, instead of the deque deriving from
4123 the allocator class, which was not conformant. Changed all
4124 references to the _M_start, _M_finish, _M_map, and _M_map_size to
4126 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
4127 qualification in 2 places where it was missing.
4128 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
4130 * include/bits/deque.tcc: Same as above (changed all references to
4131 the concerned variables).
4133 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
4135 * include/bits/stl_vector.h: Created a _Vector_impl class and made
4136 it derive from the allocator, instead of the _Vector_base class,
4137 deriving from the allocator which was not conformant. Changed all
4138 references to the _M_start, _M_finish, and _M_end_of_storage to
4140 * include/bits/vector.tcc: Same as above (changed all references
4141 to the concerned variables).
4143 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
4145 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
4146 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
4147 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
4149 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
4151 * include/ext/malloc_allocator.h: Fixed the construct function to
4152 call global placement new instead of assignment. Added a check
4153 after the return from malloc to check whether returned pointer is
4154 NULL, and if so, throw std::bad_alloc().
4155 * include/ext/debug_allocator.h: Added a check in the deallocate
4156 function to check whether the user has passed a NULL pointer or
4159 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
4161 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
4163 2004-03-24 Andreas Schwab <schwab@suse.de>
4165 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
4166 warning from IA64 assembler.
4168 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
4170 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
4171 function call __builtin_ctz instead of the while loop.
4172 (allocate) -> If condition has __builtin_expect.
4173 (deallocate) -> Ditto.
4174 Renamed a few left-over variables and typedefs according to the
4175 C++STYLE mentioned in the documentation.
4176 Protected calls to __gthread* by __gthread_active_p(), whose value
4177 is cached in the local variable __threads_active.
4179 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
4181 * testsuite/performance/20_util/allocator/producer_consumer.cc:
4182 Use linear algorithm for producer.
4184 2004-03-24 Paolo Carlini <pcarlini@suse.de>
4186 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
4187 __mt_alloc<>::deallocate): Avoid redundant conditionals.
4189 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
4191 * include/bits/locale_facets.h: Tweaks for 80 column.
4192 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
4193 (__moneypunct_cache::_M_cache): Same.
4194 (num_get): Don't inherit from __num_base.
4196 (money_get): Don't inherit from money_base.
4198 (__timepunct::_M_am_pm_format): New.
4199 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
4200 (time_get::_M_extract_name): Same.
4201 (time_get::_M_extract_via_format): Same.
4202 * include/bits/locale_facets.tcc: Tweaks for 80 column.
4203 Use _M_getloc instead of getloc.
4204 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
4205 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
4206 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
4208 2004-03-22 Paolo Carlini <pcarlini@suse.de>
4210 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
4211 * configure: Regenerate.
4212 * config/allocator/pool_allocator_base.h: New.
4213 * include/ext/pool_allocator.h: Convert to a standard-conforming
4215 * src/allocator.cc: Tweak instantiations.
4216 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
4217 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
4218 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
4219 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
4220 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
4221 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
4223 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
4225 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
4226 inline" and attribute-unused. Qualify parameter __mem with
4228 (__exchange_and_add): Ditto. Add back memory clobber to asm.
4230 2004-03-20 Paolo Carlini <pcarlini@suse.de>
4232 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
4234 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
4236 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
4238 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
4240 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
4242 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
4244 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
4246 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
4248 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
4250 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
4253 2004-03-20 Paolo Carlini <pcarlini@suse.de>
4255 * include/std/std_valarray.h: Document DR389 [Ready].
4256 * docs/html/ext/howto.html: Add an entry for DR389.
4258 2004-03-19 Michael Eager <eager@mvista.com>
4260 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
4263 2004-03-19 Paolo Carlini <pcarlini@suse.de>
4265 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
4267 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
4268 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
4269 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
4270 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
4271 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
4272 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
4273 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
4274 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
4275 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
4277 2004-03-19 Paolo Carlini <pcarlini@suse.de>
4278 Petur Runolfsson <peturr02@ru.is>
4281 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
4282 no way to find out the conversion used by the underlying FILE*.
4283 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
4284 * testsuite/27_io/objects/char/9.cc: Tweak.
4286 2004-03-19 Paolo Carlini <pcarlini@suse.de>
4289 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
4290 memory allocation/deallocation calls.
4291 * testsuite/ext/14648.cc: New.
4293 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
4296 * include/backward/bvector.h (bit_vector): Allocator is in std
4299 2004-03-19 Phil Edwards <phil@codesourcery.com>
4301 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
4302 not libiconv. SUBST this variable as well.
4303 * testsuite/Makefile.am (site.exp): New target, based on that
4304 created by automake. Also set libiconv.
4306 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
4307 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
4308 testsuite/Makefile.in: Regenerate.
4310 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
4312 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
4313 new_allocator for all hosts.
4314 * configure: Regenerate.
4316 2004-03-16 Paolo Carlini <pcarlini@suse.de>
4318 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
4319 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
4321 2004-03-15 Paolo Carlini <pcarlini@suse.de>
4323 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4324 Adjust the logic underlying the parsing of symbol to deal
4325 correctly with an optional sign component (i.e., when either
4326 negative_sign or positive_sign is empty)
4327 * testsuite/22_locale/money_get/get/char/19.cc: New.
4328 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
4330 2004-03-15 Paolo Carlini <pcarlini@suse.de>
4332 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4333 Do not accept an incomplete currency symbol.
4334 * testsuite/22_locale/money_get/get/char/18.cc: New.
4335 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
4337 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
4339 * config/allocator: New.
4340 * config/allocator/bitmap_allocator_base.h: New.
4341 * config/allocator/malloc_allocator_base.h: New.
4342 * config/allocator/mt_allocator_base.h: New.
4343 * config/allocator/new_allocator_base.h: New.
4344 * include/bits/allocator.h: Include c++allocator.h.
4345 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
4346 * aclocal.m4: Regenerate.
4347 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
4348 * configure: Regenerate.
4349 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
4350 * include/Makefile.in: Regenerate.
4351 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
4353 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
4355 * include/bits/allocator.h: Revert.
4357 2004-03-12 Paolo Carlini <pcarlini@suse.de>
4359 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
4360 * include/bits/gslice_array.h: Add comment about DR 253.
4361 * include/bits/indirect_array.h: Likewise.
4362 * include/bits/mask_array.h: Likewise.
4363 * include/bits/slice_array.h: Likewise.
4365 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
4367 * testsuite/20_util/allocator/14176.cc: New.
4368 * include/ext/mt_allocator.h: Formatting fixes.
4370 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
4372 * include/Makefile.am (ext_headers): Add
4373 ${ext_srcdir}/bitmap_allocator.h .
4374 * include/Makefile.in: Regenerate.
4375 * docs/html/ext/ballocator_doc.txt: New file.
4376 * include/ext/bitmap_allocator.h: New file.
4377 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
4379 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
4380 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
4381 test for the bitmap_allocator<>.
4382 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
4383 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
4384 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
4386 2004-03-11 Paolo Carlini <pcarlini@suse.de>
4388 * include/std/std_complex.h (pow(const complex&, const _Tp&),
4389 pow(const _Tp&, const complex&), pow(const complex&,
4390 const complex&)): Fully qualify with std:: a few calls.
4391 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
4393 2004-03-11 Steven Bosscher <stevenb@suse.de>
4396 * include/c_std/cmath.tcc (__cmath_power): Define inline.
4398 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
4400 * configure.ac: Bump AC_PREREQ to 2.59.
4402 2004-03-10 Paolo Carlini <pcarlini@suse.de>
4404 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
4406 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
4407 Paolo Carlini <pcarlini@suse.de>
4410 * include/std/std_complex.h (pow(const complex&, const _Tp&),
4411 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
4412 * testsuite/26_numerics/complex/13450.cc: New.
4414 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
4415 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
4417 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
4420 * include/bits/gslice_array.h (gslice_array()): Make public.
4421 (operator=(gslice_array)): Make public. Implement.
4422 * include/bits/indirect_array.h (indirect_array()): Make public.
4423 * include/bits/mask_array.h (mask_array()): Make public.
4424 (operator=(mask_array)): Make public. Implement.
4425 * include/bits/valarray_array.tcc (__valarray_copy):
4426 Comment. Add versions for gslice_array and mask_array.
4427 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
4429 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
4431 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
4433 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
4434 * testsuite/23_containers/set/modifiers/swap.cc: Same.
4435 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
4436 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
4437 * testsuite/23_containers/map/modifiers/swap.cc: Same.
4438 * testsuite/23_containers/list/modifiers/swap.cc: Same.
4440 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
4442 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
4445 * testsuite/23_containers/deque/modifiers/swap.cc: New.
4446 * testsuite/23_containers/list/modifiers/swap.cc: New.
4447 * testsuite/23_containers/map/modifiers/swap.cc: New.
4448 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
4449 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
4450 * testsuite/23_containers/set/modifiers/swap.cc: New.
4451 * testsuite/23_containers/vector/modifiers/swap.cc: New.
4453 2004-03-08 Petur Runolfsson <peturr02@ru.is>
4456 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
4458 2004-03-08 Paolo Carlini <pcarlini@suse.de>
4460 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
4461 * include/bits/stl_multiset.h: Add comment about DR 103.
4462 * include/bits/stl_set.h: Likewise.
4464 2004-03-08 Paolo Carlini <pcarlini@suse.de>
4466 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4467 The value _space_ indicates that at least one space is required
4469 * testsuite/22_locale/money_get/get/char/17.cc: New.
4470 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
4472 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
4473 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
4475 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
4476 Remove redundant conditional on __str.size().
4478 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
4480 * include/bits/allocator.h: Switch defaults to mt_alloc.
4482 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
4484 * include/ext/mt_allocator.h (_S_initialize): If
4485 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
4487 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
4490 * src/locale_init.cc (locale::locale): Lock critical regions with
4492 (locale::global): Same.
4493 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
4494 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
4495 (__glibcxx_mutex_lock): Same.
4497 * config/cpu/generic/atomicity.h: Remove
4498 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
4499 * src/misc-inst.cc: Move all locking bits out of this file.
4501 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
4502 * src/misc-inst.cc: Same.
4503 * config/cpu/hppa/atomicity.h: Same.
4505 * config/linker-map.gnu: Remove types in the signature of atomic
4506 exports, as they may vary.
4508 2004-03-06 Paolo Carlini <pcarlini@suse.de>
4510 * include/bits/locale_facets.tcc: Tweak the comment preceding
4511 has_facet: doesn't throw.
4513 2004-03-06 Paolo Carlini <pcarlini@suse.de>
4515 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
4516 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4517 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4518 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4519 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4520 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4521 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4522 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4524 2004-03-06 Paolo Carlini <pcarlini@suse.de>
4526 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4527 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
4528 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
4529 * testsuite/testsuite_character.h (struct __gnu_test::character):
4531 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
4534 2004-03-05 Paolo Carlini <pcarlini@suse.de>
4536 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
4538 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
4540 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
4542 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
4544 * testsuite/23_containers/deque/invalidation/4.cc: Same.
4545 * testsuite/23_containers/list/invalidation/1.cc: Same.
4546 * testsuite/23_containers/list/invalidation/2.cc: Same.
4547 * testsuite/23_containers/list/invalidation/3.cc: Same.
4548 * testsuite/23_containers/list/invalidation/4.cc: Same.
4549 * testsuite/23_containers/map/invalidation/2.cc: Same.
4550 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
4551 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4552 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
4553 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4554 * testsuite/23_containers/set/invalidation/1.cc: Same.
4555 * testsuite/23_containers/set/invalidation/2.cc: Same.
4556 * testsuite/23_containers/vector/invalidation/1.cc: Same.
4557 * testsuite/23_containers/vector/invalidation/2.cc: Same.
4558 * testsuite/23_containers/vector/invalidation/3.cc: Same.
4559 * testsuite/23_containers/vector/invalidation/4.cc: Same.
4561 2004-03-04 Paolo Carlini <pcarlini@suse.de>
4563 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
4565 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
4567 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
4568 from the dg-options.
4569 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
4570 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
4571 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
4572 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
4573 * testsuite/23_containers/vector/resize/1.cc: Likewise.
4574 * testsuite/26_numerics/complex_value.cc: Likewise.
4575 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
4576 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
4577 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
4578 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
4579 * testsuite/27_io/objects/char/5.cc: Likewise.
4580 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
4581 * testsuite/backward/11460.cc: Likewise.
4582 * testsuite/thread/pthread7-rope.cc: Likewise.
4584 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
4585 missing test variable.
4586 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
4587 missing test variable.
4589 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
4591 * testsuite/20_util/allocator/1.cc: Provide explicit
4592 instantiations for non-weak systems.
4593 * testsuite/20_util/binders.cc: Same.
4594 * testsuite/20_util/allocator/8230.cc: Same.
4595 * testsuite/20_util/allocator/10378.cc: Same.
4596 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
4597 * testsuite/22_locale/ctype/is/char/2.cc: Same.
4598 * testsuite/thread/pthread7-rope.cc: Same.
4599 * testsuite/thread/pthread6.cc: Same.
4600 * testsuite/thread/pthread5.cc: Same.
4601 * testsuite/thread/pthread4.cc: Same.
4602 * testsuite/thread/pthread1.cc: Same.
4603 * testsuite/ext/rope.cc: Same.
4604 * testsuite/ext/hash_set.cc: Same.
4605 * testsuite/ext/hash_map.cc: Same.
4606 * testsuite/ext/concept_checks.cc: Same.
4607 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
4608 * testsuite/25_algorithms/unique/2.cc: Same.
4609 * testsuite/25_algorithms/unique/1.cc: Same.
4610 * testsuite/25_algorithms/rotate.cc: Same.
4611 * testsuite/25_algorithms/min_max.cc: Same.
4612 * testsuite/25_algorithms/equal.cc: Same.
4613 * testsuite/24_iterators/rel_ops.cc: Same.
4614 * testsuite/24_iterators/iterator.cc: Same.
4615 * testsuite/24_iterators/insert_iterator.cc: Same.
4616 * testsuite/24_iterators/front_insert_iterator.cc: Same.
4617 * testsuite/24_iterators/back_insert_iterator.cc: Same.
4618 * testsuite/23_containers/vector/resize/1.cc: Same.
4619 * testsuite/23_containers/vector/modifiers/2.cc: Same.
4620 * testsuite/23_containers/vector/modifiers/1.cc: Same.
4621 * testsuite/23_containers/vector/invalidation/4.cc: Same.
4622 * testsuite/23_containers/vector/invalidation/3.cc: Same.
4623 * testsuite/23_containers/vector/invalidation/2.cc: Same.
4624 * testsuite/23_containers/vector/invalidation/1.cc: Same.
4625 * testsuite/23_containers/vector/element_access/1.cc: Same.
4626 * testsuite/23_containers/vector/cons/6513.cc: Same.
4627 * testsuite/23_containers/vector/cons/3.cc: Same.
4628 * testsuite/23_containers/vector/cons/2.cc: Same.
4629 * testsuite/23_containers/vector/cons/1.cc: Same.
4630 * testsuite/23_containers/vector/capacity/8230.cc: Same.
4631 * testsuite/23_containers/vector/capacity/1.cc: Same.
4632 * testsuite/23_containers/vector/bool/6886.cc: Same.
4633 * testsuite/23_containers/stack/members/7158.cc: Same.
4634 * testsuite/23_containers/set/invalidation/2.cc: Same.
4635 * testsuite/23_containers/set/invalidation/1.cc: Same.
4636 * testsuite/23_containers/queue/members/7157.cc: Same.
4637 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
4638 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4639 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4640 * testsuite/23_containers/multiset/insert/1.cc: Same.
4641 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4642 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4643 * testsuite/23_containers/map/operators/1.cc: Same.
4644 * testsuite/23_containers/map/invalidation/2.cc: Same.
4645 * testsuite/23_containers/map/invalidation/1.cc: Same.
4646 * testsuite/23_containers/map/insert/1.cc: Same.
4647 * testsuite/23_containers/list/operators/4.cc: Same.
4648 * testsuite/23_containers/list/operators/3.cc: Same.
4649 * testsuite/23_containers/list/operators/2.cc: Same.
4650 * testsuite/23_containers/list/operators/1.cc: Same.
4651 * testsuite/23_containers/list/modifiers/3.cc: Same.
4652 * testsuite/23_containers/list/modifiers/2.cc: Same.
4653 * testsuite/23_containers/list/modifiers/1.cc: Same.
4654 * testsuite/23_containers/list/invalidation/4.cc: Same.
4655 * testsuite/23_containers/list/invalidation/3.cc: Same.
4656 * testsuite/23_containers/list/invalidation/2.cc: Same.
4657 * testsuite/23_containers/list/invalidation/1.cc: Same.
4658 * testsuite/23_containers/list/cons/9.cc: Same.
4659 * testsuite/23_containers/list/cons/8.cc: Same.
4660 * testsuite/23_containers/list/cons/7.cc: Same.
4661 * testsuite/23_containers/list/cons/6.cc: Same.
4662 * testsuite/23_containers/list/cons/5.cc: Same.
4663 * testsuite/23_containers/list/cons/4.cc: Same.
4664 * testsuite/23_containers/list/cons/3.cc: Same.
4665 * testsuite/23_containers/list/cons/2.cc: Same.
4666 * testsuite/23_containers/list/cons/1.cc: Same.
4667 * testsuite/23_containers/list/capacity/1.cc: Same.
4668 * testsuite/23_containers/deque/operators/1.cc: Same.
4669 * testsuite/23_containers/deque/invalidation/4.cc: Same.
4670 * testsuite/23_containers/deque/invalidation/3.cc: Same.
4671 * testsuite/23_containers/deque/invalidation/2.cc: Same.
4672 * testsuite/23_containers/deque/invalidation/1.cc: Same.
4673 * testsuite/23_containers/deque/cons/2.cc: Same.
4674 * testsuite/23_containers/deque/cons/1.cc: Same.
4676 * src/allocator.cc: Add char, wchar_t instantiations
4677 to match extern template declarations in memory.h.
4679 2004-03-03 Paolo Carlini <pcarlini@suse.de>
4681 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4682 Fix warning regression.
4684 2004-03-03 Paolo Carlini <pcarlini@suse.de>
4686 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4687 Deal properly with empty __digits and negative frac_digits,
4690 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
4692 * docs/html/documentation.html: Regenerate.
4694 2004-03-02 Paolo Carlini <pcarlini@suse.de>
4697 * include/bits/postypes.h (class streamoff): Remove, now
4698 streamoff is just typedef a 64 bit signed integer type.
4699 (class fpos): Tweak consistently.
4700 * testsuite/27_io/fpos/14320-1.cc: New.
4701 * testsuite/27_io/fpos/14320-2.cc: New.
4702 * testsuite/27_io/fpos/14320-3.cc: New.
4703 * testsuite/27_io/fpos/14320-4.cc: New.
4704 * testsuite/27_io/fpos/14320-5.cc: New.
4705 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
4707 2004-03-02 Paolo Carlini <pcarlini@suse.de>
4709 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4710 Reorganize a bit the main parsing loop, thus early detecting
4711 an empty value component.
4712 * testsuite/22_locale/money_get/get/char/16.cc: New.
4713 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
4715 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
4717 Support automake 1.8.2
4718 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
4719 * po/Makefile.am (EXTRA_DIST): New.
4720 * po/Makefile.in: Regenerate.
4721 * Makefile.in: Same.
4722 * include/Makefile.in: Same.
4723 * libmath/Makefile.in: Same.
4724 * libsupc++/Makefile.in: Same.
4725 * src/Makefile.in: Same.
4726 * testsuite/Makefile.in: Same.
4728 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
4729 __GXX_WEAK__ instead of SUPPORTS_WEAK.
4730 (${host_builddir}/gthr-default.h): Same.
4731 (${host_builddir}/gthr.h): Same.
4732 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
4733 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
4735 * aclocal.m4: Regenerate.
4736 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
4737 * config.h.in: Regenerate.
4740 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
4742 Support autoconf 2.59
4743 * acinclude.m4: Quote correctly.
4744 * aclocal.m4: Regenerate.
4747 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
4749 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
4751 * docs/html/18_support/howto.html: Add bit about writing to
4752 stderr, mostly by Zack.
4754 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4756 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4757 money_get<>::do_get(string_type&)): ... and two more.
4759 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4761 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4762 Fix thinkos in the switch from string_type& to string& as last
4765 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4767 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4768 Also when parsing exponent sign, first look for thousands_sep
4769 and decimal_point; tweak a bit.
4770 * testsuite/22_locale/num_get/get/char/15.cc: New.
4771 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
4773 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4774 num_get<>::_M_extract_int): Reorder some conditionals.
4776 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4778 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4779 Consistently with numpunct, enforce the requirements in
4780 22.2.6.3, p3 for the thousands separators; tweak a bit.
4781 * testsuite/22_locale/money_get/get/char/15.cc: New.
4782 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
4784 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
4786 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
4787 testsuite_files from correct multilib blddir when running
4790 2004-02-29 Phil Edwards <phil@codesourcery.com>
4792 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
4793 the summary file to the logfile.
4794 * testsuite/Makefile.in: Regenerate.
4796 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4798 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
4800 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
4801 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
4803 2004-02-28 Paolo Carlini <pcarlini@suse.de>
4805 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4806 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
4807 no 'decimal-point' in the middle: in this case too we must fix
4808 up __found_grouping; slightly tweak.
4809 * testsuite/22_locale/num_get/get/char/14.cc: New.
4810 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
4812 2004-02-27 Eric Christopher <echristo@redhat.com>
4813 Phil Edwards <phil@codesourcery.com>
4815 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
4816 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
4817 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
4818 testsuite/22_locale/collate/hash/wchar_t/2.cc,
4819 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
4820 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
4821 testsuite/22_locale/collate/transform/wchar_t/2.cc,
4822 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
4823 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4824 Use dg-require-iconv.
4825 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
4827 2004-02-27 Phil Edwards <phil@codesourcery.com>
4828 Eric Christopher <echristo@redhat.com>
4830 * testsuite/config/default.exp: Update with comments.
4831 (${tool}_target_compile): New wrapper routine.
4832 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
4833 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
4835 (load_gcc_lib, v3track): New routines.
4836 (v3-init): Rename to libstdc++_init.
4837 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
4838 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
4840 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
4842 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
4844 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
4846 * config/os/irix/irix5.2/atomicity.h: Merge..
4847 * config/os/irix/irix6.5/atomicity.h: Merge..
4848 * config/os/irix/atomicity.h: ...into this.
4849 * config/os/irix/atomic_word.h: New.
4850 * configure.host: Set atomic_word_dir for irix.
4852 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
4853 * i386/atomicity.h: Same.
4854 * m68k/atomicity.h: Same.
4855 * sparc/atomicity.h: Same.
4857 2004-02-27 David Edelsohn <edelsohn@gnu.org>
4859 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
4860 static, and inline keywords.
4862 2004-02-27 Paolo Carlini <pcarlini@suse.de>
4864 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4865 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
4866 call reserve on the __tmp_gruping string.
4867 (num_get<>::_M_extract_float): Don't append unnecessarily a
4868 char() to the returned string.
4869 * include/bits/locale_facets.tcc: Trivial reformattings.
4871 2004-02-27 Paolo Carlini <pcarlini@suse.de>
4873 * include/bits/locale_facets.h (money_get<>::_M_extract):
4874 Change signature: now takes a plain string&.
4875 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4876 Update consistently the definition; use the moneypunct cache
4877 to parse the value; use swap to change __units.
4878 (money_get<>::do_get(long double&)): Update call of _M_extract,
4879 avoid ctype::narrow, not correct wrt the standard.
4880 (money_get<>::do_get(string_type&)): Likewise, update call
4881 of _M_extract, use ctype::widen.
4882 * src/locale-inst.cc: Tweak instantiations of _M_extract.
4884 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
4886 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
4887 * testsuite/demangle/abi_examples/02.cc: Likewise.
4888 * testsuite/demangle/regression/cw-11.cc: Likewise.
4889 * testsuite/demangle/regression/cw-16.cc: Change two expected
4890 results to match libiberty demangler output.
4892 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
4895 * libsupc++/Makefile.am: Use libiberty demangler.
4896 (c_sources): Add cp-demangle.c.
4897 * libsupc++/Makefile.in: Regenerate.
4898 * src/Makefile.am (sources): Remove demangle.cc.
4899 * src/Makefile.in: Regenerate.
4900 * include/Makefile.am (bits_headers): Move demangle.h.
4901 (ext_headers): ...here.
4902 * include/Makefile.in: Regenerate.
4903 * include/bits/demangle.h: Move...
4904 * include/ext/demangle.h: ...here.
4905 * src/demangle.cc: Remove.
4907 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
4909 * include/bits/demangle.h: Add type template parameter to all
4910 templates with just an Allocator template parameter.
4912 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
4914 * include/bits/atomicity.h: New, forward declarations for __atomic_add
4915 and __exchange_and_add.
4916 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
4917 * config/cpu/cris/atomic_word.h: Same.
4918 * config/cpu/sparc/atomic_word.h: Same.
4919 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
4920 Qualifiy with __gnu_cxx.
4921 (_Callback_list::_M_add_reference): Same.
4922 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
4923 (locale::facet::_M_remove_reference): Same.
4924 (locale::_Impl::_M_add_reference): Add.
4925 (locale::_Impl::_M_remove_reference): Same.
4926 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
4927 (basic_string::_Rep::_M_dispose): Same.
4928 * src/ios.cc (ios_base::xalloc): Same.
4929 * src/ios_init.cc (ios_base::Init::Init): Same.
4930 (ios_base::Init::~Init): Same.
4931 * src/locale.cc (locale::id::_M_id): Same.
4932 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
4933 static, and inline keywords.
4934 * config/cpu/alpha/atomicity.h: Same.
4935 * config/cpu/cris/atomicity.h: Same.
4936 * config/cpu/generic/atomicity.h: Same.
4937 * config/cpu/hppa/atomicity.h: Same.
4938 * config/cpu/i386/atomicity.h: Same.
4939 * config/cpu/ia64/atomicity.h: Same.
4940 * config/cpu/m68k/atomicity.h: Same.
4941 * config/cpu/mips/atomicity.h: Same.
4942 * config/cpu/powerpc/atomicity.h: Same.
4943 * config/cpu/s390/atomicity.h: Same.
4944 * config/cpu/sparc/atomicity.h: Same.
4946 * src/Makefile.am (host_sources): Add atomicity.cc.
4947 (atomicity.cc): New rule.
4948 * src/Makefile.in: Regenerate.
4949 * include/Makefile.am (host_headers): Remove host atomicity.h.
4950 (host_headers): Add atomic_word.h.
4951 (bits_headers): Add bits atomicity.h.
4952 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4953 * include/Makefile.in: Regenerate.
4954 * configure.host (atomic_word_dir): Add.
4955 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
4956 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4957 * configure: Regenerate.
4958 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
4960 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
4961 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4963 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
4965 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
4966 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
4967 Fix markup, more <link> tags.
4969 2004-02-25 Carlo Wood <carlo@alinoe.com>
4972 namespace __gnu_cxx::demangler
4973 (session<Allocator>::qualifier_list_Allocator): Add
4974 (session<Allocator>::M_qualifier_list_alloc): Add
4975 (session<Allocator>::decode_type_with_postfix):
4976 Use M_qualifier_list_alloc instead of calling operator new/delete.
4978 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4981 * include/bits/postypes.h (class streamoff): Add operator++(),
4982 operator++(int), operator--() and operator--(int).
4983 * testsuite/27_io/fpos/14252.cc: New.
4985 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
4987 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
4988 error in handling of hex constants.
4990 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4992 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4993 Prefer basic_string::append to operator+= and a temporary.
4995 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4997 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
4998 Only use fputs, not write.
5000 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
5002 * include/ext/malloc_allocator.h: Add operators ==, !=.
5003 * include/ext/new_allocator.h: Add operators ==, !=.
5004 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
5005 (__mt_alloc::_S_get_options): New.
5006 (__mt_alloc::_S_set_options): New.
5007 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
5008 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
5009 Move functions out of line, simplify, format.
5010 * src/allocator.cc: Simplify explicit instantiations.
5011 * include/bits/allocator.h: Tweak.
5013 2004-02-22 Paolo Carlini <pcarlini@suse.de>
5015 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
5016 Restructure formatting of value component, first dealing with
5017 the non-decimal digits; use reserve.
5019 2004-02-22 Paolo Carlini <pcarlini@suse.de>
5021 * include/bits/locale_facets.h (class money_get): Inherit
5022 from money_base too; tweak declaration of _M_extract, now
5023 parameterized on _Intl too.
5024 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
5025 Update definition to use the cache; call reserve on __res to
5026 avoid multiple reallocations; fix parsing of sign component
5027 according to 22.2.6.1.2, p3.
5028 (money_get<>::do_get(long double&),
5029 money_get<>::do_get(string_type&)): Update calls of _M_extract.
5030 * src/locale-inst.cc: Add instantiations of
5031 money_get::_M_extract<false> and money_get::_M_extract<true>.
5032 * testsuite/22_locale/money_get/get/char/14.cc: New.
5033 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
5035 2004-02-21 Mark Mitchell <mark@codesourcery.com>
5037 * libsupc++/vterminate.cc
5038 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
5040 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
5042 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
5043 not set RLIMIT_AS on HP-UX.
5045 2004-02-21 Mark Mitchell <mark@codesourcery.com>
5047 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
5048 not set RLIMIT_AS on HP-UX.
5050 2004-02-21 Paolo Carlini <pcarlini@suse.de>
5052 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
5053 _S_zero, _S_end } enum, _S_atoms.
5054 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
5055 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
5056 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
5057 (__moneypunct_cache<>::~__moneypunct_cache): Update.
5058 (__moneypunct_cache<>::_M_cache): Fill the cache.
5059 (class moneypunct): Tweak __cache_type typedef.
5060 (class money_put): Inherit from money_base too; tweak declaration
5061 of _M_insert, now parameterized on _Intl.
5062 * include/bits/locale_facets.tcc
5063 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
5064 (money_put<>::_M_insert): Update definition to use the cache;
5065 call reserve on __res to avoid multiple reallocations.
5066 (money_put<>::do_put(long double),
5067 money_put<>::do_put(const string_type&): Update calls of _M_insert.
5068 * config/locale/generic/monetary_members.cc
5069 (moneypunct<char, true>::_M_initialize_moneypunct,
5070 moneypunct<char, false>::_M_initialize_moneypunct,
5071 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
5072 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
5073 * config/locale/gnu/monetary_members.cc: Likewise.
5074 * config/locale/gnu/monetary_members.cc
5075 (moneypunct<wchar_t, true>::~moneypunct(),
5076 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
5077 * src/globals_locale.cc: Tweak fake_money_cache_c.
5078 * src/locale-inst.cc: Add instantiations for
5079 money_put::_M_insert<false> and money_put::_M_insert<true> and
5080 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
5081 * src/locale_facets.cc: Define money_base::_S_atoms.
5082 * src/locale_init.cc: Update placement new of
5083 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
5084 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
5086 * config/locale/generic/numeric_members.cc: Clean up.
5087 * config/locale/gnu/numeric_members.cc: Likewise.
5088 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
5089 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
5090 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
5091 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
5092 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
5093 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
5095 2004-02-20 Mark Mitchell <mark@codesourcery.com>
5097 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
5098 FIFO for writing with ios_base::in|ios_base::out.
5099 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5100 * testsuite/27_io/objects/char/7.cc: Likewise.
5101 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
5104 2004-02-19 David Edelsohn <edelsohn@gnu.org>
5106 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
5107 from iso-8859-1 to ISO8859-1.
5108 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
5109 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
5110 * 22_locale/collate/hash/wchar_t/2.cc: Same.
5111 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
5112 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
5113 * 22_locale/collate/transform/wchar_t/2.cc: Same.
5114 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
5115 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
5117 2004-02-18 Paolo Carlini <pcarlini@suse.de>
5119 * include/bits/locale_facets.h (money_get<>::_M_extract):
5120 New, helper for do_get.
5121 (money_put<>::_M_insert): Likewise, for do_put.
5122 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
5123 money_put<>::_M_insert): Define.
5124 (money_get<>::do_get(long double&), money_get<>::do_get(
5125 string_type&), money_put::do_put(long double),
5126 money_put::do_put(const string_type&)): Use the helpers.
5128 2004-02-18 Paolo Carlini <pcarlini@suse.de>
5130 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
5131 Rewrite, avoiding recursion.
5132 (__gnu_internal::xwrite): Minor tweaks.
5134 2004-02-17 Stefan Olsson <stefan@xapa.se>
5136 * include/ext/mt_allocator.h: Removed the last
5137 pointer. Deallocated blocks are now added to the front of
5138 freelists as proposed by Felix Yen. This gives roughly 10%
5139 performance boost and saves some memory.
5140 * docs/html/ext/mt_allocator.html: Change due to that deallocated
5141 blocks now are added to the front of freelists. The reason to this
5142 approach is also explained.
5144 2004-02-17 Paolo Carlini <pcarlini@suse.de>
5146 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
5147 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
5148 grouping fidelity conditional.
5150 2004-02-16 Paolo Carlini <pcarlini@suse.de>
5152 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
5153 Qualify exception with std::.
5154 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
5155 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
5156 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
5157 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
5158 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
5160 2004-02-16 Paolo Carlini <pcarlini@suse.de>
5162 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
5163 for now that the catch block is not reached.
5164 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
5166 2004-02-16 Paolo Carlini <pcarlini@suse.de>
5168 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
5169 Fix parsing of the remaining sign characters.
5170 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
5171 the input is scanned 'til eof.
5172 * 22_locale/money_get/get/char/4.cc: Likewise.
5173 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
5174 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
5175 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
5176 not do_pos_format: the former is the only one that matters during
5178 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
5180 * 22_locale/money_get/get/char/6.cc: Minor tweak.
5181 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
5183 2004-02-15 David Asher <david.asher@cavium.com>
5186 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
5187 access __olds beyond __oldlen.
5189 2004-02-14 Paolo Carlini <pcarlini@suse.de>
5191 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
5192 sure the exception is actually thrown.
5193 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
5194 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
5195 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
5197 2004-02-14 Paolo Carlini <pcarlini@suse.de>
5200 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
5201 In case of conversion errors, throw ios_failure; simplify.
5202 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
5203 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
5204 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
5205 previously we didn't throw in case of conversion errors, instead
5206 just returned eof().
5207 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
5208 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
5209 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
5211 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
5212 Trivial simplification of a conditional.
5214 2004-02-12 Paolo Carlini <pcarlini@suse.de>
5216 PR libstdc++/13731 (final part: writev)
5217 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
5218 New, a wrapper around writev() handling partial writes.
5219 (__basic_file<char>::xwrite): Move to __gnu_internal and make
5221 (__basic_file<char>::xsputn): Update call.
5222 (__basic_file<char>::xsputn_2): Likewise.
5223 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
5224 Don't declare, now static.
5226 2004-02-11 Stefan Olsson <stefan@xapa.se>
5228 * docs/html/ext/mt_allocator.html: New.
5230 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
5232 * docs/html/20_util/allocator.html: New file, consolidate
5233 allocator information here. Revamp.
5234 * docs/html/documentation.html: Change links.
5235 * docs/html/20_util/howto.html: Same.
5236 * docs/html/ext/howto.html: Same.
5238 2004-02-11 Paolo Carlini <pcarlini@suse.de>
5240 PR libstdc++/13731 (first part: write)
5241 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
5243 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
5244 Define it: a wrapper around write() handling partial write.
5245 (__basic_file<char>::xsputn): Use it.
5246 (__basic_file<char>::xsputn_2): Likewise.
5248 2004-02-11 Paolo Carlini <pcarlini@suse.de>
5249 Petur Runolfsson <peturr02@ru.is>
5252 * include/std/std_istream.h (operator>>(__istream_type& (*)
5253 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
5254 operator>>(ios_base& (*)(ios_base&))): Declare inline.
5255 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
5256 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
5257 operator<<(ios_base& (*) (ios_base&))): Likewise.
5258 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
5260 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
5263 * config/linker-map.gnu: Add typeinfo and typeinfo name for
5264 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
5267 * config/linker-map.gnu: Add typeinfo and typeinfo name for
5268 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
5270 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
5272 * include/ext/pool_allocator.h: Include c++config.h.
5274 2004-02-09 Stefan Olsson <stefan@xapa.se>
5276 * include/ext/mt_allocator.h: thread_id is unused in non threaded
5277 applications and now has a ifdef to remove it completely on
5278 compilers without thread support. Include stdlib.h due to a
5279 compiler warning on getenv().
5281 2004-02-09 Paul Brook <paul@codesourcery.com>
5283 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
5285 2004-02-09 Paolo Carlini <pcarlini@suse.de>
5288 * src/locale_init.cc (locale::global(const locale&)): Use
5289 locale::name() in order to decide whether calling setlocale.
5290 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
5292 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
5293 Avoid computing &= unnecessarily.
5295 2004-02-09 James E Wilson <wilson@specifixinc.com>
5298 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
5299 __builtin_extend_pointer.
5301 2004-02-09 Paolo Carlini <pcarlini@suse.de>
5304 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
5305 Don't leave dangling pointers.
5306 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
5307 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
5308 facet is needed in the final test.
5310 2004-02-09 Bernardo Innocenti <bernie@develer.com>
5312 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
5313 * configure: Regenerate.
5315 2004-02-08 Richard Henderson <rth@redhat.com>
5318 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
5319 uncaughtExceptions during nested catch rethrow.
5320 * testsuite/18_support/14026.cc: New.
5322 2004-02-08 Paolo Carlini <pcarlini@suse.de>
5324 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
5325 When working in place remember to set the state to sharable
5326 (otherwise, _M_mutate does it).
5328 2004-02-08 Bernardo Innocenti <bernie@develer.com>
5330 * include/bits/allocator.h, include/bits/basic_ios.h,
5331 include/bits/basic_ios.tcc, include/bits/basic_string.h,
5332 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
5333 include/bits/char_traits.h, include/bits/codecvt.h,
5334 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
5335 include/bits/demangle.h, include/bits/deque.tcc,
5336 include/bits/fstream.tcc, include/bits/functexcept.h,
5337 include/bits/gslice.h, include/bits/gslice_array.h,
5338 include/bits/indirect_array.h, include/bits/ios_base.h,
5339 include/bits/istream.tcc, include/bits/list.tcc,
5340 include/bits/locale_classes.h, include/bits/locale_facets.h,
5341 include/bits/locale_facets.tcc, include/bits/localefwd.h,
5342 include/bits/mask_array.h, include/bits/ostream.tcc,
5343 include/bits/postypes.h, include/bits/slice_array.h,
5344 include/bits/sstream.tcc, include/bits/stl_algo.h,
5345 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
5346 include/bits/stl_construct.h, include/bits/stl_deque.h,
5347 include/bits/stl_function.h, include/bits/stl_heap.h,
5348 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
5349 include/bits/stl_list.h, include/bits/stl_map.h,
5350 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
5351 include/bits/stl_numeric.h, include/bits/stl_pair.h,
5352 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
5353 include/bits/stl_relops.h, include/bits/stl_set.h,
5354 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
5355 include/bits/stl_threads.h, include/bits/stl_tree.h,
5356 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
5357 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
5358 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
5359 include/bits/type_traits.h, include/bits/valarray_after.h,
5360 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
5361 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
5362 trailing whitespace.
5364 2004-02-06 Paolo Carlini <pcarlini@suse.de>
5366 * include/bits/basic_string.h: Fix comment.
5368 2004-02-06 Paolo Carlini <pcarlini@suse.de>
5370 * include/bits/stl_construct.h: Wrap overlong lines, reformat
5371 according to the coding standards.
5372 * include/bits/stl_pair.h: Likewise.
5373 * include/bits/stl_raw_storage_iter.h: Likewise.
5374 * include/bits/stl_stack.h: Likewise.
5375 * include/bits/stl_uninitialized.h: Likewise.
5376 * include/bits/stream_iterator.h: Likewise.
5377 * include/bits/streambuf_iterator.h: Likewise.
5378 * include/bits/type_traits.h: Likewise.
5380 2004-02-06 Paolo Carlini <pcarlini@suse.de>
5382 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
5385 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
5387 * scripts/check_performance: Support PCH.
5389 * scripts/check_performance (CXX): Add -DNOTHREAD.
5390 * testsuite/performance/20_util/allocator/insert.cc: Integrate
5391 threaded tests from insert_insert.cc. Tweak iterations,
5392 remove special cases.
5393 * testsuite/performance/20_util/allocator/insert_insert.cc:
5394 Make all tests single-threaded. Tweak iterations.
5395 * testsuite/performance/20_util/allocator/map_thread.cc:
5397 * testsuite/performance/20_util/allocator/producer_consumer.cc:
5400 2004-02-05 Geoffrey Keating <geoffk@apple.com>
5404 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
5405 'gcc-lib'. Add comment about poorly-named variables.
5406 * aclocal.m4: Regenerate.
5407 * configure: Regenerate.
5409 2004-02-05 Paolo Carlini <pcarlini@suse.de>
5411 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
5412 Thousands-sep are always optional; thousands-sep are not allowed
5413 after the decimal_point.
5414 * testsuite/22_locale/money_get/get/char/12.cc: New.
5415 * testsuite/22_locale/money_get/get/char/13.cc: New.
5416 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
5417 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
5419 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
5420 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
5421 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
5422 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
5423 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
5424 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
5425 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
5426 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
5428 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
5430 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
5432 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
5434 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
5436 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
5437 it to decide whether FIONREAD should take an off_t or int argument.
5439 2004-02-05 Paolo Carlini <pcarlini@suse.de>
5441 * include/bits/stl_function.h: Minor formatting changes.
5443 2004-02-04 Zack Weinberg <zack@codesourcery.com>
5445 Revert previous change to config/abi/*/baseline_symbols.txt.
5447 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
5448 Zack Weinberg <zack@codesourcery.com>
5450 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
5452 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
5453 (__basic_file<char>::_M_open_mode): Delete.
5454 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
5456 * testsuite/27_io/basic_filebuf/close/char/9964.cc
5457 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
5458 Correct flags to filebuf::open calls.
5460 * config/abi/alpha-freebsd5/baseline_symbols.txt
5461 * config/abi/alpha-linux-gnu/baseline_symbols.txt
5462 * config/abi/hppa-linux-gnu/baseline_symbols.txt
5463 * config/abi/i386-freebsd4/baseline_symbols.txt
5464 * config/abi/i386-freebsd5/baseline_symbols.txt
5465 * config/abi/i486-linux-gnu/baseline_symbols.txt
5466 * config/abi/ia64-linux-gnu/baseline_symbols.txt
5467 * config/abi/mips-linux-gnu/baseline_symbols.txt
5468 * config/abi/sparc-freebsd5/baseline_symbols.txt
5469 * config/abi/sparc-linux-gnu/baseline_symbols.txt
5470 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
5471 Remove entry for __basic_file<char>::_M_open_mode.
5473 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
5475 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
5477 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
5479 * testsuite/performance/20_util/producer_consumer.cc: New.
5480 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
5482 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
5484 * testsuite/performance/20_util/allocator.cc: Move to..
5485 * testsuite/performance/20_util/allocator/insert.cc: ...here.
5486 * testsuite/performance/20_util/allocator_thread.cc: Move to...
5487 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
5488 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
5489 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
5491 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
5493 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
5494 * docs/html/faq/index.txt: Regenerate.
5496 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
5498 * include/ext/debug_allocator.h: _M_extra now stands for the
5499 number of extra objects instead of the number of extra bytes.
5500 (debug_allocator::allocate): Adjust.
5501 (debug_allocator::deallocate): Adjust.
5503 * include/ext/pool_allocator.h: Fix typo.
5505 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
5506 Benjamin Kosnik <bkoz@redhat.com>
5508 * testsuite/performance/20_util/allocator.cc: Add map,
5510 * testsuite/performance/20_util/allocator_thread.cc: Same.
5512 2004-02-03 Paolo Carlini <pcarlini@suse.de>
5514 * include/bits/basic_string.h (insert(iterator)): Remove,
5515 non-standard and already scheduled for removal.
5517 2004-02-03 Paolo Carlini <pcarlini@suse.de>
5519 * include/bits/stl_iterator_base_funcs.h: Minor formatting
5520 and indentation tweaks.
5521 * include/bits/stl_iterator_base_types.h: Likewise.
5522 * include/bits/stl_list.h: Likewise.
5523 * include/bits/stl_map.h: Likewise.
5524 * include/bits/stl_tempbuf.h: Likewise.
5526 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
5528 * include/bits/gslice.h, include/bits/gslice_array.h,
5529 include/bits/indirect_array.h, include/bits/mask_array.h,
5530 include/bits/slice_array.h, include/bits/stl_numeric.h,
5531 include/std/std_valarray.h: Update copyright years.
5533 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
5535 * include/bits/gslice.h (gslice): Document.
5536 * include/bits/gslice_array.h (gslice_array): Document.
5537 * include/bits/indirect_array (indirect_array): Document.
5538 * include/bits/mask_array (mask_array): Document.
5539 * include/bits/slice_array.h (slice,slice_array): Document.
5540 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
5541 adjacent_difference): Document
5542 * include/std/std_valarray.h (valarray): Document.
5544 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
5546 * docs/html/19_diagnostics/howto.html: Move verbose terminate
5548 * docs/html/18_support/howto.html: Here.
5549 * docs/html/documentation.html: Add reference here.
5551 2004-02-02 Paolo Carlini <pcarlini@suse.de>
5553 * config/locale/gnu/c++locale_internal.h: Remove prototypes
5554 of no longer used GLIBC thread locale functions.
5556 2004-02-02 Eric Christopher <echristo@redhat.com>
5557 Zack Weinberg <zack@codesourcery.com>
5559 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
5561 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
5562 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
5563 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
5564 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
5565 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
5566 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
5567 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
5568 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
5571 2004-02-02 Paolo Carlini <pcarlini@suse.de>
5573 * include/bits/stl_function.h: Additional minor tweaks.
5574 * include/bits/stl_multiset.h: Likewise.
5576 * include/bits/stl_queue.h: Minor tweaks.
5578 2004-02-02 Paolo Carlini <pcarlini@suse.de>
5580 PR libstdc++/13976 (continued)
5581 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
5582 Make the second parameter unnamed, to void unused parameter
5584 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
5586 2004-02-02 Paolo Carlini <pcarlini@suse.de>
5589 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
5590 Make the second parameter unnamed, to void unused parameter
5592 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
5593 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
5595 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5597 * include/bits/stl_algo.h: Additional minor tweaks.
5598 * include/bits/stl_map.h: Likewise.
5599 * include/bits/stl_multimap.h: Likewise.
5600 * include/bits/stl_multiset.h: Likewise.
5601 * include/bits/stl_set.h: Likewise.
5602 * include/bits/stl_tree.h: Likewise.
5604 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5606 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
5609 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5611 * include/bits/stl_function.h: Additional minor tweaks.
5613 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5615 * include/bits/deque.tcc: Wrap overlong lines, constify
5616 a few variables, reformat according to the coding standards.
5617 * include/bits/list.tcc: Likewise.
5618 * include/bits/stl_deque.h: Likewise.
5619 * include/bits/stl_function.h: Likewise.
5620 * include/bits/stl_iterator.h: Likewise.
5621 * include/bits/stl_iterator_base_funcs.h: Likewise.
5622 * include/bits/stl_iterator_base_types.h: Likewise.
5623 * include/bits/stl_list.h: Likewise.
5624 * include/bits/stl_map.h: Likewise.
5625 * include/bits/stl_multimap.h: Likewise.
5626 * include/bits/stl_multiset.h: Likewise.
5627 * include/bits/stl_relops.h: Likewise.
5628 * include/bits/stl_set.h: Likewise.
5630 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5632 * include/bits/stl_bvector.h: Wrap overlong lines, constify
5633 a few variables, reformat according to the coding standards.
5634 * include/bits/stl_tree.h: Likewise.
5636 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5638 * include/bits/stl_algo.h: Minor additional reformat, add
5640 * include/bits/stl_algobase.h: Add copyright year.
5642 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5644 * include/bits/stl_algo.h: Wrap overlong lines, constify
5645 a few variables, reformat according to the coding standards.
5646 * include/bits/stl_algobase.h: Likewise.
5647 * include/bits/stl_heap.h: Likewise.
5649 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5651 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
5653 * include/bits/basic_string.h: Fix two comments.
5655 2004-01-31 Per Bothner <per@bothner.com>
5657 * include/ext/mt_allocator.h
5658 (__mt_alloc::_S_thread_freelist_mutex): Guard with
5659 __GTHREAD_MUTEX_INIT.
5661 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5663 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
5665 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5667 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
5668 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
5669 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
5671 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
5673 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
5674 Don't use clear, but instead assign. Use insert.
5676 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
5678 * src/demangle.cc: Add instantiations.
5679 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
5680 * src/Makefile.in: Regenerate.
5682 2004-01-30 David Edelsohn <edelsohn@gnu.org>
5684 * src/allocator.cc: Protect _S_get_thread_id() and
5685 _S_thread_key_destr() with #ifdef __GTHREADS.
5687 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5689 Reshuffle performance testsuite.
5690 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
5691 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
5692 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
5693 fstream_seek_write.cc, ifstream_extract_float.cc,
5694 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
5695 list_create_fill_sort.cc, map_create_fill.cc,
5696 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
5697 ofstream_insert_float.cc, ofstream_insert_int.cc,
5698 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
5699 wchar_t_out.cc: Split into...
5700 * testsuite/performance/20_util/allocator.cc: New.
5701 * testsuite/performance/20_util/allocator_map_thread.cc: New.
5702 * testsuite/performance/20_util/allocator_thread.cc: New.
5703 * testsuite/performance/21_strings/string_append: New.
5704 * testsuite/performance/22_locale/is_wchar_t.cc: New.
5705 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
5706 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
5707 * testsuite/performance/22_locale/wchar_t_in.cc: New.
5708 * testsuite/performance/22_locale/wchar_t_length.cc: New.
5709 * testsuite/performance/22_locale/wchar_t_out.cc: New.
5710 * testsuite/performance/23_containers/container_benchmark.cc: New.
5711 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
5712 * testsuite/performance/23_containers/map_create_fill.cc: New.
5713 * testsuite/performance/26_numerics/complex_norm.cc: New.
5714 * testsuite/performance/27_io/cout_insert_int.cc: New.
5715 * testsuite/performance/27_io/filebuf_copy.cc: New.
5716 * testsuite/performance/27_io/filebuf_sputc.cc: New.
5717 * testsuite/performance/27_io/fstream_seek_write.cc: New.
5718 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
5719 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
5720 * testsuite/performance/27_io/ifstream_getline.cc: New.
5721 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
5722 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
5724 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5726 * include/bits/basic_string.tcc (_Rep::_S_create):
5727 Never allocate a string bigger than max_size(); always keep
5728 __capacity and __size in sync to avoid memory leaks at
5731 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5733 * include/bits/basic_string.tcc (_S_construct(_InIterator,
5734 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
5735 the double loop, streamline.
5737 * include/bits/basic_string.tcc: Very minor tweaks.
5739 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
5741 * scripts/check_performance: Only compile with $THREAD_FLAG
5742 when test is marked to require it. Allow multiple
5743 compilations/executions of marked tests.
5744 * testsuite/testsuite_performance.h (report_performance):
5745 Report dynamic thread support status.
5746 (report_header): Likewise.
5747 * testsuite/performance/allocator.cc: Stabilize iteration
5748 count. Support more allocators. Mark each allocator test to
5749 run and report independently.
5750 * testsuite/performance/allocator_map_thread.cc: Likewise.
5751 * testsuite/performance/allocator_thread.cc: Likewise.
5753 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
5755 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
5756 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
5757 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
5758 std::get_temporary_buffer() instead of duplicating its code.
5759 Update to C++STYLE conventions.
5760 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
5761 new() instead of std::malloc().
5762 (return_temporary_buffer): Use ::operator delete() instead of
5765 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
5767 * include/bits/allocator.h: Temporary switch to new_allocator as
5768 the default to unjam bootstraps.
5770 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
5772 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
5773 * include/Makefile.in: Regenerate.
5774 * include/bits/allocator_traits.h: Remove.
5775 * include/bits/allocator.h: Remove allocator_traits.h include, and
5777 (allocator): Empty base class, inherit from the underlying allocator.
5778 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
5779 * src/allocator.cc: ...here. New. For the underlying allocators.
5780 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
5781 * config/linker-map.gnu: Remove __pool_alloc bits.
5782 * src/Makefile.am (sources): Add allocator.cc.
5783 * src/Makefile.in: Regenerate.
5784 * testsuite/20_util/allocator/1.cc: Split second test into...
5785 * testsuite/20_util/allocator/8230.cc: ...this.
5786 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
5787 typedef to use std::allocatore. Format.
5788 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
5790 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
5791 __throw_bad_alloc calls. Don't include <memory>.
5792 * include/ext/malloc_allocator.h: Remove <memory> include.
5793 * include/ext/new_allocator.h (new_allocator): Same.
5794 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
5795 declaration. Switch __alloc to _Alloc.
5796 * include/ext/hashtable.h: Remove __alloc.
5797 * include/backward/alloc.h: Only inject allocator, not
5798 implementation details.
5800 * include/ext/mt_allocator.h: Replace free with delete.
5802 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
5804 * src/globals_io.cc: Change to __gnu_internal namespace.
5805 * src/globals_locale.cc: Same.
5806 * src/locale_init.cc: Same.
5807 * src/ios_init.cc: Same.
5809 2004-01-28 Stefan Olsson <stefan@snon.net>
5811 * include/ext/mt_allocator.h: Replaced all malloc() calls with
5812 operator new(). Added support for the env variable
5813 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
5814 one in allocate() as well). Fix typos.
5816 2004-01-28 Paolo Carlini <pcarlini@suse.de>
5818 * include/bits/basic_string.h (_S_create(size_t,
5819 const _Alloc&): Change signature to take two size_type
5821 * include/bits/basic_string.tcc (_S_construct(_InIterator,
5822 _InIterator, const _Alloc&, input_iterator_tag)): Update
5824 (_S_construct(_InIterator, _InIterator, const _Alloc&,
5825 forward_iterator_tag)): Likewise.
5826 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
5827 (_M_mutate(size_type, size_type, size_type)): Don't
5828 implement the exponential growth policy, demand it to
5829 _S_create, update call and simplify.
5830 (_M_clone(const _Alloc&, size_type)): Likewise.
5831 (_S_create(size_type, size_type, const _Alloc&)): Implement
5832 the growth policy, simplify otherwise.
5834 * include/bits/basic_string.h (_Rep::operator[]): Tweak
5835 signature to take a size_type, consistently with the other
5838 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
5840 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
5841 delete declarations, add include and test variable.
5843 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
5845 * include/bits/codecvt.h, include/bits/locale_facets.h,
5846 include/bits/postypes.h, include/bits/stl_bvector.h,
5847 include/bits/stl_multiset.h, include/bits/stl_set.h,
5848 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
5849 include/std/std_complex.h: Document.
5851 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
5854 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
5855 iword/pword selector.
5856 (ios_base::iword, ios_base::pword): Use it.
5857 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
5858 iword or pword member on alloc failure.
5859 * testsuite/27_io/ios_base/storage/11584.cc: New test.
5861 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
5862 PJ Darcy <darcypj@us.ibm.com>
5864 * configure.host: Add support for *-tpf.
5865 * crossconfig.m4: Likewise.
5866 * configure: Regenerate.
5867 * config/os/tpf: New directory.
5868 * config/os/tpf/os_defines.h: New file.
5869 * config/os/tpf/ctype_base.h: Likewise.
5870 * config/os/tpf/ctype_inline.h: Likewise.
5871 * config/os/tpf/ctype_noninline.h: Likewise.
5873 2004-01-27 Paolo Carlini <pcarlini@suse.de>
5876 * include/bits/sstream.tcc: Guard use of extern template.
5878 2004-01-27 Paolo Carlini <pcarlini@suse.de>
5880 * include/bits/basic_string.tcc
5881 (basic_string(const basic_string&, size_type, size_type),
5882 basic_string(const basic_string&, size_type, size_type,
5883 const _Alloc&)): Avoid unnecessarily constructing iterators.
5885 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5887 * config/locale/generic/c_locale.cc: Fix throw messages
5888 to use the __N marker.
5889 * config/locale/gnu/c_locale.cc: Likewise.
5890 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
5892 * docs/html/17_intro/C++STYLE: Likewise.
5893 * include/bits/basic_ios.tcc: Likewise.
5894 * include/bits/fstream.tcc: Likewise.
5895 * include/bits/vector.tcc: Likewise.
5896 * include/ext/ropeimpl.h: Likewise.
5897 * include/std/std_bitset.h: Likewise.
5898 * src/ios.cc: Likewise.
5899 * src/locale.cc: Likewise.
5900 * src/localename.cc: Likewise.
5902 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5904 * include/bits/basic_string.h (_M_replace_aux): Use the
5905 __N marker in throw message.
5906 * include/bits/basic_string.tcc (assign(const _CharT*,
5907 size_type), insert(size_type, const _CharT*, size_type),
5908 replace(size_type, size_type, const _CharT*, size_type),
5909 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
5912 * include/bits/basic_string.h, include/bits/basic_string.tcc:
5913 Fold overlong lines, minor formatting changes.
5915 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5917 * include/bits/basic_string.h (replace(iterator, iterator,
5918 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
5919 (replace(iterator, iterator, const _CharT*)): Ditto.
5920 (replace(iterator, iterator, const _CharT*, size_type)):
5921 Add missing _GLIBCXX_DEBUG_PEDASSERT.
5923 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5925 * include/bits/basic_string.tcc (replace(size_type,
5926 size_type, const _CharT*, size_type)): Implement optimized
5927 in-place algorithm for non-overlapping ranges.
5928 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
5929 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
5931 * include/bits/basic_string.tcc (insert(size_type,
5932 const _CharT*, size_type)): Tweak slightly.
5934 2004-01-26 Andreas Schwab <schwab@suse.de>
5936 * config/locale/gnu/monetary_members.cc: Restore locale before
5937 rethrowing exception.
5939 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5941 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
5943 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
5946 * include/bits/basic_string.tcc: Very minor tweaks.
5948 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5950 * testsuite/performance/string_append.cc: Increase number
5953 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5955 * include/bits/basic_string.h (erase(size_type, size_type),
5956 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
5957 instead, thus avoiding redundant check for length_error.
5959 * include/bits/basic_string.h: Tweak some comments.
5961 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5963 * include/bits/basic_string.tcc (operator+(const _CharT*,
5964 const basic_string&)): No need to go through the append
5965 taking two iterators.
5967 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5969 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
5970 Revert last change to use std::min: machine language is worse.
5971 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
5972 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5973 (find_last_not_of(_CharT, size_type)): Ditto.
5975 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
5976 size_type)): Discard the value returned by _M_check.
5977 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
5978 (append(const basic_string&, size_type, size_type)): Ditto.
5979 (copy(_CharT*, size_type, size_type)): Ditto.
5980 (compare(size_type, size_type, const basic_string&)): Ditto.
5981 (compare(size_type, size_type, const basic_string&,
5982 size_type, size_type)): Ditto.
5983 (compare(size_type, size_type, const _CharT*)): Ditto.
5984 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5986 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5988 * include/bits/basic_string.h (insert(size_type,
5989 const basic_string&, size_type, size_type)): Define inline here.
5990 * include/bits/basic_string.tcc (insert(size_type,
5991 const basic_string&, size_type, size_type)): Move inline.
5993 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5995 * include/bits/basic_string.h (assign(const basic_string&,
5996 size_type, size_type)): Define inline here.
5997 (replace(size_type, size_type, const basic_string&,
5998 size_type, size_type)): Ditto.
5999 (_M_replace_dispatch(iterator, iterator, _InputIterator,
6000 _InputIterator, __false_type)): Only declare.
6001 (_M_replace(iterator, iterator, _InputIterator,
6002 _InputIterator)): Remove.
6003 * include/bits/basic_string.tcc (assign(const basic_string&,
6004 size_type, size_type)): Move inline.
6005 (replace(size_type, size_type, const basic_string&,
6006 size_type, size_type)): Ditto.
6007 (_M_replace_dispatch(iterator, iterator, _InputIterator,
6008 _InputIterator, __false_type)): Define, now does also what
6009 _M_replace did before.
6010 * src/string-inst.cc (_M_replace): Don't instantiate.
6012 * include/bits/basic_string.tcc (find(const _CharT*,
6013 size_type, size_type)): Tidy.
6014 (rfind(_CharT, size_type)): Ditto.
6015 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
6016 (find_first_not_of(_CharT, size_type)): Ditto.
6017 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
6018 (find_last_not_of(_CharT, size_type)): Ditto.
6020 2004-01-23 Paolo Carlini <pcarlini@suse.de>
6023 * include/debug/bitset (operator|=): Fix typo.
6024 * testsuite/23_containers/bitset/operations/13838.cc: New.
6026 2004-01-23 Paolo Carlini <pcarlini@suse.de>
6028 * include/bits/basic_string.tcc (insert(size_type,
6029 const _CharT*, size_type __n)): Fix length_error check.
6030 (replace(size_type, size_type, const _CharT*, size_type):
6031 Ditto; call _M_replace_safe.
6032 (_M_replace_aux(size_type, size_type, size_type, _CharT):
6033 Fix length_error check.
6034 (_M_replace(iterator, iterator, _InputIterator,
6035 _InputIterator)): Ditto, tweak.
6036 (_M_replace_safe(size_type, size_type, const _CharT*,
6037 size_type)): Remove length_error check.
6039 * include/bits/basic_string.tcc (append(const basic_string&),
6040 append(const basic_string&, size_type, size_type)): Tweak
6043 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
6044 size_type)): If __n == 0 don't call traits::copy.
6046 2004-01-23 Stefan Olsson <stefan@snon.net>
6048 * include/ext/mt_allocator.h: Reduce lock contention.
6050 2004-01-23 Paolo Carlini <pcarlini@suse.de>
6053 * include/bits/fstream.tcc (underflow): Remove unused
6055 * include/bits/streambuf_iterator.h (equal): Ditto.
6056 * include/bits/locale_facets.h (_M_convert_from_char):
6059 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6062 * config/linker-map.gnu (nan): Delete.
6063 * libmath/mathconf.h (NAN, nan): Delete.
6064 * linkage.m4 (nan): Don't check for it.
6065 * libmath/nan.c: Delete file.
6067 * config.h.in, configure: Regenerate.
6069 2004-01-23 Paolo Carlini <pcarlini@suse.de>
6071 * include/bits/basic_string.h (push_back(_CharT)):
6072 Call _M_replace_aux.
6073 (insert(size_type, const basic_string&)): Trivial tweak.
6074 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
6075 (insert(iterator, _CharT)): Ditto.
6076 (erase(size_type, size_type)): Ditto.
6077 (erase(iterator)): Ditto.
6078 (erase(iterator, iterator)): Ditto.
6079 (replace(size_type, size_type, size_type, _CharT)): Ditto.
6081 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
6084 * testsuite/performance/allocator_map_thread.cc: New test.
6086 2004-01-22 Paolo Carlini <pcarlini@suse.de>
6088 * include/bits/locale_facets.tcc
6089 (money_put::do_put(..., long double)): Use the basic_string
6090 constructor for char arrays, not that for C-strings, to pass
6091 __digits to do_put(..., const string_type&): __ws isn't
6094 2004-01-22 Paolo Carlini <pcarlini@suse.de>
6096 * include/bits/basic_string.h (_M_replace_safe): Change
6097 signatures to take size_types and const _CharT*.
6098 (_M_replace_aux): Likewise, takes size_types instead of
6100 (append(size_type, _CharT)): Update call.
6101 (assign(size_type, _CharT)): Ditto.
6102 (replace(iterator, iterator, size_type, _CharT)): Ditto.
6103 (_M_replace_dispatch(iterator, iterator, _Integer,
6104 _Integer, __true_type)): Ditto.
6105 * include/bits/basic_string.tcc (assign(const _CharT*,
6107 (insert(size_type, const _CharT*, size_type)): Ditto.
6108 (replace(size_type, size_type, const _CharT*,
6110 (_M_replace(iterator, iterator, _InputIterator,
6111 _InputIterator)): Ditto.
6112 (append(const basic_string&)): Ditto.
6113 (append(const basic_string&, size_type, size_type): Ditto.
6114 (append(const _CharT*, size_type): Ditto.
6115 (_M_replace_safe, _M_replace_safe): Change definitions
6116 accordingly, simplify.
6117 * string-inst.cc (_M_replace_safe): Don't instantiate.
6119 2004-01-21 Paolo Carlini <pcarlini@suse.de>
6121 * include/bits/basic_string.tcc (append(const basic_string&)):
6122 Revert previous change.
6123 (append(const basic_string&, size_type, size_type)): Revert
6124 previous change, use _M_check and _M_limit.
6126 2004-01-21 Paolo Carlini <pcarlini@suse.de>
6128 * include/bits/basic_string.h (_M_check): Change to return
6129 a checked __pos and take an additional const char* argument.
6130 (_M_fold): Rename to _M_limit, change to return a size_type,
6131 corresponding to the __off limited to the actual length.
6132 (insert(size_type, size_type, _CharT)): Update call, call
6134 (insert(iterator, _CharT)): Call replace(iterator, iterator,
6135 size_type, _CharT) instead.
6136 (erase(size_type, size_type)): Update calls.
6137 (replace(size_type, size_type, size_type, _CharT)): Ditto.
6138 (substr(size_type, size_type)): Use _M_check.
6139 * include/bits/basic_string.tcc (basic_string(const basic_string&,
6140 size_type, size_type)): Update calls.
6141 (basic_string(const basic_string&, size_type, size_type,
6142 const _Alloc&)): Ditto.
6143 (assign(const basic_string&, size_type, size_type)): Use the
6144 new _M_check and _M_limit.
6145 (insert(size_type, const basic_string&, size_type, size_type):
6147 (insert(size_type, const _CharT*, size_type)): Ditto.
6148 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
6149 (replace(size_type, size_type, const basic_string&,
6150 size_type, size_type)): Ditto.
6151 (append(const basic_string&)): Ditto.
6152 (append(const basic_string&, size_type, size_type)): Ditto.
6153 (copy(_CharT*, size_type, size_type)): Ditto.
6154 (compare(size_type, size_type, const basic_string&)): Ditto.
6155 (compare(size_type, size_type, const basic_string&,size_type,
6157 (compare(size_type, size_type, const _CharT*)): Ditto.
6158 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
6160 2004-01-19 Stefan Olsson <stefan@snon.net>
6162 * include/ext/mt_allocator.h: If a thread, when it dies, still has
6163 memory on it's freelist this memory is not returned to global
6164 list. Simplification of deallocate so that memory is always
6165 returned to the calling thread id's freelist instead of to
6166 global. Fix typos. Add volatile where appropriate.
6168 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
6170 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
6171 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
6172 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
6174 2004-01-19 Paolo Carlini <pcarlini@suse.de>
6176 * src/debug.cc: Make sure all the names are prefixed with
6177 double (or single) underscore.
6179 2004-01-19 Paolo Carlini <pcarlini@suse.de>
6181 * src/debug.cc: Trivial formatting change.
6183 2004-01-19 Paolo Carlini <pcarlini@suse.de>
6185 * include/bits/basic_string.tcc (_S_construct(size_type,
6186 _CharT, const _Alloc&)): Remove redundant try/catch.
6187 (_M_mutate(size_type, size_type, size_type)): Ditto.
6188 (_M_clone(const _Alloc&, size_type)): Ditto.
6190 2004-01-18 Paolo Carlini <pcarlini@suse.de>
6192 * include/bits/basic_string.h (c_str()): Simplify, due to
6193 21.3.4 the internal representation is always kept null-terminated.
6194 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
6195 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
6196 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
6199 2004-01-18 Paolo Carlini <pcarlini@suse.de>
6201 * include/bits/basic_string.h (append(size_type, _CharT)):
6202 Moved inline, just call _M_replace_aux, no source iterators at
6203 risk of being clobbered.
6204 (assign(size_type, _CharT)): Call directly _M_replace_aux.
6205 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
6206 input_iterator_tag)): Remove fifth unused argument.
6207 (_M_replace_dispatch(iterator, iterator, _InputIterator,
6208 _InputIterator, __false_type)): Update call.
6209 * include/bits/basic_string.tcc (replace(size_type, size_type,
6210 const _CharT*, size_type)): Update call.
6211 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
6212 throw string literal.
6213 (_M_replace_safe(iterator, iterator, _ForwardIterator,
6214 _ForwardIterator)): Likewise.
6215 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
6216 input_iterator_tag)): Remove fifth unused argument.
6217 (append(size_type __n, _CharT __c)): Move inline.
6218 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
6219 const C*, const C*, input_iterator_tag)): Remove fifth unused
6222 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
6224 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
6225 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
6227 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
6229 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
6232 2004-01-15 Stefan Olsson <stefan@snon.net>
6234 * include/ext/mt_allocator.h: Reuse thread id's as soon as
6235 possible by changing the behaviour of thread_freelist to do
6236 push_front when threads die instead of push_back.
6238 2004-01-14 Paolo Carlini <pcarlini@suse.de>
6240 * include/bits/locale_facets.h (struct __numpunct_cache):
6241 Add member _M_grouping_size, caching the length of _M_grouping.
6242 (__numpunct_cache<>::_M_cache): Assign the latter.
6243 (__verify_grouping): Move declaration...
6244 * include/bits/locale_facets.tcc (__verify_grouping):
6245 ... here, change signature to take a const char* and a size_t
6246 for the grouping; not a template anymore.
6247 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
6248 Likewise change signature and tweak consistently.
6249 (num_get::_M_extract_float, num_get::_M_extract_int,
6250 num_put::_M_insert_int, num_put::_M_insert_float,
6251 money_get::do_get(string_type&), money_get::do_put(string_type)):
6253 * config/locale/generic/numeric_members.cc
6254 (numpunct<>::_M_initialize_numpunct): Assign the new member.
6255 * config/locale/gnu/numeric_members.cc
6256 (numpunct<>::_M_initialize_numpunct): Likewise.
6257 * src/locale-inst.cc (__add_grouping): Tweak signature.
6258 (__verify_grouping): Don't instantiate, not a template anymore.
6260 * include/bits/locale_facets.h: Rename _M_truename_len ->
6261 _M_truename_size, _M_falsename_len -> _M_falsename_size.
6262 * include/bits/locale_facets.tcc: Likewise.
6263 * config/locale/generic/numeric_members.cc: Likewise.
6264 * config/locale/gnu/numeric_members.cc: Likewise.
6266 2004-01-14 Stefan Olsson <stefan@snon.net>
6268 * include/ext/mt_allocator.h: Fixups.
6269 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
6270 * testsuite/performance/allocator_thread.cc: Same.
6272 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
6274 * testsuite/performance/ifstream_extract_float.cc: Add higher
6276 * testsuite/performance/ofstream_insert_float.cc: Same.
6278 2004-01-13 Paolo Carlini <pcarlini@suse.de>
6280 * src/locale-misc-inst.cc (__convert_from_v(long),
6281 __convert_from_v(unsigned long), __convert_from_v(long long),
6282 __convert_from_v(unsigned long long)): Remove, unused.
6284 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
6286 * testsuite/performance/ifstream_extract_float.cc: New.
6287 * testsuite/performance/ofstream_insert_float.cc: Float generation
6290 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
6291 * 20_util/auto_ptr/1.cc: ...this.
6292 * 20_util/auto_ptr/2.cc: Same.
6293 * 20_util/auto_ptr/3.cc: Same.
6294 * 20_util/auto_ptr/3946.cc: Same.
6295 * 20_util/auto_ptr/4.cc: Same.
6296 * 20_util/auto_ptr/5.cc: Same.
6297 * 20_util/auto_ptr/6.cc: Same.
6298 * 20_util/auto_ptr/7.cc: Same.
6299 * 20_util/auto_ptr/assign_neg.cc
6300 * 20_util/pairs.cc: Break into...
6301 * 20_util/pair/1.cc: ...this.
6302 * 20_util/pair/2.cc: Same.
6303 * 20_util/pair/3.cc: Same.
6304 * 20_util/pair/4.cc: Same.
6306 2004-01-13 Paolo Carlini <pcarlini@suse.de>
6308 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
6309 Set correctly just basefield, the only group that matters.
6311 2004-01-13 Paolo Carlini <pcarlini@suse.de>
6313 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
6314 (_Rope_rep_base): Inherit directly from the rope allocator;
6315 use rebinding instead of _Alloc_traits; pick up data member
6316 from _Rope_rep_alloc_base.
6317 (_Rope_alloc_base): Eliminate.
6318 (_Rope_base): Inherit directly from the rope allocator; use
6319 rebinding instead of _Alloc_traits; pick up data member from
6321 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
6322 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
6324 2004-01-13 Paolo Carlini <pcarlini@suse.de>
6327 * include/bits/basic_string.tcc (compare(size_type, size_type,
6328 const _CharT*, size_type)): Implement correctly the resolution
6329 of DR 5: basically, s is a char array, -not- a C string.
6330 * include/bits/basic_string.h: Tweak some comments.
6331 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
6332 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
6334 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
6336 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
6339 2004-01-12 Paolo Carlini <pcarlini@suse.de>
6341 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
6343 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
6346 2004-01-12 Paolo Carlini <pcarlini@suse.de>
6348 * include/bits/locale_facets.h (struct __numpunct_cache):
6349 Add members _M_truename_len and _M_falsename_len, caching
6350 the lengths of _M_truename and _M_falsename.
6351 (__numpunct_cache<>::_M_cache): Assign the latter.
6352 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
6353 num_put::do_put(bool)): Use the new members, thus avoiding
6354 computing string lengths again and again.
6355 * config/locale/generic/numeric_members.cc
6356 (numpunct<>::_M_initialize_numpunct): Assign the new members.
6357 * config/locale/gnu/numeric_members.cc
6358 (numpunct<>::_M_initialize_numpunct): Likewise.
6360 2004-01-12 Mark Mitchell <mark@codesourcery.com>
6362 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
6363 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
6365 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
6366 and remove Cygwin XFAIL.
6367 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
6368 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
6369 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
6370 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
6372 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
6373 * testsuite/27_io/objects/char/7.cc: Likewise.
6374 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
6375 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
6376 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
6378 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
6380 * include/std/std_complex.h (std::complex<>::real): Return a
6381 reference. Add non-const overload.
6382 (std::complex<>::real): Likewise.
6383 (std::real): Likewise.
6384 (std::imag): Likewise.
6385 (std::operator+): Tidy.
6386 (std::operator-): Likewise.
6387 (std::operator*): Likewise.
6388 (std::operator/): Likewise.
6389 (std::operator>>): Likewise.
6391 2004-01-11 Paolo Carlini <pcarlini@suse.de>
6394 * include/bits/fstream.tcc (imbue): Exploit the external
6395 buffer to imbue 'on the fly' a new locale and convert its
6396 remainder with the new codecvt facet.
6397 (underflow): Tweak slightly to deal with this special case.
6398 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
6399 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
6400 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
6401 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
6402 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
6404 2004-01-10 Paolo Carlini <pcarlini@suse.de>
6406 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
6409 2004-01-10 Paolo Carlini <pcarlini@suse.de>
6412 * include/bits/locale_classes.h (class locale): Fix category
6414 * testsuite/22_locale/locale/13630.cc: Add.
6416 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
6418 * include/bits/locale_facets.h: Make a name really dependent. This
6419 will be needed when Core Issue 224 is implemented.
6421 2004-01-09 Paolo Carlini <pcarlini@suse.de>
6423 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
6424 * testsuite/performance/allocator_thread.cc: Likewise.
6426 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
6428 * crossconfig.m4: Add LFS, io bits to linux cross config.
6429 * acconfig.h: Remove obsolete bits, reorder.
6430 * config.h.in: Regenerate.
6434 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
6436 * include/bits/stl_list.h:
6437 * include/bits/list.tc:
6439 Performance enhancements for destructor, push_front(),
6440 push_back(), pop_front(), pop_back(), sort()
6441 Eliminated static_casts where possible.
6442 Moved code out of header files into new src/list.cc
6443 implementation file for library where possible.
6444 Remove inheritance from iterator class and create separate
6445 classes for non-constant and constant iterators.
6446 * include/bits/stl_tree.h (_Rb_tree class):
6448 Only erase contents in destructor.
6449 Eliminate unnecessary initialization in assignment operator.
6450 Optimize for the nominal case by not checking whether
6451 container is empty in clear().
6452 Re-order test in _M_insert() to improve performance.
6453 Move initialization of new node's left & right pointers to
6454 src/tree.cc to where new node's colour is initialized
6455 and to reduce the amount of inline code.
6456 Use _M_leftmost() and _M_end() to improve readability where
6458 Create separate classes for non-constant and constant
6459 iterators to clarify code, avoid extra template parameters and
6460 casting away constness.
6462 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
6464 * src/Makefile.am (sources): Add list.cc, tree.cc.
6465 * src/stl_tree.cc: Move to...
6466 * src/tree.cc: ...here.
6468 * config/linker-map.gnu: Tweaks.
6469 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
6470 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
6472 * bits/stl_vector.h: Column wrap comments.
6474 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
6476 (re-open) PR libstdc++/12658
6477 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
6478 (locale::global): Likewise.
6480 2004-01-07 Paolo Carlini <pcarlini@suse.de>
6482 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
6483 Remove redundant #include.
6484 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
6485 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
6486 re-enable normal testing.
6487 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
6489 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
6490 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
6492 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
6494 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
6496 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
6498 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
6500 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
6502 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
6504 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
6505 More properly, #include <locale>.
6506 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
6507 Remove redundant #include.
6508 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
6509 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
6510 redundant DejaGnu directive.
6511 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
6514 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
6515 Stefan Olsson <stefan@snon.net>
6517 * scripts/check_performance: Use -pthread.
6518 * testsuite/performance/allocator.cc: Tweaks, add list.
6519 * testsuite/performance/allocator_thread.cc: New.
6521 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
6523 * include/bits/locale_facets.h: Document public classes and
6525 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
6528 2004-01-06 Paolo Carlini <pcarlini@suse.de>
6530 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
6531 Remove redundant #includes.
6532 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
6534 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
6536 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
6537 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
6538 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
6539 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
6540 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
6541 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
6542 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
6543 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
6544 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
6545 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
6546 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
6547 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
6548 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
6549 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
6550 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
6552 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
6554 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
6556 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
6558 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
6560 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
6561 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
6562 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
6564 2004-01-04 Paolo Carlini <pcarlini@suse.de>
6566 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
6567 Remove redundant #includes.
6568 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
6570 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
6572 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
6574 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
6576 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
6578 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
6580 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
6582 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
6584 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
6586 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
6588 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
6590 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
6593 2004-01-04 Mark Mitchell <mark@codesourcery.com>
6596 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
6598 * testsuite/27_io/basic_fstream/4.cc: Likewise.
6599 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
6600 * testsuite/27_io/basic_ios/4.cc: Likewise.
6601 * testsuite/27_io/basic_iostream/4.cc: Likewise.
6602 * testsuite/27_io/basic_istream/4.cc: Likewise.
6603 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
6604 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
6605 * testsuite/27_io/basic_ostream/4.cc: Likewise.
6606 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
6607 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
6608 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
6610 2004-01-04 Paolo Carlini <pcarlini@suse.de>
6612 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
6613 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
6614 always use double underscored names.
6615 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
6617 * include/bits/locale_facets.h (struct __numpunct_cache):
6618 Dimension _M_atoms_out and _M_atoms_in one position smaller.
6619 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out