OSDN Git Service

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