OSDN Git Service

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