OSDN Git Service

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