OSDN Git Service

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