1 2018-06-04 Jonathan Wakely <jwakely@redhat.com>
3 * include/bits/postypes.h (fpos): Define special members as defaulted.
6 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Align
7 the static variable correctly.
9 2018-05-24 Jonathan Wakely <jwakely@redhat.com>
11 PR libstdc++/78870 support std::filesystem on Windows
12 * config.h.in: Regenerate.
13 * configure: Regenerate.
14 * configure.ac: Check for link, readlink and symlink.
15 * include/bits/fs_path.h (path::operator/=(const path&)): Move
16 definition out of class body.
17 (path::is_absolute(), path::_M_append(path)): Likewise.
18 (operator<<(basic_ostream, const path&)): Use std::quoted directly.
19 (operator>>(basic_istream, path&)): Likewise.
20 (u8path): Reorder definitions and fix Windows implementation.
21 (path::is_absolute()): Define inline and fix for Windows.
22 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
23 Define POSIX version inline.
24 (path::_M_append(path)): Define inline.
25 * include/experimental/bits/fs_path.h (path::is_absolute()): Move
26 definition out of class body.
27 (operator<<(basic_ostream, const path&)): Fix type of delimiter and
29 (operator>>(basic_istream, path&)): Likewise.
30 (path::is_absolute()): Define inline and fix for Windows.
31 * src/filesystem/dir-common.h (__gnu_posix): New namespace.
32 (__gnu_posix::char_type, __gnu_posix::DIR, __gnu_posix::dirent)
33 (__gnu_posix::opendir, __gnu_posix::readdir, __gnu_posix::closedir):
34 Define as adaptors for Windows functions/types or as
35 using-declarations for POSIX functions/types.
36 (_Dir_base, get_file_type): Qualify names to use declarations from
37 __gnu_posix namespace.
38 (_Dir_base::is_dor_or_dotdot): New helper functions.
39 * src/filesystem/dir.cc (_Dir, recursive_directory_iterator): Qualify
40 names to use declarations from __gnu_posix namespace.
41 * src/filesystem/ops-common.h (__gnu_posix): New nested namespace.
42 (__gnu_posix::open, __gnu_posix::close, __gnu_posix::stat_type)
43 (__gnu_posix::stat, __gnu_posix::lstat, __gnu_posix::mode_t)
44 (__gnu_posix::chmod, __gnu_posix::mkdir, __gnu_posix::getcwd)
45 (__gnu_posix::chdir, __gnu_posix::utimbuf, __gnu_posix::utime)
46 (__gnu_posix::rename, __gnu_posix::truncate, __gnu_posix::char_type):
47 Define as adaptors for Windows functions/types or as
48 using-declarations for POSIX functions/types.
49 (stat_type, do_copy_file): Qualify names to use declarations from
50 __gnu_posix namespace.
51 (do_space): Declare new function.
52 (make_file_type): Only use S_ISLNK if defined.
53 * src/filesystem/ops.cc (char_ptr, filesystem::canonical): Use
54 path::value_type not char.
55 (filesystem::copy, create_dir, filesystem::create_directory): Qualify
56 names to use declarations from __gnu_posix namespace.
57 (filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
58 add implementation for Windows.
59 (filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
60 (filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
61 [!_PC_PATH_MAX]: Don't use pathconf.
62 [PATH_MAX]: Use if defined.
63 (filesystem::current_path(const path&, error_code&))
64 (filesystem::equivalent, do_stat, filesystem::hard_link_count)
65 (filesystem::last_write_time, filesystem::permissions): Use names
67 (filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
68 (filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
69 implementation for Windows.
70 (filesystem::rename, filesystem::resize_file): Use names from
72 (filesystem::space): Use do_space.
73 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Get absolute path to directory.
74 (filesystem::status, filesystem::symlink_status): Use names from
76 (filesystem::temp_directory_path): Add implementation for Windows.
77 * src/filesystem/path.cc (dot): Define constant.
78 (path::replace_extension): Use dot.
79 (path::_M_find_extension): Likewise. Use path::string_type not
81 (path::_M_split_cmpts): Use dot.
82 (filesystem_error::_M_get_what): Use u8string() not native().
83 * src/filesystem/std-dir.cc (_Dir, recursive_directory_iterator):
84 Qualify names to use declarations from __gnu_posix namespace.
85 * src/filesystem/std-ops.cc (filesystem::absolute(const path&)): Use
87 (filesystem::absolute(const path&, error_code&)): Add implementation
89 (char_ptr, filesystem::canonical): Use path::value_type not char.
90 (do_copy_file): Use names from __gnu_posix.
91 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Do not use fchmod, fchmodat or
93 (filesystem::copy, create_dir, filesystem::create_directory): Qualify
94 names to use declarations from __gnu_posix namespace.
95 (filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
96 add implementation for Windows.
97 (filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
98 (filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
99 [!_PC_PATH_MAX]: Don't use pathconf.
100 [PATH_MAX]: Use if defined.
101 (filesystem::current_path(const path&, error_code&))
102 (filesystem::equivalent, do_stat, filesystem::hard_link_count)
103 (filesystem::last_write_time, filesystem::permissions): Use names
105 (filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
106 (filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
107 implementation for Windows.
108 (filesystem::rename, filesystem::resize_file): Use names from
111 (filesystem::space): Use do_space.
112 (filesystem::status, filesystem::symlink_status): Use names from
114 (filesystem::temp_directory_path): Add implementation for Windows.
115 * src/filesystem/std-path.cc
116 [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
118 (dot): Define constant.
119 (path::replace_extension, is_dot): Use dot.
120 (path::lexically_normal): Check _M_type instead of calling
121 non-existent function.
122 (path::_M_find_extension): Use dot. Use path::string_type not
124 (path::_M_split_cmpts): Use dot.
125 (filesystem_error::_M_get_what): Use u8string() not native().
126 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Do not
128 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
130 * testsuite/27_io/filesystem/operations/absolute.cc: Use
131 __gnu_test::root_path() instead of "/" and add Windows-specific tests.
132 * testsuite/27_io/filesystem/operations/canonical.cc: Use
133 path::string() to get narrow string, not path::native().
134 * testsuite/27_io/filesystem/operations/copy.cc: Construct fstreams
135 with std::filesystem::path not std::basic_string.
136 * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
137 * testsuite/27_io/filesystem/operations/exists.cc: Use
138 __gnu_test::root_path() instead of "/".
139 * testsuite/27_io/filesystem/operations/is_empty.cc: Construct
140 fstreams with std::filesystem::path not std::basic_string.
141 * testsuite/27_io/filesystem/operations/last_write_time.cc: Use
142 path::string() to get narrow string.
143 * testsuite/27_io/filesystem/operations/space.cc: Check results for
144 errors, expect sensible values otherwise.
145 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Add
146 helpers for adjusting the environment on Windows.
147 * testsuite/27_io/filesystem/path/append/path.cc: Test
148 Windows-specific behaviour.
149 * testsuite/27_io/filesystem/path/construct/format.cc: Fix creation
150 of path::string_type objects.
151 * testsuite/27_io/filesystem/path/construct/locale.cc: Compare native
152 string to wide string on Windows.
153 * testsuite/27_io/filesystem/path/decompose/root_directory.cc: Allow
154 for backslash as root-directory.
155 * testsuite/27_io/filesystem/path/decompose/stem.cc: Use
156 path::string() to get narrow string.
157 * testsuite/27_io/filesystem/path/itr/traversal.cc: Test Windows-style
159 * testsuite/27_io/filesystem/path/native/string.cc: Use string_type
161 * testsuite/27_io/filesystem/path/query/is_absolute.cc: Adjust for
162 different definintion of absolute paths on Windows.
163 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
165 * testsuite/experimental/filesystem/operations/absolute.cc: Test
167 * testsuite/experimental/filesystem/operations/copy.cc: Construct
168 fstreams with NTCTS not std::basic_string.
169 * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
170 * testsuite/experimental/filesystem/operations/exists.cc: Use
171 __gnu_test::root_path() instead of "/".
172 * testsuite/experimental/filesystem/operations/is_empty.cc: Construct
173 fstreams with NTCTS not std::basic_string.
174 * testsuite/experimental/filesystem/operations/last_write_time.cc:
175 Use path::string() to get narrow string.
176 * testsuite/experimental/filesystem/operations/space.cc: Use
177 __gnu_test::root_path() instead of "/".
178 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
179 Add helpers for adjusting the environment on Windows.
180 * testsuite/experimental/filesystem/path/append/path.cc: Use
181 path::string() to get narrow strings for comparisons.
182 * testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
183 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
185 * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
186 * testsuite/experimental/filesystem/path/native/string.cc: Use
187 string_type not std::string.
188 * testsuite/experimental/filesystem/path/query/is_absolute.cc:
189 Adjust for different definintion of absolute paths on Windows.
190 * testsuite/util/testsuite_fs.h (__gnu_test::root_path()): New
192 (__gnu_test::scoped_file): Construct fstreams with NTCTS not
195 2018-05-31 Jonathan Wakely <jwakely@redhat.com>
198 * include/std/type_traits [_GLIBCXX_USE_C99_STDINT_TR1]: Do not define
199 uint_least16_t and uint_least32_t.
200 (__make_unsigned<wchar_t>): Define unconditionally.
201 (__make_unsigned_selector<_Tp, true, false>): Remove intermediate
203 (__make_unsigned_selector_base): New type to provide helper templates.
204 (__make_unsigned_selector<_Tp, false, true>): Reimplement using
205 __make_unsigned_selector_base helpers.
206 (__make_unsigned<char16_t>, __make_unsigned<char32_t>): Define.
207 (__make_signed_selector<_Tp, true, false>): Remove intermediate
209 (__make_signed<wchar_t>, __make_signed<char16_t>)
210 (__make_signed<char32_t>)): Define unconditionally.
211 * testsuite/20_util/make_signed/requirements/typedefs-3.cc: Check
212 wchar_t, char16_t and char32_t are transformed correctly.
213 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
215 * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: Check
216 wchar_t, char16_t and char32_t are transformed correctly.
217 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
220 2018-05-29 Jonathan Wakely <jwakely@redhat.com>
222 * include/std/variant (__erased_dtor): Qualify call to __get.
224 2018-05-27 François Dumont <fdumont@gcc.gnu.org>
226 * include/bits/stl_tree.h (_Rb_tree_impl(_Node_allocator&&)): New.
227 (_Rb_tree(const allocator_type&)): Use latter.
228 * include/bits/stl_map.h (map(const allocator_type&)): Likewise.
229 (map(initializer_list<value_type>, const allocator_type&)): Likewise.
230 (map(_InputIterator, _InputIterator, const allocator_type&)): Likewise.
231 * include/bits/stl_multimap.h
232 (multimap(const allocator_type&)): Likewise.
233 (multimap(initializer_list<value_type>, const allocator_type&)):
235 (multimap(_InputIterator, _InputIterator, const allocator_type&)):
237 * include/bits/stl_set.h (set(const allocator_type&)): Likewise.
238 (set(initializer_list<value_type>, const allocator_type&)): Likewise.
239 (set(_InputIterator, _InputIterator, const allocator_type&)): Likewise.
240 * include/bits/stl_multiset.h
241 (multiset(const allocator_type&)): Likewise.
242 (multiset(initializer_list<value_type>, const allocator_type&)):
244 (multiset(_InputIterator, _InputIterator, const allocator_type&)):
247 2018-05-25 François Dumont <fdumont@gcc.gnu.org>
250 * src/c++11/debug.cc: Remove backtrace usage.
252 2018-05-24 Maya Rashish <coypu@sdf.org>
255 * crossconfig.m4: Test for aligned_alloc on netbsd.
256 * configure: Regenerate.
258 2018-05-24 Jonathan Wakely <jwakely@redhat.com>
262 * include/bits/atomic_base.h (__atomic_base::value_type)
263 (__atomic_base::difference_type): Add new typedefs.
264 * include/std/atomic (atomic<bool>::value_type, atomic<T>::value_type)
265 (atomic<T*>::value_type, atomic<T*>::difference_type): Likewise.
266 (atomic<T*>::operator++, atomic<T*>::operator--)
267 (atomic<T*>::operator+=, atomic<T*>::operator-=)
268 (atomic<T*>::fetch_add, atomic<T*>::fetch_sub): Add static assertion
269 to enforce C++17 requirement on pointer arithmetic.
270 (__atomic_val_t, __atomic_diff_t): New alias templates.
271 (atomic_init, atomic_store_explicit, atomic_exchange_explicit)
272 (atomic_compare_exchange_weak_explicit)
273 (atomic_compare_exchange_strong_explicit, atomic_store)
274 (atomic_exchange, atomic_compare_exchange_weak)
275 (atomic_compare_exchange_strong): Use __atomic_val_t to make
276 scalar parameters be non-deduced contexts.
277 (atomic_fetch_add_explicit, atomic_fetch_sub_explicit)
278 (atomic_fetch_add, atomic_fetch_sub): Change first parameter to be
279 atomic instead of __atomic_base, and use __atomic_diff_t for scalar
281 (atomic_fetch_and_explicit, atomic_fetch_or_explicit)
282 (atomic_fetch_xor_explicit, atomic_fetch_and, atomic_fetch_or)
283 (atomic_fetch_xor): Use __atomic_val_t for scalar parameters.
284 (atomic_fetch_add_explicit, atomic_fetch_sub_explicit)
285 (atomic_fetch_add, atomic_fetch_sub): Remove overloads for atomic
287 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error lineno.
288 * testsuite/29_atomics/atomic/69769.cc: New test.
289 * testsuite/29_atomics/atomic/nonmembers.cc: New test.
290 * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
291 Disable test for C++17 and later.
292 * testsuite/29_atomics/atomic/requirements/typedefs.cc: New test.
293 * testsuite/29_atomics/atomic_integral/nonmembers.cc: New test.
294 * testsuite/29_atomics/atomic_integral/requirements/typedefs.cc: New
297 2018-05-23 Jonathan Wakely <jwakely@redhat.com>
299 * include/bits/fs_path.h (path::__is_encoded_char): Change from class
300 template to alias template.
301 (path::__value_type_is_char): Use remove_const_t.
302 (path:_S_string_from_iter): New helper function.
303 (path::_S_convert(InputIter, __null_terminated))
304 (path::_S_convert_loc(InputIter, __null_terminated, const locale&)):
305 Use _S_string_from_iter.
306 (path::string<_CharT, _Allocator>(const _Allocator&)): Allow sharing
308 * include/experimental/bits/fs_path.h (path::__is_encoded_char):
309 Change from class template to alias template.
310 (path::__value_type_is_char): Use remove_const.
311 (path:_S_string_from_iter): New helper function.
312 (path::_S_convert(InputIter, __null_terminated))
313 (path::_S_convert_loc(InputIter, __null_terminated, const locale&)):
314 Use _S_string_from_iter.
315 * testsuite/27_io/filesystem/path/append/source.cc: Test appending
317 * testsuite/27_io/filesystem/path/concat/strings.cc: Check for exact
318 string equality, not path equivalence.
319 * testsuite/27_io/filesystem/path/construct/format.cc: Check
320 construction from std::string and std::wstring and input iterators.
321 * testsuite/27_io/filesystem/path/construct/locale.cc: Check
322 construction from iterators.
323 * testsuite/experimental/filesystem/path/concat/strings.cc: Check for
324 exact string equality, not path equivalence.
325 * testsuite/experimental/filesystem/path/construct/locale.cc: Check
326 construction from iterators.
328 * include/bits/fs_path.h (path::_M_type): Change default member
329 initializer to _Filename.
330 (path::begin): Create past-the-end iterator for empty path.
331 * src/filesystem/std-path.cc (path::remove_filename()): Remove
333 (path::has_relative_path()): Return false for empty filenames.
334 (path::_M_split_cmpts): Set _M_type to _Filename for empty paths.
335 Fix offset of empty final component.
336 * testsuite/27_io/filesystem/path/itr/components.cc: New.
337 * testsuite/27_io/filesystem/path/itr/traversal.cc: Add new inputs.
339 2018-05-21 Jonathan Wakely <jwakely@redhat.com>
341 Add support for opening file streams from wide character strings.
342 * config/io/basic_file_stdio.cc [_GLIBCXX_HAVE__WFOPEN]
343 (__basic_file<char>::open(const wchar_t*, ios_base::openmode)):
345 * config/io/basic_file_stdio.h [_GLIBCXX_HAVE__WFOPEN]
346 (__basic_file<char>::open(const wchar_t*, ios_base::openmode)):
347 Declare new overload.
348 * configure.ac: Check for _wfopen.
349 * crossconfig.m4: Likewise.
350 * configure: Regenerate.
351 * config.h.in: Regenerate.
352 * include/bits/fstream.tcc [_GLIBCXX_HAVE__WFOPEN]
353 (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)):
355 * include/std/fstream [_GLIBCXX_HAVE__WFOPEN]
356 (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)):
357 Declare new overload.
358 [_GLIBCXX_HAVE__WFOPEN]
359 (basic_ifstream<C,T>::basic_ifstream(const wchar_t*, openmode))
360 (basic_ifstream<C,T>::basic_open(const wchar_t*, openmode))
361 (basic_ofstream<C,T>::basic_ifstream(const wchar_t*, openmode))
362 (basic_ofstream<C,T>::basic_open(const wchar_t*, openmode))
363 (basic_fstream<C,T>::basic_ifstream(const wchar_t*, openmode))
364 (basic_fstream<C,T>::basic_open(const wchar_t*, openmode)): Define
366 * testsuite/27_io/basic_filebuf/open/wchar_t/1.cc: New.
367 * testsuite/27_io/basic_ifstream/cons/wchar_t/1.cc: New.
368 * testsuite/27_io/basic_ifstream/open/wchar_t/1.cc: New.
369 * testsuite/27_io/basic_ofstream/cons/wchar_t/1.cc: New.
370 * testsuite/27_io/basic_ofstream/open/wchar_t/1.cc: New.
371 * testsuite/27_io/basic_fstream/cons/wchar_t/1.cc: New.
372 * testsuite/27_io/basic_fstream/open/wchar_t/1.cc: New.
374 2018-05-21 François Dumont <fdumont@gcc.gnu.org>
377 * include/bits/stl_tree.h
378 (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): Fix noexcept
381 2018-05-21 Jonathan Wakely <jwakely@redhat.com>
383 * src/filesystem/std-ops.cc (absolute): Report an error for empty
385 (weakly_canonical(const path&)): Do not call canonical on empty path.
386 (weakly_canonical(const path&, error_code&)): Likewise.
387 * testsuite/27_io/filesystem/operations/absolute.cc: Check for errors.
390 * testsuite/experimental/filesystem/path/preferred_separator.cc: Add
391 dg-require-filesystem-ts.
394 * src/c++11/cow-stdexcept.cc (logic_error, runtime_error): Explicitly
395 initialize base class to avoid warnings.
397 2018-05-19 Jonathan Wakely <jwakely@redhat.com>
399 * src/c++11/codecvt.cc (__codecvt_utf8_base<wchar_t>::do_in)
400 [__SIZEOF_WCHAR_T__==2 && __BYTE_ORDER__!=__ORDER_BIG_ENDIAN__]: Set
401 little_endian element in bitmask.
402 * testsuite/22_locale/codecvt/codecvt_utf8/69703.cc: Run all tests.
403 * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: New.
405 2018-05-18 François Dumont <fdumont@gcc.gnu.org>
407 * include/bits/stl_tree.h
408 (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): New.
409 (_Rb_tree(_Rb_tree&&, _Node_allocator&&, true_type)): New, use latter.
410 (_Rb_tree(_Rb_tree&&, _Node_allocator&&, false_type)): New.
411 (_Rb_tree(_Rb_tree&&, _Node_allocator&&)): Adapt, use latters.
412 * include/debug/map.h
413 (map(map&&, const_allocator_type&)): Add noexcept qualitication.
414 * include/debug/multimap.h
415 (multimap(multimap&&, const_allocator_type&)): Likewise.
416 * include/debug/set.h
417 (set(set&&, const_allocator_type&)): Likewise.
418 * include/debug/multiset.h
419 (multiset(multiset&&, const_allocator_type&)): Likewise.
420 * testsuite/23_containers/map/cons/noexcept_default_construct.cc:
422 * testsuite/23_containers/map/cons/noexcept_move_construct.cc:
424 * testsuite/23_containers/multimap/cons/noexcept_default_construct.cc:
426 * testsuite/23_containers/multimap/cons/noexcept_move_construct.cc:
428 * testsuite/23_containers/multiset/cons/noexcept_default_construct.cc:
430 * testsuite/23_containers/multiset/cons/noexcept_move_construct.cc:
432 * testsuite/23_containers/set/cons/noexcept_default_construct.cc:
434 * testsuite/23_containers/set/cons/noexcept_move_construct.cc:
437 2018-05-18 Jason Merrill <jason@redhat.com>
439 * include/bits/stl_deque.h (_Deque_iterator): Constrain constructor
440 for conversion to const_iterator. Add defaulted copy ops.
441 * libsupc++/new (bad_alloc): Add defaulted copy ops.
442 * libsupc++/exception.h (exception): Add defaulted copy ops.
443 * include/std/system_error (system_error): Add defaulted copy ops.
444 * include/std/stdexcept (domain_error, invalid_argument)
445 (length_error, out_of_range, range_error, overflow_error)
446 (underflow_error): Add defaulted copy ops.
447 * include/bits/stl_iterator.h (reverse_iterator): Add defaulted
449 * include/bits/allocator.h (allocator): Add defaulted copy assignment.
450 * include/ext/throw_allocator.h (condition_base): Add defaulted
451 default and copy ctor and copy assignment.
453 2018-05-18 Jonathan Wakely <jwakely@redhat.com>
456 * include/bits/regex.h [__cplusplus < 201703L] (basic_regex::icase)
457 (basic_regex::nosubs, basic_regex::optimize, basic_regex::collate)
458 (basic_regex::ECMAScript, basic_regex::basic, basic_regex::extended)
459 (basic_regex::awk, basic_regex::grep, basic_regex::egrep): Add
461 * include/bits/regex_automaton.h (_NFA::_M_insert_state): Adjust
463 * include/bits/regex_compiler.tcc (__INSERT_REGEX_MATCHER): Add
464 braces around body of do-while.
465 * testsuite/28_regex/basic_regex/85098.cc: New
467 2018-05-17 Jonathan Wakely <jwakely@redhat.com>
470 * src/filesystem/path.cc (path::preferred_separator): Add used
472 * testsuite/experimental/filesystem/path/preferred_separator.cc: New.
475 * libsupc++/cxxabi_init_exception.h (__cxa_free_exception): Declare.
476 * libsupc++/exception_ptr.h (make_exception_ptr) [__cpp_exceptions]:
477 Refactor to separate non-throwing and throwing implementations.
478 [__cpp_rtti && !_GLIBCXX_HAVE_CDTOR_CALLABI]: Deallocate the memory
479 if constructing the object throws.
481 2018-05-15 Jonathan Wakely <jwakely@redhat.com>
484 * include/bits/random.h (__detail::__is_seed_seq): New SFINAE helper.
485 (linear_congruential_engine, mersenne_twister_engine)
486 (subtract_with_carry_engine, discard_block_engine)
487 (independent_bits_engine, shuffle_order_engine): Use __is_seed_seq to
488 constrain function templates taking seed sequences.
489 * include/bits/random.tcc (linear_congruential_engine::seed(_Sseq&))
490 (mersenne_twister_engine::seed(_Sseq&))
491 (subtract_with_carry_engine::seed(_Sseq&)): Change return types to
493 * include/ext/random (simd_fast_mersenne_twister_engine): Use
494 __is_seed_seq to constrain function templates taking seed sequences.
495 * include/ext/random.tcc (simd_fast_mersenne_twister_engine::seed):
496 Change return type to match declaration.
497 * testsuite/26_numerics/random/discard_block_engine/cons/seed_seq2.cc:
499 * testsuite/26_numerics/random/independent_bits_engine/cons/
501 * testsuite/26_numerics/random/linear_congruential_engine/cons/
503 * testsuite/26_numerics/random/mersenne_twister_engine/cons/
505 * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error lineno.
506 * testsuite/26_numerics/random/shuffle_order_engine/cons/seed_seq2.cc:
508 * testsuite/26_numerics/random/subtract_with_carry_engine/cons/
510 * testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/
514 * include/bits/fs_path.h (path::is_absolute()): Use same definition
515 for all operating systems.
516 * include/experimental/bits/fs_path.h (path::is_absolute()): Likewise.
517 * testsuite/27_io/filesystem/path/query/is_absolute.cc: New.
518 * testsuite/27_io/filesystem/path/query/is_relative.cc: Fix comment.
519 * testsuite/experimental/filesystem/path/query/is_absolute.cc: New.
521 * testsuite/27_io/filesystem/path/decompose/extension.cc: Remove
522 unused <vector> header.
523 * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
524 * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
525 * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
526 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
527 * testsuite/27_io/filesystem/path/query/has_relative_path.cc:
529 * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
531 * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
532 * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
533 * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
534 * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
535 * testsuite/experimental/filesystem/path/decompose/extension.cc:
537 * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
538 * testsuite/experimental/filesystem/path/query/has_extension.cc:
540 * testsuite/experimental/filesystem/path/query/has_filename.cc:
542 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
544 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
546 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
548 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
550 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
552 * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
553 * testsuite/experimental/filesystem/path/query/is_relative.cc:
557 * include/bits/fs_path.h (path::operator/=, path::append): Construct
558 temporary path before calling _M_append.
559 (path::_M_append): Change parameter to path and implement C++17
561 * testsuite/27_io/filesystem/path/append/path.cc: Add helper function
562 and more examples from the standard.
563 * testsuite/27_io/filesystem/path/append/source.cc: New.
564 * testsuite/27_io/filesystem/path/decompose/filename.cc: Add comment.
565 * testsuite/27_io/filesystem/path/nonmember/append.cc: New.
567 * include/std/variant (__gen_vtable_impl::__visit_invoke): Qualify
568 __invoke to prevent ADL.
570 2018-05-14 Jonathan Wakely <jwakely@redhat.com>
573 * include/bits/fstream.tcc (basic_filebuf::close): Do not swallow
574 exceptions from _M_terminate_output().
575 * include/std/fstream (basic_filebuf::~basic_filebuf): Swallow any
576 exceptions from close().
577 * testsuite/27_io/basic_filebuf/close/81256.cc: New.
579 * include/bits/valarray_array.h (__valarray_get_memory): Remove.
580 (__valarray_get_storage): Call operator new directly. Remove ignored
581 top-level restrict qualifier and add malloc attribute instead.
582 (_Array<_Tp>::_Array(size_t)): Remove unused constructor.
585 * include/bits/valarray_array.h (_Array_copy_ctor<_Tp, true>)
586 (_Array_copier<_Tp, true>): Do not pass null pointers to memcpy.
589 * include/bits/node_handle.h (_Node_handle_common::_M_swap): Use value
591 * testsuite/23_containers/set/modifiers/node_swap.cc: New.
593 2018-05-13 Ville Voutilainen <ville.voutilainen@gmail.com>
596 * testsuite/20_util/variant/80165.cc: New.
598 2018-05-10 Jonathan Wakely <jwakely@redhat.com>
600 * doc/xml/faq.xml: Link to C++17 status. Add note to outdated answer.
601 * doc/xml/manual/debug_mode.xml: Add array and forward_list to list
602 of C++11 containers with Debug Mode support.
603 * doc/xml/manual/using.xml: Document Dual ABI for ios_base::failure.
604 * doc/html/*: Regenerate.
606 2018-05-10 Jason Merrill <jason@redhat.com>
608 * include/bits/regex_compiler.h (_S_cache_size): Change from
609 function to variable.
611 2018-05-10 Edward Smith-Rowland <3dw4rd@verizon.net>
613 PR libstdc++/83140 - assoc_legendre returns negated value when m is odd
614 * include/tr1/legendre_function.tcc (__assoc_legendre_p): Add __phase
615 argument defaulted to +1. Doxy comments on same.
616 * testsuite/special_functions/02_assoc_legendre/
617 check_value.cc: Regen.
618 * testsuite/tr1/5_numerical_facilities/special_functions/
619 02_assoc_legendre/check_value.cc: Regen.
621 2018-05-10 Jonathan Wakely <jwakely@redhat.com>
624 * include/bits/c++config.h (__replacement_assert): Add linkage
626 * include/bits/std_abs.h: Add comment to closing brace of block.
627 * include/c_global/cstddef: Add linkage specification.
628 * include/c_global/cstring: Likewise.
629 * include/c_global/cwchar: Likewise.
631 2018-05-09 François Dumont <fdumont@gcc.gnu.org>
633 * include/debug/safe_iterator.h (_Safe_iterator<>::_M_constant()):
635 (_Safe_iterator<>::_S_constant()): ...that.
636 * include/debug/safe_local_iterator.h
637 (_Safe_local_iterator<>::_M_constant()): Rename in...
638 (_Safe_local_iterator<>::_S_constant()): ...that.
639 * include/debug/formatter.h: Remove bits/cpp_type_traits.h include.
640 (_Iterator_state::__rbegin): New.
641 (_Iterator_state::__rmiddle): New.
642 (_Iterator_state::__rend): New.
643 (_Parameter::_Parameter(const _Safe_iterator<>&, const char*,
644 _Is_iterator)): Use _Safe_iterator<>::_S_constant. Grab normal underlying
646 (_Parameter::_Parameter(const _Safe_local_iterator<>&, const char*,
647 _Is_iterator)): Likewise.
648 (_Parameter::_S_reverse_state(_Iterator_state)): New.
649 (_Parameter(__gnu_cxx::__normal_iterator<> const&, const char*,
651 (_Parameter(std::reverse_iterator<> const&, const char*,
653 (_Parameter(std::reverse_iterator<_Safe_iterator<>> const&,
654 const char*, _Is_iterator)): New.
655 (_Parameter(std::move_iterator<> const&, const char*, _Is_iterator):
657 (_Parameter(std::move_iterator<_Safe_iterator<>> const&, const char*,
659 * testsuite/24_iterators/move_iterator/debug_neg.cc: New.
660 * testsuite/24_iterators/normal_iterator/debug_neg.cc: New.
661 * testsuite/24_iterators/reverse_iterator/debug_neg.cc: New.
663 2018-05-09 Jonathan Wakely <jwakely@redhat.com>
665 * include/bits/std_function.h (_Base_manager::_M_get_pointer):
666 Use constexpr if in C++17 mode.
667 (_Base_manager::_M_clone(_Any_data&, const _Any_data&, true_type)):
668 Copy from const object.
669 * testsuite/20_util/function/cons/non_copyconstructible.cc: New.
671 2018-05-08 François Dumont <fdumont@gcc.gnu.org>
673 * src/c++11/debug.cc [_GLIBCXX_HAVE_EXECINFO_H]: Include execinfo.h.
674 [_GLIBCXX_HAVE_EXECINFO_H](_Error_formatter::_M_error): Render
677 * include/debug/macros.h (__glibcxx_check_valid_range_at): New.
678 * include/debug/functions.h (__check_valid_range): Use latter.
679 * include/debug/macros.h (__glibcxx_check_valid_constructor_range): New,
681 * include/debug/deque
682 (deque::deque<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
683 * include/debug/forward_list
684 (forward_list::forward_list<_Iter>(_Iter, _Iter, const _Alloc&)):
687 (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
689 (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
690 * include/debug/map.h
691 (map::map<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
692 (map::map<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
694 * include/debug/multimap.h
695 (multimap::multimap<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
696 (multimap::multimap<_Iter>(_Iter, _Iter, const _Compare&,
697 const _Alloc&)): Likewise.
698 * include/debug/set.h
699 (set::set<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
700 (set::set<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
702 * include/debug/multiset.h
703 (multiset::multiset<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
704 (multiset::multiset<_Iter>(_Iter, _Iter, const _Compare&,
705 const _Alloc&)): Likewise.
706 * include/debug/string
707 (basic_string::basic_string<_Iter>(_Iter, _Iter, const _Alloc&)):
709 * include/debug/unordered_map
710 (unordered_map::unordered_map<_Iter>(_Iter, _Iter, const _Alloc&)):
712 (unordered_multimap::unordered_multimap<_Iter>(_Iter, _Iter,
713 const _Alloc&)): Likewise.
714 * include/debug/unordered_set
715 (unordered_set::unordered_set<_Iter>(_Iter, _Iter, const _Alloc&)):
717 (unordered_multiset::unordered_multiset<_Iter>(_Iter, _Iter,
718 const _Alloc&)): Likewise.
719 * include/debug/vector
720 (vector::vector<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
722 * include/debug/formatter.h (_Error_formatter::_M_function): New.
723 (_Error_formatter(const char*, unsigned int)): Adapt.
724 (_Error_formatter::_M_at): Rename in...
725 (_Error_formatter::_S_at): ...that and adapt.
726 * include/debug/macros.h (_GLIBCXX_DEBUG_VERIFY_AT_F): New.
727 (_GLIBCXX_DEBUG_VERIFY_AT, _GLIBCXX_DEBUG_VERIFY): Adapt.
728 * src/c++11/debug.cc (_Error_formatter::_M_error): Render _M_function
731 2018-05-08 Jonathan Wakely <jwakely@redhat.com>
733 * include/bits/regex_automaton.h (_NFA_base::_M_paren_stack, _NFA):
734 Use normal std::vector even in Debug Mode.
737 * include/Makefile.am [!ENABLE_FLOAT128]: Change c++config.h entry
738 to #undef _GLIBCXX_USE_FLOAT128 instead of defining it to zero.
739 * include/Makefile.in: Regenerate.
740 * include/bits/c++config (_GLIBCXX_USE_FLOAT128): Move definition
741 within conditional block.
743 2018-05-07 Jonathan Wakely <jwakely@redhat.com>
745 * doc/xml/manual/using.xml (table.cmd_options): Document that the
746 C++17 Filesystem implementation also needs -lstdc++fs.
749 * include/bits/fs_path.h (operator/): Permit copy elision.
750 * include/experimental/bits/fs_path.h (operator/): Likewise.
752 2018-05-07 Edward Smith-Rowland <3dw4rd@verizon.net>
754 Moar PR libstdc++/80506
755 * include/bits/random.tcc (gamma_distribution::__generate_impl()):
756 Fix magic number used in loop condition.
758 2018-05-04 Jonathan Wakely <jwakely@redhat.com>
760 PR libstdc++/85642 fix is_nothrow_default_constructible<optional<T>>
761 * include/std/optional (_Optional_payload): Add noexcept to default
762 constructor. Re-indent.
763 (_Optional_payload<_Tp, true, true, true>): Likewise. Add noexcept to
764 constructor for copying disengaged payloads.
765 (_Optional_payload<_Tp, true, false, true>): Likewise.
766 (_Optional_payload<_Tp, true, true, false>): Likewise.
767 (_Optional_payload<_Tp, true, false, false>): Likewise.
768 * testsuite/20_util/optional/cons/85642.cc: New.
769 * testsuite/20_util/optional/cons/value_neg.cc: Adjust dg-error lines.
771 2018-05-03 Jonathan Wakely <jwakely@redhat.com>
774 * include/tr1/cmath [__STRICT_ANSI__] (hypergf, hypergl, hyperg): Use
775 inline definitions instead of using-declarations.
776 [__STRICT_ANSI__] (conf_hypergf, conf_hypergl, conf_hyperg): Likewise.
777 * testsuite/tr1/5_numerical_facilities/special_functions/
778 07_conf_hyperg/compile_cxx17.cc: New.
779 * testsuite/tr1/5_numerical_facilities/special_functions/
780 17_hyperg/compile_cxx17.cc: New.
783 * include/std/variant (visit): Qualify std::get call.
785 PR libstdc++/85632 use uintmax_t for arithmetic
786 * src/filesystem/ops.cc (experimental::filesystem::space): Perform
787 arithmetic in result type.
788 * src/filesystem/std-ops.cc (filesystem::space): Likewise.
789 * testsuite/27_io/filesystem/operations/space.cc: Check total capacity
790 is greater than free space.
791 * testsuite/experimental/filesystem/operations/space.cc: New.
793 * testsuite/20_util/remove_cvref/requirements/alias_decl.cc: New.
794 * testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc:
796 * testsuite/20_util/remove_cvref/value.cc: New.
797 * testsuite/20_util/remove_cvref/value_ext.cc: New.
799 PR libstdc++/84087 LWG DR 2268 basic_string default arguments
800 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI=1]
801 (append(const basic_string&, size_type, size_type)
802 (assign(const basic_string&, size_type, size_type)
803 (insert(size_type, const basic_string&, size_type, size_type)
804 (replace(size_type,size_type,const basic_string&,size_type,size_type)
805 (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
806 Add default arguments (LWG 2268).
807 [_GLIBCXX_USE_CXX11_ABI=0]
808 (append(const basic_string&, size_type, size_type)
809 (assign(const basic_string&, size_type, size_type)
810 (insert(size_type, const basic_string&, size_type, size_type)
811 (replace(size_type,size_type,const basic_string&,size_type,size_type)
812 (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
814 * testsuite/21_strings/basic_string/dr2268.cc: New test.
817 * include/std/thread (thread::__not_same): New SFINAE helper.
818 (thread::thread(_Callable&&, _Args&&...)): Add SFINAE constraint that
819 first argument is not a std::thread. Add static assertion to check
820 INVOKE expression is valid.
821 (thread::thread(thread&), thread::thread(const thread&&)): Remove.
822 (thread::_Invoke::_M_invoke, thread::_Invoke::operator()): Use
823 __invoke_result for return types and remove exception specifications.
824 * testsuite/30_threads/thread/cons/84535.cc: New.
826 * include/std/future (__async_result_of): Use __invoke_result instead
829 * include/std/any (any_cast): Use __remove_cvref_t.
830 * include/std/tuple (__make_tuple): Likewise.
831 * include/std/type_traits (__remove_cvref_t): Define.
832 (__result_of_memobj, __result_of_memfun): Use __remove_cvref_t.
833 [__cplusplus > 201703L] (remove_cvref, remove_cvref_t): Define.
834 * include/std/variant (__erased_hash): Use __remove_cvref_t.
836 2018-05-02 François Dumont <fdumont@gcc.gnu.org>
838 * include/bits/deque.tcc (deque<>::_M_assign_aux): Cast to void to
839 ensure overloaded comma not used.
840 * include/bits/list.tcc (list<>::_M_assign_dispatch): Likewise.
841 * include/bits/vector.tcc (vector<>::_M_assign_aux): Likewise.
842 * include/bits/stl_bvector.h (vector<bool>::_M_assign_aux): Likewise.
843 * testsuite/23_containers/deque/modifiers/assign/1.cc: New.
844 * testsuite/23_containers/list/modifiers/assign/1.cc: New.
845 * testsuite/23_containers/vector/bool/modifiers/assign/1.cc: New.
846 * testsuite/23_containers/vector/modifiers/assign/1.cc: New.
848 2018-05-02 Jonathan Wakely <jwakely@redhat.com>
851 * include/bits/ios_base.h (ios_base::iword, ios_base::pword): Cast
853 * src/c++11/ios.cc (ios_base::_M_grow_words): Treat negative indices
854 as failure. Refactor error handling.
855 * testsuite/27_io/ios_base/storage/68197.cc: New.
859 * include/bits/gslice_array.h (gslice_array): Define default
860 constructor as deleted, as per C++11 standard.
861 * include/bits/mask_array.h (mask_array): Likewise.
862 * include/bits/slice_array.h (slice_array): Likewise.
863 * include/bits/valarray_after.h (_GBase, _GClos, _IBase, _IClos): Move
864 to namespace __detail.
865 (_GBase::_M_expr, _IBase::_M_expr): Use _ValArrayRef for type of data
867 * include/bits/valarray_before.h (_ValArrayRef): New helper for type
868 of data members in closure objects.
869 (_FunBase, _ValFunClos, _RefFunClos, _UnBase, _UnClos, _BinBase)
870 (_BinBase2, _BinBase1, _BinClos, _SBase, _SClos): Move to namespace
872 (_FunBase::_M_expr, _UnBase::_M_expr, _BinBase::_M_expr1)
873 (_BinBase::_M_expr2, _BinBase2::_M_expr1, _BinBase1::_M_expr2)
874 (_SBase::_M_expr): Use _ValArrayRef for type of data members.
875 * include/std/valarray (_UnClos, _BinClos, _SClos, _GClos, _IClos)
876 (_ValFunClos, _RefFunClos): Move to namespace __detail and add
877 using-declarations to namespace std.
878 * testsuite/26_numerics/valarray/83860.cc: New.
880 * testsuite/backward/strstream_move.cc: Remove duplicate function
884 * include/backward/strstream (strstreambuf): Define move constructor
885 and move assignment operator.
886 (istrstream, ostrstream, strstream): Likewise.
887 * testsuite/backward/strstream_move.cc: New.
889 2018-05-01 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
892 * acinclude.m4: Set ENABLE_FLOAT128 instead of _GLIBCXX_USE_FLOAT128.
893 * config.h.in: Remove references to _GLIBCXX_USE_FLOAT128.
894 * configure: Regenerate.
895 * include/Makefile.am: Replace the value of _GLIBCXX_USE_FLOAT128
896 based on ENABLE_FLOAT128.
897 * include/Makefile.in: Regenerate.
898 * include/bits/c++config: Define _GLIBCXX_USE_FLOAT128.
899 [!defined(__FLOAT128__) && !defined(__SIZEOF_FLOAT128__)]: Undefine
900 _GLIBCXX_USE_FLOAT128.
902 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
904 * configure: Regenerated.
906 2018-04-19 Jakub Jelinek <jakub@redhat.com>
908 * configure: Regenerated.
910 2018-04-18 Jonathan Wakely <jwakely@redhat.com>
911 Jakub Jelinek <jakub@redhat.com>
914 * src/c++11/Makefile.am: Don't generate debuginfo again for
915 cxx11-ios_failure-lt.s and cxx11-ios_failure.s files.
916 * src/c++11/Makefile.in: Regenerate.
918 2018-04-18 Jonathan Wakely <jwakely@redhat.com>
921 * testsuite/30_threads/thread/cons/terminate.cc
922 [!_GLIBCXX_USE_C99_STDLIB] : Use _exit or std::exit instead of _Exit.
924 2018-04-18 David Malcolm <dmalcolm@redhat.com>
927 * configure: Regenerate.
929 2018-04-16 Jonathan Wakely <jwakely@redhat.com>
931 * testsuite/experimental/filesystem/file_status/1.cc: Add
932 -DUSE_FILESYSTEM_TS to dg-options.
933 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
935 * testsuite/experimental/filesystem/iterators/pop.cc: Likewise.
936 * testsuite/experimental/filesystem/iterators/
937 recursive_directory_iterator.cc: Likewise.
938 * testsuite/experimental/filesystem/operations/absolute.cc: Likewise.
939 * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
940 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
941 * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
942 * testsuite/experimental/filesystem/operations/create_directories.cc:
944 * testsuite/experimental/filesystem/operations/create_directory.cc:
946 * testsuite/experimental/filesystem/operations/create_symlink.cc:
948 * testsuite/experimental/filesystem/operations/current_path.cc:
950 * testsuite/experimental/filesystem/operations/equivalent.cc: Likewise.
951 * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
952 * testsuite/experimental/filesystem/operations/file_size.cc: Likewise.
953 * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
954 * testsuite/experimental/filesystem/operations/last_write_time.cc:
956 * testsuite/experimental/filesystem/operations/permissions.cc:
958 * testsuite/experimental/filesystem/operations/read_symlink.cc:
960 * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
961 * testsuite/experimental/filesystem/operations/remove_all.cc: Likewise.
962 * testsuite/experimental/filesystem/operations/status.cc: Likewise.
963 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
965 * testsuite/experimental/filesystem/path/append/path.cc: Likewise.
966 * testsuite/experimental/filesystem/path/assign/assign.cc: Likewise.
967 * testsuite/experimental/filesystem/path/assign/copy.cc: Likewise.
968 * testsuite/experimental/filesystem/path/compare/compare.cc: Likewise.
969 * testsuite/experimental/filesystem/path/compare/path.cc: Likewise.
970 * testsuite/experimental/filesystem/path/compare/strings.cc: Likewise.
971 * testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
972 * testsuite/experimental/filesystem/path/concat/strings.cc: Likewise.
973 * testsuite/experimental/filesystem/path/construct/copy.cc: Likewise.
974 * testsuite/experimental/filesystem/path/construct/default.cc:
976 * testsuite/experimental/filesystem/path/construct/locale.cc: Likewise.
977 * testsuite/experimental/filesystem/path/construct/range.cc: Likewise.
978 * testsuite/experimental/filesystem/path/construct/string_view.cc:
980 * testsuite/experimental/filesystem/path/decompose/extension.cc:
982 * testsuite/experimental/filesystem/path/decompose/filename.cc:
984 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
986 * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
988 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
990 * testsuite/experimental/filesystem/path/decompose/root_name.cc:
992 * testsuite/experimental/filesystem/path/decompose/root_path.cc:
994 * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
995 * testsuite/experimental/filesystem/path/generic/generic_string.cc:
997 * testsuite/experimental/filesystem/path/itr/traversal.cc: Likewise.
998 * testsuite/experimental/filesystem/path/modifiers/clear.cc: Likewise.
999 * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
1001 * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
1003 * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
1005 * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
1007 * testsuite/experimental/filesystem/path/modifiers/swap.cc: Likewise.
1008 * testsuite/experimental/filesystem/path/native/string.cc: Likewise.
1009 * testsuite/experimental/filesystem/path/nonmember/hash_value.cc:
1011 * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
1012 * testsuite/experimental/filesystem/path/query/has_extension.cc:
1014 * testsuite/experimental/filesystem/path/query/has_filename.cc:
1016 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
1018 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
1020 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
1022 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
1024 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
1026 * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
1027 * testsuite/experimental/filesystem/path/query/is_relative.cc:
1030 2018-04-13 Jonathan Wakely <jwakely@redhat.com>
1032 * src/c++11/Makefile.am: Fix sed command.
1033 * src/c++11/Makefile.in: Regenerate.
1035 * src/c++11/Makefile.am: Rewrite sed rule to be less fragile and to
1036 handle mangled names starting with double underscores on darwin.
1037 * src/c++11/Makefile.in: Regenerate.
1039 2018-04-12 Jonathan Wakely <jwakely@redhat.com>
1041 * src/c++11/Makefile.am: Fix comment.
1042 * src/c++11/Makefile.in: Regenerate.
1043 * src/c++11/cxx11-ios_failure.cc: Fix comment.
1044 * src/c++98/ios_failure.cc: Likewise.
1046 * src/c++11/ios.cc: Remove redundant macro definition.
1048 2018-04-11 Jonathan Wakely <jwakely@redhat.com>
1050 * doc/xml/manual/abi.xml: Document header locations in recent
1052 * doc/xml/manual/evolution.xml: Add API changes since GCC 5.
1053 * doc/xml/manual/spine.xml: Update copyright years.
1054 * doc/xml/manual/strings.xml: Adjust tolower example to avoid
1055 undefined behaviour.
1056 * doc/xml/manual/test.xml: Update outdated notes on VERIFY in tests.
1057 * doc/html/*: Regenerate.
1059 2018-04-10 Jonathan Wakely <jwakely@redhat.com>
1061 * doc/xml/faq.xml: Update links to archived copy of SGI STL docs.
1062 * doc/xml/manual/backwards_compatibility.xml: Likewise.
1063 * doc/xml/manual/containers.xml: Likewise.
1064 * doc/xml/manual/debug_mode.xml: Likewise.
1065 * doc/xml/manual/extensions.xml: Likewise.
1066 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise.
1067 * doc/xml/manual/using.xml: Likewise.
1068 * doc/xml/manual/utilities.xml: Likewise.
1071 * src/c++11/Makefile.am [ENABLE_DUAL_ABI]: Add special rules for
1072 cxx11-ios_failure.cc to rewrite type info for __ios_failure.
1073 * src/c++11/Makefile.in: Regenerate.
1074 * src/c++11/cxx11-ios_failure.cc (__ios_failure, __iosfail_type_info):
1076 [_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
1077 * src/c++11/ios.cc (__throw_ios_failure): Remove definition.
1078 * src/c++98/ios_failure.cc (__construct_ios_failure)
1079 (__destroy_ios_failure, is_ios_failure_handler): New functions.
1080 [!_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
1081 * testsuite/27_io/ios_base/failure/dual_abi.cc: New.
1082 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Revert changes to
1083 handler types, to always catch std::ios_base::failure.
1084 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1085 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1086 exceptions_failbit.cc: Likewise.
1087 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1088 exceptions_failbit.cc: Likewise.
1089 * testsuite/27_io/basic_istream/extractors_other/char/
1090 exceptions_null.cc: Likewise.
1091 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1092 exceptions_null.cc: Likewise.
1093 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1094 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1095 * testsuite/27_io/basic_ostream/inserters_other/char/
1096 exceptions_null.cc: Likewise.
1097 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1098 exceptions_null.cc: Likewise.
1099 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1101 2018-04-05 Jonathan Wakely <jwakely@redhat.com>
1103 * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Qualify
1104 __get calls to avoid ADL and avoid ambiguity due to Clang bug.
1106 2018-04-03 Jonathan Wakely <jwakely@redhat.com>
1109 * include/std/variant (_Move_assign_base::operator=): Fix incorrect
1111 * testsuite/20_util/variant/85183.cc: New.
1113 2018-03-26 Jonathan Wakely <jwakely@redhat.com>
1115 * include/std/variant (__get): Qualify calls to avoid ADL.
1116 (__select_index): Adjust whitespace.
1117 (variant): Add using-declaration to workaround Clang bug.
1119 2018-03-22 Jonathan Wakely <jwakely@redhat.com>
1122 * include/bits/stl_function.h (greater::__not_overloaded)
1123 (less::__not_overloaded, greater_equal::__not_overloaded)
1124 (less_equal::__not_overloaded): Fix ambiguous specializations.
1125 * testsuite/20_util/function_objects/comparisons_pointer.cc: Add
1126 tests for type with overloaded operators.
1128 2018-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1131 * testsuite/experimental/memory_resource/resource_adaptor.cc:
1132 xfail execution on 32-bit Solaris/x86.
1134 2018-03-21 Jonathan Wakely <jwakely@redhat.com>
1136 * testsuite/20_util/function_objects/comparisons_pointer.cc: Use
1137 VERIFY instead of assert.
1138 * testsuite/20_util/hash/84998.cc: New test.
1139 * testsuite/23_containers/vector/cons/destructible_debug_neg.cc: New
1140 copy of test adjusted for Debug Mode.
1141 * testsuite/23_containers/vector/cons/destructible_neg.cc: Do not run
1144 2018-03-20 François Dumont <fdumont@gcc.gnu.org>
1147 * include/bits/stl_bvector.h: Fix std::hash friend declaration.
1148 * include/std/bitset: Likewise.
1149 * include/bits/stl_map.h (std::map<>): Fix _Rb_tree_merge_helper friend
1151 * include/bits/stl_multimap.h (std::multimap<>): Likewise.
1152 * include/bits/stl_multiset.h (std::multiset<>): Likewise.
1153 * include/bits/stl_set.h (std::set<>): Likewise.
1154 * include/bits/unordered_map.h (std::unordered_map<>): Fix
1155 _Hash_merge_helper friend declaration.
1156 (std::unordered_multimap<>): Likewise.
1157 * include/bits/unordered_set.h (std::unordered_set<>): Likewise.
1158 (std::unordered_multiset<>): Likewise.
1160 2018-03-19 Gerald Pfeifer <gerald@pfeifer.com>
1162 * doc/xml/api.xml: www.fsf.org has moved to https. Also omit
1163 trailing slash for domain level link.
1164 * doc/xml/faq.xml: Ditto.
1165 * doc/xml/manual/appendix_free.xml (software): Ditto.
1166 * doc/xml/manual/intro.xml: Ditto.
1167 * doc/xml/manual/spine.xml: Ditto.
1168 * doc/xml/spine.xml: Ditto.
1170 2018-03-19 Gerald Pfeifer <gerald@pfeifer.com>
1172 * doc/xml/manual/documentation_hacking.xml: Adjust link to
1175 2018-03-17 Jonathan Wakely <jwakely@redhat.com>
1177 * testsuite/20_util/function_objects/comparisons_pointer.cc: Adjust
1178 to compile as C++98.
1180 2018-03-14 Jonathan Wakely <jwakely@redhat.com>
1183 * include/bits/stl_function.h (greater<_Tp*>, less<_Tp*>)
1184 (greater_equal<_Tp*>, less_equal<_Tp>*): Add partial specializations
1185 to ensure total order for pointers.
1186 (greater<void>, less<void>, greater_equal<void>, less_equal<void>):
1187 Add operator() overloads for pointer arguments and make generic
1188 overloads dispatch to new _S_cmp functions when comparisons would
1189 use built-in operators for pointers.
1190 * testsuite/20_util/function_objects/comparisons_pointer.cc: New.
1192 2018-03-12 Jonathan Wakely <jwakely@redhat.com>
1196 * crossconfig.m4: Check for aligned_alloc etc. on freebsd and mingw32.
1197 * configure: Regenerate.
1198 * include/c_global/cstdlib [_GLIBCXX_HAVE_ALIGNED_ALLOC]
1199 (aligned_alloc): Add using-declaration.
1200 * testsuite/18_support/aligned_alloc/aligned_alloc.cc: New test.
1202 2018-03-09 François Dumont <fdumont@gcc.gnu.org>
1204 * python/libstdcxx/v6/printers.py (build_libstdcxx_dictionary):
1205 Fix std::_Fwd_list_iterator and std::_Fwd_list_const_iterator printers
1208 2018-03-09 Jonathan Wakely <jwakely@redhat.com>
1211 * include/std/variant (get<_Tp, _Types...>, get_if<_Tp, _Types...>):
1212 Qualify calls to get<_Np, Types...> and get_if<_Np, _Types...>.
1214 src/filesystem/ops.cc (create_dir): Pass error_code to is_directory.
1215 src/filesystem/std-ops.cc (create_dir): Likewise.
1217 2018-03-08 François Dumont <fdumont@gcc.gnu.org>
1219 * python/libstdcxx/v6/printers.py (NodeIteratorPrinter): New.
1220 (StdListIteratorPrinter): Inherit from latter.
1221 (StdFwdListIteratorPrinter): New, inherit from latter.
1222 (StdDebugIteratorPrinter.to_string): Use non-debug iterator printer
1223 when iterator has no associated container.
1224 (build_libstdcxx_dictionary): Add __gnu_cxx::_Fwd_list_iterator and
1225 __gnu_cxx::_Fwd_list_const_iterator printers. Remove __norm namespace
1227 * testsuite/libstdc++-prettyprinters/debug.cc: Adapt.
1228 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Adapt.
1230 2018-03-06 Ville Voutilainen <ville.voutilainen@gmail.com>
1233 * include/std/optional (_Optional_payload): Split into multiple
1234 specializations that can handle different cases of trivial or
1235 non-trivial assignment operators.
1236 * testsuite/20_util/optional/84601.cc: New.
1237 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
1239 2018-03-02 Jonathan Wakely <jwakely@redhat.com>
1242 * include/bits/parse_numbers.h (_Number_help): Add partial
1243 specialization to handle digit separators. Adjust partial
1244 specialization for recursion temrination to require _Pow == 1ULL.
1245 * testsuite/20_util/duration/literals/84671.cc: New
1247 2018-02-27 Ville Voutilainen <ville.voutilainen@gmail.com>
1249 Implement the missing bits of LWG 2769
1250 * include/std/any (any_cast(const any&)): Add static_assert.
1251 (any_cast(any&)): Likewise.
1252 (any_cast(any&&)): Likewise, and remove the handling
1253 for copyable-but-not-movable type.
1254 * testsuite/20_util/any/misc/any_cast.cc: Adjust.
1255 * testsuite/20_util/any/misc/any_cast_neg.cc: Likewise, and
1258 2018-02-23 Jonathan Wakely <jwakely@redhat.com>
1261 * include/std/thread (thread::__make_invoker): Construct tuple
1262 directly instead of using make_tuple.
1263 * testsuite/30_threads/async/84532.cc: New.
1264 * testsuite/30_threads/thread/84532.cc: New.
1266 2018-02-20 François Dumont <fdumont@gcc.gnu.org>
1268 * include/ext/aligned_buffer.h [_GLIBCXX_INLINE_VERSION]
1269 (template<> __aligned_buffer): Define as __aligned_membuf alias.
1271 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
1274 * configure: Regenerate.
1276 2018-02-15 Jonathan Wakely <jwakely@redhat.com>
1279 * configure.ac (INCLUDE_DIR_NOTPARALLEL): Define.
1280 * configure: Regenerate.
1281 * include/Makefile.am (INCLUDE_DIR_NOTPARALLEL): Add .NOTPARALLEL when
1283 * include/Makefile.in: Regenerate.
1285 2018-01-29 Jonathan Wakely <jwakely@redhat.com>
1288 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc:
1289 Add -ffloat-store to options for m68k and ia32.
1291 * doc/xml/faq.xml: Update copyright years.
1292 * doc/html/*: Regenerate.
1295 * include/std/any (any::__do_emplace): Only set _M_manager after
1296 constructing the contained object.
1297 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust dg-error line.
1298 * testsuite/20_util/any/modifiers/83658.cc: New test.
1300 2018-01-25 Jonathan Wakely <jwakely@redhat.com>
1303 * include/c_global/cstddef (__byte_operand): Define primary template.
1304 * testsuite/18_support/byte/81076.cc: New test.
1306 2018-01-19 Christophe Lyon <christophe.lyon@linaro.org>
1308 * testsuite/ext/special_functions/airy_ai/check_nan.cc: Fix
1309 dg-options and dg-add-options order.
1310 * testsuite/ext/special_functions/airy_bi/check_nan.cc: Likewise.
1311 * testsuite/ext/special_functions/conf_hyperg/check_nan.cc:
1313 * testsuite/ext/special_functions/hyperg/check_nan.cc: Likewise.
1314 * testsuite/special_functions/01_assoc_laguerre/check_nan.cc:
1316 * testsuite/special_functions/02_assoc_legendre/check_nan.cc:
1318 * testsuite/special_functions/03_beta/check_nan.cc: Likewise.
1319 * testsuite/special_functions/04_comp_ellint_1/check_nan.cc:
1321 * testsuite/special_functions/05_comp_ellint_2/check_nan.cc:
1323 * testsuite/special_functions/06_comp_ellint_3/check_nan.cc:
1325 * testsuite/special_functions/06_comp_ellint_3/pr66689.cc:
1327 * testsuite/special_functions/07_cyl_bessel_i/check_nan.cc:
1329 * testsuite/special_functions/08_cyl_bessel_j/check_nan.cc:
1331 * testsuite/special_functions/09_cyl_bessel_k/check_nan.cc:
1333 * testsuite/special_functions/10_cyl_neumann/check_nan.cc:
1335 * testsuite/special_functions/11_ellint_1/check_nan.cc: Likewise.
1336 * testsuite/special_functions/12_ellint_2/check_nan.cc: Likewise.
1337 * testsuite/special_functions/13_ellint_3/check_nan.cc: Likewise.
1338 * testsuite/special_functions/13_ellint_3/pr66689.cc: Likewise.
1339 * testsuite/special_functions/14_expint/check_nan.cc: Likewise.
1340 * testsuite/special_functions/15_hermite/check_nan.cc: Likewise.
1341 * testsuite/special_functions/16_laguerre/check_nan.cc: Likewise.
1342 * testsuite/special_functions/17_legendre/check_nan.cc: Likewise.
1343 * testsuite/special_functions/18_riemann_zeta/check_nan.cc:
1345 * testsuite/special_functions/19_sph_bessel/check_nan.cc:
1347 * testsuite/special_functions/20_sph_legendre/check_nan.cc:
1349 * testsuite/special_functions/21_sph_neumann/check_nan.cc:
1352 2018-01-18 Uros Bizjak <ubizjak@gmail.com>
1354 * configure.ac (AC_CHECK_HEADERS): Add linux/types.h. Conditionally
1355 include linux/types.h when checking linux/random.h header.
1356 * config.h.in: Regenerate.
1358 * src/c++11/random.cc: Conditionally include linux/types.h.
1360 2018-01-16 Eric Botcazou <ebotcazou@adacore.com>
1362 * testsuite/17_intro/names.cc: Undefine 'y' on SPARC/Linux.
1364 2018-01-16 Jonathan Wakely <jwakely@redhat.com>
1367 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace std::c[a-g]* wildcard
1368 pattern with exact match for std::cerr.
1370 2018-01-15 Jonathan Wakely <jwakely@redhat.com>
1373 * include/bits/random.h (chi_squared_distribution::param): Update
1374 gamma distribution parameter.
1375 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc: New
1379 * include/std/type_traits (has_unique_object_representations_v): Add
1381 * testsuite/20_util/has_unique_object_representations/value.cc: Check
1384 2018-01-15 Ville Voutilainen <ville.voutilainen@gmail.com>
1386 Make optional conditionally
1387 trivially_{copy,move}_{constructible,assignable}
1388 * include/std/optional (_Optional_payload): Fix the comment in
1389 the class head and turn into a primary and one specialization.
1390 (_Optional_payload::_M_engaged): Strike the NSDMI.
1391 (_Optional_payload<_Tp, false>::operator=(const _Optional_payload&)):
1393 (_Optional_payload<_Tp, false>::operator=(_Optional_payload&&)):
1395 (_Optional_payload<_Tp, false>::_M_get): Likewise.
1396 (_Optional_payload<_Tp, false>::_M_reset): Likewise.
1397 (_Optional_base_impl): Likewise.
1398 (_Optional_base): Turn into a primary and three specializations.
1399 (optional(nullopt)): Change the base init.
1400 * testsuite/20_util/optional/assignment/8.cc: New.
1401 * testsuite/20_util/optional/cons/trivial.cc: Likewise.
1402 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
1404 2018-01-15 Jonathan Wakely <jwakely@redhat.com>
1407 * python/libstdcxx/v6/printers.py (strip_inline_namespaces): New.
1408 (get_template_arg_list): New.
1409 (StdVariantPrinter._template_args): Remove, use get_template_arg_list
1411 (TemplateTypePrinter): Rewrite to work with gdb.Type objects instead
1412 of strings and regular expressions.
1413 (add_one_template_type_printer): Adapt to new TemplateTypePrinter.
1414 (FilteringTypePrinter): Add docstring. Match using startswith. Use
1415 strip_inline_namespaces instead of strip_versioned_namespace.
1416 (add_one_type_printer): Prepend namespace to match argument.
1417 (register_type_printers): Add type printers for char16_t and char32_t
1418 string types and for types using cxx11 ABI. Update calls to
1419 add_one_template_type_printer to provide default argument dicts.
1420 * testsuite/libstdc++-prettyprinters/80276.cc: New test.
1421 * testsuite/libstdc++-prettyprinters/whatis.cc: Remove tests for
1422 basic_string<unsigned char> and basic_string<signed char>.
1423 * testsuite/libstdc++-prettyprinters/whatis2.cc: Duplicate whatis.cc
1424 to test local variables, without overriding _GLIBCXX_USE_CXX11_ABI.
1426 2018-01-14 Andreas Schwab <schwab@linux-m68k.org>
1429 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1431 2018-01-13 Tim Shen <timshen@google.com>
1434 * include/bits/regex.tcc (regex_replace): Fix escaping in sed.
1435 * testsuite/28_regex/algorithms/regex_replace/char/pr83601.cc: Tests.
1436 * testsuite/28_regex/algorithms/regex_replace/wchar_t/pr83601.cc: Tests.
1438 2018-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1441 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc:
1442 Remove dg-xfail-run-if.
1444 2018-01-10 François Dumont <fdumont@gcc.gnu.org>
1446 * include/bits/forward_list.h
1447 (_Fwd_list_node_base(_Fwd_list_node_base&&)): New.
1448 (_Fwd_list_node_base& operator=(_Fwd_list_node_base&&)): New.
1449 (_Fwd_list_node_base(const _Fwd_list_node_base&)): Explicit delete.
1450 (_Fwd_list_node_base& operator=(const _Fwd_list_node_base&)): Likewise.
1451 (_Fwd_list_impl()): Add noexcept qualification.
1452 (_Fwd_list_impl(const _Node_alloc_type&)): Delete.
1453 (_Fwd_list_impl(_Fwd_list_impl&&)): New, default.
1454 (_Fwd_list_impl(_Fwd_list_impl&&, _Node_alloc_type&&)): New.
1455 (_Fwd_list_base()): Default.
1456 (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&, true_type)): New.
1457 (_Fwd_list_base(_Fwd_list_base&&)): Default.
1458 (forward_list<>()): Default.
1459 (forward_list<>(forward_list&&)): Default.
1460 (forward_list(forward_list&&, _Node_alloc_type&&, false_type)): New.
1461 (forward_list(forward_list&&, _Node_alloc_type&&, true_type)): New.
1462 (forward_list(forward_list&&, const _Alloc&)): Adapt to use latters.
1463 * include/bits/forward_list.tcc
1464 (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&)): Adapt to use
1465 _M_impl._M_head move assignment.
1466 (forward_list<>::merge(forward_list<>&&, _Comp)): Likewise.
1467 * testsuite/23_containers/forward_list/allocator/default_init.cc: New.
1469 2018-01-09 Jonathan Wakely <jwakely@redhat.com>
1472 * python/libstdcxx/v6/printers.py (SharedPointerPrinter)
1473 (UniquePointerPrinter): Print correct template argument, not type of
1475 (TemplateTypePrinter._recognizer.recognize): Handle failure to lookup
1477 * testsuite/libstdc++-prettyprinters/cxx11.cc: Test unique_ptr of
1479 * testsuite/libstdc++-prettyprinters/cxx17.cc: Test shared_ptr and
1480 weak_ptr of array types.
1482 2018-01-09 François Dumont <fdumont@gcc.gnu.org>
1485 * include/bits/hashtable_policy.h
1486 (__distance_fwd(_Iterator, _Iterator, input_iterator_tag)): Return 1 if
1488 (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, true_type)): New.
1489 (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, false_type)):
1490 Add false_type parameter.
1491 (_Insert_base::insert): Adapt.
1492 * include/bits/hashtable.h (_Hashtable::operator=(initializzr_list<>)):
1494 (_Hashtable::_M_insert(_Arg&&, const _NodeGen&, true_type, size_t)):
1495 Add __n_elt parameter, defaulted to 1.
1496 (_Hashtable::_M_insert_unique_node): Likewise. Use it to call rehash
1497 policy _M_need_rehash.
1498 (_Hashtable::_M_merge_unique): Pass target number of elements to add to
1499 produce only 1 rehash if necessary.
1500 * testsuite/23_containers/unordered_map/insert/83709.cc: New.
1501 * testsuite/23_containers/unordered_set/insert/83709.cc: New.
1503 2018-01-09 Juraj Oršulić <juraj.orsulic@fer.hr>
1504 Jonathan Wakely <jwakely@redhat.com>
1506 PR libstdc++/59253 (partial)
1507 * python/libstdcxx/v6/printers.py (SmartPtrIterator): Common iterator
1508 type for pointer stored by shared_ptr, weak_ptr and unique_ptr.
1509 (SharedPointerPrinter, UniquePointerPrinter): Treat stored values as
1511 * testsuite/libstdc++-prettyprinters/cxx11.cc: Update expected output
1512 of unique_ptr printer.
1513 * testsuite/libstdc++-prettyprinters/shared_ptr.cc: Update expected
1514 output of shared_ptr printer.
1516 2018-01-05 Jonathan Wakely <jwakely@redhat.com>
1519 * src/filesystem/ops.cc (remove(const path&, error_code&)): Remove
1520 unnecessary symlink_status call.
1521 (remove_all(const path&, error_code&)): Use filesystem::remove.
1522 * src/filesystem/std-ops.cc: Likewise.
1525 * src/filesystem/std-ops.cc (do_copy_file): Use non-null offset with
1529 * src/filesystem/ops.cc (remove(const path&, error_code&)): Do not
1530 report an error for ENOENT.
1531 (remove_all(const path&)): Fix type of result variable.
1532 (remove_all(const path&, error_code&)): Use non-throwing increment
1533 for directory iterator. Call POSIX remove directly to avoid redundant
1534 calls to symlink_status. Do not report errors for ENOENT.
1535 * src/filesystem/std-ops.cc: Likewise.
1536 * testsuite/27_io/filesystem/operations/remove_all.cc: Test throwing
1538 * testsuite/experimental/filesystem/operations/remove_all.cc:
1541 2018-01-04 Jonathan Wakely <jwakely@redhat.com>
1544 * src/filesystem/ops.cc (remove(const path&, error_code&))): Remove
1545 redundant call to ec.clear().
1546 (remove_all(const path&, error_code&))): Do not return an error for
1548 * src/filesystem/std-ops.cc: Likewise.
1549 * testsuite/27_io/filesystem/operations/remove.cc: New test.
1550 * testsuite/27_io/filesystem/operations/remove_all.cc: Fix expected
1551 results for non-existent paths.
1552 * testsuite/experimental/filesystem/operations/remove.cc: New test.
1553 * testsuite/experimental/filesystem/operations/remove_all.cc: Fix
1554 expected results for non-existent paths.
1556 * include/bits/fs_ops.h (exists(const path&, error_code&))): Only
1557 check status_known once.
1558 * include/experimental/bits/fs_ops.h: Likewise.
1561 * include/std/functional (__is_byte_like): New trait.
1562 (__is_std_equal_to): Remove.
1563 (__boyer_moore_base_t): Use __is_byte_like instead of
1565 * include/experimental/functional (__is_std_equal_to): Remove.
1566 (__boyer_moore_base_t): Use __is_byte_like instead of
1568 * testsuite/20_util/function_objects/83607.cc: New test.
1570 2018-01-03 Ville Voutilainen <ville.voutilainen@gmail.com>
1572 Protect optional's deduction guide with the feature macro
1573 * include/std/optional: Use the feature macro.
1575 2018-01-03 Jakub Jelinek <jakub@redhat.com>
1577 Update copyright years.
1579 Copyright (C) 2018 Free Software Foundation, Inc.
1581 Copying and distribution of this file, with or without modification,
1582 are permitted in any medium without royalty provided the copyright
1583 notice and this notice are preserved.