OSDN Git Service

2013-10-30 Chris Studholme <cvs@cs.utoronto.ca>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2013-10-30  Chris Studholme  <cvs@cs.utoronto.ca>
2
3         PR libstdc++/58912
4         * include/bits/shared_ptr_base.h (_Sp_counted_ptr_inplace): Remove
5         unnecessary initialization of storage buffer.
6
7 2013-10-20  Chris Jefferson  <chris@bubblescope.net>
8             Paolo Carlini  <paolo.carlini@oracle.com>
9
10         PR libstdc++/58800
11         * include/bits/stl_algo.h (__unguarded_partition_pivot): Change
12         __last - 2 to __last - 1.
13         * testsuite/25_algorithms/nth_element/58800.cc: New
14
15 2013-09-30  Chris Jefferson  <chris@bubblescope.net>
16
17         PR libstdc++/58437
18         * include/bits/stl_algo.h (__move_median_first): Rename to
19         __move_median_to_first, change to take an addition argument.
20         (__unguarded_partition_pivot): Adjust.
21         * testsuite/performance/25_algorithms/sort.cc: New.
22         * testsuite/performance/25_algorithms/sort_heap.cc: Likewise.
23         * testsuite/performance/25_algorithms/stable_sort.cc: Likewise.
24
25 2013-09-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
26
27         Backport from mainline
28
29         2013-01-19  Jonathan Wakely  <jwakely.gcc@gmail.com>
30
31         PR libstdc++/55861
32         * include/std/future (_State_base::_S_check(const shared_ptr<T>&)):
33         Fix return type.
34
35 2013-09-03  Paolo Carlini  <paolo.carlini@oracle.com>
36
37         PR libstdc++/58302
38         * include/bits/random.tcc (negative_binomial_distribution<>::
39         operator()(_UniformRandomNumberGenerator&, const param_type&):
40         Fix typo in template argument.
41         * testsuite/26_numerics/random/negative_binomial_distribution/
42         operators/58302.cc: New.
43
44 2013-08-17  Uros Bizjak  <ubizjak@gmail.com>
45
46         * src/c++98/compatibility.cc (_ZTIe): Use
47         reinterpret_cast<const cast *> to avoid -Wcast-qual warnings.
48         (_ZTIPe): Ditto.
49         (ZTIPKe): Ditto.
50
51 2013-05-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
52
53         * include/bits/basic_string.h (getline): Fix doxygen comments.
54
55 2013-05-14  Evgeniy Stepanov  <eugenis@google.com>
56
57         * src/c++11/system_error.cc (generic_category_instance): Add
58         initializer.
59         (system_category_instance): Likewise.
60         * src/c++11/future.cc (__fec): Likewise.
61
62 2013-04-15  Jack Howarth  <howarth@bromo.med.uc.edu>
63
64         Backport from mainline
65
66         2012-10-10  Jack Howarth  <howarth@bromo.med.uc.edu>
67                     Jonathan Wakely  <jwakely.gcc@gmail.com>
68
69         PR libstdc++/54847
70         * config/os/bsd/darwin/os_defines.h: Define _GLIBCXX_USE_NANOSLEEP
71         and _GLIBCXX_USE_SCHED_YIELD.
72         * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Add comment.
73
74 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
75
76         * testsuite/30_threads/condition_variable/members/53841.cc: Add
77         -std=gnu++0x -pthread on alpha*-*-osf*, mips-sgi-irix6*.
78
79 2013-04-11  Release Manager
80
81         * GCC 4.7.3 released.
82
83 2013-03-30  Gerald Pfeifer  <gerald@pfeifer.com>
84
85         * doc/xml/manual/allocator.xml: Adjust link to Dr.Dobb's article.q
86
87         * doc/xml/manual/appendix_contributing.xml: Adjust link to GNU
88         Coding Standards.
89
90         * doc/xml/manual/debug.xml: Adjust link for ThreadSanitizer.
91
92         * doc/xml/manual/debug_mode.xml: Adjust link for SafeSTL.
93
94         * doc/xml/manual/documentation_hacking.xml: Adjust Doxygen link.
95
96         * doc/xml/manual/messages.xml: Adjust link to Java API specs.
97
98         * doc/xml/manual/policy_data_structures: Remove direct link to
99         IBM Haifa Research Labs.
100
101         * doc/xml/manual/policy_data_structures_biblio.xml: Adjust links
102         for biblio.maverik_lowerbounds and biblio.nelson96stlpq.
103
104         * doc/xml/manual/profile_mode.xml: Adjust two links to acm.org
105         papers.
106
107         * doc/xml/manual/shared_ptr.xml: Use canonical address for
108         www.boost.org.
109
110 2013-03-16  Jonathan Wakely  <jwakely.gcc@gmail.com>
111
112         PR libstdc++/56468
113         * libsupc++/exception_ptr.h (type_info): Declare.
114
115 2013-03-16  Jonathan Wakely  <jwakely.gcc@gmail.com>
116
117         PR libstdc++/56002
118         * include/std/mutex (lock_guard, unique_lock, lock): Define without
119         depending on _GLIBCXX_HAS_GTHREADS.
120         * testsuite/30_threads/lock_guard/cons/1.cc: Run on all targets.
121
122 2013-03-09  François Dumont  <fdumont@gcc.gnu.org>
123
124         * include/bits/vector.tcc (vector<>operator=(const vector<>&):
125         Reset pointers after deallocation when memory can be reused.
126         * testsuite/23_containers/vector/allocator/minimal.cc: Insert
127         elements to really challenge C++11 allocator integration.
128         * testsuite/23_containers/vector/allocator/copy.cc: Likewise.
129         * testsuite/23_containers/vector/allocator/copy_assign.cc:
130         Likewise.
131         * testsuite/23_containers/vector/allocator/move_assign.cc:
132         Likewise.
133         * testsuite/23_containers/vector/allocator/swap.cc: Likewise and
134         swap vector back before checks on memory/personality mapping are
135         performed.
136
137 2013-02-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
138
139         PR libstdc++/56012
140         * include/bits/atomic_base.h (atomic_flag): Fix narrowing conversion.
141         * testsuite/29_atomics/atomic/operators/56012.cc: New.
142
143         PR libstdc++/56011
144         * include/std/atomic (atomic<bool>::operator=(bool) volatile): Add
145         missing overload.
146         * testsuite/29_atomics/atomic/operators/56011.cc: New.
147
148 2013-02-20  Jonathan Wakely  <jwakely.gcc@gmail.com>
149
150         * include/std/streambuf (basic_streambuf): Fix unclosed Doxygen group.
151
152 2013-02-20  Jonathan Wakely  <jwakely.gcc@gmail.com>
153
154         PR libstdc++/55043
155         * include/bits/alloc_traits.h (allocator_traits::construct): Disable
156         unless construction would be well-formed.
157         (__allow_copy_cons, __check_copy_constructible): Define.
158         * include/bits/unordered_map.h (__check_copy_constructible): Use as
159         base class so copy constructor will be deleted if appropriate.
160         * include/bits/unordered_set.h: Likewise.
161         * include/std/unordered_set: Include alloc_traits.h.
162         * include/std/unordered_set: Likewise.
163         * include/debug/unordered_map.h: Default copy and move constructors.
164         * include/debug/unordered_set.h: Likewise.
165         * testsuite/23_containers/unordered_map/55043.cc: Fix test.
166         * testsuite/23_containers/unordered_multimap/55043.cc: Likewise.
167         * testsuite/23_containers/unordered_multiset/55043.cc: Likewise.
168         * testsuite/23_containers/unordered_set/55043.cc: Likewise.
169         * testsuite/23_containers/unordered_map/requirements/53339.cc: XFAIL,
170         cannot support incomplete types.
171         * testsuite/23_containers/unordered_multimap/requirements/53339.cc:
172         Likewise.
173         * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
174         dg-error line number.
175
176 2013-02-18  Jonathan Wakely  <jwakely.gcc@gmail.com>
177
178         * include/std/functional (mem_fn): Qualify to prevent ADL.
179         * testsuite/20_util/function_objects/mem_fn/adl.cc: New.
180
181 2013-02-18  Jonathan Wakely  <jwakely.gcc@gmail.com>
182
183         * include/bits/hashtable.h: Improve comments.
184         * include/bits/hashtable_policy.h: Likewise.
185
186 2013-01-24  Paolo Carlini  <paolo.carlini@oracle.com>
187
188         PR libstdc++/56085
189         * include/std/complex (pow(const complex<>&, int)): Avoid __n
190         signed overflow.
191
192 2013-01-17  Jonathan Wakely  <jwakely.gcc@gmail.com>
193
194         PR libstdc++/52887
195         * src/c++11/regex.cc: Add instantiations for AIX.
196
197 2013-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
198
199         * doc/xml/manual/status_cxx2011.xml: Document that N3189 is missing.
200
201 2013-01-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
202
203         * doc/xml/manual/abi.xml: Update library and symbol versions.
204
205 2012-12-18  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
206
207         Backport from mainline
208         2012-10-15  Matthias Klose  <doko@ubuntu.com>
209
210         * configure.host: Match arm*-*-linux-* for ARM Linux/GNU.
211         * testsuite/20_util/make_signed/requirements/typedefs-2.cc: Likewise.
212         * testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Likewise.
213
214 2012-12-18  Jonathan Wakely  <jwakely.gcc@gmail.com>
215
216         * doc/xml/manual/abi.xml: Update URLs for C++ ABI.
217         * doc/xml/manual/policy_data_structures_biblio.xml: Add xmlns
218         * doc/xml/manual/policy_data_structures.xml: Set filename for chunk.
219         * doc/xml/manual/spine.xml: Update copyright years.
220         * doc/html/*: Regenerate.
221
222 2012-12-17  Jonathan Wakely  <jwakely.gcc@gmail.com>
223
224         * src/c++11/thread.cc: Update copyright years.
225
226 2012-12-16  Jonathan Wakely  <jwakely.gcc@gmail.com>
227
228         * src/c++11/thread.cc (execute_native_thread_routine): Do not swallow
229         __forced_unwind exceptions.
230         * testsuite/30_threads/thread/native_handle/cancel.cc: New.
231
232 2012-12-12  Jonathan Wakely  <jwakely.gcc@gmail.com>
233
234         PR libstdc++/55631
235         * include/ext/alloc_traits.h: Include missing header.
236         * include/ext/pointer.h: Likewise.
237         * include/ext/string_conversions.h: Require C++11.
238         * libsupc++/initializer_list: Reindent.
239
240 2012-12-12  Benjamin Kosnik  <bkoz@redhat.com>
241
242         * doc/xml/manual/documentation_hacking.xml: Fix validation issue.
243
244 2012-12-10  Benjamin Kosnik  <bkoz@redhat.com>
245
246         * doc/Makefile.am (xml_sources_manual): Add
247         policy_data_structures_biblio.xml.
248         (${docbook_outdir}/latex): Add.
249         (doc-xml-validate-docbook): Split into..
250         (doc-xml-validate-dtd-db):... this for DTD.
251         (doc-xml-validate-rng-db):... this for Relax NG.
252         (doc-pdf-docbook-dirs): Add.
253         (doc-pdf-docbook-pre): Add.
254         * doc/xml/manual/build_hacking.xml: Add literal markup.
255         * doc/xml/manual/documentation_hacking.xml: Clean whitespace in
256         <filename> markup. Add notes about debugging the generation process.
257         * doc/xml/manual/policy_data_structures.xml: Split biblio into...
258         * doc/xml/manual/policy_data_structures_biblio.xml: ... this. New.
259         * doc/xml/manual/test_policy_data_structures.xml: Fixup <filename>
260         markup.
261
262 2012-12-10  Matthias Klose  <doko@ubuntu.com>
263
264         * src/Makefile.am (libstdc++-symbols.ver): Use CONFIG_HEADER.
265         * src/Makefile.in: Regenerate.
266
267 2012-12-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
268
269         PR libstdc++/55503
270         * testsuite/30_threads/condition_variable/members/53841.cc: Add
271         hppa*-hp-hpux11* to -pthread dg-options.
272
273 2012-11-20  Paolo Carlini  <paolo.carlini@oracle.com>
274
275         PR libstdc++/55413
276         * include/bits/hashtable.h (_Hashtable<>::_M_rehash_aux): Initialize
277         __bbegin_bkt and __prev_bkt to avoid uninitialized warnings.
278         * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
279         dg-error line number.
280
281 2012-11-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
282
283         PR libstdc++/53841
284         * include/std/condition_variable (condition_variable::wait_until):
285         Handle clocks with higher resolution than __clock_t.
286         * testsuite/30_threads/condition_variable/members/53841.cc: New.
287
288 2012-11-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
289
290         PR libstdc++/55320
291         * include/std/functional (function::function(F)): Set _M_manager after
292         operations that could throw.
293         (_Function_base::_Ref_manager::_M_init_functor): Use addressof.
294         * include/tr1/functional
295         (_Function_base::_Ref_manager::_M_init_functor): Use addressof.
296         (_Function_base::_Base_manager::_M_get_pointer): Likewise.
297         * testsuite/20_util/function/cons/55320.cc: New.
298         * testsuite/20_util/function/cons/addressof.cc: New.
299         * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers.
300         * testsuite/tr1/3_function_objects/function/10.cc: New.
301
302 2012-11-12  Jonathan Wakely  <jwakely.gcc@gmail.com>
303
304         * include/std/future (atomic_future): Remove declaration of
305         non-standard name.
306
307 2012-11-08  François Dumont  <fdumont@gcc.gnu.org>
308
309         PR libstdc++/54075
310         * include/bits/hashtable.h (_Hashtable<>::rehash): Reset hash
311         policy state if no rehash.
312         * testsuite/23_containers/unordered_set/modifiers/reserve.cc
313         (test02): New.
314
315 2012-11-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
316
317         * include/profile/iterator_tracker.h (operator++): Fix returning
318         dangling reference.
319         (operator--): Likewise.
320
321 2012-11-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
322
323         * testsuite/20_util/shared_ptr/cons/55123.cc: Remove duplicate
324         include.
325
326 2012-11-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
327
328         * testsuite/*: Fix copying permission statements.
329
330 2012-11-05  Benjamin Kosnik  <bkoz@redhat.com>
331
332         PR libstdc++/28811
333         PR libstdc++/54482
334         * configure.ac (glibcxx_lt_pic_flag,
335           glibcxx_compiler_pic_flag,
336           glibcxx_compiler_shared_flag): New. Use them.
337         (lt_prog_compiler_pic_CXX): Set via glibcxx_*_flag(s) above.
338         (pic_mode): Set to default.
339         (PIC_CXXFLAGS): Remove.
340         * Makefile.am (PICFLAG, PICFLAG_FOR_TARGET): Remove. Comment.
341         * libsupc++/Makefile.am: Use glibcxx_ld_pic_flag and
342           glibcxx_compiler_shared_flag. Comment.
343         * src/c++11/Makefile.am: Same.
344         * src/c++98/Makefile.am: Same.
345         * src/Makefile.am: Use glibcxx_compiler_pic_flag.
346
347         * Makefile.in: Regenerated.
348         * aclocal.m4: Same.
349         * configure: Same.
350         * doc/Makefile.in: Same.
351         * include/Makefile.in: Same.
352         * libsupc++/Makefile.in: Same.
353         * po/Makefile.in: Same.
354         * python/Makefile.in: Same.
355         * src/Makefile.in: Same.
356         * src/c++11/Makefile.in: Same.
357         * src/c++98/Makefile.in: Same.
358         * testsuite/Makefile.in: Same.
359
360         * src/c++11/compatibility-atomic-c++0x.cc: Use
361           _GLIBCXX_SHARED instead of PIC to designate shared-only
362           code blocks.
363         * src/c++11/compatibility-c++0x.cc: Same.
364         * src/c++11/compatibility-thread-c++0x.cc: Same.
365         * src/c++98/compatibility-list-2.cc: Same.
366         * src/c++98/compatibility.cc: : Same.
367
368         * testsuite/17_intro/shared_with_static_deps.cc: New.
369
370         * doc/xml/manual/build_hacking.xml: Separate configure from
371         make/build issues, add build details.
372
373 2012-11-05  Benjamin Kosnik  <bkoz@redhat.com>
374             Oleg Smolsky  <oleg@smolsky.net>
375
376         PR libstdc++/55028
377         *  config/abi/pre/gnu-versioned-namespace.ver: Add symbols.
378         * testsuite/23_containers/unordered_multimap/insert/55028-debug.cc: New.
379
380 2012-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
381
382         PR libstdc++/55215
383         * include/bits/random.tcc (mersenne_twister_engine<>::seed(_Sseq&)):
384         Assign state_size to _M_p.
385         * testsuite/26_numerics/random/mersenne_twister_engine/cons/55215.cc:
386         New.
387         * testsuite/26_numerics/random/independent_bits_engine/cons/55215.cc:
388         Likewise.
389         * testsuite/26_numerics/random/shuffle_order_engine/cons/55215.cc:
390         Likewise.
391         * testsuite/26_numerics/random/subtract_with_carry_engine/cons/
392         55215.cc: Likewise.
393         * testsuite/26_numerics/random/discard_block_engine/cons/55215.cc:
394         Likewise.
395         * testsuite/26_numerics/random/linear_congruential_engine/cons/
396         55215.cc: Likewise.
397
398 2012-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
399
400         PR libstdc++/55169
401         * include/bits/random.h: Remove all uses of param().
402
403 2012-11-01   Haakan Younes  <hyounes@google.com>
404              Paolo Carlini  <paolo.carlini@oracle.com>
405
406         PR libstdc++/55047
407         * include/bits/random.h (exponential_distribution<>::operator):
408         Fix formula to std::log(result_type(1) - __aurng()).
409         * include/bits/random.tcc: Likewise, everywhere.
410
411 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
412
413         PR libstdc++/55123
414         * include/bits/shared_ptr_base.h (__shared_count::_S_create_from_up):
415         Do not instantiate allocator with element_type.
416         * testsuite/20_util/shared_ptr/cons/55123.cc: New.
417
418 2012-10-10  Andrew MacLeod  <amacleod@redhat.com>
419
420         PR libstdc++/54861
421         * include/bits/atomic_base.h (atomic_signal_fence): Call
422         __atomic_signal_fence instead of __atomic_thread_fence.
423
424 2012-09-20  Benjamin Kosnik  <bkoz@redhat.com>
425
426         PR libstdc++/54102, part 2
427         * doc/Makefile.am (XSL_HTML_STYLE): use xhtml, not html.
428         * doc/Makefile.in: Regenerate.
429         * doc/html/*: Same.
430
431 2012-09-20  Benjamin Kosnik  <bkoz@redhat.com>
432
433         * doc/html/*: Regenerate.
434
435 2012-09-20  Benjamin Kosnik  <bkoz@redhat.com>
436
437         PR libstdc++/54102
438         * doc/xsl/customization.xsl.in: New.
439         * configure.ac: Output local copy of customization xsl.
440         * doc/Makefile.am (stamp-html-single-docbook): Use XSL_LOCAL_STYLE.
441         (stamp-html-docbook): Set stringparam to UTF-8.
442         * Makefile.in: Regenerated.
443         * configure: Same.
444         * doc/Makefile.in: Same.
445
446 2012-09-20  Release Manager
447
448         * GCC 4.7.2 released.
449
450 2012-09-11  Jakub Jelinek  <jakub@redhat.com>
451
452         PR libstdc++/54172
453         * libsupc++/guard.cc (__cxa_guard_acquire): Fix up the last
454         argument of the first __atomic_compare_exchange_n.
455
456 2012-09-09  Thiago Macieira  <thiago.macieira@intel.com>
457
458         PR libstdc++/54172
459         * libsupc++/guard.cc (__cxa_guard_acquire): Exit the loop earlier if
460         we detect that another thread has had success. Don't compare_exchange
461         from a finished state back to a waiting state. Comment.
462
463 2012-09-09  Jonathan Wakely  <jwakely.gcc@gmail.com>
464
465         PR libstdc++/54388
466         * include/std/array (array::at() const): Ensure lvalue result.
467         * testsuite/23_containers/array/element_access/54388.cc: New.
468
469 2012-09-06  Marc Glisse  <marc.glisse@inria.fr>
470             Paolo Carlini  <paolo.carlini@oracle.com>
471
472         PR libstdc++/54376
473         * include/bits/random.h (lognormal_distribution<>::operator==,
474         gamma_distribution<>::operator==,
475         chi_squared_distribution<>::operator==,
476         fisher_f_distribution<>::operator==,
477         student_t_distribution<>::operator==,
478         binomial_distribution<>::operator==,
479         negative_binomial_distribution<>::operator==,
480         poisson_distribution<>::operator==): Change inline friend definition
481         to non-template.
482         * testsuite/26_numerics/random/binomial_distribution/requirements/
483         explicit_instantiation/1.cc: New.
484         * testsuite/26_numerics/random/cauchy_distribution/requirements/
485         explicit_instantiation/1.cc: Likewise.
486         * testsuite/26_numerics/random/chi_squared_distribution/
487         requirements/explicit_instantiation/1.cc: Likewise.
488         * testsuite/26_numerics/random/discrete_distribution/requirements/
489         explicit_instantiation/1.cc: Likewise.
490         * testsuite/26_numerics/random/exponential_distribution/
491         requirements/explicit_instantiation/1.cc: Likewise.
492         * testsuite/26_numerics/random/extreme_value_distribution/
493         requirements/explicit_instantiation/1.cc: Likewise.
494         * testsuite/26_numerics/random/fisher_f_distribution/requirements/
495         explicit_instantiation/1.cc: Likewise.
496         * testsuite/26_numerics/random/gamma_distribution/requirements/
497         explicit_instantiation/1.cc: Likewise.
498         * testsuite/26_numerics/random/geometric_distribution/requirements/
499         explicit_instantiation/1.cc: Likewise.
500         * testsuite/26_numerics/random/lognormal_distribution/requirements/
501         explicit_instantiation/1.cc: Likewise.
502         * testsuite/26_numerics/random/negative_binomial_distribution/
503         requirements/explicit_instantiation/1.cc: Likewise.
504         * testsuite/26_numerics/random/normal_distribution/requirements/
505         explicit_instantiation/1.cc: Likewise.
506         * testsuite/26_numerics/random/piecewise_constant_distribution/
507         requirements/explicit_instantiation/1.cc: Likewise.
508         * testsuite/26_numerics/random/piecewise_linear_distribution/
509         requirements/explicit_instantiation/1.cc: Likewise.
510         * testsuite/26_numerics/random/poisson_distribution/requirements/
511         explicit_instantiation/1.cc: Likewise.
512         * testsuite/26_numerics/random/student_t_distribution/requirements/
513         explicit_instantiation/1.cc: Likewise.
514         * testsuite/26_numerics/random/uniform_int_distribution/
515         requirements/explicit_instantiation/1.cc: Likewise.
516         * testsuite/26_numerics/random/uniform_real_distribution/
517         requirements/explicit_instantiation/1.cc: Likewise.
518         * testsuite/26_numerics/random/weibull_distribution/requirements/
519         explicit_instantiation/1.cc: Likewise.
520
521 2012-08-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
522
523         * testsuite/30_threads/async/54297.cc: Add dg-require-nanosleep.
524
525 2012-08-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
526
527         PR libstdc++/54297
528         * src/c++11/future.cc (~_Async_state_common): Move to...
529         * src/c++11/compatibility-thread-c++0x.cc (~_Async_state_common):
530         Here.
531         (_GLIBCXX_ABI_COMPAT_ASYNC): Rename to _GLIBCXX_ASYNC_ABI_COMPAT.
532         * include/std/future (_GLIBCXX_ABI_COMPAT_ASYNC): Likewise.
533
534 2012-08-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
535             Geoff Romer  <gromer@google.com>
536
537         PR libstdc++/54351
538         * include/bits/unique_ptr.h (unique_ptr<T>::~unique_ptr): Do not use
539         reset().
540         (unique_ptr<T[]>::~unique_ptr()): Likewise.
541         * testsuite/20_util/unique_ptr/54351.cc: New.
542         * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust dg-error
543         line numbers.
544
545 2012-08-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
546
547         PR libstdc++/54297
548         * include/std/future (~_Async_state_impl): Join thread before
549         derived class members are destroyed.
550         (~_Async_state_common): Only define non-trivial destructor when
551         included from future.cc for ABI compatibility reasons.
552         * src/c++11/future.cc (_GLIBCXX_ABI_COMPAT_ASYNC): Define.
553         * testsuite/30_threads/async/54297.cc: New.
554
555 2012-08-13  David Adler  <d.adler.s@gmail.com>
556
557         PR libstdc++/54185
558         * src/c++11/condition_variable.cc (condition_variable): Always
559         destroy native type in destructor.
560         * testsuite/30_threads/condition_variable/54185.cc: New.
561
562 2012-08-06  Peter Bergner  <bergner@vnet.ibm.com>
563
564         PR libstdc++/54036
565         * include/decimal/decimal.h (_DEFINE_DECIMAL_UNARY_OP): Use _Op as
566         a unary operator.
567         * testsuite/decimal/pr54036-1.cc: New test.
568         * testsuite/decimal/pr54036-2.cc: Likewise.
569         * testsuite/decimal/pr54036-3.cc: Likewise.
570
571 2012-08-02  Michael Hope  <michael.hope@linaro.org>
572
573         Backport from mainline r186389:
574         2012-04-12  Andreas Schwab  <schwab@linux-m68k.org>
575
576         * testsuite/Makefile.am (check_DEJAGNUnormal0): Run
577         prettyprinters.exp.
578         * testsuite/Makefile.in: Regenerated.
579
580 2012-07-29  François Dumont  <fdumont@gcc.gnu.org>
581
582         PR libstdc++/54075
583         * include/bits/hashtable_policy.h
584         (_Prime_rehash_policy::_M_next_bkt): Add a growth factor set to 2
585         to boost growth in the number of buckets.
586         * testsuite/performance/23_containers/insert/unordered_set.cc: New.
587
588 2012-07-26  François Dumont  <fdumont@gcc.gnu.org>
589
590         PR libstdc++/54075
591         * include/bits/hashtable.h
592         (_Hashtable<>::_Hashtable(_InputIterator, _InputIterator,
593         size_type, ...): Remove std::max usage to guarantee that hashtable
594         state is consistent with hash policy state.
595         (_Hashtable<>::rehash): Likewise. Set _M_prev_resize to 0 to avoid
596         the hashtable shrinking on next insertion.
597         * testsuite/23_containers/unordered_set/modifiers/reserve.cc: New.
598         * testsuite/23_containers/unordered_multiset/modifiers/reserve.cc: New.
599         * testsuite/23_containers/unordered_map/modifiers/reserve.cc: New.
600         * testsuite/23_containers/unordered_multimap/modifiers/reserve.cc: New.
601
602 2012-07-20  Paolo Carlini  <paolo.carlini@oracle.com>
603
604         * testsuite/30_threads/thread/adl.cc: Add missing dg-requires.
605
606 2012-07-16  Jonathan Wakely  <jwakely.gcc@gmail.com>
607
608         PR libstdc++/53270
609         * include/ext/concurrence.h: Use NSDMI for gthreads types.
610         * include/ext/rope: Likewise. Destroy mutexes in destructors. Add
611         system_header pragma.
612
613         Revert:
614         2012-06-19  Jonathan Wakely  <jwakely.gcc@gmail.com>
615
616         PR libstdc++/53270
617         * config/os/gnu-linux/os_defines.h: Disable static initializer macros
618         for gthreads types in C++11 mode.
619
620 2012-07-16  Jonathan Wakely  <jwakely.gcc@gmail.com>
621
622         PR libstdc++/53978
623         * include/bits/alloc_traits.h (allocator_traits): Define static
624         constants.
625         * include/bits/ptr_traits.h (pointer_traits): Likewise.
626         * include/ext/alloc_traits.h (__allocator_always_compares_equal):
627         Likewise.
628
629 2012-07-13  Paolo Carlini  <paolo.carlini@oracle.com>
630
631         PR libstdc++/53657
632         * include/bits/stl_pair.h (pair<>::pair(pair&&)): Declare defaulted,
633         per C++11.
634         * include/bits/stl_map.h (map<>::insert(_Pair&&), map<>::insert
635         (const_iterator, _Pair&&)): Constrain with std::is_constructible,
636         per LWG2005.
637         * include/bits/stl_multimap.h (multimap<>::insert(_Pair&&),
638         multimap<>::insert(const_iterator, _Pair&&)): Likewise.
639         * include/bits/hashtable_policy.h (_Insert<>::insert(_Pair&&),
640         _Insert<>::insert(const_iterator, _Pair&&)): Likewise.
641         * include/debug/unordered_map: Adjust.
642         * include/debug/map.h: Likewise.
643         * include/debug/multimap.h: Likewise.
644         * include/profile/unordered_map: Likewise.
645         * include/profile/map.h: Likewise.
646         * include/profile/multimap.h: Likewise.
647
648 2012-07-07  Jonathan Wakely  <jwakely.gcc@gmail.com>
649
650         PR libstdc++/53578
651         * include/ext/concurrence.h (__recursive_mutex::_S_destroy): Fix
652         narrowing conversion.
653         * include/std/mutex (__recursive_mutex_base::_S_destroy): Likewise.
654
655 2012-07-06  Paolo Carlini  <paolo.carlini@oracle.com>
656
657         PR libstdc++/53872
658         * include/std/thread (thread::_M_make_routine): Qualify make_shared
659         to prevent ADL.
660         * testsuite/30_threads/thread/adl.cc: New.
661
662 2012-07-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
663
664         * include/std/condition_variable: Update copyright years.
665
666 2012-07-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
667
668         PR libstdc++/53830
669         * include/std/condition_variable (condition_variable_any::wait):
670         Move _Unlock type to class scope.
671         (condition_variable_any::wait_until): Reuse it.
672         * testsuite/30_threads/condition_variable_any/53830.cc: New.
673
674 2012-07-02  Paolo Carlini  <paolo.carlini@oracle.com>
675
676         Revert:
677         2011-10-04  Paolo Carlini  <paolo.carlini@oracle.com>
678
679         PR libstdc++/49561
680         * include/bits/stl_list.h (_List_base<>::_List_impl::_M_size):
681         Add in C++0x mode.
682         (_List_base<>::_List_impl, _List_base<>::_M_get_node,
683         _List_base<>::_M_put_node, _List_base<>::_List_base(_List_base&&),
684         list<>::size, list<>::swap, list<>::splice): Use it.
685         (operator==(const list<>&, const list<>&)): Rewrite in C++0x mode.
686         * include/bits/list.tcc (list<>::erase): Likewise.
687         (list<>::merge): Adjust in C++0x mode.
688         * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
689         Adjust dg-error line number.
690         * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
691         Likewise.
692         * testsuite/23_containers/list/requirements/dr438/
693         constructor_1_neg.cc: Likewise.
694         * testsuite/23_containers/list/requirements/dr438/
695         constructor_2_neg.cc: Likewise.
696
697 2012-06-19  Jonathan Wakely  <jwakely.gcc@gmail.com>
698
699         PR libstdc++/53270
700         * config/os/gnu-linux/os_defines.h: Disable static initializer macros
701         for gthreads types in C++11 mode.
702
703 2012-06-19  Jörg Sonnenberger <joerg@britannica.bec.de>
704             Jonathan Wakely  <jwakely.gcc@gmail.com>
705
706         PR libstdc++/53678
707         * config/os/bsd/netbsd/ctype_base.h: Check for _CTYPE_U.
708         * testsuite/22_locale/ctype_base/53678.cc: New.
709
710 2012-06-14  Release Manager
711
712         * GCC 4.7.1 released.
713
714 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
715
716         PR c++/53503
717         * testsuite/26_numerics/headers/cmath/53503.cc: New.
718
719 2012-05-10  DJ Delorie  <dj@redhat.com>
720
721         * include/bits/random.tcc (seed_seq::generate): Cast max()
722         operands to size_t to ensure a template match.
723         * include/std/bitset (_M_copy_from_ptr): Cast min() operands to
724         size_t to ensure a template match.
725
726 2012-05-02  Paolo Carlini  <paolo.carlini@oracle.com>
727
728         PR libstdc++/53193
729         * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
730         dg-error line number.
731
732 2012-05-01  François Dumont  <fdumont@gcc.gnu.org>
733
734         PR libstdc++/53115
735         * include/bits/hashtable.h
736         (_Hashtable<>::_M_rehash_aux(size_type, false_type)): Fix buckets
737         after insertion of several equivalent elements.
738         * testsuite/23_containers/unordered_multiset/insert/53115.cc: New.
739         * testsuite/23_containers/unordered_multimap/insert/53115.cc: New.
740
741 2012-04-30  Andreas Tobler  <andreast@fgznet.ch>
742
743         Backport from mainline
744         2012-03-21  Andreas Tobler  <andreast@fgznet.ch>
745
746         * testsuite/23_containers/vector/bool/modifiers/insert/31370.cc:
747         Skip this test on powerpc64-*-freebsd*.
748
749 2012-04-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
750
751         * include/std/scoped_allocator (scoped_allocator::__outermost): Do
752         not pass non-POD to varargs function.
753         * testsuite/20_util/scoped_allocator/1.cc: Fix test.
754
755 2012-04-23  Chris Jefferson  <chris@bubblescope.net>
756
757         PR testsuite/53046
758         * testsuite/25_algorithms/stable_partition/mem_check.cc: Fix size
759         of array A.
760         * testsuite/25_algorithms/stable_sort/mem_check.cc: Likewise.
761
762 2012-04-22  Paolo Carlini  <paolo.carlini@oracle.com>
763
764         PR libstdc++/53067
765         * include/bits/hashtable_policy.h: Change inheritances to public.
766         * testsuite/23_containers/unordered_map/requirements/53067.cc: New.
767         * testsuite/23_containers/unordered_set/requirements/53067.cc: Likewise.
768
769 2012-04-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
770
771         PR libstdc++/53027
772         * include/bits/ptr_traits.h (pointer_traits::rebind): Make public.
773         * testsuite/20_util/pointer_traits/requirements/typedefs.cc: Check
774         rebind works.
775
776 2012-04-21  Alan Modra  <amodra@gmail.com>
777
778         PR libstdc++/52839
779         * acinclude.m4 (_GLIBCXX_ATOMIC_BUILTINS): Do not depend on
780         glibcxx_cv_atomic_long_long.
781         * configure: Regenerate.
782
783 2012-04-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
784
785         PR bootstrap/52840
786         * src/Makefile.am (build-debug): Do not adjust vpath dir, remove
787         Makefile.tmp
788         * src/Makefile.in: Adjust as per above.
789
790 2012-04-16  Benjamin Kosnik  <bkoz@redhat.com>
791
792         PR libstdc++/52689
793         * libsupc++/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
794         * libsupc++/Makefile.in: Regenerated.
795         * src/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
796         (libstdc___la_SOURCES): Add in compatiblity files, with content
797         that varies with -DPIC.
798         * src/Makefile.in: Regenerated.
799         * src/c++11/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
800         * src/c++11/Makefile.in: Regenerated.
801         * src/c++11/compatibility-atomic-c++0x.cc: Guard with PIC.
802         * src/c++11/compatibility-c++0x.cc: Same.
803         * src/c++11/future.cc: Consolidate compatibility bits into..
804         * src/c++11/mutex.cc: Consolidate compatibility bits into..
805         * src/c++11/compatibility-thread-cxx0x.cc: ...here. New.
806         * src/c++98/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
807         * src/c++98/Makefile.in: Regenerated.
808         * src/c++98/compatibility-list-2.cc: Guard with PIC.
809         * src/c++98/compatibility.cc: Tweak comments.
810
811 2012-04-16  Benjamin Kosnik  <bkoz@redhat.com>
812
813             * include/ext/pb_ds/detail/pat_trie_/
814             constructors_destructor_fn_imps.hpp: Increment after recursion.
815             * include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Convert
816             node_type markup from brief.
817
818 2012-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
819
820         PR libstdc++/52699
821         * include/bits/random.tcc (independent_bits_engine<>::operator()())
822         Avoid various overflows; use common_type on result_type and
823         _RandomNumberEngine::result_type; avoid floating point computations;
824         other smaller tweaks.
825
826         * include/bits/random.tcc (uniform_int_distribution<>::operator())
827         Use common_type; assume _UniformRandomNumberGenerator::result_type
828         unsigned; tidy.
829
830         * include/bits/stl_algobase.h (__lg(unsigned), __lg(unsigned long),
831         __lg(unsigned long long)): Add.
832
833 2012-04-13  Paolo Carlini  <paolo.carlini@oracle.com>
834
835         * include/debug/safe_iterator.h (_BeforeBeginHelper<>::
836         _S_Is_Beginnest): Add.
837         * include/debug/forward_list (_BeforeBeginHelper<>::
838         _S_Is_Beginnest): Likewise.
839         (_Safe_iterator<>::_M_is_beginnest): Add.
840         * include/debug/safe_iterator.tcc (_Safe_iterator<>::_M_valid_range):
841         Use the latter.
842         * testsuite/23_containers/forward_list/debug/splice_after.cc:
843         Add test.
844
845 2012-04-12  Paolo Carlini  <paolo.carlini@oracle.com>
846
847         * include/bits/forward_list.h (splice_after(const_iterator,
848         forward_list&), splice_after(const_iterator, forward_list&,
849         consst_iterator), splice_after(const_iterator, forward_list&,
850         const_iterator, const_iterator), merge(forward_list&),
851         merge(forward_list&, _Comp)): Add per C++11 as published (and
852         LWG 1310).
853         * include/debug/forward_list: Adjust.
854
855         * include/bits/forward_list.h (splice_after(const_iterator,
856         forward_list&&, const_iterator)): Only declare.
857         (_M_transfer_after): Remove.
858         (_M_splice_after(const_iterator, forward_list&&)): Change signature.
859         (splice_after(const_iterator, forward_list&&, const_iterator,
860         const_iterator)): Use the latter.
861         * include/bits/forward_list.tcc (splice_after(const_iterator,
862         forward_list&&, const_iterator)): Define here.
863         (_M_splice_after): Define, use throughout.
864
865         * include/bits/forward_list.h (insert_after(const_iterator,
866         std::initializer_list<_Tp>)): Forward to insert_after(const_iterator,
867         _InputIterator, _InputIterator).
868         * include/bits/forward_list.tcc: Remove definition.
869
870         * testsuite/23_containers/forward_list/modifiers/6.cc: New.
871         * testsuite/23_containers/forward_list/operations/1.cc: Adjust.
872
873         * testsuite/23_containers/forward_list/requirements/dr438/
874         assign_neg.cc: Adjust dg-error line number.
875         * testsuite/23_containers/forward_list/requirements/dr438/
876         insert_neg.cc: Likewise.
877         * testsuite/23_containers/forward_list/requirements/dr438/
878         constructor_1_neg.cc: Likewise.
879         * testsuite/23_containers/forward_list/requirements/dr438/
880         constructor_2_neg.cc: Likewise.
881
882 2012-04-12   Jeffrey Yasskin  <jyasskin@google.com>
883
884         PR libstdc++/52822
885         * include/bits/stl_algo.h (__find_if_not): Expose in C++98 mode.
886         (__find_if_not_n): Like __find_if_not, but works on and updates a
887         counted range instead of a bounded range.
888         (stable_partition): Guarantee !__pred(*__first) in call to
889         __stable_partition_adaptive() or __inplace_stable_partition().
890         (__stable_partition_adaptive): Use new precondition to avoid
891         moving/copying objects onto themselves.  Guarantee new
892         precondition to recursive calls.
893         (__inplace_stable_partition): Use new precondition to simplify
894         base case, remove __last parameter.  Guarantee new precondition to
895         recursive calls.
896         * testsuite/25_algorithms/stable_partition/moveable.cc (test02):
897         Test a sequence that starts with a value matching the predicate.
898         * testsuite/25_algorithms/stable_partition/pr52822.cc: Test
899         vectors, which have a destructive self-move-assignment.
900
901 2012-04-12  Paolo Carlini  <paolo.carlini@oracle.com>
902
903         PR libstdc++/52942
904         * include/bits/stl_function.h (_Identity, _Select1st, _Select2nd):
905         In C++11 mode do not derive from std::unary_function.
906         * include/ext/functional (identity, select1st, select2nd): Adjust.
907         * testsuite/23_containers/unordered_map/requirements/52942.cc: New.
908         * testsuite/23_containers/unordered_set/requirements/52942.cc: Likewise.
909
910 2012-04-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
911
912         PR libstdc++/52924
913         * include/bits/shared_ptr_base.h (_Sp_counted_deleter): Add
914         user-defined destructor.
915         (_Sp_counted_inplace): Likewise.
916         * testsuite/20_util/shared_ptr/cons/52924.cc: New.
917         * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error
918         line numbers.
919
920 2012-04-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
921
922         * testsuite/performance/30_threads/future/polling.cc: Adjust.
923
924 2012-04-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
925
926         PR libstdc++/52591
927         * include/bits/stl_vector.h (vector::operator=(vector&&)): Dispatch
928         to _M_move_assign depending on whether allocator is moved.
929         (vector::_M_move_assign): Add overloaded functions.
930         * testsuite/23_containers/vector/52591.cc: New.
931         * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
932         Adjust dg-error line number.
933         * testsuite/23_containers/vector/requirements/dr438/
934         constructor_1_neg.cc:
935         Likewise.
936         * testsuite/23_containers/vector/requirements/dr438/
937         constructor_2_neg.cc:
938         Likewise.
939         * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
940         Likewise.
941
942 2012-04-09  François Dumont  <fdumont@gcc.gnu.org>
943
944         PR libstdc++/52476
945         * include/bits/hashtable.h (_Hashtable<>::_M_rehash_aux): Add.
946         (_Hashtable<>::_M_rehash): Use the latter.
947         * testsuite/23_containers/unordered_multimap/insert/52476.cc: New.
948         * testsuite/23_containers/unordered_multiset/insert/52476.cc: New.
949
950 2012-04-09  Terry Guo  <terry.guo@arm.com>
951
952         Backport from mainline
953         2012-03-28  Terry Guo  <terry.guo@arm.com>
954
955         * testsuite/Makefile.am (TEST_GCC_EXEC_PREFIX): New.
956         * testsuite/Makefile.in: Regenerated.
957
958 2012-03-30  Jeffrey Yasskin  <jyasskin@gcc.gnu.org>
959             Paolo Carlini  <paolo.carlini@oracle.com>
960
961         PR libstdc++/52799
962         * include/bits/deque.tcc (emplace): Fix thinko, replace push_front
963         -> emplace_front, and likewise for *_back.
964         * testsuite/23_containers/deque/modifiers/emplace/52799.cc: New.
965         * testsuite/23_containers/list/modifiers/emplace/52799.cc: Likewise.
966         * testsuite/23_containers/vector/modifiers/emplace/52799.cc: Likewise.
967
968 2012-03-23  David S. Miller  <davem@davemloft.net>
969
970         * config/abi/post/sparc-linux-gnu/baseline_symbols.txt: Update.
971
972 2012-03-23  Paolo Carlini  <paolo.carlini@oracle.com>
973
974         * include/bits/forward_list.h: Fix comments.
975
976 2012-03-23  Paweł Sikora  <pawel.sikora@agmk.net>
977
978         PR libstdc++/52540
979         * include/Makefile.am (c++config.h): Fix sed rule to not break
980         the _GLIBCXX_EXTERN_TEMPLATE redefinition.
981         * include/Makefile.in: Regenerate.
982
983 2012-03-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
984
985         PR libstdc++/52433
986         * include/debug/safe_iterator.h (_Safe_iterator): Add move
987         constructor and move assignment operator.
988         * testsuite/23_containers/vector/debug/52433.cc: New.
989
990 2012-03-22  Paolo Carlini  <paolo.carlini@oracle.com>
991
992         * include/std/array (array<>::at(size_type) const): Fix version
993         for undefined __EXCEPTIONS.
994
995 2012-03-22  Release Manager
996
997         * GCC 4.7.0 released.
998
999 2012-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1000
1001         PR libstdc++/52456
1002         * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.
1003
1004 2012-03-09  Andreas Schwab  <schwab@linux-m68k.org>
1005
1006         * config/locale/gnu/monetary_members.cc
1007         (moneypunct<char,true>::_M_initialize_moneypunct): Throw caught
1008         exception again.
1009         (moneypunct<char,false>::_M_initialize_moneypunct): Likewise.
1010         * testsuite/22_locale/locale/cons/12352.cc: Also test en_US
1011         locale.
1012
1013 2012-03-02  Benjamin Kosnik  <bkoz@redhat.com>
1014
1015         * include/c_global/cstdio: Remove extraneous extern.
1016         * include/c_std/cstdio: Same.
1017
1018 2012-03-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1019
1020         * config/abi/post/solaris2.8/baseline_symbols.txt: Regenerate.
1021         * config/abi/post/solaris2.8/sparcv9/baseline_symbols.txt: Likewise.
1022         * config/abi/post/solaris2.10/baseline_symbols.txt: Likewise.
1023         * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1024         * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1025
1026 2012-03-01  Benjamin Kosnik  <bkoz@redhat.com>
1027             Ramana Radhakrishnan <ramana@gcc.gnu.org>
1028
1029         PR libstdc++/51785
1030         * acinclude.m4 (GLIBCXX_CHECK_STDIO_PROTO): New.
1031         * configure.ac: Call it.
1032         * configure: Regenerate.
1033         * config.h.in: Same.
1034         * config/os/gnu-linux/os_defines.h: Conditionally undefine
1035         _GLIBCXX_HAVE_GETS.
1036         * include/c_global/cstdio: Conditionally declare deprecated gets.
1037         * include/c_std/cstdio: Same.
1038
1039 2012-03-01  Michael Spertus  <mike_spertus@symantec.com>
1040
1041         * include/tr2/type_traits (typelist): To __reflection_typelist.
1042         (first, rest, empty): Remove.
1043
1044 2012-03-01  Benjamin Kosnik  <bkoz@redhat.com>
1045
1046         * testsuite/Makefile.am (CLEANFILES): Add *.gdb.
1047         * testsuite/Makefile.in: Regenerate.
1048
1049 2012-02-29  H.J. Lu  <hongjiu.lu@intel.com>
1050
1051         * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
1052
1053 2012-02-28  Benjamin Kosnik  <bkoz@redhat.com>
1054
1055         PR libstdc++/52191
1056         * testsuite/util/testsuite_abi.cc (compare_symbols): Check new
1057         symbols added into the latest version. Mark tls entities as
1058         undesignated.
1059
1060 2012-02-28  Jakub Jelinek  <jakub@redhat.com>
1061
1062         PR bootstrap/52414
1063         * src/Makefile.am (libstdc++-symbols.ver): Only remove comment lines
1064         if they are at the beginning of lines (with optional whitespace before
1065         #).
1066         * src/Makefile.in: Regenerated.
1067
1068 2012-02-27  Jakub Jelinek  <jakub@redhat.com>
1069
1070         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
1071         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
1072         * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
1073         Likewise.
1074         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
1075         * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise.
1076         * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
1077         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
1078         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
1079         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise.
1080
1081 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1082
1083         PR libstdc++/52188
1084         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Remove symvers_renaming.
1085         Remove ENABLE_SYMVERS_SOL2.
1086         * configure: Regenerate.
1087         * src/Makefile.am [ENABLE_SYMVERS] (libstdc++-symbols.ver):
1088         Postprocess mapfile.
1089         [ENABLE_SYMVERS_GNU]: Remove ENABLE_SYMVERS_SOL2 handling.
1090         * src/Makefile.in: Regenerate.
1091
1092         * config/abi/pre/gnu.ver (GLIBCXX_3.4.5) [!__sun__ && !__svr4__]:
1093         Don't export
1094         _ZNSt19istreambuf_iteratorI[cw]St11char_traitsI[cw]EEppEv.
1095
1096 2012-02-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1097
1098         PR testsuite/52201
1099         * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
1100         Require atomic builtins.
1101         * testsuite/29_atomics/atomic/operators/51811.cc: Likewise.
1102
1103 2012-02-23  Jason Merrill  <jason@redhat.com>
1104
1105         * include/bits/locale_facets.h (class num_get): Undo reordering of
1106         do_get virtual functions.
1107
1108 2012-02-14  Edward Smith-Rowland  <3dw4rd@verizon.net>
1109
1110         * testsuite/26_numerics/random/
1111         uniform_real_distribution/requirements/typedefs.cc: Check param_type.
1112         * testsuite/26_numerics/random/
1113         piecewise_constant_distribution/requirements/typedefs.cc: Ditto.
1114         * testsuite/26_numerics/random/
1115         chi_squared_distribution/requirements/typedefs.cc: Ditto.
1116         * testsuite/26_numerics/random/
1117         normal_distribution/requirements/typedefs.cc: Ditto.
1118         * testsuite/26_numerics/random/
1119         uniform_int_distribution/requirements/typedefs.cc: Ditto.
1120         * testsuite/26_numerics/random/
1121         poisson_distribution/requirements/typedefs.cc: Ditto.
1122         * testsuite/26_numerics/random/
1123         bernoulli_distribution/requirements/typedefs.cc: Ditto.
1124         * testsuite/26_numerics/random/
1125         discrete_distribution/requirements/typedefs.cc: Ditto.
1126         * testsuite/26_numerics/random/
1127         weibull_distribution/requirements/typedefs.cc: Ditto.
1128         * testsuite/26_numerics/random/
1129         cauchy_distribution/requirements/typedefs.cc: Ditto.
1130         * testsuite/26_numerics/random/
1131         negative_binomial_distribution/requirements/typedefs.cc: Ditto.
1132         * testsuite/26_numerics/random/
1133         gamma_distribution/requirements/typedefs.cc: Ditto.
1134         * testsuite/26_numerics/random/
1135         fisher_f_distribution/requirements/typedefs.cc: Ditto.
1136         * testsuite/26_numerics/random/
1137         exponential_distribution/requirements/typedefs.cc: Ditto.
1138         * testsuite/26_numerics/random/
1139         binomial_distribution/requirements/typedefs.cc: Ditto.
1140         * testsuite/26_numerics/random/
1141         lognormal_distribution/requirements/typedefs.cc: Ditto.
1142         * testsuite/26_numerics/random/
1143         extreme_value_distribution/requirements/typedefs.cc: Ditto.
1144         * testsuite/26_numerics/random/
1145         piecewise_linear_distribution/requirements/typedefs.cc: Ditto.
1146         * testsuite/26_numerics/random/
1147         student_t_distribution/requirements/typedefs.cc: Ditto.
1148         * testsuite/26_numerics/random/
1149         geometric_distribution/requirements/typedefs.cc: Ditto.
1150
1151 2012-02-21  Benjamin Kosnik  <bkoz@redhat.com>
1152
1153         PR libstdc++/50349
1154         * config/abi/pre/gnu.ver: Only one local.
1155         * config/abi/pre/gnu-versioned-namespace.ver: Same.
1156
1157 2012-02-21  Paolo Carlini  <paolo.carlini@oracle.com>
1158
1159         PR libstdc++/52317 (cont)
1160         * include/profile/unordered_map: Ad Library Exception comment.
1161         * include/profile/set: Likewise.
1162         * include/profile/base.h: Likewise.
1163         * include/profile/impl/profiler_list_to_slist.h: Likewise.
1164         * include/profile/impl/profiler_container_size.h: Likewise.
1165         * include/profile/impl/profiler_vector_size.h: Likewise.
1166         * include/profile/impl/profiler_hash_func.h: Likewise.
1167         * include/profile/impl/profiler_trace.h: Likewise.
1168         * include/profile/impl/profiler_list_to_vector.h: Likewise.
1169         * include/profile/impl/profiler_vector_to_list.h: Likewise.
1170         * include/profile/impl/profiler.h: Likewise.
1171         * include/profile/impl/profiler_state.h: Likewise.
1172         * include/profile/impl/profiler_map_to_unordered_map.h: Likewise.
1173         * include/profile/impl/profiler_algos.h: Likewise.
1174         * include/profile/impl/profiler_hashtable_size.h: Likewise.
1175         * include/profile/impl/profiler_node.h: Likewise.
1176         * include/profile/vector: Likewise.
1177         * include/profile/unordered_set: Likewise.
1178         * include/profile/map.h: Likewise.
1179         * include/profile/map: Likewise.
1180
1181 2012-02-21  Paolo Carlini  <paolo.carlini@oracle.com>
1182
1183         PR libstdc++/52317
1184         * python/Makefile.am: Update boilerplate license text to GPLv3.
1185         * include/profile/unordered_map: Likewise.
1186         * include/profile/set: Likewise.
1187         * include/profile/base.h: Likewise.
1188         * include/profile/impl/profiler_list_to_slist.h: Likewise.
1189         * include/profile/impl/profiler_container_size.h: Likewise.
1190         * include/profile/impl/profiler_vector_size.h: Likewise.
1191         * include/profile/impl/profiler_hash_func.h: Likewise.
1192         * include/profile/impl/profiler_trace.h: Likewise.
1193         * include/profile/impl/profiler_list_to_vector.h: Likewise.
1194         * include/profile/impl/profiler_vector_to_list.h: Likewise.
1195         * include/profile/impl/profiler.h: Likewise.
1196         * include/profile/impl/profiler_state.h: Likewise.
1197         * include/profile/impl/profiler_map_to_unordered_map.h: Likewise.
1198         * include/profile/impl/profiler_algos.h: Likewise.
1199         * include/profile/impl/profiler_hashtable_size.h: Likewise.
1200         * include/profile/impl/profiler_node.h: Likewise.
1201         * include/profile/vector: Likewise.
1202         * include/profile/unordered_set: Likewise.
1203         * include/profile/map.h: Likewise.
1204         * include/profile/map: Likewise.
1205         * testsuite/21_strings/basic_string/numeric_conversions/
1206         wchar_t/dr1261.cc: Likewise.
1207         * testsuite/21_strings/basic_string/numeric_conversions/
1208         char/dr1261.cc: Likewise.
1209         * testsuite/20_util/reference_wrapper/invoke-2.cc: Likewise.
1210
1211 2012-02-20  Paolo Carlini  <paolo.carlini@oracle.com>
1212
1213         PR libstdc++/52241
1214         * src/c++98/tree.cc (local_Rb_tree_increment,
1215         local_Rb_tree_decrement): Add.
1216         (_Rb_tree_increment(const _Rb_tree_node_base*),
1217         _Rb_tree_decrement(const _Rb_tree_node_base*)): Use the latter.
1218         (_Rb_tree_increment(_Rb_tree_node_base*),
1219         _Rb_tree_decrement(_Rb_tree_node_base*)): New.
1220
1221 2012-02-20  Paolo Carlini  <paolo.carlini@oracle.com>
1222
1223         PR libstdc++/52309
1224         * include/bits/hashtable_policy.h (_Equality_base<, true,>::
1225         _M_equal(const _Hashtable&)): Compare values with operator==.
1226         * testsuite/23_containers/unordered_set/operators/52309.cc: New.
1227
1228 2012-02-17  Benjamin Kosnik  <bkoz@redhat.com>
1229
1230         PR libstdc++/51798 continued.
1231         * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Grep for
1232         __atomic_, not __sync.
1233         * configure: Regenerated.
1234
1235 2012-02-17  Benjamin Kosnik  <bkoz@redhat.com>
1236
1237         PR libstdc++/47058
1238         * acinclude.m4 (GLIBCXX_ENABLE_WERROR): New.
1239         (GLIBCXX_EXPORT_FLAGS): Add -Wabi to WARN_FLAGS
1240         * configure.ac: Use it.
1241         * fragment.am: Set WERROR_FLAG conditionally on --disable-werror.
1242         * configure: Regenerate.
1243         * python/Makefile.in: Same.
1244         * Makefile.in: Same.
1245         * doc/Makefile.in: Same.
1246         * include/Makefile.in: Same.
1247         * po/Makefile.in: Same.
1248         * python/Makefile.in: Same.
1249         * src/Makefile.in: Same.
1250         * src/c++11/Makefile.in: Same.
1251         * src/c++98/Makefile.in: Same.
1252         * testsuite/Makefile.in: Same.
1253
1254 2012-02-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1255
1256         PR libstdc++/52189
1257         * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Handle
1258         --enable-libstdcxx-threads.
1259         Disable on Solaris 8/9 with symbol versioning.
1260         * configure.ac (GLIBCXX_CHECK_GTHREADS): Move after
1261         GLIBCXX_ENABLE_SYMVERS.
1262         * configure: Regenerate.
1263         * doc/xml/manual/configure.xml (--enable-libstdcxx-threads): Explain.
1264
1265 2012-02-15  DJ Delorie  <dj@redhat.com>
1266
1267         * src/c++98/locale.cc (locale::facet::_S_get_c_locale): Fix typo.
1268
1269 2012-02-15  Benjamin Kosnik  <bkoz@redhat.com>
1270
1271         PR libstdc++/51368
1272         * acinclude.m4 (GLIBCXX_ENABLE_PYTHON): New.
1273         * configure.ac: Use it.
1274         * python/Makefile.am: Same.
1275         * configure: Regenerate.
1276         * python/Makefile.in: Regenerate.
1277         * Makefile.in: Same.
1278         * doc/Makefile.in: Same.
1279         * include/Makefile.in: Same.
1280         * po/Makefile.in: Same.
1281         * src/Makefile.in: Same.
1282         * src/c++11/Makefile.in: Same.
1283         * src/c++98/Makefile.in: Same.
1284         * testsuite/Makefile.in: Same.
1285
1286 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
1287
1288         * 30_threads/thread/native_handle/typesizes.cc: Do not run on cygwin.
1289
1290 2012-02-14  Tom Tromey  <tromey@redhat.com>
1291
1292         * testsuite/libstdc++-prettyprinters/cxx11.cc (main): Add new
1293         tests.
1294         * python/libstdcxx/v6/printers.py (Tr1HashtableIterator.__init__):
1295         Rewrite.
1296         (Tr1HashtableIterator.update): Remove.
1297         (Tr1HashtableIterator.next): Rewrite.
1298
1299 2012-02-13  Benjamin Kosnik  <bkoz@redhat.com>
1300
1301         * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line numbers.
1302         * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Same.
1303
1304 2012-02-13  Richard Henderson  <rth@redhat.com>
1305
1306         PR libstdc++/51798 continued.
1307         * include/bits/shared_ptr_base.h
1308         (_Sp_counted_base<_S_atomic>::_M_add_ref_lock): Hoist initial load
1309         outside compare_exchange loop.
1310         * include/tr1/shared_ptr.h: Same.
1311         * include/parallel/compatibility.h (__compare_and_swap_32): Use strong
1312         version of compare_exchange.
1313         (__compare_and_swap_64): Same.
1314         * include/profile/impl/profiler_state.h (__gnu_profile::__turn): Same.
1315         * libsupc++/guard.cc (__cxa_guard_acquire): Same.
1316
1317 2012-02-10  Benjamin Kosnik  <bkoz@redhat.com>
1318             Jonathan Wakely  <jwakely.gcc@gmail.com>
1319
1320         PR libstdc++/51798 continued.
1321         * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Use __atomic_*
1322         builtins instead of __sync_* builtins for atomic functionality.
1323         * include/bits/shared_ptr_base.h: Same.
1324         * include/parallel/compatibility.h: Same.
1325         * include/profile/impl/profiler_state.h: Same.
1326         * include/tr1/shared_ptr.h: Same.
1327         * libsupc++/eh_ptr.cc: Same.
1328         * libsupc++/eh_throw.cc: Same.
1329         * libsupc++/eh_tm.cc: Same.
1330         * libsupc++/guard.cc: Same.
1331         * configure: Regenerated.
1332         * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line numbers.
1333         * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Same.
1334
1335 2012-02-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1336
1337         PR libstdc++/51296
1338         * config/os/osf/ctype_base.h,
1339         config/os/osf/ctype_configure_char.cc,
1340         config/os/osf/ctype_inline.h, config/os/osf/error_constants.h:
1341         Copy from config/os/generic.
1342         * config/os/osf/os_defines.h: Likewise.
1343         (_GTHREAD_USE_MUTEX_INIT_FUNC, _GTHREAD_USE_COND_INIT_FUNC):
1344         Define.
1345         * configure.host <osf*>: Use os/osf for os_include_dir.
1346
1347 2012-02-10  Uros Bizjak  <ubizjak@gmail.com>
1348
1349         * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Regenerated.
1350
1351 2012-02-09  Jonathan Wakely  <jwakely.gcc@gmail.com>
1352
1353         * doc/xml/manual/documentation_hacking.xml: Fix invalid attribute.
1354
1355 2012-02-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1356
1357         * doc/xml/manual/status_cxx2011.xml: Update C++11 status table.
1358
1359 2012-02-07  Benjamin Kosnik  <bkoz@redhat.com>
1360
1361         * doc/doxygen/user.cfg.in: Update to doxygen 1.7.6.1.
1362         * doc/xml/manual/documentation_hacking.xml: Update.
1363
1364 2012-02-07  Jonathan Wakely  <jwakely.gcc@gmail.com>
1365
1366         * testsuite/30_threads/call_once/39909.cc: Remove duplicate target
1367         selector.
1368         * testsuite/30_threads/call_once/49668.cc: Likewise.
1369         * testsuite/30_threads/call_once/call_once1.cc: Likewise.
1370         * testsuite/30_threads/lock_guard/cons/1.cc: Likewise.
1371         * testsuite/30_threads/mutex/cons/1.cc: Likewise.
1372         * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise.
1373         * testsuite/30_threads/mutex/lock/1.cc: Likewise.
1374         * testsuite/30_threads/mutex/native_handle/1.cc: Likewise.
1375         * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise.
1376         * testsuite/30_threads/mutex/try_lock/1.cc: Likewise.
1377         * testsuite/30_threads/mutex/try_lock/2.cc: Likewise.
1378         * testsuite/30_threads/mutex/unlock/1.cc: Likewise.
1379         * testsuite/30_threads/unique_lock/cons/1.cc: Likewise.
1380         * testsuite/30_threads/unique_lock/cons/2.cc: Likewise.
1381         * testsuite/30_threads/unique_lock/cons/3.cc: Likewise.
1382         * testsuite/30_threads/unique_lock/cons/4.cc: Likewise.
1383         * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
1384         * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
1385         * testsuite/30_threads/unique_lock/locking/1.cc: Likewise.
1386         * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
1387         * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
1388         * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
1389         * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
1390         * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
1391
1392 2012-02-07  Jonathan Wakely  <jwakely.gcc@gmail.com>
1393
1394         PR libstdc++/51296
1395         * include/std/mutex (__mutex_base::~__mutex_base): Declare noexcept.
1396         * src/c++11/condition_variable.cc (condition_variable): Use macro for
1397         initializer function.
1398
1399         PR libstdc++/51906
1400         * config/os/bsd/darwin/os_defines.h: Disable static initializer for
1401         recursive mutexes.
1402
1403 2012-02-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
1404
1405         PR libstdc++/52128
1406         * src/c++11/future.cc: Add explicit instantiation.
1407
1408 2012-02-06  François Dumont  <fdumont@gcc.gnu.org>
1409
1410         * include/debug/safe_iterator.h
1411         (_Safe_iterator::_M_before_dereferenceable): Avoid the expensive
1412         creation of a _Safe_iterator instance to do the check.
1413
1414 2012-02-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
1415
1416         PR libstdc++/52104
1417         * include/std/future (__future_base::_Async_state_common): Define
1418         destructor inline for targets without TLS.
1419         * src/c++11/future.cc (__future_base::_Async_state_common): Only
1420         define destructor for TLS targets.
1421
1422 2012-02-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
1423
1424         PR libstdc++/51956
1425         * python/libstdcxx/v6/printers.py (StdPointerPrinter): Rename to...
1426         (SharedPointerPrinter): This. Also show weak count.
1427         * testsuite/libstdc++-prettyprinters/shared_ptr.cc: New.
1428
1429 2012-02-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
1430
1431         * testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Modify to
1432         PASS instead of XFAIL.
1433
1434 2012-02-05  Jeffrey Yasskin  <jyasskin@gcc.gnu.org>
1435             Paolo Carlini  <paolo.carlini@oracle.com>
1436
1437         PR libstdc++/52119
1438         * include/std/limits (__glibcxx_min): Fix to avoid undefined behavior.
1439
1440 2012-02-03  Benjamin Kosnik  <bkoz@redhat.com>
1441
1442         PR libstdc++/49445
1443         * testsuite/29_atomics/atomic/cons/49445.cc: Add.
1444
1445 2012-02-03  Benjamin Kosnik  <bkoz@redhat.com>
1446
1447         PR libstdc++/51811
1448         * include/bits/atomic_base.h (atomic<_Tp*>): Fix offsets.
1449         * testsuite/29_atomics/atomic/operators/51811.cc: New.
1450         * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: New.
1451
1452 2012-02-03  Jakub Jelinek  <jakub@redhat.com>
1453
1454         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
1455         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
1456         * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
1457         Likewise.
1458         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
1459         * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise.
1460         * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
1461         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
1462         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
1463         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise.
1464
1465 2012-02-02  Benjamin Kosnik  <bkoz@redhat.com>
1466
1467         PR libstdc++/52068
1468         * src/c++11/Makefile.am (toolexeclib_LTLIBRARIES,
1469         libc__11_la_SOURCES): Remove.
1470         * src/c++11/Makefile.in: Regenerate.
1471         * src/c++98/Makefile.am (toolexeclib_LTLIBRARIES,
1472         libc__98_la_SOURCES): Remove.
1473         * src/c++98/Makefile.in: Regenerate.
1474
1475 2012-02-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
1476
1477         PR libstdc++/49204
1478         * include/std/future (__future_base::_State_base::wait()): Use lambda
1479         expression for predicate and remove redundant test.
1480         (__future_base::_State_base::wait_for()): Return future_status and
1481         use lambda expression for predicate.
1482         (__future_base::_State_base::wait_until()): Likewise.
1483         (__basic_future::wait_for(), __basic_future::wait_until()): Likewise.
1484         (__future_base::_Async_state): Replace with _Async_state_common
1485         class for non-dependent functionality and _Async_state_impl class
1486         template for dependent functionality.
1487         (__future_base::_Async_state_common::_M_join): Serialize attempts to
1488         join thread.
1489         (__future_base::_Async_state_common::_M_run_deferred): Join.
1490         (__future_base::_Async_state::_M_do_run): Replace with lambda.
1491         * src/c++11/future.cc (__future_base::_Async_state_common): Define
1492         destructor, so key function is in the library.
1493         * config/abi/pre/gnu.ver: Add exports for ~_Async_state_common.
1494         * testsuite/30_threads/packaged_task/members/get_future.cc: Expect
1495         future_status return instead of bool.
1496         * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise.
1497         * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise.
1498         * testsuite/30_threads/future/members/wait_until.cc: Likewise.
1499         * testsuite/30_threads/future/members/wait_for.cc: Likewise.
1500         * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
1501         * testsuite/30_threads/promise/members/set_value3.cc: Likewise.
1502         * testsuite/30_threads/promise/members/swap.cc: Likewise.
1503
1504 2012-01-30  Tom Tromey  <tromey@redhat.com>
1505
1506         PR libstdc++/51649:
1507         * testsuite/libstdc++-prettyprinters/debug.cc: New file.
1508         * testsuite/lib/gdb-test.exp (regexp-test): New proc.
1509         (note-test): Update.
1510         (gdb-test): Handle regexp tests.  Add some logging.
1511         * testsuite/libstdc++-prettyprinters/simple.cc: Compile with -O0.
1512         (placeholder, use): Remove.
1513         (main): Add tests for deque, list, map, and set iterators.  Add
1514         tests for slist and slist iterator.
1515         * testsuite/libstdc++-prettyprinters/48362.cc (main): Handle __7
1516         namespace.
1517         * python/libstdcxx/v6/printers.py (StdListPrinter.children): Use
1518         the type's _Node typedef.
1519         (StdListIteratorPrinter.to_string): Change how node type is
1520         computed.
1521         (StdSlistPrinter.children): Use the type's _Node typedef.
1522         (StdSlistIteratorPrinter.to_string): Likewise.
1523         (StdRbtreeIteratorPrinter.to_string): Use the type's _Link_type
1524         typedef.
1525         (StdMapPrinter.children): Change how the node's type is computed.
1526         (StdSetPrinter.children): Likewise.
1527         (StdForwardListPrinter.children): Use the type's _Node typedef.
1528         (Printer.add_version): New method.
1529         (Printer.add_container): New method.
1530         (build_libstdcxx_dictionary): Handle __7 and __cxx1998
1531         namespaces.
1532         (find_type): New function.
1533
1534 2012-01-27  Paolo Carlini  <paolo.carlini@oracle.com>
1535
1536         PR libstdc++/51795
1537         * include/bits/random.h (linear_congruential_generator): Add
1538         static_assert preventing instantiation for values of 'a' and 'm'
1539         currently handled incorrectly by _Mod::__calc.
1540         * include/bits/random.tcc (seed_seq::generate): Avoid unsafe
1541         uses of _Mod::__calc.
1542
1543 2012-01-27  Jakub Jelinek  <jakub@redhat.com>
1544
1545         PR libstdc++/51798
1546         * config/cpu/generic/atomicity_builtins/atomicity.h
1547         (__exchange_and_add, __atomic_add): Use __atomic_fetch_add
1548         with __ATOMIC_ACQ_REL semantics instead of __sync_fetch_and_add.
1549         * include/ext/atomicity.h (__exchange_and_add, __atomic_add):
1550         Likewise.
1551
1552 2011-01-27  Rafael Avila de Espindola  <rafael.espindola@gmail.com>
1553
1554         * libsupc++/typeinfo: Correctly match #pragma GCC visibility
1555         pop with #pragma GCC visibility push.
1556
1557 2012-01-27  Benjamin Kosnik  <bkoz@redhat.com>
1558             Matthias Klose  <doko@ubuntu.com>
1559
1560         * configure.ac (GLIBCXX_ENABLE_DEBUG_FLAGS): Use -gdwarf-4 -g3 -O0.
1561         * configure.in: Regenerated.
1562         * src/Makefile.am (all-once, install-data-once): New rules.
1563         (all-local, install-data-local): Use them.
1564         (build-debug, install-debug): Tweak.
1565         * src/Makefile.in: Regenerate.
1566
1567 2012-01-27  Richard Henderson  <rth@redhat.com>
1568
1569         * include/bits/atomic_base.h (__atomic_flag_base): Define _M_i
1570         based on the value of __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
1571         (ATOMIC_FLAG_INIT): Initialize with 0, not false.
1572         (atomic_flag::atomic_flag): Use __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
1573
1574 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
1575
1576         PR bootstrap/51985
1577         * src/c++98/Makefile.am (libc__98_la_SOURCES,
1578         libc__98convenience_la_SOURCES): Remove $(inst_sources).
1579         * src/c++98/Makefile.in: Regenerated.
1580
1581 2012-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
1582
1583         * testsuite/20_util/system_clock/1.cc: Add dg-require-time.
1584         * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: Likewise.
1585         * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: Likewise.
1586         * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: Likewise.
1587         * testsuite/27_io/basic_istream/readsome/wchar_t/6746-2.cc: Add
1588         dg-require-fileio.
1589         * testsuite/27_io/basic_istream/seekg/wchar_t/fstream.cc: Likewise.
1590         * testsuite/27_io/basic_istream/tellg/wchar_t/1.cc: Likewise.
1591         * testsuite/27_io/basic_istream/tellg/wchar_t/fstream.cc: Likewise.
1592         * testsuite/27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc:
1593         Likewise.
1594         * testsuite/27_io/basic_ostream/tellp/wchar_t/1.cc: Likewise.
1595
1596 2012-01-25  Matthias Klose  <doko@ubuntu.com>
1597
1598         * testsuite/30_threads/condition_variable_any/requirements: Remove
1599         empty directory.
1600
1601 2012-01-23  Benjamin Kosnik  <bkoz@redhat.com>
1602
1603         * src/Makefile.am (libstdc++convenience.la): Correct stamp rule, copy.
1604         * src/Makefile.in: Regenerate.
1605
1606 2012-01-23  Benjamin Kosnik  <bkoz@redhat.com>
1607
1608         PR libstdc++/49829
1609         Add libc++98convenience.la, libc++11convenience.la.
1610         * src/c++98: New directory.
1611         * src/c++11: New directory.
1612         * acinclude.m4: (GLIBCXX_CONFIGURE): Add src-c++98, src-c++11.
1613         * configure: Regenerated.
1614         * Makefile.am (hosted_source): Add src-c++98, src-c++11 to SUBDIRS.
1615         * Makefile.in: Regenerate.
1616         * libsupc++/Makefile.am (AM_CXXFLAGS): USe XTEMPLATE_FLAGS for
1617         -fno-implicit-templates.
1618         * libsupc++/Makefile.in: Regenerate.
1619         * src/Makefile.am (inst_sources): Move... C++11 files into
1620         separate directory for libstdc++11convenience.la. Files are:
1621         fstream-inst.cc, string-inst.cc, wlocale-inst.cc, wstring-inst.cc).
1622         (sources): Move C++11 files. Files are: compatibility-c++0x.cc,
1623         compatibility-atomic-c++0x.cc, debug.cc, functexcept.cc,
1624         functional.cc, hash_c++0x.cc, hashtable_c++0x.cc, limits.cc,
1625         system_error.cc, placeholders.cc, regex.cc, shared_ptr.cc,
1626         mutex.cc, condition_variable.cc, chrono.cc, thread.cc, future.cc.
1627         (libstdc++convenience.la): Add new target.
1628         (SUBDIRS): Add c++11, c++98.
1629         * src/Makefile.in: Regenerate.
1630         * src/c++11/Makefile.am: New.
1631         * src/c++11/Makefile.in: Generate.
1632         * src/c++98/Makefile.am: New, C++98 files.
1633         * src/c++98/Makefile.in: Generate.
1634
1635 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1636
1637         libstdc++-v3:
1638         * testsuite/22_locale/num_put/put/char/14220.cc: Don't xfail on
1639         32-bit Solaris 10/x86.
1640         * testsuite/22_locale/num_put/put/wchar_t/14220.cc: Likewise.
1641
1642 2012-01-21  Jonathan Wakely  <jwakely.gcc@gmail.com>
1643
1644         PR libstdc++/50982
1645         * testsuite/30_threads/*: Add powerpc-ibm-aix* to target selectors.
1646
1647 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
1648
1649         PR libstdc++/51845
1650         * include/bits/hashtable.h
1651         (_Hashtable<>::erase(const_iterator, const_iterator)): Also update
1652         _M_buckets[__n_bkt] if __is_bucket_begin.
1653         * testsuite/23_containers/unordered_multimap/erase/51845-multimap.cc:
1654         New test.
1655
1656 2012-01-18  Benjamin Kosnik  <bkoz@redhat.com>
1657
1658         * acinclude (GLIBCXX_CONFIGURE_DOCBOOK): Fix quoting.
1659
1660 2012-01-18  Benjamin Kosnik  <bkoz@redhat.com>
1661
1662         * configure.ac: Move epub checks...
1663         * acinclude (GLIBCXX_CONFIGURE_DOCBOOK): ...here, use
1664         test -f instead of AC_CHECK_FILES.
1665
1666 2012-01-18  François Dumont  <fdumont@gcc.gnu.org>
1667             Roman Kononov  <roman@binarylife.net>
1668
1669         PR libstdc++/51866
1670         * include/bits/hashtable.h (_Hashtable<>::_M_insert(_Arg, false_type)):
1671         Do not keep a reference to a potentially moved instance.
1672         * testsuite/23_containers/unordered_multiset/insert/51866.cc: New.
1673         * testsuite/23_containers/unordered_multimap/insert/51866.cc: New.
1674
1675 2012-01-17  Benjamin Kosnik  <bkoz@redhat.com>
1676
1677         * doc/html/*: Regenerate.
1678
1679 2012-01-17  Benjamin Kosnik  <bkoz@redhat.com>
1680
1681         * configure.ac (BUILD_EPUB): Adjust for epub3.
1682         * configure: Regenerate.
1683         * Makefile.in: Same.
1684         * doc/Makefile.am (stamp-epub-docbook): Update for epub3.
1685         * doc/Makefile.in: Regenerate.
1686         * include/Makefile.in: Same.
1687         * libsupc++/Makefile.in: Same.
1688         * po/Makefile.in: Same.
1689         * python/Makefile.in: Same.
1690         * src/Makefile.in: Same.
1691         * testsuite/Makefile.in: Same.
1692
1693         * doc/xml/manual/documentation_hacking.xml: Update.
1694
1695 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1696
1697         PR target/47852
1698         * configure.host (irix6.5*): Add -lpthread to OPT_LDFLAGS.
1699
1700 2012-01-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
1701
1702         * include/bits/stl_iterator.h (reverse_iterator): Doxygen comments.
1703
1704 2012-01-13  François Dumont  <fdumont@gcc.gnu.org>
1705
1706         * include/bits/hashtable_policy.h (_Hash_node_base): New, use it as
1707         base class of ...
1708         (_Hash_node<Value, true>, _Hash_node<Value, false>): ... those.
1709         * include/bits/hashtable.h (_Hashtable): Replace _M_begin_bucket_index
1710         by _M_before_begin. Review implementation so that we do not need to
1711         look for previous non-empty bucket when inserting nodes.
1712
1713 2012-01-09  Kai Tietz  <ktietz@redhat.com>
1714
1715         PR libstc++/51673 part 2
1716         * config/abi/pre/gnu-versioned-namespace.ver: Adjusted new/delete
1717         operators signature for LLP64 size_t, and adjusted signatures for
1718         mt-allocator using size_t.
1719
1720 2012-01-09  Benjamin Kosnik  <bkoz@redhat.com>
1721
1722         PR libstc++/51673 part 1
1723         * config/abi/pre/gnu-versioned-namespace.ver: Sync cxxabi symbols
1724         with gnu.ver.
1725
1726 2012-01-09  Benjamin Kosnik  <bkoz@redhat.com>
1727
1728         * fragment.am (WARN_CXXFLAGS): Add -Wabi.
1729         * Makefile.in: Regenerate.
1730         * doc/Makefile.in: Same.
1731         * include/Makefile.in: Same.
1732         * libsupc++/Makefile.in: Same.
1733         * src/Makefile.in: Same.
1734         * testsuite/Makefile.in: Same.
1735         * po/Makefile.in: Same.
1736         * python/Makefile.in: Same.
1737
1738 2012-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1739
1740         * python/libstdcxx/v6/printers.py (StdForwardListPrinter): Add.
1741         * testsuite/libstdc++-prettyprinters/cxx11.cc: New.
1742
1743 2012-01-06  Jason Merrill  <jason@redhat.com>
1744
1745         * testsuite/abi/demangle/regression/cw-16.cc (main): Adjust
1746         expected demangling.
1747
1748 2012-01-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
1749
1750         PR libstdc++/51504
1751         * doc/xml/manual/debug.xml: Suggest using symbol interposition
1752         to override symbols using annotation macros.
1753
1754 2012-01-05  François Dumont  <fdumont@gcc.gnu.org>
1755
1756         * include/bits/hashtable_policy.h (_Hashtable_base<>::_M_eq()):
1757         protected rather than private, use it...
1758         * include/bits/hashtable.h (_Hashtable<>::key_eq()): ... here.
1759         * testsuite/23_containers/unordered_set/observers.cc: New.
1760         * testsuite/23_containers/unordered_multiset/observers.cc: New.
1761         * testsuite/23_containers/unordered_map/observers.cc: New.
1762         * testsuite/23_containers/unordered_multimap/observers.cc: New.
1763
1764 2012-01-03  François Dumont  <fdumont@gcc.gnu.org>
1765
1766         * include/bits/hashtable_policy.h (_Ebo_helper<>): Rename to the more
1767         specific _Hashtable_ebo_helper. Hide this implementation detail thanks
1768         to private inheritance.
1769
1770 2012-01-03  Paolo Carlini  <paolo.carlini@oracle.com>
1771
1772         PR c++/51738
1773         * testsuite/23_containers/map/element_access/39901.cc: New.