OSDN Git Service

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