OSDN Git Service

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