gcc/
[official-gcc.git] / libstdc++-v3 / ChangeLog
blobe4eed670a25937a09819ed1e19a34fbc96844ee6
1 2015-01-21  Jonathan Wakely  <jwakely@redhat.com>
3         * config/abi/pre/gnu.ver: Use [jmy] for size_t parameters.
5 2015-01-21  Jonathan Wakely  <jwakely@redhat.com>
7         * testsuite/29_atomics/atomic/64658.cc: Test stored value.
9 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
11         * doc/xml/manual/status_cxx2011.xml: Remove stray dbhtml tags.
12         * doc/xml/manual/status_cxx2014.xml: Update status.
13         * doc/html/manual/status.html: Regenerate.
15 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
17         PR libstdc++/64650
18         * include/experimental/optional (bad_optional_access): Add default
19         constructor.
20         * testsuite/experimental/optional/requirements.cc: Test for default
21         constructor.
23 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
25         * include/bits/stl_map.h (map::find<>, map::count<>,
26         map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
27         member function templates to perform heterogeneous lookup.
28         * include/bits/stl_multimap.h (multimap::find<>, multimap::count<>,
29         multimap::lower_bound<>, multimap::upper_bound<>,
30         multimap::equal_range<>): Likewise.
31         * include/bits/stl_multiset.h (multiset::find<>, multiset::count<>,
32         multiset::lower_bound<>, multiset::upper_bound<>,
33         multiset::equal_range<>): Likewise.
34         * include/bits/stl_set.h (set::find<>, set::count<>,
35         set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
36         * include/bits/stl_tree.h (_Rb_tree::_S_lower_bound_tr,
37         _Rb_tree::_S_upper_bound_tr, _Rb_tree::_M_find_tr,
38         _Rb_tree::_M_count_tr, _Rb_tree::_M_lower_bound_tr,
39         _Rb_tree::_M_upper_bound_tr, _Rb_tree::_M_equal_range_tr): Likewise.
40         * testsuite/23_containers/map/operations/2.cc: New.
41         * testsuite/23_containers/multimap/operations/2.cc: New.
42         * testsuite/23_containers/multiset/operations/2.cc: New.
43         * testsuite/23_containers/set/operations/2.cc: New.
45 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
47         * config/abi/pre/gnu.ver: Export new constructors.
48         * include/bits/codecvt.h (codecvt_byname): Add string constructor.
49         (codecvt_byname<char16_t>, codecvt_byname<char32_t>): Define explicit
50         specializations and declare explicit instantiations.
51         * include/bits/locale_classes.h (locale, collate_byname): Add string
52         constructors.
53         * include/bits/locale_facets.h (ctype_byname, numpunct_byname):
54         Likewise.
55         * include/bits/locale_facets_nonio.h (time_get_byname,
56         time_put_byname, moneypunct_byname, messages_byname): Likewise.
57         * src/c++11/codecvt.cc (codecvt_byname<char16_t>,
58         codecvt_byname<char32_t>): Define explicit instantiations.
59         * src/c++11/locale-inst.cc (time_put_byname, codecvt_byname):
60         Instantiate string constructors.
61         (ctype_byname): Define string constructor.
62         * testsuite/22_locale/codecvt_byname/1.cc: New.
63         * testsuite/22_locale/collate_byname/1.cc: New.
64         * testsuite/22_locale/ctype_byname/2.cc: New.
65         * testsuite/22_locale/messages_byname/1.cc: New.
66         * testsuite/22_locale/moneypunct_byname/1.cc: New.
67         * testsuite/22_locale/numpunct_byname/1.cc: New.
69 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
71         PR libstdc++/64658
72         * include/std/atomic (atomic_init): Define.
73         * testsuite/29_atomics/atomic/64658.cc: New.
75 2015-01-19  Tim Shen  <timshen@google.com>
77         PR libstdc++/64649
78         * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
79         regex_traits<>::lookup_classname): Support forward iterators.
80         * testsuite/28_regex/traits/char/lookup_classname.cc: New testcases.
81         * testsuite/28_regex/traits/char/lookup_collatename.cc: New testcase.
83 2015-01-19  Tim Shen  <timshen@google.com>
85         PR libstdc++/64584
86         PR libstdc++/64585
87         * include/bits/regex.h (basic_regex<>::basic_regex,
88         basic_regex<>::assign, basic_regex<>::imbue,
89         basic_regex<>::swap, basic_regex<>::mark_count): Drop NFA after
90         imbuing basic_regex; Make assign() transactional against exception.
91         * include/bits/regex_compiler.h (__compile_nfa<>): Add back
92         __compile_nfa SFINAE.
93         * include/std/regex: Adjust include order to avoid __compile_nfa
94         forward declaration.
95         * testsuite/28_regex/basic_regex/assign/char/string.cc: New testcase.
96         * testsuite/28_regex/basic_regex/imbue/string.cc: New testcase.
98 2015-01-19  Ville Voutilainen  <ville.voutilainen@gmail.com>
99             Jonathan Wakely  <jwakely@redhat.com>
101         * include/bits/range_access.h (begin, end): Use _GLIBCXX14_CONSTEXPR
102         on overloads for arrays.
103         (cbegin, cend, rbegin, rend, crbegin, crend): New.
104         * testsuite/24_iterators/range_access_cpp14.cc: New.
106 2015-01-18  Jonathan Wakely  <jwakely@redhat.com>
108         PR libstdc++/64646
109         * include/bits/stl_algo.h (__is_permutation): Also test for reaching
110         end of the second range.
111         * testsuite/25_algorithms/is_permutation/64646.cc: New.
113 2015-01-18  Jonathan Wakely  <jwakely@redhat.com>
115         * doc/xml/manual/status_cxx2011.xml: Remove note about offsetof.
116         * doc/html/manual/status.html: Regenerate.
118 2015-01-18  Jonathan Wakely  <jwakely@redhat.com>
120         * include/bits/atomic_futex.h: Use mutex and condition_variable when
121         atomic int is not lock-free. Make member variables private.
122         * src/c++11/futex.cc: Likewise.
124         * src/c++11/futex.cc: Fix order of includes and preprocessor condition.
126 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
128         PR libstdc++/64638
129         * include/bits/atomic_futex.h: Use appropriate config macros for
130         availability of std::mutex, std::condition and std::chrono.
132 2015-01-17  Ville Voutilainen  <ville.voutilainen@gmail.com>
133             Jonathan Wakely  <jwakely@redhat.com>
135         * doc/xml/manual/status_cxx2011.xml: Update C++11 status.
136         * doc/html/*: Regenerate.
138 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
140         DR 488
141         PR libstdc++/58357
142         * include/bits/algorithmfwd.h (rotate): Return an iterator.
143         * include/bits/stl_algo.h (rotate, __rotate): Likewise.
144         * testsuite/25_algorithms/rotate/dr488.cc: New.
145         * testsuite/25_algorithms/rotate/check_type.cc: Adjust function type.
146         * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
147         2.cc: Likewise.
148         * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
149         pod.cc: Likewise.
151 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
153         PR libstdc++/60940
154         * include/bits/atomic_base.h: Remove atomic integral typedefs as
155         synonyms for __atomic_base<int> etc.
156         * include/std/atomic: Make atomic_int a synonym for atomic<int> and
157         likewise for all atomic integral types.
158         * testsuite/29_atomics/atomic_integral/cons/copy_list.cc: New.
159         * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
161 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
163         PR libstdc++/56785
164         * include/std/tuple (_Tuple_impl): Remove zero-element specialization
165         and define one-element specialization.
166         * testsuite/20_util/tuple/56785.cc: New.
168 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
170         * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc:
171         Remove unused header.
172         * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc:
173         Likewise.
174         * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
175         Likewise.
177 2015-01-16  Jonathan Wakely  <jwakely@redhat.com>
179         * include/bits/locale_conv.h (wstring_convert, wbuffer_convert): New.
180         * include/std/locale: Include new header.
181         * include/Makefile.am: Add it.
182         * include/Makefile.in: Regenerate.
183         * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc: New.
184         * testsuite/22_locale/conversions/string/1.cc: New.
185         * testsuite/22_locale/conversions/string/2.cc: New.
186         * testsuite/22_locale/conversions/string/requirements/typedefs.cc: New.
187         * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
188         New.
190 2015-01-16  Jonathan Wakely  <jwakely@redhat.com>
192         * config/abi/pre/gnu.ver: Export new symbols.
193         * include/Makefile.am: Add codecvt.
194         * include/Makefile.in: Regenerate.
195         * include/std/codecvt: New header.
196         * src/c++11/codecvt.cc (__codecvt_utf8_base, __codecvt_utf16_base,
197         __codecvt_utf8_utf16_base): Define specializations.
198         * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc: New.
199         * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc: New.
200         * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
201         New.
203 2015-01-16  Torvald Riegel  <triegel@redhat.com>
205         * src/c++11/futex.cc: New file.
206         * include/bits/atomic_futex.h: New file.
207         * include/std/future (__future_base::_State_baseV2): Use
208         atomic_futex_unsigned instead of mutex+condvar.
209         * src/c++11/futex.cc: Likewise.
210         * include/Makefile.am: Add atomic_futex.h.
211         * include/Makefile.in: Likewise.
212         * src/c++11/Makefile.am: Add futex.cc.
213         * src/c++11/Makefile.in: Likewise.
215 2015-01-16  Jonathan Wakely  <jwakely@redhat.com>
217         * acinclude.m4: Fix typo in comment.
218         * configure: Regenerate.
219         * include/bits/codecvt.h (codecvt<char16_t, char, mbstate_t>,
220         codecvt<char16_t, char, mbstate_t>): Declare specializations.
221         * include/bits/locale_facets.h: Reserve space for new specializations.
222         * src/c++11/Makefile.am: Add codecvt.cc.
223         * src/c++11/Makefile.in: Regenerate.
224         * src/c++11/codecvt.cc: New.
225         * src/c++98/Makefile.am: Compile locale_init.cc and localename.cc
226         with -std=gnu++11.
227         * src/c++98/Makefile.in: Regenerate.
228         * src/c++98/locale_init.cc: Initialize new codecvt specializations.
229         * src/c++98/localename.cc: Likewise.
230         * config/abi/pre/gnu.ver: Exports for new codecvt specializations.
231         * testsuite/22_locale/codecvt/utf8.cc: New.
232         * testsuite/22_locale/locale/cons/unicode.cc: Check that new
233         specializations are installed in locale objects.
235 2015-01-16  Torvald Riegel  <triegel@redhat.com>
237         * include/std/shared_mutex (shared_timed_mutex): Add POSIX-based
238         implementation.
240 2015-01-13  Jonathan Wakely  <jwakely@redhat.com>
242         PR libstdc++/64571
243         * config/abi/pre/gnu.ver: Export fstream functions using new string.
245 2015-01-12  Jonathan Wakely  <jwakely@redhat.com>
247         PR libstdc++/64560
248         * src/c++11/cxx11-shim_facets.cc (locale::facet::_M_sso_shim): Check
249         for RTTI support.
251         PR libstdc++/64553
252         * src/c++11/cxx11-shim_facets.cc: Check for wchar_t support.
254 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
256         * doc/xml/manual/parallel_mode.xml: Update for libgomp being
257         renamed from "GNU OpenMP Runtime Library" to "GNU Offloading and
258         Multi Processing Runtime Library".
260 2015-01-09  Jonathan Wakely  <jwakely@redhat.com>
262         PR libstdc++/64476
263         * include/bits/stl_uninitialized.h (uninitialized_copy): Fix
264         is_assignable arguments.
265         * testsuite/20_util/specialized_algorithms/uninitialized_copy/64476.cc:
266         New.
268 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
270         * libsupc++/unwind-cxx.h: Revert previous commit.
272 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
274         * configure.host: Add arm*-*-freebsd* port_specific_symbol_files.
276 2015-01-09  Tim Shen  <timshen@google.com>
278         PR libstdc++/64239
279         * include/bits/regex.h (match_results<>::swap): Use std::swap
280         instead of swap.
281         * include/bits/regex_compiler.tcc (_Compiler<>::_M_quantifier):
282         Likewise.
283         * testsuite/28_regex/match_results/swap.cc: New testcase.
285 2015-01-08  Jonathan Wakely  <jwakely@redhat.com>
287         PR libstdc++/60132
288         * include/std/type_traits (has_trivial_default_constructor,
289         has_trivial_copy_constructor, has_trivial_copy_assign): Add deprecated
290         attribute.
291         * testsuite/20_util/has_trivial_copy_assign/requirements/
292         explicit_instantiation.cc: Use -Wno-deprecated.
293         * testsuite/20_util/has_trivial_copy_assign/requirements/typedefs.cc:
294         Likewise.
295         * testsuite/20_util/has_trivial_copy_assign/value.cc: Likewise.
296         * testsuite/20_util/has_trivial_copy_constructor/requirements/
297         explicit_instantiation.cc: Likewise.
298         * testsuite/20_util/has_trivial_copy_constructor/requirements/
299         typedefs.cc: Likewise.
300         * testsuite/20_util/has_trivial_copy_constructor/value.cc: Likewise.
301         * testsuite/20_util/has_trivial_default_constructor/requirements/
302         explicit_instantiation.c: Likewise.
303         * testsuite/20_util/has_trivial_default_constructor/requirements/
304         typedefs.cc: Likewise.
305         * testsuite/20_util/has_trivial_default_constructor/value.cc:
306         Likewise.
307         * testsuite/20_util/pair/requirements/dr801.cc: Replace deprecated
308         trait.
309         * testsuite/20_util/tuple/requirements/dr801.cc: Likewise.
310         * testsuite/util/testsuite_common_types.h: Likewise.
312 2015-01-08  Jonathan Wakely  <jwakely@redhat.com>
314         * include/bits/hashtable_policy.h: Use __bool_constant.
316 2015-01-07  Jonathan Wakely  <jwakely@redhat.com>
318         * libsupc++/Makefile.am: Compile del_ops.cc as C++14.
319         * libsupc++/Makefile.in: Regenerate.
321 2015-01-06  Jonathan Wakely  <jwakely@redhat.com>
323         * config/abi/pre/gnu.ver: Fix version conflict for std::locale::name().
325 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
327         Update copyright years.
329 2015-01-04  Jonathan Wakely  <jwakely@redhat.com>
331         PR libstdc++/64483
332         * testsuite/18_support/exception_ptr/64241.cc: Use
333         dg-require-atomic-builtins.
335 2015-01-02  Jonathan Wakely  <jwakely@redhat.com>
337         * testsuite/21_strings/basic_string/modifiers/64422.cc: Fix copyright
338         date.
340 2015-01-02  Tim Shen  <timshen@google.com>
342         PR libstdc++/64475
343         * include/bits/regex_executor.tcc (_Executor<>::_M_dfs): Copy the
344         iterator, since the original one shouldn't be mutated.
346 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
348         PR libstdc++/64422
349         * src/c++98/misc-inst.cc (string::erase): Add missing overloads.
350         (string::insert): Likewise.
351         (string::replace): Likewise.
352         (wstring::erase): Likewise.
353         (wstring::insert): Likewise.
354         (wstring::replace): Likewise.
355         * testsuite/21_strings/basic_string/modifiers/64422.cc: New testcase.
357 2015-01-02  Jonathan Wakely  <jwakely@redhat.com>
359         PR libstdc++/64468
360         * doc/doxygen/user.cfg.in: Set correct TAB_SIZE.
362 2015-01-02  Jonathan Wakely  <jwakely@redhat.com>
364         PR libstdc++/64438
365         * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
366         Revert removal of dg-require-string-conversions.
367         * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
368         Likewise.
369         * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
370         Likewise.
371         * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
372         Likewise.
373         * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
374         Likewise.
375         * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
376         Likewise.
377         * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
378         Likewise.
379         * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
380         Likewise.
381         * testsuite/21_strings/basic_string/numeric_conversions/char/
382         stoull.cc: Likewise.
383         * testsuite/21_strings/basic_string/numeric_conversions/char/
384         to_string.cc: Likewise.
386 Copyright (C) 2015 Free Software Foundation, Inc.
388 Copying and distribution of this file, with or without modification,
389 are permitted in any medium without royalty provided the copyright
390 notice and this notice are preserved.