OSDN Git Service

0f553d982b0c51cfda5eb3c734119e31d2c9e382
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2012-10-05 Pavel Chupin <pavel.v.chupin@intel.com>
2  
3                 Fix missing gthr-default.h issue on separate libstdc++ configure
4                 * acinclude.m4: Define glibcxx_thread_h.
5                 * include/Makefile.am: Use glibcxx_thread_h.
6                 * Makefile.in: Regenerate.
7                 * configure: Regenerate.
8                 * doc/Makefile.in: Regenerate.
9                 * include/Makefile.in: Regenerate.
10                 * libsupc++/Makefile.in: Regenerate.
11                 * po/Makefile.in: Regenerate.
12                 * python/Makefile.in: Regenerate.
13                 * src/Makefile.in: Regenerate.
14                 * src/c++11/Makefile.in: Regenerate.
15                 * src/c++98/Makefile.in: Regenerate.
16                 * testsuite/Makefile.in: Regenerate.
17
18 2012-09-20  Benjamin Kosnik  <bkoz@redhat.com>
19
20         PR libstdc++/54102, part 2
21         * doc/Makefile.am (XSL_HTML_STYLE): use xhtml, not html.
22         * doc/Makefile.in: Regenerate.
23         * doc/html/*: Same.
24
25 2012-09-20  Benjamin Kosnik  <bkoz@redhat.com>
26
27         * doc/html/*: Regenerate.
28
29 2012-09-20  Benjamin Kosnik  <bkoz@redhat.com>
30
31         PR libstdc++/54102
32         * doc/xsl/customization.xsl.in: New.
33         * configure.ac: Output local copy of customization xsl.
34         * doc/Makefile.am (stamp-html-single-docbook): Use XSL_LOCAL_STYLE.
35         (stamp-html-docbook): Set stringparam to UTF-8.
36         * Makefile.in: Regenerated.
37         * configure: Same.
38         * doc/Makefile.in: Same.
39
40 2012-09-20  Release Manager
41
42         * GCC 4.7.2 released.
43
44 2012-09-11  Jakub Jelinek  <jakub@redhat.com>
45
46         PR libstdc++/54172
47         * libsupc++/guard.cc (__cxa_guard_acquire): Fix up the last
48         argument of the first __atomic_compare_exchange_n.
49
50 2012-09-09  Thiago Macieira  <thiago.macieira@intel.com>
51
52         PR libstdc++/54172
53         * libsupc++/guard.cc (__cxa_guard_acquire): Exit the loop earlier if
54         we detect that another thread has had success. Don't compare_exchange
55         from a finished state back to a waiting state. Comment.
56
57 2012-09-09  Jonathan Wakely  <jwakely.gcc@gmail.com>
58
59         PR libstdc++/54388
60         * include/std/array (array::at() const): Ensure lvalue result.
61         * testsuite/23_containers/array/element_access/54388.cc: New.
62
63 2012-09-06  Marc Glisse  <marc.glisse@inria.fr>
64             Paolo Carlini  <paolo.carlini@oracle.com>
65
66         PR libstdc++/54376
67         * include/bits/random.h (lognormal_distribution<>::operator==,
68         gamma_distribution<>::operator==,
69         chi_squared_distribution<>::operator==,
70         fisher_f_distribution<>::operator==,
71         student_t_distribution<>::operator==,
72         binomial_distribution<>::operator==,
73         negative_binomial_distribution<>::operator==,
74         poisson_distribution<>::operator==): Change inline friend definition
75         to non-template.
76         * testsuite/26_numerics/random/binomial_distribution/requirements/
77         explicit_instantiation/1.cc: New.
78         * testsuite/26_numerics/random/cauchy_distribution/requirements/
79         explicit_instantiation/1.cc: Likewise.
80         * testsuite/26_numerics/random/chi_squared_distribution/
81         requirements/explicit_instantiation/1.cc: Likewise.
82         * testsuite/26_numerics/random/discrete_distribution/requirements/
83         explicit_instantiation/1.cc: Likewise.
84         * testsuite/26_numerics/random/exponential_distribution/
85         requirements/explicit_instantiation/1.cc: Likewise.
86         * testsuite/26_numerics/random/extreme_value_distribution/
87         requirements/explicit_instantiation/1.cc: Likewise.
88         * testsuite/26_numerics/random/fisher_f_distribution/requirements/
89         explicit_instantiation/1.cc: Likewise.
90         * testsuite/26_numerics/random/gamma_distribution/requirements/
91         explicit_instantiation/1.cc: Likewise.
92         * testsuite/26_numerics/random/geometric_distribution/requirements/
93         explicit_instantiation/1.cc: Likewise.
94         * testsuite/26_numerics/random/lognormal_distribution/requirements/
95         explicit_instantiation/1.cc: Likewise.
96         * testsuite/26_numerics/random/negative_binomial_distribution/
97         requirements/explicit_instantiation/1.cc: Likewise.
98         * testsuite/26_numerics/random/normal_distribution/requirements/
99         explicit_instantiation/1.cc: Likewise.
100         * testsuite/26_numerics/random/piecewise_constant_distribution/
101         requirements/explicit_instantiation/1.cc: Likewise.
102         * testsuite/26_numerics/random/piecewise_linear_distribution/
103         requirements/explicit_instantiation/1.cc: Likewise.
104         * testsuite/26_numerics/random/poisson_distribution/requirements/
105         explicit_instantiation/1.cc: Likewise.
106         * testsuite/26_numerics/random/student_t_distribution/requirements/
107         explicit_instantiation/1.cc: Likewise.
108         * testsuite/26_numerics/random/uniform_int_distribution/
109         requirements/explicit_instantiation/1.cc: Likewise.
110         * testsuite/26_numerics/random/uniform_real_distribution/
111         requirements/explicit_instantiation/1.cc: Likewise.
112         * testsuite/26_numerics/random/weibull_distribution/requirements/
113         explicit_instantiation/1.cc: Likewise.
114
115 2012-08-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
116
117         * testsuite/30_threads/async/54297.cc: Add dg-require-nanosleep.
118
119 2012-08-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
120
121         PR libstdc++/54297
122         * src/c++11/future.cc (~_Async_state_common): Move to...
123         * src/c++11/compatibility-thread-c++0x.cc (~_Async_state_common):
124         Here.
125         (_GLIBCXX_ABI_COMPAT_ASYNC): Rename to _GLIBCXX_ASYNC_ABI_COMPAT.
126         * include/std/future (_GLIBCXX_ABI_COMPAT_ASYNC): Likewise.
127
128 2012-08-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
129             Geoff Romer  <gromer@google.com>
130
131         PR libstdc++/54351
132         * include/bits/unique_ptr.h (unique_ptr<T>::~unique_ptr): Do not use
133         reset().
134         (unique_ptr<T[]>::~unique_ptr()): Likewise.
135         * testsuite/20_util/unique_ptr/54351.cc: New.
136         * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust dg-error
137         line numbers.
138
139 2012-08-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
140
141         PR libstdc++/54297
142         * include/std/future (~_Async_state_impl): Join thread before
143         derived class members are destroyed.
144         (~_Async_state_common): Only define non-trivial destructor when
145         included from future.cc for ABI compatibility reasons.
146         * src/c++11/future.cc (_GLIBCXX_ABI_COMPAT_ASYNC): Define.
147         * testsuite/30_threads/async/54297.cc: New.
148
149 2012-08-13  David Adler  <d.adler.s@gmail.com>
150
151         PR libstdc++/54185
152         * src/c++11/condition_variable.cc (condition_variable): Always
153         destroy native type in destructor.
154         * testsuite/30_threads/condition_variable/54185.cc: New.
155
156 2012-08-06  Peter Bergner  <bergner@vnet.ibm.com>
157
158         PR libstdc++/54036
159         * include/decimal/decimal.h (_DEFINE_DECIMAL_UNARY_OP): Use _Op as
160         a unary operator.
161         * testsuite/decimal/pr54036-1.cc: New test.
162         * testsuite/decimal/pr54036-2.cc: Likewise.
163         * testsuite/decimal/pr54036-3.cc: Likewise.
164
165 2012-08-02  Michael Hope  <michael.hope@linaro.org>
166
167         Backport from mainline r186389:
168         2012-04-12  Andreas Schwab  <schwab@linux-m68k.org>
169
170         * testsuite/Makefile.am (check_DEJAGNUnormal0): Run
171         prettyprinters.exp.
172         * testsuite/Makefile.in: Regenerated.
173
174 2012-07-29  François Dumont  <fdumont@gcc.gnu.org>
175
176         PR libstdc++/54075
177         * include/bits/hashtable_policy.h
178         (_Prime_rehash_policy::_M_next_bkt): Add a growth factor set to 2
179         to boost growth in the number of buckets.
180         * testsuite/performance/23_containers/insert/unordered_set.cc: New.
181
182 2012-07-26  François Dumont  <fdumont@gcc.gnu.org>
183
184         PR libstdc++/54075
185         * include/bits/hashtable.h
186         (_Hashtable<>::_Hashtable(_InputIterator, _InputIterator,
187         size_type, ...): Remove std::max usage to guarantee that hashtable
188         state is consistent with hash policy state.
189         (_Hashtable<>::rehash): Likewise. Set _M_prev_resize to 0 to avoid
190         the hashtable shrinking on next insertion.
191         * testsuite/23_containers/unordered_set/modifiers/reserve.cc: New.
192         * testsuite/23_containers/unordered_multiset/modifiers/reserve.cc: New.
193         * testsuite/23_containers/unordered_map/modifiers/reserve.cc: New.
194         * testsuite/23_containers/unordered_multimap/modifiers/reserve.cc: New.
195
196 2012-07-20  Paolo Carlini  <paolo.carlini@oracle.com>
197
198         * testsuite/30_threads/thread/adl.cc: Add missing dg-requires.
199
200 2012-07-16  Jonathan Wakely  <jwakely.gcc@gmail.com>
201
202         PR libstdc++/53270
203         * include/ext/concurrence.h: Use NSDMI for gthreads types.
204         * include/ext/rope: Likewise. Destroy mutexes in destructors. Add
205         system_header pragma.
206
207         Revert:
208         2012-06-19  Jonathan Wakely  <jwakely.gcc@gmail.com>
209
210         PR libstdc++/53270
211         * config/os/gnu-linux/os_defines.h: Disable static initializer macros
212         for gthreads types in C++11 mode.
213
214 2012-07-16  Jonathan Wakely  <jwakely.gcc@gmail.com>
215
216         PR libstdc++/53978
217         * include/bits/alloc_traits.h (allocator_traits): Define static
218         constants.
219         * include/bits/ptr_traits.h (pointer_traits): Likewise.
220         * include/ext/alloc_traits.h (__allocator_always_compares_equal):
221         Likewise.
222
223 2012-07-13  Paolo Carlini  <paolo.carlini@oracle.com>
224
225         PR libstdc++/53657
226         * include/bits/stl_pair.h (pair<>::pair(pair&&)): Declare defaulted,
227         per C++11.
228         * include/bits/stl_map.h (map<>::insert(_Pair&&), map<>::insert
229         (const_iterator, _Pair&&)): Constrain with std::is_constructible,
230         per LWG2005.
231         * include/bits/stl_multimap.h (multimap<>::insert(_Pair&&),
232         multimap<>::insert(const_iterator, _Pair&&)): Likewise.
233         * include/bits/hashtable_policy.h (_Insert<>::insert(_Pair&&),
234         _Insert<>::insert(const_iterator, _Pair&&)): Likewise.
235         * include/debug/unordered_map: Adjust.
236         * include/debug/map.h: Likewise.
237         * include/debug/multimap.h: Likewise.
238         * include/profile/unordered_map: Likewise.
239         * include/profile/map.h: Likewise.
240         * include/profile/multimap.h: Likewise.
241
242 2012-07-07  Jonathan Wakely  <jwakely.gcc@gmail.com>
243
244         PR libstdc++/53578
245         * include/ext/concurrence.h (__recursive_mutex::_S_destroy): Fix
246         narrowing conversion.
247         * include/std/mutex (__recursive_mutex_base::_S_destroy): Likewise.
248
249 2012-07-06  Paolo Carlini  <paolo.carlini@oracle.com>
250
251         PR libstdc++/53872
252         * include/std/thread (thread::_M_make_routine): Qualify make_shared
253         to prevent ADL.
254         * testsuite/30_threads/thread/adl.cc: New.
255
256 2012-07-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
257
258         * include/std/condition_variable: Update copyright years.
259
260 2012-07-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
261
262         PR libstdc++/53830
263         * include/std/condition_variable (condition_variable_any::wait):
264         Move _Unlock type to class scope.
265         (condition_variable_any::wait_until): Reuse it.
266         * testsuite/30_threads/condition_variable_any/53830.cc: New.
267
268 2012-07-02  Paolo Carlini  <paolo.carlini@oracle.com>
269
270         Revert:
271         2011-10-04  Paolo Carlini  <paolo.carlini@oracle.com>
272
273         PR libstdc++/49561
274         * include/bits/stl_list.h (_List_base<>::_List_impl::_M_size):
275         Add in C++0x mode.
276         (_List_base<>::_List_impl, _List_base<>::_M_get_node,
277         _List_base<>::_M_put_node, _List_base<>::_List_base(_List_base&&),
278         list<>::size, list<>::swap, list<>::splice): Use it.
279         (operator==(const list<>&, const list<>&)): Rewrite in C++0x mode.
280         * include/bits/list.tcc (list<>::erase): Likewise.
281         (list<>::merge): Adjust in C++0x mode.
282         * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
283         Adjust dg-error line number.
284         * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
285         Likewise.
286         * testsuite/23_containers/list/requirements/dr438/
287         constructor_1_neg.cc: Likewise.
288         * testsuite/23_containers/list/requirements/dr438/
289         constructor_2_neg.cc: Likewise.
290
291 2012-06-19  Jonathan Wakely  <jwakely.gcc@gmail.com>
292
293         PR libstdc++/53270
294         * config/os/gnu-linux/os_defines.h: Disable static initializer macros
295         for gthreads types in C++11 mode.
296
297 2012-06-19  Jörg Sonnenberger <joerg@britannica.bec.de>
298             Jonathan Wakely  <jwakely.gcc@gmail.com>
299
300         PR libstdc++/53678
301         * config/os/bsd/netbsd/ctype_base.h: Check for _CTYPE_U.
302         * testsuite/22_locale/ctype_base/53678.cc: New.
303
304 2012-06-14  Release Manager
305
306         * GCC 4.7.1 released.
307
308 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
309
310         PR c++/53503
311         * testsuite/26_numerics/headers/cmath/53503.cc: New.
312
313 2012-05-10  DJ Delorie  <dj@redhat.com>
314
315         * include/bits/random.tcc (seed_seq::generate): Cast max()
316         operands to size_t to ensure a template match.
317         * include/std/bitset (_M_copy_from_ptr): Cast min() operands to
318         size_t to ensure a template match.
319
320 2012-05-02  Paolo Carlini  <paolo.carlini@oracle.com>
321
322         PR libstdc++/53193
323         * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
324         dg-error line number.
325
326 2012-05-01  François Dumont  <fdumont@gcc.gnu.org>
327
328         PR libstdc++/53115
329         * include/bits/hashtable.h
330         (_Hashtable<>::_M_rehash_aux(size_type, false_type)): Fix buckets
331         after insertion of several equivalent elements.
332         * testsuite/23_containers/unordered_multiset/insert/53115.cc: New.
333         * testsuite/23_containers/unordered_multimap/insert/53115.cc: New.
334
335 2012-04-30  Andreas Tobler  <andreast@fgznet.ch>
336
337         Backport from mainline
338         2012-03-21  Andreas Tobler  <andreast@fgznet.ch>
339
340         * testsuite/23_containers/vector/bool/modifiers/insert/31370.cc:
341         Skip this test on powerpc64-*-freebsd*.
342
343 2012-04-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
344
345         * include/std/scoped_allocator (scoped_allocator::__outermost): Do
346         not pass non-POD to varargs function.
347         * testsuite/20_util/scoped_allocator/1.cc: Fix test.
348
349 2012-04-23  Chris Jefferson  <chris@bubblescope.net>
350
351         PR testsuite/53046
352         * testsuite/25_algorithms/stable_partition/mem_check.cc: Fix size
353         of array A.
354         * testsuite/25_algorithms/stable_sort/mem_check.cc: Likewise.
355
356 2012-04-22  Paolo Carlini  <paolo.carlini@oracle.com>
357
358         PR libstdc++/53067
359         * include/bits/hashtable_policy.h: Change inheritances to public.
360         * testsuite/23_containers/unordered_map/requirements/53067.cc: New.
361         * testsuite/23_containers/unordered_set/requirements/53067.cc: Likewise.
362
363 2012-04-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
364
365         PR libstdc++/53027
366         * include/bits/ptr_traits.h (pointer_traits::rebind): Make public.
367         * testsuite/20_util/pointer_traits/requirements/typedefs.cc: Check
368         rebind works.
369
370 2012-04-21  Alan Modra  <amodra@gmail.com>
371
372         PR libstdc++/52839
373         * acinclude.m4 (_GLIBCXX_ATOMIC_BUILTINS): Do not depend on
374         glibcxx_cv_atomic_long_long.
375         * configure: Regenerate.
376
377 2012-04-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
378
379         PR bootstrap/52840
380         * src/Makefile.am (build-debug): Do not adjust vpath dir, remove
381         Makefile.tmp
382         * src/Makefile.in: Adjust as per above.
383
384 2012-04-16  Benjamin Kosnik  <bkoz@redhat.com>
385
386         PR libstdc++/52689
387         * libsupc++/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
388         * libsupc++/Makefile.in: Regenerated.
389         * src/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
390         (libstdc___la_SOURCES): Add in compatiblity files, with content
391         that varies with -DPIC.
392         * src/Makefile.in: Regenerated.
393         * src/c++11/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
394         * src/c++11/Makefile.in: Regenerated.
395         * src/c++11/compatibility-atomic-c++0x.cc: Guard with PIC.
396         * src/c++11/compatibility-c++0x.cc: Same.
397         * src/c++11/future.cc: Consolidate compatibility bits into..
398         * src/c++11/mutex.cc: Consolidate compatibility bits into..
399         * src/c++11/compatibility-thread-cxx0x.cc: ...here. New.
400         * src/c++98/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
401         * src/c++98/Makefile.in: Regenerated.
402         * src/c++98/compatibility-list-2.cc: Guard with PIC.
403         * src/c++98/compatibility.cc: Tweak comments.
404
405 2012-04-16  Benjamin Kosnik  <bkoz@redhat.com>
406
407             * include/ext/pb_ds/detail/pat_trie_/
408             constructors_destructor_fn_imps.hpp: Increment after recursion.
409             * include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Convert
410             node_type markup from brief.
411
412 2012-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
413
414         PR libstdc++/52699
415         * include/bits/random.tcc (independent_bits_engine<>::operator()())
416         Avoid various overflows; use common_type on result_type and
417         _RandomNumberEngine::result_type; avoid floating point computations;
418         other smaller tweaks.
419
420         * include/bits/random.tcc (uniform_int_distribution<>::operator())
421         Use common_type; assume _UniformRandomNumberGenerator::result_type
422         unsigned; tidy.
423
424         * include/bits/stl_algobase.h (__lg(unsigned), __lg(unsigned long),
425         __lg(unsigned long long)): Add.
426
427 2012-04-13  Paolo Carlini  <paolo.carlini@oracle.com>
428
429         * include/debug/safe_iterator.h (_BeforeBeginHelper<>::
430         _S_Is_Beginnest): Add.
431         * include/debug/forward_list (_BeforeBeginHelper<>::
432         _S_Is_Beginnest): Likewise.
433         (_Safe_iterator<>::_M_is_beginnest): Add.
434         * include/debug/safe_iterator.tcc (_Safe_iterator<>::_M_valid_range):
435         Use the latter.
436         * testsuite/23_containers/forward_list/debug/splice_after.cc:
437         Add test.
438
439 2012-04-12  Paolo Carlini  <paolo.carlini@oracle.com>
440
441         * include/bits/forward_list.h (splice_after(const_iterator,
442         forward_list&), splice_after(const_iterator, forward_list&,
443         consst_iterator), splice_after(const_iterator, forward_list&,
444         const_iterator, const_iterator), merge(forward_list&),
445         merge(forward_list&, _Comp)): Add per C++11 as published (and
446         LWG 1310).
447         * include/debug/forward_list: Adjust.
448
449         * include/bits/forward_list.h (splice_after(const_iterator,
450         forward_list&&, const_iterator)): Only declare.
451         (_M_transfer_after): Remove.
452         (_M_splice_after(const_iterator, forward_list&&)): Change signature.
453         (splice_after(const_iterator, forward_list&&, const_iterator,
454         const_iterator)): Use the latter.
455         * include/bits/forward_list.tcc (splice_after(const_iterator,
456         forward_list&&, const_iterator)): Define here.
457         (_M_splice_after): Define, use throughout.
458
459         * include/bits/forward_list.h (insert_after(const_iterator,
460         std::initializer_list<_Tp>)): Forward to insert_after(const_iterator,
461         _InputIterator, _InputIterator).
462         * include/bits/forward_list.tcc: Remove definition.
463
464         * testsuite/23_containers/forward_list/modifiers/6.cc: New.
465         * testsuite/23_containers/forward_list/operations/1.cc: Adjust.
466
467         * testsuite/23_containers/forward_list/requirements/dr438/
468         assign_neg.cc: Adjust dg-error line number.
469         * testsuite/23_containers/forward_list/requirements/dr438/
470         insert_neg.cc: Likewise.
471         * testsuite/23_containers/forward_list/requirements/dr438/
472         constructor_1_neg.cc: Likewise.
473         * testsuite/23_containers/forward_list/requirements/dr438/
474         constructor_2_neg.cc: Likewise.
475
476 2012-04-12   Jeffrey Yasskin  <jyasskin@google.com>
477
478         PR libstdc++/52822
479         * include/bits/stl_algo.h (__find_if_not): Expose in C++98 mode.
480         (__find_if_not_n): Like __find_if_not, but works on and updates a
481         counted range instead of a bounded range.
482         (stable_partition): Guarantee !__pred(*__first) in call to
483         __stable_partition_adaptive() or __inplace_stable_partition().
484         (__stable_partition_adaptive): Use new precondition to avoid
485         moving/copying objects onto themselves.  Guarantee new
486         precondition to recursive calls.
487         (__inplace_stable_partition): Use new precondition to simplify
488         base case, remove __last parameter.  Guarantee new precondition to
489         recursive calls.
490         * testsuite/25_algorithms/stable_partition/moveable.cc (test02):
491         Test a sequence that starts with a value matching the predicate.
492         * testsuite/25_algorithms/stable_partition/pr52822.cc: Test
493         vectors, which have a destructive self-move-assignment.
494
495 2012-04-12  Paolo Carlini  <paolo.carlini@oracle.com>
496
497         PR libstdc++/52942
498         * include/bits/stl_function.h (_Identity, _Select1st, _Select2nd):
499         In C++11 mode do not derive from std::unary_function.
500         * include/ext/functional (identity, select1st, select2nd): Adjust.
501         * testsuite/23_containers/unordered_map/requirements/52942.cc: New.
502         * testsuite/23_containers/unordered_set/requirements/52942.cc: Likewise.
503
504 2012-04-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
505
506         PR libstdc++/52924
507         * include/bits/shared_ptr_base.h (_Sp_counted_deleter): Add
508         user-defined destructor.
509         (_Sp_counted_inplace): Likewise.
510         * testsuite/20_util/shared_ptr/cons/52924.cc: New.
511         * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error
512         line numbers.
513
514 2012-04-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
515
516         * testsuite/performance/30_threads/future/polling.cc: Adjust.
517
518 2012-04-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
519
520         PR libstdc++/52591
521         * include/bits/stl_vector.h (vector::operator=(vector&&)): Dispatch
522         to _M_move_assign depending on whether allocator is moved.
523         (vector::_M_move_assign): Add overloaded functions.
524         * testsuite/23_containers/vector/52591.cc: New.
525         * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
526         Adjust dg-error line number.
527         * testsuite/23_containers/vector/requirements/dr438/
528         constructor_1_neg.cc:
529         Likewise.
530         * testsuite/23_containers/vector/requirements/dr438/
531         constructor_2_neg.cc:
532         Likewise.
533         * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
534         Likewise.
535
536 2012-04-09  François Dumont  <fdumont@gcc.gnu.org>
537
538         PR libstdc++/52476
539         * include/bits/hashtable.h (_Hashtable<>::_M_rehash_aux): Add.
540         (_Hashtable<>::_M_rehash): Use the latter.
541         * testsuite/23_containers/unordered_multimap/insert/52476.cc: New.
542         * testsuite/23_containers/unordered_multiset/insert/52476.cc: New.
543
544 2012-04-09  Terry Guo  <terry.guo@arm.com>
545
546         Backport from mainline
547         2012-03-28  Terry Guo  <terry.guo@arm.com>
548
549         * testsuite/Makefile.am (TEST_GCC_EXEC_PREFIX): New.
550         * testsuite/Makefile.in: Regenerated.
551
552 2012-03-30  Jeffrey Yasskin  <jyasskin@gcc.gnu.org>
553             Paolo Carlini  <paolo.carlini@oracle.com>
554
555         PR libstdc++/52799
556         * include/bits/deque.tcc (emplace): Fix thinko, replace push_front
557         -> emplace_front, and likewise for *_back.
558         * testsuite/23_containers/deque/modifiers/emplace/52799.cc: New.
559         * testsuite/23_containers/list/modifiers/emplace/52799.cc: Likewise.
560         * testsuite/23_containers/vector/modifiers/emplace/52799.cc: Likewise.
561
562 2012-03-23  David S. Miller  <davem@davemloft.net>
563
564         * config/abi/post/sparc-linux-gnu/baseline_symbols.txt: Update.
565
566 2012-03-23  Paolo Carlini  <paolo.carlini@oracle.com>
567
568         * include/bits/forward_list.h: Fix comments.
569
570 2012-03-23  Paweł Sikora  <pawel.sikora@agmk.net>
571
572         PR libstdc++/52540
573         * include/Makefile.am (c++config.h): Fix sed rule to not break
574         the _GLIBCXX_EXTERN_TEMPLATE redefinition.
575         * include/Makefile.in: Regenerate.
576
577 2012-03-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
578
579         PR libstdc++/52433
580         * include/debug/safe_iterator.h (_Safe_iterator): Add move
581         constructor and move assignment operator.
582         * testsuite/23_containers/vector/debug/52433.cc: New.
583
584 2012-03-22  Paolo Carlini  <paolo.carlini@oracle.com>
585
586         * include/std/array (array<>::at(size_type) const): Fix version
587         for undefined __EXCEPTIONS.
588
589 2012-03-22  Release Manager
590
591         * GCC 4.7.0 released.
592
593 2012-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
594
595         PR libstdc++/52456
596         * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.
597
598 2012-03-09  Andreas Schwab  <schwab@linux-m68k.org>
599
600         * config/locale/gnu/monetary_members.cc
601         (moneypunct<char,true>::_M_initialize_moneypunct): Throw caught
602         exception again.
603         (moneypunct<char,false>::_M_initialize_moneypunct): Likewise.
604         * testsuite/22_locale/locale/cons/12352.cc: Also test en_US
605         locale.
606
607 2012-03-02  Benjamin Kosnik  <bkoz@redhat.com>
608
609         * include/c_global/cstdio: Remove extraneous extern.
610         * include/c_std/cstdio: Same.
611
612 2012-03-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
613
614         * config/abi/post/solaris2.8/baseline_symbols.txt: Regenerate.
615         * config/abi/post/solaris2.8/sparcv9/baseline_symbols.txt: Likewise.
616         * config/abi/post/solaris2.10/baseline_symbols.txt: Likewise.
617         * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
618         * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
619
620 2012-03-01  Benjamin Kosnik  <bkoz@redhat.com>
621             Ramana Radhakrishnan <ramana@gcc.gnu.org>
622
623         PR libstdc++/51785
624         * acinclude.m4 (GLIBCXX_CHECK_STDIO_PROTO): New.
625         * configure.ac: Call it.
626         * configure: Regenerate.
627         * config.h.in: Same.
628         * config/os/gnu-linux/os_defines.h: Conditionally undefine
629         _GLIBCXX_HAVE_GETS.
630         * include/c_global/cstdio: Conditionally declare deprecated gets.
631         * include/c_std/cstdio: Same.
632
633 2012-03-01  Michael Spertus  <mike_spertus@symantec.com>
634
635         * include/tr2/type_traits (typelist): To __reflection_typelist.
636         (first, rest, empty): Remove.
637
638 2012-03-01  Benjamin Kosnik  <bkoz@redhat.com>
639
640         * testsuite/Makefile.am (CLEANFILES): Add *.gdb.
641         * testsuite/Makefile.in: Regenerate.
642
643 2012-02-29  H.J. Lu  <hongjiu.lu@intel.com>
644
645         * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
646
647 2012-02-28  Benjamin Kosnik  <bkoz@redhat.com>
648
649         PR libstdc++/52191
650         * testsuite/util/testsuite_abi.cc (compare_symbols): Check new
651         symbols added into the latest version. Mark tls entities as
652         undesignated.
653
654 2012-02-28  Jakub Jelinek  <jakub@redhat.com>
655
656         PR bootstrap/52414
657         * src/Makefile.am (libstdc++-symbols.ver): Only remove comment lines
658         if they are at the beginning of lines (with optional whitespace before
659         #).
660         * src/Makefile.in: Regenerated.
661
662 2012-02-27  Jakub Jelinek  <jakub@redhat.com>
663
664         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
665         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
666         * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
667         Likewise.
668         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
669         * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise.
670         * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
671         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
672         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
673         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise.
674
675 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
676
677         PR libstdc++/52188
678         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Remove symvers_renaming.
679         Remove ENABLE_SYMVERS_SOL2.
680         * configure: Regenerate.
681         * src/Makefile.am [ENABLE_SYMVERS] (libstdc++-symbols.ver):
682         Postprocess mapfile.
683         [ENABLE_SYMVERS_GNU]: Remove ENABLE_SYMVERS_SOL2 handling.
684         * src/Makefile.in: Regenerate.
685
686         * config/abi/pre/gnu.ver (GLIBCXX_3.4.5) [!__sun__ && !__svr4__]:
687         Don't export
688         _ZNSt19istreambuf_iteratorI[cw]St11char_traitsI[cw]EEppEv.
689
690 2012-02-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
691
692         PR testsuite/52201
693         * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
694         Require atomic builtins.
695         * testsuite/29_atomics/atomic/operators/51811.cc: Likewise.
696
697 2012-02-23  Jason Merrill  <jason@redhat.com>
698
699         * include/bits/locale_facets.h (class num_get): Undo reordering of
700         do_get virtual functions.
701
702 2012-02-14  Edward Smith-Rowland  <3dw4rd@verizon.net>
703
704         * testsuite/26_numerics/random/
705         uniform_real_distribution/requirements/typedefs.cc: Check param_type.
706         * testsuite/26_numerics/random/
707         piecewise_constant_distribution/requirements/typedefs.cc: Ditto.
708         * testsuite/26_numerics/random/
709         chi_squared_distribution/requirements/typedefs.cc: Ditto.
710         * testsuite/26_numerics/random/
711         normal_distribution/requirements/typedefs.cc: Ditto.
712         * testsuite/26_numerics/random/
713         uniform_int_distribution/requirements/typedefs.cc: Ditto.
714         * testsuite/26_numerics/random/
715         poisson_distribution/requirements/typedefs.cc: Ditto.
716         * testsuite/26_numerics/random/
717         bernoulli_distribution/requirements/typedefs.cc: Ditto.
718         * testsuite/26_numerics/random/
719         discrete_distribution/requirements/typedefs.cc: Ditto.
720         * testsuite/26_numerics/random/
721         weibull_distribution/requirements/typedefs.cc: Ditto.
722         * testsuite/26_numerics/random/
723         cauchy_distribution/requirements/typedefs.cc: Ditto.
724         * testsuite/26_numerics/random/
725         negative_binomial_distribution/requirements/typedefs.cc: Ditto.
726         * testsuite/26_numerics/random/
727         gamma_distribution/requirements/typedefs.cc: Ditto.
728         * testsuite/26_numerics/random/
729         fisher_f_distribution/requirements/typedefs.cc: Ditto.
730         * testsuite/26_numerics/random/
731         exponential_distribution/requirements/typedefs.cc: Ditto.
732         * testsuite/26_numerics/random/
733         binomial_distribution/requirements/typedefs.cc: Ditto.
734         * testsuite/26_numerics/random/
735         lognormal_distribution/requirements/typedefs.cc: Ditto.
736         * testsuite/26_numerics/random/
737         extreme_value_distribution/requirements/typedefs.cc: Ditto.
738         * testsuite/26_numerics/random/
739         piecewise_linear_distribution/requirements/typedefs.cc: Ditto.
740         * testsuite/26_numerics/random/
741         student_t_distribution/requirements/typedefs.cc: Ditto.
742         * testsuite/26_numerics/random/
743         geometric_distribution/requirements/typedefs.cc: Ditto.
744
745 2012-02-21  Benjamin Kosnik  <bkoz@redhat.com>
746
747         PR libstdc++/50349
748         * config/abi/pre/gnu.ver: Only one local.
749         * config/abi/pre/gnu-versioned-namespace.ver: Same.
750
751 2012-02-21  Paolo Carlini  <paolo.carlini@oracle.com>
752
753         PR libstdc++/52317 (cont)
754         * include/profile/unordered_map: Ad Library Exception comment.
755         * include/profile/set: Likewise.
756         * include/profile/base.h: Likewise.
757         * include/profile/impl/profiler_list_to_slist.h: Likewise.
758         * include/profile/impl/profiler_container_size.h: Likewise.
759         * include/profile/impl/profiler_vector_size.h: Likewise.
760         * include/profile/impl/profiler_hash_func.h: Likewise.
761         * include/profile/impl/profiler_trace.h: Likewise.
762         * include/profile/impl/profiler_list_to_vector.h: Likewise.
763         * include/profile/impl/profiler_vector_to_list.h: Likewise.
764         * include/profile/impl/profiler.h: Likewise.
765         * include/profile/impl/profiler_state.h: Likewise.
766         * include/profile/impl/profiler_map_to_unordered_map.h: Likewise.
767         * include/profile/impl/profiler_algos.h: Likewise.
768         * include/profile/impl/profiler_hashtable_size.h: Likewise.
769         * include/profile/impl/profiler_node.h: Likewise.
770         * include/profile/vector: Likewise.
771         * include/profile/unordered_set: Likewise.
772         * include/profile/map.h: Likewise.
773         * include/profile/map: Likewise.
774
775 2012-02-21  Paolo Carlini  <paolo.carlini@oracle.com>
776
777         PR libstdc++/52317
778         * python/Makefile.am: Update boilerplate license text to GPLv3.
779         * include/profile/unordered_map: Likewise.
780         * include/profile/set: Likewise.
781         * include/profile/base.h: Likewise.
782         * include/profile/impl/profiler_list_to_slist.h: Likewise.
783         * include/profile/impl/profiler_container_size.h: Likewise.
784         * include/profile/impl/profiler_vector_size.h: Likewise.
785         * include/profile/impl/profiler_hash_func.h: Likewise.
786         * include/profile/impl/profiler_trace.h: Likewise.
787         * include/profile/impl/profiler_list_to_vector.h: Likewise.
788         * include/profile/impl/profiler_vector_to_list.h: Likewise.
789         * include/profile/impl/profiler.h: Likewise.
790         * include/profile/impl/profiler_state.h: Likewise.
791         * include/profile/impl/profiler_map_to_unordered_map.h: Likewise.
792         * include/profile/impl/profiler_algos.h: Likewise.
793         * include/profile/impl/profiler_hashtable_size.h: Likewise.
794         * include/profile/impl/profiler_node.h: Likewise.
795         * include/profile/vector: Likewise.
796         * include/profile/unordered_set: Likewise.
797         * include/profile/map.h: Likewise.
798         * include/profile/map: Likewise.
799         * testsuite/21_strings/basic_string/numeric_conversions/
800         wchar_t/dr1261.cc: Likewise.
801         * testsuite/21_strings/basic_string/numeric_conversions/
802         char/dr1261.cc: Likewise.
803         * testsuite/20_util/reference_wrapper/invoke-2.cc: Likewise.
804
805 2012-02-20  Paolo Carlini  <paolo.carlini@oracle.com>
806
807         PR libstdc++/52241
808         * src/c++98/tree.cc (local_Rb_tree_increment,
809         local_Rb_tree_decrement): Add.
810         (_Rb_tree_increment(const _Rb_tree_node_base*),
811         _Rb_tree_decrement(const _Rb_tree_node_base*)): Use the latter.
812         (_Rb_tree_increment(_Rb_tree_node_base*),
813         _Rb_tree_decrement(_Rb_tree_node_base*)): New.
814
815 2012-02-20  Paolo Carlini  <paolo.carlini@oracle.com>
816
817         PR libstdc++/52309
818         * include/bits/hashtable_policy.h (_Equality_base<, true,>::
819         _M_equal(const _Hashtable&)): Compare values with operator==.
820         * testsuite/23_containers/unordered_set/operators/52309.cc: New.
821
822 2012-02-17  Benjamin Kosnik  <bkoz@redhat.com>
823
824         PR libstdc++/51798 continued.
825         * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Grep for
826         __atomic_, not __sync.
827         * configure: Regenerated.
828
829 2012-02-17  Benjamin Kosnik  <bkoz@redhat.com>
830
831         PR libstdc++/47058
832         * acinclude.m4 (GLIBCXX_ENABLE_WERROR): New.
833         (GLIBCXX_EXPORT_FLAGS): Add -Wabi to WARN_FLAGS
834         * configure.ac: Use it.
835         * fragment.am: Set WERROR_FLAG conditionally on --disable-werror.
836         * configure: Regenerate.
837         * python/Makefile.in: Same.
838         * Makefile.in: Same.
839         * doc/Makefile.in: Same.
840         * include/Makefile.in: Same.
841         * po/Makefile.in: Same.
842         * python/Makefile.in: Same.
843         * src/Makefile.in: Same.
844         * src/c++11/Makefile.in: Same.
845         * src/c++98/Makefile.in: Same.
846         * testsuite/Makefile.in: Same.
847
848 2012-02-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
849
850         PR libstdc++/52189
851         * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Handle
852         --enable-libstdcxx-threads.
853         Disable on Solaris 8/9 with symbol versioning.
854         * configure.ac (GLIBCXX_CHECK_GTHREADS): Move after
855         GLIBCXX_ENABLE_SYMVERS.
856         * configure: Regenerate.
857         * doc/xml/manual/configure.xml (--enable-libstdcxx-threads): Explain.
858
859 2012-02-15  DJ Delorie  <dj@redhat.com>
860
861         * src/c++98/locale.cc (locale::facet::_S_get_c_locale): Fix typo.
862
863 2012-02-15  Benjamin Kosnik  <bkoz@redhat.com>
864
865         PR libstdc++/51368
866         * acinclude.m4 (GLIBCXX_ENABLE_PYTHON): New.
867         * configure.ac: Use it.
868         * python/Makefile.am: Same.
869         * configure: Regenerate.
870         * python/Makefile.in: Regenerate.
871         * Makefile.in: Same.
872         * doc/Makefile.in: Same.
873         * include/Makefile.in: Same.
874         * po/Makefile.in: Same.
875         * src/Makefile.in: Same.
876         * src/c++11/Makefile.in: Same.
877         * src/c++98/Makefile.in: Same.
878         * testsuite/Makefile.in: Same.
879
880 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
881
882         * 30_threads/thread/native_handle/typesizes.cc: Do not run on cygwin.
883
884 2012-02-14  Tom Tromey  <tromey@redhat.com>
885
886         * testsuite/libstdc++-prettyprinters/cxx11.cc (main): Add new
887         tests.
888         * python/libstdcxx/v6/printers.py (Tr1HashtableIterator.__init__):
889         Rewrite.
890         (Tr1HashtableIterator.update): Remove.
891         (Tr1HashtableIterator.next): Rewrite.
892
893 2012-02-13  Benjamin Kosnik  <bkoz@redhat.com>
894
895         * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line numbers.
896         * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Same.
897
898 2012-02-13  Richard Henderson  <rth@redhat.com>
899
900         PR libstdc++/51798 continued.
901         * include/bits/shared_ptr_base.h
902         (_Sp_counted_base<_S_atomic>::_M_add_ref_lock): Hoist initial load
903         outside compare_exchange loop.
904         * include/tr1/shared_ptr.h: Same.
905         * include/parallel/compatibility.h (__compare_and_swap_32): Use strong
906         version of compare_exchange.
907         (__compare_and_swap_64): Same.
908         * include/profile/impl/profiler_state.h (__gnu_profile::__turn): Same.
909         * libsupc++/guard.cc (__cxa_guard_acquire): Same.
910
911 2012-02-10  Benjamin Kosnik  <bkoz@redhat.com>
912             Jonathan Wakely  <jwakely.gcc@gmail.com>
913
914         PR libstdc++/51798 continued.
915         * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Use __atomic_*
916         builtins instead of __sync_* builtins for atomic functionality.
917         * include/bits/shared_ptr_base.h: Same.
918         * include/parallel/compatibility.h: Same.
919         * include/profile/impl/profiler_state.h: Same.
920         * include/tr1/shared_ptr.h: Same.
921         * libsupc++/eh_ptr.cc: Same.
922         * libsupc++/eh_throw.cc: Same.
923         * libsupc++/eh_tm.cc: Same.
924         * libsupc++/guard.cc: Same.
925         * configure: Regenerated.
926         * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line numbers.
927         * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Same.
928
929 2012-02-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
930
931         PR libstdc++/51296
932         * config/os/osf/ctype_base.h,
933         config/os/osf/ctype_configure_char.cc,
934         config/os/osf/ctype_inline.h, config/os/osf/error_constants.h:
935         Copy from config/os/generic.
936         * config/os/osf/os_defines.h: Likewise.
937         (_GTHREAD_USE_MUTEX_INIT_FUNC, _GTHREAD_USE_COND_INIT_FUNC):
938         Define.
939         * configure.host <osf*>: Use os/osf for os_include_dir.
940
941 2012-02-10  Uros Bizjak  <ubizjak@gmail.com>
942
943         * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Regenerated.
944
945 2012-02-09  Jonathan Wakely  <jwakely.gcc@gmail.com>
946
947         * doc/xml/manual/documentation_hacking.xml: Fix invalid attribute.
948
949 2012-02-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
950
951         * doc/xml/manual/status_cxx2011.xml: Update C++11 status table.
952
953 2012-02-07  Benjamin Kosnik  <bkoz@redhat.com>
954
955         * doc/doxygen/user.cfg.in: Update to doxygen 1.7.6.1.
956         * doc/xml/manual/documentation_hacking.xml: Update.
957
958 2012-02-07  Jonathan Wakely  <jwakely.gcc@gmail.com>
959
960         * testsuite/30_threads/call_once/39909.cc: Remove duplicate target
961         selector.
962         * testsuite/30_threads/call_once/49668.cc: Likewise.
963         * testsuite/30_threads/call_once/call_once1.cc: Likewise.
964         * testsuite/30_threads/lock_guard/cons/1.cc: Likewise.
965         * testsuite/30_threads/mutex/cons/1.cc: Likewise.
966         * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise.
967         * testsuite/30_threads/mutex/lock/1.cc: Likewise.
968         * testsuite/30_threads/mutex/native_handle/1.cc: Likewise.
969         * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise.
970         * testsuite/30_threads/mutex/try_lock/1.cc: Likewise.
971         * testsuite/30_threads/mutex/try_lock/2.cc: Likewise.
972         * testsuite/30_threads/mutex/unlock/1.cc: Likewise.
973         * testsuite/30_threads/unique_lock/cons/1.cc: Likewise.
974         * testsuite/30_threads/unique_lock/cons/2.cc: Likewise.
975         * testsuite/30_threads/unique_lock/cons/3.cc: Likewise.
976         * testsuite/30_threads/unique_lock/cons/4.cc: Likewise.
977         * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
978         * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
979         * testsuite/30_threads/unique_lock/locking/1.cc: Likewise.
980         * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
981         * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
982         * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
983         * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
984         * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
985
986 2012-02-07  Jonathan Wakely  <jwakely.gcc@gmail.com>
987
988         PR libstdc++/51296
989         * include/std/mutex (__mutex_base::~__mutex_base): Declare noexcept.
990         * src/c++11/condition_variable.cc (condition_variable): Use macro for
991         initializer function.
992
993         PR libstdc++/51906
994         * config/os/bsd/darwin/os_defines.h: Disable static initializer for
995         recursive mutexes.
996
997 2012-02-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
998
999         PR libstdc++/52128
1000         * src/c++11/future.cc: Add explicit instantiation.
1001
1002 2012-02-06  François Dumont  <fdumont@gcc.gnu.org>
1003
1004         * include/debug/safe_iterator.h
1005         (_Safe_iterator::_M_before_dereferenceable): Avoid the expensive
1006         creation of a _Safe_iterator instance to do the check.
1007
1008 2012-02-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
1009
1010         PR libstdc++/52104
1011         * include/std/future (__future_base::_Async_state_common): Define
1012         destructor inline for targets without TLS.
1013         * src/c++11/future.cc (__future_base::_Async_state_common): Only
1014         define destructor for TLS targets.
1015
1016 2012-02-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
1017
1018         PR libstdc++/51956
1019         * python/libstdcxx/v6/printers.py (StdPointerPrinter): Rename to...
1020         (SharedPointerPrinter): This. Also show weak count.
1021         * testsuite/libstdc++-prettyprinters/shared_ptr.cc: New.
1022
1023 2012-02-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
1024
1025         * testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Modify to
1026         PASS instead of XFAIL.
1027
1028 2012-02-05  Jeffrey Yasskin  <jyasskin@gcc.gnu.org>
1029             Paolo Carlini  <paolo.carlini@oracle.com>
1030
1031         PR libstdc++/52119
1032         * include/std/limits (__glibcxx_min): Fix to avoid undefined behavior.
1033
1034 2012-02-03  Benjamin Kosnik  <bkoz@redhat.com>
1035
1036         PR libstdc++/49445
1037         * testsuite/29_atomics/atomic/cons/49445.cc: Add.
1038
1039 2012-02-03  Benjamin Kosnik  <bkoz@redhat.com>
1040
1041         PR libstdc++/51811
1042         * include/bits/atomic_base.h (atomic<_Tp*>): Fix offsets.
1043         * testsuite/29_atomics/atomic/operators/51811.cc: New.
1044         * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: New.
1045
1046 2012-02-03  Jakub Jelinek  <jakub@redhat.com>
1047
1048         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
1049         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
1050         * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
1051         Likewise.
1052         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
1053         * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise.
1054         * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
1055         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
1056         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
1057         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise.
1058
1059 2012-02-02  Benjamin Kosnik  <bkoz@redhat.com>
1060
1061         PR libstdc++/52068
1062         * src/c++11/Makefile.am (toolexeclib_LTLIBRARIES,
1063         libc__11_la_SOURCES): Remove.
1064         * src/c++11/Makefile.in: Regenerate.
1065         * src/c++98/Makefile.am (toolexeclib_LTLIBRARIES,
1066         libc__98_la_SOURCES): Remove.
1067         * src/c++98/Makefile.in: Regenerate.
1068
1069 2012-02-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
1070
1071         PR libstdc++/49204
1072         * include/std/future (__future_base::_State_base::wait()): Use lambda
1073         expression for predicate and remove redundant test.
1074         (__future_base::_State_base::wait_for()): Return future_status and
1075         use lambda expression for predicate.
1076         (__future_base::_State_base::wait_until()): Likewise.
1077         (__basic_future::wait_for(), __basic_future::wait_until()): Likewise.
1078         (__future_base::_Async_state): Replace with _Async_state_common
1079         class for non-dependent functionality and _Async_state_impl class
1080         template for dependent functionality.
1081         (__future_base::_Async_state_common::_M_join): Serialize attempts to
1082         join thread.
1083         (__future_base::_Async_state_common::_M_run_deferred): Join.
1084         (__future_base::_Async_state::_M_do_run): Replace with lambda.
1085         * src/c++11/future.cc (__future_base::_Async_state_common): Define
1086         destructor, so key function is in the library.
1087         * config/abi/pre/gnu.ver: Add exports for ~_Async_state_common.
1088         * testsuite/30_threads/packaged_task/members/get_future.cc: Expect
1089         future_status return instead of bool.
1090         * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise.
1091         * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise.
1092         * testsuite/30_threads/future/members/wait_until.cc: Likewise.
1093         * testsuite/30_threads/future/members/wait_for.cc: Likewise.
1094         * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
1095         * testsuite/30_threads/promise/members/set_value3.cc: Likewise.
1096         * testsuite/30_threads/promise/members/swap.cc: Likewise.
1097
1098 2012-01-30  Tom Tromey  <tromey@redhat.com>
1099
1100         PR libstdc++/51649:
1101         * testsuite/libstdc++-prettyprinters/debug.cc: New file.
1102         * testsuite/lib/gdb-test.exp (regexp-test): New proc.
1103         (note-test): Update.
1104         (gdb-test): Handle regexp tests.  Add some logging.
1105         * testsuite/libstdc++-prettyprinters/simple.cc: Compile with -O0.
1106         (placeholder, use): Remove.
1107         (main): Add tests for deque, list, map, and set iterators.  Add
1108         tests for slist and slist iterator.
1109         * testsuite/libstdc++-prettyprinters/48362.cc (main): Handle __7
1110         namespace.
1111         * python/libstdcxx/v6/printers.py (StdListPrinter.children): Use
1112         the type's _Node typedef.
1113         (StdListIteratorPrinter.to_string): Change how node type is
1114         computed.
1115         (StdSlistPrinter.children): Use the type's _Node typedef.
1116         (StdSlistIteratorPrinter.to_string): Likewise.
1117         (StdRbtreeIteratorPrinter.to_string): Use the type's _Link_type
1118         typedef.
1119         (StdMapPrinter.children): Change how the node's type is computed.
1120         (StdSetPrinter.children): Likewise.
1121         (StdForwardListPrinter.children): Use the type's _Node typedef.
1122         (Printer.add_version): New method.
1123         (Printer.add_container): New method.
1124         (build_libstdcxx_dictionary): Handle __7 and __cxx1998
1125         namespaces.
1126         (find_type): New function.
1127
1128 2012-01-27  Paolo Carlini  <paolo.carlini@oracle.com>
1129
1130         PR libstdc++/51795
1131         * include/bits/random.h (linear_congruential_generator): Add
1132         static_assert preventing instantiation for values of 'a' and 'm'
1133         currently handled incorrectly by _Mod::__calc.
1134         * include/bits/random.tcc (seed_seq::generate): Avoid unsafe
1135         uses of _Mod::__calc.
1136
1137 2012-01-27  Jakub Jelinek  <jakub@redhat.com>
1138
1139         PR libstdc++/51798
1140         * config/cpu/generic/atomicity_builtins/atomicity.h
1141         (__exchange_and_add, __atomic_add): Use __atomic_fetch_add
1142         with __ATOMIC_ACQ_REL semantics instead of __sync_fetch_and_add.
1143         * include/ext/atomicity.h (__exchange_and_add, __atomic_add):
1144         Likewise.
1145
1146 2011-01-27  Rafael Avila de Espindola  <rafael.espindola@gmail.com>
1147
1148         * libsupc++/typeinfo: Correctly match #pragma GCC visibility
1149         pop with #pragma GCC visibility push.
1150
1151 2012-01-27  Benjamin Kosnik  <bkoz@redhat.com>
1152             Matthias Klose  <doko@ubuntu.com>
1153
1154         * configure.ac (GLIBCXX_ENABLE_DEBUG_FLAGS): Use -gdwarf-4 -g3 -O0.
1155         * configure.in: Regenerated.
1156         * src/Makefile.am (all-once, install-data-once): New rules.
1157         (all-local, install-data-local): Use them.
1158         (build-debug, install-debug): Tweak.
1159         * src/Makefile.in: Regenerate.
1160
1161 2012-01-27  Richard Henderson  <rth@redhat.com>
1162
1163         * include/bits/atomic_base.h (__atomic_flag_base): Define _M_i
1164         based on the value of __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
1165         (ATOMIC_FLAG_INIT): Initialize with 0, not false.
1166         (atomic_flag::atomic_flag): Use __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
1167
1168 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
1169
1170         PR bootstrap/51985
1171         * src/c++98/Makefile.am (libc__98_la_SOURCES,
1172         libc__98convenience_la_SOURCES): Remove $(inst_sources).
1173         * src/c++98/Makefile.in: Regenerated.
1174
1175 2012-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
1176
1177         * testsuite/20_util/system_clock/1.cc: Add dg-require-time.
1178         * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: Likewise.
1179         * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: Likewise.
1180         * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: Likewise.
1181         * testsuite/27_io/basic_istream/readsome/wchar_t/6746-2.cc: Add
1182         dg-require-fileio.
1183         * testsuite/27_io/basic_istream/seekg/wchar_t/fstream.cc: Likewise.
1184         * testsuite/27_io/basic_istream/tellg/wchar_t/1.cc: Likewise.
1185         * testsuite/27_io/basic_istream/tellg/wchar_t/fstream.cc: Likewise.
1186         * testsuite/27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc:
1187         Likewise.
1188         * testsuite/27_io/basic_ostream/tellp/wchar_t/1.cc: Likewise.
1189
1190 2012-01-25  Matthias Klose  <doko@ubuntu.com>
1191
1192         * testsuite/30_threads/condition_variable_any/requirements: Remove
1193         empty directory.
1194
1195 2012-01-23  Benjamin Kosnik  <bkoz@redhat.com>
1196
1197         * src/Makefile.am (libstdc++convenience.la): Correct stamp rule, copy.
1198         * src/Makefile.in: Regenerate.
1199
1200 2012-01-23  Benjamin Kosnik  <bkoz@redhat.com>
1201
1202         PR libstdc++/49829
1203         Add libc++98convenience.la, libc++11convenience.la.
1204         * src/c++98: New directory.
1205         * src/c++11: New directory.
1206         * acinclude.m4: (GLIBCXX_CONFIGURE): Add src-c++98, src-c++11.
1207         * configure: Regenerated.
1208         * Makefile.am (hosted_source): Add src-c++98, src-c++11 to SUBDIRS.
1209         * Makefile.in: Regenerate.
1210         * libsupc++/Makefile.am (AM_CXXFLAGS): USe XTEMPLATE_FLAGS for
1211         -fno-implicit-templates.
1212         * libsupc++/Makefile.in: Regenerate.
1213         * src/Makefile.am (inst_sources): Move... C++11 files into
1214         separate directory for libstdc++11convenience.la. Files are:
1215         fstream-inst.cc, string-inst.cc, wlocale-inst.cc, wstring-inst.cc).
1216         (sources): Move C++11 files. Files are: compatibility-c++0x.cc,
1217         compatibility-atomic-c++0x.cc, debug.cc, functexcept.cc,
1218         functional.cc, hash_c++0x.cc, hashtable_c++0x.cc, limits.cc,
1219         system_error.cc, placeholders.cc, regex.cc, shared_ptr.cc,
1220         mutex.cc, condition_variable.cc, chrono.cc, thread.cc, future.cc.
1221         (libstdc++convenience.la): Add new target.
1222         (SUBDIRS): Add c++11, c++98.
1223         * src/Makefile.in: Regenerate.
1224         * src/c++11/Makefile.am: New.
1225         * src/c++11/Makefile.in: Generate.
1226         * src/c++98/Makefile.am: New, C++98 files.
1227         * src/c++98/Makefile.in: Generate.
1228
1229 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1230
1231         libstdc++-v3:
1232         * testsuite/22_locale/num_put/put/char/14220.cc: Don't xfail on
1233         32-bit Solaris 10/x86.
1234         * testsuite/22_locale/num_put/put/wchar_t/14220.cc: Likewise.
1235
1236 2012-01-21  Jonathan Wakely  <jwakely.gcc@gmail.com>
1237
1238         PR libstdc++/50982
1239         * testsuite/30_threads/*: Add powerpc-ibm-aix* to target selectors.
1240
1241 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
1242
1243         PR libstdc++/51845
1244         * include/bits/hashtable.h
1245         (_Hashtable<>::erase(const_iterator, const_iterator)): Also update
1246         _M_buckets[__n_bkt] if __is_bucket_begin.
1247         * testsuite/23_containers/unordered_multimap/erase/51845-multimap.cc:
1248         New test.
1249
1250 2012-01-18  Benjamin Kosnik  <bkoz@redhat.com>
1251
1252         * acinclude (GLIBCXX_CONFIGURE_DOCBOOK): Fix quoting.
1253
1254 2012-01-18  Benjamin Kosnik  <bkoz@redhat.com>
1255
1256         * configure.ac: Move epub checks...
1257         * acinclude (GLIBCXX_CONFIGURE_DOCBOOK): ...here, use
1258         test -f instead of AC_CHECK_FILES.
1259
1260 2012-01-18  François Dumont  <fdumont@gcc.gnu.org>
1261             Roman Kononov  <roman@binarylife.net>
1262
1263         PR libstdc++/51866
1264         * include/bits/hashtable.h (_Hashtable<>::_M_insert(_Arg, false_type)):
1265         Do not keep a reference to a potentially moved instance.
1266         * testsuite/23_containers/unordered_multiset/insert/51866.cc: New.
1267         * testsuite/23_containers/unordered_multimap/insert/51866.cc: New.
1268
1269 2012-01-17  Benjamin Kosnik  <bkoz@redhat.com>
1270
1271         * doc/html/*: Regenerate.
1272
1273 2012-01-17  Benjamin Kosnik  <bkoz@redhat.com>
1274
1275         * configure.ac (BUILD_EPUB): Adjust for epub3.
1276         * configure: Regenerate.
1277         * Makefile.in: Same.
1278         * doc/Makefile.am (stamp-epub-docbook): Update for epub3.
1279         * doc/Makefile.in: Regenerate.
1280         * include/Makefile.in: Same.
1281         * libsupc++/Makefile.in: Same.
1282         * po/Makefile.in: Same.
1283         * python/Makefile.in: Same.
1284         * src/Makefile.in: Same.
1285         * testsuite/Makefile.in: Same.
1286
1287         * doc/xml/manual/documentation_hacking.xml: Update.
1288
1289 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1290
1291         PR target/47852
1292         * configure.host (irix6.5*): Add -lpthread to OPT_LDFLAGS.
1293
1294 2012-01-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
1295
1296         * include/bits/stl_iterator.h (reverse_iterator): Doxygen comments.
1297
1298 2012-01-13  François Dumont  <fdumont@gcc.gnu.org>
1299
1300         * include/bits/hashtable_policy.h (_Hash_node_base): New, use it as
1301         base class of ...
1302         (_Hash_node<Value, true>, _Hash_node<Value, false>): ... those.
1303         * include/bits/hashtable.h (_Hashtable): Replace _M_begin_bucket_index
1304         by _M_before_begin. Review implementation so that we do not need to
1305         look for previous non-empty bucket when inserting nodes.
1306
1307 2012-01-09  Kai Tietz  <ktietz@redhat.com>
1308
1309         PR libstc++/51673 part 2
1310         * config/abi/pre/gnu-versioned-namespace.ver: Adjusted new/delete
1311         operators signature for LLP64 size_t, and adjusted signatures for
1312         mt-allocator using size_t.
1313
1314 2012-01-09  Benjamin Kosnik  <bkoz@redhat.com>
1315
1316         PR libstc++/51673 part 1
1317         * config/abi/pre/gnu-versioned-namespace.ver: Sync cxxabi symbols
1318         with gnu.ver.
1319
1320 2012-01-09  Benjamin Kosnik  <bkoz@redhat.com>
1321
1322         * fragment.am (WARN_CXXFLAGS): Add -Wabi.
1323         * Makefile.in: Regenerate.
1324         * doc/Makefile.in: Same.
1325         * include/Makefile.in: Same.
1326         * libsupc++/Makefile.in: Same.
1327         * src/Makefile.in: Same.
1328         * testsuite/Makefile.in: Same.
1329         * po/Makefile.in: Same.
1330         * python/Makefile.in: Same.
1331
1332 2012-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1333
1334         * python/libstdcxx/v6/printers.py (StdForwardListPrinter): Add.
1335         * testsuite/libstdc++-prettyprinters/cxx11.cc: New.
1336
1337 2012-01-06  Jason Merrill  <jason@redhat.com>
1338
1339         * testsuite/abi/demangle/regression/cw-16.cc (main): Adjust
1340         expected demangling.
1341
1342 2012-01-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
1343
1344         PR libstdc++/51504
1345         * doc/xml/manual/debug.xml: Suggest using symbol interposition
1346         to override symbols using annotation macros.
1347
1348 2012-01-05  François Dumont  <fdumont@gcc.gnu.org>
1349
1350         * include/bits/hashtable_policy.h (_Hashtable_base<>::_M_eq()):
1351         protected rather than private, use it...
1352         * include/bits/hashtable.h (_Hashtable<>::key_eq()): ... here.
1353         * testsuite/23_containers/unordered_set/observers.cc: New.
1354         * testsuite/23_containers/unordered_multiset/observers.cc: New.
1355         * testsuite/23_containers/unordered_map/observers.cc: New.
1356         * testsuite/23_containers/unordered_multimap/observers.cc: New.
1357
1358 2012-01-03  François Dumont  <fdumont@gcc.gnu.org>
1359
1360         * include/bits/hashtable_policy.h (_Ebo_helper<>): Rename to the more
1361         specific _Hashtable_ebo_helper. Hide this implementation detail thanks
1362         to private inheritance.
1363
1364 2012-01-03  Paolo Carlini  <paolo.carlini@oracle.com>
1365
1366         PR c++/51738
1367         * testsuite/23_containers/map/element_access/39901.cc: New.