OSDN Git Service

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