OSDN Git Service

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