OSDN Git Service

02bfce7939b5570f8ff7c86cc5689868c45b923e
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2009-01-07  Benjamin Kosnik  <bkoz@redhat.com>
2             Jonathan Larmour  <jifl@eCosCentric.com>
3
4         PR libstdc++/36801
5         * config/cpu/generic/atomicity_mutex/atomicity.h (get_atomic_mutex):
6         New.
7         (__gnu_cxx::__exchange_and_add): Use it.
8         * src/atomic.cc (get_atomic_mutex): New.
9         * src/debug.cc (get_safe_base_mutex): New.
10         * src/locale.cc (get_locale_cache_mutex): New.
11         * src/mt_allocator.cc (get_freelist): New.
12         (get_freelist_mutex): New.
13         * src/pool_allocator.cc (get_palloc_mutex): New.
14         * include/std/mutex (__once_functor_lock): To
15         (__get_once_functor_lock): ...this.
16         * src/mutex.cc (__once_mutex): Don't export, use
17         (get_once_mutex): ...this.
18         * config/abi/pre/gnu.ver: Adjust exports.
19
20 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
21
22         PR libstdc++/38732
23         * libsupc++/unwind-cxx.h (__cxxabiv1::__cxa_exception): Remove
24         referenceCount field again.
25         (__cxxabiv1::__cxa_refcounted_exception): New struct.
26         (__cxxabiv1::__get_refcounted_exception_header_from_obj,
27         __cxxabiv1::__get_refcounted_exception_header_from_ue): New static
28         inline functions.
29         * libsupc++/eh_alloc.cc (__cxxabiv1::__cxa_allocate_exception,
30         __cxxabiv1::__cxa_free_exception): Use __cxa_refcounted_exception
31         instead of __cxa_exception.
32         * libsupc++/eh_throw.cc (__gxx_exception_cleanup,
33         __cxxabiv1::__cxa_throw): Likewise.
34         * libsupc++/eh_ptr.cc (std::rethrow_exception,
35         std::__exception_ptr::exception_ptr::_M_addref,
36         std::__exception_ptr::exception_ptr::_M_release,
37         __gxx_dependent_exception_cleanup): Likewise.
38         * testsuite/18_support/exception/38732.cc: New test.
39
40         PR libstdc++/38092
41         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New test.
42         * src/compatibility.cc: Don't use .symver directives if
43         _GLIBCXX_HAVE_AS_SYMVER_DIRECTIVE is not defined.
44         * config.h.in: Regenerated.
45         * configure: Likewise.
46
47 2009-01-07  Paolo Carlini  <paolo.carlini@oracle.com>
48
49         PR libstdc++/38466
50         * include/bits/stl_pair.h: Document C++03 pair vs swap.
51
52 2009-01-06  Benjamin Kosnik  <bkoz@redhat.com>
53
54         * src/locale_init.cc (locale::_S_initialize_once): Move construction
55         of classic locale...
56         (locale::classic): Here.
57
58 2009-01-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
59
60         * include/tr1_impl/regex: Fix bad return statements and typos.
61
62 2009-01-05  Benjamin Kosnik  <bkoz@redhat.com>
63
64         * include/tr1_impl/regex: Remove unimplemented function definitions.
65         * testsuite/28_regex/init-list.cc: Compile only.
66         * testsuite/tr1/7_regular_expressions/regex/cons/char/
67         c_string_extended.cc: Same.
68         * testsuite/tr1/7_regular_expressions/basic_regex/assign/*: Same.
69         * testsuite/tr1/7_regular_expressions/basic_regex/ctors/*: Same.
70
71 2009-01-05  Benjamin Kosnik  <bkoz@redhat.com>
72
73         PR libstdc++/38384
74         * crossconfig.m4: Define HAVE_FABSF for hpux crosses.
75         * configure: Regenerate.
76
77 2009-01-05  Ben Elliston  <bje@au.ibm.com>
78
79         * configure.ac (GLIBCXX_CHECK_STANDARD_LAYOUT): Remove invocation.
80         * configure: Regenerate.
81
82 2009-01-05  Ben Elliston  <bje@au.ibm.com>
83
84         * configure.ac: Exchange the order of GLIBCXX_ENABLE_THREADS and
85         GLIBCXX_ENABLE_ATOMIC_BUILTINS macro invocations.
86         * configure: Regenerate.
87
88 2009-01-04  Richard Guenther  <rguenther@suse.de>
89
90         PR libstdc++/38720
91         * include/ext/pointer.h (_Relative_pointer_impl): Use an unsigned
92         integer type for storage, arithmetic and comparisons.
93         * testsuite/ext/ext_pointer/1_neg.cc: Adjust line numbers.
94
95 2009-01-04  Paolo Carlini  <paolo.carlini@oracle.com>
96
97         PR libstdc++/38719
98         * include/bits/forward_list.h (_Fwd_list_iterator<>::_M_next,
99         _Fwd_list_const_iterator::_M_next): Fix return type.
100
101 2009-01-03  Paolo Carlini  <paolo.carlini@oracle.com>
102
103         * Revert last commit, reopen and suspend libstdc++/38678.
104
105 2009-01-01  Paolo Carlini  <paolo.carlini@oracle.com>
106
107         PR libstdc++/38678
108         * include/std/istream (basic_istream<>::_M_read): New.
109         * include/bits/istream.tcc (basic_istream<>::_M_read): Define.
110         (basic_istream<>::read, basic_istream<>::readsome): Use it.
111         * include/std/ostream (basic_ostream<>::_M_write_): New.
112         (basic_ostream<>::_M_write): Adjust.
113         * include/bits/ostream.tcc (basic_ostream<>::_M_write_): Define.
114         * testsuite/27_io/basic_istream/read/char/38678.cc: New.
115         * testsuite/27_io/basic_istream/read/wchar_t/38678.cc: Likewise.
116         * testsuite/27_io/basic_ostream/write/char/38678.cc: Likewise.
117         * testsuite/27_io/basic_ostream/write/wchar_t/38678.cc: Likewise.
118
119 2008-12-22  Jonathan Larmour  <jifl@eCosCentric.com>
120
121         * include/ext/concurrence.h: Fix __gthread_cond_t initialisation
122         function macro name.
123
124 2008-12-22  Benjamin Kosnik  <bkoz@redhat.com>
125
126         * doc/doxygen/stdheader.cc: Add cstdlib.
127         * doc/doxygen/user.cfg.in: Regenerate for doxygen 1.5.7.
128
129 2008-12-21  Andrew Pinski  <pinskia@gmail.com>
130
131         PR target/38300
132         * configure: Regenerate.
133
134 2008-12-21  Paolo Carlini  <paolo.carlini@oracle.com>
135
136         PR libstdc++/38596
137         * include/tr1_impl/functional (function<>::target,
138         function<>::target_type): Provide only when __GXX_RTTI is defined.
139         (_Function_base::_M_manager, _Ref_manager<>::_M_manager,
140         _Function_handler<void(_ArgTypes...), _Member _Class::*>::_M_manager):
141         Adjust.
142
143 2008-12-19  Ben Elliston  <bje@au.ibm.com>
144
145         * acinclude.m4: Guard a variable test against an empty string.
146         * configure: Regenerate.
147
148 2008-12-18  Jack Howarth  <howarth@bromo.med.uc.edu>
149
150         * testsuite/21_strings/basic_string/element_access/wchar_t/21674.cc:
151         Add xfail on all targets except darwin.
152         * libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/
153         1674.cc: Same.
154         * libstdc++-v3/testsuite/22_locale/ctype/is/char/2.cc: Correct syntax
155         for xfailing on all targets except linux.
156
157 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
158
159         * configure: Regenerate.
160
161 2008-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
162
163         * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
164         Don't xfail test on darwin8 or later.
165
166 2008-12-16  Jack Howarth  <howarth@bromo.med.uc.edu>
167
168         * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
169         Don't xfail excessive errors on darwin8 or later.
170
171 2008-12-15  Benjamin Kosnik  <bkoz@redhat.com>
172
173         * include/c_global/cstdatomic: Remove assert include.
174         * include/debug/debug.h: Consolidate __replacement_assert...
175         * include/parallel/base.h: Consolidate __replacement_assert...
176         * include/bits/c++config: ...here.
177         * include/bits/atomic_0.h: Use it.
178         * include/bits/atomic_2.h: Same.
179         * testsuite/29_atomics/atomic/cons/assign_neg.cc: Adjust line numbers.
180         * testsuite/29_atomics/atomic/cons/copy_neg.cc: Same.
181
182 2008-12-13  Benjamin Kosnik  <bkoz@redhat.com>
183
184         * src/atomic.cc: Revert last change.
185         * include/bits/atomic_2.h: Move cassert include to...
186         * include/c_global/cstdatomic: ...here.
187         * testsuite/29_atomics/atomic/cons/assign_neg.cc: Adjust line numbers.
188         * testsuite/29_atomics/atomic/cons/copy_neg.cc: Same.
189
190 2008-12-12  Benjamin Kosnik  <bkoz@redhat.com>
191
192         * src/Makefile.am: Remove -x c++ for atomic build rules.
193         * src/Makefile.in: Regenerate.
194         * src/atomic.cc: Move mutex include before cstdatomic.
195
196 2008-12-12  H.J. Lu  <hongjiu.lu@intel.com>
197
198         PR libstdc++/37144
199         * testsuite/util/regression/trait/assoc/type_trait.hpp
200         (regression_test_type_traits): Add const to pair_type_rebind.
201
202 2008-12-12  Benjamin Kosnik  <bkoz@redhat.com>
203
204         * src/atomic.cc: Correct guards to match mutex.cc.
205
206 2008-12-11  Benjamin Kosnik  <bkoz@redhat.com>
207             Richard Henderson  <rth@redhat.com>
208
209         * include/c_global/cstdatomic: Update to N2798.
210         (atomic): Remove explicit constructors as per DR 845.
211         * include/bits/atomic_0.h: New. Switchable implementation.
212         * include/bits/atomic_2.h: New. Lock-free implementation.
213         * include/c_compatibility/stdatomic.h: Use foward headers.
214         * include/bits/atomicfwd_cxx.h: New.
215         * include/bits/atomicfwd_c.h: New.
216         * src/atomic.cc: Adjust.
217         * acinclude.m4 (GLIBCXX_CHECK_STANDARD_LAYOUT): Remove,
218         unconditionally use default/deleted syntax.
219         (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Check for 2, 8.
220         * include/Makefile.am (bits_headers): Add atomicfwd_c.h,
221         atomicfwd_cxx.h, atomic_0.h, atomic_2.h.
222         * include/Makefile.in: Regenerate.
223         * configure: Regenerate.
224         * config.h.in: Regenerate.
225         * config/abi/pre/gnu.ver: Adjust exports.
226
227         * testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: Adjust.
228         * testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: Same.
229         * testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: Same.
230         * testsuite/29_atomics/atomic_address/cons/assign_neg.cc: Same.
231         * testsuite/29_atomics/atomic_address/cons/explicit_value.cc: Move to..
232         * testsuite/29_atomics/atomic_address/cons/single_value.cc: ...this.
233         * testsuite/29_atomics/atomic_address/cons/copy_neg.cc
234         * testsuite/29_atomics/atomic_integral/cons/single_value.cc: New.
235         * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc: New.
236         * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: New.
237         * testsuite/29_atomics/atomic_integral/cons/default.cc: New.
238         * testsuite/29_atomics/atomic_integral/cons/direct_list.cc: New.
239         * testsuite/29_atomics/atomic_integral/cons/copy_list.cc: New.
240         * testsuite/29_atomics/atomic_integral/requirements/
241         standard_layout.cc: New.
242         * testsuite/29_atomics/atomic_integral/operators/
243         integral_assignment.cc: New.
244         * testsuite/29_atomics/atomic_integral/operators/increment_neg.cc: New.
245         * testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc: New.
246         * testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc: New.
247         * testsuite/29_atomics/atomic_integral/operators/increment.cc: New.
248         * testsuite/29_atomics/atomic_integral/operators/decrement.cc: New.
249         * testsuite/29_atomics/atomic_integral/operators/bitwise.cc: New.
250         * testsuite/29_atomics/atomic_integral/operators/
251         integral_conversion.cc: New.
252         * testsuite/29_atomics/atomic_flag/cons/assign_neg.cc: Adjust.
253         * testsuite/29_atomics/atomic_flag/cons/copy_neg.cc: Same.
254         * testsuite/29_atomics/atomic_flag/requirements/
255         standard_layout.cc: Same.
256         * testsuite/29_atomics/atomic_flag/
257         atomic_global_fence_compatibility.cc: Kill.
258         * testsuite/29_atomics/headers/cstdatomic/types_std_c++0x.cc: Adjust.
259         * testsuite/29_atomics/headers/cstdatomic/functions_std_c++0x.cc: Same.
260         * testsuite/29_atomics/headers/cstdatomic/macros.cc: Same.
261         * testsuite/29_atomics/headers/stdatomic.h/macros.c: Same.
262         * testsuite/29_atomics/headers/stdatomic.h/types.c: Same.
263         * testsuite/29_atomics/atomic/cons/assign_neg.cc: Same.
264         * testsuite/29_atomics/atomic/cons/explicit_value.cc: Move to...
265         * testsuite/29_atomics/atomic/cons/single_value.cc: ...this.
266         * testsuite/29_atomics/atomic/cons/copy_neg.cc
267         * testsuite/29_atomics/atomic/cons/direct_list.cc: New.
268         * testsuite/29_atomics/atomic/cons/copy_list.cc: New.
269         * testsuite/29_atomics/atomic/requirements/standard_layout.cc: New.
270         * testsuite/29_atomics/atomic/requirements/base_classes.cc: New.
271         * testsuite/29_atomics/atomic/operators/integral_assignment.cc: New.
272         * testsuite/29_atomics/atomic/operators/integral_conversion.cc: New.
273         * testsuite/util/testsuite_hooks.h (bitmask_operators): Move...
274         * testsuite/util/testsuite_common_types.h: ...here.
275         (atomic_integrals_no_bool): New.
276         (atomic_integrals): New.
277         (has_increment_operators, has_decrement_operators)
278         (direct_list_initializable, single_value_constructible)
279         (standard_layout, has_bitwise_operators, integral_convertable)
280         (integral_assignable): Add.
281
282 2008-12-11  Jakub Jelinek  <jakub@redhat.com>
283
284         PR c++/37582
285         * testsuite/26_numerics/headers/cmath/37582.cc: New.
286
287 2008-12-08  Paolo Carlini  <paolo.carlini@oracle.com>
288
289         * include/tr1_impl/cmath: Undef remquof / remquol too; add using
290         declarations.
291         * acinclude.m4 [GLIBCXX_CHECK_C99_TR1]: Check remquof / remquol too.
292         * testsuite/tr1/8_c_compatibility/cmath/functions.cc: Adjust.
293         * configure: Regenerate.
294
295 2008-12-08  Edward Smith-Rowland  <3dw4rd@verizon.net>
296
297         * include/bits/forward_list.h: Fixed spurious "forward_swap" in doxy.
298
299 2008-12-06  Paolo Carlini  <paolo.carlini@oracle.com>
300
301         PR libstdc++/38421
302         * include/tr1/ell_integral.tcc: Avoid __ea, future SPU badname.
303         * doc/xml/manual/appendix_contributing.xml: Add __ea to the list
304         of badnames.
305
306 2008-12-05  Tom Tromey  <tromey@redhat.com>
307
308         * include/tr1_impl/functional (_Mu): Fix typo.
309
310 2008-12-05  Paolo Carlini  <paolo.carlini@oracle.com>
311
312         PR libstdc++/38399
313         * include/bits/locale_facets_nonio.tcc (money_get<>::
314         _M_extract(iter_type, iter_type, ios_base&, ios_base::iostate&,
315         string&)): Fix, reject decimal point when frac_digits <= 0.
316         * testsuite/22_locale/money_get/get/char/38399.cc: New.
317         * testsuite/22_locale/money_get/get/wchar_t/38399.cc: Likewise.
318         * testsuite/22_locale/money_get/get/char/5.cc: Adjust.
319         * testsuite/22_locale/money_get/get/wchar_t/5.cc: Likewise.
320
321 2008-12-05  Paolo Carlini  <paolo.carlini@oracle.com>
322
323         PR libstdc++/38411
324         * testsuite/22_locale/numpunct/members/char/2.cc: Use is_IS instead
325         of fr_FR.
326         * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Likewise.
327         * testsuite/22_locale/locale/cons/7.cc: Likewise.
328
329 2008-12-04  Paolo Carlini  <paolo.carlini@oracle.com>
330
331         PR libstdc++/38368
332         * config/locale/gnu/numeric_members.cc (numpunct<char>::
333         _M_initialize_numpunct, numpunct<wchar_t>::_M_initialize_numpunct):
334         Fix for THOUSANDS_SEP == '\0' consistently with "C" locale.
335         * config/locale/gnu/monetary_members.cc (moneypunct<char, true>::
336         _M_initialize_moneypunct, moneypunct<char, false>::
337         _M_initialize_moneypunct, moneypunct<wchar_t, true>::
338         _M_initialize_moneypunct, moneypunct<wchar_t, false>::
339         _M_initialize_moneypunct): Fix for __MON_DECIMAL_POINT == '\0' or
340         __MON_THOUSANDS_SEP == '\0' consistently with "C" locale.
341         * testsuite/22_locale/locale/cons/38368.cc: New.
342
343 2008-12-02  Paolo Carlini  <paolo.carlini@oracle.com>
344
345         PR libstdc++/38365 (cont)
346         * src/localename.cc (locale::locale(const locale&, const locale&,
347         category)): Revert last changes.
348         (locale::_Impl::_M_replace_categories(const _Impl*, category)):
349         Fix here instead; rework.
350
351 2008-12-02  Paolo Carlini  <paolo.carlini@oracle.com>
352
353         PR libstdc++/38365
354         * src/localename.cc (locale::locale(const locale&, const locale&,
355         category)): Fix.
356         * testsuite/22_locale/locale/cons/38365.cc: New.
357
358 2008-12-01  Benjamin Kosnik  <bkoz@redhat.com>
359
360         PR libstdc++/38080
361         * include/std/iostream: Correct URL.
362         * include/std/streambuf: Same.
363         * include/std/bitset: Same.
364         * include/std/iosfwd: Same.
365         * include/std/fstream: Same.
366         * include/std/istream: Same.
367         * include/std/ostream: Same.
368         * include/std/sstream: Same.
369         * include/bits/basic_ios.h: Same.
370         * include/bits/stl_map.h: Same.
371         * include/bits/stl_set.h: Same.
372         * include/bits/stl_multimap.h: Same.
373         * include/bits/ios_base.h: Same.
374         * include/bits/stl_multiset.h: Same.
375         * include/bits/char_traits.h: Same.
376         * include/bits/stl_relops.h: Same.
377         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
378         * testsuite/27_io/ios_base/cons/copy_neg.cc: Ditto.
379
380 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
381
382         PR testsuite/28870
383         * testsuite/lib/libstdc++.exp: Include new timeout library files.
384         (libstdc++_init): Define tool_timeout.
385         (dg-test): Override DejaGnu proc.
386         (v3_target_compile): Set timeout value from new proc.
387         (v3_target_compile_as_c): Ditto.
388
389 2008-11-24  Paolo Carlini  <paolo.carlini@oracle.com>
390
391         PR libstdc++/38244 (cont, debug bits)
392         * include/debug/bitset (bitset<>::bitset(const char*, char, char)):
393         Remove, do not implement DR 778.
394
395 2008-11-24  Paolo Carlini  <paolo.carlini@oracle.com>
396
397         PR libstdc++/38244
398         * include/std/bitset (bitset<>::bitset(const char*, char, char)):
399         Remove, do not implement DR 778.
400         * doc/xml/manual/intro.xml: Remove entry for DR 778.
401         * testsuite/23_containers/bitset/cons/2.cc: Remove.
402         * testsuite/23_containers/bitset/cons/dr396.cc: Tweak.
403         * testsuite/23_containers/bitset/cons/38244.cc: Add.
404
405 2008-11-21  Paolo Carlini  <paolo.carlini@oracle.com>
406
407         * testsuite/22_locale/num_put/put/char/38210.cc: Tweak.
408         * testsuite/22_locale/num_put/put/wchar_t/38210.cc: Likewise.
409
410 2008-11-21  Paolo Carlini  <paolo.carlini@oracle.com>
411
412         PR libstdc++/38210
413         * include/bits/locale_facets.tcc (num_put<>::do_put(iter_type,
414         ios_base&, char_type, const void*)): Fix.
415         * testsuite/22_locale/num_put/put/char/38210.cc: New.
416         * testsuite/22_locale/num_put/put/wchar_t/38210.cc: Likewise.
417
418 2008-11-20  Paolo Carlini  <paolo.carlini@oracle.com>
419
420         PR libstdc++/38196
421         * include/bits/locale_facets.tcc (num_put<>::do_put(iter_type,
422         ios_base&, char_type, bool)): Fix.
423         * testsuite/22_locale/num_put/put/char/38196.cc: New.
424         * testsuite/22_locale/num_put/put/wchar_t/38196.cc: Likewise.
425
426 2008-11-18  Paolo Carlini  <paolo.carlini@oracle.com>
427
428         * include/tr1_impl/cinttypes: Remove redundant pragma system_header.
429         * include/tr1_impl/cfenv: Likewise.
430         * include/tr1_impl/cstdint: Likewise.
431
432 2008-11-13  Paolo Carlini  <paolo.carlini@oracle.com>
433
434         PR libstdc++/38000
435         * include/c_global/csignal: Do not use include_next.
436         * include/c_global/cstdlib: Likewise.
437         * include/c_global/cstdio: Likewise.
438         * include/c_global/cstdarg: Likewise.
439         * include/c_global/cctype: Likewise.
440         * include/c_global/cerrno: Likewise.
441         * include/c_global/cmath: Likewise.
442         * include/c_global/clocale: Likewise.
443         * include/c_global/climits: Likewise.
444         * include/c_global/cassert: Likewise.
445         * include/c_global/csetjmp: Likewise.
446         * include/c_global/cwchar: Likewise.
447         * include/c_global/cfloat: Likewise.
448         * include/c_global/cstdbool: Likewise.
449         * include/c_global/cstring: Likewise.
450         * include/c_global/cstddef: Likewise.
451         * include/c_global/cwctype: Likewise.
452         * include/tr1/cstdbool: Likewise.
453         * include/tr1_impl/cinttypes: Do not include <inttypes.h>.
454         * include/c_global/cinttypes: Do it here.
455         * include/tr1/cinttypes: Likewise.
456         * include/tr1_impl/cfenv: Do not include <fenv.h>.
457         * include/c_global/cfenv: Do it here.
458         * include/tr1/cfenv: Likewise.
459         * include/tr1_impl/cstdint: Do not include <stdint.h>.
460         * include/c_global/cstdint: Do it here.
461         * include/tr1/cstdint: Likewise.
462         * include/c_compatibility/fenv.h: Include <tr1_impl/cfenv>.
463         * include/c_compatibility/stdint.h: Include <tr1_impl/cstdint>.
464         * include/c_compatibility/inttypes.h: Include <tr1_impl/cinttypes>.
465
466         * include/c_compatibility/math.h: Minor tweak, add comment.
467
468 2008-11-12  Steve Ellcey  <sje@cup.hp.com>
469
470         * configure.ac: Move call to GCC_CHECK_UNWIND_GETIPINFO.
471         * configure: Regenerate to get new GCC_CHECK_UNWIND_GETIPINFO.
472
473 2008-11-12  Paolo Carlini  <paolo.carlini@oracle.com>
474
475         PR libstdc++/37986 (cont)
476         * include/tr1_impl/random (struct _Adaptor): Use only remove_reference
477         on _Engine.
478         (struct _Adaptor<_Engine*, _Distribution>): Add.
479         * testsuite/tr1/5_numerical_facilities/random/variate_generator/
480         37986.cc: Extend.
481
482 2008-11-11  Paolo Carlini  <paolo.carlini@oracle.com>
483
484         PR libstdc++/37986
485         * include/tr1_impl/random (struct _Adaptor): Use remove_pointer
486         and remove_reference on _Engine.
487         * testsuite/tr1/5_numerical_facilities/random/variate_generator/
488         37986.cc: New.
489
490 2008-11-11  Paolo Carlini  <paolo.carlini@oracle.com>
491
492         * testsuite/ext/ext_pointer/1_neg.cc: Adjust dg-error line numbers.
493
494 2008-11-11  Paolo Carlini  <paolo.carlini@oracle.com>
495
496         * testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc: Fix.
497         * testsuite/23_containers/vector/ext_pointer/modifiers/element.cc:
498         Likewise.
499
500 2008-11-11  Bob Walters  <bob.s.walters@gmail.com>
501
502         * include/bits/forward_list.h: Support non-standard pointer types
503         (_Fwd_list_node_base): Add _Alloc template parameter.
504         (_Fwd_list_node<>): Likewise.
505         (_Fwd_list_iterator<>): Likewise.
506         (_Fwd_list_const_iterator<>): Likewise.
507         (_Fwd_list_node_base::_M_next, _M_transfer_after, _M_reverse_after):
508         Use _Alloc<_Tp>::pointer.
509         (_Fwd_list_iterator<>::_M_node): Use _Node_base::_Pointer.
510         (_Fwd_list_base<>::_M_get_node, _M_create_node, _M_create_node,
511         _M_insert_after, _M_put_node, _M_erase_after): Likewise.
512         (_Fwd_list_const_iterator<>::_M_node): use _Node_base::_Const_pointer.
513         (forward_list<>): Use __static_pointer_cast in place of static_cast,
514         and __const_pointer_cast in place of const_cast.
515         * include/bits/forward_list.tcc
516         (_Fwd_list_node<>::_M_sort_after): Using _Pointer typedefs in place
517         of standard pointers, __static_pointer_cast in place of static_cast.
518         (_Fwd_list_base<>::_Fwd_list_base, _M_insert_after, _M_erase_after):
519         Likewise.
520         (forward_list<>::_M_initialize_dispatch, _M_fill_initialize,
521         splice_after, remove, remove_if, merge): Likewise.
522         * testsuite/23_containers/forward_list/ext_pointer/modifiers/1.cc: New.
523         * testsuite/23_containers/forward_list/ext_pointer/modifiers/2.cc:
524         Likewise.
525         * testsuite/23_containers/forward_list/ext_pointer/modifiers/3.cc:
526         Likewise.
527         * testsuite/23_containers/forward_list/ext_pointer/modifiers/4.cc:
528         Likewise.
529         * testsuite/23_containers/forward_list/ext_pointer/modifiers/5.cc:
530         Likewise.
531         * testsuite/23_containers/forward_list/ext_pointer/operations/1.cc:
532         Likewise.
533         * testsuite/23_containers/forward_list/ext_pointer/operations/2.cc:
534         Likewise.
535         * testsuite/23_containers/forward_list/ext_pointer/operations/3.cc:
536         Likewise.
537         * testsuite/23_containers/forward_list/ext_pointer/operations/4.cc:
538         Likewise.
539         * testsuite/23_containers/forward_list/ext_pointer/operations/5.cc:
540         Likewise.
541         * testsuite/23_containers/forward_list/ext_pointer/operations/6.cc:
542         Likewise.
543         * testsuite/23_containers/forward_list/ext_pointer/operations/7.cc:
544         Likewise.
545         * testsuite/23_containers/forward_list/ext_pointer/requirements/1.cc:
546         Likewise.
547         * testsuite/23_containers/forward_list/ext_pointer/requirements/
548         explicit_instantiation/1.cc: Likewise.
549         * testsuite/23_containers/forward_list/ext_pointer/requirements/
550         explicit_instantiation/3.cc: Likewise.
551         * testsuite/23_containers/forward_list/ext_pointer/1.cc: Likewise.
552
553 2008-11-11  Paolo Carlini  <paolo.carlini@oracle.com>
554
555         * include/ext/extptr_allocator.h: Minor tweaks.
556         * include/ext/pointer.h: Likewise.
557         * include/ext/cast.h: Likewise.
558
559 2008-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
560
561         PR libstdc++/38067
562         * config/locale/gnu/monetary_members.cc (moneypunct<>::
563         _M_initialize_moneypunct(__c_locale, const char*)): Use correct vector
564         delete for __wcs_ps and __wcs_ns.
565
566 2008-11-07  Bob Walters  <bob.s.walters@gmail.com>
567
568         * include/ext/pointer.h: New, add experimental support for non-standard
569         pointer types in containers via the allocator::pointer typedef.
570         (Currently only supported/working with std::vector)
571         * include/ext/cast.h: New, add overload-able pointer casting functions
572         for use in containers supporting non-standard pointer types.
573         * include/ext/extptr_allocator.h: New, add _ExtPtr_allocator.
574         * include/Makefile.am: Update.
575         * include/precompiled/extc++.h: Likewise.
576         * include/Makefile.in: Regenerate.
577         * testsuite/ext/ext_pointer/1.cc: New.
578         * testsuite/ext/ext_pointer/1_neg.cc: Likewise.
579         * testsuite/23_containers/vector/ext_pointer/citerators.cc: New.
580         * testsuite/23_containers/vector/ext_pointer/data_access.cc: Likewise.
581         * testsuite/23_containers/vector/ext_pointer/resize.cc: Likewise.
582         * testsuite/23_containers/vector/ext_pointer/types/1.cc: Likewise.
583         * testsuite/23_containers/vector/ext_pointer/modifiers/element.cc:
584         Likewise.
585         * testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc:
586         Likewise.
587         * testsuite/23_containers/vector/ext_pointer/modifiers/insert.cc:
588         Likewise.
589         * testsuite/23_containers/vector/ext_pointer/explicit_instantiation/
590         1.cc: Likewise.
591         * testsuite/23_containers/vector/ext_pointer/explicit_instantiation/
592         3.cc: Likewise.
593
594 2008-11-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
595
596         PR libstdc++/38017
597         Revert:
598         * include/tr1_impl/functional (result_of,reference_wrapper): Update
599         to use C++0x features.
600         * testsuite/20_util/function_objects/return_types/result_of.cc: New.
601         * testsuite/20_util/function_objects/return_types/result_of_neg.cc:
602         New.
603         * testsuite/20_util/function_objects/return_types/result_of_ref.cc:
604         New.
605         * testsuite/20_util/reference_wrapper/24803.cc: Uncomment FIXMEs.
606
607 2008-11-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
608
609         PR libstdc++/24803
610         PR libstdc++/37351
611         * include/tr1_impl/functional (result_of,reference_wrapper): Update
612         to use C++0x features.
613         * testsuite/20_util/function_objects/return_types/result_of.cc: New.
614         * testsuite/20_util/function_objects/return_types/result_of_neg.cc:
615         New.
616         * testsuite/20_util/function_objects/return_types/result_of_ref.cc:
617         New.
618         * testsuite/20_util/reference_wrapper/24803.cc: Uncomment FIXMEs.
619
620 2008-11-03  Paolo Carlini  <paolo.carlini@oracle.com>
621
622         * include/bits/locale_facets.tcc (num_get<>::do_get(iter_type,
623         iter_type, ios_base&, ios_base::iostate&, bool&): Tidy.
624         * testsuite/22_locale/num_get/get/char/37958.cc: Extend.
625         * testsuite/22_locale/num_get/get/wchar_t/37958.cc: Likewise.
626
627 2008-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
628
629         PR libstdc++/37958 (cont again)
630         * include/bits/locale_facets.tcc (num_get<>::do_get(iter_type,
631         iter_type, ios_base&, ios_base::iostate&, bool&): Fix again.
632         * testsuite/22_locale/num_get/get/char/37958.cc: Extend.
633         * testsuite/22_locale/num_get/get/wchar_t/37958.cc: Likewise.
634
635 2008-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
636
637         * include/bits/locale_facets.tcc (num_get<>::do_get(, long&),
638         num_get<>::do_get(, unsigned short&),
639         num_get<>::do_get(, unsigned int&),
640         num_get<>::do_get(, unsigned long&),
641         num_get<>::do_get(, long long&),
642         num_get<>::do_get(, unsigned long long&),
643         num_put<>::do_put(, long), num_put<>::do_put(, unsigned long),
644         num_put<>::do_put(, long long),
645         num_put<>::do_put(, unsigned long long)): Move inline...
646         * include/bits/locale_facets.h: ... here.
647
648 2008-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
649
650         PR libstdc++/37958 (cont)
651         * include/bits/locale_facets.tcc (num_get<>::do_get(iter_type,
652         iter_type, ios_base&, ios_base::iostate&, bool&): Fix again.
653
654 2008-11-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
655
656         * include/bits/shared_ptr.h: Update comparisons to match WP.
657         (_Sp_counted_ptr): Make copy and assignment members deleted.
658         (_Sp_counted_deleter): Remove private copy and assignment members.
659         (__shared_count::_M_less,__weak_count::_M_less,operator<): Replace
660         friend operator< with overloaded _M_less member functions to allow
661         comparison with either shared_count or weak_count.
662         (__shared_ptr::_M_less,__weak_ptr::_M_less): Replace with...
663         (__shared_ptr::owner_before,__weak_ptr::owner_before): New overloads
664         for ownership-based ordering.
665         (operator<(__shared_ptr,__shared_ptr)): Compare stored pointers,
666         make non-friend.
667         (operator==(__shared_ptr,__shared_ptr)): Make non-friend.
668         (operator!=(__shared_ptr,__shared_ptr)): Likewise.
669         (less<__shared_ptr<>>,less<shared_ptr<>>,_Sp_less): Explicitly call
670         pointer specialization.
671         (__weak_ptr::operator<,weak_ptr::operator<=,weak_ptr::operator>,
672         weak_ptr::operator>=): Remove operator< and delete all comparisons.
673         (_Sp_owner_less,owner_less): Predicate for ownership-based ordering.
674         (operator<(shared_ptr,shared_ptr): Overload for derived shared_ptr.
675         (operator==(shared_ptr,shared_ptr): Likewise.
676         (operator!=(shared_ptr,shared_ptr): Likewise.
677         (swap(shared_ptr,shared_ptr)): Fix parameter types.
678         (swap(weak_ptr,weak_ptr)): Add missing overload.
679         * testsuite/20_util/owner_less/cmp.cc: New.
680         * testsuite/20_util/shared_ptr/comparison/cmp.cc: Test other ops.
681         * testsuite/20_util/shared_ptr/comparison/less.cc: New.
682         * testsuite/20_util/shared_ptr/observers/owner_before.cc: New.
683         * testsuite/20_util/weak_ptr/observers/owner_before.cc: New.
684         * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: New.
685
686 2008-10-31  Paolo Carlini  <paolo.carlini@oracle.com>
687
688         PR libstdc++/37958
689         * include/bits/locale_facets.tcc (num_get<>::do_get(iter_type,
690         iter_type, ios_base&, ios_base::iostate&, bool&): Fix.
691         * testsuite/22_locale/num_get/get/char/37958.cc: New.
692         * testsuite/22_locale/num_get/get/wchar_t/37958.cc: Likewise.
693
694 2008-10-27  Paolo Carlini  <paolo.carlini@oracle.com>
695
696         PR libstdc++/37919
697         Revert:
698         2008-10-18  Douglas Gregor  <doug.gregor@gmail.com>
699
700         * include/bits/stl_pair.h (__may_be_null_pointer_init): New.
701         (pair::pair): Eliminate the redundant pair(U1&&, U2&&) constructor.
702         Add lvalue pair<U1, U2> constructor to handle non-const pair lvalues.
703         Remove the old variadic constructor, and instead provide several
704         variadic constructors that avoid failing when attempting to
705         initialize a pointer from a null pointer constant.
706         * testsuite/20_util/pair/moveable.cc (test3): Add new tests with
707         initialization of pointers from the null pointer constant.
708
709 2008-10-27  Paolo Carlini  <paolo.carlini@oracle.com>
710
711         PR libstdc++/37522
712         * config/os/mingw32/os_defines.h: Define _GLIBCXX_HAVE_BROKEN_VSWPRINTF
713         * include/bits/basic_string.h: Guard string conversions with
714         !defined(_GLIBCXX_HAVE_BROKEN_VSWPRINTF) too.
715         * testsuite/lib/libstdc++.exp (check_v3_target_string_conversions):
716         New.
717         * testsuite/lib/dg-options.exp (dg-require-string-conversions): New.
718         * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
719         Use the latter.
720         * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
721         Likewise.
722         * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
723         Likewise.
724         * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
725         Likewise.
726         * testsuite/21_strings/basic_string/numeric_conversions/char/
727         stoull.cc: Likewise.
728         * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
729         Likewise.
730         * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
731         Likewise.
732         * testsuite/21_strings/basic_string/numeric_conversions/char/
733         to_string.cc: Likewise.
734         * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
735         Likewise.
736
737 2008-10-24  Paolo Carlini  <paolo.carlini@oracle.com>
738
739         * config/os/generic/error_constants.h (enum errc): Remove
740         no_posix_equivalent.
741         * config/os/mingw32/error_constants.h (enum errc): Likewise.
742         * testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc:
743         Adjust.
744
745 2008-10-24  Jakub Jelinek  <jakub@redhat.com>
746
747         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove dejagnu.
748         (RUNTESTDEFAULTFLAGS, EXPECT, check_DEJAGNU_normal_targets): New
749         variables.
750         (%/site.exp, check-DEJAGNU%): New targets.
751         (check-am): Run $(MAKE) check-DEJAGNU.
752         * testsuite/Makefile.in: Regenerated.
753
754 2008-10-23  Chris Fairles  <cfairles@gcc.gnu.org>
755
756         * config/os/generic/error_constants.h (errc): Use long type.
757         * config/os/mingw32/error_constants.h (errc): Likewise.
758
759 2008-10-22  Chris Fairles  <cfairles@gcc.gnu.org>
760
761         * include/std/system_error (is_error_code_enum): Specialize for errc.
762         (error_category::error_category): Defaulted and protected.
763         (error_category::~error_category): New, virtual.
764         (error_category::error_category(const error_category&),
765         error_category::operator=(const error_category&)): Deleted.
766         (get_system_category, get_posix_category): Remove (DR 890).
767         (system_category): External linkage (DR 890).
768         (posix_category): Remove.
769         (generic_category): Add. External linkage (DR 890).
770         (error_code::error_code<>(_ErrorCodeEnum)): Use generic_category.
771         (error_code::clear, error_code::operator=<>(_ErrorCodeEnum)): Forward to
772         error_code::assign, use generic_category.
773         (error_condition::error_condition,
774         error_condition::error_condition<>(_ErrorConditionEnum)): Use
775         generic_category.
776         (error_condition::clear,
777         error_condition::operator=<>(_ErrorConditionEnum)): Forward to
778         error_code::assign, use generic_category.
779         (make_error_code, make_error_condition): Define in namespace std.
780         * include/std/mutex (unique_lock<>::lock, unique_lock<>::try_lock,
781         unique_lock<>::try_lock_until<>(duration),
782         unique_lock<>::try_lock_for<>(duration)): Replace posix_error with errc.
783         * src/system_error.cc (system_error_category, generic_error_category):
784         New.
785         (gnu_error_category): Remove.
786         (get_system_category, get_posix_category): Remove (DR 890).
787         (system_category, generic_category): Define.
788         * src/functexcept.cc (__throw_system_error): Use generic_category.
789         * config/abi/pre/gnu.ver: Export system_category and generic_category,
790         remove get_system_category and get_generic_category (DR 890).
791         * config/os/generic/error_constants.h (posix_errno): Rename to errc, use
792         enum class type. Fix spelling.
793         * config/os/mingw32/error_constants.h (posix_errno): Likewise.
794         * testsuite/19_diagnostics/error_code/cons/1.cc: Use errc and
795         generic_category.
796         * testsuite/19_diagnostics/error_code/operators/bool.cc: Use errc.
797         * testsuite/19_diagnostics/error_code/operators/equal.cc: Likewise.
798         * testsuite/19_diagnostics/error_code/operators/not_equal.cc: Likewise.
799         * testsuite/19_diagnostics/error_category/cons/copy_neg.cc: Update
800         dg-error line numbers.
801         * testsuite/19_diagnostics/error_condition/cons/1.cc: Use
802         generic_category.
803         * testsuite/19_diagnostics/error_condition/operators/bool.cc: Use errc.
804         * testsuite/19_diagnostics/error_condition/operators/equal.cc: Likewise.
805         * testsuite/19_diagnostics/error_condition/operators/not_equal.cc:
806         Likewise.
807         * testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc: New.
808         * testsuite/19_diagnostics/headers/system_error/types_std_c++0x.cc:
809         Remove using tests since errc is not a namespace.
810         * testsuite/19_diagnostics/system_error/cons-1.cc: Use errc.
811         * testsuite/19_diagnostics/system_error/what-4.cc: Likewise.
812         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/error_code.cc:
813         Likewise.
814         * testsuite/27_io/basic_ostream/inserters_other/char/error_code.cc:
815         Likewise.
816         * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
817
818 2008-10-20  Paolo Carlini  <paolo.carlini@oracle.com>
819
820         * include/tr1_impl/hashtable_policy.h (_Hash_node<>::_Hash_node<>
821         (_Args&&...)): Add in C++0x mode.
822         * include/tr1_impl/hashtable (_Hashtable<>::_M_allocate_node,
823         _Hashtable<>::_M_deallocate_node): Use _M_get_Node_allocator in
824         C++0x mode.
825
826         * include/tr1_impl/hashtable (_Hashtable<>::max_size): Use
827         Node_allocator for improved accuracy.
828         * testsuite/tr1/6_containers/unordered_multimap/capacity/
829         29134-multimap.cc: Adjust.
830         * testsuite/tr1/6_containers/unordered_multimap/capacity/
831         29134-map.cc: Likewise.
832         * testsuite/tr1/6_containers/unordered_multimap/capacity/
833         29134-multiset.cc: Adjust.
834         * testsuite/tr1/6_containers/unordered_multimap/capacity/
835         29134-set.cc: Likewise.
836
837 2008-10-19  Paolo Carlini  <paolo.carlini@oracle.com>
838
839         * include/bits/stl_tree.h (_Rb_tree_node<>::_Rb_tree_node<>
840         (_Args&&...)): Add in C++0x mode.
841         (_Rb_tree<>::_M_create_node<>(_Args&&...)): Add in C++0x mode,
842         use _M_get_Node_allocator.
843         (_Rb_tree<>::_M_destroy_node(_Link_type): Use _M_get_Node_allocator
844         in C++0x mode.
845         * testsuite/23_containers/set/operators/1_neg.cc: Adjust dg-error
846         line numbers.
847         * testsuite/23_containers/map/operators/1_neg.cc: Likewise.
848
849 2008-10-18  Douglas Gregor  <doug.gregor@gmail.com>
850
851         * include/bits/stl_pair.h (__may_be_null_pointer_init): New.
852         (pair::pair): Eliminate the redundant pair(U1&&, U2&&) constructor.
853         Add lvalue pair<U1, U2> constructor to handle non-const pair lvalues.
854         Remove the old variadic constructor, and instead provide several
855         variadic constructors that avoid failing when attempting to
856         initialize a pointer from a null pointer constant.
857         * testsuite/20_util/pair/moveable.cc (test3): Add new tests with
858         initialization of pointers from the null pointer constant.
859
860 2008-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
861
862         * include/bits/forward_list.tcc (forward_list<>::
863         _M_initialize_dispatch(_InputIterator, _InputIterator, __false_type)):
864         Simplify.
865
866 2008-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
867
868         * include/bits/forward_list.h (forward_list<>::
869         forward_list(size_type)): Tweak, use _Base default constructor.
870
871 2008-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
872
873         * include/bits/forward_list.h (forward_list<>::insert_after): Minor
874         cosmetic changes.
875
876 2008-10-16  Edward Smith-Rowland  <3dw4rd@verizon.net>
877
878         * include/bits/forward_list.h: Factor list construction to dispatch
879         routines.
880         * include/bits/forward_list.tcc: Likewise.
881         * testsuite/23_containers/forward_list/modifiers/2.cc:
882
883 2008-10-16  Paolo Carlini  <paolo.carlini@oracle.com>
884
885         * include/bits/forward_list.tcc (operator==): Use auto.
886
887 2008-10-16  Paolo Carlini  <paolo.carlini@oracle.com>
888
889         * include/bits/forward_list.h (_Fwd_list_base<>::_M_insert_after):
890         Move out of line, tweak to return _Fwd_list_node_base*.
891         (forward_list<>::insert_after(const_iterator, const _Tp&),
892         forward_list<>::insert_after(const_iterator, _Tp&&)): Use it.
893         * include/bits/forward_list.tcc (_Fwd_list_base<>::_M_insert_after):
894         Define.
895
896         * include/bits/forward_list.h (forward_list<>): Consistently qualify
897         calls of base class functions with this->.
898         * include/bits/forward_list.tcc (forward_list<>): Likewise.
899
900         * include/bits/forward_list.h: Move some functions out of line...
901         * include/bits/forward_list.tcc: ... here.
902
903         * include/bits/forward_list.h (forward_list<>::resize(size_type)): Fix.
904
905 2008-10-15  Paolo Carlini  <paolo.carlini@oracle.com>
906
907         * include/bits/forward_list.h: Remove pointless const qualifiers in
908         const_casts.
909         * include/bits/forward_list.tcc: Likewise.
910
911         * include/bits/forward_list.h (forward_list<>::pointer,
912         const_pointer, reference, const_reference): Fix, use _Tp_alloc_type.
913         * testsuite/23_containers/forward_list/requirements/
914         explicit_instantiation/1.cc: New.
915         * testsuite/23_containers/forward_list/requirements/
916         explicit_instantiation/1.cc: Likewise.
917
918 2008-10-15  Paolo Carlini  <paolo.carlini@oracle.com>
919
920         * include/bits/forward_list.h (forward_list<>::max_size): Use
921         Node_allocator; minor cosmetic changes.
922         * testsuite/23_containers/forward_list/capacity/1.cc: Adjust.
923
924 2008-10-15  Edward Smith-Rowland  <3dw4rd@verizon.net>
925
926         * include/std/forward_list: New.
927         * include/bits/forward_list.h: Likewise.
928         * include/bits/forward_list.tcc: Likewise.
929         * include/precompiled/stdc++.h: Modified to include forward_list.
930         * include/Makefile.am: Add forward_list, forward_list.h, and
931         forward_list.tcc.
932         * include/Makefile.in: Regenerate.
933         * testsuite/23_containers/forward_list/modifiers/1.cc: New.
934         * testsuite/23_containers/forward_list/modifiers/2.cc: Likewise.
935         * testsuite/23_containers/forward_list/modifiers/3.cc: Likewise.
936         * testsuite/23_containers/forward_list/modifiers/4.cc: Likewise.
937         * testsuite/23_containers/forward_list/modifiers/5.cc: Likewise.
938         * testsuite/23_containers/forward_list/cons/1.cc: Likewise.
939         * testsuite/23_containers/forward_list/cons/2.cc: Likewise.
940         * testsuite/23_containers/forward_list/cons/3.cc: Likewise.
941         * testsuite/23_containers/forward_list/cons/4.cc: Likewise.
942         * testsuite/23_containers/forward_list/cons/5.cc: Likewise.
943         * testsuite/23_containers/forward_list/cons/6.cc: Likewise.
944         * testsuite/23_containers/forward_list/cons/7.cc: Likewise.
945         * testsuite/23_containers/forward_list/cons/8.cc: Likewise.
946         * testsuite/23_containers/forward_list/cons/9.cc: Likewise.
947         * testsuite/23_containers/forward_list/requirements/1.cc: Likewise.
948         * testsuite/23_containers/forward_list/operations/1.cc: Likewise.
949         * testsuite/23_containers/forward_list/operations/2.cc: Likewise.
950         * testsuite/23_containers/forward_list/operations/3.cc: Likewise.
951         * testsuite/23_containers/forward_list/operations/4.cc: Likewise.
952         * testsuite/23_containers/forward_list/operations/5.cc: Likewise.
953         * testsuite/23_containers/forward_list/operations/6.cc: Likewise.
954         * testsuite/23_containers/forward_list/operations/7.cc: Likewise.
955         * testsuite/23_containers/forward_list/capacity/1.cc: Likewise.
956         * testsuite/23_containers/forward_list/comparable.cc: Likewise.
957         * testsuite/23_containers/forward_list/moveable.cc: Likewise.
958         * testsuite/23_containers/headers/forward_list/synopsis.cc: Likewise.
959         * testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: Update.
960         * testsuite/17_intro/headers/c++200x/all: Likewise.
961
962 2008-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
963
964         * include/bits/stl_list.h (_List_node<>::_List_node<>(_Args&&...)):
965         Add in C++0x mode.
966         (list<>::_M_create_node<>(_Args&&...)): Use _M_get_Node_allocator.
967         (list<>::_M_erase(iterator): Likewise, in C++0x mode.
968         * include/bits/list.tcc (_List_base<>::_M_clear): Likewise.
969         * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
970         Adjust dg-error line number.
971         * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
972         Likewise.
973         * testsuite/23_containers/list/requirements/dr438/
974         constructor_1_neg.cc: Likewise.
975         * testsuite/23_containers/list/requirements/dr438/
976         constructor_2_neg.cc: Likewise.
977
978 2008-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
979
980         * include/bits/stl_tree.h (_Rb_tree<>::max_size): Use Node_allocator
981         for improved accuracy.
982         * include/bits/stl_list.h (list<>::max_size): Likewise.
983         * testsuite/23_containers/multimap/capacity/29134.cc: Adjust.
984         * testsuite/23_containers/set/capacity/29134.cc: Likewise.
985         * testsuite/23_containers/multiset/capacity/29134.cc: Likewise.
986         * testsuite/23_containers/list/capacity/29134.cc: Likewise.
987         * testsuite/23_containers/map/capacity/29134.cc: Likewise.
988
989 2008-10-10  Paolo Carlini  <paolo.carlini@oracle.com>
990
991         * testsuite/20_util/reference_wrapper/24803.cc: Avoid uninitialized
992         warnings.
993
994 2008-10-10  Paolo Carlini  <paolo.carlini@oracle.com>
995
996         * include/std/system_error (native_category): Remove.
997         (posix_category): Add.
998         (error_code::error_code(_ErrorCodeEnum, typename enable_if<>:type*):
999         Fix _M_cat initialization.
1000         (error_code::operator=(_ErrorCodeEnum)): Assign _M_cat too.
1001         (error_condition::_M_cat, error_condtion::operator=
1002         (_ErrorConditionEnum)): Implement resolution of DR 804.
1003         (error_condition::error_condition(_ErrorConditionEnum, typename
1004         enable_if<>:type*): Fix.
1005         (error_condition::clear, error_condition::assign): Implement.
1006         (operator==, operator!=): Fix uglification of parameters.
1007         (make_error_code, make_error_condition): Define in namespace
1008         posix_error.
1009         (operator<<(basic_ostream<>&, const error_code&)): Define here.
1010         * include/std/ostream (operator<<(basic_ostream<>&,
1011         const error_code&)): Do not define here.
1012         * testsuite/19_diagnostics/error_condition/cons/1.cc: New.
1013         * testsuite/19_diagnostics/error_condition/operators/bool.cc: Likewise.
1014         * testsuite/19_diagnostics/error_condition/operators/bool_neg.cc:
1015         Likewise.
1016         * testsuite/19_diagnostics/error_condition/operators/equal.cc:
1017         Likewise.
1018         * testsuite/19_diagnostics/error_condition/operators/not_equal.cc:
1019         Likewise.
1020         * testsuite/19_diagnostics/error_code/cons/1.cc: Tweak.
1021         * testsuite/19_diagnostics/error_category/cons/copy_neg.cc: Adjust
1022         dg-error line numbers.
1023         * testsuite/30_threads/unique_lock/locking/2.cc: Tweak.
1024
1025         * testsuite/util/testsuite_error.h: Minor tweaks.
1026         * testsuite/util/testsuite_hooks.cc: Avoid uninitialized warning.
1027
1028 2008-10-10  Chris Fairles  <cfairles@gcc.gnu.org>
1029
1030         * testsuite/20_util/duration/cons/1.cc: Remove invalid check of
1031         uninitialized duration.
1032
1033 2008-10-08  Bob Walters  <bob.s.walters@gmail.com>
1034
1035         * include/bits/stl_vector.h (_Vector_base<>::_Vector_impl::_M_start,
1036         _M_finish, _M_end_of_storage, _Vector_base<>::_M_allocate,
1037         _M_deallocate): Use _Tp_alloc_type::pointer.
1038
1039 2008-10-07  Jason Merrill  <jason@redhat.com>
1040
1041         PR libstdc++/37761
1042         * testsuite/abi/demangle/abi_examples/20.cc: Adjust expected spacing.
1043         * testsuite/abi/demangle/abi_text/02.cc: Likewise.
1044         * testsuite/abi/demangle/regression/cw-16.cc: Likewise.
1045
1046 2008-10-07  Paolo Carlini  <paolo.carlini@oracle.com>
1047
1048         * include/bits/stl_iterator.h (operator-(const reverse_iterator<>&,
1049         const reverse_iterator<>&), operator-(const __normal_iterator<>&,
1050         const __normal_iterator<>&), operator-(const move_iterator<>&,
1051         const move_iterator<>&)): Use the auto -> return type syntax,
1052         implement DR 685.
1053
1054 2008-10-06  Jason Merrill  <jason@redhat.com>
1055
1056         * config/abi/pre/gnu.ver: Update char16/32_t manglings.
1057
1058 2008-10-05  Paolo Carlini  <paolo.carlini@oracle.com>
1059
1060         * testsuite/20_util/reference_wrapper/invoke.cc: New.
1061         * testsuite/20_util/reference_wrapper/24803.cc: Likewise.
1062         * testsuite/20_util/reference_wrapper/typedefs.cc: Likewise.
1063
1064 2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1065
1066         * config/locale/generic/c_locale.cc (__convert_to_v): Fix
1067         !__FLT_HAS_INFINITY__ case.
1068
1069 2008-09-30  Chris Fairles  <cfairles@gcc.gnu.org>
1070
1071         * include/std/tuple (tuple<>::swap): Implement swap for tuple as per
1072         DR 522 [Ready].
1073         * testsuite/20_util/tuple/swap.cc: New.
1074
1075 2008-09-30  Paolo Carlini  <paolo.carlini@oracle.com>
1076
1077         PR libstdc++/30085 (again)
1078         * include/debug/unordered_map (unordered_map<>, unordered_multimap<>):
1079         Do not derive from _Safe_association, derive from _GLIBCXX_STD_D::
1080         unordered_map / unordered_multimap; add missing member functions.
1081         * include/debug/unordered_set (unordered_set<>, unordered_multiset<>):
1082         Likewise for _GLIBCXX_STD_D::unordered_set / unordered_multiset.
1083         * include/debug/safe_association.h: Remove.
1084         * include/Makefile.am: Adjust.
1085         * include/Makefile.in: Regenerate.
1086         * testsuite/23_containers/unordered_multimap/init-list.cc: Remove
1087         xfail.
1088
1089 2008-09-28  Paolo Carlini  <paolo.carlini@oracle.com>
1090
1091         * include/bits/unique_ptr.h (unique_ptr<_Tp[]>::template<typename U>
1092         void reset(U)): Add as deleted function, per DR 821 [Ready].
1093         * include/bits/unique_ptr.h: Prefer everywhere deleted to private
1094         member function declarations; minor formatting tweaks.
1095         * testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: New.
1096         * testsuite/20_util/unique_ptr/assign/assign.cc: Adjust DejaGNU
1097         directives.
1098
1099 2008-09-28  Chris Fairles  <cfairles@gcc.gnu.org>
1100
1101         * include/std/mutex (try_lock): Implement generic try_lock.
1102         * testsuite/30_threads/try_lock/1.cc: New.
1103         * testsuite/30_threads/try_lock/2.cc: Likewise.
1104         * testsuite/30_threads/try_lock/3.cc: Likewise.
1105         * testsuite/30_threads/mutex/cons/assign_neg.cc: Adjust line numbers.
1106         * testsuite/30_threads/mutex/cons/copy_neg.cc: Likewise.
1107         * testsuite/30_threads/timed_mutex/cons/assign_neg.cc: Likewise.
1108         * testsuite/30_threads/timed_mutex/cons/copy_neg.cc: Likewise.
1109         * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Likewise.
1110         * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Likewise.
1111         * testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc:
1112         Likewise.
1113         * testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc: Likewise.
1114
1115 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1116             Steve Ellcey  <sje@cup.hp.com>
1117
1118         * configure: Regenerate for new libtool.
1119         * aclocal.m4: Ditto.
1120         * Makefile.in: Ditto.
1121         * src/Makefile.in: Ditto.
1122         * doc/Makefile.in: Ditto.
1123         * po/Makefile.in: Ditto.
1124         * libmath/Makefile.in: Ditto.
1125         * include/Makefile.in: Ditto.
1126         * libsupc++/Makefile.in: Ditto.
1127         * testsuite/Makefile.in: Ditto.
1128
1129 2008-09-24  Paolo Carlini  <paolo.carlini@oracle.com>
1130
1131         * include/std/bitset: Adjust comment to reflect DR 853.
1132         * include/debug/bitset: Likewise.
1133         * doc/xml/manual/intro.xml: Add an entry for DR 853.
1134
1135 2008-09-23  Paolo Carlini  <paolo.carlini@oracle.com>
1136
1137         Implement DR 396 [Ready].
1138         * include/std/bitset (bitset<>::bitset(const std::basic_string<>&,
1139         size_t, size_t, _CharT, _CharT), bitset<>::bitset(const char*,
1140         char, char), bitset<>::to_string(_CharT, _CharT),
1141         bitset<>::_M_copy_from_string(const std::basic_string<>&, size_t,
1142         size_t, _CharT, _CharT), bitset<>::_M_copy_to_string
1143         (std::basic_string<>&, _CharT, _CharT), bitset<>::_M_copy_from_ptr(
1144         const _CharT*, size_t, size_t, size_t, _CharT, _CharT)): Add.
1145         (operator>>(std::basic_istream<>&, bitset<_Nb>&), operator<<(
1146         std::basic_ostream<>&, const bitset<_Nb>&)): Adjust.
1147         * include/debug/bitset (bitset<>::bitset(const std::basic_string<>&,
1148         size_t, size_t, _CharT, _CharT), bitset<>::bitset(const char*,
1149         char, char), bitset<>::to_string(_CharT, _CharT)): Add.
1150         * doc/xml/manual/intro.xml: Add an entry for DR 396.
1151         * testsuite/23_containers/bitset/cons/dr396.cc: Add.
1152         * testsuite/23_containers/bitset/to_string/dr396.cc: Likewise.
1153
1154 2008-09-23  Chris Fairles  <cfairles@gcc.gnu.org>
1155
1156         * testsuite/25_algorithms/min/37547.cc: Return void to avoid warnings.
1157         * testsuite/25_algorithms/max/37547.cc: Likewise.
1158         * testsuite/25_algorithms/minmax/37547.cc: Likewise.
1159
1160 2008-09-23  Chris Fairles  <cfairles@gcc.gnu.org>
1161
1162         * include/std/chrono: If _GLIBCXX_USE_MONOTONIC_CLOCK is defined, don't
1163         typedef monotonic_clock to system_clock and instead declare new class.
1164         * src/chrono.cc: Conditionally define monotonic_clock::now().
1165         * include/std/condition_variable (wait_until): Throw exception if
1166         __gthread_cond_timedwait returns with error other than timed_out. Use
1167         system_clock as known clock type (__clock_t) and add overloads for known
1168         and unknown clocks. In the unknown case, sync to the known clock.
1169         Implement overload taking a predicate.
1170         (wait_for): Implement overload taking a predicate.
1171         * config/abi/pre/gnu.ver: Add exports for monotonic_clock.
1172         * testsuite/30_threads/condition_variable_any/cons/assign_neg.cc: Modify
1173         line numbers.
1174         * testsuite/30_threads/condition_variable_any/cons/copy_neg.cc:
1175         Likewise.
1176         * testsuite/30_threads/condition_variable/cons/assign_neg.cc: Likewise.
1177         * testsuite/30_threads/condition_variable/cons/copy_neg.cc: Likewise.
1178         * testsuite/30_threads/condition_variable/member/1.cc: New.
1179         * testsuite/30_threads/condition_variable/member/2.cc: Likewise.
1180
1181 2008-09-23  Paolo Carlini  <paolo.carlini@oracle.com>
1182
1183         PR libstdc++/37624
1184         * testsuite/22_locale/num_get/get/char/10.cc: Skip long double case
1185         when strtold is not available.
1186         * testsuite/22_locale/num_get/get/wchar_t/10.cc: Likewise.
1187
1188 2008-09-23  Benjamin Kosnik  <bkoz@redhat.com>
1189
1190         PR libstdc++/37391 continued.
1191         * doc/html/ext/pb_ds/assoc_examples.html: Don't use base tag,
1192         specify full path for source file links.
1193         * doc/html/ext/pb_ds/pq_examples.html: Same.
1194
1195 2008-09-23  Paolo Carlini  <paolo.carlini@oracle.com>
1196
1197         * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't use const
1198         by value parameters.
1199         * include/bits/locale_facets.h (__pad<>::_S_pad): Likewise.
1200
1201 2008-09-22  Paolo Carlini  <paolo.carlini@oracle.com>
1202
1203         PR libstdc++/32422, DR 23 [Ready in R60]
1204         * config/locale/gnu/c_locale.cc (__convert_to_v(const char*, float&,
1205         ios_base::iostate&, const __c_locale&), __convert_to_v(const char*,
1206         double&, ios_base::iostate&, const __c_locale&), __convert_to_v(const
1207         char*, long double&, ios_base::iostate&, const __c_locale&)): Implement
1208         DR 23 and deal correctly with broken exponents.
1209         * config/locale/generic/c_locale.cc (__convert_to_v(const char*,
1210         float&, ios_base::iostate&, const __c_locale&), __convert_to_v(const
1211         char*, double&, ios_base::iostate&, const __c_locale&),
1212         __convert_to_v(const char*, long double&, ios_base::iostate&, const
1213         __c_locale&)): Likewise.
1214         * include/bits/locale_facets.tcc (num_get<>::_M_extract_int(_InIter,
1215         _InIter, ios_base&, ios_base::iostate&, _ValueT&)): Likewise.
1216         (num_get<>::_M_extract_float(_InIter, _InIter, ios_base&,
1217         ios_base::iostate&, string&): Change grouping check to set instead of
1218         OR failbit; do not check for eofbit here...
1219         (num_get<>::do_get(iter_type, iter_type, ios_base&,
1220         ios_base::iostate&, float&), num_get<>::do_get(iter_type, iter_type,
1221         ios_base&, ios_base::iostate&, double&), num_get<>::do_get(iter_type,
1222         iter_type, ios_base&, ios_base::iostate&, long double&),
1223         num_get<>::__do_get(iter_type, iter_type, ios_base&,
1224         ios_base::iostate&, double&)): ... do it here instead.
1225         (num_get<>::do_get(iter_type, iter_type, ios_base&,
1226         ios_base::iostate&, bool&)): Implement DR 23.
1227         (num_get<>::do_get(iter_type, iter_type, ios_base&,
1228         ios_base::iostate&, void*&)): Adjust.
1229         * doc/xml/manual/intro.xml: Add and entry for DR 23.
1230         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/10.cc:
1231         Adjust.
1232         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1233         Likewise.
1234         * testsuite/22_locale/num_get/get/wchar_t/22131.cc: Likewise.
1235         * testsuite/22_locale/num_get/get/wchar_t/10.cc: Likewise.
1236         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
1237         * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
1238         * testsuite/22_locale/num_get/get/wchar_t/16.cc: Likewise.
1239         * testsuite/22_locale/num_get/get/char/22131.cc: Likewise.
1240         * testsuite/22_locale/num_get/get/char/10.cc: Likewise.
1241         * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
1242         * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
1243         * testsuite/22_locale/num_get/get/char/16.cc: Likewise.
1244
1245 2008-09-22  Benjamin Kosnik  <bkoz@redhat.com>
1246
1247         PR libstdc++/37391
1248         * doc/html/ext/pb_ds/*.html: Fix external links.
1249
1250 2008-09-22  Benjamin Kosnik  <bkoz@redhat.com>
1251
1252         * doc/doxygen/user.cfg.in: Define _GLIBCXX_HAS_GTHREADS for mutex,
1253         condition_variable, and thread output.
1254
1255 2008-09-22  Paolo Carlini  <paolo.carlini@oracle.com>
1256
1257         * doc/html/ext/lwg-closed.html: Update to Revision R59.
1258         * doc/html/ext/lwg-active.html: Likewise.
1259         * doc/html/ext/lwg-defects.html: Likewise.
1260         * doc/xml/manual/intro.xml: Adjust.
1261
1262 2008-09-21  Paolo Carlini  <paolo.carlini@oracle.com>
1263
1264         * include/bits/stl_algo.h (minmax(initializer_list<>): Use make_pair,
1265         consistently with the other overload for initializer_list.
1266
1267 2008-09-19  Johannes Singler  <singler@ira.uka.de>
1268
1269         PR libstdc++/37470
1270         * include/parallel/base.h: Rename log2 to __log2.
1271           (__log2) Avoid infinite loop for n <= 0, return 0.
1272         * include/parallel/losertree.h: Rename log2 to __log2.
1273         * include/parallel/multiseq_selection.h: Likewise.
1274         * include/parallel/random_shuffle.h: Likewise.
1275
1276 2008-09-18  Paolo Carlini  <paolo.carlini@oracle.com>
1277
1278         * include/bits/shared_ptr.h (__shared_count<>::
1279         __shared_count(_Ptr, _Deleter), __shared_count<>::
1280         __shared_count(_Ptr, _Deleter, _Alloc), __shared_count<>::
1281         __shared_count(_Sp_make_shared_tag, _Tp*, _Alloc, _Args&&...)):
1282         Qualify new with ::.
1283
1284 2008-09-17  Paolo Carlini  <paolo.carlini@oracle.com>
1285
1286         PR libstdc++/37547
1287         * include/bits/stl_algo.h (min(initializer_list<>),
1288         min(initializer_list<>, Compare), max(initializer_list<>),
1289         max(initializer_list<>, Compare), minmax(initializer_list<>),
1290         minmax(initializer_list<>, Compare)): Fix return type.
1291         * include/bits/algorithmfwd.h: Adjust.
1292         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
1293         * testsuite/25_algorithms/max/requirements/explicit_instantiation/3.cc:
1294         Likewise.
1295         * testsuite/25_algorithms/max/requirements/explicit_instantiation/
1296         pod2.cc: Likewise.
1297         * testsuite/25_algorithms/min/requirements/explicit_instantiation/3.cc:
1298         Likewise.
1299         * testsuite/25_algorithms/min/requirements/explicit_instantiation/
1300         pod2.cc: Likewise.
1301         * testsuite/25_algorithms/minmax/requirements/explicit_instantiation/
1302         3.cc: Likewise.
1303         * testsuite/25_algorithms/minmax/requirements/explicit_instantiation/
1304         pod2.cc: Likewise.
1305         * testsuite/25_algorithms/max/37547.cc: New.
1306         * testsuite/25_algorithms/min/37547.cc: Likewise.
1307         * testsuite/25_algorithms/minmax/37547.cc: Likewise.
1308
1309 2008-09-16  Chris Fairles  <chris.fairles@gmail.com>
1310
1311         * testsuite/25_algorithms/min/requirements/explicit_instantiation/3.cc:
1312         New.
1313         * testsuite/25_algorithms/min/requirements/explicit_instantiation/
1314         pod2.cc: Likewise.
1315         * testsuite/25_algorithms/min/3.cc: Likewise.
1316         * testsuite/25_algorithms/min/4.cc: Likewise.
1317         * testsuite/25_algorithms/max/requirements/explicit_instantiation/3.cc:
1318         Likewise.
1319         * testsuite/25_algorithms/max/requirements/explicit_instantiation/
1320         pod2.cc: Likewise.
1321         * testsuite/25_algorithms/max/3.cc: Likewise.
1322         * testsuite/25_algorithms/max/4.cc: Likewise.
1323         * testsuite/25_algorithms/minmax/requirements/explicit_instantiation/
1324         3.cc: Likewise.
1325         * testsuite/25_algorithms/minmax/requirements/explicit_instantiation/
1326         pod2.cc: Likewise.
1327         * testsuite/25_algorithms/minmax/2.cc: Likewise.
1328         * testsuite/25_algorithms/minmax/3.cc: Likewise.
1329
1330 2008-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
1331
1332         * include/bits/stl_algo.h (min(initializer_list<>),
1333         min(initializer_list<>, Compare), max(initializer_list<>),
1334         max(initializer_list<>, Compare), minmax(initializer_list<>),
1335         minmax(initializer_list<>, Compare)): Add in C++0x mode.
1336         * include/bits/algorithmfwd.h: Add.
1337         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
1338
1339 2008-09-13  Chris Fairles  <chris.fairles@gmail.com>
1340
1341         * testsuite/30_threads/thread/algorithm/1.cc: Join thread before
1342         program exits.
1343         * testsuite/30_threads/thread/algorithm/2.cc: Likewise.
1344         * testsuite/30_threads/thread/this_thread/3.cc: Define test variable.
1345         * testsuite/30_threads/thread/this_thread/4.cc: Likewise.
1346
1347 2008-09-12  Chris Fairles  <chris.fairles@gmail.com>
1348             Benjamin Kosnik  <bkoz@redhat.com>
1349
1350         * include/std/thread: New.
1351         * include/Makefile.am: Update.
1352         * include/Makefile.in: Regenerate.
1353         * src/thread.cc: New.
1354         * src/Makefile.am: Update.
1355         * src/Makefile.in: Regenerate.
1356         * acinclude.m4: Add check for nanosleep.
1357         * configure.ac: Call it.
1358         * configure: Regenerate.
1359         * config.h.in: Likewise.
1360         * config/abi/pre/gnu.ver: Add exports.
1361         * doc/doxygen/user.cfg.in: Add thread header.
1362         * testsuite/lib/libstdc++.exp (check_v3_target_nanosleep): Add.
1363         * testsuite/lib/dg-options.exp (dg-require-nanosleep): Add.
1364         * testsuite/30_threads/thread/cons/1.cc: New.
1365         * testsuite/30_threads/thread/cons/2.cc: Likewise.
1366         * testsuite/30_threads/thread/cons/3.cc: Likewise.
1367         * testsuite/30_threads/thread/cons/4.cc: Likewise.
1368         * testsuite/30_threads/thread/algorithm/1.cc: Likewise.
1369         * testsuite/30_threads/thread/algorithm/2.cc: Likewise.
1370         * testsuite/30_threads/thread/member/1.cc: Likewise.
1371         * testsuite/30_threads/thread/member/2.cc: Likewise.
1372         * testsuite/30_threads/thread/member/3.cc: Likewise.
1373         * testsuite/30_threads/thread/this_thread/1.cc: Likewise.
1374         * testsuite/30_threads/thread/this_thread/2.cc: Likewise.
1375         * testsuite/30_threads/thread/this_thread/3.cc: Likewise.
1376         * testsuite/30_threads/thread/this_thread/4.cc: Likewise.
1377         * testsuite/30_threads/headers/thread/types_std_c++0x.cc: Likewise.
1378         * testsuite/30_threads/headers/thread/std_c++0x_neg.cc: Likewise.
1379         * testsuite/17_intro/headers/c++200x/all.cc: Add thread.
1380         * testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc:
1381         Add thread, condition_variable and mutex.
1382
1383 2008-09-10  Paolo Carlini  <paolo.carlini@oracle.com>
1384
1385         * src/ctype.cc (use_facet<ctype<char> >, use_facet<ctype<wchar_t>):
1386         Remove specializations.
1387         * src/locale-inst.cc (use_facet<ctype<C> >): Instantiate.
1388         * include/bits/locale_facets.tcc (use_facet<ctype<char> >,
1389         use_facet<ctype<wchar_t>): Declare as extern template.
1390         * include/bits/locale_facets.h (use_facet<ctype<char> >,
1391         use_facet<ctype<wchar_t>): Do not declare as specializations.
1392
1393 2008-09-10  Paolo Carlini  <paolo.carlini@oracle.com>
1394
1395         * config/locale/darwin/ctype_members.cc (ctype<char>::_M_narrow_init,
1396         ctype<char>::_M_widen_init): Don't define here.
1397         * config/locale/gnu/ctype_members.cc: Likewise.
1398         * config/locale/generic/ctype_members.cc: Likewise.
1399         * src/ctype.cc: Define here.
1400
1401 2008-09-10  Paolo Carlini  <paolo.carlini@oracle.com>
1402
1403         PR libstdc++/37455
1404         * include/bits/locale_facets.h (ctype<char>::_M_narrow_init,
1405         ctype<char>::_M_widen_init): Don't define inline.
1406         * config/locale/darwin/ctype_members.cc: ... define here.
1407         * config/locale/gnu/ctype_members.cc: ... likewise.
1408         * config/locale/generic/ctype_members.cc: ... likewise.
1409         * config/abi/pre/gnu.ver: Export.
1410
1411 2008-09-09  Benjamin Kosnik  <bkoz@redhat.com>
1412
1413         * doc/xml/manual/abi.xml: Update for new releases.
1414         * doc/doxygen/user.cfg.in: Include C compatibility headers.
1415         * doc/html/*: Regenerate.
1416
1417 2008-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
1418
1419         * include/tr1_impl/cinttypes: Restore __STDC_FORMAT_MACROS after
1420         inclusion of <inttypes.h>.
1421         * include/tr1_impl/cstdint: Likewise for __STDC_LIMIT_MACROS and
1422         __STDC_CONSTANT_MACROS after <stdint.h>.
1423         * include/bits/postypes.h: Likewise.
1424
1425 2008-09-09  Andreas Schwab  <schwab@suse.de>
1426
1427         * acinclude.m4 (GLIBCXX_CHECK_STANDARD_LAYOUT): Fix compile check
1428         not to redefine main.
1429
1430 2008-09-07  Paolo Carlini  <paolo.carlini@oracle.com>
1431
1432         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Check wcstoimax and
1433         wcstoumax, define _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
1434         * include/tr1_impl/cinttypes: Use the latter.
1435         * testsuite/tr1/8_c_compatibility/cinttypes/functions.cc: Likewise.
1436         * configure: Regenerate.
1437         * config.h.in: Likewise.
1438
1439 2008-09-05  Peter Dimov  <pdimov@mmltd.net>
1440
1441         * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_2.cc: New.
1442
1443 2008-09-05  Paolo Carlini  <paolo.carlini@oracle.com>
1444
1445         * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref.cc: Rename
1446         to...
1447         * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_1.cc: ...
1448         this.
1449
1450 2008-09-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
1451
1452         PR libstdc++/36962
1453         * include/Makefile.am: Update headers.
1454         * include/Makefile.in: Regenerate.
1455         * include/std/memory: Update headers.
1456         * include/tr1/memory: Likewise.
1457         * include/tr1_impl/boost_shared_ptr.h: Remove, splitting into
1458         separate implementations for std and tr1.
1459         * include/bits/boost_sp_shared_count.h: Remove.
1460         * include/tr1/boost_sp_shared_count.h: Remove.
1461         * include/bits/shared_ptr.h: New. Combines boost_sp_shared_count.h
1462         and boost_shared_ptr.h into one file.
1463         (__shared_count,__shared_ptr,shared_ptr,swap): Add unique_ptr
1464         and rvalue-reference support as per current WP.
1465         * include/tr1/shared_ptr.h: New. Combines boost_sp_shared_count.h
1466         and boost_shared_ptr.h into one file.
1467         * testsuite/20_util/shared_ptr/cons/unique_ptr.cc: New.
1468         * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: New.
1469         * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref.cc: New.
1470         * testsuite/20_util/shared_ptr/cons/unique_ptr_neg.cc: New.
1471         * testsuite/20_util/shared_ptr/assign/auto_ptr_rvalue.cc: New.
1472         * testsuite/20_util/shared_ptr/assign/unique_ptr_lvalue_neg.cc: New.
1473         * testsuite/20_util/shared_ptr/assign/unique_ptr_rvalue.cc: New.
1474         * testsuite/20_util/shared_ptr/modifiers/swap_rvalue.cc: New.
1475         * testsuite/20_util/shared_ptr/assign/auto_ptr_rvalue_neg.cc: Remove.
1476
1477 2008-09-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
1478
1479         * doc/xml/manual/locale.xml: Fix typo.
1480
1481 2008-09-04  Paolo Carlini  <paolo.carlini@oracle.com>
1482
1483         * acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Tidy checks in case of
1484         POSIX threads.
1485         * configure: Regenerate.
1486
1487 2008-09-04  Chris Fairles  <chris.fairles@gmail.com>
1488
1489         * include/std/mutex (once_flag): Construct __gthread_once_t in a
1490         temporary variable before assigning to _M_once to avoid initialization
1491         errors.
1492
1493 2008-09-03  Paolo Carlini  <paolo.carlini@oracle.com>
1494
1495         * config/abi/pre/gnu.ver: Also export __once_functor_lock; tighten
1496         GLIBCXX_3.4 exports (necessary in case of undef _GLIBCXX_HAVE_TLS).
1497
1498         * Makefile.in: Regenerate.
1499         * src/Makefile.in: Likewise.
1500         * doc/Makefile.in: Likewise.
1501         * po/Makefile.in: Likewise.
1502         * libmath/Makefile.in: Likewise.
1503         * include/Makefile.in: Likewise.
1504         * libsupc++/Makefile.in: Likewise.
1505         * testsuite/Makefile.in: Likewise.
1506
1507 2008-09-03  Paolo Carlini  <paolo.carlini@oracle.com>
1508
1509         * acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Fix typo in last commit,
1510         check _POSIX_TIMEOUTS, not _POSIX_TIMERS.
1511         * configure: Regenerate.
1512
1513 2008-09-03  Paolo Carlini  <paolo.carlini@oracle.com>
1514
1515         * acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Check _POSIX_TIMERS too.
1516         * configure: Regenerate.
1517
1518 2008-09-03  Chris Fairles  <chris.fairles@gmail.com>
1519
1520         * include/std/condition_variable: Use new deleted ctors.
1521         * include/std/mutex: Likewise plus implement timed_mutex,
1522         recursive_timed_mutex and call_once.
1523         * src/condition_variable.cc: Implement wait(). Use gthread types.
1524         Remove _GTHREADS_HAS_COND checks in favor of global
1525         _GLIBCXX_HAS_GTHREADS.
1526         * src/mutex.cc (call_once): Implementation using TLS with mutex
1527         fallback.
1528         * config/abi/pre/gnu.ver: Add exported symbols.
1529         * testsuite/lib/libstdc++.exp (check_v3_target_gthreads): New.
1530         * testsuite/lib/dg-options.exp (dg-require-gthreads): Likewise.
1531         * testsuite/30_threads/lock_guard/requirements/typedefs.cc: Use
1532         dg-require-gthreads and dg-require-cstdint.
1533         * testsuite/30_threads/lock_guard/requirements/
1534         explicit_instantiation.cc: Likewise.
1535         * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise.
1536         * testsuite/30_threads/mutex/native_handle/1.cc: Likewise.
1537         * testsuite/30_threads/mutex/cons/1.cc: Likewise.
1538         * testsuite/30_threads/mutex/requirements/typedefs.cc: Likewise.
1539         * testsuite/30_threads/mutex/try_lock/1.cc: Likewise.
1540         * testsuite/30_threads/mutex/try_lock/2.cc: Likewise.
1541         * testsuite/30_threads/mutex/lock/1.cc: Likewise.
1542         * testsuite/30_threads/mutex/unlock/1.cc: Likewise.
1543         * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc:
1544         Likewise.
1545         * testsuite/30_threads/recursive_mutex/native_handle/1.cc: Likewise.
1546         * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise.
1547         * testsuite/30_threads/recursive_mutex/requirements/typedefs.cc:
1548         Likewise.
1549         * testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise.
1550         * testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise.
1551         * testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise.
1552         * testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise.
1553         * testsuite/30_threads/unique_lock/requirements/
1554         explicit_instantiation.cc: Likewise.
1555         * testsuite/30_threads/unique_lock/requirements/typedefs.cc: Likewise.
1556         * testsuite/30_threads/mutex/cons/assign_neg.cc: Also adjust dg-error
1557         lines for deleted members.
1558         * testsuite/30_threads/mutex/cons/copy_neg.cc: Likewise.
1559         * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Likewise.
1560         * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Likewise.
1561         * testsuite/30_threads/call_once/once_flag.cc: New.
1562         * testsuite/30_threads/call_once/call_once1.cc: Likewise.
1563         * testsuite/30_threads/condition_variable/cons/1.cc: Likewise.
1564         * testsuite/30_threads/condition_variable/cons/copy_neg.cc: Likewise
1565         * testsuite/30_threads/condition_variable/cons/assign_neg.cc: Likewise.
1566         * testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise.
1567         * testsuite/30_threads/condition_variable_any/cons/copy_neg.cc:
1568         Likewise.
1569         * testsuite/30_threads/condition_variable_any/cons/assign_neg.cc:
1570         Likewise.
1571         * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc: Likewise.
1572         * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise.
1573         * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise.
1574         * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise.
1575         * testsuite/30_threads/timed_mutex/cons/assign_neg.cc: Likewise.
1576         * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise.
1577         * testsuite/30_threads/timed_mutex/cons/copy_neg.cc: Likewise.
1578         * testsuite/30_threads/timed_mutex/requirements/typedefs.cc: Likewise.
1579         * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise.
1580         * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise.
1581         * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise.
1582         * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise.
1583         * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise.
1584         * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise.
1585         * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise.
1586         * testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc:
1587         Likewise.
1588         * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc:
1589         Likewise.
1590         * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc:
1591         Likewise.
1592         * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc:
1593         Likewise.
1594         * testsuite/30_threads/recursive_timed_mutex/cons: Likewise.
1595         * testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc:
1596         Likewise.
1597         * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise.
1598         * testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc:
1599         Likewise.
1600         * testsuite/30_threads/recursive_timed_mutex/requirements/typedefs.cc:
1601         Likewise.
1602         * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise.
1603         * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise.
1604         * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise.
1605         * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise.
1606         * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise.
1607         * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc:
1608         Likewise.
1609         * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc:
1610         Likewise.
1611         * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc:
1612         Likewise.
1613         * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
1614         * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
1615         * testsuite/30_threads/unique_lock/cons/1.cc: Likewise.
1616         * testsuite/30_threads/unique_lock/cons/2.cc: Likewise.
1617         * testsuite/30_threads/unique_lock/cons/3.cc: Likewise.
1618         * testsuite/30_threads/unique_lock/cons/4.cc: Likewise.
1619         * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
1620         * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
1621         * testsuite/30_threads/unique_lock/locking/1.cc: Likewise.
1622         * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
1623         * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
1624         * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
1625
1626 2008-09-01  Mark Mitchell  <mark@codesourcery.com>
1627
1628         * include/std/type_traits (__make_unsigned_selector<>): Consider
1629         enums of size smaller than short.
1630         (__make_signed_selector<>): Likewise.
1631         * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
1632         Adjust line numbers.
1633         * testsuite/20_util/make_usigned/requirements/typedefs_neg.cc:
1634         Adjust line numbers.
1635         * testsuite/20_util/make_signed/requirements/typedefs-2.cc:
1636         Ensure test_enum is the same size as short.
1637         * testsuite/20_util/make_unsigned/requirements/typedefs-2.cc:
1638         Ensure test_enum is the same size as short.
1639
1640 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1641
1642         * acinclude.m4 <enable_symvers>: Don't use symvers on Windows.
1643         * configure: Regenerated.
1644         * Makefile.in: Regenerated.
1645         * src/Makefile.in: Regenerated.
1646         * doc/Makefile.in: Regenerated.
1647         * po/Makefile.in: Regenerated.
1648         * libmath/Makefile.in: Regenerated.
1649         * include/Makefile.in: Regenerated.
1650         * libsupc++/Makefile.in: Regenerated.
1651         * testsuite/Makefile.in: Regenerated.
1652
1653 2008-08-29  Mark Mitchell  <mark@codesourcery.com>
1654
1655         * testsuite/25_algorithms/nth_element/2.cc: Constrain iterations
1656         when testing on a simultor.
1657
1658 2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
1659
1660         * testsuite/tr1/6_containers/unordered_set/requirements/typedef.cc:
1661         Rename to .../typedefs.cc.
1662         * testsuite/tr1/6_containers/unordered_map/requirements/typedef.cc:
1663         Likewise.
1664         * testsuite/tr1/6_containers/unordered_multiset/requirements/
1665         typedef.cc: Likewise.
1666         * testsuite/tr1/6_containers/unordered_multimap/requirements/
1667         typedef.cc: Likewise.
1668         * testsuite/23_containers/unordered_set/requirements/typedef.cc:
1669         Likewise.
1670         * testsuite/23_containers/unordered_map/requirements/typedef.cc:
1671         Likewise.
1672         * testsuite/23_containers/unordered_multiset/requirements/typedef.cc:
1673         Likewise.
1674         * testsuite/23_containers/unordered_multimap/requirements/typedef.cc:
1675         Likewise.
1676
1677 2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
1678
1679         * acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): New. Checks for gthread
1680         support used by c++0x thread library.
1681         * configure.ac: Test unconditionally.
1682         * configure: Regenerate.
1683         * config.h.in: Regenerate.
1684
1685 2008-08-27  Benjamin Kosnik  <bkoz@redhat.com>
1686
1687         * doc/Makefile.am: Edit xml file list.
1688         * doc/Makefile.in: Regenerate.
1689         * configure: Regenerate.
1690         * doc/xml/manual/intro.xml: Edit, correct links, structure.
1691         * doc/xml/manual/configure.xml: Same.
1692         * doc/xml/manual/debug.xml: Same.
1693         * doc/xml/manual/test.xml: Same.
1694         * doc/xml/manual/build.xml: Remove.
1695         * doc/xml/manual/prerequisites.xml: Add.
1696         * doc/html/*: Regenerate.
1697
1698 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
1699
1700         * include/tr1_impl/hashtable (_Hashtable<>): Add missing pointer and
1701         const_pointer typedefs.
1702         * testsuite/tr1/6_containers/unordered_set/requirements/typedef.cc:
1703         Add.
1704         * testsuite/tr1/6_containers/unordered_map/requirements/typedef.cc:
1705         Likewise.
1706         * testsuite/tr1/6_containers/unordered_multiset/requirements/
1707         typedef.cc: Likewise.
1708         * testsuite/tr1/6_containers/unordered_multimap/requirements/
1709         typedef.cc: Likewise.
1710         * testsuite/23_containers/unordered_set/requirements/typedef.cc:
1711         Likewise.
1712         * testsuite/23_containers/unordered_map/requirements/typedef.cc:
1713         Likewise.
1714         * testsuite/23_containers/unordered_multiset/requirements/typedef.cc:
1715         Likewise.
1716         * testsuite/23_containers/unordered_multimap/requirements/typedef.cc:
1717         Likewise.
1718
1719 2008-08-27  Paul Brook  <paul@codesourcery.com>
1720
1721         * libsupc++/eh_call.cc (__cxa_call_unexpected): Fix name of
1722         __get_object_from_ambiguous_exception.
1723
1724 2008-08-26  Ben Elliston  <bje@au.ibm.com>
1725
1726         * src/mt_allocator.cc (__pool): Fix error in comment.
1727
1728 2008-08-25  Paolo Carlini  <paolo.carlini@oracle.com>
1729
1730         * linkage.m4 ([GLIBCXX_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1],
1731         [GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT]): Remove
1732         * configure.ac: Do not call the latter.
1733         * crossconfig.m4: Likewise.
1734         * libmath/mathconf.h: Adjust.
1735         * configure: Regenerate.
1736         * config.h.in: Likewise.
1737
1738 2008-08-24  Paolo Carlini  <paolo.carlini@oracle.com>
1739
1740         * acinclude.m4 ([GLIBCXX_CHECK_RANDOM_TR1]): Simplify, just use
1741         two test -r instead of an AC_TRY_RUN.
1742         * configure: Regenerate.
1743         * config.h.in: Likewise.
1744
1745 2008-08-24  Paolo Carlini  <paolo.carlini@oracle.com>
1746
1747         * acinclude.m4 ([GLIBCXX_ENABLE_CLOCK_GETTIME]): Improve documentation.
1748         * doc/xml/manual/configure.xml: Likewise.
1749
1750 2008-08-23  Paolo Carlini  <paolo.carlini@oracle.com>
1751
1752         * acinclude.m4 ([GLIBCXX_ENABLE_CLOCK_GETTIME]): Use [=KIND] in
1753         GLIBCXX_ENABLE.
1754         * configure: Regenerate.
1755
1756 2008-08-23  Paolo Carlini  <paolo.carlini@oracle.com>
1757
1758         * acinclude.m4 ([GLIBCXX_CHECK_GETTIMEOFDAY]): Change to use
1759         GCC_TRY_COMPILE_OR_LINK.
1760         ([GLIBCXX_CHECK_CLOCK_GETTIME]): Rename to
1761         [GLIBCXX_ENABLE_CLOCK_GETTIME], a versatile configure-time option,
1762         [no] by default, since it includes TRY_LINK checks.  librt is also
1763         searched, if requested.
1764         * doc/xml/manual/configure.xml: Document the latter.
1765         * configure.ac: Move the above checks outside native-only.
1766         * configure: Regenerate.
1767
1768 2008-08-23  Paolo Carlini  <paolo.carlini@oracle.com>
1769
1770         * testsuite/lib/libstdc++.exp (check_v3_target_atomic_builtins): Add.
1771         * testsuite/lib/dg-options.exp (dg-require-atomic-builtins): Likewise.
1772         * testsuite/18_support/exception_ptr/current_exception.cc: Use it.
1773         * testsuite/18_support/exception_ptr/rethrow_exception.cc: Likewise.
1774         * testsuite/18_support/exception_ptr/lifespan.cc: Likewise.
1775
1776 2008-08-23  Sebastian Redl <sebastian.redl@getdesigned.at>
1777
1778         Add (again) exception propagation support as per N2179.  Feature is
1779         available only when _GLIBCXX_ATOMIC_BUILTINS_4 is defined.
1780         * libsupc++/exception_ptr.h (exception_ptr, current_exception,
1781         copy_exception, rethrow_exception): New file, implement exception
1782         propagation.
1783         * libsupc++/eh_ptr.cc (exception_ptr, current_exception,
1784         rethrow_exception, __gxx_dependent_exception_cleanup): Likewise.
1785         * libsupc++/unwind-cxx.h (__cxa_exception): Add reference count.
1786         (__cxa_dependent_exception, __cxa_allocate_dependent_exception,
1787         __cxa_free_dependent_exception, __get_dependent_exception_from_ue,
1788         __GXX_INIT_DEPENDENT_EXCEPTION_CLASS, __is_dependent_exception,
1789         __gxx_dependent_exception_class, __get_object_from_ue,
1790         __get_object_from_ambiguous_exception): Add.
1791         (__GXX_INIT_EXCEPTION_CLASS, __gxx_exception_class): Rename.
1792         (__is_gxx_exception_class): Handle dependent exceptions.
1793         * libsupc++/eh_arm.cc (__cxa_type_match): Likewise.
1794         * libsupc++/eh_call.cc (__cxa_call_unexpected): Likewise.
1795         * libsupc++/eh_personality.cc (__gxx_personality_*): Likewise.
1796         * libsupc++/eh_type.cc (__cxa_current_exception_type): Likewise.
1797         * libsupc++/eh_alloc.cc (__cxa_allocate_dependent_exception,
1798         __cxa_free_dependent_exception): Add.
1799         * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Handle reference
1800         counting.
1801         * libsupc++/exception: Conditionally include exception_ptr.h.
1802         * libsupc++/Makefile.am: Register new files.
1803         * libsupc++/Makefile.in: Regenerate.
1804         * config/abi/pre/gnu.ver: Add new symbols.
1805         * testsuite/18_support/exception_ptr/current_exception.cc: Test the
1806         core functionality of current_exception().
1807         * testsuite/18_support/exception_ptr/rethrow_exception.cc: Test the
1808         core functionality of rethrow_exception().
1809         * testsuite/18_support/exception_ptr/lifespan.cc: Test the life span of
1810         exception objects during exception propagation.
1811
1812 2008-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
1813
1814         Revert again the N2179 patch.
1815
1816 2008-08-21  Sebastian Redl <sebastian.redl@getdesigned.at>
1817
1818         * libsupc++/eh_ptr.cc (__gxx_dependent_exception_cleanup): Call
1819         __cxa_free_dependent_exception.
1820
1821 2008-08-20  Paolo Carlini  <paolo.carlini@oracle.com>
1822
1823         * include/bits/char_traits.h (char_traits<char16_t>::
1824         assign(char_type*, size_t, char_type), char_traits<char32_t>::
1825         assign(char_type*, size_t, char_type)): For now, just open-code.
1826
1827 2008-08-20  Paolo Carlini  <paolo.carlini@oracle.com>
1828
1829         PR c++/33979 (partial)
1830         * include/bits/postypes.h (u16streampos, u32streampos): Add.
1831         * include/bits/char_traits.h (char_traits<char16_t>,
1832         char_traits<char32_t>): Add.
1833         * include/bits/stringfwd.h (u16string, u32string): Add.
1834         * include/ext/vstring_fwd.h: Add typedefs for char16_t/char32_t.
1835         * testsuite/21_strings/char_traits/requirements/char32_t/typedefs.cc:
1836         New.
1837         * testsuite/21_strings/char_traits/requirements/
1838         explicit_instantiation/short/1.cc: Likewise.
1839         * testsuite/21_strings/char_traits/requirements/
1840         explicit_instantiation/char32_t/1.cc: Likewise.
1841         * testsuite/21_strings/char_traits/requirements/
1842         explicit_instantiation/wchar_t/1.cc: Likewise.
1843         * testsuite/21_strings/char_traits/requirements/
1844         explicit_instantiation/char16_t/1.cc: Likewise.
1845         * testsuite/21_strings/char_traits/requirements/
1846         explicit_instantiation/char/1.cc: Likewise.
1847         * testsuite/21_strings/char_traits/requirements/char16_t/typedefs.cc:
1848         Likewise.
1849         * testsuite/21_strings/basic_string/requirements/
1850         explicit_instantiation/char32_t/1.cc: Likewise.
1851         * testsuite/21_strings/basic_string/requirements/
1852         explicit_instantiation/wchar_t/1.cc: Likewise.
1853         * testsuite/21_strings/basic_string/requirements/
1854         explicit_instantiation/char16_t/1.cc: Likewise.
1855         * testsuite/21_strings/basic_string/requirements/
1856         explicit_instantiation/char/1.cc: Likewise.
1857         * testsuite/21_strings/headers/string/types_std_c++0x.cc: Likewise.
1858         * testsuite/ext/vstring/requirements/explicit_instantiation/
1859         char32_t/1.cc: Likewise.
1860         * testsuite/ext/vstring/requirements/explicit_instantiation/
1861         char16_t/1.cc: Likewise.
1862
1863 2008-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
1864
1865         PR libstdc++/37149
1866         * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Include
1867         <cstdio>.
1868         * testsuite/27_io/basic_ostream/inserters_other/char/error_code.cc:
1869         Likewise.
1870         * testsuite/27_io/objects/char/12048-1.cc: Likewise.
1871         * testsuite/27_io/objects/char/12048-3.cc: Likewise.
1872         * testsuite/27_io/objects/wchar_t/12048-1.cc: Likewise.
1873         * testsuite/27_io/objects/wchar_t/12048-3.cc: Likewise.
1874         * testsuite/ext/malloc_allocator/deallocate_global.cc: Likewise.
1875         * testsuite/ext/malloc_allocator/deallocate_local.cc: Likewise.
1876         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Likewise.
1877         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
1878         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
1879         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
1880         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
1881         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
1882         * testsuite/ext/mt_allocator/deallocate_local-6.cc: Likewise.
1883         * testsuite/ext/mt_allocator/deallocate_local-8.cc: Likewise.
1884         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
1885         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
1886         * testsuite/ext/mt_allocator/deallocate_local_thread-5.cc: Likewise.
1887         * testsuite/ext/mt_allocator/deallocate_local_thread-7.cc: Likewise.
1888         * testsuite/ext/new_allocator/deallocate_global.cc: Likewise.
1889         * testsuite/ext/new_allocator/deallocate_local.cc: Likewise.
1890         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Likewise.
1891         * include/std/regex: Include <sstream>.
1892         * include/tr1/regex: Likewise.
1893
1894 2008-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
1895
1896         * configure.ac: Do not hardcode HAVE_S_ISREG and HAVE_S_IFREG for
1897         newlib.
1898         * configure: Regenerate.
1899
1900 2008-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
1901
1902         PR libstdc++/37147
1903         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Tighten checks on stdint.h,
1904         check the macros too.
1905         * configure: Regenerate.
1906
1907 2008-08-17  Paolo Carlini  <paolo.carlini@oracle.com>
1908
1909         * acinclude.m4 ([AC_LC_MESSAGES]): Use AC_TRY_COMPILE instead of
1910         AC_TRY_LINK.
1911         * configure.ac: Run unconditionally AC_LC_MESSAGES.
1912         * crossconfig.m4: Adjust.
1913         * configure: Regenerate.
1914
1915 2008-08-17  Paolo Carlini  <paolo.carlini@oracle.com>
1916
1917         * acinclude.m4 ([GLIBCXX_CHECK_LFS], [GLIBCXX_CHECK_POLL],
1918         [GLIBCXX_CHECK_S_ISREG_OR_S_IFREG], [GLIBCXX_CHECK_WRITEV]):
1919         Use GCC_TRY_COMPILE_OR_LINK instead of AC_TRY_LINK, in C++,
1920         with -fno-exceptions as flags.
1921         * configure.ac: Run unconditionally GLIBCXX_CHECK_LFS,
1922         GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_S_ISREG_OR_S_IFREG,
1923         GLIBCXX_CHECK_WRITEV and commonized AC_CHECK_HEADERS.
1924         * crossconfig.m4: Adjust; remove AC_CHECK_HEADERS commonized
1925         in configure.ac.
1926         * configure: Regenerate.
1927
1928 2008-08-13  Paolo Carlini  <paolo.carlini@oracle.com>
1929
1930         Re-instate last patch, amended to use __exchange_and_add_dispatch
1931         and __atomic_add_dispatch in eh_ptr.cc and eh_throw.cc.
1932
1933 2008-08-13  Paolo Carlini  <paolo.carlini@oracle.com>
1934
1935         Revert the last patch.
1936
1937 2008-08-13  Sebastian Redl <sebastian.redl@getdesigned.at>
1938
1939         Add exception propagation support as per N2179.
1940         * libsupc++/exception_ptr.h (exception_ptr, current_exception,
1941         copy_exception, rethrow_exception): New file, implement exception
1942         propagation.
1943         * libsupc++/eh_ptr.cc (exception_ptr, current_exception,
1944         rethrow_exception, __gxx_dependent_exception_cleanup): Likewise.
1945         * libsupc++/unwind-cxx.h (__cxa_exception): Add reference count.
1946         (__cxa_dependent_exception, __cxa_allocate_dependent_exception,
1947         __cxa_free_dependent_exception, __get_dependent_exception_from_ue,
1948         __GXX_INIT_DEPENDENT_EXCEPTION_CLASS, __is_dependent_exception,
1949         __gxx_dependent_exception_class, __get_object_from_ue,
1950         __get_object_from_ambiguous_exception): Add.
1951         (__GXX_INIT_EXCEPTION_CLASS, __gxx_exception_class): Rename.
1952         (__is_gxx_exception_class): Handle dependent exceptions.
1953         * libsupc++/eh_arm.cc (__cxa_type_match): Likewise.
1954         * libsupc++/eh_call.cc (__cxa_call_unexpected): Likewise.
1955         * libsupc++/eh_personality.cc (__gxx_personality_*): Likewise.
1956         * libsupc++/eh_type.cc (__cxa_current_exception_type): Likewise.
1957         * libsupc++/eh_alloc.cc (__cxa_allocate_dependent_exception,
1958         __cxa_free_dependent_exception): Add.
1959         * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Handle reference
1960         counting.
1961         * libsupc++/exception: Conditionally include exception_ptr.h.
1962         * libsupc++/Makefile.am: Register new files.
1963         * libsupc++/Makefile.in: Regenerate.
1964         * config/abi/pre/gnu.ver: Add new symbols.
1965         * testsuite/18_support/exception_ptr/current_exception.cc: Test the
1966         core functionality of current_exception().
1967         * testsuite/18_support/exception_ptr/rethrow_exception.cc: Test the
1968         core functionality of rethrow_exception().
1969         * testsuite/18_support/exception_ptr/lifespan.cc: Test the life span of
1970         exception objects during exception propagation.
1971
1972 2008-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
1973
1974         PR libstdc++/37100
1975         * include/bits/stl_pair.h: Fix documentation URL in comment.
1976
1977 2008-08-12  Johannes Singler  <singler@ira.uka.de>
1978
1979         * include/paralle/losertree.h
1980         (LoserTreePointerBase<>::~LoserTreePointerBase):
1981         Replace delete by appropriate delete[].
1982
1983 2008-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
1984
1985         * configure.ac: Run unconditionally GLIBCXX_CHECK_INT64_T and
1986         GLIBCXX_CHECK_C99_TR1; remove sigsetjmp and mmap checks (unused).
1987         * crossconfig.m4: Adjust; remove HAVE_GETPAGESIZE defines (unused).
1988         * configure: Regenerate.
1989         * config.h.in: Likewise.
1990
1991         * acinclude.m4: Minor formatting fixes.
1992
1993 2008-08-11  Stephen M. Webb  <stephenw@xandros.com>
1994
1995         * include/tr1_impl/regex: Formatting fixes.
1996         * testsuite/tr1/7_regular_expressions/regex_traits/char/value.cc:
1997           New test.
1998         * testsuite/tr1/7_regular_expressions/regex_traits/wchar_t/value.cc:
1999           New test.
2000
2001 2008-08-11  Paolo Carlini  <paolo.carlini@oracle.com>
2002
2003         * config/locale/generic/c_locale.cc: Include <cstdio>.
2004
2005 2008-08-11  Paolo Carlini  <paolo.carlini@oracle.com>
2006
2007         * configure.ac: Run GLIBCXX_CHECK_STDIO_MACROS unconditionally.
2008         * configure: Regenerate.
2009
2010 2008-08-10  Paolo Carlini  <paolo.carlini@oracle.com>
2011
2012         * include/tr1_impl/type_traits (_DEFINE_SPEC*): Simplify.
2013         (_DEFINE_SPEC_BODY): Remove.
2014         (__is_void_helper, __is_integral_helper, __is_floating_point_helper,
2015         __is_member_object_pointer_helper, __is_member_function_pointer_helper,
2016         __remove_pointer_helper): Add.
2017         (is_void, is_integral, is_floating_point, is_member_object_pointer,
2018         is_member_function_pointer, remove_pointer): Use the latter.
2019         * include/tr1/type_traits (_DEFINE_SPEC): Simplify.
2020         (_DEFINE_SPEC_HELPER): Remove.
2021         (__is_signed_helper, __is_unsigned_helper): Add.
2022         (is_signed, is_unsigned): Use the latter.
2023
2024 2008-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
2025
2026         Revert fix for libstdc++/35637, thanks to other/36901.
2027         * include/tr1_impl/type_traits (__is_function_helper): New, uses
2028         variadic templates.
2029         (is_function): Forward to the latter.
2030         (__in_array): Remove.
2031
2032 2008-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
2033
2034         * config/locale/darwin/ctype_members.cc: Include <cstdio>.
2035
2036 2008-08-08  Paolo Carlini  <paolo.carlini@oracle.com>
2037
2038         * include/bits/ios_base.h: Undef _IOS_BASE_SEEK_CUR and
2039         _IOS_BASE_SEEK_END at the end of the file.
2040         * include/bits/char_traits.h: Likewise for _CHAR_TRAITS_EOF.
2041
2042 2008-08-07  Stephen M. Webb  <stephenw@xandros.com>
2043
2044         * include/tr1_impl/regex (match_results<>::cbegin, cend): Add, per
2045         N2691 WD.
2046
2047 2008-08-06  Paolo Carlini  <paolo.carlini@oracle.com>
2048
2049         * acinclude.m4 ([GLIBCXX_CHECK_STDIO_MACROS]): New, checks for
2050         common values of EOF, SEEK_CUR, SEEK_END.
2051         * configure.ac: Use it.
2052         * include/bits/ios_base.h: Likewise.
2053         * include/bits/char_traits.h: Likewise.
2054         * config/locale/gnu/ctype_members.cc: Include <cstdio>.
2055         * config/locale/generic/ctype_members.cc: Likewise.
2056         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust dg-error lines.
2057         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
2058         * configure: Regenerate.
2059         * config.h.in: Likewise.
2060
2061 2008-08-06  Paolo Carlini  <paolo.carlini@oracle.com>
2062
2063         * acinclude.m4 ([GLIBCXX_CHECK_INT64_T]): Also check whether int64_t
2064         is actually a typedef to long or long long.
2065         * include/bits/postypes.h: If int64_t is actually a typedef for
2066         long or long long don't include <stdint.h> unnecessarily.
2067         * configure: Regenerate.
2068         * config.h.in: Likewise.
2069
2070 2008-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
2071
2072         * testsuite/util/testsuite_api.h (diamond_derivation<>::test):
2073         Expect ambiguity together with the standard exception classes.
2074         * testsuite/27_io/ios_base/failure/cons_virtual_derivation.cc: Remove
2075         xfail.
2076         * testsuite/19_diagnostics/logic_error/cons_virtual_derivation.cc:
2077         Likewise.
2078         * testsuite/19_diagnostics/runtime_error/cons_virtual_derivation.cc:
2079         Likewise.
2080         * testsuite/19_diagnostics/system_error/cons_virtual_derivation.cc:
2081         Likewise.
2082         * testsuite/18_support/bad_alloc/cons_virtual_derivation.cc: Likewise.
2083         * testsuite/18_support/bad_cast/cons_virtual_derivation.cc: Likewise.
2084         * testsuite/18_support/bad_exception/cons_virtual_derivation.cc:
2085         Likewise.
2086         * testsuite/18_support/bad_typeid/cons_virtual_derivation.cc:
2087         Likewise.
2088         * testsuite/ext/concurrence_lock_error/cons_virtual_derivation.cc:
2089         Likewise.
2090         * testsuite/ext/forced_exception_error/cons_virtual_derivation.cc:
2091         Likewise.
2092         * testsuite/ext/concurrence_unlock_error/cons_virtual_derivation.cc:
2093         Likewise.
2094         * testsuite/20_util/bad_function_call/cons_virtual_derivation.cc:
2095         Likewise.
2096
2097 2008-08-04  Paolo Carlini  <paolo.carlini@oracle.com>
2098
2099         * include/bits/postypes.h: Reinstate inclusion of <stdint.h>;
2100         also define the __STDC_* macros.
2101         (streamoff): Adjust.
2102
2103         * include/tr1_impl/cstdint: Check that the __STDC_* macros are
2104         not defined before defining.
2105
2106 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
2107             Chris Fairles  <chris.fairles@gmail.com>
2108
2109         * acinclude.m4 ([GLIBCXX_CHECK_CLOCK_GETTIME]): Reinstate clock_gettime
2110         search, but only in libposix4, never link librt.
2111         * src/Makefile.am: Reinstate previous change to add GLIBCXX_LIBS.
2112         * configure: Regenerate.
2113         * configure.in: Likewise.
2114         * Makefile.in: Likewise.
2115         * src/Makefile.in: Likewise.
2116         * libsup++/Makefile.in: Likewise.
2117         * po/Makefile.in: Likewise.
2118         * doc/Makefile.in: Likewise.
2119
2120 2008-07-31  Chris Fairles <chris.fairles@gmail.com>
2121
2122         * include/std/chrono (duration): Use explicitly defaulted ctor, cctor,
2123         dtor and assignment. Add diagnostics as per 20.8.3 paragraphs 2, 3
2124         and 4 in WD. Other minor tweaks.
2125         * testsuite/20_util/duration/cons/1_neg.cc: Adjust line numbers.
2126         * testsuite/20_util/duration/requirements/typedefs_neg1.cc: New.
2127         * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
2128         * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
2129
2130 2008-07-31  Paolo Carlini  <paolo.carlini@oracle.com>
2131
2132         * testsuite/lib/libstdc++.exp (libstdc++_init): Set v3-libgomp.
2133         (check_v3_target_parallel_mode): Robustify, just follow the
2134         structure of testsuite/Makefile.am.
2135
2136 2008-07-29  Paolo Carlini  <paolo.carlini@oracle.com>
2137
2138         * include/debug/set.h: Minor formatting fixes.
2139         * include/debug/multiset.h: Likewise.
2140         * include/debug/safe_association.h: Likewise.
2141         * include/debug/vector: Likewise.
2142         * include/debug/map.h: Likewise.
2143         * include/debug/string: Likewise.
2144         * include/debug/multimap.h: Likewise.
2145         * include/bits/stl_list.h: Likewise.
2146         * include/bits/stl_map.h: Likewise.
2147         * include/bits/stl_set.h: Likewise.
2148         * include/bits/stl_multimap.h: Likewise.
2149         * include/bits/stl_vector.h: Likewise.
2150         * include/bits/stl_multiset.h: Likewise.
2151         * include/bits/stl_bvector.h: Likewise.
2152
2153 2008-07-29  Paolo Carlini  <paolo.carlini@oracle.com>
2154
2155         * include/std/utility: Include <initializer_list>, per the current WP.
2156
2157         * testsuite/lib/libstdc++.exp (check_v3_target_cstdint): Tweak,
2158         don't use -std=gnu++0x unnecessarily.
2159         * testsuite/18_support/numeric_limits/char16_32_t.cc: Use
2160         dg-require-cstdint.
2161         * testsuite/18_support/headers/cstdint/types_std_c++0x.cc: Likewise.
2162         * testsuite/tr1/8_c_compatibility/cstdint/types_std_tr1.cc: Likewise.
2163
2164 2008-07-28  Paolo Carlini  <paolo.carlini@oracle.com>
2165
2166         PR libstdc++/36949
2167         * include/tr1_impl/boost_shared_ptr.h
2168         (__shared_ptr(_Sp_make_shared_tag, _Alloc, _Args&&...): Call
2169         __enable_shared_from_this_helper.
2170         * testsuite/20_util/shared_ptr/creation/36949.cc: New.
2171
2172 2008-07-24  Paolo Carlini  <paolo.carlini@oracle.com>
2173
2174         PR libstdc++/36924
2175         Revert:
2176         2008-07-23  Chris Fairles <chris.fairles@gmail.com>
2177
2178         * acinclude.m4 ([GLIBCXX_CHECK_CLOCK_GETTIME]): Define GLIBCXX_LIBS.
2179         Holds the lib that defines clock_gettime (-lrt or -lposix4).
2180         * src/Makefile.am: Use it.
2181         * configure: Regenerate.
2182         * configure.in: Likewise.
2183         * Makefile.in: Likewise.
2184         * src/Makefile.in: Likewise.
2185         * libsup++/Makefile.in: Likewise.
2186         * po/Makefile.in: Likewise.
2187         * doc/Makefile.in: Likewise.
2188
2189 2008-07-23  Chris Fairles <chris.fairles@gmail.com>
2190
2191         * include/std/condition_variable: Update to N2691 WD.
2192         * include/std/mutex: Likewise.
2193         * testsuite/30_threads/mutex/cons/assign_neg.cc: Adjust line numbers.
2194         * testsuite/30_threads/mutex/cons/copy_neg.cc: Likewise.
2195         * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Likewise.
2196         * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Likewise.
2197
2198 2008-07-23  Chris Fairles <chris.fairles@gmail.com>
2199
2200         * acinclude.m4 ([GLIBCXX_CHECK_CLOCK_GETTIME]): Define GLIBCXX_LIBS.
2201         Holds the lib that defines clock_gettime (-lrt or -lposix4).
2202         * src/Makefile.am: Use it.
2203         * configure: Regenerate.
2204         * configure.in: Likewise.
2205         * Makefile.in: Likewise.
2206         * src/Makefile.in: Likewise.
2207         * libsup++/Makefile.in: Likewise.
2208         * po/Makefile.in: Likewise.
2209         * doc/Makefile.in: Likewise.
2210
2211 2008-07-22  Paolo Carlini  <paolo.carlini@oracle.com>
2212
2213         * include/ext/sso_string_base.h
2214         (__sso_string_base<>::__sso_string_base(std::initializer_list<_CharT>,
2215         const _Alloc&)): Remove.
2216         * include/ext/rc_string_base.h
2217         (__rc_string_base<>::__rc_string_base(std::initializer_list<_CharT>,
2218         const _Alloc&)): Likewise.
2219         * include/ext/vstring.h
2220         (__versa_string<>::__versa_string(std::initializer_list<_CharT>,
2221         const _Alloc&)): Adjust.
2222
2223 2008-07-21  Jason Merrill  <jason@redhat.com>
2224
2225         Add initializer_list support as per N2679.
2226         * include/debug/unordered_map: Add initializer_list support.
2227         * include/debug/safe_association.h: Likewise.
2228         * include/debug/unordered_set: Likewise.
2229         * include/debug/vector: Likewise.
2230         * include/debug/deque: Likewise.
2231         * include/debug/map.h: Likewise.
2232         * include/debug/set.h: Likewise.
2233         * include/debug/string: Likewise.
2234         * include/debug/list: Likewise.
2235         * include/debug/multimap.h: Likewise.
2236         * include/tr1_impl/unordered_map: Likewise.
2237         * include/tr1_impl/hashtable: Likewise.
2238         * include/tr1_impl/unordered_set: Likewise.
2239         * include/tr1_impl/regex: Likewise.
2240         * include/std/valarray: Likewise.
2241         * include/std/unordered_map: Likewise.
2242         * include/std/unordered_set: Likewise.
2243         * include/bits/stl_list.h: Likewise.
2244         * include/bits/stl_map.h: Likewise.
2245         * include/bits/stl_set.h: Likewise.
2246         * include/bits/basic_string.h: Likewise.
2247         * include/bits/basic_string.tcc: Likewise.
2248         * include/bits/stl_multimap.h: Likewise.
2249         * include/bits/stl_vector.h: Likewise.
2250         * include/bits/stl_deque.h: Likewise.
2251         * include/bits/stl_multiset.h: Likewise.
2252         * include/bits/stl_bvector.h: Likewise.
2253         * include/ext/vstring.h: Likewise.
2254         * include/ext/rc_string_base.h: Likewise.
2255         * include/ext/sso_string_base.h: Likewise.
2256         * src/Makefile.am (w?string-inst): Build with -std=gnu++0x.
2257         * src/Makefile.in: Likewise.
2258         * config/abi/pre/gnu.ver: Add new w?string exports.
2259         * testsuite/21_strings/basic_string/init-list.cc: New test.
2260         * testsuite/23_containers/vector/init-list.cc: New test.
2261         * testsuite/23_containers/deque/init-list.cc: New test.
2262         * testsuite/23_containers/list/init-list.cc: New test.
2263         * testsuite/23_containers/map/init-list.cc: New test.
2264         * testsuite/23_containers/multimap/init-list.cc: New test.
2265         * testsuite/23_containers/set/init-list.cc: New test.
2266         * testsuite/23_containers/multiset/init-list.cc: New test.
2267         * testsuite/23_containers/unordered_map/init-list.cc: New test.
2268         * testsuite/23_containers/unordered_multimap/init-list.cc: New test.
2269         * testsuite/23_containers/unordered_set/init-list.cc: New test.
2270         * testsuite/23_containers/unordered_multiset/init-list.cc: New test.
2271         * testsuite/26_numerics/valarray/init-list.cc: New test.
2272         * testsuite/28_regex/init-list.cc: New test.
2273         * testsuite/ext/vstring/init-list.cc: New test.
2274         * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
2275         Update error lineno.
2276         * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
2277         Update error lineno.
2278         * testsuite/23_containers/vector/requirements/dr438/
2279         constructor_1_neg.cc: Update error lineno.
2280         * testsuite/23_containers/vector/requirements/dr438/
2281         constructor_2_neg.cc: Update error lineno.
2282         * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
2283         Update error lineno.
2284         * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
2285         Update error lineno.
2286         * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
2287         Update error lineno.
2288         * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
2289         Update error lineno.
2290         * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
2291         Update error lineno.
2292         * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
2293         Update error lineno.
2294         * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
2295         Update error lineno.
2296         * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
2297         Update error lineno.
2298
2299 2008-07-21  Mark Mitchell  <mark@codesourcery.com>
2300
2301         * config/os/gnu-linux/arm-eabi-extra.ver: New file.
2302         * configure.host: Use it for arm*-*-linux-*eabi.
2303
2304 2008-07-19  Paolo Carlini  <paolo.carlini@oracle.com>
2305
2306         * include/ext/pb_ds/detail/binomial_heap_base_/debug_fn_imps.hpp
2307         (assert_node_consistent): Avoid ambiguous else warning.
2308
2309         * include/ext/pb_ds/detail/debug_map_base.hpp: Include <iostream>.
2310
2311         * include/bits/c++config: In debug-mode (and parallel-mode) set
2312         _GLIBCXX_EXTERN_TEMPLATE to -1, not 0, thus disabling extern
2313         templates only for basic_string (per libstdc++/21674).
2314         * include/bits/basic_string.tcc: Use extern templates when
2315         _GLIBCXX_EXTERN_TEMPLATE > 0.
2316
2317 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
2318             Holger Hopp  <holger.hopp@sap.com>
2319
2320         * config/abi/pre/gnu.ver: Support char16_t and char32_t.
2321         * testsuite/util/testsuite_abi.cc (check_version): Add
2322         CXXABI_1.3.3 to known_versions.
2323
2324 2008-07-16  Paolo Carlini  <paolo.carlini@oracle.com>
2325
2326         * include/debug/vector (insert(iterator, _Tp&&), push_back(_Tp&&)):
2327         Enable only when _Tp != bool.
2328
2329         * testsuite/25_algorithms/heap/1.cc: Avoid unused variable warnings.
2330
2331 2008-07-18  Paolo Carlini  <paolo.carlini@oracle.com>
2332
2333         * testsuite/lib/libstdc++.exp (check_v3_target_c_std): Avoid unused
2334         variable warnings leading to spurious fails of the test.
2335
2336 2008-07-16  Paolo Carlini  <paolo.carlini@oracle.com>
2337
2338         * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Adjust
2339         dg-error lines.
2340         * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Likewise.
2341         * testsuite/20_util/duration/cons/1_neg.cc: Likewise.
2342
2343         * include/tr1_impl/type_traits: Fix comment typo.
2344
2345 2008-07-16  Paolo Carlini  <paolo.carlini@oracle.com>
2346
2347         * include/bits/unique_ptr.h: Remove stray character.
2348
2349 2008-07-15  Benjamin Kosnik  <bkoz@redhat.com>
2350
2351         * doc/doxygen/user.cfg.in: Add complex, ratio,
2352         intializer_list.
2353         (PREDEFINED): Add _GLIBCXX_USE_C99_STDINT_TR1.
2354         * doc/doxygen/doxygroups.cc: Add std::chrono.
2355         * include/bits/unique_ptr.h (default_delete, unique_ptr): Add markup.
2356         * libsupc++/initializer_list (initializer_list): Same.
2357         * include/std/ratio: Same.
2358         * include/std/chrono: Same.
2359         * include/std/complex: Disambiguate file markup.
2360
2361 2008-07-15  Chris Fairles  <chris.fairles@gmail.com>
2362
2363         * include/std/chrono: New, as per N2661.
2364         * src/chrono.cc: New.
2365         * include/Makefile.am: Update.
2366         * src/Makefile.am: Likewise.
2367         * include/Makefile.in: Regenerate.
2368         * src/Makefile.in: Likewise.
2369         * acinclude.m4: Add tests for clock_gettime and gettimeofday that
2370         define _GLIBCXX_HAS_CLOCK_GETTIME and/or _GLIBCXX_HAS_GETTIMEOFDAY.
2371         * configure.ac: Use them.
2372         * configure: Regenerate.
2373         * config.h.in: Likewise.
2374         * config/abi/pre/gnu.ver: Add symbols for system_clock::now() and
2375         system_clock::is_monotonic.
2376         * testsuite/20_util/duration/cons/1.cc: New.
2377         * testsuite/20_util/duration/cons/2.cc: Likewise.
2378         * testsuite/20_util/duration/cons/1_neg.cc: Likewise.
2379         * testsuite/20_util/duration/requirements/explicit_instantiation/
2380         explicit_instantiation.cc: Likewise.
2381         * testsuite/20_util/duration/arithmetic/1.cc: Likewise.
2382         * testsuite/20_util/duration/arithmetic/2.cc: Likewise.
2383         * testsuite/20_util/duration/comparisons/1.cc: Likewise.
2384         * testsuite/20_util/time_point/requirements/explicit_instantiation/
2385         explicit_instantiation.cc: Likewise.
2386         * testsuite/20_util/time_point/1.cc: Likewise.
2387         * testsuite/20_util/time_point/2.cc: Likewise.
2388         * testsuite/20_util/time_point/3.cc: Likewise.
2389         * testsuite/20_util/clocks/1.cc: Likewise.
2390         * testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: Add
2391         missing headers.
2392         * testsuite/17_intro/headers/c++200x/all.cc: Likewise.
2393         * include/precompiled/stdc++.h: Likewise and remove <date_time>.
2394         * doc/doxygen/user.cfg.in: Likewise.
2395
2396 2008-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
2397
2398         PR libstdc++/36832
2399         * include/ext/rope (_Destroy_const): Add.
2400         (rope<>::copy): Call it.
2401         * testsuite/ext/rope/36832.cc: New.
2402
2403 2008-07-15  Johannes Singler  <singler@ira.uka.de>
2404
2405         * include/parallel/find_selectors.h:
2406         Correct name for include guard #ifndef.
2407         * include/parallel/balanced_quicksort.h: Likewise.
2408         * include/parallel/unique_copy.h: Likewise.
2409         * include/parallel/multiway_mergesort.h: Likewise.
2410         * include/parallel/checkers.h: Likewise.
2411         * include/parallel/[various files]:
2412         Add/correct comment for #endif of include guard (at end of file)
2413
2414 2008-07-12  Paolo Carlini  <paolo.carlini@oracle.com>
2415
2416         * include/std/date_time: Remove, per N2549, in WP.
2417         * src/date_time.cc: Likewise.
2418         * config/abi/pre/gnu.ver: Remove <date_time> symbols.
2419         * include/Makefile.am: Remove date_time in std headers.
2420         * src/Makefile.am: Remove date_time.cc to source files.
2421         * include/Makefile.in: Regenerate.
2422         * src/Makefile.in: Likewise.
2423         * testsuite/31_date_time/headers/date_time/types_std.cc: Remove.
2424         * testsuite/31_date_time/headers/date_time/std_c++0x_neg.cc: Likewise.
2425         * testsuite/31_date_time/headers/date_time/functions_std.cc: Likewise.
2426         * testsuite/31_date_time/headers/date_time/synopsis.cc: Likewise.
2427         * testsuite/31_date_time/nanoseconds/requirements/traits.cc: Likewise.
2428         * testsuite/31_date_time/nanoseconds/requirements/duration.cc: Likewise.
2429         * testsuite/31_date_time/system_time/requirements: Likewise.
2430         * testsuite/31_date_time/system_time/requirements/traits.cc: Likewise.
2431         * testsuite/17_intro/headers/c++200x/all.cc: Adjust.
2432         * testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: Adjust.
2433
2434 2008-07-10  Johannes Singler  <singler@ira.uka.de>
2435
2436         * include/parallel/balanced_quicksort.h:
2437         (qsb_divide) Replace "*end" by "*(end - 1)" in assertion.
2438
2439 2008-07-09  Benjamin Kosnik  <bkoz@redhat.com>
2440
2441         PR libstdc++/36451
2442         * doc/xml/manual/allocator.xml: Fix links.
2443         * doc/html/*: Regenerate.
2444
2445 2008-07-09  Joseph Myers  <joseph@codesourcery.com>
2446
2447         * libsupc++/unwind-cxx.h (__is_gxx_forced_unwind_class,
2448         __GXX_INIT_FORCED_UNWIND_CLASS): Define for ARM EABI unwinder.
2449         * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Call
2450         __GXX_INIT_FORCED_UNWIND_CLASS for forced unwind with ARM EABI
2451         unwinder.
2452         * libsupc++/eh_arm.cc (__cxa_type_match): Use
2453         __is_gxx_forced_unwind_class to check for forced unwind.
2454
2455 2008-07-09  Andreas Beckmann  <gcc@abeckmann.de>
2456
2457         PR libstdc++/36552
2458         * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
2459         null_metadata.hpp: Remove self-include.
2460
2461 2008-07-09  Joseph Myers  <joseph@codesourcery.com>
2462
2463         * testsuite/20_util/make_signed/requirements/typedefs-2.cc,
2464         testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Use
2465         -Wl,--no-enum-size-warning for arm*-*-linux*eabi.
2466
2467 2008-07-09  Johannes Singler  <singler@ira.uka.de>
2468
2469         PR libstdc++/36729
2470         * include/parallel/random_shuffle.h:
2471         (sequential_random_shuffle) Copy data back.
2472         * testsuite/25_algorithms/random_shuffle/1.cc:
2473         New. Generic random_shuffle functionality test.
2474
2475 2008-07-08  Chris Fairles  <chris.fairles@gmail.com>
2476
2477         * include/std/type_traits: Add common_type.
2478         * testsuite/20_util/common_type/requirements/
2479         explicit_instantiation.cc: New.
2480         * testsuite/20_util/common_type/requirements/
2481         typedefs-1.cc: Likewise.
2482
2483 2008-07-07  Paolo Carlini  <paolo.carlini@oracle.com>
2484
2485         * testsuite/lib/libstdc++.exp (check_v3_target_stdint): New.
2486         * testsuite/lib/dg-options.exp (dg-require-cstdint): New.
2487         * testsuite/20_util/ratio/cons/cons1.cc: Use it.
2488         * testsuite/20_util/ratio/cons/cons_overflow.cc: Likewise.
2489         * testsuite/20_util/ratio/operations/ops1.cc: Likewise.
2490         * testsuite/20_util/ratio/operations/ops2.cc: Likewise.
2491         * testsuite/20_util/ratio/operations/ops3.cc: Likewise.
2492         * testsuite/20_util/ratio/operations/ops_overflow.cc: Likewise.
2493         * testsuite/20_util/ratio/comparisons/comp1.cc: Likewise.
2494         * testsuite/20_util/ratio/comparisons/comp2.cc: Likewise.
2495
2496         * include/std/type_traits: Fix comment typo.
2497
2498 2008-07-06  Roger Sayle  <roger@eyesopen.com>
2499
2500         * include/std/system_error (is_error_code_enum): Use identifier
2501         _Tp instead of _T to avoid conflict with system macro on Darwin.
2502         (is_error_condition_enum): Likewise.
2503
2504 2008-07-05  Paolo Carlini  <paolo.carlini@oracle.com>
2505
2506         * include/bits/postypes.h: Do not include <stdint.h>.
2507
2508         * include/Makefile.am: Reorder.
2509
2510 2008-07-05  Paolo Carlini  <paolo.carlini@oracle.com>
2511
2512         * include/std/ratio: Prefer __INTMAX_MAX__ to INTMAX_MAX (INTMAX_MIN).
2513
2514 2008-07-05  Chris Fairles  <chris.fairles@gmail.com>
2515
2516         * include/std/ratio: Documentation for std::ratio class. Add conditions
2517         to ratio_less to prevent overflow.
2518         * testsuite/20_util/ratio/comparisons/comp2.cc: New.
2519         * testsuite/20_util/ratio/cons/cons_overflow.cc: Update dg-error line
2520         numbers.
2521
2522 2008-07-04  Chris Fairles  <chris.fairles@gmail.com>
2523
2524         * include/std/ratio: New, per N2661.
2525         * include/Makefile.am: Update.
2526         * include/Makefile.in: Regenerate.
2527         * testsuite/20_util/ratio/cons/cons1.cc: New.
2528         * testsuite/20_util/ratio/cons/cons_overflow.cc: Likewise.
2529         * testsuite/20_util/ratio/operations/ops1.cc: Likewise.
2530         * testsuite/20_util/ratio/operations/ops2.cc: Likewise.
2531         * testsuite/20_util/ratio/operations/ops3.cc: Likewise.
2532         * testsuite/20_util/ratio/operations/ops_overflow.cc: Likewise.
2533         * testsuite/20_util/ratio/comparisons/comp1.cc: Likewise.
2534
2535 2008-07-04  Paolo Carlini  <paolo.carlini@oracle.com>
2536
2537         PR libstdc++/36616
2538         * testsuite/22_locale/time_put/put/char/4.cc: Just use es_ES instead.
2539         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
2540
2541 2008-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
2542
2543         * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
2544         Improve check on long double limits.
2545         * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
2546         Likewise.
2547         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2548         stof.cc: Likewise.
2549         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2550         stod.cc: Likewise.
2551
2552 2008-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
2553
2554         * libsupc++/Makefile.am: Add initializer_list to the headers.
2555         * libsupc++/Makefile.in: Regenerate.
2556
2557         * libsupc++/initializer_list: Minor cosmetic changes.
2558
2559 2008-07-02  Jason Merrill  <jason@redhat.com>
2560
2561         * libsupc++/initializer_list: Uglify and wrap in
2562         __GXX_EXPERIMENTAL_CXX0X__.
2563         * include/bits/stl_map.h (insert(initializer_list)): Wrap.
2564
2565 2008-07-02  Jason Merrill  <jason@redhat.com>
2566
2567         * libsupc++/initializer_list: New file.
2568         * include/bits/stl_map.h (insert(initializer_list)): New method.
2569
2570 2008-06-30  Alfred E. Heggestad  <aeh@db.org>
2571
2572         * include/backward/backward_warning.h: Fix typo.
2573
2574 2008-06-29  Paolo Carlini  <paolo.carlini@oracle.com>
2575
2576         * src/string_conversions.cc: Remove.
2577         * config/abi/pre/gnu.ver: Delete exports.
2578         * src/Makefile.am: Update.
2579         * include/ext/string_conversions.h: Add.
2580         * include/Makefile.am: Update.
2581         * include/bits/basic_string.h: Include string_conversions.h,
2582         define numeric conversion functions.
2583         * include/ext/vstring.h: Likewise.
2584         * src/Makefile.in: Regenerate.
2585         * include/Makefile.in: Regenerate.
2586
2587 2008-06-29  Paolo Carlini  <paolo.carlini@oracle.com>
2588
2589         * include/bits/stl_algo.h (copy_n): Add in C++0x mode.
2590         * include/bits/algorithmfwd.h: Add.
2591         * include/bits/stl_uninitialized.h (uninitialized_copy_n): Add
2592         in C++0x mode.
2593         * testsuite/20_util/specialized_algorithms/uninitialized_copy_n/
2594         move_iterators/1.cc: New
2595         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.
2596         * testsuite/25_algorithms/copy_n/1.cc: New.
2597         * testsuite/25_algorithms/copy_n/2.cc: Likewise.
2598         * testsuite/25_algorithms/copy_n/3.cc: Likewise.
2599         * testsuite/25_algorithms/copy_n/4.cc: Likewise.
2600         * testsuite/25_algorithms/copy_n/move_iterators/1.cc: Likewise.
2601         * testsuite/25_algorithms/copy_n/requirements/
2602         explicit_instantiation/2.cc: Likewise.
2603         * testsuite/25_algorithms/partition_point/requirements/
2604         explicit_instantiation/pod.cc: Likewise.
2605
2606 2008-06-28  Paolo Carlini  <paolo.carlini@oracle.com>
2607
2608         * include/bits/stl_algo.h (partition_point): Add in C++0x mode.
2609         * include/bits/algorithmfwd.h: Add.
2610         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.
2611         * testsuite/25_algorithms/partition_point/1.cc: New.
2612         * testsuite/25_algorithms/partition_point/check_type.cc: Likewise.
2613         * testsuite/25_algorithms/partition_point/requirements/
2614         explicit_instantiation/2.cc: Likewise.
2615         * testsuite/25_algorithms/partition_point/requirements/
2616         explicit_instantiation/pod.cc: Likewise.
2617
2618 2008-06-28  Paolo Carlini  <paolo.carlini@oracle.com>
2619
2620         PR libstdc++/36660
2621         * include/ext/pb_ds/detail/resize_policy/
2622         sample_resize_trigger.hpp: Remove spurious namespace end.
2623
2624 2008-06-27  Mark Mitchell  <mark@codesourcery.com>
2625
2626         * libsupc++/vec.cc (__aeabi_vec_dtor_cookie): Handle NULL array
2627         address.
2628         (__aeabi_vec_delete): Likewise.
2629         (__aeabi_vec_delete3): Likewise.
2630         (__aeabi_vec_delete3_nodtor): Likewise.
2631
2632 2008-06-27  Paolo Carlini  <paolo.carlini@oracle.com>
2633
2634         * include/bits/stl_algo.h (is_partitioned): Add in C++0x mode.
2635         * include/bits/algorithmfwd.h: Add.
2636         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.
2637         * testsuite/25_algorithms/is_partitioned/1.cc: New.
2638         * testsuite/25_algorithms/is_partitioned/check_type.cc: Likewise.
2639         * testsuite/25_algorithms/is_partitioned/requirements/
2640         explicit_instantiation/2.cc: Likewise.
2641         * testsuite/25_algorithms/is_partitioned/requirements/
2642         explicit_instantiation/pod.cc: Likewise.
2643
2644 2008-06-27  Paolo Carlini  <paolo.carlini@oracle.com>
2645
2646         * include/bits/stl_numeric.h (iota): Add in C++0x mode.
2647         * testsuite/util/testsuite_character.h (pod_int): Add operator++
2648         in C++0x mode.
2649         * testsuite/util/testsuite_api.h (NonDefaultConstructible): Likewise.
2650         * testsuite/26_numerics/iota/1.cc: New.
2651         * testsuite/26_numerics/iota/requirements/explicit_instantiation/
2652         2.cc: Likewise.
2653         * testsuite/26_numerics/iota/requirements/explicit_instantiation/
2654         pod.cc: Likewise.
2655
2656         * include/ext/algorithm: Do not fiddle with the legacy headers.
2657
2658         * testsuite/26_numerics/partial_sum/1.cc: Minor changes, comments,
2659         style.
2660         * testsuite/26_numerics/accumulate/1.cc: Likewise.
2661         * testsuite/26_numerics/adjacent_difference/1.cc: Likewise.
2662         * testsuite/26_numerics/inner_product/1.cc: Likewise.
2663
2664 2008-06-26  Paolo Carlini  <paolo.carlini@oracle.com>
2665
2666         * include/bits/stl_algo.h (partition_copy): Add in C++0x mode.
2667         * include/bits/algorithmfwd.h: Add.
2668         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.
2669         * testsuite/25_algorithms/partition_copy/1.cc: New.
2670         * testsuite/25_algorithms/partition_copy/check_type.cc: Likewise.
2671         * testsuite/25_algorithms/partition_copy/requirements/
2672         explicit_instantiation/2.cc: Likewise.
2673         * testsuite/25_algorithms/partition_copy/requirements/
2674         explicit_instantiation/pod.cc: Likewise.
2675
2676 2008-06-26  Chris Fairles  <chris.fairles@gmail.com>
2677
2678         * testsuite/20_util/unique_ptr/cons/pointer_array.cc: New.
2679         * testsuite/20_util/unique_ptr/cons/pointer.cc: Likewise.
2680         * testsuite/20_util/unique_ptr/cons/pointer_array_convertible.cc:
2681         Likewise.
2682         * testsuite/20_util/unique_ptr/assign/move_array.cc: Likewise.
2683         * testsuite/20_util/unique_ptr/assign/move.cc: Likewise.
2684         * testsuite/20_util/unique_ptr/specialized_algorithms/
2685         comparisons_array.cc: Likewise.
2686         * testsuite/20_util/unique_ptr/specialized_algorithms/comparisons.cc:
2687         Likewise
2688         * testsuite/20_util/unique_ptr/specialized_algorithms/swap.cc:
2689         Likewise.
2690
2691 2008-06-26  Paolo Carlini  <paolo.carlini@oracle.com>
2692
2693         * include/parallel/base.h (plus, multiplies): Use __typeof__,
2694         not typeof.
2695
2696 2008-06-25  Paolo Carlini  <paolo.carlini@oracle.com>
2697
2698         * testsuite/29_atomics/atomic_flag/cons/default.cc: Avoid -Wall
2699         warnings.
2700         * testsuite/29_atomics/atomic_flag/cons/aggregate.cc: Likewise.
2701         * testsuite/29_atomics/headers/cstdatomic/types_std_c++0x.cc:
2702         Likewise.
2703         * testsuite/29_atomics/headers/stdatomic.h/types.c: Likewise.
2704         * testsuite/util/testsuite_common_types.h (struct assignable,
2705         struct default_constructible, struct copy_constructible,
2706         struct explicit_value_constructible): Use a tad of simulated
2707         concept checking techniques to avoid spurious warnings.
2708         * testsuite/29_atomics/atomic/cons/assign_neg.cc: Adjust dg-error
2709         markers.
2710         * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.
2711
2712 2008-06-25  Paolo Carlini  <paolo.carlini@oracle.com>
2713
2714         * include/bits/stl_algo.h (__find_if_not, find_if_not, all_of,
2715         any_of, none_of): Add in C++0x, per N2666.
2716         * include/bits/algorithmfwd.h: Update.
2717         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
2718         * testsuite/25_algorithms/all_of/check_type.cc: New.
2719         * testsuite/25_algorithms/all_of/1.cc: Likewise.
2720         * testsuite/25_algorithms/all_of/requirements/explicit_instantiation/
2721         2.cc: Likewise.
2722         * testsuite/25_algorithms/all_of/requirements/explicit_instantiation/
2723         pod.cc: Likewise.
2724         * testsuite/25_algorithms/any_of/check_type.cc: Likewise.
2725         * testsuite/25_algorithms/any_of/1.cc: Likewise.
2726         * testsuite/25_algorithms/any_of/requirements/explicit_instantiation/
2727         2.cc: Likewise.
2728         * testsuite/25_algorithms/any_of/requirements/explicit_instantiation/
2729         pod.cc: Likewise.
2730         * testsuite/25_algorithms/none_of/check_type.cc: Likewise.
2731         * testsuite/25_algorithms/none_of/1.cc: Likewise.
2732         * testsuite/25_algorithms/none_of/requirements/explicit_instantiation/
2733         2.cc: Likewise.
2734         * testsuite/25_algorithms/none_of/requirements/explicit_instantiation/
2735         pod.cc: Likewise.
2736         * testsuite/25_algorithms/find_if_not/check_type.cc: Likewise.
2737         * testsuite/25_algorithms/find_if_not/1.cc: Likewise.
2738         * testsuite/25_algorithms/find_if_not/requirements/
2739         explicit_instantiation/2.cc: Likewise.
2740         * testsuite/25_algorithms/find_if_not/requirements/
2741         explicit_instantiation/pod.cc: Likewise.
2742         * testsuite/25_algorithms/copy_if/check_type.cc: Likewise.
2743         * testsuite/25_algorithms/remove_copy_if/check_type.cc: Likewise.
2744         * testsuite/25_algorithms/find_if/1.cc: Minor tweaks.
2745
2746 2008-06-24  Benjamin Kosnik  <bkoz@redhat.com>
2747
2748         * doc/xml/manual/parallel_mode.xml: Clarify use of explicit
2749         parallel algorithms.
2750         * doc/xml/manual/using.xml: Markup fixes caught by validation check.
2751         * doc/xml/manual/test.xml: Remove empty para tags.
2752
2753         * doc/html/*: Regenerate.
2754
2755 2008-06-24  Paolo Carlini  <paolo.carlini@oracle.com>
2756
2757         * include/bits/stl_algo.h (remove_if): Cast __pred result to bool.
2758         (copy_if): Add, per N2666.
2759         * testsuite/25_algorithms/copy_if/requirements/explicit_instantiation/
2760         2.cc: New.
2761         * testsuite/25_algorithms/copy_if/requirements/explicit_instantiation/
2762         pod.cc: Likewise.
2763         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.
2764
2765 2008-06-24  Paolo Carlini  <paolo.carlini@oracle.com>
2766             Chalathip Thumkanon  <chalathip@gmail.com>
2767
2768         PR libstdc++/36612
2769         * include/ext/pb_ds/exception.hpp (__throw_container_error,
2770         __throw_insert_error, __throw_join_error, __throw_resize_error):
2771         Mark inline.
2772
2773 2008-06-22  Paolo Carlini  <paolo.carlini@oracle.com>
2774
2775         * include/bits/move.h (swap(_Tp (&)[_Nm], _Tp (&)[_Nm])): Add,
2776         per DR 809.
2777         * include/bits/algorithmfwd.h: Add.
2778         * doc/xml/manual/intro.xml: Add an entry for DR 809.
2779         * testsuite/25_algorithms/swap/dr809.cc: New.
2780
2781         * testsuite/25_algorithms/swap/requirements/explicit_instantiation/
2782         2.cc: Remove stray empty line.
2783
2784 2008-06-21  Paolo Carlini  <paolo.carlini@oracle.com>
2785
2786         * include/bits/stl_move.h: Rename to move.h.
2787         * include/std/utility: Adjust.
2788         * include/ext/vstring_util.h: Likewise.
2789         * include/ext/throw_allocator.h: Likewise.
2790         * include/ext/pool_allocator.h: Likewise.
2791         * include/ext/bitmap_allocator.h: Likewise.
2792         * include/ext/new_allocator.h: Likewise.
2793         * include/ext/malloc_allocator.h: Likewise.
2794         * include/ext/array_allocator.h: Likewise.
2795         * include/ext/mt_allocator.h: Likewise.
2796         * include/bits/stl_algobase.h: Likewise.
2797         * include/bits/stl_heap.h: Likewise.
2798         * include/bits/stl_pair.h: Likewise.
2799         * include/bits/stl_iterator.h: Likewise.
2800         * testsuite/util/testsuite_allocator.h: Likewise.
2801         * testsuite/util/testsuite_iterators.h: Likewise.
2802         * include/Makefile.am: Likewise.
2803         * include/Makefile.in: Regenerate.
2804
2805 2008-06-21  Chris Fairles  <chris.fairles@gmail.com>
2806
2807         * include/bits/unique_ptr.h: New.
2808         * include/std/memory: Adjust.
2809         * include/Makefile.am: Add.
2810         * testsuite/20_util/unique_ptr/requirements/explicit_instantiation/
2811         explicit_instantiation.cc: New.
2812         * testsuite/20_util/unique_ptr/assign/assign.cc: Likewise.
2813         * include/Makefile.in: Regenerate.
2814
2815 2008-06-21  Jonathan Wakely  <jwakely.gcc@gmail.com>
2816
2817         * include/c_global/climits, include/tr1/climits: Add parentheses.
2818
2819 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2820
2821         * configure: Regenerate.
2822
2823 2008-06-17  Chris Fairles  <chris.fairles@gmail.com>
2824
2825         * include/bits/stl_iterator_base_funcs.h (next, prev): Add in
2826         C++0x mode.
2827         * testsuite/24_iterators/operations/next.cc: New.
2828         * testsuite/24_iterators/operations/prev.cc: Likewise.
2829
2830 2008-06-17  Paolo Carlini  <paolo.carlini@oracle.com>
2831
2832         * src/string_conversions.cc (__to_xstring<>): New.
2833         (to_string, to_wstring): Use it.
2834
2835 2008-06-16  Paolo Carlini  <paolo.carlini@oracle.com>
2836
2837         * include/bits/basic_string.h (stod, stof, stoi, stol, stold, stoll,
2838         stoul, stoull, to_string, to_wstring): Declare in C++0x mode.
2839         * src/string_conversions.cc: Add.
2840         * src/Makefile.am: Update.
2841         * config/abi/pre/gnu.ver: Adjust exports.
2842         * src/Makefile.in: Regenerate.
2843         * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
2844         New.
2845         * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
2846         Likewise.
2847         * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
2848         Likewise.
2849         * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
2850         Likewise.
2851         * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
2852         Likewise.
2853         * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
2854         Likewise.
2855         * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
2856         Likewise.
2857         * testsuite/21_strings/basic_string/numeric_conversions/char/stoull.cc:
2858         Likewise.
2859         * testsuite/21_strings/basic_string/numeric_conversions/char/
2860         to_string.cc: Likewise.
2861         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2862         stod.cc: New.
2863         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2864         stof.cc: Likewise.
2865         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2866         stoi.cc: Likewise.
2867         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2868         stol.cc: Likewise.
2869         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2870         stold.cc: Likewise.
2871         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2872         stoll.cc: Likewise.
2873         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2874         stoul.cc: Likewise.
2875         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2876         stoull.cc: Likewise.
2877         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2878         to_wstring.cc: Likewise.
2879
2880 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2881
2882         * include/Makefile.am: Remove trailing white space, fix typo.
2883         (parallel_headers): Remove duplicate file, sort entries.
2884         * include/Makefile.in: Regenerate.
2885
2886 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2887
2888         * src/condition_variable.cc (~condition_variable): Drop unused
2889         variable.
2890
2891 2008-06-13  Paolo Carlini  <paolo.carlini@oracle.com>
2892
2893         * include/bits/stl_deque.h (deque<>::push_back(_Args&&...),
2894         deque<>::push_front(_Args&&...)): Remove.
2895         (deque<>::push_back(value_type&&),
2896         deque<>::push_front(value_type&&)): Add.
2897         (deque<>::push_back(const value_type&),
2898         deque<>::push_front(const value_type&)): Add back.
2899         (deque<>::emplace_back(_Args&&...),
2900         deque<>::emplace_front(_Args&&...)): Declare...
2901         * include/bits/deque.tcc: ... and define.
2902         * include/bits/stl_list.h (list<>::push_back(_Args&&...),
2903         list<>::push_front(_Args&&...)): Remove.
2904         (list<>::push_back(value_type&&), list<>::push_front(value_type&&),
2905         list<>::emplace_back(_Args&&...), list<>::emplace_front(_Args&&...)):
2906         Add.
2907         (list<>::push_back(const value_type&),
2908         list<>::push_front(const value_type&)): Add back.
2909         * include/bits/stl_vector.h (vector<>::push_back(_Args&&...)): Remove.
2910         (vector<>::push_back(value_type&&)): Add.
2911         (vector<>::push_back(const value_type&)): Add back.
2912         (vector<>::emplace_back(_Args&&...)): Declare...
2913         * include/bits/vector.tcc: ... and define.
2914         * include/bits/stl_queue.h (queue<>::push(_Args&&...),
2915         priority_queue<>::push(_Args&&...)): Remove.
2916         (queue<>::push(value_type&&), queue<>::emplace(_Args&&...),
2917         priority_queue<>::push(value_type&&),
2918         priority_queue<>::emplace(_Args&&...)): Add.
2919         (queue<>::push(const value_type&),
2920         priority_queue<>::push(const value_type&)): Add back.
2921         * include/bits/stl_stack.h (stack<>::push(_Args&&...)): Remove.
2922         (stack<>::push(value_type&&), stack<>::emplace(_Args&&...)): Add.
2923         (stack<>::push(const value_type&)): Add back.
2924         * include/debug/deque (deque<>::push_back(_Args&&...),
2925         deque<>::push_front(_Args&&...)): Remove.
2926         (deque<>::push_back(value_type&&), deque<>::push_front(value_type&&),
2927         deque<>::emplace_back(_Args&&...), deque<>::emplace_front(_Args&&...)):
2928         Add.
2929         (deque<>::push_back(const value_type&),
2930         deque<>::push_front(const value_type&)): Add back.
2931         * include/debug/list (list<>::push_back(_Args&&...),
2932         list<>::push_front(_Args&&...)): Remove.
2933         (list<>::push_back(value_type&&), list<>::push_front(value_type&&),
2934         list<>::emplace_back(_Args&&...), list<>::emplace_front(_Args&&...)):
2935         Add.
2936         (list<>::push_back(const value_type&),
2937         list<>::push_front(const value_type&)): Add back.
2938         * include/debug/vector (vector<>::push_back(_Args&&...)): Remove.
2939         (vector<>::push_back(value_type&&),
2940         vector<>::emplace_back(_Args&&...)): Add.
2941         (vector<>::push_back(const value_type&)): Add back.
2942         * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
2943         Adjust dg-error line numbers.
2944         * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
2945         Likewise.
2946         * testsuite/23_containers/deque/requirements/dr438/
2947         constructor_1_neg.cc: Likewise.
2948         * testsuite/23_containers/deque/requirements/dr438/
2949         constructor_2_neg.cc: Likewise.
2950         * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
2951         Adjust dg-error line numbers.
2952         * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
2953         Likewise.
2954         * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
2955         Likewise.
2956         * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
2957         Likewise.
2958         * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
2959         Adjust dg-error line numbers.
2960         * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
2961         Likewise.
2962         * testsuite/23_containers/vector/requirements/dr438/
2963         constructor_1_neg.cc: Likewise.
2964         * testsuite/23_containers/vector/requirements/dr438/
2965         constructor_2_neg.cc: Likewise.
2966
2967 2008-06-13  Paolo Carlini  <paolo.carlini@oracle.com>
2968
2969         * include/tr1_impl/array (array<>::assign): Do not define in
2970         C++0x mode, per DR 776...
2971         (array<>::fill): ... define instead.
2972         * doc/xml/manual/intro.xml: Add an entry for DR 776.
2973         * testsuite/23_containers/array/requirements/fill.cc: New.
2974
2975 2008-06-12  Paolo Carlini  <paolo.carlini@oracle.com>
2976
2977         * include/std/complex (pow(const complex<>&, int)): Do not define in
2978         C++0x mode, per DR 844.
2979         * include/tr1/complex (pow(const complex<>&, int)): Remove.
2980         * doc/xml/manual/intro.xml: Add an entry for DR 844.
2981         * testsuite/26_numerics/complex/dr844.cc: New.
2982         * testsuite/tr1/8_c_compatibility/complex/overloads_int.cc: Adjust.
2983
2984 2008-06-11  Paolo Carlini  <paolo.carlini@oracle.com>
2985
2986         * include/tr1_impl/hashtable (_Hashtable<>::cbegin(size_type),
2987         cend(size_type)): Add per DR 691.
2988         * testsuite/23_containers/unordered_map/requirements/cliterators.cc:
2989         New.
2990         * testsuite/23_containers/unordered_multimap/requirements/
2991         cliterators.cc: Likewise.
2992         * testsuite/23_containers/unordered_set/requirements/cliterators.cc:
2993         Likewise.
2994         * testsuite/23_containers/unordered_multiset/requirements/
2995         cliterators.cc: Likewise.
2996         * doc/xml/manual/intro.xml: Add an entry for DR 691.
2997
2998 2008-06-11  Matthias Klose  <doko@ubuntu.com>
2999
3000         * testsuite/30_threads/lock_error, testsuite/30_threads/once_flag:
3001         Remove empty directories.
3002
3003 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
3004
3005         * configure.host (xscale, ep9312, m680[246]0, solaris2.5,
3006         solaris2.5.[0-9], solaris2.6, windiss*): Remove.
3007         * crossconfig.m4 (*-solaris2.5, *-solaris2.6, *-windiss*): Remove.
3008         * configure: Regenerate.
3009         * config/os/solaris/solaris2.5: Remove directory.
3010         * config/os/solaris/solaris2.6: Remove directory.
3011         * config/os/windiss: Remove directory.
3012
3013 2008-06-06  Benjamin Kosnik  <bkoz@redhat.com>
3014
3015         * doc/xml/manual/using.xml: Outline exception topics.
3016
3017         * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp: Format.
3018         * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
3019         policy_access_fn_imps.hpp: Same.
3020         * include/ext/pb_ds/priority_queue.hpp: Same.
3021         * include/ext/throw_allocator.h: Same.
3022
3023         * include/ext/pb_ds/tag_and_trait.hpp (string_tag): New tag.
3024         (sequence_tag): New tag. Doxygen markup fixes.
3025
3026         * testsuite/lib/libstdc++.exp: Remove twister_ran_gen.cc source file.
3027
3028         * testsuite/performance/ext/pb_ds/text_find_timing.cc: Fix
3029         comment typo, include paths, format.
3030         * testsuite/performance/ext/pb_ds/tree_text_insert_timing.cc: Same.
3031         * testsuite/performance/ext/pb_ds/
3032         hash_random_int_erase_mem_usage.cc: Same.
3033         * testsuite/performance/ext/pb_ds/
3034         random_int_subscript_find_timing.cc: Same.
3035         * testsuite/performance/ext/pb_ds/
3036         priority_queue_text_push_timing.cc: Same.
3037         * testsuite/performance/ext/pb_ds/tree_split_join_timing.cc: Same.
3038         * testsuite/performance/ext/pb_ds/random_int_find_timing.cc: Same.
3039         * testsuite/performance/ext/pb_ds/multimap_text_insert_mem_usage.hpp
3040         * testsuite/performance/ext/pb_ds/multimap_text_find_timing.hpp
3041         * testsuite/performance/ext/pb_ds/
3042         priority_queue_random_int_push_timing.cc: Same.
3043         * testsuite/performance/ext/pb_ds/priority_queue_text_modify_timing.hpp
3044         * testsuite/performance/ext/pb_ds/tree_order_statistics_timing.cc: Same.
3045         * testsuite/performance/ext/pb_ds/
3046         priority_queue_text_push_pop_timing.cc: Same.
3047         * testsuite/performance/ext/pb_ds/
3048         priority_queue_text_join_timing.cc: Same.
3049         * testsuite/performance/ext/pb_ds/
3050         priority_queue_random_int_push_pop_timing.cc: Same.
3051         * testsuite/performance/ext/pb_ds/
3052         random_int_subscript_insert_timing.cc: Same.
3053         * testsuite/performance/ext/pb_ds/tree_text_lor_find_timing.cc: Same.
3054         * testsuite/performance/ext/pb_ds/multimap_text_insert_timing.hpp
3055         * testsuite/performance/ext/pb_ds/
3056         priority_queue_text_pop_mem_usage.cc: Same.
3057         * testsuite/performance/ext/pb_ds/
3058         hash_zlob_random_int_find_timing.cc: Same.
3059         * testsuite/ext/pb_ds/regression/hash_data_map_rand.cc: Same.
3060         * testsuite/ext/pb_ds/regression/trie_data_map_rand.cc: Same.
3061         * testsuite/ext/pb_ds/regression/list_update_no_data_map_rand.cc: Same.
3062         * testsuite/ext/pb_ds/regression/tree_no_data_map_rand.cc: Same.
3063         * testsuite/ext/pb_ds/regression/list_update_data_map_rand.cc: Same.
3064         * testsuite/ext/pb_ds/regression/hash_no_data_map_rand.cc: Same.
3065         * testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Same.
3066         * testsuite/ext/pb_ds/regression/tree_data_map_rand.cc: Same.
3067         * testsuite/ext/pb_ds/regression/trie_no_data_map_rand.cc: Same.
3068         * testsuite/util/regression/trait/priority_queue/trait.hpp: Same.
3069         * testsuite/util/regression/trait/erase_if_fn.hpp: Same.
3070         * testsuite/util/regression/trait/assoc/native_type_trait.hpp: Same.
3071         * testsuite/util/regression/trait/assoc/node_update_trait.hpp: Same.
3072         * testsuite/util/regression/trait/assoc/get_set_load_trait.hpp: Same.
3073         * testsuite/util/regression/trait/assoc/get_set_loads_trait.hpp: Same.
3074         * testsuite/util/regression/trait/assoc/trait.hpp: Same.
3075         * testsuite/util/regression/trait/assoc/resize_trait.hpp: Same.
3076         * testsuite/util/regression/trait/assoc/type_trait.hpp: Same.
3077         * testsuite/util/regression/trait/assoc/to_string.hpp: Same.
3078         * testsuite/util/regression/basic_type.hpp: Same.
3079         * testsuite/util/common_type/priority_queue/string_form.hpp: Same.
3080         * testsuite/util/common_type/priority_queue/detail/
3081         ds_string_form.hpp: Same.
3082         * testsuite/util/common_type/assoc/string_form.hpp: Same.
3083         * testsuite/util/common_type/assoc/detail/
3084         resize_policy_string_form.hpp: Same.
3085         * testsuite/util/common_type/assoc/detail/
3086         trigger_policy_string_form.hpp: Same.
3087         * testsuite/util/common_type/assoc/detail/
3088         comb_hash_fn_string_form.hpp: Same.
3089         * testsuite/util/common_type/assoc/detail/ds_string_form.hpp: Same.
3090         * testsuite/util/common_type/assoc/detail/
3091         size_policy_string_form.hpp: Same.
3092         * testsuite/util/common_type/assoc/detail/
3093         probe_fn_string_form.hpp: Same.
3094         * testsuite/util/common_type/assoc/detail/
3095         list_update_policy_string_form.hpp: Same.
3096         * testsuite/util/common_type/assoc/detail/
3097         store_hash_string_form.hpp: Same.
3098         * testsuite/util/common_type/assoc/native_set.hpp: Same.
3099         * testsuite/util/io/prog_bar.cc: Same.
3100
3101         * testsuite/util/regression/rand/io: Remove.
3102         * testsuite/util/regression/rand/io/priority_queue: Same.
3103         * testsuite/util/regression/rand/io/assoc: Same.
3104         * testsuite/util/regression/rand/io/priority_queue/
3105         xml_formatter.hpp: Consolidate this...
3106         * testsuite/util/regression/rand/io/assoc/xml_formatter.hpp: ...this
3107         * testsuite/util/regression/rand/io/xml_formatter.hpp: ... and this
3108         * testsuite/util/regression/rand/xml_formatter.hpp: ...here.
3109
3110         * testsuite/util/regression/rand/priority_queue/
3111         container_rand_regression_test.hpp:To ...
3112         container_rand_regression_test.h: ... this.
3113         * testsuite/util/regression/rand/priority_queue/detail/*.hpp:To ...
3114         * testsuite/util/regression/rand/priority_queue/
3115         container_rand_regression_test.tcc: ... this.
3116         PB_DS_THROW_IF_FAIL: Change to _GLIBCXX_THROW_IF, adjust predicate.
3117         PB_DS_SET_DESTRUCT_PRINT: Fold inline.
3118         PB_DS_CANCEL_DESTRUCT_PRINT: Fold inline.
3119         * testsuite/util/regression/rand/priority_queue/
3120         rand_regression_test.hpp: Adjust includes.
3121
3122         * testsuite/util/regression/rand/assoc/
3123         container_rand_regression_test.hpp: To ...
3124         * testsuite/util/regression/rand/assoc/
3125         container_rand_regression_test.h: ... this.
3126         * testsuite/util/regression/rand/assoc/detail/*.hpp:To ...
3127         * testsuite/util/regression/rand/assoc/
3128         container_rand_regression_test.tcc: ...this.
3129         * testsuite/util/regression/rand/assoc/rand_regression_test.hpp: Adjust
3130         includes.
3131
3132         * testsuite/util/regression/priority_queue: Remove.
3133         * testsuite/util/regression/assoc: Remove.
3134         * testsuite/util/regression/priority_queue/
3135         common_type.hpp: Consolidate this...
3136         * testsuite/util/regression/assoc/common_type.hpp: ... and this
3137         * testsuite/util/regression/common_type.hpp: ...here.
3138
3139         * testsuite/util/rng: Remove.
3140         * testsuite/util/rng/twister_rand_gen.cc: Consolidate...
3141         * testsuite/util/rng/twister_rand_gen.hpp: ... and this
3142         * testsuite/util/testsuite_rng.h: ...here.
3143
3144         * testsuite/util/native_type/priority_queue: Remove.
3145         * testsuite/util/native_type/priority_queue/
3146         native_priority_queue.hpp: To...
3147         * testsuite/util/native_type/native_priority_queue.hpp: ...here.
3148
3149         * testsuite/util/native_type/assoc: Remove.
3150         * testsuite/util/native_type/assoc/native_multimap.hpp: To...
3151         * testsuite/util/native_type/assoc/native_tree_tag.hpp: To...
3152         * testsuite/util/native_type/assoc/native_hash_multimap.hpp: To...
3153         * testsuite/util/native_type/assoc/native_set.hpp: To...
3154         * testsuite/util/native_type/assoc/native_map.hpp: To...
3155         * testsuite/util/native_type/assoc/native_hash_set.hpp: To...
3156         * testsuite/util/native_type/assoc/native_hash_tag.hpp: To...
3157         * testsuite/util/native_type/assoc/native_hash_map.hpp: To...
3158         * testsuite/util/native_type/native_multimap.hpp: ...here.
3159         * testsuite/util/native_type/native_tree_tag.hpp: ...here.
3160         * testsuite/util/native_type/native_hash_multimap.hpp: ...here.
3161         * testsuite/util/native_type/native_set.hpp: ...here.
3162         * testsuite/util/native_type/native_map.hpp: ...here.
3163         * testsuite/util/native_type/native_hash_set.hpp: ...here.
3164         * testsuite/util/native_type/native_hash_tag.hpp: ...here.
3165         * testsuite/util/native_type/native_hash_map.hpp: ...here.
3166
3167         * testsuite/util/common_type/priority_queue/common_type.hpp:
3168         Make include guard distinct.
3169         * testsuite/util/common_type/assoc/common_type.hpp: Same.
3170
3171 2008-06-06  Joseph Myers  <joseph@codesourcery.com>
3172
3173         * configure.ac: Do not check for gconv.h.
3174         * crossconfig.m4 (GLIBCXX_CROSSCONFIG): Do not test for gconv.h or
3175         gconf.h.  For glibc and uClibc systems, define
3176         _GLIBCXX_USE_RANDOM_TR1 and HAVE_MMAP and use AC_LC_MESSAGES and
3177         AM_ICONV.
3178         * configure, config.h.in: Regenerate.
3179
3180 2008-06-06  Joseph Myers  <joseph@codesourcery.com>
3181
3182         * testsuite/17_intro/headers/all.cc,
3183         testsuite/17_intro/headers/all_c++200x_compatibility.cc,
3184         testsuite/17_intro/headers/all_pedantic_errors.cc,
3185         testsuite/ext/headers.cc: Only include
3186         <ext/codecvt_specializations.h> and <ext/enc_filebuf.h> if
3187         _GLIBCXX_HAVE_ICONV.
3188
3189 2008-06-05  Johannes Singler  <singler@ira.uka.de>
3190
3191         * include/parallel/random_shuffle.h:
3192         (parallel_random_shuffle_drs) Get the actual number of
3193         threads after entering the parallel region. Indentation.
3194         * include/parallel/algo.h: (random_shuffle(begin, end))
3195         Add namespace qualification to avoid ambiguity.
3196
3197 2008-06-04  Benjamin Kosnik  <bkoz@redhat.com>
3198
3199         * include/ext/pb_ds/assoc_container.hpp: Change allocator typedef
3200         to allocator_type, as per existing conventions.
3201         * include/ext/pb_ds/detail/binomial_heap_base_/
3202         binomial_heap_base_.hpp: Same.
3203         * include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp: Same.
3204         * include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp: Same.
3205         * include/ext/pb_ds/detail/bin_search_tree_/bin_search_tree_.hpp: Same.
3206         * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: Same.
3207         * include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp: Same.
3208         * include/ext/pb_ds/detail/trie_policy/trie_policy_base.hpp: Same.
3209         * include/ext/pb_ds/detail/pairing_heap_/pairing_heap_.hpp: Same.
3210         * include/ext/pb_ds/detail/binomial_heap_/binomial_heap_.hpp: Same.
3211         * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
3212         left_child_next_sibling_heap_.hpp: Same.
3213         * include/ext/pb_ds/detail/thin_heap_/thin_heap_.hpp: Same.
3214         * include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hpp: Same.
3215         * include/ext/pb_ds/detail/splay_tree_/splay_tree_.hpp: Same.
3216         * include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp: Same.
3217         * include/ext/pb_ds/detail/rc_binomial_heap_/
3218         rc_binomial_heap_.hpp: Same.
3219         * include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp: Same.
3220         * include/ext/pb_ds/detail/rb_tree_map_/rb_tree_.hpp: Same.
3221         * include/ext/pb_ds/list_update_policy.hpp: Same.
3222         * include/ext/pb_ds/exception.hpp: Same.
3223         * include/ext/pb_ds/tree_policy.hpp: Same.
3224         * include/ext/pb_ds/trie_policy.hpp: Same.
3225         * include/ext/pb_ds/priority_queue.hpp: Same.
3226         * testsuite/util/regression/trait/assoc/trait.hpp: Same.
3227         * testsuite/util/regression/trait/assoc/type_trait.hpp: Same.
3228         * testsuite/util/regression/rand/priority_queue/detail/
3229         defs_fn_imps.hpp: Same.
3230         * testsuite/util/regression/rand/priority_queue/detail/
3231         operator_fn_imps.hpp: Same.
3232         * testsuite/util/regression/rand/priority_queue/
3233         container_rand_regression_test.hpp: Same.
3234         * testsuite/util/regression/rand/assoc/detail/defs_fn_imps.hpp: Same.
3235         * testsuite/util/regression/rand/assoc/detail/
3236         operator_fn_imps.hpp: Same.
3237         * testsuite/util/regression/rand/assoc/
3238         container_rand_regression_test.hpp: Same.
3239         * testsuite/util/native_type/assoc/native_multimap.hpp: Same.
3240         * testsuite/util/native_type/assoc/native_hash_multimap.hpp: Same.
3241         * testsuite/util/common_type/assoc/detail/
3242         tree_supports_order_statistics.hpp: Same.
3243         * testsuite/util/common_type/assoc/detail/
3244         trie_supports_prefix_search.hpp: Same.
3245         * testsuite/util/common_type/assoc/detail/
3246         trie_supports_order_statistics.hpp: Same.
3247
3248 2008-06-02  Sandra Loosemore  <sandra@codesourcery.com>
3249             Daniel Jacobowitz  <dan@codesourcery.com>
3250
3251         * testsuite/27_io/basic_filebuf/sputbackc/char/9425.cc: Use
3252         dg-require-fileio.
3253         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Likewise.
3254         * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: Likewise.
3255
3256 2008-06-02  Paolo Carlini  <paolo.carlini@oracle.com>
3257
3258         * include/bits/vector.tcc (vector<>::_M_insert_aux): In C++0x mode,
3259         avoid a memory leak if the first __uninitialized_move_a throws.
3260         (vector<>::_M_fill_insert): Do not always copy to __x_copy, similarly
3261         to _M_insert_aux.
3262         * testsuite/23_containers/vector/modifiers/moveable.cc: Adjust.
3263         * testsuite/23_containers/vector/resize/moveable.cc: Likewise.
3264
3265 2008-05-31  Paolo Carlini  <paolo.carlini@oracle.com>
3266             Chris Jefferson  <chris@bubblescope.net>
3267
3268         PR libstdc++/36338
3269         * include/bits/stl_heap.h (sort_heap): Use __pop_heap directly.
3270         (pop_heap): Slightly tweak.
3271
3272 2008-05-29  Paolo Carlini  <paolo.carlini@oracle.com>