ix86_expand_call: convert return type to rtx_insn *
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob680cb640b2612db9d9f9e78f5f3f69e22f814ca9
1 2018-06-06  Jonathan Wakely  <jwakely@redhat.com>
3         PR libstdc++/86008
4         * include/bits/quoted_string.h (_Quoted_string<basic_string_view, C>):
5         Define new partial specialization.
6         * include/std/iomanip (quoted(basic_string_view<C,T>, C, C)): Define
7         new overload.
8         (operator<<(basic_ostream<C,T>&, const _Quoted_string<S,C>&)): Use
9         value not reference for iteration.
10         * testsuite/27_io/manipulators/standard/char/quoted.cc: Adjust
11         comment.
12         * testsuite/27_io/manipulators/standard/char/quoted_sv.cc: New test.
13         * testsuite/27_io/manipulators/standard/wchar_t/quoted.cc: Adjust
14         comment.
16 2018-06-05  Jonathan Wakely  <jwakely@redhat.com>
18         * include/std/type_traits: Fix comment typos.
20         * testsuite/27_io/filesystem/operations/read_symlink.cc: XFAIL for
21         mingw* targets.
22         * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
23         * testsuite/experimental/filesystem/operations/read_symlink.cc:
24         Likewise.
26 2018-06-05  François Dumont  <fdumont@gcc.gnu.org>
28         * include/bits/stl_tempbuf.h
29         (_Temporary_buffer(_FwdIte, _FwdIte)): Delete, replaced by...
30         (_Temporary_buffer(_FwdIte, size_type)): ...this, new.
31         * include/ext/memory (temporary_buffer<>(_FwdIte, _FwdIte)): Adapt.
32         * include/bits/stl_algo.h (__stable_partition): Adapt.
33         (__inplace_merge): Adapt.
34         (__stable_sort): Adapt.
36 2018-06-04  Jonathan Wakely  <jwakely@redhat.com>
38         PR libstdc++/85930
39         * include/bits/shared_ptr_base.h [!__cpp_rtti]: Include <typeinfo>
40         unconditionally. Remove redundant declaration.
41         [!__cpp_rtti] (_Sp_make_shared_tag::_S_ti): Fix location of
42         alignment-specifier.
44         * include/bits/postypes.h (fpos): Define special members as defaulted.
46         PR libstdc++/85930
47         * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Align
48         the static variable correctly.
50 2018-05-24  Jonathan Wakely  <jwakely@redhat.com>
52         PR libstdc++/78870 support std::filesystem on Windows
53         * config.h.in: Regenerate.
54         * configure: Regenerate.
55         * configure.ac: Check for link, readlink and symlink.
56         * include/bits/fs_path.h (path::operator/=(const path&)): Move
57         definition out of class body.
58         (path::is_absolute(), path::_M_append(path)): Likewise.
59         (operator<<(basic_ostream, const path&)): Use std::quoted directly.
60         (operator>>(basic_istream, path&)): Likewise.
61         (u8path): Reorder definitions and fix Windows implementation.
62         (path::is_absolute()): Define inline and fix for Windows.
63         [!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
64         Define POSIX version inline.
65         (path::_M_append(path)): Define inline.
66         * include/experimental/bits/fs_path.h (path::is_absolute()): Move
67         definition out of class body.
68         (operator<<(basic_ostream, const path&)): Fix type of delimiter and
69         escape characters.
70         (operator>>(basic_istream, path&)): Likewise.
71         (path::is_absolute()): Define inline and fix for Windows.
72         * src/filesystem/dir-common.h (__gnu_posix): New namespace.
73         (__gnu_posix::char_type, __gnu_posix::DIR, __gnu_posix::dirent)
74         (__gnu_posix::opendir, __gnu_posix::readdir, __gnu_posix::closedir):
75         Define as adaptors for Windows functions/types or as
76         using-declarations for POSIX functions/types.
77         (_Dir_base, get_file_type): Qualify names to use declarations from
78         __gnu_posix namespace.
79         (_Dir_base::is_dor_or_dotdot): New helper functions.
80         * src/filesystem/dir.cc (_Dir, recursive_directory_iterator): Qualify
81         names to use declarations from __gnu_posix namespace.
82         * src/filesystem/ops-common.h (__gnu_posix): New nested namespace.
83         (__gnu_posix::open, __gnu_posix::close, __gnu_posix::stat_type)
84         (__gnu_posix::stat, __gnu_posix::lstat, __gnu_posix::mode_t)
85         (__gnu_posix::chmod, __gnu_posix::mkdir, __gnu_posix::getcwd)
86         (__gnu_posix::chdir, __gnu_posix::utimbuf, __gnu_posix::utime)
87         (__gnu_posix::rename, __gnu_posix::truncate, __gnu_posix::char_type):
88         Define as adaptors for Windows functions/types or as
89         using-declarations for POSIX functions/types.
90         (stat_type, do_copy_file): Qualify names to use declarations from
91         __gnu_posix namespace.
92         (do_space): Declare new function.
93         (make_file_type): Only use S_ISLNK if defined.
94         * src/filesystem/ops.cc (char_ptr, filesystem::canonical): Use
95         path::value_type not char.
96         (filesystem::copy, create_dir, filesystem::create_directory): Qualify
97         names to use declarations from __gnu_posix namespace.
98         (filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
99         add implementation for Windows.
100         (filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
101         (filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
102         [!_PC_PATH_MAX]: Don't use pathconf.
103         [PATH_MAX]: Use if defined.
104         (filesystem::current_path(const path&, error_code&))
105         (filesystem::equivalent, do_stat, filesystem::hard_link_count)
106         (filesystem::last_write_time, filesystem::permissions): Use names
107         from __gnu_posix.
108         (filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
109         (filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
110         implementation for Windows.
111         (filesystem::rename, filesystem::resize_file): Use names from
112         __gnu_posix.
113         (filesystem::space): Use do_space.
114         [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Get absolute path to directory.
115         (filesystem::status, filesystem::symlink_status): Use names from
116         __gnu_posix.
117         (filesystem::temp_directory_path): Add implementation for Windows.
118         * src/filesystem/path.cc (dot): Define constant.
119         (path::replace_extension): Use dot.
120         (path::_M_find_extension): Likewise. Use path::string_type not
121         std::string.
122         (path::_M_split_cmpts): Use dot.
123         (filesystem_error::_M_get_what): Use u8string() not native().
124         * src/filesystem/std-dir.cc (_Dir, recursive_directory_iterator):
125         Qualify names to use declarations from __gnu_posix namespace.
126         * src/filesystem/std-ops.cc (filesystem::absolute(const path&)): Use
127         correct error_code.
128         (filesystem::absolute(const path&, error_code&)): Add implementation
129         for Windows.
130         (char_ptr, filesystem::canonical): Use path::value_type not char.
131         (do_copy_file): Use names from __gnu_posix.
132         [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Do not use fchmod, fchmodat or
133         sendfile.
134         (filesystem::copy, create_dir, filesystem::create_directory): Qualify
135         names to use declarations from __gnu_posix namespace.
136         (filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
137         add implementation for Windows.
138         (filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
139         (filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
140         [!_PC_PATH_MAX]: Don't use pathconf.
141         [PATH_MAX]: Use if defined.
142         (filesystem::current_path(const path&, error_code&))
143         (filesystem::equivalent, do_stat, filesystem::hard_link_count)
144         (filesystem::last_write_time, filesystem::permissions): Use names
145         from __gnu_posix.
146         (filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
147         (filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
148         implementation for Windows.
149         (filesystem::rename, filesystem::resize_file): Use names from
150         __gnu_posix.
151         (do_space): Define.
152         (filesystem::space): Use do_space.
153         (filesystem::status, filesystem::symlink_status): Use names from
154         __gnu_posix.
155         (filesystem::temp_directory_path): Add implementation for Windows.
156         * src/filesystem/std-path.cc
157         [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
158         Define for Windows.
159         (dot): Define constant.
160         (path::replace_extension, is_dot): Use dot.
161         (path::lexically_normal): Check _M_type instead of calling
162         non-existent function.
163         (path::_M_find_extension): Use dot. Use path::string_type not
164         std::string.
165         (path::_M_split_cmpts): Use dot.
166         (filesystem_error::_M_get_what): Use u8string() not native().
167         * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Do not
168         use symlinks.
169         * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
170         Likewise.
171         * testsuite/27_io/filesystem/operations/absolute.cc: Use
172         __gnu_test::root_path() instead of "/" and add Windows-specific tests.
173         * testsuite/27_io/filesystem/operations/canonical.cc: Use
174         path::string() to get narrow string, not path::native().
175         * testsuite/27_io/filesystem/operations/copy.cc: Construct fstreams
176         with std::filesystem::path not std::basic_string.
177         * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
178         * testsuite/27_io/filesystem/operations/exists.cc: Use
179         __gnu_test::root_path() instead of "/".
180         * testsuite/27_io/filesystem/operations/is_empty.cc: Construct
181         fstreams with std::filesystem::path not std::basic_string.
182         * testsuite/27_io/filesystem/operations/last_write_time.cc: Use
183         path::string() to get narrow string.
184         * testsuite/27_io/filesystem/operations/space.cc: Check results for
185         errors, expect sensible values otherwise.
186         * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Add
187         helpers for adjusting the environment on Windows.
188         * testsuite/27_io/filesystem/path/append/path.cc: Test
189         Windows-specific behaviour.
190         * testsuite/27_io/filesystem/path/construct/format.cc: Fix creation
191         of path::string_type objects.
192         * testsuite/27_io/filesystem/path/construct/locale.cc: Compare native
193         string to wide string on Windows.
194         * testsuite/27_io/filesystem/path/decompose/root_directory.cc: Allow
195         for backslash as root-directory.
196         * testsuite/27_io/filesystem/path/decompose/stem.cc: Use
197         path::string() to get narrow string.
198         * testsuite/27_io/filesystem/path/itr/traversal.cc: Test Windows-style
199         paths.
200         * testsuite/27_io/filesystem/path/native/string.cc: Use string_type
201         not std::string.
202         * testsuite/27_io/filesystem/path/query/is_absolute.cc: Adjust for
203         different definintion of absolute paths on Windows.
204         * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
205         Do not use symlinks.
206         * testsuite/experimental/filesystem/operations/absolute.cc: Test
207         Windows behaviour.
208         * testsuite/experimental/filesystem/operations/copy.cc: Construct
209         fstreams with NTCTS not std::basic_string.
210         * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
211         * testsuite/experimental/filesystem/operations/exists.cc: Use
212         __gnu_test::root_path() instead of "/".
213         * testsuite/experimental/filesystem/operations/is_empty.cc: Construct
214         fstreams with NTCTS not std::basic_string.
215         * testsuite/experimental/filesystem/operations/last_write_time.cc:
216         Use path::string() to get narrow string.
217         * testsuite/experimental/filesystem/operations/space.cc: Use
218         __gnu_test::root_path() instead of "/".
219         * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
220         Add helpers for adjusting the environment on Windows.
221         * testsuite/experimental/filesystem/path/append/path.cc: Use
222         path::string() to get narrow strings for comparisons.
223         * testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
224         * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
225         Likewise.
226         * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
227         * testsuite/experimental/filesystem/path/native/string.cc: Use
228         string_type not std::string.
229         * testsuite/experimental/filesystem/path/query/is_absolute.cc:
230         Adjust for different definintion of absolute paths on Windows.
231         * testsuite/util/testsuite_fs.h (__gnu_test::root_path()): New
232         function.
233         (__gnu_test::scoped_file): Construct fstreams with NTCTS not
234         std::basic_string.
236 2018-05-31  Jonathan Wakely  <jwakely@redhat.com>
238         PR libstdc++/85951
239         * include/std/type_traits [_GLIBCXX_USE_C99_STDINT_TR1]: Do not define
240         uint_least16_t and uint_least32_t.
241         (__make_unsigned<wchar_t>): Define unconditionally.
242         (__make_unsigned_selector<_Tp, true, false>): Remove intermediate
243         typedefs.
244         (__make_unsigned_selector_base): New type to provide helper templates.
245         (__make_unsigned_selector<_Tp, false, true>): Reimplement using
246         __make_unsigned_selector_base helpers.
247         (__make_unsigned<char16_t>, __make_unsigned<char32_t>): Define.
248         (__make_signed_selector<_Tp, true, false>): Remove intermediate
249         typedefs.
250         (__make_signed<wchar_t>, __make_signed<char16_t>)
251         (__make_signed<char32_t>)): Define unconditionally.
252         * testsuite/20_util/make_signed/requirements/typedefs-3.cc: Check
253         wchar_t, char16_t and char32_t are transformed correctly.
254         * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
255         dg-error lineno.
256         * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: Check
257         wchar_t, char16_t and char32_t are transformed correctly.
258         * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
259         dg-error lineno.
261 2018-05-29  Jonathan Wakely  <jwakely@redhat.com>
263         * include/std/variant (__erased_dtor): Qualify call to __get.
265 2018-05-27  François Dumont  <fdumont@gcc.gnu.org>
267         * include/bits/stl_tree.h (_Rb_tree_impl(_Node_allocator&&)): New.
268         (_Rb_tree(const allocator_type&)): Use latter.
269         * include/bits/stl_map.h (map(const allocator_type&)): Likewise.
270         (map(initializer_list<value_type>, const allocator_type&)): Likewise.
271         (map(_InputIterator, _InputIterator, const allocator_type&)): Likewise.
272         * include/bits/stl_multimap.h
273         (multimap(const allocator_type&)): Likewise.
274         (multimap(initializer_list<value_type>, const allocator_type&)):
275         Likewise.
276         (multimap(_InputIterator, _InputIterator, const allocator_type&)):
277         Likewise.
278         * include/bits/stl_set.h (set(const allocator_type&)): Likewise.
279         (set(initializer_list<value_type>, const allocator_type&)): Likewise.
280         (set(_InputIterator, _InputIterator, const allocator_type&)): Likewise.
281         * include/bits/stl_multiset.h
282         (multiset(const allocator_type&)): Likewise.
283         (multiset(initializer_list<value_type>, const allocator_type&)):
284         Likewise.
285         (multiset(_InputIterator, _InputIterator, const allocator_type&)):
286         Likewise.
288 2018-05-25  François Dumont  <fdumont@gcc.gnu.org>
290         PR libstdc++/85768
291         * src/c++11/debug.cc: Remove backtrace usage.
293 2018-05-24  Maya Rashish  <coypu@sdf.org>
295         PR target/85904
296         * crossconfig.m4: Test for aligned_alloc on netbsd.
297         * configure: Regenerate.
299 2018-05-24  Jonathan Wakely  <jwakely@redhat.com>
301         PR libstdc++/69769
302         PR libstdc++/85886
303         * include/bits/atomic_base.h (__atomic_base::value_type)
304         (__atomic_base::difference_type): Add new typedefs.
305         * include/std/atomic (atomic<bool>::value_type, atomic<T>::value_type)
306         (atomic<T*>::value_type, atomic<T*>::difference_type): Likewise.
307         (atomic<T*>::operator++, atomic<T*>::operator--)
308         (atomic<T*>::operator+=, atomic<T*>::operator-=)
309         (atomic<T*>::fetch_add, atomic<T*>::fetch_sub): Add static assertion
310         to enforce C++17 requirement on pointer arithmetic.
311         (__atomic_val_t, __atomic_diff_t): New alias templates.
312         (atomic_init, atomic_store_explicit, atomic_exchange_explicit)
313         (atomic_compare_exchange_weak_explicit)
314         (atomic_compare_exchange_strong_explicit, atomic_store)
315         (atomic_exchange, atomic_compare_exchange_weak)
316         (atomic_compare_exchange_strong): Use __atomic_val_t to make
317         scalar parameters be non-deduced contexts.
318         (atomic_fetch_add_explicit, atomic_fetch_sub_explicit)
319         (atomic_fetch_add, atomic_fetch_sub): Change first parameter to be
320         atomic instead of __atomic_base, and use __atomic_diff_t for scalar
321         parameters.
322         (atomic_fetch_and_explicit, atomic_fetch_or_explicit)
323         (atomic_fetch_xor_explicit, atomic_fetch_and, atomic_fetch_or)
324         (atomic_fetch_xor): Use __atomic_val_t for scalar parameters.
325         (atomic_fetch_add_explicit, atomic_fetch_sub_explicit)
326         (atomic_fetch_add, atomic_fetch_sub): Remove overloads for atomic
327         address types.
328         * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error lineno.
329         * testsuite/29_atomics/atomic/69769.cc: New test.
330         * testsuite/29_atomics/atomic/nonmembers.cc: New test.
331         * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
332         Disable test for C++17 and later.
333         * testsuite/29_atomics/atomic/requirements/typedefs.cc: New test.
334         * testsuite/29_atomics/atomic_integral/nonmembers.cc: New test.
335         * testsuite/29_atomics/atomic_integral/requirements/typedefs.cc: New
336         test.
338 2018-05-23  Jonathan Wakely  <jwakely@redhat.com>
340         * include/bits/fs_path.h (path::__is_encoded_char): Change from class
341         template to alias template.
342         (path::__value_type_is_char): Use remove_const_t.
343         (path:_S_string_from_iter): New helper function.
344         (path::_S_convert(InputIter, __null_terminated))
345         (path::_S_convert_loc(InputIter, __null_terminated, const locale&)):
346         Use _S_string_from_iter.
347         (path::string<_CharT, _Allocator>(const _Allocator&)): Allow sharing
348         rep for COW strings.
349         * include/experimental/bits/fs_path.h (path::__is_encoded_char):
350         Change from class template to alias template.
351         (path::__value_type_is_char): Use remove_const.
352         (path:_S_string_from_iter): New helper function.
353         (path::_S_convert(InputIter, __null_terminated))
354         (path::_S_convert_loc(InputIter, __null_terminated, const locale&)):
355         Use _S_string_from_iter.
356         * testsuite/27_io/filesystem/path/append/source.cc: Test appending
357         wide strings.
358         * testsuite/27_io/filesystem/path/concat/strings.cc: Check for exact
359         string equality, not path equivalence.
360         * testsuite/27_io/filesystem/path/construct/format.cc: Check
361         construction from std::string and std::wstring and input iterators.
362         * testsuite/27_io/filesystem/path/construct/locale.cc: Check
363         construction from iterators.
364         * testsuite/experimental/filesystem/path/concat/strings.cc: Check for
365         exact string equality, not path equivalence.
366         * testsuite/experimental/filesystem/path/construct/locale.cc: Check
367         construction from iterators.
369         * include/bits/fs_path.h (path::_M_type): Change default member
370         initializer to _Filename.
371         (path::begin): Create past-the-end iterator for empty path.
372         * src/filesystem/std-path.cc (path::remove_filename()): Remove
373         debugging check.
374         (path::has_relative_path()): Return false for empty filenames.
375         (path::_M_split_cmpts): Set _M_type to _Filename for empty paths.
376         Fix offset of empty final component.
377         * testsuite/27_io/filesystem/path/itr/components.cc: New.
378         * testsuite/27_io/filesystem/path/itr/traversal.cc: Add new inputs.
380 2018-05-21  Jonathan Wakely  <jwakely@redhat.com>
382         Add support for opening file streams from wide character strings.
383         * config/io/basic_file_stdio.cc [_GLIBCXX_HAVE__WFOPEN]
384         (__basic_file<char>::open(const wchar_t*, ios_base::openmode)):
385         Define new overload.
386         * config/io/basic_file_stdio.h [_GLIBCXX_HAVE__WFOPEN]
387         (__basic_file<char>::open(const wchar_t*, ios_base::openmode)):
388         Declare new overload.
389         * configure.ac: Check for _wfopen.
390         * crossconfig.m4: Likewise.
391         * configure: Regenerate.
392         * config.h.in: Regenerate.
393         * include/bits/fstream.tcc [_GLIBCXX_HAVE__WFOPEN]
394         (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)):
395         Define new overload.
396         * include/std/fstream [_GLIBCXX_HAVE__WFOPEN]
397         (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)):
398         Declare new overload.
399         [_GLIBCXX_HAVE__WFOPEN]
400         (basic_ifstream<C,T>::basic_ifstream(const wchar_t*, openmode))
401         (basic_ifstream<C,T>::basic_open(const wchar_t*, openmode))
402         (basic_ofstream<C,T>::basic_ifstream(const wchar_t*, openmode))
403         (basic_ofstream<C,T>::basic_open(const wchar_t*, openmode))
404         (basic_fstream<C,T>::basic_ifstream(const wchar_t*, openmode))
405         (basic_fstream<C,T>::basic_open(const wchar_t*, openmode)): Define
406         new overloads.
407         * testsuite/27_io/basic_filebuf/open/wchar_t/1.cc: New.
408         * testsuite/27_io/basic_ifstream/cons/wchar_t/1.cc: New.
409         * testsuite/27_io/basic_ifstream/open/wchar_t/1.cc: New.
410         * testsuite/27_io/basic_ofstream/cons/wchar_t/1.cc: New.
411         * testsuite/27_io/basic_ofstream/open/wchar_t/1.cc: New.
412         * testsuite/27_io/basic_fstream/cons/wchar_t/1.cc: New.
413         * testsuite/27_io/basic_fstream/open/wchar_t/1.cc: New.
415 2018-05-21  François Dumont  <fdumont@gcc.gnu.org>
417         PR libstdc++/85845
418         * include/bits/stl_tree.h
419         (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): Fix noexcept
420         qualification.
422 2018-05-21  Jonathan Wakely  <jwakely@redhat.com>
424         * src/filesystem/std-ops.cc (absolute): Report an error for empty
425         paths.
426         (weakly_canonical(const path&)): Do not call canonical on empty path.
427         (weakly_canonical(const path&, error_code&)): Likewise.
428         * testsuite/27_io/filesystem/operations/absolute.cc: Check for errors.
430         PR libstdc++/85818
431         * testsuite/experimental/filesystem/path/preferred_separator.cc: Add
432         dg-require-filesystem-ts.
434         PR libstdc++/85843
435         * src/c++11/cow-stdexcept.cc (logic_error, runtime_error): Explicitly
436         initialize base class to avoid warnings.
438 2018-05-19  Jonathan Wakely  <jwakely@redhat.com>
440         * src/c++11/codecvt.cc (__codecvt_utf8_base<wchar_t>::do_in)
441         [__SIZEOF_WCHAR_T__==2 && __BYTE_ORDER__!=__ORDER_BIG_ENDIAN__]: Set
442         little_endian element in bitmask.
443         * testsuite/22_locale/codecvt/codecvt_utf8/69703.cc: Run all tests.
444         * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: New.
446 2018-05-18  François Dumont  <fdumont@gcc.gnu.org>
448         * include/bits/stl_tree.h
449         (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): New.
450         (_Rb_tree(_Rb_tree&&, _Node_allocator&&, true_type)): New, use latter.
451         (_Rb_tree(_Rb_tree&&, _Node_allocator&&, false_type)): New.
452         (_Rb_tree(_Rb_tree&&, _Node_allocator&&)): Adapt, use latters.
453         * include/debug/map.h
454         (map(map&&, const_allocator_type&)): Add noexcept qualitication.
455         * include/debug/multimap.h
456         (multimap(multimap&&, const_allocator_type&)): Likewise.
457         * include/debug/set.h
458         (set(set&&, const_allocator_type&)): Likewise.
459         * include/debug/multiset.h
460         (multiset(multiset&&, const_allocator_type&)): Likewise.
461         * testsuite/23_containers/map/cons/noexcept_default_construct.cc:
462         Add checks.
463         * testsuite/23_containers/map/cons/noexcept_move_construct.cc:
464         Add checks.
465         * testsuite/23_containers/multimap/cons/noexcept_default_construct.cc:
466         Add checks.
467         * testsuite/23_containers/multimap/cons/noexcept_move_construct.cc:
468         Add checks.
469         * testsuite/23_containers/multiset/cons/noexcept_default_construct.cc:
470         Add checks.
471         * testsuite/23_containers/multiset/cons/noexcept_move_construct.cc:
472         Add checks.
473         * testsuite/23_containers/set/cons/noexcept_default_construct.cc:
474         Add checks.
475         * testsuite/23_containers/set/cons/noexcept_move_construct.cc:
476         Add checks.
478 2018-05-18  Jason Merrill  <jason@redhat.com>
480         * include/bits/stl_deque.h (_Deque_iterator): Constrain constructor
481         for conversion to const_iterator.  Add defaulted copy ops.
482         * libsupc++/new (bad_alloc): Add defaulted copy ops.
483         * libsupc++/exception.h (exception): Add defaulted copy ops.
484         * include/std/system_error (system_error): Add defaulted copy ops.
485         * include/std/stdexcept (domain_error, invalid_argument)
486         (length_error, out_of_range, range_error, overflow_error)
487         (underflow_error): Add defaulted copy ops.
488         * include/bits/stl_iterator.h (reverse_iterator): Add defaulted
489         copy assignment.
490         * include/bits/allocator.h (allocator): Add defaulted copy assignment.
491         * include/ext/throw_allocator.h (condition_base): Add defaulted
492         default and copy ctor and copy assignment.
494 2018-05-18  Jonathan Wakely  <jwakely@redhat.com>
496         PR libstdc++/85098
497         * include/bits/regex.h [__cplusplus < 201703L] (basic_regex::icase)
498         (basic_regex::nosubs, basic_regex::optimize, basic_regex::collate)
499         (basic_regex::ECMAScript, basic_regex::basic, basic_regex::extended)
500         (basic_regex::awk, basic_regex::grep, basic_regex::egrep): Add
501         definitions.
502         * include/bits/regex_automaton.h (_NFA::_M_insert_state): Adjust
503         whitespace.
504         * include/bits/regex_compiler.tcc (__INSERT_REGEX_MATCHER): Add
505         braces around body of do-while.
506         * testsuite/28_regex/basic_regex/85098.cc: New
508 2018-05-17  Jonathan Wakely  <jwakely@redhat.com>
510         PR libstdc++/85818
511         * src/filesystem/path.cc (path::preferred_separator): Add used
512         attribute.
513         * testsuite/experimental/filesystem/path/preferred_separator.cc: New.
515         PR libstdc++/85812
516         * libsupc++/cxxabi_init_exception.h (__cxa_free_exception): Declare.
517         * libsupc++/exception_ptr.h (make_exception_ptr) [__cpp_exceptions]:
518         Refactor to separate non-throwing and throwing implementations.
519         [__cpp_rtti && !_GLIBCXX_HAVE_CDTOR_CALLABI]: Deallocate the memory
520         if constructing the object throws.
522 2018-05-15  Jonathan Wakely  <jwakely@redhat.com>
524         PR libstdc++/85749
525         * include/bits/random.h (__detail::__is_seed_seq): New SFINAE helper.
526         (linear_congruential_engine, mersenne_twister_engine)
527         (subtract_with_carry_engine, discard_block_engine)
528         (independent_bits_engine, shuffle_order_engine): Use __is_seed_seq to
529         constrain function templates taking seed sequences.
530         * include/bits/random.tcc (linear_congruential_engine::seed(_Sseq&))
531         (mersenne_twister_engine::seed(_Sseq&))
532         (subtract_with_carry_engine::seed(_Sseq&)): Change return types to
533         match declarations.
534         * include/ext/random (simd_fast_mersenne_twister_engine): Use
535         __is_seed_seq to constrain function templates taking seed sequences.
536         * include/ext/random.tcc (simd_fast_mersenne_twister_engine::seed):
537         Change return type to match declaration.
538         * testsuite/26_numerics/random/discard_block_engine/cons/seed_seq2.cc:
539         New.
540         * testsuite/26_numerics/random/independent_bits_engine/cons/
541         seed_seq2.cc: New.
542         * testsuite/26_numerics/random/linear_congruential_engine/cons/
543         seed_seq2.cc: New.
544         * testsuite/26_numerics/random/mersenne_twister_engine/cons/
545         seed_seq2.cc: New.
546         * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error lineno.
547         * testsuite/26_numerics/random/shuffle_order_engine/cons/seed_seq2.cc:
548         New.
549         * testsuite/26_numerics/random/subtract_with_carry_engine/cons/
550         seed_seq2.cc: New.
551         * testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/
552         seed_seq2.cc: New.
554         PR libstdc++/83891
555         * include/bits/fs_path.h (path::is_absolute()): Use same definition
556         for all operating systems.
557         * include/experimental/bits/fs_path.h (path::is_absolute()): Likewise.
558         * testsuite/27_io/filesystem/path/query/is_absolute.cc: New.
559         * testsuite/27_io/filesystem/path/query/is_relative.cc: Fix comment.
560         * testsuite/experimental/filesystem/path/query/is_absolute.cc: New.
562         * testsuite/27_io/filesystem/path/decompose/extension.cc: Remove
563         unused <vector> header.
564         * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
565         * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
566         * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
567         * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
568         * testsuite/27_io/filesystem/path/query/has_relative_path.cc:
569         Likewise.
570         * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
571         Likewise.
572         * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
573         * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
574         * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
575         * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
576         * testsuite/experimental/filesystem/path/decompose/extension.cc:
577         Likewise.
578         * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
579         * testsuite/experimental/filesystem/path/query/has_extension.cc:
580         Likewise.
581         * testsuite/experimental/filesystem/path/query/has_filename.cc:
582         Likewise.
583         * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
584         Likewise.
585         * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
586         Likewise.
587         * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
588         Likewise.
589         * testsuite/experimental/filesystem/path/query/has_root_name.cc:
590         Likewise.
591         * testsuite/experimental/filesystem/path/query/has_root_path.cc:
592         Likewise.
593         * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
594         * testsuite/experimental/filesystem/path/query/is_relative.cc:
595         Likewise.
597         PR libstdc++/84159
598         * include/bits/fs_path.h (path::operator/=, path::append): Construct
599         temporary path before calling _M_append.
600         (path::_M_append): Change parameter to path and implement C++17
601         semantics.
602         * testsuite/27_io/filesystem/path/append/path.cc: Add helper function
603         and more examples from the standard.
604         * testsuite/27_io/filesystem/path/append/source.cc: New.
605         * testsuite/27_io/filesystem/path/decompose/filename.cc: Add comment.
606         * testsuite/27_io/filesystem/path/nonmember/append.cc: New.
608         * include/std/variant (__gen_vtable_impl::__visit_invoke): Qualify
609         __invoke to prevent ADL.
611 2018-05-14  Jonathan Wakely  <jwakely@redhat.com>
613         PR libstdc++/81256
614         * include/bits/fstream.tcc (basic_filebuf::close): Do not swallow
615         exceptions from _M_terminate_output().
616         * include/std/fstream (basic_filebuf::~basic_filebuf): Swallow any
617         exceptions from close().
618         * testsuite/27_io/basic_filebuf/close/81256.cc: New.
620         * include/bits/valarray_array.h (__valarray_get_memory): Remove.
621         (__valarray_get_storage): Call operator new directly. Remove ignored
622         top-level restrict qualifier and add malloc attribute instead.
623         (_Array<_Tp>::_Array(size_t)): Remove unused constructor.
625         PR libstdc++/67554
626         * include/bits/valarray_array.h (_Array_copy_ctor<_Tp, true>)
627         (_Array_copier<_Tp, true>): Do not pass null pointers to memcpy.
629         PR libstdc++/82966
630         * include/bits/node_handle.h (_Node_handle_common::_M_swap): Use value
631         instead of type.
632         * testsuite/23_containers/set/modifiers/node_swap.cc: New.
634 2018-05-13  Ville Voutilainen  <ville.voutilainen@gmail.com>
636         PR libstdc++/80165
637         * testsuite/20_util/variant/80165.cc: New.
639 2018-05-10  Jonathan Wakely  <jwakely@redhat.com>
641         * doc/xml/faq.xml: Link to C++17 status. Add note to outdated answer.
642         * doc/xml/manual/debug_mode.xml: Add array and forward_list to list
643         of C++11 containers with Debug Mode support.
644         * doc/xml/manual/using.xml: Document Dual ABI for ios_base::failure.
645         * doc/html/*: Regenerate.
647 2018-05-10  Jason Merrill  <jason@redhat.com>
649         * include/bits/regex_compiler.h (_S_cache_size): Change from
650         function to variable.
652 2018-05-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
654         PR libstdc++/83140 - assoc_legendre returns negated value when m is odd
655         * include/tr1/legendre_function.tcc (__assoc_legendre_p): Add __phase
656         argument defaulted to +1.  Doxy comments on same.
657         * testsuite/special_functions/02_assoc_legendre/
658         check_value.cc: Regen.
659         * testsuite/tr1/5_numerical_facilities/special_functions/
660         02_assoc_legendre/check_value.cc: Regen.
662 2018-05-10  Jonathan Wakely  <jwakely@redhat.com>
664         PR libstdc++/85729
665         * include/bits/c++config.h (__replacement_assert): Add linkage
666         specification.
667         * include/bits/std_abs.h: Add comment to closing brace of block.
668         * include/c_global/cstddef: Add linkage specification.
669         * include/c_global/cstring: Likewise.
670         * include/c_global/cwchar: Likewise.
672 2018-05-09  François Dumont  <fdumont@gcc.gnu.org>
674         * include/debug/safe_iterator.h (_Safe_iterator<>::_M_constant()):
675         Rename in...
676         (_Safe_iterator<>::_S_constant()): ...that.
677         * include/debug/safe_local_iterator.h
678         (_Safe_local_iterator<>::_M_constant()): Rename in...
679         (_Safe_local_iterator<>::_S_constant()): ...that.
680         * include/debug/formatter.h: Remove bits/cpp_type_traits.h include.
681         (_Iterator_state::__rbegin): New.
682         (_Iterator_state::__rmiddle): New.
683         (_Iterator_state::__rend): New.
684         (_Parameter::_Parameter(const _Safe_iterator<>&, const char*,
685         _Is_iterator)): Use _Safe_iterator<>::_S_constant. Grab normal underlying
686         iterator type.
687         (_Parameter::_Parameter(const _Safe_local_iterator<>&, const char*,
688         _Is_iterator)): Likewise.
689         (_Parameter::_S_reverse_state(_Iterator_state)): New.
690         (_Parameter(__gnu_cxx::__normal_iterator<> const&, const char*,
691         _Is_iterator)): New.
692         (_Parameter(std::reverse_iterator<> const&, const char*,
693         _Is_iterator)): New.
694         (_Parameter(std::reverse_iterator<_Safe_iterator<>> const&,
695         const char*, _Is_iterator)): New.
696         (_Parameter(std::move_iterator<> const&, const char*, _Is_iterator):
697         New.
698         (_Parameter(std::move_iterator<_Safe_iterator<>> const&, const char*,
699         _Is_iterator)): New.
700         * testsuite/24_iterators/move_iterator/debug_neg.cc: New.
701         * testsuite/24_iterators/normal_iterator/debug_neg.cc: New.
702         * testsuite/24_iterators/reverse_iterator/debug_neg.cc: New.
704 2018-05-09  Jonathan Wakely  <jwakely@redhat.com>
706         * include/bits/std_function.h (_Base_manager::_M_get_pointer):
707         Use constexpr if in C++17 mode.
708         (_Base_manager::_M_clone(_Any_data&, const _Any_data&, true_type)):
709         Copy from const object.
710         * testsuite/20_util/function/cons/non_copyconstructible.cc: New.
712 2018-05-08  François Dumont  <fdumont@gcc.gnu.org>
714         * src/c++11/debug.cc [_GLIBCXX_HAVE_EXECINFO_H]: Include execinfo.h.
715         [_GLIBCXX_HAVE_EXECINFO_H](_Error_formatter::_M_error): Render
716         backtrace.
718         * include/debug/macros.h (__glibcxx_check_valid_range_at): New.
719         * include/debug/functions.h (__check_valid_range): Use latter.
720         * include/debug/macros.h (__glibcxx_check_valid_constructor_range): New,
721         use latter.
722         * include/debug/deque
723         (deque::deque<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
724         * include/debug/forward_list
725         (forward_list::forward_list<_Iter>(_Iter, _Iter, const _Alloc&)):
726         Likewise.
727         * include/debug/list
728         (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
729         * include/debug/list
730         (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
731         * include/debug/map.h
732         (map::map<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
733         (map::map<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
734         Likewise.
735         * include/debug/multimap.h
736         (multimap::multimap<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
737         (multimap::multimap<_Iter>(_Iter, _Iter, const _Compare&,
738         const _Alloc&)): Likewise.
739         * include/debug/set.h
740         (set::set<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
741         (set::set<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
742         Likewise.
743         * include/debug/multiset.h
744         (multiset::multiset<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
745         (multiset::multiset<_Iter>(_Iter, _Iter, const _Compare&,
746         const _Alloc&)): Likewise.
747         * include/debug/string
748         (basic_string::basic_string<_Iter>(_Iter, _Iter, const _Alloc&)):
749         Likewise.
750         * include/debug/unordered_map
751         (unordered_map::unordered_map<_Iter>(_Iter, _Iter, const _Alloc&)):
752         Likewise.
753         (unordered_multimap::unordered_multimap<_Iter>(_Iter, _Iter,
754         const _Alloc&)): Likewise.
755         * include/debug/unordered_set
756         (unordered_set::unordered_set<_Iter>(_Iter, _Iter, const _Alloc&)):
757         Likewise.
758         (unordered_multiset::unordered_multiset<_Iter>(_Iter, _Iter,
759         const _Alloc&)): Likewise.
760         * include/debug/vector
761         (vector::vector<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
763         * include/debug/formatter.h (_Error_formatter::_M_function): New.
764         (_Error_formatter(const char*, unsigned int)): Adapt.
765         (_Error_formatter::_M_at): Rename in...
766         (_Error_formatter::_S_at): ...that and adapt.
767         * include/debug/macros.h (_GLIBCXX_DEBUG_VERIFY_AT_F): New.
768         (_GLIBCXX_DEBUG_VERIFY_AT, _GLIBCXX_DEBUG_VERIFY): Adapt.
769         * src/c++11/debug.cc (_Error_formatter::_M_error): Render _M_function
770         when available.
772 2018-05-08  Jonathan Wakely  <jwakely@redhat.com>
774         * include/bits/regex_automaton.h (_NFA_base::_M_paren_stack, _NFA):
775         Use normal std::vector even in Debug Mode.
777         PR libstdc++/85672
778         * include/Makefile.am [!ENABLE_FLOAT128]: Change c++config.h entry
779         to #undef _GLIBCXX_USE_FLOAT128 instead of defining it to zero.
780         * include/Makefile.in: Regenerate.
781         * include/bits/c++config (_GLIBCXX_USE_FLOAT128): Move definition
782         within conditional block.
784 2018-05-07  Jonathan Wakely  <jwakely@redhat.com>
786         * doc/xml/manual/using.xml (table.cmd_options): Document that the
787         C++17 Filesystem implementation also needs -lstdc++fs.
789         PR libstdc++/85671
790         * include/bits/fs_path.h (operator/): Permit copy elision.
791         * include/experimental/bits/fs_path.h (operator/): Likewise.
793 2018-05-07  Edward Smith-Rowland  <3dw4rd@verizon.net>
795         Moar PR libstdc++/80506
796         * include/bits/random.tcc (gamma_distribution::__generate_impl()):
797         Fix magic number used in loop condition.
799 2018-05-04  Jonathan Wakely  <jwakely@redhat.com>
801         PR libstdc++/85642 fix is_nothrow_default_constructible<optional<T>>
802         * include/std/optional (_Optional_payload): Add noexcept to default
803         constructor. Re-indent.
804         (_Optional_payload<_Tp, true, true, true>): Likewise. Add noexcept to
805         constructor for copying disengaged payloads.
806         (_Optional_payload<_Tp, true, false, true>): Likewise.
807         (_Optional_payload<_Tp, true, true, false>): Likewise.
808         (_Optional_payload<_Tp, true, false, false>): Likewise.
809         * testsuite/20_util/optional/cons/85642.cc: New.
810         * testsuite/20_util/optional/cons/value_neg.cc: Adjust dg-error lines.
812 2018-05-03  Jonathan Wakely  <jwakely@redhat.com>
814         PR libstdc++/82644
815         * include/tr1/cmath [__STRICT_ANSI__] (hypergf, hypergl, hyperg): Use
816         inline definitions instead of using-declarations.
817         [__STRICT_ANSI__] (conf_hypergf, conf_hypergl, conf_hyperg): Likewise.
818         * testsuite/tr1/5_numerical_facilities/special_functions/
819         07_conf_hyperg/compile_cxx17.cc: New.
820         * testsuite/tr1/5_numerical_facilities/special_functions/
821         17_hyperg/compile_cxx17.cc: New.
823         PR libstdc++/84769
824         * include/std/variant (visit): Qualify std::get call.
826         PR libstdc++/85632 use uintmax_t for arithmetic
827         * src/filesystem/ops.cc (experimental::filesystem::space): Perform
828         arithmetic in result type.
829         * src/filesystem/std-ops.cc (filesystem::space): Likewise.
830         * testsuite/27_io/filesystem/operations/space.cc: Check total capacity
831         is greater than free space.
832         * testsuite/experimental/filesystem/operations/space.cc: New.
834         * testsuite/20_util/remove_cvref/requirements/alias_decl.cc: New.
835         * testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc:
836         New.
837         * testsuite/20_util/remove_cvref/value.cc: New.
838         * testsuite/20_util/remove_cvref/value_ext.cc: New.
840         PR libstdc++/84087 LWG DR 2268 basic_string default arguments
841         * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI=1]
842         (append(const basic_string&, size_type, size_type)
843         (assign(const basic_string&, size_type, size_type)
844         (insert(size_type, const basic_string&, size_type, size_type)
845         (replace(size_type,size_type,const basic_string&,size_type,size_type)
846         (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
847         Add default arguments (LWG 2268).
848         [_GLIBCXX_USE_CXX11_ABI=0]
849         (append(const basic_string&, size_type, size_type)
850         (assign(const basic_string&, size_type, size_type)
851         (insert(size_type, const basic_string&, size_type, size_type)
852         (replace(size_type,size_type,const basic_string&,size_type,size_type)
853         (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
854         Likewise.
855         * testsuite/21_strings/basic_string/dr2268.cc: New test.
857         PR libstdc++/84535
858         * include/std/thread (thread::__not_same): New SFINAE helper.
859         (thread::thread(_Callable&&, _Args&&...)): Add SFINAE constraint that
860         first argument is not a std::thread. Add static assertion to check
861         INVOKE expression is valid.
862         (thread::thread(thread&), thread::thread(const thread&&)): Remove.
863         (thread::_Invoke::_M_invoke, thread::_Invoke::operator()): Use
864         __invoke_result for return types and remove exception specifications.
865         * testsuite/30_threads/thread/cons/84535.cc: New.
867         * include/std/future (__async_result_of): Use __invoke_result instead
868         of result_of.
870         * include/std/any (any_cast): Use __remove_cvref_t.
871         * include/std/tuple (__make_tuple): Likewise.
872         * include/std/type_traits (__remove_cvref_t): Define.
873         (__result_of_memobj, __result_of_memfun): Use __remove_cvref_t.
874         [__cplusplus > 201703L] (remove_cvref, remove_cvref_t): Define.
875         * include/std/variant (__erased_hash): Use __remove_cvref_t.
877 2018-05-02  François Dumont  <fdumont@gcc.gnu.org>
879         * include/bits/deque.tcc (deque<>::_M_assign_aux): Cast to void to
880         ensure overloaded comma not used.
881         * include/bits/list.tcc (list<>::_M_assign_dispatch): Likewise.
882         * include/bits/vector.tcc (vector<>::_M_assign_aux): Likewise.
883         * include/bits/stl_bvector.h (vector<bool>::_M_assign_aux): Likewise.
884         * testsuite/23_containers/deque/modifiers/assign/1.cc: New.
885         * testsuite/23_containers/list/modifiers/assign/1.cc: New.
886         * testsuite/23_containers/vector/bool/modifiers/assign/1.cc: New.
887         * testsuite/23_containers/vector/modifiers/assign/1.cc: New.
889 2018-05-02  Jonathan Wakely  <jwakely@redhat.com>
891         PR libstdc++/68197
892         * include/bits/ios_base.h (ios_base::iword, ios_base::pword): Cast
893         indices to unsigned.
894         * src/c++11/ios.cc (ios_base::_M_grow_words): Treat negative indices
895         as failure. Refactor error handling.
896         * testsuite/27_io/ios_base/storage/68197.cc: New.
898         PR libstdc++/57997
899         PR libstdc++/83860
900         * include/bits/gslice_array.h (gslice_array): Define default
901         constructor as deleted, as per C++11 standard.
902         * include/bits/mask_array.h (mask_array): Likewise.
903         * include/bits/slice_array.h (slice_array): Likewise.
904         * include/bits/valarray_after.h (_GBase, _GClos, _IBase, _IClos): Move
905         to namespace __detail.
906         (_GBase::_M_expr, _IBase::_M_expr): Use _ValArrayRef for type of data
907         members.
908         * include/bits/valarray_before.h (_ValArrayRef): New helper for type
909         of data members in closure objects.
910         (_FunBase, _ValFunClos, _RefFunClos, _UnBase, _UnClos, _BinBase)
911         (_BinBase2, _BinBase1, _BinClos, _SBase, _SClos): Move to namespace
912         __detail.
913         (_FunBase::_M_expr, _UnBase::_M_expr, _BinBase::_M_expr1)
914         (_BinBase::_M_expr2, _BinBase2::_M_expr1, _BinBase1::_M_expr2)
915         (_SBase::_M_expr): Use _ValArrayRef for type of data members.
916         * include/std/valarray (_UnClos, _BinClos, _SClos, _GClos, _IClos)
917         (_ValFunClos, _RefFunClos): Move to namespace __detail and add
918         using-declarations to namespace std.
919         * testsuite/26_numerics/valarray/83860.cc: New.
921         * testsuite/backward/strstream_move.cc: Remove duplicate function
922         call.
924         PR libstdc++/69608
925         * include/backward/strstream (strstreambuf): Define move constructor
926         and move assignment operator.
927         (istrstream, ostrstream, strstream): Likewise.
928         * testsuite/backward/strstream_move.cc: New.
930 2018-05-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
932         PR libstdc++/84654
933         * acinclude.m4: Set ENABLE_FLOAT128 instead of _GLIBCXX_USE_FLOAT128.
934         * config.h.in: Remove references to _GLIBCXX_USE_FLOAT128.
935         * configure: Regenerate.
936         * include/Makefile.am: Replace the value of _GLIBCXX_USE_FLOAT128
937         based on ENABLE_FLOAT128.
938         * include/Makefile.in: Regenerate.
939         * include/bits/c++config: Define _GLIBCXX_USE_FLOAT128.
940         [!defined(__FLOAT128__) && !defined(__SIZEOF_FLOAT128__)]: Undefine
941         _GLIBCXX_USE_FLOAT128.
943 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
945         * configure: Regenerated.
947 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
949         * configure: Regenerated.
951 2018-04-18  Jonathan Wakely  <jwakely@redhat.com>
952             Jakub Jelinek  <jakub@redhat.com>
954         PR libstdc++/85442
955         * src/c++11/Makefile.am: Don't generate debuginfo again for
956         cxx11-ios_failure-lt.s and cxx11-ios_failure.s files.
957         * src/c++11/Makefile.in: Regenerate.
959 2018-04-18  Jonathan Wakely  <jwakely@redhat.com>
961         PR libstdc++/84442
962         * testsuite/30_threads/thread/cons/terminate.cc
963         [!_GLIBCXX_USE_C99_STDLIB] : Use _exit or std::exit instead of _Exit.
965 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
967         PR jit/85384
968         * configure: Regenerate.
970 2018-04-16  Jonathan Wakely  <jwakely@redhat.com>
972         * testsuite/experimental/filesystem/file_status/1.cc: Add
973         -DUSE_FILESYSTEM_TS to dg-options.
974         * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
975         Likewise.
976         * testsuite/experimental/filesystem/iterators/pop.cc: Likewise.
977         * testsuite/experimental/filesystem/iterators/
978         recursive_directory_iterator.cc: Likewise.
979         * testsuite/experimental/filesystem/operations/absolute.cc: Likewise.
980         * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
981         * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
982         * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
983         * testsuite/experimental/filesystem/operations/create_directories.cc:
984         Likewise.
985         * testsuite/experimental/filesystem/operations/create_directory.cc:
986         Likewise.
987         * testsuite/experimental/filesystem/operations/create_symlink.cc:
988         Likewise.
989         * testsuite/experimental/filesystem/operations/current_path.cc:
990         Likewise.
991         * testsuite/experimental/filesystem/operations/equivalent.cc: Likewise.
992         * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
993         * testsuite/experimental/filesystem/operations/file_size.cc: Likewise.
994         * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
995         * testsuite/experimental/filesystem/operations/last_write_time.cc:
996         Likewise.
997         * testsuite/experimental/filesystem/operations/permissions.cc:
998         Likewise.
999         * testsuite/experimental/filesystem/operations/read_symlink.cc:
1000         Likewise.
1001         * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
1002         * testsuite/experimental/filesystem/operations/remove_all.cc: Likewise.
1003         * testsuite/experimental/filesystem/operations/status.cc: Likewise.
1004         * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
1005         Likewise.
1006         * testsuite/experimental/filesystem/path/append/path.cc: Likewise.
1007         * testsuite/experimental/filesystem/path/assign/assign.cc: Likewise.
1008         * testsuite/experimental/filesystem/path/assign/copy.cc: Likewise.
1009         * testsuite/experimental/filesystem/path/compare/compare.cc: Likewise.
1010         * testsuite/experimental/filesystem/path/compare/path.cc: Likewise.
1011         * testsuite/experimental/filesystem/path/compare/strings.cc: Likewise.
1012         * testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
1013         * testsuite/experimental/filesystem/path/concat/strings.cc: Likewise.
1014         * testsuite/experimental/filesystem/path/construct/copy.cc: Likewise.
1015         * testsuite/experimental/filesystem/path/construct/default.cc:
1016         Likewise.
1017         * testsuite/experimental/filesystem/path/construct/locale.cc: Likewise.
1018         * testsuite/experimental/filesystem/path/construct/range.cc: Likewise.
1019         * testsuite/experimental/filesystem/path/construct/string_view.cc:
1020         Likewise.
1021         * testsuite/experimental/filesystem/path/decompose/extension.cc:
1022         Likewise.
1023         * testsuite/experimental/filesystem/path/decompose/filename.cc:
1024         Likewise.
1025         * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
1026         Likewise.
1027         * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
1028         Likewise.
1029         * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
1030         Likewise.
1031         * testsuite/experimental/filesystem/path/decompose/root_name.cc:
1032         Likewise.
1033         * testsuite/experimental/filesystem/path/decompose/root_path.cc:
1034         Likewise.
1035         * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
1036         * testsuite/experimental/filesystem/path/generic/generic_string.cc:
1037         Likewise.
1038         * testsuite/experimental/filesystem/path/itr/traversal.cc: Likewise.
1039         * testsuite/experimental/filesystem/path/modifiers/clear.cc: Likewise.
1040         * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
1041         Likewise.
1042         * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
1043         Likewise.
1044         * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
1045         Likewise.
1046         * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
1047         Likewise.
1048         * testsuite/experimental/filesystem/path/modifiers/swap.cc: Likewise.
1049         * testsuite/experimental/filesystem/path/native/string.cc: Likewise.
1050         * testsuite/experimental/filesystem/path/nonmember/hash_value.cc:
1051         Likewise.
1052         * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
1053         * testsuite/experimental/filesystem/path/query/has_extension.cc:
1054         Likewise.
1055         * testsuite/experimental/filesystem/path/query/has_filename.cc:
1056         Likewise.
1057         * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
1058         Likewise.
1059         * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
1060         Likewise.
1061         * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
1062         Likewise.
1063         * testsuite/experimental/filesystem/path/query/has_root_name.cc:
1064         Likewise.
1065         * testsuite/experimental/filesystem/path/query/has_root_path.cc:
1066         Likewise.
1067         * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
1068         * testsuite/experimental/filesystem/path/query/is_relative.cc:
1069         Likewise.
1071 2018-04-13  Jonathan Wakely  <jwakely@redhat.com>
1073         * src/c++11/Makefile.am: Fix sed command.
1074         * src/c++11/Makefile.in: Regenerate.
1076         * src/c++11/Makefile.am: Rewrite sed rule to be less fragile and to
1077         handle mangled names starting with double underscores on darwin.
1078         * src/c++11/Makefile.in: Regenerate.
1080 2018-04-12  Jonathan Wakely  <jwakely@redhat.com>
1082         * src/c++11/Makefile.am: Fix comment.
1083         * src/c++11/Makefile.in: Regenerate.
1084         * src/c++11/cxx11-ios_failure.cc: Fix comment.
1085         * src/c++98/ios_failure.cc: Likewise.
1087         * src/c++11/ios.cc: Remove redundant macro definition.
1089 2018-04-11  Jonathan Wakely  <jwakely@redhat.com>
1091         * doc/xml/manual/abi.xml: Document header locations in recent
1092         releases.
1093         * doc/xml/manual/evolution.xml: Add API changes since GCC 5.
1094         * doc/xml/manual/spine.xml: Update copyright years.
1095         * doc/xml/manual/strings.xml: Adjust tolower example to avoid
1096         undefined behaviour.
1097         * doc/xml/manual/test.xml: Update outdated notes on VERIFY in tests.
1098         * doc/html/*: Regenerate.
1100 2018-04-10  Jonathan Wakely  <jwakely@redhat.com>
1102         * doc/xml/faq.xml: Update links to archived copy of SGI STL docs.
1103         * doc/xml/manual/backwards_compatibility.xml: Likewise.
1104         * doc/xml/manual/containers.xml: Likewise.
1105         * doc/xml/manual/debug_mode.xml: Likewise.
1106         * doc/xml/manual/extensions.xml: Likewise.
1107         * doc/xml/manual/policy_data_structures_biblio.xml: Likewise.
1108         * doc/xml/manual/using.xml: Likewise.
1109         * doc/xml/manual/utilities.xml: Likewise.
1111         PR libstdc++/85222
1112         * src/c++11/Makefile.am [ENABLE_DUAL_ABI]: Add special rules for
1113         cxx11-ios_failure.cc to rewrite type info for __ios_failure.
1114         * src/c++11/Makefile.in: Regenerate.
1115         * src/c++11/cxx11-ios_failure.cc (__ios_failure, __iosfail_type_info):
1116         New types.
1117         [_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
1118         * src/c++11/ios.cc (__throw_ios_failure): Remove definition.
1119         * src/c++98/ios_failure.cc (__construct_ios_failure)
1120         (__destroy_ios_failure, is_ios_failure_handler): New functions.
1121         [!_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
1122         * testsuite/27_io/ios_base/failure/dual_abi.cc: New.
1123         * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Revert changes to
1124         handler types, to always catch std::ios_base::failure.
1125         * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1126         * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1127         exceptions_failbit.cc: Likewise.
1128         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1129         exceptions_failbit.cc: Likewise.
1130         * testsuite/27_io/basic_istream/extractors_other/char/
1131         exceptions_null.cc: Likewise.
1132         * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1133         exceptions_null.cc: Likewise.
1134         * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1135         * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1136         * testsuite/27_io/basic_ostream/inserters_other/char/
1137         exceptions_null.cc: Likewise.
1138         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1139         exceptions_null.cc: Likewise.
1140         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1142 2018-04-05  Jonathan Wakely  <jwakely@redhat.com>
1144         * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Qualify
1145         __get calls to avoid ADL and avoid ambiguity due to Clang bug.
1147 2018-04-03  Jonathan Wakely  <jwakely@redhat.com>
1149         PR libstdc++/85183
1150         * include/std/variant (_Move_assign_base::operator=): Fix incorrect
1151         value categories.
1152         * testsuite/20_util/variant/85183.cc: New.
1154 2018-03-26  Jonathan Wakely  <jwakely@redhat.com>
1156         * include/std/variant (__get): Qualify calls to avoid ADL.
1157         (__select_index): Adjust whitespace.
1158         (variant): Add using-declaration to workaround Clang bug.
1160 2018-03-22  Jonathan Wakely  <jwakely@redhat.com>
1162         PR libstdc++/85040
1163         * include/bits/stl_function.h (greater::__not_overloaded)
1164         (less::__not_overloaded, greater_equal::__not_overloaded)
1165         (less_equal::__not_overloaded): Fix ambiguous specializations.
1166         * testsuite/20_util/function_objects/comparisons_pointer.cc: Add
1167         tests for type with overloaded operators.
1169 2018-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1171         PR libstdc++/77691
1172         * testsuite/experimental/memory_resource/resource_adaptor.cc:
1173         xfail execution on 32-bit Solaris/x86.
1175 2018-03-21  Jonathan Wakely  <jwakely@redhat.com>
1177         * testsuite/20_util/function_objects/comparisons_pointer.cc: Use
1178         VERIFY instead of assert.
1179         * testsuite/20_util/hash/84998.cc: New test.
1180         * testsuite/23_containers/vector/cons/destructible_debug_neg.cc: New
1181         copy of test adjusted for Debug Mode.
1182         * testsuite/23_containers/vector/cons/destructible_neg.cc: Do not run
1183         test in Debug Mode.
1185 2018-03-20  François Dumont  <fdumont@gcc.gnu.org>
1187         PR libstdc++/84998
1188         * include/bits/stl_bvector.h: Fix std::hash friend declaration.
1189         * include/std/bitset: Likewise.
1190         * include/bits/stl_map.h (std::map<>): Fix _Rb_tree_merge_helper friend
1191         declaration.
1192         * include/bits/stl_multimap.h (std::multimap<>): Likewise.
1193         * include/bits/stl_multiset.h (std::multiset<>): Likewise.
1194         * include/bits/stl_set.h (std::set<>): Likewise.
1195         * include/bits/unordered_map.h (std::unordered_map<>): Fix
1196         _Hash_merge_helper friend declaration.
1197         (std::unordered_multimap<>): Likewise.
1198         * include/bits/unordered_set.h (std::unordered_set<>): Likewise.
1199         (std::unordered_multiset<>): Likewise.
1201 2018-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
1203         * doc/xml/api.xml: www.fsf.org has moved to https. Also omit
1204         trailing slash for domain level link.
1205         * doc/xml/faq.xml: Ditto.
1206         * doc/xml/manual/appendix_free.xml (software): Ditto.
1207         * doc/xml/manual/intro.xml: Ditto.
1208         * doc/xml/manual/spine.xml: Ditto.
1209         * doc/xml/spine.xml: Ditto.
1211 2018-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
1213         * doc/xml/manual/documentation_hacking.xml: Adjust link to
1214         docbook.org.
1216 2018-03-17  Jonathan Wakely  <jwakely@redhat.com>
1218         * testsuite/20_util/function_objects/comparisons_pointer.cc: Adjust
1219         to compile as C++98.
1221 2018-03-14  Jonathan Wakely  <jwakely@redhat.com>
1223         PR libstdc++/78420
1224         * include/bits/stl_function.h (greater<_Tp*>, less<_Tp*>)
1225         (greater_equal<_Tp*>, less_equal<_Tp>*): Add partial specializations
1226         to ensure total order for pointers.
1227         (greater<void>, less<void>, greater_equal<void>, less_equal<void>):
1228         Add operator() overloads for pointer arguments and make generic
1229         overloads dispatch to new _S_cmp functions when comparisons would
1230         use built-in operators for pointers.
1231         * testsuite/20_util/function_objects/comparisons_pointer.cc: New.
1233 2018-03-12  Jonathan Wakely  <jwakely@redhat.com>
1235         PR libstdc++/84773
1236         PR libstdc++/83662
1237         * crossconfig.m4: Check for aligned_alloc etc. on freebsd and mingw32.
1238         * configure: Regenerate.
1239         * include/c_global/cstdlib [_GLIBCXX_HAVE_ALIGNED_ALLOC]
1240         (aligned_alloc): Add using-declaration.
1241         * testsuite/18_support/aligned_alloc/aligned_alloc.cc: New test.
1243 2018-03-09  François Dumont  <fdumont@gcc.gnu.org>
1245         * python/libstdcxx/v6/printers.py (build_libstdcxx_dictionary):
1246         Fix std::_Fwd_list_iterator and std::_Fwd_list_const_iterator printers
1247         registration.
1249 2018-03-09  Jonathan Wakely  <jwakely@redhat.com>
1251         PR libstdc++/84769
1252         * include/std/variant (get<_Tp, _Types...>, get_if<_Tp, _Types...>):
1253         Qualify calls to get<_Np, Types...> and get_if<_Np, _Types...>.
1255         src/filesystem/ops.cc (create_dir): Pass error_code to is_directory.
1256         src/filesystem/std-ops.cc (create_dir): Likewise.
1258 2018-03-08  François Dumont  <fdumont@gcc.gnu.org>
1260         * python/libstdcxx/v6/printers.py (NodeIteratorPrinter): New.
1261         (StdListIteratorPrinter): Inherit from latter.
1262         (StdFwdListIteratorPrinter): New, inherit from latter.
1263         (StdDebugIteratorPrinter.to_string): Use non-debug iterator printer
1264         when iterator has no associated container.
1265         (build_libstdcxx_dictionary): Add __gnu_cxx::_Fwd_list_iterator and
1266         __gnu_cxx::_Fwd_list_const_iterator printers. Remove __norm namespace
1267         registrations.
1268         * testsuite/libstdc++-prettyprinters/debug.cc: Adapt.
1269         * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Adapt.
1271 2018-03-06  Ville Voutilainen  <ville.voutilainen@gmail.com>
1273         PR libstdc++/84601
1274         * include/std/optional (_Optional_payload): Split into multiple
1275         specializations that can handle different cases of trivial or
1276         non-trivial assignment operators.
1277         * testsuite/20_util/optional/84601.cc: New.
1278         * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
1280 2018-03-02  Jonathan Wakely  <jwakely@redhat.com>
1282         PR libstdc++/84671
1283         * include/bits/parse_numbers.h (_Number_help): Add partial
1284         specialization to handle digit separators. Adjust partial
1285         specialization for recursion temrination to require _Pow == 1ULL.
1286         * testsuite/20_util/duration/literals/84671.cc: New
1288 2018-02-27  Ville Voutilainen  <ville.voutilainen@gmail.com>
1290         Implement the missing bits of LWG 2769
1291         * include/std/any (any_cast(const any&)): Add static_assert.
1292         (any_cast(any&)): Likewise.
1293         (any_cast(any&&)): Likewise, and remove the handling
1294         for copyable-but-not-movable type.
1295         * testsuite/20_util/any/misc/any_cast.cc: Adjust.
1296         * testsuite/20_util/any/misc/any_cast_neg.cc: Likewise, and
1297         add new tests.
1299 2018-02-23  Jonathan Wakely  <jwakely@redhat.com>
1301         PR libstdc++/84532
1302         * include/std/thread (thread::__make_invoker): Construct tuple
1303         directly instead of using make_tuple.
1304         * testsuite/30_threads/async/84532.cc: New.
1305         * testsuite/30_threads/thread/84532.cc: New.
1307 2018-02-20  François Dumont  <fdumont@gcc.gnu.org>
1309         * include/ext/aligned_buffer.h [_GLIBCXX_INLINE_VERSION]
1310         (template<> __aligned_buffer): Define as __aligned_membuf alias.
1312 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1314         PR target/84148
1315         * configure: Regenerate.
1317 2018-02-15  Jonathan Wakely  <jwakely@redhat.com>
1319         PR libstdc++/81797
1320         * configure.ac (INCLUDE_DIR_NOTPARALLEL): Define.
1321         * configure: Regenerate.
1322         * include/Makefile.am (INCLUDE_DIR_NOTPARALLEL): Add .NOTPARALLEL when
1323         defined.
1324         * include/Makefile.in: Regenerate.
1326 2018-01-29  Jonathan Wakely  <jwakely@redhat.com>
1328         PR libstdc++/83833
1329         * testsuite/26_numerics/random/chi_squared_distribution/83833.cc:
1330         Add -ffloat-store to options for m68k and ia32.
1332         * doc/xml/faq.xml: Update copyright years.
1333         * doc/html/*: Regenerate.
1335         PR libstdc++/83658
1336         * include/std/any (any::__do_emplace): Only set _M_manager after
1337         constructing the contained object.
1338         * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust dg-error line.
1339         * testsuite/20_util/any/modifiers/83658.cc: New test.
1341 2018-01-25  Jonathan Wakely  <jwakely@redhat.com>
1343         PR libstdc++/81076
1344         * include/c_global/cstddef (__byte_operand): Define primary template.
1345         * testsuite/18_support/byte/81076.cc: New test.
1347 2018-01-19  Christophe Lyon  <christophe.lyon@linaro.org>
1349         * testsuite/ext/special_functions/airy_ai/check_nan.cc: Fix
1350         dg-options and dg-add-options order.
1351         * testsuite/ext/special_functions/airy_bi/check_nan.cc: Likewise.
1352         * testsuite/ext/special_functions/conf_hyperg/check_nan.cc:
1353         Likewise.
1354         * testsuite/ext/special_functions/hyperg/check_nan.cc: Likewise.
1355         * testsuite/special_functions/01_assoc_laguerre/check_nan.cc:
1356         Likewise.
1357         * testsuite/special_functions/02_assoc_legendre/check_nan.cc:
1358         Likewise.
1359         * testsuite/special_functions/03_beta/check_nan.cc: Likewise.
1360         * testsuite/special_functions/04_comp_ellint_1/check_nan.cc:
1361         Likewise.
1362         * testsuite/special_functions/05_comp_ellint_2/check_nan.cc:
1363         Likewise.
1364         * testsuite/special_functions/06_comp_ellint_3/check_nan.cc:
1365         Likewise.
1366         * testsuite/special_functions/06_comp_ellint_3/pr66689.cc:
1367         Likewise.
1368         * testsuite/special_functions/07_cyl_bessel_i/check_nan.cc:
1369         Likewise.
1370         * testsuite/special_functions/08_cyl_bessel_j/check_nan.cc:
1371         Likewise.
1372         * testsuite/special_functions/09_cyl_bessel_k/check_nan.cc:
1373         Likewise.
1374         * testsuite/special_functions/10_cyl_neumann/check_nan.cc:
1375         Likewise.
1376         * testsuite/special_functions/11_ellint_1/check_nan.cc: Likewise.
1377         * testsuite/special_functions/12_ellint_2/check_nan.cc: Likewise.
1378         * testsuite/special_functions/13_ellint_3/check_nan.cc: Likewise.
1379         * testsuite/special_functions/13_ellint_3/pr66689.cc: Likewise.
1380         * testsuite/special_functions/14_expint/check_nan.cc: Likewise.
1381         * testsuite/special_functions/15_hermite/check_nan.cc: Likewise.
1382         * testsuite/special_functions/16_laguerre/check_nan.cc: Likewise.
1383         * testsuite/special_functions/17_legendre/check_nan.cc: Likewise.
1384         * testsuite/special_functions/18_riemann_zeta/check_nan.cc:
1385         Likewise.
1386         * testsuite/special_functions/19_sph_bessel/check_nan.cc:
1387         Likewise.
1388         * testsuite/special_functions/20_sph_legendre/check_nan.cc:
1389         Likewise.
1390         * testsuite/special_functions/21_sph_neumann/check_nan.cc:
1391         Likewise.
1393 2018-01-18  Uros Bizjak  <ubizjak@gmail.com>
1395         * configure.ac (AC_CHECK_HEADERS): Add linux/types.h.  Conditionally
1396         include linux/types.h when checking linux/random.h header.
1397         * config.h.in: Regenerate.
1398         * configure: Ditto.
1399         * src/c++11/random.cc: Conditionally include linux/types.h.
1401 2018-01-16  Eric Botcazou  <ebotcazou@adacore.com>
1403         * testsuite/17_intro/names.cc: Undefine 'y' on SPARC/Linux.
1405 2018-01-16  Jonathan Wakely  <jwakely@redhat.com>
1407         PR libstdc++/83834
1408         * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace std::c[a-g]* wildcard
1409         pattern with exact match for std::cerr.
1411 2018-01-15  Jonathan Wakely  <jwakely@redhat.com>
1413         PR libstdc++/83833
1414         * include/bits/random.h (chi_squared_distribution::param): Update
1415         gamma distribution parameter.
1416         * testsuite/26_numerics/random/chi_squared_distribution/83833.cc: New
1417         test.
1419         PR libstdc++/83830
1420         * include/std/type_traits (has_unique_object_representations_v): Add
1421         variable template.
1422         * testsuite/20_util/has_unique_object_representations/value.cc: Check
1423         variable template.
1425 2018-01-15  Ville Voutilainen  <ville.voutilainen@gmail.com>
1427         Make optional conditionally
1428         trivially_{copy,move}_{constructible,assignable}
1429         * include/std/optional (_Optional_payload): Fix the comment in
1430         the class head and turn into a primary and one specialization.
1431         (_Optional_payload::_M_engaged): Strike the NSDMI.
1432         (_Optional_payload<_Tp, false>::operator=(const _Optional_payload&)):
1433         New.
1434         (_Optional_payload<_Tp, false>::operator=(_Optional_payload&&)):
1435         Likewise.
1436         (_Optional_payload<_Tp, false>::_M_get): Likewise.
1437         (_Optional_payload<_Tp, false>::_M_reset): Likewise.
1438         (_Optional_base_impl): Likewise.
1439         (_Optional_base): Turn into a primary and three specializations.
1440         (optional(nullopt)): Change the base init.
1441         * testsuite/20_util/optional/assignment/8.cc: New.
1442         * testsuite/20_util/optional/cons/trivial.cc: Likewise.
1443         * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
1445 2018-01-15  Jonathan Wakely  <jwakely@redhat.com>
1447         PR libstdc++/80276
1448         * python/libstdcxx/v6/printers.py (strip_inline_namespaces): New.
1449         (get_template_arg_list): New.
1450         (StdVariantPrinter._template_args): Remove, use get_template_arg_list
1451         instead.
1452         (TemplateTypePrinter): Rewrite to work with gdb.Type objects instead
1453         of strings and regular expressions.
1454         (add_one_template_type_printer): Adapt to new TemplateTypePrinter.
1455         (FilteringTypePrinter): Add docstring. Match using startswith. Use
1456         strip_inline_namespaces instead of strip_versioned_namespace.
1457         (add_one_type_printer): Prepend namespace to match argument.
1458         (register_type_printers): Add type printers for char16_t and char32_t
1459         string types and for types using cxx11 ABI. Update calls to
1460         add_one_template_type_printer to provide default argument dicts.
1461         * testsuite/libstdc++-prettyprinters/80276.cc: New test.
1462         * testsuite/libstdc++-prettyprinters/whatis.cc: Remove tests for
1463         basic_string<unsigned char> and basic_string<signed char>.
1464         * testsuite/libstdc++-prettyprinters/whatis2.cc: Duplicate whatis.cc
1465         to test local variables, without overriding _GLIBCXX_USE_CXX11_ABI.
1467 2018-01-14  Andreas Schwab  <schwab@linux-m68k.org>
1469         PR libstdc++/81092
1470         * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1472 2018-01-13  Tim Shen  <timshen@google.com>
1474         PR libstdc++/83601
1475         * include/bits/regex.tcc (regex_replace): Fix escaping in sed.
1476         * testsuite/28_regex/algorithms/regex_replace/char/pr83601.cc: Tests.
1477         * testsuite/28_regex/algorithms/regex_replace/wchar_t/pr83601.cc: Tests.
1479 2018-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1481         PR libstdc++/64054
1482         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc:
1483         Remove dg-xfail-run-if.
1485 2018-01-10  François Dumont  <fdumont@gcc.gnu.org>
1487         * include/bits/forward_list.h
1488         (_Fwd_list_node_base(_Fwd_list_node_base&&)): New.
1489         (_Fwd_list_node_base& operator=(_Fwd_list_node_base&&)): New.
1490         (_Fwd_list_node_base(const _Fwd_list_node_base&)): Explicit delete.
1491         (_Fwd_list_node_base& operator=(const _Fwd_list_node_base&)): Likewise.
1492         (_Fwd_list_impl()): Add noexcept qualification.
1493         (_Fwd_list_impl(const _Node_alloc_type&)): Delete.
1494         (_Fwd_list_impl(_Fwd_list_impl&&)): New, default.
1495         (_Fwd_list_impl(_Fwd_list_impl&&, _Node_alloc_type&&)): New.
1496         (_Fwd_list_base()): Default.
1497         (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&, true_type)): New.
1498         (_Fwd_list_base(_Fwd_list_base&&)): Default.
1499         (forward_list<>()): Default.
1500         (forward_list<>(forward_list&&)): Default.
1501         (forward_list(forward_list&&, _Node_alloc_type&&, false_type)): New.
1502         (forward_list(forward_list&&, _Node_alloc_type&&, true_type)): New.
1503         (forward_list(forward_list&&, const _Alloc&)): Adapt to use latters.
1504         * include/bits/forward_list.tcc
1505         (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&)): Adapt to use
1506         _M_impl._M_head move assignment.
1507         (forward_list<>::merge(forward_list<>&&, _Comp)): Likewise.
1508         * testsuite/23_containers/forward_list/allocator/default_init.cc: New.
1510 2018-01-09  Jonathan Wakely  <jwakely@redhat.com>
1512         PR libstdc++/80276
1513         * python/libstdcxx/v6/printers.py (SharedPointerPrinter)
1514         (UniquePointerPrinter): Print correct template argument, not type of
1515         the pointer.
1516         (TemplateTypePrinter._recognizer.recognize): Handle failure to lookup
1517         a type.
1518         * testsuite/libstdc++-prettyprinters/cxx11.cc: Test unique_ptr of
1519         array type.
1520         * testsuite/libstdc++-prettyprinters/cxx17.cc: Test shared_ptr and
1521         weak_ptr of array types.
1523 2018-01-09  François Dumont  <fdumont@gcc.gnu.org>
1525         PR libstdc++/83709
1526         * include/bits/hashtable_policy.h
1527         (__distance_fwd(_Iterator, _Iterator, input_iterator_tag)): Return 1 if
1528         __first != __last.
1529         (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, true_type)): New.
1530         (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, false_type)):
1531         Add false_type parameter.
1532         (_Insert_base::insert): Adapt.
1533         * include/bits/hashtable.h (_Hashtable::operator=(initializzr_list<>)):
1534         Adapt.
1535         (_Hashtable::_M_insert(_Arg&&, const _NodeGen&, true_type, size_t)):
1536          Add __n_elt parameter, defaulted to 1.
1537         (_Hashtable::_M_insert_unique_node): Likewise. Use it to call rehash
1538         policy _M_need_rehash.
1539         (_Hashtable::_M_merge_unique): Pass target number of elements to add to
1540         produce only 1 rehash if necessary.
1541         * testsuite/23_containers/unordered_map/insert/83709.cc: New.
1542         * testsuite/23_containers/unordered_set/insert/83709.cc: New.
1544 2018-01-09  Juraj Oršulić  <juraj.orsulic@fer.hr>
1545             Jonathan Wakely  <jwakely@redhat.com>
1547         PR libstdc++/59253 (partial)
1548         * python/libstdcxx/v6/printers.py (SmartPtrIterator): Common iterator
1549         type for pointer stored by shared_ptr, weak_ptr and unique_ptr.
1550         (SharedPointerPrinter, UniquePointerPrinter): Treat stored values as
1551         children.
1552         * testsuite/libstdc++-prettyprinters/cxx11.cc: Update expected output
1553         of unique_ptr printer.
1554         * testsuite/libstdc++-prettyprinters/shared_ptr.cc: Update expected
1555         output of shared_ptr printer.
1557 2018-01-05  Jonathan Wakely  <jwakely@redhat.com>
1559         PR libstdc++/83626
1560         * src/filesystem/ops.cc (remove(const path&, error_code&)): Remove
1561         unnecessary symlink_status call.
1562         (remove_all(const path&, error_code&)): Use filesystem::remove.
1563         * src/filesystem/std-ops.cc: Likewise.
1565         PR libstdc++/83279
1566         * src/filesystem/std-ops.cc  (do_copy_file): Use non-null offset with
1567         sendfile.
1569         PR libstdc++/83626
1570         * src/filesystem/ops.cc (remove(const path&, error_code&)): Do not
1571         report an error for ENOENT.
1572         (remove_all(const path&)): Fix type of result variable.
1573         (remove_all(const path&, error_code&)): Use non-throwing increment
1574         for directory iterator. Call POSIX remove directly to avoid redundant
1575         calls to symlink_status. Do not report errors for ENOENT.
1576         * src/filesystem/std-ops.cc: Likewise.
1577         * testsuite/27_io/filesystem/operations/remove_all.cc: Test throwing
1578         overload.
1579         * testsuite/experimental/filesystem/operations/remove_all.cc:
1580         Likewise.
1582 2018-01-04  Jonathan Wakely  <jwakely@redhat.com>
1584         PR libstdc++/83626
1585         * src/filesystem/ops.cc (remove(const path&, error_code&))): Remove
1586         redundant call to ec.clear().
1587         (remove_all(const path&, error_code&))): Do not return an error for
1588         non-existent paths.
1589         * src/filesystem/std-ops.cc: Likewise.
1590         * testsuite/27_io/filesystem/operations/remove.cc: New test.
1591         * testsuite/27_io/filesystem/operations/remove_all.cc: Fix expected
1592         results for non-existent paths.
1593         * testsuite/experimental/filesystem/operations/remove.cc: New test.
1594         * testsuite/experimental/filesystem/operations/remove_all.cc: Fix
1595         expected results for non-existent paths.
1597         * include/bits/fs_ops.h (exists(const path&, error_code&))): Only
1598         check status_known once.
1599         * include/experimental/bits/fs_ops.h: Likewise.
1601         PR libstdc++/83607
1602         * include/std/functional (__is_byte_like): New trait.
1603         (__is_std_equal_to): Remove.
1604         (__boyer_moore_base_t): Use __is_byte_like instead of
1605         __is_std_equal_to.
1606         * include/experimental/functional (__is_std_equal_to): Remove.
1607         (__boyer_moore_base_t): Use __is_byte_like instead of
1608         __is_std_equal_to.
1609         * testsuite/20_util/function_objects/83607.cc: New test.
1611 2018-01-03  Ville Voutilainen  <ville.voutilainen@gmail.com>
1613         Protect optional's deduction guide with the feature macro
1614         * include/std/optional: Use the feature macro.
1616 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
1618         Update copyright years.
1620 Copyright (C) 2018 Free Software Foundation, Inc.
1622 Copying and distribution of this file, with or without modification,
1623 are permitted in any medium without royalty provided the copyright
1624 notice and this notice are preserved.