OSDN Git Service

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