OSDN Git Service

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