OSDN Git Service

5228aa7608df20632a6128ce1f7ccd44134cbbf3
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2012-08-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
2
3         PR libstdc++/54297
4         * src/c++11/future.cc (~_Async_state_common): Move to...
5         * src/c++11/compatibility-thread-c++0x.cc (~_Async_state_common):
6         Here.
7         (_GLIBCXX_ABI_COMPAT_ASYNC): Rename to _GLIBCXX_ASYNC_ABI_COMPAT.
8         * include/std/future (_GLIBCXX_ABI_COMPAT_ASYNC): Likewise.
9
10 2012-08-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
11             Geoff Romer  <gromer@google.com>
12
13         PR libstdc++/54351
14         * include/bits/unique_ptr.h (unique_ptr<T>::~unique_ptr): Do not use
15         reset().
16         (unique_ptr<T[]>::~unique_ptr()): Likewise.
17         * testsuite/20_util/unique_ptr/54351.cc: New.
18         * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust dg-error
19         line numbers.
20
21 2012-08-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
22
23         PR libstdc++/54297
24         * include/std/future (~_Async_state_impl): Join thread before
25         derived class members are destroyed.
26         (~_Async_state_common): Only define non-trivial destructor when
27         included from future.cc for ABI compatibility reasons.
28         * src/c++11/future.cc (_GLIBCXX_ABI_COMPAT_ASYNC): Define.
29         * testsuite/30_threads/async/54297.cc: New.
30
31 2012-08-13  David Adler  <d.adler.s@gmail.com>
32
33         PR libstdc++/54185
34         * src/c++11/condition_variable.cc (condition_variable): Always
35         destroy native type in destructor.
36         * testsuite/30_threads/condition_variable/54185.cc: New.
37
38 2012-08-06  Peter Bergner  <bergner@vnet.ibm.com>
39
40         PR libstdc++/54036
41         * include/decimal/decimal.h (_DEFINE_DECIMAL_UNARY_OP): Use _Op as
42         a unary operator.
43         * testsuite/decimal/pr54036-1.cc: New test.
44         * testsuite/decimal/pr54036-2.cc: Likewise.
45         * testsuite/decimal/pr54036-3.cc: Likewise.
46
47 2012-08-02  Michael Hope  <michael.hope@linaro.org>
48
49         Backport from mainline r186389:
50         2012-04-12  Andreas Schwab  <schwab@linux-m68k.org>
51
52         * testsuite/Makefile.am (check_DEJAGNUnormal0): Run
53         prettyprinters.exp.
54         * testsuite/Makefile.in: Regenerated.
55
56 2012-07-29  François Dumont  <fdumont@gcc.gnu.org>
57
58         PR libstdc++/54075
59         * include/bits/hashtable_policy.h
60         (_Prime_rehash_policy::_M_next_bkt): Add a growth factor set to 2
61         to boost growth in the number of buckets.
62         * testsuite/performance/23_containers/insert/unordered_set.cc: New.
63
64 2012-07-26  François Dumont  <fdumont@gcc.gnu.org>
65
66         PR libstdc++/54075
67         * include/bits/hashtable.h
68         (_Hashtable<>::_Hashtable(_InputIterator, _InputIterator,
69         size_type, ...): Remove std::max usage to guarantee that hashtable
70         state is consistent with hash policy state.
71         (_Hashtable<>::rehash): Likewise. Set _M_prev_resize to 0 to avoid
72         the hashtable shrinking on next insertion.
73         * testsuite/23_containers/unordered_set/modifiers/reserve.cc: New.
74         * testsuite/23_containers/unordered_multiset/modifiers/reserve.cc: New.
75         * testsuite/23_containers/unordered_map/modifiers/reserve.cc: New.
76         * testsuite/23_containers/unordered_multimap/modifiers/reserve.cc: New.
77
78 2012-07-20  Paolo Carlini  <paolo.carlini@oracle.com>
79
80         * testsuite/30_threads/thread/adl.cc: Add missing dg-requires.
81
82 2012-07-16  Jonathan Wakely  <jwakely.gcc@gmail.com>
83
84         PR libstdc++/53270
85         * include/ext/concurrence.h: Use NSDMI for gthreads types.
86         * include/ext/rope: Likewise. Destroy mutexes in destructors. Add
87         system_header pragma.
88
89         Revert:
90         2012-06-19  Jonathan Wakely  <jwakely.gcc@gmail.com>
91
92         PR libstdc++/53270
93         * config/os/gnu-linux/os_defines.h: Disable static initializer macros
94         for gthreads types in C++11 mode.
95
96 2012-07-16  Jonathan Wakely  <jwakely.gcc@gmail.com>
97
98         PR libstdc++/53978
99         * include/bits/alloc_traits.h (allocator_traits): Define static
100         constants.
101         * include/bits/ptr_traits.h (pointer_traits): Likewise.
102         * include/ext/alloc_traits.h (__allocator_always_compares_equal):
103         Likewise.
104
105 2012-07-13  Paolo Carlini  <paolo.carlini@oracle.com>
106
107         PR libstdc++/53657
108         * include/bits/stl_pair.h (pair<>::pair(pair&&)): Declare defaulted,
109         per C++11.
110         * include/bits/stl_map.h (map<>::insert(_Pair&&), map<>::insert
111         (const_iterator, _Pair&&)): Constrain with std::is_constructible,
112         per LWG2005.
113         * include/bits/stl_multimap.h (multimap<>::insert(_Pair&&),
114         multimap<>::insert(const_iterator, _Pair&&)): Likewise.
115         * include/bits/hashtable_policy.h (_Insert<>::insert(_Pair&&),
116         _Insert<>::insert(const_iterator, _Pair&&)): Likewise.
117         * include/debug/unordered_map: Adjust.
118         * include/debug/map.h: Likewise.
119         * include/debug/multimap.h: Likewise.
120         * include/profile/unordered_map: Likewise.
121         * include/profile/map.h: Likewise.
122         * include/profile/multimap.h: Likewise.
123
124 2012-07-07  Jonathan Wakely  <jwakely.gcc@gmail.com>
125
126         PR libstdc++/53578
127         * include/ext/concurrence.h (__recursive_mutex::_S_destroy): Fix
128         narrowing conversion.
129         * include/std/mutex (__recursive_mutex_base::_S_destroy): Likewise.
130
131 2012-07-06  Paolo Carlini  <paolo.carlini@oracle.com>
132
133         PR libstdc++/53872
134         * include/std/thread (thread::_M_make_routine): Qualify make_shared
135         to prevent ADL.
136         * testsuite/30_threads/thread/adl.cc: New.
137
138 2012-07-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
139
140         * include/std/condition_variable: Update copyright years.
141
142 2012-07-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
143
144         PR libstdc++/53830
145         * include/std/condition_variable (condition_variable_any::wait):
146         Move _Unlock type to class scope.
147         (condition_variable_any::wait_until): Reuse it.
148         * testsuite/30_threads/condition_variable_any/53830.cc: New.
149
150 2012-07-02  Paolo Carlini  <paolo.carlini@oracle.com>
151
152         Revert:
153         2011-10-04  Paolo Carlini  <paolo.carlini@oracle.com>
154
155         PR libstdc++/49561
156         * include/bits/stl_list.h (_List_base<>::_List_impl::_M_size):
157         Add in C++0x mode.
158         (_List_base<>::_List_impl, _List_base<>::_M_get_node,
159         _List_base<>::_M_put_node, _List_base<>::_List_base(_List_base&&),
160         list<>::size, list<>::swap, list<>::splice): Use it.
161         (operator==(const list<>&, const list<>&)): Rewrite in C++0x mode.
162         * include/bits/list.tcc (list<>::erase): Likewise.
163         (list<>::merge): Adjust in C++0x mode.
164         * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
165         Adjust dg-error line number.
166         * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
167         Likewise.
168         * testsuite/23_containers/list/requirements/dr438/
169         constructor_1_neg.cc: Likewise.
170         * testsuite/23_containers/list/requirements/dr438/
171         constructor_2_neg.cc: Likewise.
172
173 2012-06-19  Jonathan Wakely  <jwakely.gcc@gmail.com>
174
175         PR libstdc++/53270
176         * config/os/gnu-linux/os_defines.h: Disable static initializer macros
177         for gthreads types in C++11 mode.
178
179 2012-06-19  Jörg Sonnenberger <joerg@britannica.bec.de>
180             Jonathan Wakely  <jwakely.gcc@gmail.com>
181
182         PR libstdc++/53678
183         * config/os/bsd/netbsd/ctype_base.h: Check for _CTYPE_U.
184         * testsuite/22_locale/ctype_base/53678.cc: New.
185
186 2012-06-14  Release Manager
187
188         * GCC 4.7.1 released.
189
190 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
191
192         PR c++/53503
193         * testsuite/26_numerics/headers/cmath/53503.cc: New.
194
195 2012-05-10  DJ Delorie  <dj@redhat.com>
196
197         * include/bits/random.tcc (seed_seq::generate): Cast max()
198         operands to size_t to ensure a template match.
199         * include/std/bitset (_M_copy_from_ptr): Cast min() operands to
200         size_t to ensure a template match.
201
202 2012-05-02  Paolo Carlini  <paolo.carlini@oracle.com>
203
204         PR libstdc++/53193
205         * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
206         dg-error line number.
207
208 2012-05-01  François Dumont  <fdumont@gcc.gnu.org>
209
210         PR libstdc++/53115
211         * include/bits/hashtable.h
212         (_Hashtable<>::_M_rehash_aux(size_type, false_type)): Fix buckets
213         after insertion of several equivalent elements.
214         * testsuite/23_containers/unordered_multiset/insert/53115.cc: New.
215         * testsuite/23_containers/unordered_multimap/insert/53115.cc: New.
216
217 2012-04-30  Andreas Tobler  <andreast@fgznet.ch>
218
219         Backport from mainline
220         2012-03-21  Andreas Tobler  <andreast@fgznet.ch>
221
222         * testsuite/23_containers/vector/bool/modifiers/insert/31370.cc:
223         Skip this test on powerpc64-*-freebsd*.
224
225 2012-04-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
226
227         * include/std/scoped_allocator (scoped_allocator::__outermost): Do
228         not pass non-POD to varargs function.
229         * testsuite/20_util/scoped_allocator/1.cc: Fix test.
230
231 2012-04-23  Chris Jefferson  <chris@bubblescope.net>
232
233         PR testsuite/53046
234         * testsuite/25_algorithms/stable_partition/mem_check.cc: Fix size
235         of array A.
236         * testsuite/25_algorithms/stable_sort/mem_check.cc: Likewise.
237
238 2012-04-22  Paolo Carlini  <paolo.carlini@oracle.com>
239
240         PR libstdc++/53067
241         * include/bits/hashtable_policy.h: Change inheritances to public.
242         * testsuite/23_containers/unordered_map/requirements/53067.cc: New.
243         * testsuite/23_containers/unordered_set/requirements/53067.cc: Likewise.
244
245 2012-04-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
246
247         PR libstdc++/53027
248         * include/bits/ptr_traits.h (pointer_traits::rebind): Make public.
249         * testsuite/20_util/pointer_traits/requirements/typedefs.cc: Check
250         rebind works.
251
252 2012-04-21  Alan Modra  <amodra@gmail.com>
253
254         PR libstdc++/52839
255         * acinclude.m4 (_GLIBCXX_ATOMIC_BUILTINS): Do not depend on
256         glibcxx_cv_atomic_long_long.
257         * configure: Regenerate.
258
259 2012-04-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
260
261         PR bootstrap/52840
262         * src/Makefile.am (build-debug): Do not adjust vpath dir, remove
263         Makefile.tmp
264         * src/Makefile.in: Adjust as per above.
265
266 2012-04-16  Benjamin Kosnik  <bkoz@redhat.com>
267
268         PR libstdc++/52689
269         * libsupc++/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
270         * libsupc++/Makefile.in: Regenerated.
271         * src/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
272         (libstdc___la_SOURCES): Add in compatiblity files, with content
273         that varies with -DPIC.
274         * src/Makefile.in: Regenerated.
275         * src/c++11/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
276         * src/c++11/Makefile.in: Regenerated.
277         * src/c++11/compatibility-atomic-c++0x.cc: Guard with PIC.
278         * src/c++11/compatibility-c++0x.cc: Same.
279         * src/c++11/future.cc: Consolidate compatibility bits into..
280         * src/c++11/mutex.cc: Consolidate compatibility bits into..
281         * src/c++11/compatibility-thread-cxx0x.cc: ...here. New.
282         * src/c++98/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
283         * src/c++98/Makefile.in: Regenerated.
284         * src/c++98/compatibility-list-2.cc: Guard with PIC.
285         * src/c++98/compatibility.cc: Tweak comments.
286
287 2012-04-16  Benjamin Kosnik  <bkoz@redhat.com>
288
289             * include/ext/pb_ds/detail/pat_trie_/
290             constructors_destructor_fn_imps.hpp: Increment after recursion.
291             * include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Convert
292             node_type markup from brief.
293
294 2012-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
295
296         PR libstdc++/52699
297         * include/bits/random.tcc (independent_bits_engine<>::operator()())
298         Avoid various overflows; use common_type on result_type and
299         _RandomNumberEngine::result_type; avoid floating point computations;
300         other smaller tweaks.
301
302         * include/bits/random.tcc (uniform_int_distribution<>::operator())
303         Use common_type; assume _UniformRandomNumberGenerator::result_type
304         unsigned; tidy.
305
306         * include/bits/stl_algobase.h (__lg(unsigned), __lg(unsigned long),
307         __lg(unsigned long long)): Add.
308
309 2012-04-13  Paolo Carlini  <paolo.carlini@oracle.com>
310
311         * include/debug/safe_iterator.h (_BeforeBeginHelper<>::
312         _S_Is_Beginnest): Add.
313         * include/debug/forward_list (_BeforeBeginHelper<>::
314         _S_Is_Beginnest): Likewise.
315         (_Safe_iterator<>::_M_is_beginnest): Add.
316         * include/debug/safe_iterator.tcc (_Safe_iterator<>::_M_valid_range):
317         Use the latter.
318         * testsuite/23_containers/forward_list/debug/splice_after.cc:
319         Add test.
320
321 2012-04-12  Paolo Carlini  <paolo.carlini@oracle.com>
322
323         * include/bits/forward_list.h (splice_after(const_iterator,
324         forward_list&), splice_after(const_iterator, forward_list&,
325         consst_iterator), splice_after(const_iterator, forward_list&,
326         const_iterator, const_iterator), merge(forward_list&),
327         merge(forward_list&, _Comp)): Add per C++11 as published (and
328         LWG 1310).
329         * include/debug/forward_list: Adjust.
330
331         * include/bits/forward_list.h (splice_after(const_iterator,
332         forward_list&&, const_iterator)): Only declare.
333         (_M_transfer_after): Remove.
334         (_M_splice_after(const_iterator, forward_list&&)): Change signature.
335         (splice_after(const_iterator, forward_list&&, const_iterator,
336         const_iterator)): Use the latter.
337         * include/bits/forward_list.tcc (splice_after(const_iterator,
338         forward_list&&, const_iterator)): Define here.
339         (_M_splice_after): Define, use throughout.
340
341         * include/bits/forward_list.h (insert_after(const_iterator,
342         std::initializer_list<_Tp>)): Forward to insert_after(const_iterator,
343         _InputIterator, _InputIterator).
344         * include/bits/forward_list.tcc: Remove definition.
345
346         * testsuite/23_containers/forward_list/modifiers/6.cc: New.
347         * testsuite/23_containers/forward_list/operations/1.cc: Adjust.
348
349         * testsuite/23_containers/forward_list/requirements/dr438/
350         assign_neg.cc: Adjust dg-error line number.
351         * testsuite/23_containers/forward_list/requirements/dr438/
352         insert_neg.cc: Likewise.
353         * testsuite/23_containers/forward_list/requirements/dr438/
354         constructor_1_neg.cc: Likewise.
355         * testsuite/23_containers/forward_list/requirements/dr438/
356         constructor_2_neg.cc: Likewise.
357
358 2012-04-12   Jeffrey Yasskin  <jyasskin@google.com>
359
360         PR libstdc++/52822
361         * include/bits/stl_algo.h (__find_if_not): Expose in C++98 mode.
362         (__find_if_not_n): Like __find_if_not, but works on and updates a
363         counted range instead of a bounded range.
364         (stable_partition): Guarantee !__pred(*__first) in call to
365         __stable_partition_adaptive() or __inplace_stable_partition().
366         (__stable_partition_adaptive): Use new precondition to avoid
367         moving/copying objects onto themselves.  Guarantee new
368         precondition to recursive calls.
369         (__inplace_stable_partition): Use new precondition to simplify
370         base case, remove __last parameter.  Guarantee new precondition to
371         recursive calls.
372         * testsuite/25_algorithms/stable_partition/moveable.cc (test02):
373         Test a sequence that starts with a value matching the predicate.
374         * testsuite/25_algorithms/stable_partition/pr52822.cc: Test
375         vectors, which have a destructive self-move-assignment.
376
377 2012-04-12  Paolo Carlini  <paolo.carlini@oracle.com>
378
379         PR libstdc++/52942
380         * include/bits/stl_function.h (_Identity, _Select1st, _Select2nd):
381         In C++11 mode do not derive from std::unary_function.
382         * include/ext/functional (identity, select1st, select2nd): Adjust.
383         * testsuite/23_containers/unordered_map/requirements/52942.cc: New.
384         * testsuite/23_containers/unordered_set/requirements/52942.cc: Likewise.
385
386 2012-04-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
387
388         PR libstdc++/52924
389         * include/bits/shared_ptr_base.h (_Sp_counted_deleter): Add
390         user-defined destructor.
391         (_Sp_counted_inplace): Likewise.
392         * testsuite/20_util/shared_ptr/cons/52924.cc: New.
393         * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error
394         line numbers.
395
396 2012-04-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
397
398         * testsuite/performance/30_threads/future/polling.cc: Adjust.
399
400 2012-04-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
401
402         PR libstdc++/52591
403         * include/bits/stl_vector.h (vector::operator=(vector&&)): Dispatch
404         to _M_move_assign depending on whether allocator is moved.
405         (vector::_M_move_assign): Add overloaded functions.
406         * testsuite/23_containers/vector/52591.cc: New.
407         * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
408         Adjust dg-error line number.
409         * testsuite/23_containers/vector/requirements/dr438/
410         constructor_1_neg.cc:
411         Likewise.
412         * testsuite/23_containers/vector/requirements/dr438/
413         constructor_2_neg.cc:
414         Likewise.
415         * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
416         Likewise.
417
418 2012-04-09  François Dumont  <fdumont@gcc.gnu.org>
419
420         PR libstdc++/52476
421         * include/bits/hashtable.h (_Hashtable<>::_M_rehash_aux): Add.
422         (_Hashtable<>::_M_rehash): Use the latter.
423         * testsuite/23_containers/unordered_multimap/insert/52476.cc: New.
424         * testsuite/23_containers/unordered_multiset/insert/52476.cc: New.
425
426 2012-04-09  Terry Guo  <terry.guo@arm.com>
427
428         Backport from mainline
429         2012-03-28  Terry Guo  <terry.guo@arm.com>
430
431         * testsuite/Makefile.am (TEST_GCC_EXEC_PREFIX): New.
432         * testsuite/Makefile.in: Regenerated.
433
434 2012-03-30  Jeffrey Yasskin  <jyasskin@gcc.gnu.org>
435             Paolo Carlini  <paolo.carlini@oracle.com>
436
437         PR libstdc++/52799
438         * include/bits/deque.tcc (emplace): Fix thinko, replace push_front
439         -> emplace_front, and likewise for *_back.
440         * testsuite/23_containers/deque/modifiers/emplace/52799.cc: New.
441         * testsuite/23_containers/list/modifiers/emplace/52799.cc: Likewise.
442         * testsuite/23_containers/vector/modifiers/emplace/52799.cc: Likewise.
443
444 2012-03-23  David S. Miller  <davem@davemloft.net>
445
446         * config/abi/post/sparc-linux-gnu/baseline_symbols.txt: Update.
447
448 2012-03-23  Paolo Carlini  <paolo.carlini@oracle.com>
449
450         * include/bits/forward_list.h: Fix comments.
451
452 2012-03-23  Paweł Sikora  <pawel.sikora@agmk.net>
453
454         PR libstdc++/52540
455         * include/Makefile.am (c++config.h): Fix sed rule to not break
456         the _GLIBCXX_EXTERN_TEMPLATE redefinition.
457         * include/Makefile.in: Regenerate.
458
459 2012-03-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
460
461         PR libstdc++/52433
462         * include/debug/safe_iterator.h (_Safe_iterator): Add move
463         constructor and move assignment operator.
464         * testsuite/23_containers/vector/debug/52433.cc: New.
465
466 2012-03-22  Paolo Carlini  <paolo.carlini@oracle.com>
467
468         * include/std/array (array<>::at(size_type) const): Fix version
469         for undefined __EXCEPTIONS.
470
471 2012-03-22  Release Manager
472
473         * GCC 4.7.0 released.
474
475 2012-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
476
477         PR libstdc++/52456
478         * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.
479
480 2012-03-09  Andreas Schwab  <schwab@linux-m68k.org>
481
482         * config/locale/gnu/monetary_members.cc
483         (moneypunct<char,true>::_M_initialize_moneypunct): Throw caught
484         exception again.
485         (moneypunct<char,false>::_M_initialize_moneypunct): Likewise.
486         * testsuite/22_locale/locale/cons/12352.cc: Also test en_US
487         locale.
488
489 2012-03-02  Benjamin Kosnik  <bkoz@redhat.com>
490
491         * include/c_global/cstdio: Remove extraneous extern.
492         * include/c_std/cstdio: Same.
493
494 2012-03-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
495
496         * config/abi/post/solaris2.8/baseline_symbols.txt: Regenerate.
497         * config/abi/post/solaris2.8/sparcv9/baseline_symbols.txt: Likewise.
498         * config/abi/post/solaris2.10/baseline_symbols.txt: Likewise.
499         * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
500         * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
501
502 2012-03-01  Benjamin Kosnik  <bkoz@redhat.com>
503             Ramana Radhakrishnan <ramana@gcc.gnu.org>
504
505         PR libstdc++/51785
506         * acinclude.m4 (GLIBCXX_CHECK_STDIO_PROTO): New.
507         * configure.ac: Call it.
508         * configure: Regenerate.
509         * config.h.in: Same.
510         * config/os/gnu-linux/os_defines.h: Conditionally undefine
511         _GLIBCXX_HAVE_GETS.
512         * include/c_global/cstdio: Conditionally declare deprecated gets.
513         * include/c_std/cstdio: Same.
514
515 2012-03-01  Michael Spertus  <mike_spertus@symantec.com>
516
517         * include/tr2/type_traits (typelist): To __reflection_typelist.
518         (first, rest, empty): Remove.
519
520 2012-03-01  Benjamin Kosnik  <bkoz@redhat.com>
521
522         * testsuite/Makefile.am (CLEANFILES): Add *.gdb.
523         * testsuite/Makefile.in: Regenerate.
524
525 2012-02-29  H.J. Lu  <hongjiu.lu@intel.com>
526
527         * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
528
529 2012-02-28  Benjamin Kosnik  <bkoz@redhat.com>
530
531         PR libstdc++/52191
532         * testsuite/util/testsuite_abi.cc (compare_symbols): Check new
533         symbols added into the latest version. Mark tls entities as
534         undesignated.
535
536 2012-02-28  Jakub Jelinek  <jakub@redhat.com>
537
538         PR bootstrap/52414
539         * src/Makefile.am (libstdc++-symbols.ver): Only remove comment lines
540         if they are at the beginning of lines (with optional whitespace before
541         #).
542         * src/Makefile.in: Regenerated.
543
544 2012-02-27  Jakub Jelinek  <jakub@redhat.com>
545
546         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
547         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
548         * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
549         Likewise.
550         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
551         * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise.
552         * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
553         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
554         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
555         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise.
556
557 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
558
559         PR libstdc++/52188
560         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Remove symvers_renaming.
561         Remove ENABLE_SYMVERS_SOL2.
562         * configure: Regenerate.
563         * src/Makefile.am [ENABLE_SYMVERS] (libstdc++-symbols.ver):
564         Postprocess mapfile.
565         [ENABLE_SYMVERS_GNU]: Remove ENABLE_SYMVERS_SOL2 handling.
566         * src/Makefile.in: Regenerate.
567
568         * config/abi/pre/gnu.ver (GLIBCXX_3.4.5) [!__sun__ && !__svr4__]:
569         Don't export
570         _ZNSt19istreambuf_iteratorI[cw]St11char_traitsI[cw]EEppEv.
571
572 2012-02-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
573
574         PR testsuite/52201
575         * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
576         Require atomic builtins.
577         * testsuite/29_atomics/atomic/operators/51811.cc: Likewise.
578
579 2012-02-23  Jason Merrill  <jason@redhat.com>
580
581         * include/bits/locale_facets.h (class num_get): Undo reordering of
582         do_get virtual functions.
583
584 2012-02-14  Edward Smith-Rowland  <3dw4rd@verizon.net>
585
586         * testsuite/26_numerics/random/
587         uniform_real_distribution/requirements/typedefs.cc: Check param_type.
588         * testsuite/26_numerics/random/
589         piecewise_constant_distribution/requirements/typedefs.cc: Ditto.
590         * testsuite/26_numerics/random/
591         chi_squared_distribution/requirements/typedefs.cc: Ditto.
592         * testsuite/26_numerics/random/
593         normal_distribution/requirements/typedefs.cc: Ditto.
594         * testsuite/26_numerics/random/
595         uniform_int_distribution/requirements/typedefs.cc: Ditto.
596         * testsuite/26_numerics/random/
597         poisson_distribution/requirements/typedefs.cc: Ditto.
598         * testsuite/26_numerics/random/
599         bernoulli_distribution/requirements/typedefs.cc: Ditto.
600         * testsuite/26_numerics/random/
601         discrete_distribution/requirements/typedefs.cc: Ditto.
602         * testsuite/26_numerics/random/
603         weibull_distribution/requirements/typedefs.cc: Ditto.
604         * testsuite/26_numerics/random/
605         cauchy_distribution/requirements/typedefs.cc: Ditto.
606         * testsuite/26_numerics/random/
607         negative_binomial_distribution/requirements/typedefs.cc: Ditto.
608         * testsuite/26_numerics/random/
609         gamma_distribution/requirements/typedefs.cc: Ditto.
610         * testsuite/26_numerics/random/
611         fisher_f_distribution/requirements/typedefs.cc: Ditto.
612         * testsuite/26_numerics/random/
613         exponential_distribution/requirements/typedefs.cc: Ditto.
614         * testsuite/26_numerics/random/
615         binomial_distribution/requirements/typedefs.cc: Ditto.
616         * testsuite/26_numerics/random/
617         lognormal_distribution/requirements/typedefs.cc: Ditto.
618         * testsuite/26_numerics/random/
619         extreme_value_distribution/requirements/typedefs.cc: Ditto.
620         * testsuite/26_numerics/random/
621         piecewise_linear_distribution/requirements/typedefs.cc: Ditto.
622         * testsuite/26_numerics/random/
623         student_t_distribution/requirements/typedefs.cc: Ditto.
624         * testsuite/26_numerics/random/
625         geometric_distribution/requirements/typedefs.cc: Ditto.
626
627 2012-02-21  Benjamin Kosnik  <bkoz@redhat.com>
628
629         PR libstdc++/50349
630         * config/abi/pre/gnu.ver: Only one local.
631         * config/abi/pre/gnu-versioned-namespace.ver: Same.
632
633 2012-02-21  Paolo Carlini  <paolo.carlini@oracle.com>
634
635         PR libstdc++/52317 (cont)
636         * include/profile/unordered_map: Ad Library Exception comment.
637         * include/profile/set: Likewise.
638         * include/profile/base.h: Likewise.
639         * include/profile/impl/profiler_list_to_slist.h: Likewise.
640         * include/profile/impl/profiler_container_size.h: Likewise.
641         * include/profile/impl/profiler_vector_size.h: Likewise.
642         * include/profile/impl/profiler_hash_func.h: Likewise.
643         * include/profile/impl/profiler_trace.h: Likewise.
644         * include/profile/impl/profiler_list_to_vector.h: Likewise.
645         * include/profile/impl/profiler_vector_to_list.h: Likewise.
646         * include/profile/impl/profiler.h: Likewise.
647         * include/profile/impl/profiler_state.h: Likewise.
648         * include/profile/impl/profiler_map_to_unordered_map.h: Likewise.
649         * include/profile/impl/profiler_algos.h: Likewise.
650         * include/profile/impl/profiler_hashtable_size.h: Likewise.
651         * include/profile/impl/profiler_node.h: Likewise.
652         * include/profile/vector: Likewise.
653         * include/profile/unordered_set: Likewise.
654         * include/profile/map.h: Likewise.
655         * include/profile/map: Likewise.
656
657 2012-02-21  Paolo Carlini  <paolo.carlini@oracle.com>
658
659         PR libstdc++/52317
660         * python/Makefile.am: Update boilerplate license text to GPLv3.
661         * include/profile/unordered_map: Likewise.
662         * include/profile/set: Likewise.
663         * include/profile/base.h: Likewise.
664         * include/profile/impl/profiler_list_to_slist.h: Likewise.
665         * include/profile/impl/profiler_container_size.h: Likewise.
666         * include/profile/impl/profiler_vector_size.h: Likewise.
667         * include/profile/impl/profiler_hash_func.h: Likewise.
668         * include/profile/impl/profiler_trace.h: Likewise.
669         * include/profile/impl/profiler_list_to_vector.h: Likewise.
670         * include/profile/impl/profiler_vector_to_list.h: Likewise.
671         * include/profile/impl/profiler.h: Likewise.
672         * include/profile/impl/profiler_state.h: Likewise.
673         * include/profile/impl/profiler_map_to_unordered_map.h: Likewise.
674         * include/profile/impl/profiler_algos.h: Likewise.
675         * include/profile/impl/profiler_hashtable_size.h: Likewise.
676         * include/profile/impl/profiler_node.h: Likewise.
677         * include/profile/vector: Likewise.
678         * include/profile/unordered_set: Likewise.
679         * include/profile/map.h: Likewise.
680         * include/profile/map: Likewise.
681         * testsuite/21_strings/basic_string/numeric_conversions/
682         wchar_t/dr1261.cc: Likewise.
683         * testsuite/21_strings/basic_string/numeric_conversions/
684         char/dr1261.cc: Likewise.
685         * testsuite/20_util/reference_wrapper/invoke-2.cc: Likewise.
686
687 2012-02-20  Paolo Carlini  <paolo.carlini@oracle.com>
688
689         PR libstdc++/52241
690         * src/c++98/tree.cc (local_Rb_tree_increment,
691         local_Rb_tree_decrement): Add.
692         (_Rb_tree_increment(const _Rb_tree_node_base*),
693         _Rb_tree_decrement(const _Rb_tree_node_base*)): Use the latter.
694         (_Rb_tree_increment(_Rb_tree_node_base*),
695         _Rb_tree_decrement(_Rb_tree_node_base*)): New.
696
697 2012-02-20  Paolo Carlini  <paolo.carlini@oracle.com>
698
699         PR libstdc++/52309
700         * include/bits/hashtable_policy.h (_Equality_base<, true,>::
701         _M_equal(const _Hashtable&)): Compare values with operator==.
702         * testsuite/23_containers/unordered_set/operators/52309.cc: New.
703
704 2012-02-17  Benjamin Kosnik  <bkoz@redhat.com>
705
706         PR libstdc++/51798 continued.
707         * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Grep for
708         __atomic_, not __sync.
709         * configure: Regenerated.
710
711 2012-02-17  Benjamin Kosnik  <bkoz@redhat.com>
712
713         PR libstdc++/47058
714         * acinclude.m4 (GLIBCXX_ENABLE_WERROR): New.
715         (GLIBCXX_EXPORT_FLAGS): Add -Wabi to WARN_FLAGS
716         * configure.ac: Use it.
717         * fragment.am: Set WERROR_FLAG conditionally on --disable-werror.
718         * configure: Regenerate.
719         * python/Makefile.in: Same.
720         * Makefile.in: Same.
721         * doc/Makefile.in: Same.
722         * include/Makefile.in: Same.
723         * po/Makefile.in: Same.
724         * python/Makefile.in: Same.
725         * src/Makefile.in: Same.
726         * src/c++11/Makefile.in: Same.
727         * src/c++98/Makefile.in: Same.
728         * testsuite/Makefile.in: Same.
729
730 2012-02-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
731
732         PR libstdc++/52189
733         * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Handle
734         --enable-libstdcxx-threads.
735         Disable on Solaris 8/9 with symbol versioning.
736         * configure.ac (GLIBCXX_CHECK_GTHREADS): Move after
737         GLIBCXX_ENABLE_SYMVERS.
738         * configure: Regenerate.
739         * doc/xml/manual/configure.xml (--enable-libstdcxx-threads): Explain.
740
741 2012-02-15  DJ Delorie  <dj@redhat.com>
742
743         * src/c++98/locale.cc (locale::facet::_S_get_c_locale): Fix typo.
744
745 2012-02-15  Benjamin Kosnik  <bkoz@redhat.com>
746
747         PR libstdc++/51368
748         * acinclude.m4 (GLIBCXX_ENABLE_PYTHON): New.
749         * configure.ac: Use it.
750         * python/Makefile.am: Same.
751         * configure: Regenerate.
752         * python/Makefile.in: Regenerate.
753         * Makefile.in: Same.
754         * doc/Makefile.in: Same.
755         * include/Makefile.in: Same.
756         * po/Makefile.in: Same.
757         * src/Makefile.in: Same.
758         * src/c++11/Makefile.in: Same.
759         * src/c++98/Makefile.in: Same.
760         * testsuite/Makefile.in: Same.
761
762 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
763
764         * 30_threads/thread/native_handle/typesizes.cc: Do not run on cygwin.
765
766 2012-02-14  Tom Tromey  <tromey@redhat.com>
767
768         * testsuite/libstdc++-prettyprinters/cxx11.cc (main): Add new
769         tests.
770         * python/libstdcxx/v6/printers.py (Tr1HashtableIterator.__init__):
771         Rewrite.
772         (Tr1HashtableIterator.update): Remove.
773         (Tr1HashtableIterator.next): Rewrite.
774
775 2012-02-13  Benjamin Kosnik  <bkoz@redhat.com>
776
777         * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line numbers.
778         * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Same.
779
780 2012-02-13  Richard Henderson  <rth@redhat.com>
781
782         PR libstdc++/51798 continued.
783         * include/bits/shared_ptr_base.h
784         (_Sp_counted_base<_S_atomic>::_M_add_ref_lock): Hoist initial load
785         outside compare_exchange loop.
786         * include/tr1/shared_ptr.h: Same.
787         * include/parallel/compatibility.h (__compare_and_swap_32): Use strong
788         version of compare_exchange.
789         (__compare_and_swap_64): Same.
790         * include/profile/impl/profiler_state.h (__gnu_profile::__turn): Same.
791         * libsupc++/guard.cc (__cxa_guard_acquire): Same.
792
793 2012-02-10  Benjamin Kosnik  <bkoz@redhat.com>
794             Jonathan Wakely  <jwakely.gcc@gmail.com>
795
796         PR libstdc++/51798 continued.
797         * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Use __atomic_*
798         builtins instead of __sync_* builtins for atomic functionality.
799         * include/bits/shared_ptr_base.h: Same.
800         * include/parallel/compatibility.h: Same.
801         * include/profile/impl/profiler_state.h: Same.
802         * include/tr1/shared_ptr.h: Same.
803         * libsupc++/eh_ptr.cc: Same.
804         * libsupc++/eh_throw.cc: Same.
805         * libsupc++/eh_tm.cc: Same.
806         * libsupc++/guard.cc: Same.
807         * configure: Regenerated.
808         * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line numbers.
809         * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Same.
810
811 2012-02-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
812
813         PR libstdc++/51296
814         * config/os/osf/ctype_base.h,
815         config/os/osf/ctype_configure_char.cc,
816         config/os/osf/ctype_inline.h, config/os/osf/error_constants.h:
817         Copy from config/os/generic.
818         * config/os/osf/os_defines.h: Likewise.
819         (_GTHREAD_USE_MUTEX_INIT_FUNC, _GTHREAD_USE_COND_INIT_FUNC):
820         Define.
821         * configure.host <osf*>: Use os/osf for os_include_dir.
822
823 2012-02-10  Uros Bizjak  <ubizjak@gmail.com>
824
825         * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Regenerated.
826
827 2012-02-09  Jonathan Wakely  <jwakely.gcc@gmail.com>
828
829         * doc/xml/manual/documentation_hacking.xml: Fix invalid attribute.
830
831 2012-02-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
832
833         * doc/xml/manual/status_cxx2011.xml: Update C++11 status table.
834
835 2012-02-07  Benjamin Kosnik  <bkoz@redhat.com>
836
837         * doc/doxygen/user.cfg.in: Update to doxygen 1.7.6.1.
838         * doc/xml/manual/documentation_hacking.xml: Update.
839
840 2012-02-07  Jonathan Wakely  <jwakely.gcc@gmail.com>
841
842         * testsuite/30_threads/call_once/39909.cc: Remove duplicate target
843         selector.
844         * testsuite/30_threads/call_once/49668.cc: Likewise.
845         * testsuite/30_threads/call_once/call_once1.cc: Likewise.
846         * testsuite/30_threads/lock_guard/cons/1.cc: Likewise.
847         * testsuite/30_threads/mutex/cons/1.cc: Likewise.
848         * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise.
849         * testsuite/30_threads/mutex/lock/1.cc: Likewise.
850         * testsuite/30_threads/mutex/native_handle/1.cc: Likewise.
851         * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise.
852         * testsuite/30_threads/mutex/try_lock/1.cc: Likewise.
853         * testsuite/30_threads/mutex/try_lock/2.cc: Likewise.
854         * testsuite/30_threads/mutex/unlock/1.cc: Likewise.
855         * testsuite/30_threads/unique_lock/cons/1.cc: Likewise.
856         * testsuite/30_threads/unique_lock/cons/2.cc: Likewise.
857         * testsuite/30_threads/unique_lock/cons/3.cc: Likewise.
858         * testsuite/30_threads/unique_lock/cons/4.cc: Likewise.
859         * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
860         * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
861         * testsuite/30_threads/unique_lock/locking/1.cc: Likewise.
862         * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
863         * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
864         * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
865         * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
866         * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
867
868 2012-02-07  Jonathan Wakely  <jwakely.gcc@gmail.com>
869
870         PR libstdc++/51296
871         * include/std/mutex (__mutex_base::~__mutex_base): Declare noexcept.
872         * src/c++11/condition_variable.cc (condition_variable): Use macro for
873         initializer function.
874
875         PR libstdc++/51906
876         * config/os/bsd/darwin/os_defines.h: Disable static initializer for
877         recursive mutexes.
878
879 2012-02-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
880
881         PR libstdc++/52128
882         * src/c++11/future.cc: Add explicit instantiation.
883
884 2012-02-06  François Dumont  <fdumont@gcc.gnu.org>
885
886         * include/debug/safe_iterator.h
887         (_Safe_iterator::_M_before_dereferenceable): Avoid the expensive
888         creation of a _Safe_iterator instance to do the check.
889
890 2012-02-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
891
892         PR libstdc++/52104
893         * include/std/future (__future_base::_Async_state_common): Define
894         destructor inline for targets without TLS.
895         * src/c++11/future.cc (__future_base::_Async_state_common): Only
896         define destructor for TLS targets.
897
898 2012-02-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
899
900         PR libstdc++/51956
901         * python/libstdcxx/v6/printers.py (StdPointerPrinter): Rename to...
902         (SharedPointerPrinter): This. Also show weak count.
903         * testsuite/libstdc++-prettyprinters/shared_ptr.cc: New.
904
905 2012-02-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
906
907         * testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Modify to
908         PASS instead of XFAIL.
909
910 2012-02-05  Jeffrey Yasskin  <jyasskin@gcc.gnu.org>
911             Paolo Carlini  <paolo.carlini@oracle.com>
912
913         PR libstdc++/52119
914         * include/std/limits (__glibcxx_min): Fix to avoid undefined behavior.
915
916 2012-02-03  Benjamin Kosnik  <bkoz@redhat.com>
917
918         PR libstdc++/49445
919         * testsuite/29_atomics/atomic/cons/49445.cc: Add.
920
921 2012-02-03  Benjamin Kosnik  <bkoz@redhat.com>
922
923         PR libstdc++/51811
924         * include/bits/atomic_base.h (atomic<_Tp*>): Fix offsets.
925         * testsuite/29_atomics/atomic/operators/51811.cc: New.
926         * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: New.
927
928 2012-02-03  Jakub Jelinek  <jakub@redhat.com>
929
930         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
931         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
932         * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
933         Likewise.
934         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
935         * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise.
936         * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
937         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
938         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
939         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise.
940
941 2012-02-02  Benjamin Kosnik  <bkoz@redhat.com>
942
943         PR libstdc++/52068
944         * src/c++11/Makefile.am (toolexeclib_LTLIBRARIES,
945         libc__11_la_SOURCES): Remove.
946         * src/c++11/Makefile.in: Regenerate.
947         * src/c++98/Makefile.am (toolexeclib_LTLIBRARIES,
948         libc__98_la_SOURCES): Remove.
949         * src/c++98/Makefile.in: Regenerate.
950
951 2012-02-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
952
953         PR libstdc++/49204
954         * include/std/future (__future_base::_State_base::wait()): Use lambda
955         expression for predicate and remove redundant test.
956         (__future_base::_State_base::wait_for()): Return future_status and
957         use lambda expression for predicate.
958         (__future_base::_State_base::wait_until()): Likewise.
959         (__basic_future::wait_for(), __basic_future::wait_until()): Likewise.
960         (__future_base::_Async_state): Replace with _Async_state_common
961         class for non-dependent functionality and _Async_state_impl class
962         template for dependent functionality.
963         (__future_base::_Async_state_common::_M_join): Serialize attempts to
964         join thread.
965         (__future_base::_Async_state_common::_M_run_deferred): Join.
966         (__future_base::_Async_state::_M_do_run): Replace with lambda.
967         * src/c++11/future.cc (__future_base::_Async_state_common): Define
968         destructor, so key function is in the library.
969         * config/abi/pre/gnu.ver: Add exports for ~_Async_state_common.
970         * testsuite/30_threads/packaged_task/members/get_future.cc: Expect
971         future_status return instead of bool.
972         * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise.
973         * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise.
974         * testsuite/30_threads/future/members/wait_until.cc: Likewise.
975         * testsuite/30_threads/future/members/wait_for.cc: Likewise.
976         * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
977         * testsuite/30_threads/promise/members/set_value3.cc: Likewise.
978         * testsuite/30_threads/promise/members/swap.cc: Likewise.
979
980 2012-01-30  Tom Tromey  <tromey@redhat.com>
981
982         PR libstdc++/51649:
983         * testsuite/libstdc++-prettyprinters/debug.cc: New file.
984         * testsuite/lib/gdb-test.exp (regexp-test): New proc.
985         (note-test): Update.
986         (gdb-test): Handle regexp tests.  Add some logging.
987         * testsuite/libstdc++-prettyprinters/simple.cc: Compile with -O0.
988         (placeholder, use): Remove.
989         (main): Add tests for deque, list, map, and set iterators.  Add
990         tests for slist and slist iterator.
991         * testsuite/libstdc++-prettyprinters/48362.cc (main): Handle __7
992         namespace.
993         * python/libstdcxx/v6/printers.py (StdListPrinter.children): Use
994         the type's _Node typedef.
995         (StdListIteratorPrinter.to_string): Change how node type is
996         computed.
997         (StdSlistPrinter.children): Use the type's _Node typedef.
998         (StdSlistIteratorPrinter.to_string): Likewise.
999         (StdRbtreeIteratorPrinter.to_string): Use the type's _Link_type
1000         typedef.
1001         (StdMapPrinter.children): Change how the node's type is computed.
1002         (StdSetPrinter.children): Likewise.
1003         (StdForwardListPrinter.children): Use the type's _Node typedef.
1004         (Printer.add_version): New method.
1005         (Printer.add_container): New method.
1006         (build_libstdcxx_dictionary): Handle __7 and __cxx1998
1007         namespaces.
1008         (find_type): New function.
1009
1010 2012-01-27  Paolo Carlini  <paolo.carlini@oracle.com>
1011
1012         PR libstdc++/51795
1013         * include/bits/random.h (linear_congruential_generator): Add
1014         static_assert preventing instantiation for values of 'a' and 'm'
1015         currently handled incorrectly by _Mod::__calc.
1016         * include/bits/random.tcc (seed_seq::generate): Avoid unsafe
1017         uses of _Mod::__calc.
1018
1019 2012-01-27  Jakub Jelinek  <jakub@redhat.com>
1020
1021         PR libstdc++/51798
1022         * config/cpu/generic/atomicity_builtins/atomicity.h
1023         (__exchange_and_add, __atomic_add): Use __atomic_fetch_add
1024         with __ATOMIC_ACQ_REL semantics instead of __sync_fetch_and_add.
1025         * include/ext/atomicity.h (__exchange_and_add, __atomic_add):
1026         Likewise.
1027
1028 2011-01-27  Rafael Avila de Espindola  <rafael.espindola@gmail.com>
1029
1030         * libsupc++/typeinfo: Correctly match #pragma GCC visibility
1031         pop with #pragma GCC visibility push.
1032
1033 2012-01-27  Benjamin Kosnik  <bkoz@redhat.com>
1034             Matthias Klose  <doko@ubuntu.com>
1035
1036         * configure.ac (GLIBCXX_ENABLE_DEBUG_FLAGS): Use -gdwarf-4 -g3 -O0.
1037         * configure.in: Regenerated.
1038         * src/Makefile.am (all-once, install-data-once): New rules.
1039         (all-local, install-data-local): Use them.
1040         (build-debug, install-debug): Tweak.
1041         * src/Makefile.in: Regenerate.
1042
1043 2012-01-27  Richard Henderson  <rth@redhat.com>
1044
1045         * include/bits/atomic_base.h (__atomic_flag_base): Define _M_i
1046         based on the value of __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
1047         (ATOMIC_FLAG_INIT): Initialize with 0, not false.
1048         (atomic_flag::atomic_flag): Use __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
1049
1050 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
1051
1052         PR bootstrap/51985
1053         * src/c++98/Makefile.am (libc__98_la_SOURCES,
1054         libc__98convenience_la_SOURCES): Remove $(inst_sources).
1055         * src/c++98/Makefile.in: Regenerated.
1056
1057 2012-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
1058
1059         * testsuite/20_util/system_clock/1.cc: Add dg-require-time.
1060         * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: Likewise.
1061         * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: Likewise.
1062         * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: Likewise.
1063         * testsuite/27_io/basic_istream/readsome/wchar_t/6746-2.cc: Add
1064         dg-require-fileio.
1065         * testsuite/27_io/basic_istream/seekg/wchar_t/fstream.cc: Likewise.
1066         * testsuite/27_io/basic_istream/tellg/wchar_t/1.cc: Likewise.
1067         * testsuite/27_io/basic_istream/tellg/wchar_t/fstream.cc: Likewise.
1068         * testsuite/27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc:
1069         Likewise.
1070         * testsuite/27_io/basic_ostream/tellp/wchar_t/1.cc: Likewise.
1071
1072 2012-01-25  Matthias Klose  <doko@ubuntu.com>
1073
1074         * testsuite/30_threads/condition_variable_any/requirements: Remove
1075         empty directory.
1076
1077 2012-01-23  Benjamin Kosnik  <bkoz@redhat.com>
1078
1079         * src/Makefile.am (libstdc++convenience.la): Correct stamp rule, copy.
1080         * src/Makefile.in: Regenerate.
1081
1082 2012-01-23  Benjamin Kosnik  <bkoz@redhat.com>
1083
1084         PR libstdc++/49829
1085         Add libc++98convenience.la, libc++11convenience.la.
1086         * src/c++98: New directory.
1087         * src/c++11: New directory.
1088         * acinclude.m4: (GLIBCXX_CONFIGURE): Add src-c++98, src-c++11.
1089         * configure: Regenerated.
1090         * Makefile.am (hosted_source): Add src-c++98, src-c++11 to SUBDIRS.
1091         * Makefile.in: Regenerate.
1092         * libsupc++/Makefile.am (AM_CXXFLAGS): USe XTEMPLATE_FLAGS for
1093         -fno-implicit-templates.
1094         * libsupc++/Makefile.in: Regenerate.
1095         * src/Makefile.am (inst_sources): Move... C++11 files into
1096         separate directory for libstdc++11convenience.la. Files are:
1097         fstream-inst.cc, string-inst.cc, wlocale-inst.cc, wstring-inst.cc).
1098         (sources): Move C++11 files. Files are: compatibility-c++0x.cc,
1099         compatibility-atomic-c++0x.cc, debug.cc, functexcept.cc,
1100         functional.cc, hash_c++0x.cc, hashtable_c++0x.cc, limits.cc,
1101         system_error.cc, placeholders.cc, regex.cc, shared_ptr.cc,
1102         mutex.cc, condition_variable.cc, chrono.cc, thread.cc, future.cc.
1103         (libstdc++convenience.la): Add new target.
1104         (SUBDIRS): Add c++11, c++98.
1105         * src/Makefile.in: Regenerate.
1106         * src/c++11/Makefile.am: New.
1107         * src/c++11/Makefile.in: Generate.
1108         * src/c++98/Makefile.am: New, C++98 files.
1109         * src/c++98/Makefile.in: Generate.
1110
1111 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1112
1113         libstdc++-v3:
1114         * testsuite/22_locale/num_put/put/char/14220.cc: Don't xfail on
1115         32-bit Solaris 10/x86.
1116         * testsuite/22_locale/num_put/put/wchar_t/14220.cc: Likewise.
1117
1118 2012-01-21  Jonathan Wakely  <jwakely.gcc@gmail.com>
1119
1120         PR libstdc++/50982
1121         * testsuite/30_threads/*: Add powerpc-ibm-aix* to target selectors.
1122
1123 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
1124
1125         PR libstdc++/51845
1126         * include/bits/hashtable.h
1127         (_Hashtable<>::erase(const_iterator, const_iterator)): Also update
1128         _M_buckets[__n_bkt] if __is_bucket_begin.
1129         * testsuite/23_containers/unordered_multimap/erase/51845-multimap.cc:
1130         New test.
1131
1132 2012-01-18  Benjamin Kosnik  <bkoz@redhat.com>
1133
1134         * acinclude (GLIBCXX_CONFIGURE_DOCBOOK): Fix quoting.
1135
1136 2012-01-18  Benjamin Kosnik  <bkoz@redhat.com>
1137
1138         * configure.ac: Move epub checks...
1139         * acinclude (GLIBCXX_CONFIGURE_DOCBOOK): ...here, use
1140         test -f instead of AC_CHECK_FILES.
1141
1142 2012-01-18  François Dumont  <fdumont@gcc.gnu.org>
1143             Roman Kononov  <roman@binarylife.net>
1144
1145         PR libstdc++/51866
1146         * include/bits/hashtable.h (_Hashtable<>::_M_insert(_Arg, false_type)):
1147         Do not keep a reference to a potentially moved instance.
1148         * testsuite/23_containers/unordered_multiset/insert/51866.cc: New.
1149         * testsuite/23_containers/unordered_multimap/insert/51866.cc: New.
1150
1151 2012-01-17  Benjamin Kosnik  <bkoz@redhat.com>
1152
1153         * doc/html/*: Regenerate.
1154
1155 2012-01-17  Benjamin Kosnik  <bkoz@redhat.com>
1156
1157         * configure.ac (BUILD_EPUB): Adjust for epub3.
1158         * configure: Regenerate.
1159         * Makefile.in: Same.
1160         * doc/Makefile.am (stamp-epub-docbook): Update for epub3.
1161         * doc/Makefile.in: Regenerate.
1162         * include/Makefile.in: Same.
1163         * libsupc++/Makefile.in: Same.
1164         * po/Makefile.in: Same.
1165         * python/Makefile.in: Same.
1166         * src/Makefile.in: Same.
1167         * testsuite/Makefile.in: Same.
1168
1169         * doc/xml/manual/documentation_hacking.xml: Update.
1170
1171 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1172
1173         PR target/47852
1174         * configure.host (irix6.5*): Add -lpthread to OPT_LDFLAGS.
1175
1176 2012-01-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
1177
1178         * include/bits/stl_iterator.h (reverse_iterator): Doxygen comments.
1179
1180 2012-01-13  François Dumont  <fdumont@gcc.gnu.org>
1181
1182         * include/bits/hashtable_policy.h (_Hash_node_base): New, use it as
1183         base class of ...
1184         (_Hash_node<Value, true>, _Hash_node<Value, false>): ... those.
1185         * include/bits/hashtable.h (_Hashtable): Replace _M_begin_bucket_index
1186         by _M_before_begin. Review implementation so that we do not need to
1187         look for previous non-empty bucket when inserting nodes.
1188
1189 2012-01-09  Kai Tietz  <ktietz@redhat.com>
1190
1191         PR libstc++/51673 part 2
1192         * config/abi/pre/gnu-versioned-namespace.ver: Adjusted new/delete
1193         operators signature for LLP64 size_t, and adjusted signatures for
1194         mt-allocator using size_t.
1195
1196 2012-01-09  Benjamin Kosnik  <bkoz@redhat.com>
1197
1198         PR libstc++/51673 part 1
1199         * config/abi/pre/gnu-versioned-namespace.ver: Sync cxxabi symbols
1200         with gnu.ver.
1201
1202 2012-01-09  Benjamin Kosnik  <bkoz@redhat.com>
1203
1204         * fragment.am (WARN_CXXFLAGS): Add -Wabi.
1205         * Makefile.in: Regenerate.
1206         * doc/Makefile.in: Same.
1207         * include/Makefile.in: Same.
1208         * libsupc++/Makefile.in: Same.
1209         * src/Makefile.in: Same.
1210         * testsuite/Makefile.in: Same.
1211         * po/Makefile.in: Same.
1212         * python/Makefile.in: Same.
1213
1214 2012-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1215
1216         * python/libstdcxx/v6/printers.py (StdForwardListPrinter): Add.
1217         * testsuite/libstdc++-prettyprinters/cxx11.cc: New.
1218
1219 2012-01-06  Jason Merrill  <jason@redhat.com>
1220
1221         * testsuite/abi/demangle/regression/cw-16.cc (main): Adjust
1222         expected demangling.
1223
1224 2012-01-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
1225
1226         PR libstdc++/51504
1227         * doc/xml/manual/debug.xml: Suggest using symbol interposition
1228         to override symbols using annotation macros.
1229
1230 2012-01-05  François Dumont  <fdumont@gcc.gnu.org>
1231
1232         * include/bits/hashtable_policy.h (_Hashtable_base<>::_M_eq()):
1233         protected rather than private, use it...
1234         * include/bits/hashtable.h (_Hashtable<>::key_eq()): ... here.
1235         * testsuite/23_containers/unordered_set/observers.cc: New.
1236         * testsuite/23_containers/unordered_multiset/observers.cc: New.
1237         * testsuite/23_containers/unordered_map/observers.cc: New.
1238         * testsuite/23_containers/unordered_multimap/observers.cc: New.
1239
1240 2012-01-03  François Dumont  <fdumont@gcc.gnu.org>
1241
1242         * include/bits/hashtable_policy.h (_Ebo_helper<>): Rename to the more
1243         specific _Hashtable_ebo_helper. Hide this implementation detail thanks
1244         to private inheritance.
1245
1246 2012-01-03  Paolo Carlini  <paolo.carlini@oracle.com>
1247
1248         PR c++/51738
1249         * testsuite/23_containers/map/element_access/39901.cc: New.