1 2006-01-31 Paolo Carlini <pcarlini@suse.de>
4 * include/tr1/array (array<>::_M_instance): Maximally align.
5 * testsuite/ext/array_allocator/2.cc: Do not xfail for powerpc.
7 2006-01-31 Ed Smith-Rowland <3dw4rd@verizon.net>
9 * docs/html/faq/index.html ([1.0]): Replace references to CVS
10 with appropriate references to SVN.
14 * docs/html/faq/index.txt: Regenerated.
16 2006-01-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
18 * include/bits/valarray_array.h (__valarray_default_construct):
19 Replace use __is_fundamental with __is_pod.
20 (__valarray_fill_construct): Likewise.
21 (__valarray_copy_construct): Likewise.
22 (__valarray_destroy_elements): Likewise.
23 (__valarray_copy): Likewise.
25 2006-01-30 Paolo Carlini <pcarlini@suse.de>
27 * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Do the <inttypes.h>
28 checks only if the <stdint.h> checks are successful.
29 * configure: Regenerate.
31 2006-01-30 Paolo Carlini <pcarlini@suse.de>
33 * include/tr1/cinttypes: New.
34 * include/Makefile.am: Add.
35 * testsuite/tr1/8_c_compatibility/cinttypes/functions: New.
36 * testsuite/tr1/8_c_compatibility/cinttypes/types: Likewise.
37 * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Add <inttypes.h> checks.
38 * docs/html/ext/tr1.html: Update.
39 * include/Makefile.in: Regenerate.
40 * config.h.in: Likewise.
41 * configure: Likewise.
43 * testsuite/tr1/8_c_compatibility/cfenv/functions.cc: Cosmetic tweak.
44 * testsuite/tr1/8_c_compatibility/cfenv/types.cc: Likewise.
46 * testsuite/tr1/8_c_compatibility/cstdint/types.cc: Fix, check in
49 2006-01-29 Paolo Carlini <pcarlini@suse.de>
51 * include/tr1/cstdint: New.
52 * include/Makefile.am: Add.
53 * testsuite/tr1/8_c_compatibility/cstdint/types: New.
54 * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Add <stdint.h> checks.
55 * docs/html/ext/tr1.html: Update.
56 * include/Makefile.in: Regenerate.
57 * config.h.in: Likewise.
58 * configure: Likewise.
60 * testsuite/tr1/8_c_compatibility/cfenv/types.cc: Cosmetic tweak.
62 2006-01-29 Paolo Carlini <pcarlini@suse.de>
65 * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Tighten <ctype.h> and
67 * configure: Regenerate.
69 2006-01-26 Paolo Carlini <pcarlini@suse.de>
71 * include/std/std_bitset.h (bitset<>::_M_copy_to_string):
72 Call the internal _Unchecked_set(size_t) instead of set.
74 2006-01-26 Paolo Carlini <pcarlini@suse.de>
76 * docs/html/install.html ([Tools you will need beforehand]):
77 Clarify that the de_DE locale is used by configure; clarify
78 that missing localedata leads to skipped tests, not fails.
80 2006-01-26 Paolo Carlini <pcarlini@suse.de>
82 * include/tr1/cfenv: New.
83 * include/Makefile.am: Add.
84 * testsuite/tr1/8_c_compatibility/cfenv/functions.cc: New.
85 * testsuite/tr1/8_c_compatibility/cfenv/types.cc: Likewise.
86 * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Add <fenv.h> checks.
87 * docs/html/ext/tr1.html: Update; add note.
88 * include/Makefile.in: Regenerate.
89 * config.h.in: Likewise.
90 * configure: Likewise.
92 * testsuite/tr1/8_c_compatibility/complex/functions.cc: Tweak.
93 * testsuite/tr1/8_c_compatibility/cctype/functions.cc: Likewise.
95 * docs/html/faq/index.html: Fix link to tr1.html text; fix
98 2006-01-25 Paolo Carlini <pcarlini@suse.de>
100 * include/tr1/cctype: New.
101 * include/Makefile.am: Add.
102 * testsuite/tr1/8_c_compatibility/cctype/functions.cc: New.
103 * include/Makefile.in: Regenerate.
105 * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): New, check for C99
106 support to TR1, Chapter 8.
107 * configure.ac: Use it.
108 * include/tr1/complex: Adjust.
109 * config.h.in: Regenerate.
110 * configure: Likewise.
112 2006-01-25 Benjamin Kosnik <bkoz@redhat.com>
114 * docs/html/configopts.html: Tweak docs.
116 * libsupc++/eh_personality.cc: Fix typos.
118 2006-01-24 Paolo Carlini <pcarlini@suse.de>
121 * include/std/std_istream.h (operator>>(short&), operator>>(int&)):
123 * include/bits/istream.tcc: ... here.
124 * include/std/std_ostream.h (operator<<(short), operator<<(int)):
126 * include/bits/ostream.tcc: ... here.
128 2006-01-24 Ed Smith-Rowland <3dw4rd@verizon.net>
130 * docs/html/faq/index.html ([5.2]): Mention TR1 and point to
131 paragraph [5.5], describing it.
133 * docs/html/ext/tr1.html: New.
135 2006-01-20 Benjamin Kosnik <bkoz@redhat.com>
137 * acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Verbose ld version
138 reporting. Disable --gc-sections for old binutils, by version.
139 * configure: Regenerate.
141 2006-01-20 Joseph S. Myers <joseph@codesourcery.com>
144 * include/Makefile.am: Install host-specific headers in multilib
146 * include/Makefile.in: Regenerate.
148 2006-01-19 Paolo Carlini <pcarlini@suse.de>
150 Implement list::splice (and merge) bits of N1599
151 * include/bits/stl_list.h (list<>::_M_check_equal_allocators): New.
152 (list<>::splice(iterator, list&), splice(iterator, list&, iterator),
153 splice(iterator, list&, iterator, iterator)): Use it.
154 * include/bits/list.tcc (list<>::merge(list&), merge(list&,
155 _StrictWeakOrdering)): Likewise.
156 * testsuite/23_containers/list/operators/5.cc: New.
158 2006-01-19 H.J. Lu <hongjiu.lu@intel.com>
161 * acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Remove -Werror
162 from CFLAGS. Check if linker really supports --gc-sections.
163 * configure: Regenerated.
165 2006-01-18 Paul Brook <paul@codesourcery.com>
167 * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Use std::abort.
169 2006-01-18 Paolo Carlini <pcarlini@suse.de>
171 * include/bits/allocator.h: Include <bits/cpp_type_traits.h>.
173 2006-01-18 Perry Smith <pedz@easesoftware.net>
177 * libsupc++/eh_alloc.cc: Fix return type of memset declaration.
178 * libsupc++/eh_globals.cc: If !_GLIBCXX_HOSTED declare malloc and free.
180 2006-01-18 Paolo Carlini <pcarlini@suse.de>
182 * include/ext/pb_assoc/detail/value_type_adapter/
183 value_type_adapter.hpp: Include <tr1/type_traits>.
184 * include/ext/pb_assoc/detail/value_type_adapter/
185 it_value_type_traits.hpp (it_value_type_traits_<>::value_type_holder):
186 Use tr1::aligned_storage and tr1::alignment_of.
187 (it_value_type_traits_<>::buf_t): Remove.
188 (it_value_type_traits_<>::make_valid, recast): Adjust.
190 2006-01-16 Benjamin Kosnik <bkoz@redhat.com>
193 * acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Add -Werror to
194 CFLAGS for --gc-sections test. Correct compile test.
195 * configure: Regenerated.
197 2006-01-15 Paolo Carlini <pcarlini@suse.de>
198 Gabriel Dos Reis <gdr@integrable-solutions.net>
201 * include/std/std_valarray.h (valarray(const slice_array<>&),
202 valarray(const gslice_array<>&), valarray(const mask_array<>&),
203 valarray(const indirect_array<>&), valarray(const _Expr<>&)):
204 Forward to __valarray_copy_construct, not __valarray_copy.
205 * include/bits/valarray_array.h
206 (__valarray_copy_construct(_Array<>, _Array<>, _Array<>, size_t),
207 __valarray_copy_construct(_Array<>, size_t, size_t, _Array<>)):
210 2006-01-15 Paolo Carlini <pcarlini@suse.de>
212 * testsuite/tr1/8_c_compatibility/complex/overloads_int.cc:
213 Fix norm test, use casts everywhere.
215 2006-01-14 Paolo Carlini <pcarlini@suse.de>
217 * testsuite/testsuite_tr1.h: Add missing include; use std::__are_same.
219 2006-01-14 Paolo Carlini <pcarlini@suse.de>
221 * testsuite/tr1/8_c_compatibility/complex/overloads_int.cc:
222 Fix wrong test (don't pick by mistake the (const complex<>&, int)
225 2006-01-13 Paolo Carlini <pcarlini@suse.de>
226 Howard Hinnant <hhinnant@apple.com>
228 * include/tr1/complex (arg, conj, imag, norm, polar, pow, real):
229 Add, implementing TR1, 8.1.9.
231 * include/tr1/common.h: New, provides __promote, __promote_2.
232 * include/Makefile.am: Add.
233 * include/Makefile.in: Regenerate.
234 * testsuite/testsuite_tr1.h (check_ret_type): New.
235 * testsuite/tr1/8_c_compatibility/complex/overloads_int.cc: New.
236 * testsuite/tr1/8_c_compatibility/complex/overloads_float.cc: New.
238 2006-01-12 Benjamin Kosnik <bkoz@redhat.com>
240 * acinclude.m4(GLIBCXX_CHECK_LINKER_FEATURES): Enable
241 --gc-sections in more cases.
242 * configure: Regenerate.
243 * scripts/testsuite_flags.in: Remove SECTION_LDFLAGS.
244 * scripts/testsuite_flags.in (cxxldflags): New.
245 * testsuite/lib/libstdc++.exp (v3_target_compile): Add cxxldflags.
246 (libstdc++_init ): Same.
248 2006-01-12 Jan Beulich <jbeulich@novell.com>
250 * crossconfig.m4: Add AC_DEFINE-s for HAVE_HYPOT, HAVE_ISINF, and
251 HAVE_ISNAN for *-*-netware*.
252 * configure: Refresh.
254 2006-01-11 Benjamin Kosnik <bkoz@redhat.com>
256 * acinclude.m4(GLIBCXX_CHECK_LINKER_FEATURES): Use -Wl,-z,relro if
258 * configure: Regenerate.
260 2006-01-10 Paolo Carlini <pcarlini@suse.de>
262 * include/tr1/complex: New file, hosts the additions to header
263 <complex> described in TR1, Chapter 8 [tr.c99].
264 * include/Makefile.am: Add.
265 * include/Makefile.in: Regenerate.
266 * testsuite/tr1/8_c_compatibility/complex/functions.cc: New.
268 2006-01-09 Paolo Carlini <pcarlini@suse.de>
271 * testsuite/23_containers/deque/cons/assign/1.cc: Divide
274 2006-01-08 Paolo Carlini <pcarlini@suse.de>
276 PR libstdc++/22102 (insert as close to hint as possible)
277 * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_lower,
278 _M_insert_equal_lower): New.
279 (_M_insert_equal(iterator, const _Val&),
280 _M_insert_equal(const_iterator, const _Val&)): Use the above.
281 * docs/html/ext/howto.html: Add an entry for DR 233.
282 * testsuite/23_containers/multiset/modifiers/insert/22102.cc: New.
283 * testsuite/23_containers/multimap/modifiers/insert/22102.cc: New.
285 * testsuite/23_containers/set/insert/: Move...
286 * testsuite/23_containers/set/modifiers/insert/: ...here.
287 * testsuite/23_containers/map/insert/: Move...
288 * testsuite/23_containers/map/modifiers/insert/: ...here.
289 * testsuite/23_containers/multiset/insert/: Move...
290 * testsuite/23_containers/multiset/modifiers/insert/: ...here.
292 2006-01-06 Paolo Carlini <pcarlini@suse.de>
294 * include/bits/stl_tree.h (_Rb_tree<>::insert_unique): Rename
296 (_Rb_tree<>::insert_equal): Rename to _M_insert_equal.
297 * include/bits/stl_map.h (class map<>): Update callers.
298 * include/bits/stl_set.h (class set<>): Likewise.
299 * include/bits/stl_multimap.h (class multimap<>): Likewise.
300 * include/bits/stl_multiset.h (class multiset<>): Likewise.
302 2006-01-06 Paolo Carlini <pcarlini@suse.de>
304 * include/bits/stl_bvector.h (vector<bool>::erase(iterator,
305 iterator)): Just use _M_erase_at_end.
307 2006-01-06 Paolo Carlini <pcarlini@suse.de>
309 * include/bits/stl_bvector.h (class vector<bool>): Move all the
310 helpers under protected access mode, consistently with the primary
312 (vector<bool>::_M_erase_at_end): Add.
313 (erase(iterator, iterator), clear, resize, _M_fill_assign,
314 _M_assign_aux): Use it.
315 * testsuite/23_containers/vector/bool/modifiers/erase/1.cc: New.
317 2006-01-06 Paolo Carlini <pcarlini@suse.de>
319 Implement Option 3 of DR 431 for vector<bool>.
320 * include/bits/stl_bvector.h (class _Bvector_base): Change to
321 a struct, consistently with the primary vector template.
322 (class vector<bool>): Adjust to protected inheritance, tidy
324 (_Bvector_base<>::_M_get_Bit_allocator): Add.
325 (vector<bool>::vector(const vector&)): Use it.
326 (_Bvector_base<>::get_allocator): Tidy.
327 (vector<bool>::swap): Use __alloc_swap.
328 * testsuite/23_containers/vector/bool/modifiers/swap/1.cc: New.
329 * testsuite/23_containers/vector/bool/modifiers/swap/2.cc: New.
331 2006-01-05 Paolo Carlini <pcarlini@suse.de>
333 * testsuite/testsuite_hooks.h (test_tm(unsigned)): Change to
334 take all the tm members.
335 * testsuite/testsuite_hooks.cc (test_tm): Adjust.
336 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Update.
337 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
338 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
339 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
340 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
341 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
342 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
343 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
344 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
345 * testsuite/22_locale/time_put/put/wchar_t/9.cc: Likewise.
346 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
347 * testsuite/22_locale/time_put/put/char/10.cc: Likewise.
348 * testsuite/22_locale/time_put/put/char/1.cc: Likewise.
349 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
350 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
351 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
352 * testsuite/22_locale/time_put/put/char/5.cc: Likewise.
353 * testsuite/22_locale/time_put/put/char/6.cc: Likewise.
354 * testsuite/22_locale/time_put/put/char/7.cc: Likewise.
355 * testsuite/22_locale/time_put/put/char/8.cc: Likewise.
356 * testsuite/22_locale/time_put/put/char/9.cc: Likewise.
357 * testsuite/22_locale/time_put/put/char/17038.cc: Likewise.
358 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
359 * testsuite/22_locale/time_get/get_year/wchar_t/3.cc: Likewise.
360 * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
361 * testsuite/22_locale/time_get/get_year/char/3.cc: Likewise.
362 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
363 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Likewise.
364 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
365 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Likewise.
366 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
367 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Likewise.
368 * testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc: Likewise.
369 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
370 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Likewise.
371 * testsuite/22_locale/time_get/get_weekday/char/3.cc: Likewise.
372 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
373 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
374 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
375 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Likewise.
376 * testsuite/22_locale/time_get/get_date/wchar_t/3.cc: Likewise.
377 * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
378 * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
379 * testsuite/22_locale/time_get/get_date/char/1.cc: Likewise.
380 * testsuite/22_locale/time_get/get_date/char/2.cc: Likewise.
381 * testsuite/22_locale/time_get/get_date/char/3.cc: Likewise.
382 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
383 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Likewise.
384 * testsuite/22_locale/time_get/get_time/wchar_t/3.cc: Likewise.
385 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
386 * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
387 * testsuite/22_locale/time_get/get_time/char/2.cc: Likewise.
388 * testsuite/22_locale/time_get/get_time/char/3.cc: Likewise.
389 * testsuite/22_locale/time_get/get_time/char/4.cc: Likewise.
391 2006-01-05 Paolo Carlini <pcarlini@suse.de>
393 * testsuite/testsuite_hooks.h (test_tm(unsigned)): New.
394 * testsuite/testsuite_hooks.cc (test_tm(unsigned)): Define.
395 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Use it.
396 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
397 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
398 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
399 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
400 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
401 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
402 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
403 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
404 * testsuite/22_locale/time_put/put/wchar_t/9.cc: Likewise.
405 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
406 * testsuite/22_locale/time_put/put/char/10.cc: Likewise.
407 * testsuite/22_locale/time_put/put/char/1.cc: Likewise.
408 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
409 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
410 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
411 * testsuite/22_locale/time_put/put/char/5.cc: Likewise.
412 * testsuite/22_locale/time_put/put/char/6.cc: Likewise.
413 * testsuite/22_locale/time_put/put/char/7.cc: Likewise.
414 * testsuite/22_locale/time_put/put/char/8.cc: Likewise.
415 * testsuite/22_locale/time_put/put/char/9.cc: Likewise.
416 * testsuite/22_locale/time_put/put/char/17038.cc: Likewise.
417 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
418 * testsuite/22_locale/time_get/get_year/wchar_t/3.cc: Likewise.
419 * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
420 * testsuite/22_locale/time_get/get_year/char/3.cc: Likewise.
421 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
422 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Likewise.
423 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
424 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Likewise.
425 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
426 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Likewise.
427 * testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc: Likewise.
428 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
429 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Likewise.
430 * testsuite/22_locale/time_get/get_weekday/char/3.cc: Likewise.
431 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
432 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
433 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
434 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Likewise.
435 * testsuite/22_locale/time_get/get_date/wchar_t/3.cc: Likewise.
436 * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
437 * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
438 * testsuite/22_locale/time_get/get_date/char/1.cc: Likewise.
439 * testsuite/22_locale/time_get/get_date/char/2.cc: Likewise.
440 * testsuite/22_locale/time_get/get_date/char/3.cc: Likewise.
441 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
442 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Likewise.
443 * testsuite/22_locale/time_get/get_time/wchar_t/3.cc: Likewise.
444 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
445 * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
446 * testsuite/22_locale/time_get/get_time/char/2.cc: Likewise.
447 * testsuite/22_locale/time_get/get_time/char/3.cc: Likewise.
448 * testsuite/22_locale/time_get/get_time/char/4.cc: Likewise.
450 2006-01-04 Paolo Carlini <pcarlini@suse.de>
452 * include/ext/sso_string_base.h (__sso_string_base<>::_M_dataplus):
453 Use _CharT_alloc_type as base class.
454 (_M_get_allocator, _M_swap, _M_create, _M_destroy): Adjust.
455 * include/ext/vstring.h (get_allocator): Tidy.
457 2006-01-04 Paolo Carlini <pcarlini@suse.de>
459 Implement Option 3 of DR 431 for all the containers.
460 * include/bits/allocator.h (struct __alloc_swap): Add, swaps
461 allocators, optimized to nothing in case they are empty.
462 * include/bits/stl_deque.h (deque<>::swap): Use it.
463 * include/bits/stl_list.h (list<>::swap): Likewise.
464 * include/bits/stl_tree.h (_Rb_tree<>::swap): Likewise.
465 * include/bits/stl_vector.h (vector<>::swap): Likewise.
466 * include/tr1/hashtable (hashtable<>::swap): Likewise.
467 * include/ext/rc_string_base.h (__rc_string_base<>::_M_swap):
469 * include/ext/sso_string_base.h (__sso_string_base<>::_M_swap):
471 * include/ext/vstring_util.h (__vstring_utility<>::_Alloc_hider):
472 Clean-up (now vstring uses the generic __alloc_swap facility).
473 * include/tr1/unordered_map: Adjust includes.
474 * include/tr1/unordered_set: Likewise.
475 * docs/html/ext/howto.html: Add an entry for DR 431.
476 * testsuite/23_containers/deque/modifiers/swap.cc: Move to...
477 * testsuite/23_containers/deque/modifiers/swap/1.cc: ... here.
478 * testsuite/23_containers/deque/modifiers/swap/2.cc: New.
479 * testsuite/23_containers/deque/modifiers/swap/3.cc: New.
480 * testsuite/23_containers/list/modifiers/swap.cc: Move to...
481 * testsuite/23_containers/list/modifiers/swap/1.cc: ... here.
482 * testsuite/23_containers/list/modifiers/swap/2.cc: New.
483 * testsuite/23_containers/list/modifiers/swap/3.cc: New.
484 * testsuite/23_containers/vector/modifiers/swap.cc: Move to...
485 * testsuite/23_containers/vector/modifiers/swap/1.cc: ... here.
486 * testsuite/23_containers/vector/modifiers/swap/2.cc: New.
487 * testsuite/23_containers/vector/modifiers/swap/3.cc: New.
488 * testsuite/23_containers/set/modifiers/swap.cc: Move to...
489 * testsuite/23_containers/set/modifiers/swap/1.cc: ... here.
490 * testsuite/23_containers/set/modifiers/swap/2.cc: New.
491 * testsuite/23_containers/set/modifiers/swap/3.cc: New.
492 * testsuite/23_containers/map/modifiers/swap.cc: Move to...
493 * testsuite/23_containers/map/modifiers/swap/1.cc: ... here.
494 * testsuite/23_containers/map/modifiers/swap/2.cc: New.
495 * testsuite/23_containers/map/modifiers/swap/3.cc: New.
496 * testsuite/23_containers/multiset/modifiers/swap.cc: Move to...
497 * testsuite/23_containers/multiset/modifiers/swap/1.cc: ... here.
498 * testsuite/23_containers/multiset/modifiers/swap/2.cc: New.
499 * testsuite/23_containers/multiset/modifiers/swap/3.cc: New.
500 * testsuite/23_containers/multimap/modifiers/swap.cc: Move to...
501 * testsuite/23_containers/multimap/modifiers/swap/1.cc: ... here.
502 * testsuite/23_containers/multimap/modifiers/swap/2.cc: New.
503 * testsuite/23_containers/multimap/modifiers/swap/3.cc: New.
504 * testsuite/tr1/6_containers/unordered/swap/unordered_set/1.cc: New.
505 * testsuite/tr1/6_containers/unordered/swap/unordered_set/2.cc: New.
506 * testsuite/tr1/6_containers/unordered/swap/unordered_map/1.cc: New.
507 * testsuite/tr1/6_containers/unordered/swap/unordered_map/2.cc: New.
508 * testsuite/tr1/6_containers/unordered/swap/unordered_multiset/1.cc: New.
509 * testsuite/tr1/6_containers/unordered/swap/unordered_multiset/2.cc: New.
510 * testsuite/tr1/6_containers/unordered/swap/unordered_multimap/1.cc: New.
511 * testsuite/tr1/6_containers/unordered/swap/unordered_multimap/2.cc: New.
513 2006-01-03 Paolo Carlini <pcarlini@suse.de>
515 * include/bits/stl_list.h (_List_base<>::_M_get_Node_allocator): Add.
516 (_M_get_Tp_allocator, get_allocator): Tidy.
517 (list<>::list(const list&), insert(iterator, size_type, const
518 value_type&), insert(iterator, _InputIterator, _InputIterator)):
519 Use _M_get_Node_allocator.
520 * include/bits/stl_tree.h (_Rb_tree<>::_M_get_Node_allocator()): Add.
521 (_Rb_tree(const _Rb_tree<>&): Use it.
522 * include/bits/stl_deque.h (_Deque_base<>::_M_get_map_allocator,
523 get_allocator): Tidy.
524 * include/bits/stl_vector.h (_Vector_base<>::get_allocator): Tidy.
525 * testsuite/23_containers/map/operators/1_neg.cc: Adjust dg-error
527 * testsuite/23_containers/set/operators/1_neg.cc: Likewise.
529 * testsuite/testsuite_allocator.h (uneq_allocator<>::swap): Fix.
531 * testsuite/testsuite_allocator.h (class uneq_allocator): A simple
532 non-empty testing allocator which can be endowed of a "personality"
533 at construction time.
535 2006-01-03 Paolo Carlini <pcarlini@suse.de>
537 * testsuite/27_io/basic_stringstream/str/char/1.cc: Initialize vars.
538 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
539 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise, tidy.
540 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
542 2006-01-02 Mark Mitchell <mark@codesourcery.com>
544 * src/Makefile.am (LTLDFLAGS): New variable.
545 (CXXLINK): Use LTLDFLAGS.
546 * src/Makefile.in: Regenerated.
547 * libsupc++/Makefile.am (LTLDFLAGS): New variable.
548 (CXXLINK): Use LTLDFLAGS.
549 * libsupc++/Makefile.in: Regenerated.
551 2006-01-02 Paolo Carlini <pcarlini@suse.de>
554 * include/std/std_istream.h (basic_istream<>::_M_extract): New.
555 (operator>>(bool&), operator>>(short&), operator>>(unsigned short&),
556 operator>>(int&), operator>>(unsigned int&), operator>>(long&),
557 operator>>(unsigned long&), operator>>(long long&), operator>>
558 (unsigned long long&), operator>>(float&), operator>>(double&),
559 operator>>(long double&), operator>>(void*&)): Use it.
560 * include/bits/istream.tcc (basic_istream<>::_M_extract): Define.
561 * include/std/std_ostream.h (basic_ostream<>::_M_insert): New.
562 (operator<<(long), operator<<(unsigned long), operator<<(bool),
563 operator<<(short), operator<<(unsigned short), operator<<(int),
564 operator<<(unsigned int), operator<<(long long), operator<<
565 (unsigned long long), operator<<(double), operator<<(float),
566 operator<<(long double), operator<<(const void*): Use it.
567 * include/bits/ostream.tcc (basic_ostream<>::_M_insert): Define.
568 * src/istream-inst.cc: Add _M_extract instantiations.
569 * src/ostream-inst.cc: Add _M_insert instantiations.
570 * config/abi/pre/gnu.ver: Export the new symbols @GLIBCXX_3.4.7;
571 detail existing @GLIBCXX_3.4 exports of basic_ostream, num_put,
572 money_put, etc., symbols to avoid exporting _M_insert symbols