PR target/66148
[official-gcc.git] / libstdc++-v3 / ChangeLog
blobcadee8312b4b7563adb72497f68292cf88a29722
1 2015-05-27  Jonathan Wakely  <jwakely@redhat.com>
3         * include/bits/stl_tree.h (_Rb_tree::_M_end()): Return _Base_ptr
4         instead of downcasting.
5         (_Rb_tree::_M_copy): Change second parameter to _Base_ptr.
6         (_Rb_tree::_M_lower_bound, _Rb_tree:_M_upper_bound): Likewise.
7         (_Rb_tree::_S_iter): Remove.
8         (_Rb_tree::_S_lower_bound_tr, _Rb_tree::_S_upper_bound_tr): Remove.
9         (_Rb_tree::_M_find_tr(const _Kt&) const): Call _M_lower_bound_tr
10         instead of _S_lower_bound_tr
11         (_Rb_tree::_M_find_tr(const _Kt&)): Call const overload.
12         (_Rb_tree::_M_lower_bound_tr(const _Kt&) const): Do the search here
13         instead of calling _S_lower_bound_tr.
14         (_Rb_tree::_M_lower_bound_tr(const _Kt&)): Call const overload.
15         (_Rb_tree::_M_upper_bound_tr(const _Kt&) const): Do the search here
16         instead of calling _S_upper_bound_tr.
17         (_Rb_tree::_M_upper_bound_tr(const _Kt&)): Call const overload.
18         (_Rb_tree::_M_equal_range_tr(const _Kt&)): Likewise.
19         (_Rb_tree::equal_range): Use _Base_ptr for end pointer.
20         (_Rb_tree::_M_get_insert_unique_pos): Likewise.
21         (_Rb_tree::_M_get_insert_equal_pos): Likewise.
22         (_Rb_tree::_M_insert_equal_lower_node): Likewise.
23         (_Rb_tree::_M_insert_unique, _Rb_tree::_M_emplace_unique,
24         _Rb_tree::_M_emplace_hint_unique): Remove static_cast.
26         PR libstdc++/66017
27         * include/bits/stl_tree.h (_Rb_tree_node): Use __aligned_membuf.
28         (_Rb_tree_iterator, _Rb_tree_const_iterator): Support construction
29         from _Base_ptr.
30         (_Rb_tree_const_iterator::_M_const_cast): Remove static_cast.
31         (_Rb_tree::begin, _Rb_tree::end): Remove static_cast.
32         * include/ext/aligned_buffer.h (__aligned_membuf): New type using
33         alignment of _Tp as a member subobject, not as a complete object.
34         * python/libstdcxx/v6/printers.py (StdRbtreeIteratorPrinter): Lookup
35         _Link_type manually as it might not be in the debug info.
37 2015-05-26  Doug Evans  <dje@google.com>
39         * python/libstdcxx/v6/xmethods.py (UniquePtrMethodsMatcher): Add
40         operator-> support.
41         * testsuite/libstdc++-xmethods/unique_ptr.cc: Add tests for
42         operator->.
44 2015-05-26  Jonathan Wakely  <jwakely@redhat.com>
46         * include/bits/locale_conv.h: Fix copyright years.
47         * include/bits/quoted_string.h: Likewise.
48         * src/filesystem/Makefile.am: Likewise.
49         * testsuite/22_locale/conversions/buffer/1.cc: Likewise.
50         * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc:
51         Likewise.
52         * testsuite/22_locale/conversions/string/1.cc: Likewise.
53         * testsuite/22_locale/conversions/string/2.cc: Likewise.
54         * testsuite/22_locale/conversions/string/3.cc: Likewise.
55         * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
56         Likewise.
57         * testsuite/22_locale/conversions/string/requirements/typedefs.cc:
58         Likewise.
59         * testsuite/util/testsuite_fs.h: Likewise.
61 2015-05-23  François Dumont  fdumont@gcc.gnu.org>
63         PR libstdc++/64657
64         * include/debug/functions.h (__check_sorted_aux): Cast expression to
65         void.
67 2015-05-21  David Edelsohn  <dje.gcc@gmail.com>
69         PR target/66224
70         * config/cpu/powerpc/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER):
71         Don't use isync. Use lwsync if available.
72         * configure.host (atomic_word_dir) [aix[56789]*]: Delete to use
73         powerpc cpu definition.
75 2015-05-21  Jason Merrill  <jason@redhat.com>
77         * libsupc++/del_opv.cc: Suppress -Wsized-deallocation.
78         * libsupc++/del_op.cc: Likewise.
80 2015-05-20  François Dumont  fdumont@gcc.gnu.org>
82         * include/debug/formatter.h (_GLIBCXX_TYPEID): New macro to simplify
83         usage of typeid.
84         (_Error_formatter::_M_print_type): New.
85         * src/c++11/debug.cc
86         (_Error_formatter::_Parameter::_M_print_field): Use latter.
87         (_Error_formatter::_M_print_type): Implement latter using
88         __cxaabiv1::__cxa_demangle to print demangled type name.
90         * include/bits/cpp_type_traits.h
91         (std::move_iterator): Delete declaration.
92         (std::__is_move_iterator<move_iterator>): Move partial specialization...
93         * include/bits/stl_iterator.h: ... here.
94         (std::__miter_base): Overloads for std::reverse_iterator and
95         std::move_iterator.
96         * include/bits/stl_algobase.h (std::__miter_base): Provide default
97         implementation.
99 2015-05-20  Jonathan Wakely  <jwakely@redhat.com>
101         * testsuite/util/testsuite_fs.h (nonexistent_path): Don't use tempnam.
103         PR libstdc++/66078
104         * include/bits/stl_iterator.h (__make_move_if_noexcept_iterator): Add
105         overload for pointers.
106         * testsuite/20_util/specialized_algorithms/uninitialized_copy/
107         808590.cc: Add -std=gnu++03 switch.
108         * testsuite/20_util/specialized_algorithms/uninitialized_copy/
109         808590-cxx11.cc: Copy of 808590.cc to test with -std=gnu++11.
110         * testsuite/23_containers/vector/modifiers/push_back/
111         strong_guarantee.cc: New.
113 2015-05-19  Jonathan Wakely  <jwakely@redhat.com>
115         * include/bits/stl_list.h (_M_resize_pos(size_type&)): Declare.
116         (operator==(const list&, const list&)): If size() is O(1) compare
117         sizes before comparing each element.
118         * include/bits/list.tcc (list::_M_resize_pos(size_type&)): Define.
119         (list::resize): Use _M_resize_pos.
121 2015-05-19  François Dumont  <fdumont@gcc.gnu.org>
123         * testsuite/23_containers/unordered_map/cons/66055.cc: Add constructor
124         invocations.
125         * testsuite/23_containers/unordered_multimap/cons/66055.cc: Likewise.
126         * testsuite/23_containers/unordered_multiset/cons/66055.cc: Likewise.
127         * testsuite/23_containers/unordered_set/cons/66055.cc: Likewise.
129 2015-05-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
131         * configure.host: Define cpu_defines_dir for ARM.
132         * config/cpu/arm/cpu_defines.h: New file.
134 2015-05-17  François Dumont  <fdumont@gcc.gnu.org>
136         * include/bits/unordered_map.h (unordered_map, unordered_multimap): Add
137         missing constructors.
138         * include/bits/unordered_set.h (unordered_set, unordered_multiset):
139         Likewise.
140         * include/debug/unordered_map (unordered_map, unordered_multimap): Add
141         missing constructors.
142         * include/debug/unordered_set (unordered_set, unordered_multiset):
143         Likewise.
144         * include/profile/unordered_map (unordered_map, unordered_multimap): Add
145         missing constructors.
146         * include/profile/unordered_set (unordered_set, unordered_multiset):
147         Likewise.
149 2015-05-15  Jonathan Wakely  <jwakely@redhat.com>
151         * src/filesystem/ops.cc (stat_type): Define alias for struct stat and
152         use throughout the file.
153         (make_file_type): New function.
154         (file_size(const path&, error_code&)): Report an error for anything
155         that isn't a regular file.
156         (status(const path&), symlink_status(const path&)): Do not throw for
157         file_type::not_found.
158         (temp_directory_path()): Check additional environment variables.
159         * testsuite/experimental/filesystem/operations/exists.cc: New.
160         * testsuite/experimental/filesystem/operations/file_size.cc: New.
161         * testsuite/experimental/filesystem/operations/status.cc: New.
162         * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
163         New.
165 2015-05-14  Nathan Myers  <ncm@cantrip.org>
166             Jonathan Wakely  <jwakely@redhat.com>
168         PR libstdc++/66055
169         * include/std/unordered_map (unordered_map, unordered_multimap): Add
170         missing constructors.
171         * include/std/unordered_set (unordered_set, unordered_multiset):
172         Likewise.
173         * testsuite/23_containers/unordered_map/cons/66055.cc: New.
174         * testsuite/23_containers/unordered_multimap/cons/66055.cc: New.
175         * testsuite/23_containers/unordered_multiset/cons/66055.cc: New.
176         * testsuite/23_containers/unordered_set/cons/66055.cc: New.
178 2015-05-14  Jonathan Wakely  <jwakely@redhat.com>
180         PR libstdc++/66011
181         * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmod and
182         sendfile.
183         * config.h.in: Regenerate.
184         * configure: Regenerate.
185         * src/filesystem/ops.cc (do_copy_file): Fix arguments to open(). Do
186         not return after copying contents. Use fchmod, fchmodat, and sendfile
187         when available.
188         (current_path, permissions, space): Use errno not return value.
190         PR libstdc++/66018
191         * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for struct
192         dirent.d_type.
193         * config.h.in: Regenerate.
194         * configure: Regenerate.
195         * configure.ac (AC_STRUCT_DIRENT_D_TYPE): Remove.
197 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
199         * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Delete.
200         * configure.ac: Remove GLIBCXX_ENABLE_SJLJ_EXCEPTIONS.
201         * config.h.in: Regenerate.
202         * configure: Likewise.
203         * libsupc++/eh_personality.cc: Replace _GLIBCXX_SJLJ_EXCEPTIONS by
204         __USING_SJLJ_EXCEPTIONS__.
205         * libsupc++/eh_throw.cc: Likewise.
206         * libsupc++/eh_ptr.cc: Likewise.
207         * doc/html/manual/appendix_porting.html: Remove
208         GLIBCXX_ENABLE_SJLJ_EXCEPTIONS
209         * doc/xml/manual/build_hacking.xml: Likewise.
210         * doc/html/manual/configure.html: Remove --enable-sjlj-exceptions.
211         * doc/xml/manual/configure.xml: Likewise.
213 2015-05-13  Jonathan Wakely  <jwakely@redhat.com>
215         * include/bits/shared_ptr_base.h (__shared_count(unique_ptr&&)): Check
216         for nullptr (LWG 2415).
217         * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: Test
218         construction from empty unique_ptr.
219         * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error.
220         * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
222         * include/bits/stl_raw_storage_iter.h (raw_storage_iterator::base()):
223         Define (LWG 2454).
224         * testsuite/20_util/raw_storage_iterator/base.cc: New.
226         * include/std/future (packaged_task(allocator_arg_t, const A&, F&&):
227         Remove explicit (LWG 2407).
229         * include/bits/basic_string.h (basic_string::basic_string()): Make
230         noexcept conditional on allocator (LWG 2455).
232         * include/std/complex (polar): Check for negative rho (LWG 2459).
234         * include/experimental/tuple (apply): Handle pointers to member (LWG
235         2418).
236         * include/std/functional (_Mem_fn_base): Make constructors constexpr.
237         (_Maybe_wrap_member_pointer::__do_wrap): Make constexpr.
238         * testsuite/experimental/tuple/apply.cc: Test pointer to member.
240         * include/bits/random.h (seed_seq): More noexcept (LWG 2440).
242         * include/bits/alloc_traits.h (_S_max_size): Implement LWG 2466.
243         * testsuite/20_util/allocator_traits/members/max_size.cc: Adjust.
244         * testsuite/23_containers/forward_list/allocator/minimal.cc:
245         Likewise.
246         * testsuite/23_containers/map/allocator/minimal.cc: Likewise.
247         * testsuite/23_containers/multimap/allocator/minimal.cc: Likewise.
248         * testsuite/23_containers/multiset/allocator/minimal.cc: Likewise.
249         * testsuite/23_containers/set/allocator/minimal.cc: Likewise.
250         * testsuite/23_containers/unordered_map/allocator/minimal.cc:
251         Likewise.
252         * testsuite/23_containers/unordered_multimap/allocator/minimal.cc:
253         Likewise.
254         * testsuite/23_containers/unordered_multiset/allocator/minimal.cc:
255         Likewise.
256         * testsuite/23_containers/unordered_set/allocator/minimal.cc:
257         Likewise.
258         * testsuite/util/testsuite_allocator.h: Remove unused parameter.
260         * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Re-enable on solaris.
261         * configure: Regenerate.
263 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
265         * Makefile.in: Regenerated with automake-1.11.6.
266         * aclocal.m4: Likewise.
267         * configure: Likewise.
268         * doc/Makefile.in: Likewise.
269         * include/Makefile.in: Likewise.
270         * libsupc++/Makefile.in: Likewise.
271         * po/Makefile.in: Likewise.
272         * python/Makefile.in: Likewise.
273         * src/Makefile.in: Likewise.
274         * src/c++11/Makefile.in: Likewise.
275         * src/c++98/Makefile.in: Likewise.
276         * src/filesystem/Makefile.in: Likewise.
277         * testsuite/Makefile.in: Likewise.
279 2015-05-09  Jason Merrill  <jason@redhat.com>
281         * testsuite/20_util/headers/functional/synopsis.cc: Add
282         _GLIBCXX14_CONSTEXPR.
283         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
285 2015-05-08  Jason Merrill  <jason@redhat.com>
287         * testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Add -std=c++98.
288         * testsuite/20_util/auto_ptr/1.cc: Add -std=c++98.
289         * testsuite/20_util/auto_ptr/2.cc: Add -std=c++98.
290         * testsuite/20_util/auto_ptr/3.cc: Add -std=c++98.
291         * testsuite/20_util/auto_ptr/4.cc: Add -std=c++98.
292         * testsuite/20_util/auto_ptr/5.cc: Add -std=c++98.
293         * testsuite/20_util/auto_ptr/6.cc: Add -std=c++98.
294         * testsuite/20_util/auto_ptr/7.cc: Add -std=c++98.
295         * testsuite/20_util/auto_ptr/3946.cc: Add -std=c++98.
296         * testsuite/20_util/auto_ptr/assign_neg.cc: Add -std=c++98.
297         * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc:
298         Likewise.
299         * testsuite/20_util/headers/functional/synopsis.cc: Add -Wno-deprecated.
300         * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
301         Adjust expected errors.
302         * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
303         Likewise.
304         * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
305         Likewise.
306         * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
307         Likewise.
308         * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
309         Likewise.
310         * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
311         Likewise.
312         * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
313         Likewise.
314         * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
315         Likewise.
316         * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
317         Likewise.
318         * testsuite/23_containers/vector/requirements/dr438
319         /constructor_1_neg.cc: Likewise.
320         * testsuite/23_containers/vector/requirements/dr438
321         /constructor_2_neg.cc: Likewise.
322         * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
323         Likewise.
324         * testsuite/ext/array_allocator/1.cc: Add -Wno-deprecated.
325         * testsuite/ext/array_allocator/2.cc: Add -Wno-deprecated.
326         * testsuite/ext/array_allocator/26875.cc: Add -Wno-deprecated.
327         * testsuite/ext/array_allocator/3.cc: Add -Wno-deprecated.
328         * testsuite/ext/array_allocator/check_allocate_max_size.cc:
329         Add -Wno-deprecated.
330         * testsuite/ext/array_allocator/check_deallocate_null.cc:
331         Add -Wno-deprecated.
332         * testsuite/ext/array_allocator/check_delete.cc: Add -Wno-deprecated.
333         * testsuite/ext/array_allocator/check_new.cc: Add -Wno-deprecated.
334         * testsuite/ext/profile/mutex_extensions_neg.cc: Prune follow-on error.
335         * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc:
336         Add -std=c++98.
337         * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc:
338         Add -std=c++98.
339         * testsuite/tr1/2_general_utilities/shared_ptr/assign
340         /auto_ptr_rvalue_neg.cc: Add -std=c++98.
341         * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
342         Add -std=c++98 -fno-show-column.
343         * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc:
344         Add -std=c++98.
345         * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc:
346         Add -std=c++98.
347         * testsuite/tr1/6_containers/utility/pair.cc: Add -std=c++98.
348         * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Add -std=c++98.
350         * src/c++98/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
351         * src/c++98/Makefile.in: Regenerate.
352         * src/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
353         * src/Makefile.in: Regenerate.
355 2015-05-02  Jonathan Wakely  <jwakely@redhat.com>
357         PR libstdc++/51617
358         * include/std/future (async): Change default policy to launch::async.
360         * include/experimental/any (any::_Storage): Fix alignment of buffer.
361         (any::_Internal): Check alignment of type.
362         * testsuite/experimental/any/cons/aligned.cc: New.
363         * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
365         * include/experimental/iterator (ostream_joiner): Simplify by using
366         the injected-class-name and the ostream_type typedef.
368         * include/experimental/iterator: New. Define ostream_joiner.
369         * include/Makefile.am: Add new header.
370         * include/Makefile.in: Regenerate.
371         * testsuite/experimental/iterator/make_ostream_joiner.cc: New.
372         * testsuite/experimental/iterator/ostream_joiner.cc: New.
373         * testsuite/experimental/iterator/requirements.cc: New.
374         * doc/xml/manual/status_cxx2017.xml: Update status.
375         * doc/html/manual/status.html: Regenerate.
377         * include/experimental/numeric: New. Define gcd and lcm.
378         * include/Makefile.am: Add new header.
379         * include/Makefile.in: Regenerate.
380         * testsuite/experimental/numeric/gcd.cc: New.
381         * testsuite/experimental/numeric/lcm.cc: New.
382         * doc/xml/manual/status_cxx2017.xml: Update status.
383         * doc/html/manual/status.html: Regenerate.
385 2015-05-02  Edward Smith-Rowland  <3dw4rd@verizon.net>
387         Revert addition of feature macros from other headers per latest SD-6.
388         * include/experimental/deque: Remove feature-test macro.
389         * include/experimental/forward_list: Ditto.
390         * include/experimental/list: Ditto.
391         * include/experimental/map: Ditto.
392         * include/experimental/set: Ditto.
393         * include/experimental/string: Ditto.
394         * include/experimental/unordered_map: Ditto.
395         * include/experimental/unordered_set: Ditto.
397 2015-05-02  Jonathan Wakely  <jwakely@redhat.com>
399         * include/experimental/any (any::_Storage): Make non-copyable.
400         (any::any): Do not copy _Storage object.
401         (any::operator=): Implement more efficiently than swapping.
402         (any::swap): Use new _Op_xfer operation.
403         (any::_Op::_Op_xfer): New enumerator.
404         (_Manager_internal::_S_alloc): Remove unused function.
405         (_Manager_internal::_S_create, _Manager_external::_S_create): Use out
406         parameter instead of returning a _Storage object.
407         (_Manager_internal::_S_manage, _Manager_external::_S_manage): Add
408         _Op_xfer operation for moving and swapping.
409         * testsuite/experimental/any/cons/nontrivial.cc: New.
410         * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
412         * include/experimental/fs_path.h (filesystem_error::~filesystem_error):
413         Declare.
414         * src/filesystem/path.cc (filesystem_error::~filesystem_error):
415         Define.
417         PR libstdc++/65978
418         * include/std/tuple (forward_as_tuple, tie): Add constexpr.
419         * testsuite/20_util/tuple/creation_functions/constexpr.cc: Uncomment
420         and fix tests for forward_as_tuple and tie.
422         * src/filesystem/ops.cc (last_write_time) [_GLIBCXX_USE_UTIMENSAT]:
423         Set timespec members explicitly instead of with a braced-init-list.
424         [_GLIBCXX_HAVE_UTIME_H]: Use lambda to handle st_atime being a macro.
426 2015-05-02  Edward Smith-Rowland  <3dw4rd@verizon.net>
428         * include/experimental/deque: Add feature-test macro.
429         * include/experimental/forward_list: Ditto.
430         * include/experimental/list: Ditto.
431         * include/experimental/map: Ditto.
432         * include/experimental/set: Ditto.
433         * include/experimental/string: Ditto.
434         * include/experimental/unordered_map: Ditto.
435         * include/experimental/unordered_set: Ditto.
437 2015-05-01  Jonathan Wakely  <jwakely@redhat.com>
439         * include/experimental/memory: Correct feature-test macro.
441         * include/experimental/memory: Add feature-test macro.
442         * include/experimental/vector: Likewise.
443         * doc/xml/manual/status_cxx2017.xml: Update status.
444         * doc/html/manual/status.html: Regenerate.
446 2015-05-01  Ville Voutilainen  <ville.voutilainen@gmail.com>
448         Implement observer_ptr.
449         * include/Makefile.am: Add new header.
450         * include/Makefile.in: Regenerate.
451         * include/experimental/memory: New.
452         * testsuite/experimental/memory/observer_ptr/assignment/assign.cc: New.
453         * testsuite/experimental/memory/observer_ptr/cons/cons.cc: New.
454         * testsuite/experimental/memory/observer_ptr/hash/hash.cc: New.
455         * testsuite/experimental/memory/observer_ptr/make_observer.cc: New.
456         * testsuite/experimental/memory/observer_ptr/relops/relops.cc: New.
457         * testsuite/experimental/memory/observer_ptr/requirements.cc: New.
458         * testsuite/experimental/memory/observer_ptr/swap/swap.cc: New.
459         * testsuite/experimental/memory/observer_ptr/typedefs.cc: New.
461 2015-05-01  Jonathan Wakely  <jwakely@redhat.com>
463         * src/filesystem/path.cc (path::compare): Do not copy strings.
465         * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable when <dirent.h>
466         is not available.
467         (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmodat.
468         * configure: Regenerate.
469         * config.h.in: Regenerate.
470         * configure.ac: Check for utime.h
471         * include/experimental/fs_path.h (path::string<>)
472         [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove stray typename keyword.
473         * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H] (DIR, opendir,
474         closedir, dirent, readdir_r): Replace dummy functions with #error.
475         (native_readdir, _Dir::advance): Use readdir when readdir_r is missing.
476         * src/filesystem/ops.cc (do_stat, is_set): Make inline.
477         (last_write_time) [!_GLIBCXX_USE_UTIMENSAT]: Use utime.
478         (permissions) [!_GLIBCXX_USE_FCHMODAT]: Use chmod.
479         (space, temp_directory_path) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Set
480         error_code.
482         * include/experimental/fs_path.h (path::_List): Use vector instead of
483         list.
484         * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Adapt.
485         * src/filesystem/path.cc: Use std::prev instead of decrementing
486         rvalues. Fix whitespace.
487         * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
488         Do not decrement iterators before begin.
490         * include/experimental/fs_dir.h: Fix use of non-reserved names.
491         * include/experimental/fs_ops.h: Likewise.
492         * include/experimental/fs_path.h: Likewise.
493         * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Use
494         C++11 when checking for support.
496         * include/bits/locale_classes.h (locale::facet): Delete copy
497         operations in C++11 mode.
499         * include/bits/alloc_traits.h (__alloc_rebind): Change parameter name.
501         * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable for solaris.
502         * configure: Regenerate.
504 2015-05-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
506         Inline one-line erasure dispatch functions.
507         * include/experimental/forward_list (erase_if(), erase()): Inline.
508         * include/experimental/list (erase_if(), erase()): Inline.
509         * include/experimental/map (erase_if(*)): Inline.
510         * include/experimental/set (erase_if(*)): Inline.
511         * include/experimental/string (erase_if(), erase()): Inline.
512         * include/experimental/unordered_map (erase_if(*)): Inline.
513         * include/experimental/unordered_set (erase_if(*)): Inline.
515 2015-05-01  Jonathan Wakely  <jwakely@redhat.com>
517         * doc/xml/manual/intro.xml: Link to new status_cxx2017.xml file.
518         * doc/xml/manual/status_cxx2011.xml: Update status tables.
519         * doc/xml/manual/status_cxx2014.xml: Likewise.
520         * doc/xml/manual/status_cxx2017.xml: New.
521         * doc/xml/manual/using.xml: Fix typo.
522         * doc/html/*: Regenerate.
524         * include/std/memory (pointer_safety, declare_reachable,
525         undeclare_reachable, declare_no_pointers, undeclare_no_pointers,
526         get_pointer_safety): Define.
527         * testsuite/20_util/pointer_safety/1.cc: New.
529 2015-04-30  Jonathan Wakely  <jwakely@redhat.com>
531         Implement N4100 File System TS
532         * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Define.
533         (GLIBCXX_CHECK_FILESYSTEM_DEPS): Define.
534         * config.h.in: Regenerate.
535         * configure: Regenerate.
536         * configure.ac: Enable filesystem TS and check its dependencies.
537         * include/Makefile.am: Add new headers.
538         * include/Makefile.in: Regenerate.
539         * include/bits/locale_conv.h (__do_str_code_cvt, __str_codecvt_in,
540         __str_codecvt_out): Move code conversion logic from wstring_convert
541         into new global functions.
542         (wstring_convert::to_bytes, wstring_convert::from_bytes): Use new
543         functions.
544         (wstring_convert::_M_conv): Remove.
545         * include/bits/quoted_string.h (_Quoted_string): Split out of iomanip.
546         * include/experimental/filesystem: New.
547         * include/experimental/fs_dir.h: New.
548         * include/experimental/fs_fwd.h: New.
549         * include/experimental/fs_ops.h: New.
550         * include/experimental/fs_path.h: New.
551         * include/std/iomanip (_Quoted_string): Move to bits/quoted_string.h.
552         * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Add.
553         * src/Makefile.am (SUBDIRS): Add filesystem.
554         * src/Makefile.in: Regenerate.
555         * src/filesystem/Makefile.am: New.
556         * src/filesystem/Makefile.in: New.
557         * src/filesystem/dir.cc: New.
558         * src/filesystem/ops.cc: New.
559         * src/filesystem/path.cc: New.
560         * testsuite/experimental/filesystem/operations/absolute.cc: New.
561         * testsuite/experimental/filesystem/operations/copy.cc: New.
562         * testsuite/experimental/filesystem/operations/current_path.cc: New.
563         * testsuite/experimental/filesystem/path/append/path.cc: New.
564         * testsuite/experimental/filesystem/path/assign/assign.cc: New.
565         * testsuite/experimental/filesystem/path/assign/copy.cc: New.
566         * testsuite/experimental/filesystem/path/compare/compare.cc: New.
567         * testsuite/experimental/filesystem/path/compare/path.cc: New.
568         * testsuite/experimental/filesystem/path/compare/strings.cc: New.
569         * testsuite/experimental/filesystem/path/concat/path.cc: New.
570         * testsuite/experimental/filesystem/path/concat/strings.cc: New.
571         * testsuite/experimental/filesystem/path/construct/copy.cc: New.
572         * testsuite/experimental/filesystem/path/construct/default.cc: New.
573         * testsuite/experimental/filesystem/path/construct/locale.cc: New.
574         * testsuite/experimental/filesystem/path/construct/range.cc: New.
575         * testsuite/experimental/filesystem/path/decompose/extension.cc: New.
576         * testsuite/experimental/filesystem/path/decompose/filename.cc: New.
577         * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
578         New.
579         * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
580         New.
581         * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
582         New.
583         * testsuite/experimental/filesystem/path/decompose/root_name.cc:
584         New.
585         * testsuite/experimental/filesystem/path/decompose/root_path.cc:
586         New.
587         * testsuite/experimental/filesystem/path/decompose/stem.cc: New.
588         * testsuite/experimental/filesystem/path/generic/generic_string.cc:
589         New.
590         * testsuite/experimental/filesystem/path/itr/traversal.cc: New.
591         * testsuite/experimental/filesystem/path/modifiers/clear.cc: New.
592         * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
593         New.
594         * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
595         New.
596         * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
597         New.
598         * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
599         New.
600         * testsuite/experimental/filesystem/path/modifiers/swap.cc: New.
601         * testsuite/experimental/filesystem/path/nonmember/hash_value.cc: New.
602         * testsuite/experimental/filesystem/path/query/empty.cc: New.
603         * testsuite/experimental/filesystem/path/query/has_extension.cc: New.
604         * testsuite/experimental/filesystem/path/query/has_filename.cc: New.
605         * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
606         New.
607         * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
608         New.
609         * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
610         New.
611         * testsuite/experimental/filesystem/path/query/has_root_name.cc:
612         New.
613         * testsuite/experimental/filesystem/path/query/has_root_path.cc:
614         New.
615         * testsuite/experimental/filesystem/path/query/has_stem.cc: New.
616         * testsuite/experimental/filesystem/path/query/is_relative.cc: New.
617         * testsuite/util/testsuite_fs.h: New.
619 2015-04-30  Edward Smith-Rowland  <3dw4rd@verizon.net>
621         Add fundamentals TR container erasure.
622         * include/Makefile.am: Add new headers.
623         * include/Makefile.in: Add new headers.
624         * include/experimental/array: New.
625         * include/experimental/deque: New.
626         * include/experimental/erase_if.tcc: New.
627         * include/experimental/forward_list: New.
628         * include/experimental/list: New.
629         * include/experimental/map: New.
630         * include/experimental/set: New.
631         * include/experimental/string: New.
632         * include/experimental/unordered_map: New.
633         * include/experimental/unordered_set: New.
634         * include/experimental/vector: New.
635         * testsuite/experimental/deque/erasure.cc: New.
636         * testsuite/experimental/forward_list/erasure.cc: New.
637         * testsuite/experimental/list/erasure.cc: New.
638         * testsuite/experimental/map/erasure.cc: New.
639         * testsuite/experimental/set/erasure.cc: New.
640         * testsuite/experimental/string/erasure.cc: New.
641         * testsuite/experimental/unordered_map/erasure.cc: New.
642         * testsuite/experimental/unordered_set/erasure.cc: New.
643         * testsuite/experimental/vector/erasure.cc: New.
645 2015-04-30  François Dumont  <fdumont@gcc.gnu.org>
647         * include/bits/cpp_type_traits.h
648         (__gnu_cxx::__is_normal_iterator): Delete.
649         * include/bits/stl_algobase.h (std::__niter_base): Adapt.
650         * include/bits/stl_iterator.h (__make_reverse_iterator): New in C++11.
651         (std::__niter_base): Overloads for std::reverse_iterator,
652         __gnu_cxx::__normal_iterator and std::move_iterator.
654 2015-04-30  François Dumont  <fdumont@gcc.gnu.org>
656         * include/bits/hashtable_policy.h (_Prime_rehash_policy::_S_n_primes):
657         Delete.
658         * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
659         Remove usage of latter and compute size of the prime numbers array
660         locally.
662 2015-04-29  Doug Evans  <dje@google.com>
664         PR libstdc++/65839
665         * python/libstdcxx/v6/xmethods.py (get_bool_type): New function.
666         Replace all lookups of "bool" with this.
667         (get_std_size_type): New function.  Replace all lookups of std::size_t
668         with this.
669         (*Worker): New method get_result_type.
670         (DequeWorkerBase.__init__): New arg val_type.  All callers updated.
671         (ListWorkerBase.__init__): New arg val_type.  All callers updated.
672         (UniquePtrGetWorker.__init__): New arg elem_type.  All callers updated.
673         Delete setting of name, enabled.
674         (UniquePtrDerefWorker.__init__): New arg elem_type.  All callers
675         updated.  Delete setting of name.
676         (UniquePtrMethodsMatcher): Rewrite for consistency with all other
677         libstdc++ xmethod matchers.
678         * testsuite/libstdc++-xmethods/array.cc: Add whatis tests.
679         * testsuite/libstdc++-xmethods/associative-containers.cc: Ditto.
680         * testsuite/libstdc++-xmethods/deque.cc: Ditto.
681         * testsuite/libstdc++-xmethods/forwardlist.cc: Ditto.
682         * testsuite/libstdc++-xmethods/list.cc: Ditto.
683         * testsuite/libstdc++-xmethods/unique_ptr.cc: Ditto.
684         * testsuite/libstdc++-xmethods/vector.cc: Ditto.
686 2015-04-29  Doug Evans  <dje@google.com>
688         Use consistent naming for value type attributes.
689         * python/libstdcxx/v6/xmethods.py (ArrayWorkerBase): Rename _valtype
690         to _val_type.
691         (ArraySizeWorker, ArrayEmptyWorker): Ditto.
692         (ArrayFrontWorker, ArrayBackWorker): Ditto.
693         (ArrayAtWorker, ArraySubscriptWorker): Ditto.
694         (DequeWorkerBase): Rename elemtype to val_type.
695         (ForwardListWorkerBase): Rename _elem_type to _val_type.
696         (ForwardListFrontWorker): Ditto.  And rename elem_address to
697         val_address.
698         (ForwardListMethodsMatcher): Rename elem_type to val_type.
699         (VectorWorkerBase): Rename _elemtype to _val_type.
701 2015-04-29  Jonathan Wakely  <jwakely@redhat.com>
703         PR libstdc++/65760
704         * include/std/functional (__check_func_return_type): Use is_same to
705         avoid using _is_convertible on incomplete types.
706         * testsuite/20_util/function/65760.cc: New.
708         PR libstdc++/64657
709         * include/bits/basic_string (basic_string::_S_copy_chars): Cast
710         expression to void.
711         * include/bits/locale_facets_nonio.tcc (money_get::_M_extract,
712         time_get::_M_extract_num, time_get::_M_extract_name,
713         time_get::_M_extract_wday_or_month): Likewise.
714         * include/bits/stl_algo.h (__includes, __replace_copy_if,
715         __is_sorted_until, __is_permutation, transform): Likewise.
716         * include/bits/stl_algobase.h (swap_ranges, __copy_move::__copy_m,
717         __equal::equal, __lexicographical_compare_impl, equal): Likewise.
718         * include/bits/stl_numeric.h (inner_product): Likewise.
719         * include/bits/stl_uninitialized.h (__uninitialized_copy_a): Likewise.
720         * testsuite/util/testsuite_iterators.h (output_iterator_wrapper,
721         input_iterator_wrapper): Declare unusable comma operator.
722         * testsuite/21_strings/basic_string/cons/char/64657.cc: New.
723         * testsuite/21_strings/basic_string/modifiers/assign/char/64657.cc:
724         New.
726 2015-04-28  Doug Evans  <dje@google.com>
728         * testsuite/libstdc++-xmethods/list.cc (_GLIBCXX_USE_CXX11_ABI):
729         Define to zero.
731 2015-04-28  Jonathan Wakely  <jwakely@redhat.com>
733         * include/bits/stl_algo.h (random_shuffle): Only define for hosted
734         implementations.
736 2015-04-28  Jonathan Wakely  <jwakely@redhat.com>
738         * Makefile.am (SUBDIRS): Move python to hosted_source.
739         * Makefile.in: Regenerate.
740         * acinclude.m4 (glibcxx_SUBDIRS): Reorder.
741         * configure: Regenerate.
743 2015-04-28  Marc Glisse  <marc.glisse@inria.fr>
745         PR libstdc++/65883
746         * include/std/limits (numeric_limits): Add missing unsigned.
748 2015-04-28  Stephan Bergmann  <sbergman@redhat.com>
750         * include/debug/vector (_Safe_vector::operator=): Add missing returns.
752 2015-04-28  Jonathan Wakely  <jwakely@redhat.com>
754         PR libstdc++/60333
755         * include/std/type_traits (__make_unsigned_selector<_Tp, false, true>):
756         Handle enumeration types larger than sizeof(long).
757         (__make_signed_selector<_Tp, false, true>): Find unsigned type then
758         make it signed.
759         * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
760         * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
761         Likewise.
762         * testsuite/20_util/make_signed/requirements/typedefs-3.cc: New.
763         * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
764         dg-error.
765         * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: New.
767         PR libstdc++/61645
768         * include/bits/forward_list.h (forward_list::splice_after): Add
769         noexcept.
770         * include/bits/forward_list.tcc (forward_list::splice_after):
771         Likewise.
773         PR libstdc++/65631
774         * include/bits/random.h (seed_seq) Define copy constructor and copy
775         assignment as deleted.
776         * testsuite/26_numerics/random/seed_seq/cons/65631.cc: New.
778         * libsupc++/exception (uncaught_exceptions): Add comment. Reorder #if.
779         * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
780         Use -std=gnu++1z. Check feature-test macro.
782         * include/std/type_traits (void_t): Add.
783         * testsuite/20_util/void_t/1.cc: New.
785 2015-04-28  Tim Shen  <timshen@google.com>
787         * include/bits/regex.tcc: Handle regex_constants::__polynomial.
788         * include/bits/regex_automaton.tcc: Throw exception when parsing
789         back-reference with flag __polynomial.
790         * include/bits/regex_constants.h: Add extension flag
791         syntax_option_type __polynomial.
792         * bits/regex_executor.tcc: Still let BFS process ECMAScript.
793         Alternative operation will be fixed in the coming refactoring.
794         * testsuite/28_regex/algorithms/regex_search/61424.cc: Turn
795         loose match_search_debug to use DFS only.
797 2015-04-27  Sandra Loosemore  <sandra@codesourcery.com>
799         PR libstdc++/65909
800         * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale):
801         Make the generated test program fail gracefully if the target
802         doesn't support passing command-line arguments.
804 2015-04-27  Federico Lenarduzzi  <federico.lenarduzzi@tallertechnologies.com>
805             Jonathan Wakely  <jwakely@redhat.com>
807         * libsupc++/eh_catch.cc (uncaught_exception, uncaught_exceptions):
808         Return false or zero if the library is built without exceptions.
809         * libsupc++/eh_term_handler.cc: Disable verbose terminate handler if
810         the library is built without exceptions.
812 2015-04-27  Ville Voutilainen  <ville.voutilainen@gmail.com>
814         * config/abi/pre/gnu.ver: Fix comment.
816         Add support for std::uncaught_exceptions.
817         * acinclude.m4: Bump libtool_VERSION.
818         * config/abi/pre/gnu.ver: Export the new symbol.
819         * configure: Regenerate.
820         * libsupc++/eh_catch.cc (uncaught_exceptions): New.
821         * libsupc++/exception (uncaught_exceptions): New.
822         * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc: New.
823         * testsuite/util/testsuite_abi.cc: Add 3.4.22 as the latest version.
825 2015-04-27  Dmitry Prokoptsev  <dprokoptsev@gmail.com>
826             Michael Hanselmann  <public@hansmi.ch>
828         PR libstdc++/62258
829         * libsupc++/eh_ptr.cc (rethrow_exception): Increment count of
830         uncaught exceptions.
831         * testsuite/18_support/exception_ptr/62258.cc: New.
833 2015-04-27  Jonathan Wakely  <jwakely@redhat.com>
835         * doc/xml/manual/extensions.xml: Add cross-reference.
836         * doc/html/manual/ext_compile_checks.html: Regenerate.
838 2015-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
840         * config/os/generic/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK): Define.
841         * configure.host (os_include_dir): Set to "os/generic" for linux-musl*.
843 2015-04-22  Renlin Li  <renlin.li@arm.com>
845         * testsuite/lib/dg-options.exp (dg-require-thread-fence): New.
846         * testsuite/lib/libstdc++.exp (check_v3_target_thread_fence): New.
847         * testsuite/29_atomics/atomic_flag/clear/1.cc: Use it.
848         * testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc: Likewise.
849         * testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc: Likewise.
851 2015-04-21  Jonathan Wakely  <jwakely@redhat.com>
853         * doc/xml/manual/configure.xml: Update descriptions of options
854         affecting dual ABI and add cross-references.
855         * doc/xml/manual/strings.xml: Clarify that string isn't COW now.
856         * doc/xml/manual/using.xml: Document ABI transition.
857         * doc/html/*: Regenerate.
859         * doc/xml/manual/abi.xml: Use uppercase for C++ Standard Library.
860         * doc/xml/manual/using.xml: Document newer -std options. Use better
861         examples of nested namespaces.
863 2015-04-20  Jonathan Wakely  <jwakely@redhat.com>
865         * doc/xml/manual/concurrency_extensions.xml: Update documentation
866         on atomics.
867         * doc/xml/manual/using.xml: Likewise. Improve markup.
868         * doc/html/*: Regenerate.
870 2015-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
872         * scripts/extract_symvers.pl: Ignore elfdump error output.
874 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
876         PR libstdc++/61347
877         * include/bits/stl_iterator_base_funcs.h (_List_iterator,
878         _List_const_iterator): Declare.
879         (__distance): Declare new overloads for _List_iterator and
880         _List_const_iterator.
881         * include/bits/stl_list.h (__distance): New overloads for
882         _List_iterator and _List_const_iterator.
883         * testsuite/23_containers/list/61347.cc: New testcase.
885 2015-04-14  Jonathan Wakely  <jwakely@redhat.com>
887         * doc/xml/manual/evolution.xml: Fix typos.
888         * doc/html/manual/api.html: Regenerate.
890 2015-04-14  Hans-Peter Nilsson  <hp@axis.com>
892         * testsuite/29_atomics/atomic/62259.cc: Assert atomic
893         alignment is larger-equal, not equal, to default alignment.
895 2015-04-13  Jonathan Wakely  <jwakely@redhat.com>
897         PR libstdc++/65754
898         * config/abi/pre/gnu.ver: Export base object constructors for
899         fstreams.
900         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
901         * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
902         * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
903         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
904         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
905         * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
906         * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
907         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
908         * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
909         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
910         * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
911         * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
912         * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
913         * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
914         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
915         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
916         * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
917         * testsuite/27_io/basic_fstream/cons/base.cc: New.
919 2015-04-13  Jonathan Wakely  <jwakely@redhat.com>
921         * doc/xml/manual/evolution.xml: Document changes since 4.5 release.
922         * doc/html/*: Regenerate.
924 2015-04-12  Uros Bizjak  <ubizjak@gmail.com>
926         * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
928 2015-04-10  Andreas Schwab  <schwab@linux-m68k.org>
930         * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
932         * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
934 2015-04-10  Jonathan Wakely  <jwakely@redhat.com>
936         * doc/xml/manual/test.xml: Improve documentation on running a subset
937         of tests.
938         * doc/html/manual/test.html: Regenerate.
940 2015-04-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
942         * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
943         for GCC 5.1 release.
944         * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
945         Likewise.
947 2015-04-10  Jonathan Wakely  <jwakely@redhat.com>
949         * include/std/shared_mutex (shared_timed_mutex): Add comments to
950         explain the logic in the non-pthread_rwlock_t version.
951         (_Mutex): Remove redundant type.
952         (_M_n_readers): Rename to _S_max_readers.
953         (_M_write_entered, _M_readers): New convenience functions.
954         (lock, lock_shared, try_lock_shared, unlock_shared): Use convenience
955         functions. Use predicates with condition variables. Simplify bitwise
956         operations.
957         (try_lock_for, try_shared_lock_for): Convert duration to time_point
958         and call try_lock_until or try_shared_lock_until respectively.
959         (try_lock_until, try_shared_lock_until): Wait on the condition
960         variables until the specified time passes.
961         (unlock): Add Debug Mode assertion.
962         (unlock_shared): Add Debug Mode assertion.
963         * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: New.
965         * include/std/shared_mutex (shared_timed_mutex): Only use
966         pthread_rwlock_t when the POSIX Timeouts option is supported.
967         * testsuite/30_threads/shared_lock/cons/5.cc: Remove
968         dg-require-gthreads-timed.
969         * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
970         * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
971         * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
973 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
975         * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
977 2015-04-09  Jonathan Wakely  <jwakely@redhat.com>
978             Richard Henderson  <rth@redhat.com>
980         PR libstdc++/65147
981         * include/bits/atomic_base.h (__atomic_base<_ITp>): Increase
982         alignment.
983         * include/std/atomic (atomic): For types with a power of two size set
984         alignment to at least the size.
985         * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
986         * testsuite/29_atomics/atomic/65147.cc: New.
987         * testsuite/29_atomics/atomic_integral/65147.cc: New.
989 2015-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
991         * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
992         * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
993         * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
995 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
997         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
998         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
999         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
1000         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
1001         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
1002         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
1003         * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
1004         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
1006 2015-03-30  Jonathan Wakely  <jwakely@redhat.com>
1008         PR libstdc++/65630
1009         * config/abi/pre/gnu.ver: Export operator+ for new strings.
1010         * testsuite/21_strings/basic_string/operators/char/65630.cc: New.
1011         * testsuite/21_strings/basic_string/operators/wchar_t/65630.cc: New.
1013 2015-03-28  Tim Shen  <timshen@google.com>
1015         PR libstdc++/65420
1016         * include/bits/regex_constants.h: Use constexpr variables for flags.
1017         * testsuite/28_regex/constants/constexpr.cc: New testcase.
1019 2015-03-27  Jonathan Wakely  <jwakely@redhat.com>
1021         PR libstdc++/65499
1022         * include/std/chrono: Add using-directive for literals to std::chrono.
1023         * testsuite/20_util/duration/literals/65499.cc: New.
1025 2015-03-26  Jonathan Wakely  <jwakely@redhat.com>
1027         PR libstdc++/58038
1028         PR libstdc++/60421
1029         * include/std/thread (this_thread::sleep_for): Check for negative
1030         durations.
1031         (this_thread::sleep_until): Check for times in the past.
1032         * testsuite/30_threads/this_thread/58038.cc: New.
1033         * testsuite/30_threads/this_thread/60421.cc: New.
1035 2015-03-26  Jonathan Wakely  <jwakely@redhat.com>
1037         PR libstdc++/62259
1038         PR libstdc++/65147
1039         * include/std/atomic (atomic<T>): Increase alignment for types with
1040         the same size as one of the integral types.
1041         * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
1042         * testsuite/29_atomics/atomic/62259.cc: New.
1044 2015-03-26  Richard Henderson  <rth@redhat.com>
1046         PR libstdc++/65033
1047         * include/bits/atomic_base.h (__atomic_base<T>::is_lock_free): Build
1048         a fake pointer indicating type alignment.
1049         (__atomic_base<T *>::is_lock_free): Likewise.
1050         * include/std/atomic (atomic<T>::is_lock_free): Likewise.
1052 2015-03-25  Alan Lawrence  <alan.lawrence@arm.com>
1054         PR libstdc++/33394
1055         * testsuite/21_strings/basic_string/pthread33394.cc: Use
1056         dg-additional-options.
1058 2015-03-25  Paolo Carlini  <paolo.carlini@oracle.com>
1060         PR libstdc++/65543
1061         * include/std/istream (operator>>(basic_istream<>&&, _Tp&): Revert
1062         thinko in r150387.
1063         * include/std/ostream (operator<<(basic_ostream<>&&, const _Tp&):
1064         Likewise.
1065         * testsuite/27_io/rvalue_streams-2.cc: New.
1067 2015-03-24  Jonathan Wakely  <jwakely@redhat.com>
1069         PR libstdc++/33394
1070         * testsuite/21_strings/basic_string/pthread33394.cc: Add test.
1072 2015-03-23  Jonathan Wakely  <jwakely@redhat.com>
1074         PR libstdc++/64967
1075         * acinclude.m4: Disable dual ABI when gnu-versioned-namespace in use.
1076         * configure: Regenerate.
1077         * src/c++11/compatibility-c++0x.cc (error_category), generic_category,
1078         system_category): Use macros for versioned namespace.
1079         * src/c++11/futex.cc: Add missing end macro for versioned namespace.
1081 2015-03-20  James Greenhalgh  <james.greenhalgh@arm.com>
1083         * testsuite/17_intro/headers/c++1998/all_attributes.cc: Disable
1084         test for unused for ARM.
1085         * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise.
1086         * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
1088 2015-03-20  Jonathan Wakely  <jwakely@redhat.com>
1090         * include/bits/c++config (__gnu_cxx::__cxx11): Define new namespace.
1091         * include/ext/codecvt_specializations.h (encoding_state,
1092         encoding_char_traits): Remove abi-tag and use inline namespace.
1093         * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line.
1095 2015-03-19  Jason Merrill  <jason@redhat.com>
1097         * config/locale/gnu/messages_members.cc: Revert abi-tag change.
1098         * src/c++11/cxx11-shim_facets.cc: Revert abi-tag change.
1100 2015-03-18  Jonathan Wakely  <jwakely@redhat.com>
1102         PR c++/65046
1103         * config/locale/gnu/messages_members.cc (Catalog_info, Catalogs,
1104         get_catalogs): Add abi-tag.
1105         * include/ext/codecvt_specializations.h (encoding_state,
1106         encoding_char_traits): Likewise.
1107         * src/c++11/cxx11-ios_failure.cc (io_error_category): Likewise.
1108         * src/c++11/cxx11-shim_facets.cc (__any_string::operator basic_string,
1109         numpunct_shim, collate_shim, time_get_shim, moneypunct_shim,
1110         money_get_shim, money_put_shim, messages_shim): Likewise.
1111         * src/c++11/future.cc (future_error_category::message): Likewise.
1112         * src/c++11/system_error.cc (generic_error_category::message,
1113         system_error_category::message): Likewise.
1114         (__sso_string): Disable -Wabi-tag warnings.
1116 2015-03-18  Jonathan Wakely  <jwakely@redhat.com>
1118         PR libstdc++/13631
1119         * config/locale/gnu/messages_members.cc (get_glibc_msg): Fix fallback
1120         implementation for old glibc. Fix whitespace.
1122 2015-03-18  Jonathan Wakely  <jwakely@redhat.com>
1123             Torvald Riegel  <triegel@redhat.com>
1125         * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
1126         * config.h.in: Regenerate.
1127         * configure: Regenerate.
1128         * include/std/shared_mutex: Check _GLIBCXX_USE_PTHREAD_RWLOCK_T.
1129         (shared_timed_mutex::_M_rwlock): Use PTHREAD_RWLOCK_INITIALIZER.
1130         (shared_timed_mutex::lock_shared()): Retry on EAGAIN.
1131         (shared_timed_mutex::try_lock_shared_until()): Retry on EAGAIN and
1132         EDEADLK.
1134 2015-03-17  Jonathan Wakely  <jwakely@redhat.com>
1136         * libsupc++/nested_exception.h: Do not try to derive from final
1137         classes.
1138         * testsuite/18_support/nested_exception/throw_with_nested.cc: Test
1139         final class.
1141         * testsuite/30_threads/shared_lock/modifiers/1.cc: Remove name of
1142         unused exception variable.
1143         * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
1144         * testsuite/30_threads/shared_lock/modifiers/2.cc: Remove duplicate
1145         test.
1146         * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
1148 2015-03-13  Jonathan Wakely  <jwakely@redhat.com>
1150         * acinclude.m4: Make --enable-libstdcxx-time=auto work for dragonfly.
1151         * configure: Regenerate.
1153         * include/experimental/system_error: Fix include guard.
1155 2015-03-12  Renlin Li  <renlin.li@arm.com>
1157         * testsuite/27_io/ios_base/sync_with_stdio/1.cc: Remove xfail for
1158         wrapped target.
1160 2015-03-10  Tim Shen  <timshen@google.com>
1162         PR libstdc++/64441
1163         * include/bits/regex.h (match_results<>::size,
1164         match_results<>::position, match_results<>::str,
1165         match_results<>::operator[], match_results<>::prefix,
1166         match_results<>::suffix, match_results<>::end,
1167         match_results<>::_M_resize, match_results<>::_M_unmatched_sub,
1168         match_results<>::_M_prefix, match_results<>::_M_suffix): Remove
1169         global __unmatched_sub. Add unmatched submatch as part of
1170         match_results.
1171         * include/bits/regex.tcc (__regex_algo_impl<>, regex_replace<>,
1172         regex_iterator<>::operator++): Adjust to use match_results::_M_prefix.
1173         * testsuite/28_regex/match_results/out_of_range_submatches.cc:
1174         New testcases.
1176 2015-03-09  Jonathan Wakely  <jwakely@redhat.com>
1178         PR libstdc++/64467
1179         * testsuite/28_regex/traits/char/isctype.cc: Don't test newline
1180         for newlib targets. Really fix mixed line-endings this time.
1182 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
1184         * include/std/future (future_error(error_code)): Construct base
1185         class with error_code's message.
1186         * src/c++11/future.cc (future_error::what()): Do not call c_str() on
1187         temporary string.
1189 2015-03-05  Jonathan Wakely  <jwakely@redhat.com>
1191         * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
1192         noconv result.
1193         * testsuite/22_locale/conversions/string/2.cc: Also test UTF-8.
1194         * testsuite/22_locale/conversions/string/3.cc: Likewise, and UTF-16.
1196 2015-03-04  Jonathan Wakely  <jwakely@redhat.com>
1198         PR libstdc++/64797
1199         * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
1200         incomplete multibyte sequences correctly.
1201         * include/std/codecvt (codecvt_utf8, codecvt_utf16,
1202         codecvt_utf8_utf16): Limit _Maxcode to maximum Unicode code point.
1203         * src/c++11/codecvt.cc (invalid_mb_sequence, incomplete_mb_character):
1204         Define constants.
1205         (is_high_surrogate, is_low_surrogate, surrogate_pair_to_code_point):
1206         Define convenience functions.
1207         (read_utf8_code_point): Return relevant constant to distinguish
1208         incomplete characters from invalid sequences.
1209         (read_utf16_code_point): Likewise. Check for invalid sequences.
1210         (ucs4_in, utf16_in): Use incomplete_mb_character constant.
1211         (utf16_out): Check for invalid sequences.
1212         (utf16_span): Fix condition.
1213         (ucs2_out): Use is_high_surrogate.
1214         (ucs2_in): Use incomplete_mb_character constant and fix condition.
1215         * testsuite/22_locale/codecvt/char16_t.cc: Fix whitespace.
1216         * testsuite/22_locale/conversions/buffer/1.cc: New.
1217         * testsuite/22_locale/conversions/string/2.cc: Use char16_t and
1218         char32_t instead of wchar_t.
1219         * testsuite/22_locale/conversions/string/3.cc: New.
1221 2015-03-03  Iain Sandoe  <iain@codesourcery.com>
1223         PR libstdc++/64883
1224         * testsuite/17_intro/headers/c++1998/all_attributes.cc: Don't check
1225         visibility for Darwin.
1226         * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise, and
1227         also deprecated.
1228         * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
1230 2015-03-02  Jonathan Wakely  <jwakely@redhat.com>
1232         PR libstdc++/65279
1233         * include/std/scoped_allocator (__inner_type_impl,
1234         scoped_allocator_adaptor): Add defaulted copy assignment and move
1235         assignment operators.
1236         * testsuite/20_util/scoped_allocator/65279.cc: New.
1238 2015-03-02  Jonathan Wakely  <jwakely@redhat.com>
1240         PR libstdc++/64367
1241         * include/std/stdexcept (__sso_string): Don't use non-static member
1242         in sizeof.
1244 2015-02-28  Matthias Klose  <doko@ubuntu.com>
1246         PR libstdc++/65246
1247         * python/libstdcxx/v6/__init__.py: Use explicit relative imports.
1249 2015-02-22  Jonathan Wakely  <jwakely@redhat.com>
1251         * doc/xml/manual/status_cxx2011.xml: Remove duplicated information.
1252         * doc/html/manual/status.html: Regenerate.
1254 2015-02-20  Jonathan Wakely  <jwakely@redhat.com>
1256         PR libstdc++/64695
1257         * python/libstdcxx/v6/printers.py (StdTuplePrinter): Handle new
1258         tuple layout.
1260         * doc/xml/manual/status_cxx2011.xml: Document implementation-defined
1261         behavior.
1262         * doc/html/manual/status.html: Regenerate.
1264 2015-02-19  Jonathan Wakely  <jwakely@redhat.com>
1266         PR libstdc++/58357
1267         * include/bits/algorithmfwd.h (rotate): Move to inline namespace _V2.
1268         * include/bits/stl_algo.h (__rotate, rotate): Likewise.
1270 2015-02-19  Hans-Peter Nilsson  <hp@axis.com>
1272         PR testsuite/65093
1273         * testsuite/26_numerics/random/binomial_distribution/operators/values.cc
1274         (test01): Add explanatory comment.  Keep only the bd1 sub-test and
1275         split out bd2, bd3, bd4, and bd5 sub-tests into...
1276         * testsuite/26_numerics/random/binomial_distribution/operators/values2.cc,
1277         testsuite/26_numerics/random/binomial_distribution/operators/values3.cc,
1278         testsuite/26_numerics/random/binomial_distribution/operators/values4.cc,
1279         testsuite/26_numerics/random/binomial_distribution/operators/values5.cc:
1280         New separate files with the old parts.
1282 2015-02-18  Jonathan Wakely  <jwakely@redhat.com>
1284         * src/c++11/codecvt.cc (write_utf16_code_point): Fix code to output
1285         surrogate pairs.
1286         (utf16_in): Pass mode argument to write_utf16_code_point.
1287         (codecvt<char16_t, char, mbstate_t>::do_in): Set mode according to
1288         native byte order.
1289         * testsuite/22_locale/codecvt/char16_t.cc: New.
1290         * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Fix typo.
1292         * testsuite/22_locale/codecvt/char16_t.cc: Add dg-require-cstdint.
1293         * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
1295 2015-02-17  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>
1296             Jonathan Wakely  <jwakely@redhat.com>
1298         * testsuite/22_locale/codecvt/char32_t.cc: New.
1300 2015-02-17  Jonathan Wakely  <jwakely@redhat.com>
1302         PR libstdc++/65085
1303         * include/bits/basic_string.h (basic_string(basic_string&&)): Ensure
1304         empty string gets null-terminated.
1305         * testsuite/21_strings/basic_string/cons/char/65085.cc: New.
1307 2015-02-13  Matthew Wahab  <matthew.wahab@arm.com>
1309         * testsuite/28_regex/traits/char/isctype.cc (test01): Fix
1310         mixed line-endings introduced in last change.
1312 2015-02-12  Matthew Wahab  <matthew.wahab@arm.com>
1314         * testsuite/28_regex/traits/char/isctype.cc (test01): Replace test
1315         for __NEWLIB__ macro with a dejagnu set macro.
1316         * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
1318 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
1320         PR libstdc++/64467
1321         * testsuite/28_regex/traits/char/isctype.cc (test01):   Add newlib
1322         special case for '\n'.
1323         * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
1325 2015-02-01  Jonathan Wakely  <jwakely@redhat.com>
1327         * src/c++11/futex.cc: Do not define for gthr-single.h targets.
1329 2015-02-01  Jonathan Wakely  <jwakely@redhat.com>
1331         PR libstdc++/64883
1332         * include/c_global/cstdio (gets): Use __deprecated__ attribute instead
1333         of deprecated.
1334         * include/c_std/cstdio (gets): Likewise.
1335         * testsuite/17_intro/headers/c++1998/all_attributes.cc: Avoid clashing
1336         with attributes used in darwin headers.
1338 2015-01-29  Jakub Jelinek  <jakub@redhat.com>
1340         * acinclude.m4 (VTV_CYGMIN): Use x$vtv_cygmin = xyes instead of
1341         $vtv_cygmin = yes.  Initialize vtv_cygmin=no unconditionally first.
1342         * configure: Regenerated.
1344 2015-01-29  H.J. Lu  <hongjiu.lu@intel.com>
1346         * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
1347         after vtv_cygmin is set.
1348         * configure: Regenerated.
1350 2015-01-29  Matthias Klose  <doko@ubuntu.com>
1352         * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
1353         unconditionally.
1354         * configure: Regenerate.
1356 2015-01-29  Caroline Tice  <cmtice@google.com>
1358         Committing VTV Cywin/Ming patch for Patrick Wollgast
1359         * configure: Regenerate.
1360         * libsupc++/Makefile.in: Regenerate.
1361         * src/Makefile.in: Regenerate.
1363 2015-01-29  Jonathan Wakely  <jwakely@redhat.com>
1365         * include/bits/atomic_base.h: Use __always_inline__ instead of
1366         always_inline.
1367         * include/bits/atomic_futex.h: Likewise.
1368         * include/bits/c++config: Use __abi_tag__ instead of abi_tag.
1369         * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: Use
1370         __packed__ instead of packed.
1371         * include/std/shared_mutex: Use __unused__ instead of unused.
1372         * testsuite/17_intro/headers/c++1998/all_attributes.cc: New.
1373         * testsuite/17_intro/headers/c++200x/all_attributes.cc: New.
1374         * testsuite/17_intro/headers/c++2014/all_attributes.cc: New.
1376 2015-01-28  Caroline Tice  <cmtice@google.com>
1378         Committing VTV Cywin/Ming patch for Patrick Wollgast
1379         * acinclude.m4: Define VTV_CYGMIN.
1380         * libsupc++/Makefile.am: Add vtv_sources only to libsupc___la_SOURCES
1381         and libsupc__convenience_la_SOURCES if VTV_CYGMIN is not set.
1382         * libsupc++/vtv_stubs.cc: Add none weak declaration of every function
1383         for Cygwin and MinGW.
1384         * src/Makefile.am: Add libvtv.la to toolexeclib_LTLIBRARIES, if
1385         VTV_CYGMIN is set. Define libvtv_la_SOURCES, libvtv_la_LDFLAGS,
1386         libvtv_la_AM_CXXFLAGS and libvtv_la_LINK if VTV_CYGMIN is set.
1388 2015-01-28  Jonathan Wakely  <jwakely@redhat.com>
1390         PR libstdc++/64828
1391         * libsupc++/Makefile.am: Compile del_opvs.cc as C++14.
1392         * libsupc++/Makefile.in: Regenerate.
1393         * src/c++11/Makefile.in: Regenerate.
1395 2015-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1397         * testsuite/lib/libstdc++.exp (v3_target_compile): Remove
1398         check for unsupported.
1399         (v3_target_compile_as_c): Likewise.
1401 2015-01-28  Richard Biener  <rguenther@suse.de>
1403         PR libstdc++/64798
1404         * libsupc++/eh_alloc.cc (struct allocated_entry): Align
1405         data member.
1406         (pool::allocate): Adjust allocation size and alignment to
1407         that change.
1408         (pool::free): Adjust pointer offsetting.
1410 2015-01-27  Jonathan Wakely  <jwakely@redhat.com>
1412         PR libstdc++/64368
1413         * include/std/shared_mutex (shared_timed_mutex::try_lock_for,
1414         shared_timed_mutex::try_lock_until): Only define when POSIX thread
1415         timeouts option is supported.
1416         (shared_timed_mutex::try_shared_lock_for,
1417         shared_timed_mutex::try_shared_lock_until): Likewise.
1419 2015-01-26  Jonathan Wakely  <jwakely@redhat.com>
1421         PR libstdc++/64368
1422         * config/locale/gnu/numeric_members.cc (numpunct<char>::~numpunct(),
1423         numpunct<wchar_t>::~numpunct()): Do not set _M_data->_M_grouping.
1424         * src/c++11/cxx11-shim_facets.cc (numpunct_shim): Remove _M_grouping
1425         and use cache's _M_grouping field.
1426         (__numpunct_fill_cache): Likewise.
1427         (__moneypunct_fill_cache): Improve comments.
1429 2015-01-26  Jonathan Wakely  <jwakely@redhat.com>
1431         * testsuite/23_containers/set/operations/2.cc: Add test for
1432         non-transparent comparison function.
1434 2015-01-25  Oleg Endo  <olegendo@gcc.gnu.org>
1436         PR target/29366
1437         * config/cpu/sh/atomicity.h (__exchange_and_add, __atomic_add): 
1438         Remove SH4A inline asm and lock based implementations and use the
1439         defaults from ext/atomicity.h.
1441 2015-01-23  Jonathan Wakely  <jwakely@redhat.com>
1443         * config/abi/pre/gnu.ver: Tighten GLIBCXX_3.4 patterns to not match
1444         new std::string constructors for byname facets.
1446 2015-01-22  Richard Biener  <rguenther@suse.de>
1448         PR libstdc++/64535
1449         * libsupc++/eh_alloc.cc: Include new.
1450         (bitmask_type): Remove.
1451         (one_buffer): Likewise.
1452         (emergency_buffer): Likewise.
1453         (emergency_used): Likewise.
1454         (dependents_buffer): Likewise.
1455         (dependents_used): Likewise.
1456         (class pool): New custom fixed-size arena, variable size object
1457         allocator.
1458         (emergency_pool): New global.
1459         (__cxxabiv1::__cxa_allocate_exception): Use new emergency_pool.
1460         (__cxxabiv1::__cxa_free_exception): Likewise.
1461         (__cxxabiv1::__cxa_allocate_dependent_exception): Likewise.
1462         (__cxxabiv1::__cxa_free_dependent_exception): Likewise.
1464 2015-01-22  Tim Shen  <timshen@google.com>
1466         PR libstdc++/64680
1467         * include/bits/regex.h (basic_regex<>::basic_regex,
1468         basic_regex<>::operator=, basic_regex<>::imbue): Conform to the
1469         standard interface.
1470         * testsuite/28_regex/basic_regex/assign/char/cstring.cc: New testcase.
1472 2015-01-22  Tim Shen  <timshen@google.com>
1474         PR libstdc++/64649
1475         * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
1476         regex_traits<>::lookup_classname): Correctly narrow input chars.
1477         * testsuite/28_regex/traits/wchar_t/user_defined.cc: New testcase.
1479 2015-01-21  Jonathan Wakely  <jwakely@redhat.com>
1481         * config/abi/pre/gnu.ver: Use [jmy] for size_t parameters.
1483 2015-01-21  Jonathan Wakely  <jwakely@redhat.com>
1485         * testsuite/29_atomics/atomic/64658.cc: Test stored value.
1487 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
1489         * doc/xml/manual/status_cxx2011.xml: Remove stray dbhtml tags.
1490         * doc/xml/manual/status_cxx2014.xml: Update status.
1491         * doc/html/manual/status.html: Regenerate.
1493 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
1495         PR libstdc++/64650
1496         * include/experimental/optional (bad_optional_access): Add default
1497         constructor.
1498         * testsuite/experimental/optional/requirements.cc: Test for default
1499         constructor.
1501 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
1503         * include/bits/stl_map.h (map::find<>, map::count<>,
1504         map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
1505         member function templates to perform heterogeneous lookup.
1506         * include/bits/stl_multimap.h (multimap::find<>, multimap::count<>,
1507         multimap::lower_bound<>, multimap::upper_bound<>,
1508         multimap::equal_range<>): Likewise.
1509         * include/bits/stl_multiset.h (multiset::find<>, multiset::count<>,
1510         multiset::lower_bound<>, multiset::upper_bound<>,
1511         multiset::equal_range<>): Likewise.
1512         * include/bits/stl_set.h (set::find<>, set::count<>,
1513         set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
1514         * include/bits/stl_tree.h (_Rb_tree::_S_lower_bound_tr,
1515         _Rb_tree::_S_upper_bound_tr, _Rb_tree::_M_find_tr,
1516         _Rb_tree::_M_count_tr, _Rb_tree::_M_lower_bound_tr,
1517         _Rb_tree::_M_upper_bound_tr, _Rb_tree::_M_equal_range_tr): Likewise.
1518         * testsuite/23_containers/map/operations/2.cc: New.
1519         * testsuite/23_containers/multimap/operations/2.cc: New.
1520         * testsuite/23_containers/multiset/operations/2.cc: New.
1521         * testsuite/23_containers/set/operations/2.cc: New.
1523 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
1525         * config/abi/pre/gnu.ver: Export new constructors.
1526         * include/bits/codecvt.h (codecvt_byname): Add string constructor.
1527         (codecvt_byname<char16_t>, codecvt_byname<char32_t>): Define explicit
1528         specializations and declare explicit instantiations.
1529         * include/bits/locale_classes.h (locale, collate_byname): Add string
1530         constructors.
1531         * include/bits/locale_facets.h (ctype_byname, numpunct_byname):
1532         Likewise.
1533         * include/bits/locale_facets_nonio.h (time_get_byname,
1534         time_put_byname, moneypunct_byname, messages_byname): Likewise.
1535         * src/c++11/codecvt.cc (codecvt_byname<char16_t>,
1536         codecvt_byname<char32_t>): Define explicit instantiations.
1537         * src/c++11/locale-inst.cc (time_put_byname, codecvt_byname):
1538         Instantiate string constructors.
1539         (ctype_byname): Define string constructor.
1540         * testsuite/22_locale/codecvt_byname/1.cc: New.
1541         * testsuite/22_locale/collate_byname/1.cc: New.
1542         * testsuite/22_locale/ctype_byname/2.cc: New.
1543         * testsuite/22_locale/messages_byname/1.cc: New.
1544         * testsuite/22_locale/moneypunct_byname/1.cc: New.
1545         * testsuite/22_locale/numpunct_byname/1.cc: New.
1547 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
1549         PR libstdc++/64658
1550         * include/std/atomic (atomic_init): Define.
1551         * testsuite/29_atomics/atomic/64658.cc: New.
1553 2015-01-19  Tim Shen  <timshen@google.com>
1555         PR libstdc++/64649
1556         * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
1557         regex_traits<>::lookup_classname): Support forward iterators.
1558         * testsuite/28_regex/traits/char/lookup_classname.cc: New testcases.
1559         * testsuite/28_regex/traits/char/lookup_collatename.cc: New testcase.
1561 2015-01-19  Tim Shen  <timshen@google.com>
1563         PR libstdc++/64584
1564         PR libstdc++/64585
1565         * include/bits/regex.h (basic_regex<>::basic_regex,
1566         basic_regex<>::assign, basic_regex<>::imbue,
1567         basic_regex<>::swap, basic_regex<>::mark_count): Drop NFA after
1568         imbuing basic_regex; Make assign() transactional against exception.
1569         * include/bits/regex_compiler.h (__compile_nfa<>): Add back
1570         __compile_nfa SFINAE.
1571         * include/std/regex: Adjust include order to avoid __compile_nfa
1572         forward declaration.
1573         * testsuite/28_regex/basic_regex/assign/char/string.cc: New testcase.
1574         * testsuite/28_regex/basic_regex/imbue/string.cc: New testcase.
1576 2015-01-19  Ville Voutilainen  <ville.voutilainen@gmail.com>
1577             Jonathan Wakely  <jwakely@redhat.com>
1579         * include/bits/range_access.h (begin, end): Use _GLIBCXX14_CONSTEXPR
1580         on overloads for arrays.
1581         (cbegin, cend, rbegin, rend, crbegin, crend): New.
1582         * testsuite/24_iterators/range_access_cpp14.cc: New.
1584 2015-01-18  Jonathan Wakely  <jwakely@redhat.com>
1586         PR libstdc++/64646
1587         * include/bits/stl_algo.h (__is_permutation): Also test for reaching
1588         end of the second range.
1589         * testsuite/25_algorithms/is_permutation/64646.cc: New.
1591 2015-01-18  Jonathan Wakely  <jwakely@redhat.com>
1593         * doc/xml/manual/status_cxx2011.xml: Remove note about offsetof.
1594         * doc/html/manual/status.html: Regenerate.
1596 2015-01-18  Jonathan Wakely  <jwakely@redhat.com>
1598         * include/bits/atomic_futex.h: Use mutex and condition_variable when
1599         atomic int is not lock-free. Make member variables private.
1600         * src/c++11/futex.cc: Likewise.
1602         * src/c++11/futex.cc: Fix order of includes and preprocessor condition.
1604 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
1606         PR libstdc++/64638
1607         * include/bits/atomic_futex.h: Use appropriate config macros for
1608         availability of std::mutex, std::condition and std::chrono.
1610 2015-01-17  Ville Voutilainen  <ville.voutilainen@gmail.com>
1611             Jonathan Wakely  <jwakely@redhat.com>
1613         * doc/xml/manual/status_cxx2011.xml: Update C++11 status.
1614         * doc/html/*: Regenerate.
1616 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
1618         DR 488
1619         PR libstdc++/58357
1620         * include/bits/algorithmfwd.h (rotate): Return an iterator.
1621         * include/bits/stl_algo.h (rotate, __rotate): Likewise.
1622         * testsuite/25_algorithms/rotate/dr488.cc: New.
1623         * testsuite/25_algorithms/rotate/check_type.cc: Adjust function type.
1624         * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
1625         2.cc: Likewise.
1626         * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
1627         pod.cc: Likewise.
1629 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
1631         PR libstdc++/60940
1632         * include/bits/atomic_base.h: Remove atomic integral typedefs as
1633         synonyms for __atomic_base<int> etc.
1634         * include/std/atomic: Make atomic_int a synonym for atomic<int> and
1635         likewise for all atomic integral types.
1636         * testsuite/29_atomics/atomic_integral/cons/copy_list.cc: New.
1637         * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
1639 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
1641         PR libstdc++/56785
1642         * include/std/tuple (_Tuple_impl): Remove zero-element specialization
1643         and define one-element specialization.
1644         * testsuite/20_util/tuple/56785.cc: New.
1646 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
1648         * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc:
1649         Remove unused header.
1650         * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc:
1651         Likewise.
1652         * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
1653         Likewise.
1655 2015-01-16  Jonathan Wakely  <jwakely@redhat.com>
1657         * include/bits/locale_conv.h (wstring_convert, wbuffer_convert): New.
1658         * include/std/locale: Include new header.
1659         * include/Makefile.am: Add it.
1660         * include/Makefile.in: Regenerate.
1661         * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc: New.
1662         * testsuite/22_locale/conversions/string/1.cc: New.
1663         * testsuite/22_locale/conversions/string/2.cc: New.
1664         * testsuite/22_locale/conversions/string/requirements/typedefs.cc: New.
1665         * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
1666         New.
1668 2015-01-16  Jonathan Wakely  <jwakely@redhat.com>
1670         * config/abi/pre/gnu.ver: Export new symbols.
1671         * include/Makefile.am: Add codecvt.
1672         * include/Makefile.in: Regenerate.
1673         * include/std/codecvt: New header.
1674         * src/c++11/codecvt.cc (__codecvt_utf8_base, __codecvt_utf16_base,
1675         __codecvt_utf8_utf16_base): Define specializations.
1676         * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc: New.
1677         * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc: New.
1678         * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
1679         New.
1681 2015-01-16  Torvald Riegel  <triegel@redhat.com>
1683         * src/c++11/futex.cc: New file.
1684         * include/bits/atomic_futex.h: New file.
1685         * include/std/future (__future_base::_State_baseV2): Use
1686         atomic_futex_unsigned instead of mutex+condvar.
1687         * src/c++11/futex.cc: Likewise.
1688         * include/Makefile.am: Add atomic_futex.h.
1689         * include/Makefile.in: Likewise.
1690         * src/c++11/Makefile.am: Add futex.cc.
1691         * src/c++11/Makefile.in: Likewise.
1693 2015-01-16  Jonathan Wakely  <jwakely@redhat.com>
1695         * acinclude.m4: Fix typo in comment.
1696         * configure: Regenerate.
1697         * include/bits/codecvt.h (codecvt<char16_t, char, mbstate_t>,
1698         codecvt<char16_t, char, mbstate_t>): Declare specializations.
1699         * include/bits/locale_facets.h: Reserve space for new specializations.
1700         * src/c++11/Makefile.am: Add codecvt.cc.
1701         * src/c++11/Makefile.in: Regenerate.
1702         * src/c++11/codecvt.cc: New.
1703         * src/c++98/Makefile.am: Compile locale_init.cc and localename.cc
1704         with -std=gnu++11.
1705         * src/c++98/Makefile.in: Regenerate.
1706         * src/c++98/locale_init.cc: Initialize new codecvt specializations.
1707         * src/c++98/localename.cc: Likewise.
1708         * config/abi/pre/gnu.ver: Exports for new codecvt specializations.
1709         * testsuite/22_locale/codecvt/utf8.cc: New.
1710         * testsuite/22_locale/locale/cons/unicode.cc: Check that new
1711         specializations are installed in locale objects.
1713 2015-01-16  Torvald Riegel  <triegel@redhat.com>
1715         * include/std/shared_mutex (shared_timed_mutex): Add POSIX-based
1716         implementation.
1718 2015-01-13  Jonathan Wakely  <jwakely@redhat.com>
1720         PR libstdc++/64571
1721         * config/abi/pre/gnu.ver: Export fstream functions using new string.
1723 2015-01-12  Jonathan Wakely  <jwakely@redhat.com>
1725         PR libstdc++/64560
1726         * src/c++11/cxx11-shim_facets.cc (locale::facet::_M_sso_shim): Check
1727         for RTTI support.
1729         PR libstdc++/64553
1730         * src/c++11/cxx11-shim_facets.cc: Check for wchar_t support.
1732 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
1734         * doc/xml/manual/parallel_mode.xml: Update for libgomp being
1735         renamed from "GNU OpenMP Runtime Library" to "GNU Offloading and
1736         Multi Processing Runtime Library".
1738 2015-01-09  Jonathan Wakely  <jwakely@redhat.com>
1740         PR libstdc++/64476
1741         * include/bits/stl_uninitialized.h (uninitialized_copy): Fix
1742         is_assignable arguments.
1743         * testsuite/20_util/specialized_algorithms/uninitialized_copy/64476.cc:
1744         New.
1746 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
1748         * libsupc++/unwind-cxx.h: Revert previous commit.
1750 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
1752         * configure.host: Add arm*-*-freebsd* port_specific_symbol_files.
1754 2015-01-09  Tim Shen  <timshen@google.com>
1756         PR libstdc++/64239
1757         * include/bits/regex.h (match_results<>::swap): Use std::swap
1758         instead of swap.
1759         * include/bits/regex_compiler.tcc (_Compiler<>::_M_quantifier):
1760         Likewise.
1761         * testsuite/28_regex/match_results/swap.cc: New testcase.
1763 2015-01-08  Jonathan Wakely  <jwakely@redhat.com>
1765         PR libstdc++/60132
1766         * include/std/type_traits (has_trivial_default_constructor,
1767         has_trivial_copy_constructor, has_trivial_copy_assign): Add deprecated
1768         attribute.
1769         * testsuite/20_util/has_trivial_copy_assign/requirements/
1770         explicit_instantiation.cc: Use -Wno-deprecated.
1771         * testsuite/20_util/has_trivial_copy_assign/requirements/typedefs.cc:
1772         Likewise.
1773         * testsuite/20_util/has_trivial_copy_assign/value.cc: Likewise.
1774         * testsuite/20_util/has_trivial_copy_constructor/requirements/
1775         explicit_instantiation.cc: Likewise.
1776         * testsuite/20_util/has_trivial_copy_constructor/requirements/
1777         typedefs.cc: Likewise.
1778         * testsuite/20_util/has_trivial_copy_constructor/value.cc: Likewise.
1779         * testsuite/20_util/has_trivial_default_constructor/requirements/
1780         explicit_instantiation.c: Likewise.
1781         * testsuite/20_util/has_trivial_default_constructor/requirements/
1782         typedefs.cc: Likewise.
1783         * testsuite/20_util/has_trivial_default_constructor/value.cc:
1784         Likewise.
1785         * testsuite/20_util/pair/requirements/dr801.cc: Replace deprecated
1786         trait.
1787         * testsuite/20_util/tuple/requirements/dr801.cc: Likewise.
1788         * testsuite/util/testsuite_common_types.h: Likewise.
1790 2015-01-08  Jonathan Wakely  <jwakely@redhat.com>
1792         * include/bits/hashtable_policy.h: Use __bool_constant.
1794 2015-01-07  Jonathan Wakely  <jwakely@redhat.com>
1796         * libsupc++/Makefile.am: Compile del_ops.cc as C++14.
1797         * libsupc++/Makefile.in: Regenerate.
1799 2015-01-06  Jonathan Wakely  <jwakely@redhat.com>
1801         * config/abi/pre/gnu.ver: Fix version conflict for std::locale::name().
1803 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
1805         Update copyright years.
1807 2015-01-04  Jonathan Wakely  <jwakely@redhat.com>
1809         PR libstdc++/64483
1810         * testsuite/18_support/exception_ptr/64241.cc: Use
1811         dg-require-atomic-builtins.
1813 2015-01-02  Jonathan Wakely  <jwakely@redhat.com>
1815         * testsuite/21_strings/basic_string/modifiers/64422.cc: Fix copyright
1816         date.
1818 2015-01-02  Tim Shen  <timshen@google.com>
1820         PR libstdc++/64475
1821         * include/bits/regex_executor.tcc (_Executor<>::_M_dfs): Copy the
1822         iterator, since the original one shouldn't be mutated.
1824 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1826         PR libstdc++/64422
1827         * src/c++98/misc-inst.cc (string::erase): Add missing overloads.
1828         (string::insert): Likewise.
1829         (string::replace): Likewise.
1830         (wstring::erase): Likewise.
1831         (wstring::insert): Likewise.
1832         (wstring::replace): Likewise.
1833         * testsuite/21_strings/basic_string/modifiers/64422.cc: New testcase.
1835 2015-01-02  Jonathan Wakely  <jwakely@redhat.com>
1837         PR libstdc++/64468
1838         * doc/doxygen/user.cfg.in: Set correct TAB_SIZE.
1840 2015-01-02  Jonathan Wakely  <jwakely@redhat.com>
1842         PR libstdc++/64438
1843         * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
1844         Revert removal of dg-require-string-conversions.
1845         * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
1846         Likewise.
1847         * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
1848         Likewise.
1849         * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
1850         Likewise.
1851         * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
1852         Likewise.
1853         * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
1854         Likewise.
1855         * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
1856         Likewise.
1857         * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
1858         Likewise.
1859         * testsuite/21_strings/basic_string/numeric_conversions/char/
1860         stoull.cc: Likewise.
1861         * testsuite/21_strings/basic_string/numeric_conversions/char/
1862         to_string.cc: Likewise.
1864 Copyright (C) 2015 Free Software Foundation, Inc.
1866 Copying and distribution of this file, with or without modification,
1867 are permitted in any medium without royalty provided the copyright
1868 notice and this notice are preserved.