OSDN Git Service

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