OSDN Git Service

2012-04-14 Paolo Carlini <paolo.carlini@oracle.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2012-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
2
3         PR libstdc++/52699
4         * include/bits/random.tcc (independent_bits_engine<>::operator()())
5         Avoid various overflows; use common_type on result_type and
6         _RandomNumberEngine::result_type; avoid floating point computations;
7         other smaller tweaks.
8
9         * include/bits/random.tcc (uniform_int_distribution<>::operator())
10         Use common_type; assume _UniformRandomNumberGenerator::result_type
11         unsigned; tidy.
12
13         * include/bits/stl_algobase.h (__lg(unsigned), __lg(unsigned long),
14         __lg(unsigned long long)): Add.
15
16 2012-04-13  Paolo Carlini  <paolo.carlini@oracle.com>
17
18         * include/debug/safe_iterator.h (_BeforeBeginHelper<>::
19         _S_Is_Beginnest): Add.
20         * include/debug/forward_list (_BeforeBeginHelper<>::
21         _S_Is_Beginnest): Likewise.
22         (_Safe_iterator<>::_M_is_beginnest): Add.
23         * include/debug/safe_iterator.tcc (_Safe_iterator<>::_M_valid_range):
24         Use the latter.
25         * testsuite/23_containers/forward_list/debug/splice_after.cc:
26         Add test.
27
28 2012-04-12  Paolo Carlini  <paolo.carlini@oracle.com>
29
30         * include/bits/forward_list.h (splice_after(const_iterator,
31         forward_list&), splice_after(const_iterator, forward_list&,
32         consst_iterator), splice_after(const_iterator, forward_list&,
33         const_iterator, const_iterator), merge(forward_list&),
34         merge(forward_list&, _Comp)): Add per C++11 as published (and
35         LWG 1310).
36         * include/debug/forward_list: Adjust.
37
38         * include/bits/forward_list.h (splice_after(const_iterator,
39         forward_list&&, const_iterator)): Only declare.
40         (_M_transfer_after): Remove.
41         (_M_splice_after(const_iterator, forward_list&&)): Change signature.
42         (splice_after(const_iterator, forward_list&&, const_iterator,
43         const_iterator)): Use the latter.
44         * include/bits/forward_list.tcc (splice_after(const_iterator,
45         forward_list&&, const_iterator)): Define here.
46         (_M_splice_after): Define, use throughout.
47
48         * include/bits/forward_list.h (insert_after(const_iterator,
49         std::initializer_list<_Tp>)): Forward to insert_after(const_iterator,
50         _InputIterator, _InputIterator).
51         * include/bits/forward_list.tcc: Remove definition.
52
53         * testsuite/23_containers/forward_list/modifiers/6.cc: New.
54         * testsuite/23_containers/forward_list/operations/1.cc: Adjust.
55
56         * testsuite/23_containers/forward_list/requirements/dr438/
57         assign_neg.cc: Adjust dg-error line number.
58         * testsuite/23_containers/forward_list/requirements/dr438/
59         insert_neg.cc: Likewise.
60         * testsuite/23_containers/forward_list/requirements/dr438/
61         constructor_1_neg.cc: Likewise.
62         * testsuite/23_containers/forward_list/requirements/dr438/
63         constructor_2_neg.cc: Likewise.
64
65 2012-04-12   Jeffrey Yasskin  <jyasskin@google.com>
66
67         PR libstdc++/52822
68         * include/bits/stl_algo.h (__find_if_not): Expose in C++98 mode.
69         (__find_if_not_n): Like __find_if_not, but works on and updates a
70         counted range instead of a bounded range.
71         (stable_partition): Guarantee !__pred(*__first) in call to
72         __stable_partition_adaptive() or __inplace_stable_partition().
73         (__stable_partition_adaptive): Use new precondition to avoid
74         moving/copying objects onto themselves.  Guarantee new
75         precondition to recursive calls.
76         (__inplace_stable_partition): Use new precondition to simplify
77         base case, remove __last parameter.  Guarantee new precondition to
78         recursive calls.
79         * testsuite/25_algorithms/stable_partition/moveable.cc (test02):
80         Test a sequence that starts with a value matching the predicate.
81         * testsuite/25_algorithms/stable_partition/pr52822.cc: Test
82         vectors, which have a destructive self-move-assignment.
83
84 2012-04-12  Paolo Carlini  <paolo.carlini@oracle.com>
85
86         PR libstdc++/52942
87         * include/bits/stl_function.h (_Identity, _Select1st, _Select2nd):
88         In C++11 mode do not derive from std::unary_function.
89         * include/ext/functional (identity, select1st, select2nd): Adjust.
90         * testsuite/23_containers/unordered_map/requirements/52942.cc: New.
91         * testsuite/23_containers/unordered_set/requirements/52942.cc: Likewise.
92
93 2012-04-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
94
95         PR libstdc++/52924
96         * include/bits/shared_ptr_base.h (_Sp_counted_deleter): Add
97         user-defined destructor.
98         (_Sp_counted_inplace): Likewise.
99         * testsuite/20_util/shared_ptr/cons/52924.cc: New.
100         * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error
101         line numbers.
102
103 2012-04-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
104
105         * testsuite/performance/30_threads/future/polling.cc: Adjust.
106
107 2012-04-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
108
109         PR libstdc++/52591
110         * include/bits/stl_vector.h (vector::operator=(vector&&)): Dispatch
111         to _M_move_assign depending on whether allocator is moved.
112         (vector::_M_move_assign): Add overloaded functions.
113         * testsuite/23_containers/vector/52591.cc: New.
114         * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
115         Adjust dg-error line number.
116         * testsuite/23_containers/vector/requirements/dr438/
117         constructor_1_neg.cc:
118         Likewise.
119         * testsuite/23_containers/vector/requirements/dr438/
120         constructor_2_neg.cc:
121         Likewise.
122         * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
123         Likewise.
124
125 2012-04-09  François Dumont  <fdumont@gcc.gnu.org>
126
127         PR libstdc++/52476
128         * include/bits/hashtable.h (_Hashtable<>::_M_rehash_aux): Add.
129         (_Hashtable<>::_M_rehash): Use the latter.
130         * testsuite/23_containers/unordered_multimap/insert/52476.cc: New.
131         * testsuite/23_containers/unordered_multiset/insert/52476.cc: New.
132
133 2012-04-09  Terry Guo  <terry.guo@arm.com>
134
135         Backport from mainline
136         2012-03-28  Terry Guo  <terry.guo@arm.com>
137
138         * testsuite/Makefile.am (TEST_GCC_EXEC_PREFIX): New.
139         * testsuite/Makefile.in: Regenerated.
140
141 2012-03-30  Jeffrey Yasskin  <jyasskin@gcc.gnu.org>
142             Paolo Carlini  <paolo.carlini@oracle.com>
143
144         PR libstdc++/52799
145         * include/bits/deque.tcc (emplace): Fix thinko, replace push_front
146         -> emplace_front, and likewise for *_back.
147         * testsuite/23_containers/deque/modifiers/emplace/52799.cc: New.
148         * testsuite/23_containers/list/modifiers/emplace/52799.cc: Likewise.
149         * testsuite/23_containers/vector/modifiers/emplace/52799.cc: Likewise.
150
151 2012-03-23  David S. Miller  <davem@davemloft.net>
152
153         * config/abi/post/sparc-linux-gnu/baseline_symbols.txt: Update.
154
155 2012-03-23  Paolo Carlini  <paolo.carlini@oracle.com>
156
157         * include/bits/forward_list.h: Fix comments.
158
159 2012-03-23  Paweł Sikora  <pawel.sikora@agmk.net>
160
161         PR libstdc++/52540
162         * include/Makefile.am (c++config.h): Fix sed rule to not break
163         the _GLIBCXX_EXTERN_TEMPLATE redefinition.
164         * include/Makefile.in: Regenerate.
165
166 2012-03-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
167
168         PR libstdc++/52433
169         * include/debug/safe_iterator.h (_Safe_iterator): Add move
170         constructor and move assignment operator.
171         * testsuite/23_containers/vector/debug/52433.cc: New.
172
173 2012-03-22  Paolo Carlini  <paolo.carlini@oracle.com>
174
175         * include/std/array (array<>::at(size_type) const): Fix version
176         for undefined __EXCEPTIONS.
177
178 2012-03-22  Release Manager
179
180         * GCC 4.7.0 released.
181
182 2012-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
183
184         PR libstdc++/52456
185         * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.
186
187 2012-03-09  Andreas Schwab  <schwab@linux-m68k.org>
188
189         * config/locale/gnu/monetary_members.cc
190         (moneypunct<char,true>::_M_initialize_moneypunct): Throw caught
191         exception again.
192         (moneypunct<char,false>::_M_initialize_moneypunct): Likewise.
193         * testsuite/22_locale/locale/cons/12352.cc: Also test en_US
194         locale.
195
196 2012-03-02  Benjamin Kosnik  <bkoz@redhat.com>
197
198         * include/c_global/cstdio: Remove extraneous extern.
199         * include/c_std/cstdio: Same.
200
201 2012-03-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
202
203         * config/abi/post/solaris2.8/baseline_symbols.txt: Regenerate.
204         * config/abi/post/solaris2.8/sparcv9/baseline_symbols.txt: Likewise.
205         * config/abi/post/solaris2.10/baseline_symbols.txt: Likewise.
206         * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
207         * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
208
209 2012-03-01  Benjamin Kosnik  <bkoz@redhat.com>
210             Ramana Radhakrishnan <ramana@gcc.gnu.org>
211
212         PR libstdc++/51785
213         * acinclude.m4 (GLIBCXX_CHECK_STDIO_PROTO): New.
214         * configure.ac: Call it.
215         * configure: Regenerate.
216         * config.h.in: Same.
217         * config/os/gnu-linux/os_defines.h: Conditionally undefine
218         _GLIBCXX_HAVE_GETS.
219         * include/c_global/cstdio: Conditionally declare deprecated gets.
220         * include/c_std/cstdio: Same.
221
222 2012-03-01  Michael Spertus  <mike_spertus@symantec.com>
223
224         * include/tr2/type_traits (typelist): To __reflection_typelist.
225         (first, rest, empty): Remove.
226
227 2012-03-01  Benjamin Kosnik  <bkoz@redhat.com>
228
229         * testsuite/Makefile.am (CLEANFILES): Add *.gdb.
230         * testsuite/Makefile.in: Regenerate.
231
232 2012-02-29  H.J. Lu  <hongjiu.lu@intel.com>
233
234         * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
235
236 2012-02-28  Benjamin Kosnik  <bkoz@redhat.com>
237
238         PR libstdc++/52191
239         * testsuite/util/testsuite_abi.cc (compare_symbols): Check new
240         symbols added into the latest version. Mark tls entities as
241         undesignated.
242
243 2012-02-28  Jakub Jelinek  <jakub@redhat.com>
244
245         PR bootstrap/52414
246         * src/Makefile.am (libstdc++-symbols.ver): Only remove comment lines
247         if they are at the beginning of lines (with optional whitespace before
248         #).
249         * src/Makefile.in: Regenerated.
250
251 2012-02-27  Jakub Jelinek  <jakub@redhat.com>
252
253         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
254         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
255         * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
256         Likewise.
257         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
258         * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise.
259         * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
260         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
261         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
262         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise.
263
264 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
265
266         PR libstdc++/52188
267         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Remove symvers_renaming.
268         Remove ENABLE_SYMVERS_SOL2.
269         * configure: Regenerate.
270         * src/Makefile.am [ENABLE_SYMVERS] (libstdc++-symbols.ver):
271         Postprocess mapfile.
272         [ENABLE_SYMVERS_GNU]: Remove ENABLE_SYMVERS_SOL2 handling.
273         * src/Makefile.in: Regenerate.
274
275         * config/abi/pre/gnu.ver (GLIBCXX_3.4.5) [!__sun__ && !__svr4__]:
276         Don't export
277         _ZNSt19istreambuf_iteratorI[cw]St11char_traitsI[cw]EEppEv.
278
279 2012-02-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
280
281         PR testsuite/52201
282         * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
283         Require atomic builtins.
284         * testsuite/29_atomics/atomic/operators/51811.cc: Likewise.
285
286 2012-02-23  Jason Merrill  <jason@redhat.com>
287
288         * include/bits/locale_facets.h (class num_get): Undo reordering of
289         do_get virtual functions.
290
291 2012-02-14  Edward Smith-Rowland  <3dw4rd@verizon.net>
292
293         * testsuite/26_numerics/random/
294         uniform_real_distribution/requirements/typedefs.cc: Check param_type.
295         * testsuite/26_numerics/random/
296         piecewise_constant_distribution/requirements/typedefs.cc: Ditto.
297         * testsuite/26_numerics/random/
298         chi_squared_distribution/requirements/typedefs.cc: Ditto.
299         * testsuite/26_numerics/random/
300         normal_distribution/requirements/typedefs.cc: Ditto.
301         * testsuite/26_numerics/random/
302         uniform_int_distribution/requirements/typedefs.cc: Ditto.
303         * testsuite/26_numerics/random/
304         poisson_distribution/requirements/typedefs.cc: Ditto.
305         * testsuite/26_numerics/random/
306         bernoulli_distribution/requirements/typedefs.cc: Ditto.
307         * testsuite/26_numerics/random/
308         discrete_distribution/requirements/typedefs.cc: Ditto.
309         * testsuite/26_numerics/random/
310         weibull_distribution/requirements/typedefs.cc: Ditto.
311         * testsuite/26_numerics/random/
312         cauchy_distribution/requirements/typedefs.cc: Ditto.
313         * testsuite/26_numerics/random/
314         negative_binomial_distribution/requirements/typedefs.cc: Ditto.
315         * testsuite/26_numerics/random/
316         gamma_distribution/requirements/typedefs.cc: Ditto.
317         * testsuite/26_numerics/random/
318         fisher_f_distribution/requirements/typedefs.cc: Ditto.
319         * testsuite/26_numerics/random/
320         exponential_distribution/requirements/typedefs.cc: Ditto.
321         * testsuite/26_numerics/random/
322         binomial_distribution/requirements/typedefs.cc: Ditto.
323         * testsuite/26_numerics/random/
324         lognormal_distribution/requirements/typedefs.cc: Ditto.
325         * testsuite/26_numerics/random/
326         extreme_value_distribution/requirements/typedefs.cc: Ditto.
327         * testsuite/26_numerics/random/
328         piecewise_linear_distribution/requirements/typedefs.cc: Ditto.
329         * testsuite/26_numerics/random/
330         student_t_distribution/requirements/typedefs.cc: Ditto.
331         * testsuite/26_numerics/random/
332         geometric_distribution/requirements/typedefs.cc: Ditto.
333
334 2012-02-21  Benjamin Kosnik  <bkoz@redhat.com>
335
336         PR libstdc++/50349
337         * config/abi/pre/gnu.ver: Only one local.
338         * config/abi/pre/gnu-versioned-namespace.ver: Same.
339
340 2012-02-21  Paolo Carlini  <paolo.carlini@oracle.com>
341
342         PR libstdc++/52317 (cont)
343         * include/profile/unordered_map: Ad Library Exception comment.
344         * include/profile/set: Likewise.
345         * include/profile/base.h: Likewise.
346         * include/profile/impl/profiler_list_to_slist.h: Likewise.
347         * include/profile/impl/profiler_container_size.h: Likewise.
348         * include/profile/impl/profiler_vector_size.h: Likewise.
349         * include/profile/impl/profiler_hash_func.h: Likewise.
350         * include/profile/impl/profiler_trace.h: Likewise.
351         * include/profile/impl/profiler_list_to_vector.h: Likewise.
352         * include/profile/impl/profiler_vector_to_list.h: Likewise.
353         * include/profile/impl/profiler.h: Likewise.
354         * include/profile/impl/profiler_state.h: Likewise.
355         * include/profile/impl/profiler_map_to_unordered_map.h: Likewise.
356         * include/profile/impl/profiler_algos.h: Likewise.
357         * include/profile/impl/profiler_hashtable_size.h: Likewise.
358         * include/profile/impl/profiler_node.h: Likewise.
359         * include/profile/vector: Likewise.
360         * include/profile/unordered_set: Likewise.
361         * include/profile/map.h: Likewise.
362         * include/profile/map: Likewise.
363
364 2012-02-21  Paolo Carlini  <paolo.carlini@oracle.com>
365
366         PR libstdc++/52317
367         * python/Makefile.am: Update boilerplate license text to GPLv3.
368         * include/profile/unordered_map: Likewise.
369         * include/profile/set: Likewise.
370         * include/profile/base.h: Likewise.
371         * include/profile/impl/profiler_list_to_slist.h: Likewise.
372         * include/profile/impl/profiler_container_size.h: Likewise.
373         * include/profile/impl/profiler_vector_size.h: Likewise.
374         * include/profile/impl/profiler_hash_func.h: Likewise.
375         * include/profile/impl/profiler_trace.h: Likewise.
376         * include/profile/impl/profiler_list_to_vector.h: Likewise.
377         * include/profile/impl/profiler_vector_to_list.h: Likewise.
378         * include/profile/impl/profiler.h: Likewise.
379         * include/profile/impl/profiler_state.h: Likewise.
380         * include/profile/impl/profiler_map_to_unordered_map.h: Likewise.
381         * include/profile/impl/profiler_algos.h: Likewise.
382         * include/profile/impl/profiler_hashtable_size.h: Likewise.
383         * include/profile/impl/profiler_node.h: Likewise.
384         * include/profile/vector: Likewise.
385         * include/profile/unordered_set: Likewise.
386         * include/profile/map.h: Likewise.
387         * include/profile/map: Likewise.
388         * testsuite/21_strings/basic_string/numeric_conversions/
389         wchar_t/dr1261.cc: Likewise.
390         * testsuite/21_strings/basic_string/numeric_conversions/
391         char/dr1261.cc: Likewise.
392         * testsuite/20_util/reference_wrapper/invoke-2.cc: Likewise.
393
394 2012-02-20  Paolo Carlini  <paolo.carlini@oracle.com>
395
396         PR libstdc++/52241
397         * src/c++98/tree.cc (local_Rb_tree_increment,
398         local_Rb_tree_decrement): Add.
399         (_Rb_tree_increment(const _Rb_tree_node_base*),
400         _Rb_tree_decrement(const _Rb_tree_node_base*)): Use the latter.
401         (_Rb_tree_increment(_Rb_tree_node_base*),
402         _Rb_tree_decrement(_Rb_tree_node_base*)): New.
403
404 2012-02-20  Paolo Carlini  <paolo.carlini@oracle.com>
405
406         PR libstdc++/52309
407         * include/bits/hashtable_policy.h (_Equality_base<, true,>::
408         _M_equal(const _Hashtable&)): Compare values with operator==.
409         * testsuite/23_containers/unordered_set/operators/52309.cc: New.
410
411 2012-02-17  Benjamin Kosnik  <bkoz@redhat.com>
412
413         PR libstdc++/51798 continued.
414         * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Grep for
415         __atomic_, not __sync.
416         * configure: Regenerated.
417
418 2012-02-17  Benjamin Kosnik  <bkoz@redhat.com>
419
420         PR libstdc++/47058
421         * acinclude.m4 (GLIBCXX_ENABLE_WERROR): New.
422         (GLIBCXX_EXPORT_FLAGS): Add -Wabi to WARN_FLAGS
423         * configure.ac: Use it.
424         * fragment.am: Set WERROR_FLAG conditionally on --disable-werror.
425         * configure: Regenerate.
426         * python/Makefile.in: Same.
427         * Makefile.in: Same.
428         * doc/Makefile.in: Same.
429         * include/Makefile.in: Same.
430         * po/Makefile.in: Same.
431         * python/Makefile.in: Same.
432         * src/Makefile.in: Same.
433         * src/c++11/Makefile.in: Same.
434         * src/c++98/Makefile.in: Same.
435         * testsuite/Makefile.in: Same.
436
437 2012-02-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
438
439         PR libstdc++/52189
440         * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Handle
441         --enable-libstdcxx-threads.
442         Disable on Solaris 8/9 with symbol versioning.
443         * configure.ac (GLIBCXX_CHECK_GTHREADS): Move after
444         GLIBCXX_ENABLE_SYMVERS.
445         * configure: Regenerate.
446         * doc/xml/manual/configure.xml (--enable-libstdcxx-threads): Explain.
447
448 2012-02-15  DJ Delorie  <dj@redhat.com>
449
450         * src/c++98/locale.cc (locale::facet::_S_get_c_locale): Fix typo.
451
452 2012-02-15  Benjamin Kosnik  <bkoz@redhat.com>
453
454         PR libstdc++/51368
455         * acinclude.m4 (GLIBCXX_ENABLE_PYTHON): New.
456         * configure.ac: Use it.
457         * python/Makefile.am: Same.
458         * configure: Regenerate.
459         * python/Makefile.in: Regenerate.
460         * Makefile.in: Same.
461         * doc/Makefile.in: Same.
462         * include/Makefile.in: Same.
463         * po/Makefile.in: Same.
464         * src/Makefile.in: Same.
465         * src/c++11/Makefile.in: Same.
466         * src/c++98/Makefile.in: Same.
467         * testsuite/Makefile.in: Same.
468
469 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
470
471         * 30_threads/thread/native_handle/typesizes.cc: Do not run on cygwin.
472
473 2012-02-14  Tom Tromey  <tromey@redhat.com>
474
475         * testsuite/libstdc++-prettyprinters/cxx11.cc (main): Add new
476         tests.
477         * python/libstdcxx/v6/printers.py (Tr1HashtableIterator.__init__):
478         Rewrite.
479         (Tr1HashtableIterator.update): Remove.
480         (Tr1HashtableIterator.next): Rewrite.
481
482 2012-02-13  Benjamin Kosnik  <bkoz@redhat.com>
483
484         * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line numbers.
485         * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Same.
486
487 2012-02-13  Richard Henderson  <rth@redhat.com>
488
489         PR libstdc++/51798 continued.
490         * include/bits/shared_ptr_base.h
491         (_Sp_counted_base<_S_atomic>::_M_add_ref_lock): Hoist initial load
492         outside compare_exchange loop.
493         * include/tr1/shared_ptr.h: Same.
494         * include/parallel/compatibility.h (__compare_and_swap_32): Use strong
495         version of compare_exchange.
496         (__compare_and_swap_64): Same.
497         * include/profile/impl/profiler_state.h (__gnu_profile::__turn): Same.
498         * libsupc++/guard.cc (__cxa_guard_acquire): Same.
499
500 2012-02-10  Benjamin Kosnik  <bkoz@redhat.com>
501             Jonathan Wakely  <jwakely.gcc@gmail.com>
502
503         PR libstdc++/51798 continued.
504         * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Use __atomic_*
505         builtins instead of __sync_* builtins for atomic functionality.
506         * include/bits/shared_ptr_base.h: Same.
507         * include/parallel/compatibility.h: Same.
508         * include/profile/impl/profiler_state.h: Same.
509         * include/tr1/shared_ptr.h: Same.
510         * libsupc++/eh_ptr.cc: Same.
511         * libsupc++/eh_throw.cc: Same.
512         * libsupc++/eh_tm.cc: Same.
513         * libsupc++/guard.cc: Same.
514         * configure: Regenerated.
515         * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line numbers.
516         * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Same.
517
518 2012-02-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
519
520         PR libstdc++/51296
521         * config/os/osf/ctype_base.h,
522         config/os/osf/ctype_configure_char.cc,
523         config/os/osf/ctype_inline.h, config/os/osf/error_constants.h:
524         Copy from config/os/generic.
525         * config/os/osf/os_defines.h: Likewise.
526         (_GTHREAD_USE_MUTEX_INIT_FUNC, _GTHREAD_USE_COND_INIT_FUNC):
527         Define.
528         * configure.host <osf*>: Use os/osf for os_include_dir.
529
530 2012-02-10  Uros Bizjak  <ubizjak@gmail.com>
531
532         * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Regenerated.
533
534 2012-02-09  Jonathan Wakely  <jwakely.gcc@gmail.com>
535
536         * doc/xml/manual/documentation_hacking.xml: Fix invalid attribute.
537
538 2012-02-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
539
540         * doc/xml/manual/status_cxx2011.xml: Update C++11 status table.
541
542 2012-02-07  Benjamin Kosnik  <bkoz@redhat.com>
543
544         * doc/doxygen/user.cfg.in: Update to doxygen 1.7.6.1.
545         * doc/xml/manual/documentation_hacking.xml: Update.
546
547 2012-02-07  Jonathan Wakely  <jwakely.gcc@gmail.com>
548
549         * testsuite/30_threads/call_once/39909.cc: Remove duplicate target
550         selector.
551         * testsuite/30_threads/call_once/49668.cc: Likewise.
552         * testsuite/30_threads/call_once/call_once1.cc: Likewise.
553         * testsuite/30_threads/lock_guard/cons/1.cc: Likewise.
554         * testsuite/30_threads/mutex/cons/1.cc: Likewise.
555         * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise.
556         * testsuite/30_threads/mutex/lock/1.cc: Likewise.
557         * testsuite/30_threads/mutex/native_handle/1.cc: Likewise.
558         * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise.
559         * testsuite/30_threads/mutex/try_lock/1.cc: Likewise.
560         * testsuite/30_threads/mutex/try_lock/2.cc: Likewise.
561         * testsuite/30_threads/mutex/unlock/1.cc: Likewise.
562         * testsuite/30_threads/unique_lock/cons/1.cc: Likewise.
563         * testsuite/30_threads/unique_lock/cons/2.cc: Likewise.
564         * testsuite/30_threads/unique_lock/cons/3.cc: Likewise.
565         * testsuite/30_threads/unique_lock/cons/4.cc: Likewise.
566         * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
567         * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
568         * testsuite/30_threads/unique_lock/locking/1.cc: Likewise.
569         * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
570         * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
571         * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
572         * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
573         * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
574
575 2012-02-07  Jonathan Wakely  <jwakely.gcc@gmail.com>
576
577         PR libstdc++/51296
578         * include/std/mutex (__mutex_base::~__mutex_base): Declare noexcept.
579         * src/c++11/condition_variable.cc (condition_variable): Use macro for
580         initializer function.
581
582         PR libstdc++/51906
583         * config/os/bsd/darwin/os_defines.h: Disable static initializer for
584         recursive mutexes.
585
586 2012-02-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
587
588         PR libstdc++/52128
589         * src/c++11/future.cc: Add explicit instantiation.
590
591 2012-02-06  François Dumont  <fdumont@gcc.gnu.org>
592
593         * include/debug/safe_iterator.h
594         (_Safe_iterator::_M_before_dereferenceable): Avoid the expensive
595         creation of a _Safe_iterator instance to do the check.
596
597 2012-02-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
598
599         PR libstdc++/52104
600         * include/std/future (__future_base::_Async_state_common): Define
601         destructor inline for targets without TLS.
602         * src/c++11/future.cc (__future_base::_Async_state_common): Only
603         define destructor for TLS targets.
604
605 2012-02-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
606
607         PR libstdc++/51956
608         * python/libstdcxx/v6/printers.py (StdPointerPrinter): Rename to...
609         (SharedPointerPrinter): This. Also show weak count.
610         * testsuite/libstdc++-prettyprinters/shared_ptr.cc: New.
611
612 2012-02-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
613
614         * testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Modify to
615         PASS instead of XFAIL.
616
617 2012-02-05  Jeffrey Yasskin  <jyasskin@gcc.gnu.org>
618             Paolo Carlini  <paolo.carlini@oracle.com>
619
620         PR libstdc++/52119
621         * include/std/limits (__glibcxx_min): Fix to avoid undefined behavior.
622
623 2012-02-03  Benjamin Kosnik  <bkoz@redhat.com>
624
625         PR libstdc++/49445
626         * testsuite/29_atomics/atomic/cons/49445.cc: Add.
627
628 2012-02-03  Benjamin Kosnik  <bkoz@redhat.com>
629
630         PR libstdc++/51811
631         * include/bits/atomic_base.h (atomic<_Tp*>): Fix offsets.
632         * testsuite/29_atomics/atomic/operators/51811.cc: New.
633         * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: New.
634
635 2012-02-03  Jakub Jelinek  <jakub@redhat.com>
636
637         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
638         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
639         * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
640         Likewise.
641         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
642         * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise.
643         * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
644         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
645         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
646         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise.
647
648 2012-02-02  Benjamin Kosnik  <bkoz@redhat.com>
649
650         PR libstdc++/52068
651         * src/c++11/Makefile.am (toolexeclib_LTLIBRARIES,
652         libc__11_la_SOURCES): Remove.
653         * src/c++11/Makefile.in: Regenerate.
654         * src/c++98/Makefile.am (toolexeclib_LTLIBRARIES,
655         libc__98_la_SOURCES): Remove.
656         * src/c++98/Makefile.in: Regenerate.
657
658 2012-02-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
659
660         PR libstdc++/49204
661         * include/std/future (__future_base::_State_base::wait()): Use lambda
662         expression for predicate and remove redundant test.
663         (__future_base::_State_base::wait_for()): Return future_status and
664         use lambda expression for predicate.
665         (__future_base::_State_base::wait_until()): Likewise.
666         (__basic_future::wait_for(), __basic_future::wait_until()): Likewise.
667         (__future_base::_Async_state): Replace with _Async_state_common
668         class for non-dependent functionality and _Async_state_impl class
669         template for dependent functionality.
670         (__future_base::_Async_state_common::_M_join): Serialize attempts to
671         join thread.
672         (__future_base::_Async_state_common::_M_run_deferred): Join.
673         (__future_base::_Async_state::_M_do_run): Replace with lambda.
674         * src/c++11/future.cc (__future_base::_Async_state_common): Define
675         destructor, so key function is in the library.
676         * config/abi/pre/gnu.ver: Add exports for ~_Async_state_common.
677         * testsuite/30_threads/packaged_task/members/get_future.cc: Expect
678         future_status return instead of bool.
679         * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise.
680         * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise.
681         * testsuite/30_threads/future/members/wait_until.cc: Likewise.
682         * testsuite/30_threads/future/members/wait_for.cc: Likewise.
683         * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
684         * testsuite/30_threads/promise/members/set_value3.cc: Likewise.
685         * testsuite/30_threads/promise/members/swap.cc: Likewise.
686
687 2012-01-30  Tom Tromey  <tromey@redhat.com>
688
689         PR libstdc++/51649:
690         * testsuite/libstdc++-prettyprinters/debug.cc: New file.
691         * testsuite/lib/gdb-test.exp (regexp-test): New proc.
692         (note-test): Update.
693         (gdb-test): Handle regexp tests.  Add some logging.
694         * testsuite/libstdc++-prettyprinters/simple.cc: Compile with -O0.
695         (placeholder, use): Remove.
696         (main): Add tests for deque, list, map, and set iterators.  Add
697         tests for slist and slist iterator.
698         * testsuite/libstdc++-prettyprinters/48362.cc (main): Handle __7
699         namespace.
700         * python/libstdcxx/v6/printers.py (StdListPrinter.children): Use
701         the type's _Node typedef.
702         (StdListIteratorPrinter.to_string): Change how node type is
703         computed.
704         (StdSlistPrinter.children): Use the type's _Node typedef.
705         (StdSlistIteratorPrinter.to_string): Likewise.
706         (StdRbtreeIteratorPrinter.to_string): Use the type's _Link_type
707         typedef.
708         (StdMapPrinter.children): Change how the node's type is computed.
709         (StdSetPrinter.children): Likewise.
710         (StdForwardListPrinter.children): Use the type's _Node typedef.
711         (Printer.add_version): New method.
712         (Printer.add_container): New method.
713         (build_libstdcxx_dictionary): Handle __7 and __cxx1998
714         namespaces.
715         (find_type): New function.
716
717 2012-01-27  Paolo Carlini  <paolo.carlini@oracle.com>
718
719         PR libstdc++/51795
720         * include/bits/random.h (linear_congruential_generator): Add
721         static_assert preventing instantiation for values of 'a' and 'm'
722         currently handled incorrectly by _Mod::__calc.
723         * include/bits/random.tcc (seed_seq::generate): Avoid unsafe
724         uses of _Mod::__calc.
725
726 2012-01-27  Jakub Jelinek  <jakub@redhat.com>
727
728         PR libstdc++/51798
729         * config/cpu/generic/atomicity_builtins/atomicity.h
730         (__exchange_and_add, __atomic_add): Use __atomic_fetch_add
731         with __ATOMIC_ACQ_REL semantics instead of __sync_fetch_and_add.
732         * include/ext/atomicity.h (__exchange_and_add, __atomic_add):
733         Likewise.
734
735 2011-01-27  Rafael Avila de Espindola  <rafael.espindola@gmail.com>
736
737         * libsupc++/typeinfo: Correctly match #pragma GCC visibility
738         pop with #pragma GCC visibility push.
739
740 2012-01-27  Benjamin Kosnik  <bkoz@redhat.com>
741             Matthias Klose  <doko@ubuntu.com>
742
743         * configure.ac (GLIBCXX_ENABLE_DEBUG_FLAGS): Use -gdwarf-4 -g3 -O0.
744         * configure.in: Regenerated.
745         * src/Makefile.am (all-once, install-data-once): New rules.
746         (all-local, install-data-local): Use them.
747         (build-debug, install-debug): Tweak.
748         * src/Makefile.in: Regenerate.
749
750 2012-01-27  Richard Henderson  <rth@redhat.com>
751
752         * include/bits/atomic_base.h (__atomic_flag_base): Define _M_i
753         based on the value of __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
754         (ATOMIC_FLAG_INIT): Initialize with 0, not false.
755         (atomic_flag::atomic_flag): Use __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
756
757 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
758
759         PR bootstrap/51985
760         * src/c++98/Makefile.am (libc__98_la_SOURCES,
761         libc__98convenience_la_SOURCES): Remove $(inst_sources).
762         * src/c++98/Makefile.in: Regenerated.
763
764 2012-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
765
766         * testsuite/20_util/system_clock/1.cc: Add dg-require-time.
767         * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: Likewise.
768         * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: Likewise.
769         * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: Likewise.
770         * testsuite/27_io/basic_istream/readsome/wchar_t/6746-2.cc: Add
771         dg-require-fileio.
772         * testsuite/27_io/basic_istream/seekg/wchar_t/fstream.cc: Likewise.
773         * testsuite/27_io/basic_istream/tellg/wchar_t/1.cc: Likewise.
774         * testsuite/27_io/basic_istream/tellg/wchar_t/fstream.cc: Likewise.
775         * testsuite/27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc:
776         Likewise.
777         * testsuite/27_io/basic_ostream/tellp/wchar_t/1.cc: Likewise.
778
779 2012-01-25  Matthias Klose  <doko@ubuntu.com>
780
781         * testsuite/30_threads/condition_variable_any/requirements: Remove
782         empty directory.
783
784 2012-01-23  Benjamin Kosnik  <bkoz@redhat.com>
785
786         * src/Makefile.am (libstdc++convenience.la): Correct stamp rule, copy.
787         * src/Makefile.in: Regenerate.
788
789 2012-01-23  Benjamin Kosnik  <bkoz@redhat.com>
790
791         PR libstdc++/49829
792         Add libc++98convenience.la, libc++11convenience.la.
793         * src/c++98: New directory.
794         * src/c++11: New directory.
795         * acinclude.m4: (GLIBCXX_CONFIGURE): Add src-c++98, src-c++11.
796         * configure: Regenerated.
797         * Makefile.am (hosted_source): Add src-c++98, src-c++11 to SUBDIRS.
798         * Makefile.in: Regenerate.
799         * libsupc++/Makefile.am (AM_CXXFLAGS): USe XTEMPLATE_FLAGS for
800         -fno-implicit-templates.
801         * libsupc++/Makefile.in: Regenerate.
802         * src/Makefile.am (inst_sources): Move... C++11 files into
803         separate directory for libstdc++11convenience.la. Files are:
804         fstream-inst.cc, string-inst.cc, wlocale-inst.cc, wstring-inst.cc).
805         (sources): Move C++11 files. Files are: compatibility-c++0x.cc,
806         compatibility-atomic-c++0x.cc, debug.cc, functexcept.cc,
807         functional.cc, hash_c++0x.cc, hashtable_c++0x.cc, limits.cc,
808         system_error.cc, placeholders.cc, regex.cc, shared_ptr.cc,
809         mutex.cc, condition_variable.cc, chrono.cc, thread.cc, future.cc.
810         (libstdc++convenience.la): Add new target.
811         (SUBDIRS): Add c++11, c++98.
812         * src/Makefile.in: Regenerate.
813         * src/c++11/Makefile.am: New.
814         * src/c++11/Makefile.in: Generate.
815         * src/c++98/Makefile.am: New, C++98 files.
816         * src/c++98/Makefile.in: Generate.
817
818 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
819
820         libstdc++-v3:
821         * testsuite/22_locale/num_put/put/char/14220.cc: Don't xfail on
822         32-bit Solaris 10/x86.
823         * testsuite/22_locale/num_put/put/wchar_t/14220.cc: Likewise.
824
825 2012-01-21  Jonathan Wakely  <jwakely.gcc@gmail.com>
826
827         PR libstdc++/50982
828         * testsuite/30_threads/*: Add powerpc-ibm-aix* to target selectors.
829
830 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
831
832         PR libstdc++/51845
833         * include/bits/hashtable.h
834         (_Hashtable<>::erase(const_iterator, const_iterator)): Also update
835         _M_buckets[__n_bkt] if __is_bucket_begin.
836         * testsuite/23_containers/unordered_multimap/erase/51845-multimap.cc:
837         New test.
838
839 2012-01-18  Benjamin Kosnik  <bkoz@redhat.com>
840
841         * acinclude (GLIBCXX_CONFIGURE_DOCBOOK): Fix quoting.
842
843 2012-01-18  Benjamin Kosnik  <bkoz@redhat.com>
844
845         * configure.ac: Move epub checks...
846         * acinclude (GLIBCXX_CONFIGURE_DOCBOOK): ...here, use
847         test -f instead of AC_CHECK_FILES.
848
849 2012-01-18  François Dumont  <fdumont@gcc.gnu.org>
850             Roman Kononov  <roman@binarylife.net>
851
852         PR libstdc++/51866
853         * include/bits/hashtable.h (_Hashtable<>::_M_insert(_Arg, false_type)):
854         Do not keep a reference to a potentially moved instance.
855         * testsuite/23_containers/unordered_multiset/insert/51866.cc: New.
856         * testsuite/23_containers/unordered_multimap/insert/51866.cc: New.
857
858 2012-01-17  Benjamin Kosnik  <bkoz@redhat.com>
859
860         * doc/html/*: Regenerate.
861
862 2012-01-17  Benjamin Kosnik  <bkoz@redhat.com>
863
864         * configure.ac (BUILD_EPUB): Adjust for epub3.
865         * configure: Regenerate.
866         * Makefile.in: Same.
867         * doc/Makefile.am (stamp-epub-docbook): Update for epub3.
868         * doc/Makefile.in: Regenerate.
869         * include/Makefile.in: Same.
870         * libsupc++/Makefile.in: Same.
871         * po/Makefile.in: Same.
872         * python/Makefile.in: Same.
873         * src/Makefile.in: Same.
874         * testsuite/Makefile.in: Same.
875
876         * doc/xml/manual/documentation_hacking.xml: Update.
877
878 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
879
880         PR target/47852
881         * configure.host (irix6.5*): Add -lpthread to OPT_LDFLAGS.
882
883 2012-01-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
884
885         * include/bits/stl_iterator.h (reverse_iterator): Doxygen comments.
886
887 2012-01-13  François Dumont  <fdumont@gcc.gnu.org>
888
889         * include/bits/hashtable_policy.h (_Hash_node_base): New, use it as
890         base class of ...
891         (_Hash_node<Value, true>, _Hash_node<Value, false>): ... those.
892         * include/bits/hashtable.h (_Hashtable): Replace _M_begin_bucket_index
893         by _M_before_begin. Review implementation so that we do not need to
894         look for previous non-empty bucket when inserting nodes.
895
896 2012-01-09  Kai Tietz  <ktietz@redhat.com>
897
898         PR libstc++/51673 part 2
899         * config/abi/pre/gnu-versioned-namespace.ver: Adjusted new/delete
900         operators signature for LLP64 size_t, and adjusted signatures for
901         mt-allocator using size_t.
902
903 2012-01-09  Benjamin Kosnik  <bkoz@redhat.com>
904
905         PR libstc++/51673 part 1
906         * config/abi/pre/gnu-versioned-namespace.ver: Sync cxxabi symbols
907         with gnu.ver.
908
909 2012-01-09  Benjamin Kosnik  <bkoz@redhat.com>
910
911         * fragment.am (WARN_CXXFLAGS): Add -Wabi.
912         * Makefile.in: Regenerate.
913         * doc/Makefile.in: Same.
914         * include/Makefile.in: Same.
915         * libsupc++/Makefile.in: Same.
916         * src/Makefile.in: Same.
917         * testsuite/Makefile.in: Same.
918         * po/Makefile.in: Same.
919         * python/Makefile.in: Same.
920
921 2012-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
922
923         * python/libstdcxx/v6/printers.py (StdForwardListPrinter): Add.
924         * testsuite/libstdc++-prettyprinters/cxx11.cc: New.
925
926 2012-01-06  Jason Merrill  <jason@redhat.com>
927
928         * testsuite/abi/demangle/regression/cw-16.cc (main): Adjust
929         expected demangling.
930
931 2012-01-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
932
933         PR libstdc++/51504
934         * doc/xml/manual/debug.xml: Suggest using symbol interposition
935         to override symbols using annotation macros.
936
937 2012-01-05  François Dumont  <fdumont@gcc.gnu.org>
938
939         * include/bits/hashtable_policy.h (_Hashtable_base<>::_M_eq()):
940         protected rather than private, use it...
941         * include/bits/hashtable.h (_Hashtable<>::key_eq()): ... here.
942         * testsuite/23_containers/unordered_set/observers.cc: New.
943         * testsuite/23_containers/unordered_multiset/observers.cc: New.
944         * testsuite/23_containers/unordered_map/observers.cc: New.
945         * testsuite/23_containers/unordered_multimap/observers.cc: New.
946
947 2012-01-03  François Dumont  <fdumont@gcc.gnu.org>
948
949         * include/bits/hashtable_policy.h (_Ebo_helper<>): Rename to the more
950         specific _Hashtable_ebo_helper. Hide this implementation detail thanks
951         to private inheritance.
952
953 2012-01-03  Paolo Carlini  <paolo.carlini@oracle.com>
954
955         PR c++/51738
956         * testsuite/23_containers/map/element_access/39901.cc: New.